Initial commit

moved from private version control
This commit is contained in:
2025-10-19 21:12:41 +11:00
parent 5e84773bbe
commit e64f3e881e
187 changed files with 25372 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
import { createNodeModule } from "../nodeTypes.js";
/**
* Constant string literal.
*/
export const stringLiteralNode = createNodeModule(
{
id: "string_literal",
title: "String",
category: "Values",
description: "Constant string literal.",
searchTags: ["string", "literal", "text", "value"],
inputs: [],
outputs: [
{ id: "value", name: "Value", direction: "output", kind: "string" },
],
properties: [
{ key: "value", label: "Text", type: "string", defaultValue: "hello" },
],
},
{
evaluateValue: ({ node, formatLiteral }) => {
return formatLiteral("string", node.properties.value ?? "");
},
}
);