Files
metabuilder/packages/code_editor/scripts/functions.json
johndoe6345789 42446ef255 feat: Update package schemas and scripts to support JSON-based lifecycle hooks
- Added `jsonScript` property to metadata schema for JSON script entry points.
- Refactored `generate-package.ts` to replace Lua scripts with JSON scripts for lifecycle hooks.
- Updated test generation to use JSON format for metadata validation.
- Modified documentation and comments to reflect the transition from Lua to JSON scripting.
- Adjusted Storybook configuration and mock data to align with new JSON script structure.
- Renamed relevant files and references from Lua to JSON for consistency across the project.
2026-01-07 15:25:45 +00:00

85 lines
2.1 KiB
JSON

{
"$schema": "https://metabuilder.dev/schemas/json-script.schema.json",
"schemaVersion": "2.2.0",
"package": "code_editor",
"description": "Code editor functions for JSON, scripting, and theme editing",
"functions": [
{
"id": "json_render",
"name": "renderJsonEditor",
"exported": true,
"description": "Render JSON editor component with options",
"category": "json"
},
{
"id": "json_validate",
"name": "validateJson",
"exported": true,
"description": "Validate JSON string syntax",
"category": "json"
},
{
"id": "json_format",
"name": "formatJson",
"exported": true,
"description": "Format JSON string with indentation",
"category": "json"
},
{
"id": "script_render",
"name": "renderScriptEditor",
"exported": true,
"description": "Render script editor component",
"category": "script"
},
{
"id": "script_validate",
"name": "validateScript",
"exported": true,
"description": "Validate script syntax",
"category": "script"
},
{
"id": "script_run_sandbox",
"name": "runScriptSandbox",
"exported": true,
"description": "Execute scripts in sandbox environment",
"category": "script"
},
{
"id": "theme_render",
"name": "renderThemeEditor",
"exported": true,
"description": "Render theme customization editor",
"category": "theme"
},
{
"id": "theme_color_picker",
"name": "renderColorPicker",
"exported": true,
"description": "Render color picker component",
"category": "theme"
},
{
"id": "theme_mode_toggle",
"name": "renderModeToggle",
"exported": true,
"description": "Render light/dark mode toggle",
"category": "theme"
}
],
"exports": {
"functions": [
"renderJsonEditor",
"validateJson",
"formatJson",
"renderScriptEditor",
"validateScript",
"runScriptSandbox",
"renderThemeEditor",
"renderColorPicker",
"renderModeToggle"
]
}
}