From ec8c920cb25138554a7e9b2beb09a0e7b60be0af Mon Sep 17 00:00:00 2001 From: Richard Ward Date: Wed, 31 Dec 2025 13:49:44 +0000 Subject: [PATCH] config: json,script,packages (1 files) --- .../json_script_example/seed/metadata.json | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/packages/json_script_example/seed/metadata.json b/packages/json_script_example/seed/metadata.json index 56578460d..53eb82777 100644 --- a/packages/json_script_example/seed/metadata.json +++ b/packages/json_script_example/seed/metadata.json @@ -50,6 +50,46 @@ "styles": "seed/styles.json", "types": "seed/types.json" }, + "storybook": { + "stories": [ + { + "name": "All Expressions", + "function": "all_expressions", + "args": [10, 5], + "argControls": { + "a": { "type": "number", "default": 10, "min": -100, "max": 100, "step": 1 }, + "b": { "type": "number", "default": 5, "min": -100, "max": 100, "step": 1 } + } + }, + { + "name": "All Statements", + "function": "all_statements", + "args": [[1, 2, 3, 4, 5]] + }, + { + "name": "All Operators", + "function": "all_operators", + "args": [10, 5], + "argControls": { + "x": { "type": "number", "default": 10, "min": -100, "max": 100, "step": 1 }, + "y": { "type": "number", "default": 5, "min": -100, "max": 100, "step": 1 } + } + }, + { + "name": "Control Flow", + "function": "control_flow", + "args": [42], + "argControls": { + "value": { "type": "number", "default": 42, "min": -100, "max": 200, "step": 1 } + } + }, + { + "name": "Data Structures", + "function": "data_structures", + "args": [] + } + ] + }, "runtime": { "scripts": [ "seed/script.json",