mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-05-01 01:05:00 +00:00
- 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.
117 lines
2.9 KiB
JSON
117 lines
2.9 KiB
JSON
{
|
|
"$schema": "https://metabuilder.dev/schemas/json-script.schema.json",
|
|
"schemaVersion": "2.2.0",
|
|
"package": "css_designer",
|
|
"description": "CSS Designer script functions for color manipulation, styling, and export",
|
|
"functions": [
|
|
{
|
|
"id": "init",
|
|
"name": "init",
|
|
"exported": true,
|
|
"description": "Initialize the CSS designer module",
|
|
"category": "core"
|
|
},
|
|
{
|
|
"id": "get_default_theme",
|
|
"name": "getDefaultTheme",
|
|
"exported": true,
|
|
"description": "Get default theme configuration with all color, typography, and spacing values",
|
|
"category": "core"
|
|
},
|
|
{
|
|
"id": "hex_to_rgb",
|
|
"name": "hexToRgb",
|
|
"exported": true,
|
|
"description": "Convert hex color to RGB object",
|
|
"category": "colors"
|
|
},
|
|
{
|
|
"id": "rgb_to_hex",
|
|
"name": "rgbToHex",
|
|
"exported": true,
|
|
"description": "Convert RGB object to hex color string",
|
|
"category": "colors"
|
|
},
|
|
{
|
|
"id": "hex_to_hsl",
|
|
"name": "hexToHsl",
|
|
"exported": true,
|
|
"description": "Convert hex color to HSL object",
|
|
"category": "colors"
|
|
},
|
|
{
|
|
"id": "hsl_to_hex",
|
|
"name": "hslToHex",
|
|
"exported": true,
|
|
"description": "Convert HSL object to hex color string",
|
|
"category": "colors"
|
|
},
|
|
{
|
|
"id": "generate_palette",
|
|
"name": "generatePalette",
|
|
"exported": true,
|
|
"description": "Generate color palette from base colors",
|
|
"category": "colors"
|
|
},
|
|
{
|
|
"id": "update_font_settings",
|
|
"name": "updateFontSettings",
|
|
"exported": true,
|
|
"description": "Update typography settings",
|
|
"category": "fonts"
|
|
},
|
|
{
|
|
"id": "update_spacing",
|
|
"name": "updateSpacing",
|
|
"exported": true,
|
|
"description": "Update spacing configuration",
|
|
"category": "spacing"
|
|
},
|
|
{
|
|
"id": "update_borders",
|
|
"name": "updateBorders",
|
|
"exported": true,
|
|
"description": "Update border styling configuration",
|
|
"category": "borders"
|
|
},
|
|
{
|
|
"id": "update_shadows",
|
|
"name": "updateShadows",
|
|
"exported": true,
|
|
"description": "Update shadow styling configuration",
|
|
"category": "shadows"
|
|
},
|
|
{
|
|
"id": "export_to_scss",
|
|
"name": "exportToScss",
|
|
"exported": true,
|
|
"description": "Export theme configuration to SCSS variables",
|
|
"category": "export"
|
|
},
|
|
{
|
|
"id": "export_to_css",
|
|
"name": "exportToCss",
|
|
"exported": true,
|
|
"description": "Export theme configuration to CSS custom properties",
|
|
"category": "export"
|
|
}
|
|
],
|
|
"exports": {
|
|
"functions": [
|
|
"init",
|
|
"getDefaultTheme",
|
|
"hexToRgb",
|
|
"rgbToHex",
|
|
"hexToHsl",
|
|
"hslToHex",
|
|
"generatePalette",
|
|
"updateFontSettings",
|
|
"updateSpacing",
|
|
"updateBorders",
|
|
"updateShadows",
|
|
"exportToScss",
|
|
"exportToCss"
|
|
]
|
|
}
|
|
}
|