@wireweave/language-data 1.4.7-beta.0 → 1.5.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/codemirror/index.cjs +67 -2
- package/dist/codemirror/index.cjs.map +1 -1
- package/dist/codemirror/index.js +67 -2
- package/dist/codemirror/index.js.map +1 -1
- package/dist/index.cjs +67 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +67 -2
- package/dist/index.js.map +1 -1
- package/dist/monaco/index.cjs +67 -2
- package/dist/monaco/index.cjs.map +1 -1
- package/dist/monaco/index.js +67 -2
- package/dist/monaco/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -222,7 +222,12 @@ var ATTRIBUTES = [
|
|
|
222
222
|
{ name: "navigate", type: "string", description: "Navigation target URL or page", example: 'navigate="/dashboard"' },
|
|
223
223
|
{ name: "opens", type: "string", description: "Opens a modal, drawer, or popup", example: 'opens="settings-modal"' },
|
|
224
224
|
{ name: "toggles", type: "string", description: "Toggles visibility of an element", example: 'toggles="menu"' },
|
|
225
|
-
{ name: "action", type: "string", description: "Action identifier for event handling", example: 'action="submit-form"' }
|
|
225
|
+
{ name: "action", type: "string", description: "Action identifier for event handling", example: 'action="submit-form"' },
|
|
226
|
+
// ============================================
|
|
227
|
+
// Annotation Attributes
|
|
228
|
+
// ============================================
|
|
229
|
+
{ name: "anchor", type: "enum", values: ["top-left", "top-center", "top-right", "center-left", "center", "center-right", "bottom-left", "bottom-center", "bottom-right"], description: "Anchor position for marker in relative container", example: "anchor=top-right" },
|
|
230
|
+
{ name: "color", type: "enum", values: ["blue", "red", "green", "yellow", "purple", "orange"], description: "Marker color", example: "color=blue" }
|
|
226
231
|
];
|
|
227
232
|
var ATTRIBUTE_MAP = new Map(
|
|
228
233
|
ATTRIBUTES.map((attr) => [attr.name, attr])
|
|
@@ -317,6 +322,24 @@ var ALL_COMPONENTS = [
|
|
|
317
322
|
description: "Vertical flex container or grid column",
|
|
318
323
|
example: "col span=6 md=4 { ... }"
|
|
319
324
|
},
|
|
325
|
+
{
|
|
326
|
+
name: "stack",
|
|
327
|
+
nodeType: "Stack",
|
|
328
|
+
category: "grid",
|
|
329
|
+
attributes: [...COMMON_ATTRIBUTES, "border", "bg"],
|
|
330
|
+
hasChildren: true,
|
|
331
|
+
description: "Vertical stack that only takes content height (unlike col which fills)",
|
|
332
|
+
example: "stack gap=4 align=center { ... }"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
name: "relative",
|
|
336
|
+
nodeType: "Relative",
|
|
337
|
+
category: "grid",
|
|
338
|
+
attributes: [...COMMON_ATTRIBUTES],
|
|
339
|
+
hasChildren: true,
|
|
340
|
+
description: "Container for overlaying elements with absolute positioning",
|
|
341
|
+
example: 'relative { button "Submit" marker 1 anchor=top-right }'
|
|
342
|
+
},
|
|
320
343
|
// ============================================
|
|
321
344
|
// Container Components
|
|
322
345
|
// ============================================
|
|
@@ -640,6 +663,38 @@ var ALL_COMPONENTS = [
|
|
|
640
663
|
hasChildren: false,
|
|
641
664
|
description: "Horizontal separator",
|
|
642
665
|
example: "divider my=4"
|
|
666
|
+
},
|
|
667
|
+
// ============================================
|
|
668
|
+
// Annotation Components
|
|
669
|
+
// ============================================
|
|
670
|
+
{
|
|
671
|
+
name: "marker",
|
|
672
|
+
nodeType: "Marker",
|
|
673
|
+
category: "annotation",
|
|
674
|
+
attributes: [...COMMON_ATTRIBUTES, "color", "anchor"],
|
|
675
|
+
hasChildren: false,
|
|
676
|
+
description: "Number marker for referencing in annotations",
|
|
677
|
+
example: "marker 1 anchor=top-right color=blue"
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
name: "annotations",
|
|
681
|
+
nodeType: "Annotations",
|
|
682
|
+
category: "annotation",
|
|
683
|
+
attributes: [...COMMON_ATTRIBUTES, "title"],
|
|
684
|
+
hasChildren: true,
|
|
685
|
+
description: "Documentation panel for screen specifications",
|
|
686
|
+
example: 'annotations title="\uD654\uBA74 \uC124\uBA85" { item 1 "\uC81C\uBAA9" { text "\uC124\uBA85" } }',
|
|
687
|
+
validChildren: ["item"]
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
name: "item",
|
|
691
|
+
nodeType: "AnnotationItem",
|
|
692
|
+
category: "annotation",
|
|
693
|
+
attributes: [],
|
|
694
|
+
hasChildren: true,
|
|
695
|
+
description: "Individual annotation entry with marker number and title",
|
|
696
|
+
example: 'item 1 "\uB85C\uADF8\uC778 \uBC84\uD2BC" { text "OAuth \uC5F0\uB3D9 \uC608\uC815" }',
|
|
697
|
+
validParents: ["annotations"]
|
|
643
698
|
}
|
|
644
699
|
];
|
|
645
700
|
var COMPONENT_MAP = new Map(
|
|
@@ -663,7 +718,8 @@ var CATEGORY_LABELS = {
|
|
|
663
718
|
data: "Data",
|
|
664
719
|
feedback: "Feedback",
|
|
665
720
|
overlay: "Overlay",
|
|
666
|
-
navigation: "Navigation"
|
|
721
|
+
navigation: "Navigation",
|
|
722
|
+
annotation: "Annotation"
|
|
667
723
|
};
|
|
668
724
|
var VALUE_KEYWORDS = [
|
|
669
725
|
// Booleans
|
|
@@ -709,6 +765,15 @@ var VALUE_KEYWORDS = [
|
|
|
709
765
|
"bottom-left",
|
|
710
766
|
"bottom-center",
|
|
711
767
|
"bottom-right",
|
|
768
|
+
"center-left",
|
|
769
|
+
"center-right",
|
|
770
|
+
// Marker colors
|
|
771
|
+
"blue",
|
|
772
|
+
"red",
|
|
773
|
+
"green",
|
|
774
|
+
"yellow",
|
|
775
|
+
"purple",
|
|
776
|
+
"orange",
|
|
712
777
|
// Sizing
|
|
713
778
|
"full",
|
|
714
779
|
"auto",
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/attributes.ts","../src/components.ts","../src/keywords.ts","../src/utils.ts"],"sourcesContent":["/**\n * @wireweave/language-data\n *\n * Language definitions and metadata for Wireweave DSL editor integrations.\n * This package is independent of @wireweave/core.\n *\n * Provides:\n * - Component and attribute definitions\n * - Editor utilities (autocomplete, validation hints)\n * - Monaco language configuration (coming soon)\n */\n\n// Types\nexport type {\n ComponentDef,\n AttributeDef,\n ComponentCategory,\n AttributeValueType,\n} from './types.js';\n\n// Data\nexport {\n ALL_COMPONENTS,\n COMPONENT_MAP,\n NODE_TYPE_MAP,\n VALID_COMPONENT_NAMES,\n} from './components.js';\nexport {\n ATTRIBUTES,\n ATTRIBUTE_MAP,\n COMMON_ATTRIBUTES,\n VALID_ATTRIBUTE_NAMES,\n} from './attributes.js';\nexport {\n CATEGORY_LABELS,\n VALUE_KEYWORDS,\n COMMON_NUMBERS,\n SPACING_SCALE,\n} from './keywords.js';\n\n// Utilities\nexport {\n getComponent,\n getComponentByNodeType,\n getAttribute,\n getValidChildren,\n isValidChild,\n getComponentAttributes,\n getComponentsByCategory,\n getAttributeTypeLabel,\n formatAttributeValues,\n isComponent,\n isAttribute,\n getComponentNames,\n getAttributeNames,\n getCategories,\n} from './utils.js';\n","/**\n * Attribute definitions for Wireweave DSL\n *\n * Complete attribute definitions for editor integrations.\n * This is the authoritative source for editor-related attribute data.\n */\n\nimport type { AttributeDef } from './types.js';\n\n/**\n * Common attributes available to most components\n */\nexport const COMMON_ATTRIBUTES: readonly string[] = [\n // Spacing\n 'p', 'px', 'py', 'pt', 'pr', 'pb', 'pl',\n 'm', 'mx', 'my', 'mt', 'mr', 'mb', 'ml',\n 'gap',\n // Size\n 'w', 'h', 'minW', 'maxW', 'minH', 'maxH',\n // Flex\n 'flex', 'direction', 'justify', 'align', 'wrap',\n // Grid\n 'span',\n // Position\n 'x', 'y',\n];\n\n/**\n * All attributes in Wireweave DSL\n */\nexport const ATTRIBUTES: AttributeDef[] = [\n // ============================================\n // Spacing Attributes\n // ============================================\n { name: 'p', type: 'number', description: 'Padding (all sides)', example: 'p=4' },\n { name: 'px', type: 'number', description: 'Horizontal padding', example: 'px=4' },\n { name: 'py', type: 'number', description: 'Vertical padding', example: 'py=4' },\n { name: 'pt', type: 'number', description: 'Top padding', example: 'pt=4' },\n { name: 'pr', type: 'number', description: 'Right padding', example: 'pr=4' },\n { name: 'pb', type: 'number', description: 'Bottom padding', example: 'pb=4' },\n { name: 'pl', type: 'number', description: 'Left padding', example: 'pl=4' },\n { name: 'm', type: 'number', description: 'Margin (all sides)', example: 'm=4' },\n { name: 'mx', type: 'string', description: 'Horizontal margin (number or \"auto\")', example: 'mx=auto' },\n { name: 'my', type: 'number', description: 'Vertical margin', example: 'my=4' },\n { name: 'mt', type: 'number', description: 'Top margin', example: 'mt=4' },\n { name: 'mr', type: 'number', description: 'Right margin', example: 'mr=4' },\n { name: 'mb', type: 'number', description: 'Bottom margin', example: 'mb=4' },\n { name: 'ml', type: 'number', description: 'Left margin', example: 'ml=4' },\n { name: 'gap', type: 'number', description: 'Gap between children', example: 'gap=4' },\n\n // ============================================\n // Size Attributes\n // ============================================\n { name: 'w', type: 'string', description: 'Width (number, \"full\", \"auto\", \"screen\", \"fit\")', example: 'w=full' },\n { name: 'h', type: 'string', description: 'Height (number, \"full\", \"auto\", \"screen\")', example: 'h=full' },\n { name: 'width', type: 'number', description: 'Width in pixels (page only)', example: 'width=400' },\n { name: 'height', type: 'number', description: 'Height in pixels (page only)', example: 'height=300' },\n { name: 'minW', type: 'number', description: 'Minimum width', example: 'minW=200' },\n { name: 'maxW', type: 'number', description: 'Maximum width', example: 'maxW=600' },\n { name: 'minH', type: 'number', description: 'Minimum height', example: 'minH=100' },\n { name: 'maxH', type: 'number', description: 'Maximum height', example: 'maxH=400' },\n\n // ============================================\n // Flex/Grid Layout Attributes\n // ============================================\n { name: 'flex', type: 'boolean', description: 'Enable flexbox', example: 'flex' },\n { name: 'direction', type: 'enum', values: ['row', 'column', 'row-reverse', 'column-reverse'], description: 'Flex direction', example: 'direction=column' },\n { name: 'justify', type: 'enum', values: ['start', 'center', 'end', 'between', 'around', 'evenly'], description: 'Main axis alignment', example: 'justify=center' },\n { name: 'align', type: 'enum', values: ['start', 'center', 'end', 'stretch', 'baseline'], description: 'Cross axis alignment', example: 'align=center' },\n { name: 'wrap', type: 'boolean', description: 'Enable flex wrap', example: 'wrap' },\n { name: 'span', type: 'number', description: 'Grid column span (1-12)', example: 'span=6' },\n { name: 'sm', type: 'number', description: 'Responsive span at 576px+', example: 'sm=6' },\n { name: 'md', type: 'number', description: 'Responsive span at 768px+', example: 'md=4' },\n { name: 'lg', type: 'number', description: 'Responsive span at 992px+', example: 'lg=3' },\n { name: 'xl', type: 'number', description: 'Responsive span at 1200px+', example: 'xl=2' },\n { name: 'order', type: 'number', description: 'Flex order', example: 'order=1' },\n\n // ============================================\n // Position Attributes\n // ============================================\n { name: 'x', type: 'number', description: 'Horizontal position', example: 'x=100' },\n { name: 'y', type: 'number', description: 'Vertical position', example: 'y=50' },\n { name: 'position', type: 'enum', values: ['left', 'right', 'top', 'bottom', 'top-left', 'top-center', 'top-right', 'bottom-left', 'bottom-center', 'bottom-right'], description: 'Position preset', example: 'position=left' },\n\n // ============================================\n // Visual Attributes\n // ============================================\n { name: 'border', type: 'boolean', description: 'Show border', example: 'border' },\n { name: 'rounded', type: 'boolean', description: 'Apply border radius', example: 'rounded' },\n { name: 'shadow', type: 'enum', values: ['none', 'sm', 'md', 'lg', 'xl'], description: 'Box shadow', example: 'shadow=md' },\n { name: 'bg', type: 'enum', values: ['muted', 'primary', 'secondary'], description: 'Background variant', example: 'bg=muted' },\n\n // ============================================\n // Text Attributes\n // ============================================\n { name: 'size', type: 'enum', values: ['xs', 'sm', 'base', 'md', 'lg', 'xl', '2xl', '3xl'], description: 'Size preset', example: 'size=lg' },\n { name: 'weight', type: 'enum', values: ['normal', 'medium', 'semibold', 'bold'], description: 'Font weight', example: 'weight=bold' },\n { name: 'level', type: 'number', description: 'Heading level (1-6)', example: 'level=2' },\n { name: 'muted', type: 'boolean', description: 'Muted/dimmed style', example: 'muted' },\n { name: 'bold', type: 'boolean', description: 'Bold text', example: 'bold' },\n\n // ============================================\n // Button Variant Attributes\n // ============================================\n { name: 'primary', type: 'boolean', description: 'Primary style', example: 'primary' },\n { name: 'secondary', type: 'boolean', description: 'Secondary style', example: 'secondary' },\n { name: 'outline', type: 'boolean', description: 'Outline style', example: 'outline' },\n { name: 'ghost', type: 'boolean', description: 'Ghost/transparent style', example: 'ghost' },\n { name: 'danger', type: 'boolean', description: 'Danger/destructive style', example: 'danger' },\n\n // ============================================\n // Status Variant Attributes\n // ============================================\n { name: 'variant', type: 'enum', values: ['default', 'primary', 'secondary', 'success', 'warning', 'danger', 'info'], description: 'Status variant', example: 'variant=success' },\n\n // ============================================\n // Form Attributes\n // ============================================\n { name: 'inputType', type: 'enum', values: ['text', 'email', 'password', 'number', 'tel', 'url', 'search', 'date'], description: 'Input field type', example: 'inputType=email' },\n { name: 'placeholder', type: 'string', description: 'Placeholder text', example: 'placeholder=\"Enter text\"' },\n { name: 'value', type: 'string', description: 'Default value', example: 'value=\"default\"' },\n { name: 'label', type: 'string', description: 'Field label', example: 'label=\"Name\"' },\n { name: 'name', type: 'string', description: 'Form field name', example: 'name=\"field\"' },\n { name: 'required', type: 'boolean', description: 'Required field', example: 'required' },\n { name: 'disabled', type: 'boolean', description: 'Disabled state', example: 'disabled' },\n { name: 'readonly', type: 'boolean', description: 'Read-only state', example: 'readonly' },\n { name: 'checked', type: 'boolean', description: 'Checked state', example: 'checked' },\n { name: 'loading', type: 'boolean', description: 'Loading state', example: 'loading' },\n { name: 'rows', type: 'number', description: 'Textarea rows', example: 'rows=4' },\n { name: 'min', type: 'number', description: 'Minimum value', example: 'min=0' },\n { name: 'max', type: 'number', description: 'Maximum value', example: 'max=100' },\n { name: 'step', type: 'number', description: 'Step increment', example: 'step=1' },\n\n // ============================================\n // Content Attributes\n // ============================================\n { name: 'title', type: 'string', description: 'Title text', example: 'title=\"Title\"' },\n { name: 'src', type: 'string', description: 'Source URL', example: 'src=\"/image.png\"' },\n { name: 'alt', type: 'string', description: 'Alt text', example: 'alt=\"Image\"' },\n { name: 'href', type: 'string', description: 'Link URL', example: 'href=\"/path\"' },\n { name: 'icon', type: 'string', description: 'Icon name', example: 'icon=\"home\"' },\n { name: 'external', type: 'boolean', description: 'External link', example: 'external' },\n\n // ============================================\n // State Attributes\n // ============================================\n { name: 'active', type: 'number', description: 'Active index', example: 'active=0' },\n { name: 'expanded', type: 'boolean', description: 'Expanded state', example: 'expanded' },\n { name: 'centered', type: 'boolean', description: 'Center content', example: 'centered' },\n { name: 'vertical', type: 'boolean', description: 'Vertical orientation', example: 'vertical' },\n { name: 'scroll', type: 'boolean', description: 'Enable scrolling', example: 'scroll' },\n\n // ============================================\n // Feedback Attributes\n // ============================================\n { name: 'dismissible', type: 'boolean', description: 'Can be dismissed', example: 'dismissible' },\n { name: 'indeterminate', type: 'boolean', description: 'Indeterminate state', example: 'indeterminate' },\n { name: 'pill', type: 'boolean', description: 'Pill/rounded style', example: 'pill' },\n\n // ============================================\n // Data Attributes\n // ============================================\n { name: 'striped', type: 'boolean', description: 'Striped rows', example: 'striped' },\n { name: 'bordered', type: 'boolean', description: 'Full borders', example: 'bordered' },\n { name: 'hover', type: 'boolean', description: 'Hover effect', example: 'hover' },\n { name: 'ordered', type: 'boolean', description: 'Ordered list', example: 'ordered' },\n { name: 'none', type: 'boolean', description: 'No list markers', example: 'none' },\n\n // ============================================\n // Page/Viewport Attributes\n // ============================================\n { name: 'viewport', type: 'string', description: 'Viewport size (e.g., \"1440x900\")', example: 'viewport=\"1440x900\"' },\n { name: 'device', type: 'string', description: 'Device preset', example: 'device=\"iphone14\"' },\n\n // ============================================\n // Interactive Attributes\n // ============================================\n { name: 'navigate', type: 'string', description: 'Navigation target URL or page', example: 'navigate=\"/dashboard\"' },\n { name: 'opens', type: 'string', description: 'Opens a modal, drawer, or popup', example: 'opens=\"settings-modal\"' },\n { name: 'toggles', type: 'string', description: 'Toggles visibility of an element', example: 'toggles=\"menu\"' },\n { name: 'action', type: 'string', description: 'Action identifier for event handling', example: 'action=\"submit-form\"' },\n];\n\n/**\n * Map of attribute name to definition for quick lookup\n */\nexport const ATTRIBUTE_MAP: Map<string, AttributeDef> = new Map(\n ATTRIBUTES.map((attr) => [attr.name, attr])\n);\n\n/**\n * Set of all valid attribute names\n */\nexport const VALID_ATTRIBUTE_NAMES: ReadonlySet<string> = new Set(\n ATTRIBUTES.map((attr) => attr.name)\n);\n","/**\n * Component definitions for Wireweave DSL\n *\n * Complete component definitions for editor integrations.\n * This is the authoritative source for editor-related component data.\n */\n\nimport type { ComponentDef } from './types.js';\nimport { COMMON_ATTRIBUTES } from './attributes.js';\n\n/**\n * All components in Wireweave DSL\n */\nexport const ALL_COMPONENTS: ComponentDef[] = [\n // ============================================\n // Layout Components\n // ============================================\n {\n name: 'page',\n nodeType: 'Page',\n category: 'layout',\n attributes: [...COMMON_ATTRIBUTES, 'title', 'width', 'height', 'viewport', 'device', 'centered'],\n hasChildren: true,\n description: 'Root container for a wireframe page',\n example: 'page \"Dashboard\" centered { ... }',\n validChildren: ['header', 'main', 'footer', 'sidebar', 'section', 'nav', 'row', 'col', 'card'],\n validParents: [],\n },\n {\n name: 'header',\n nodeType: 'Header',\n category: 'layout',\n attributes: [...COMMON_ATTRIBUTES, 'border'],\n hasChildren: true,\n description: 'Page header section',\n example: 'header h=56 border { ... }',\n validParents: ['page'],\n },\n {\n name: 'main',\n nodeType: 'Main',\n category: 'layout',\n attributes: [...COMMON_ATTRIBUTES, 'scroll'],\n hasChildren: true,\n description: 'Main content section',\n example: 'main p=6 scroll { ... }',\n validParents: ['page'],\n },\n {\n name: 'footer',\n nodeType: 'Footer',\n category: 'layout',\n attributes: [...COMMON_ATTRIBUTES, 'border'],\n hasChildren: true,\n description: 'Page footer section',\n example: 'footer h=48 border { ... }',\n validParents: ['page'],\n },\n {\n name: 'sidebar',\n nodeType: 'Sidebar',\n category: 'layout',\n attributes: [...COMMON_ATTRIBUTES, 'position', 'border', 'bg'],\n hasChildren: true,\n description: 'Side navigation or content area',\n example: 'sidebar w=240 border { ... }',\n validParents: ['page'],\n },\n {\n name: 'section',\n nodeType: 'Section',\n category: 'layout',\n attributes: [...COMMON_ATTRIBUTES, 'title', 'expanded'],\n hasChildren: true,\n description: 'Grouped content section',\n example: 'section \"Settings\" expanded { ... }',\n },\n\n // ============================================\n // Grid Components\n // ============================================\n {\n name: 'row',\n nodeType: 'Row',\n category: 'grid',\n attributes: [...COMMON_ATTRIBUTES, 'border', 'bg'],\n hasChildren: true,\n description: 'Horizontal flex container',\n example: 'row flex gap=4 justify=between { ... }',\n },\n {\n name: 'col',\n nodeType: 'Col',\n category: 'grid',\n attributes: [...COMMON_ATTRIBUTES, 'sm', 'md', 'lg', 'xl', 'order', 'border', 'bg', 'scroll'],\n hasChildren: true,\n description: 'Vertical flex container or grid column',\n example: 'col span=6 md=4 { ... }',\n },\n\n // ============================================\n // Container Components\n // ============================================\n {\n name: 'card',\n nodeType: 'Card',\n category: 'container',\n attributes: [...COMMON_ATTRIBUTES, 'title', 'shadow', 'border', 'rounded'],\n hasChildren: true,\n description: 'Card container with optional title',\n example: 'card \"Settings\" p=4 shadow=md { ... }',\n },\n {\n name: 'modal',\n nodeType: 'Modal',\n category: 'container',\n attributes: [...COMMON_ATTRIBUTES, 'title'],\n hasChildren: true,\n description: 'Modal dialog overlay',\n example: 'modal \"Confirm\" w=400 { ... }',\n },\n {\n name: 'drawer',\n nodeType: 'Drawer',\n category: 'container',\n attributes: [...COMMON_ATTRIBUTES, 'title', 'position'],\n hasChildren: true,\n description: 'Slide-in drawer panel',\n example: 'drawer \"Menu\" position=left { ... }',\n },\n {\n name: 'accordion',\n nodeType: 'Accordion',\n category: 'container',\n attributes: [...COMMON_ATTRIBUTES, 'title'],\n hasChildren: true,\n description: 'Collapsible sections container',\n example: 'accordion { section \"FAQ 1\" { ... } }',\n },\n\n // ============================================\n // Text Components\n // ============================================\n {\n name: 'text',\n nodeType: 'Text',\n category: 'text',\n attributes: [...COMMON_ATTRIBUTES, 'size', 'weight', 'muted', 'bold'],\n hasChildren: false,\n description: 'Text content',\n example: 'text \"Hello World\" size=lg weight=bold',\n },\n {\n name: 'title',\n nodeType: 'Title',\n category: 'text',\n attributes: [...COMMON_ATTRIBUTES, 'level', 'size'],\n hasChildren: false,\n description: 'Heading element (h1-h6)',\n example: 'title \"Welcome\" level=2',\n },\n {\n name: 'link',\n nodeType: 'Link',\n category: 'text',\n attributes: [...COMMON_ATTRIBUTES, 'href', 'external'],\n hasChildren: false,\n description: 'Hyperlink text',\n example: 'link \"Learn more\" href=\"/docs\" external',\n },\n\n // ============================================\n // Input Components\n // ============================================\n {\n name: 'input',\n nodeType: 'Input',\n category: 'input',\n attributes: [...COMMON_ATTRIBUTES, 'label', 'inputType', 'placeholder', 'value', 'disabled', 'required', 'readonly', 'icon', 'size', 'rounded'],\n hasChildren: false,\n description: 'Text input field',\n example: 'input \"Email\" inputType=email placeholder=\"user@example.com\" required',\n },\n {\n name: 'textarea',\n nodeType: 'Textarea',\n category: 'input',\n attributes: [...COMMON_ATTRIBUTES, 'label', 'placeholder', 'value', 'rows', 'disabled', 'required'],\n hasChildren: false,\n description: 'Multi-line text input',\n example: 'textarea \"Description\" rows=4 placeholder=\"Enter description...\"',\n },\n {\n name: 'select',\n nodeType: 'Select',\n category: 'input',\n attributes: [...COMMON_ATTRIBUTES, 'label', 'placeholder', 'value', 'disabled', 'required'],\n hasChildren: false,\n description: 'Dropdown select',\n example: 'select \"Country\" [\"USA\", \"Canada\", \"UK\"] placeholder=\"Select...\"',\n },\n {\n name: 'checkbox',\n nodeType: 'Checkbox',\n category: 'input',\n attributes: [...COMMON_ATTRIBUTES, 'label', 'checked', 'disabled'],\n hasChildren: false,\n description: 'Checkbox input',\n example: 'checkbox \"I agree to terms\" checked',\n },\n {\n name: 'radio',\n nodeType: 'Radio',\n category: 'input',\n attributes: [...COMMON_ATTRIBUTES, 'label', 'name', 'checked', 'disabled'],\n hasChildren: false,\n description: 'Radio button input',\n example: 'radio \"Option A\" name=\"choice\" checked',\n },\n {\n name: 'switch',\n nodeType: 'Switch',\n category: 'input',\n attributes: [...COMMON_ATTRIBUTES, 'label', 'checked', 'disabled'],\n hasChildren: false,\n description: 'Toggle switch',\n example: 'switch \"Dark mode\" checked',\n },\n {\n name: 'slider',\n nodeType: 'Slider',\n category: 'input',\n attributes: [...COMMON_ATTRIBUTES, 'label', 'min', 'max', 'value', 'step', 'disabled'],\n hasChildren: false,\n description: 'Range slider',\n example: 'slider \"Volume\" min=0 max=100 value=50',\n },\n {\n name: 'button',\n nodeType: 'Button',\n category: 'input',\n attributes: [...COMMON_ATTRIBUTES, 'primary', 'secondary', 'outline', 'ghost', 'danger', 'size', 'icon', 'disabled', 'loading'],\n hasChildren: false,\n description: 'Clickable button',\n example: 'button \"Submit\" primary icon=send',\n },\n\n // ============================================\n // Display Components\n // ============================================\n {\n name: 'image',\n nodeType: 'Image',\n category: 'display',\n attributes: [...COMMON_ATTRIBUTES, 'src', 'alt'],\n hasChildren: false,\n description: 'Image placeholder',\n example: 'image w=200 h=150',\n },\n {\n name: 'placeholder',\n nodeType: 'Placeholder',\n category: 'display',\n attributes: [...COMMON_ATTRIBUTES, 'label'],\n hasChildren: true,\n description: 'Generic placeholder',\n example: 'placeholder \"Banner Image\" w=full h=200 { ... }',\n },\n {\n name: 'avatar',\n nodeType: 'Avatar',\n category: 'display',\n attributes: [...COMMON_ATTRIBUTES, 'name', 'src', 'size'],\n hasChildren: false,\n description: 'User avatar',\n example: 'avatar \"John Doe\" size=lg',\n },\n {\n name: 'badge',\n nodeType: 'Badge',\n category: 'display',\n attributes: [...COMMON_ATTRIBUTES, 'variant', 'pill', 'icon', 'size'],\n hasChildren: false,\n description: 'Status badge',\n example: 'badge \"New\" variant=success pill',\n },\n {\n name: 'icon',\n nodeType: 'Icon',\n category: 'display',\n attributes: [...COMMON_ATTRIBUTES, 'size', 'muted'],\n hasChildren: false,\n description: 'Lucide icon',\n example: 'icon \"settings\" size=lg',\n },\n\n // ============================================\n // Data Components\n // ============================================\n {\n name: 'table',\n nodeType: 'Table',\n category: 'data',\n attributes: [...COMMON_ATTRIBUTES, 'striped', 'bordered', 'hover'],\n hasChildren: false,\n description: 'Data table',\n example: 'table striped bordered { columns [\"Name\", \"Email\"] row [\"John\", \"john@example.com\"] }',\n },\n {\n name: 'list',\n nodeType: 'List',\n category: 'data',\n attributes: [...COMMON_ATTRIBUTES, 'ordered', 'none'],\n hasChildren: false,\n description: 'List of items',\n example: 'list ordered [\"First\", \"Second\", \"Third\"]',\n },\n\n // ============================================\n // Feedback Components\n // ============================================\n {\n name: 'alert',\n nodeType: 'Alert',\n category: 'feedback',\n attributes: [...COMMON_ATTRIBUTES, 'variant', 'dismissible', 'icon'],\n hasChildren: false,\n description: 'Alert message',\n example: 'alert \"Changes saved!\" variant=success',\n },\n {\n name: 'toast',\n nodeType: 'Toast',\n category: 'feedback',\n attributes: [...COMMON_ATTRIBUTES, 'position', 'variant'],\n hasChildren: false,\n description: 'Toast notification',\n example: 'toast \"Item deleted\" position=bottom-right variant=danger',\n },\n {\n name: 'progress',\n nodeType: 'Progress',\n category: 'feedback',\n attributes: [...COMMON_ATTRIBUTES, 'value', 'max', 'label', 'indeterminate'],\n hasChildren: false,\n description: 'Progress bar',\n example: 'progress value=75 label=\"Uploading...\"',\n },\n {\n name: 'spinner',\n nodeType: 'Spinner',\n category: 'feedback',\n attributes: [...COMMON_ATTRIBUTES, 'label', 'size'],\n hasChildren: false,\n description: 'Loading spinner',\n example: 'spinner size=lg',\n },\n\n // ============================================\n // Overlay Components\n // ============================================\n {\n name: 'tooltip',\n nodeType: 'Tooltip',\n category: 'overlay',\n attributes: [...COMMON_ATTRIBUTES, 'position'],\n hasChildren: false,\n description: 'Tooltip on hover',\n example: 'tooltip \"More info\" position=top { icon \"help-circle\" }',\n },\n {\n name: 'popover',\n nodeType: 'Popover',\n category: 'overlay',\n attributes: [...COMMON_ATTRIBUTES, 'title'],\n hasChildren: true,\n description: 'Popover panel',\n example: 'popover \"Details\" { ... }',\n },\n {\n name: 'dropdown',\n nodeType: 'Dropdown',\n category: 'overlay',\n attributes: [...COMMON_ATTRIBUTES],\n hasChildren: false,\n description: 'Dropdown menu',\n example: 'dropdown { item \"Edit\" icon=edit item \"Delete\" icon=trash danger }',\n },\n\n // ============================================\n // Navigation Components\n // ============================================\n {\n name: 'nav',\n nodeType: 'Nav',\n category: 'navigation',\n attributes: [...COMMON_ATTRIBUTES, 'vertical'],\n hasChildren: false,\n description: 'Navigation menu',\n example: 'nav [{ label=\"Home\" icon=home active }, { label=\"Settings\" icon=settings }] vertical',\n },\n {\n name: 'tabs',\n nodeType: 'Tabs',\n category: 'navigation',\n attributes: [...COMMON_ATTRIBUTES, 'active'],\n hasChildren: true,\n description: 'Tab navigation',\n example: 'tabs { tab \"General\" active { ... } tab \"Advanced\" { ... } }',\n },\n {\n name: 'breadcrumb',\n nodeType: 'Breadcrumb',\n category: 'navigation',\n attributes: [...COMMON_ATTRIBUTES],\n hasChildren: false,\n description: 'Breadcrumb navigation',\n example: 'breadcrumb [{ label=\"Home\" href=\"/\" }, { label=\"Products\" }, { label=\"Details\" }]',\n },\n\n // ============================================\n // Divider Component\n // ============================================\n {\n name: 'divider',\n nodeType: 'Divider',\n category: 'layout',\n attributes: [...COMMON_ATTRIBUTES, 'vertical'],\n hasChildren: false,\n description: 'Horizontal separator',\n example: 'divider my=4',\n },\n];\n\n/**\n * Map of component name to definition for quick lookup\n */\nexport const COMPONENT_MAP: Map<string, ComponentDef> = new Map(\n ALL_COMPONENTS.map((comp) => [comp.name, comp])\n);\n\n/**\n * Map of AST node type to definition for quick lookup\n */\nexport const NODE_TYPE_MAP: Map<string, ComponentDef> = new Map(\n ALL_COMPONENTS.map((comp) => [comp.nodeType, comp])\n);\n\n/**\n * Set of all valid component names\n */\nexport const VALID_COMPONENT_NAMES: ReadonlySet<string> = new Set(\n ALL_COMPONENTS.map((comp) => comp.name)\n);\n","/**\n * Keywords and labels for Wireweave DSL\n */\n\nimport type { ComponentCategory } from './types.js';\n\n// Category labels for display\nexport const CATEGORY_LABELS: Record<ComponentCategory, string> = {\n layout: 'Layout',\n container: 'Container',\n grid: 'Grid',\n text: 'Text',\n input: 'Input',\n display: 'Display',\n data: 'Data',\n feedback: 'Feedback',\n overlay: 'Overlay',\n navigation: 'Navigation',\n};\n\n// Value keywords used in the language\nexport const VALUE_KEYWORDS = [\n // Booleans\n 'true',\n 'false',\n\n // Button variants\n 'primary',\n 'secondary',\n 'outline',\n 'ghost',\n\n // Status variants\n 'success',\n 'danger',\n 'warning',\n 'info',\n 'default',\n\n // Sizes\n 'xs',\n 'sm',\n 'md',\n 'lg',\n 'xl',\n 'base',\n '2xl',\n '3xl',\n\n // Flex alignment\n 'start',\n 'center',\n 'end',\n 'between',\n 'around',\n 'evenly',\n 'stretch',\n 'baseline',\n\n // Positions\n 'left',\n 'right',\n 'top',\n 'bottom',\n 'top-left',\n 'top-center',\n 'top-right',\n 'bottom-left',\n 'bottom-center',\n 'bottom-right',\n\n // Sizing\n 'full',\n 'auto',\n 'screen',\n 'fit',\n\n // Font weights\n 'normal',\n 'medium',\n 'semibold',\n 'bold',\n\n // Input types\n 'text',\n 'email',\n 'password',\n 'number',\n 'tel',\n 'url',\n 'search',\n 'date',\n\n // Flex direction\n 'row',\n 'column',\n 'row-reverse',\n 'column-reverse',\n\n // List\n 'none',\n 'nowrap',\n];\n\n// Common number suggestions for attributes\nexport const COMMON_NUMBERS = [0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24, 32, 48, 64];\n\n// Spacing scale (4px base)\nexport const SPACING_SCALE: Record<number, string> = {\n 0: '0px',\n 1: '4px',\n 2: '8px',\n 3: '12px',\n 4: '16px',\n 5: '20px',\n 6: '24px',\n 8: '32px',\n 10: '40px',\n 12: '48px',\n 16: '64px',\n 20: '80px',\n 24: '96px',\n};\n","/**\n * Utility functions for Wireweave language data\n */\n\nimport type { ComponentDef, AttributeDef } from './types.js';\nimport { ALL_COMPONENTS, COMPONENT_MAP, NODE_TYPE_MAP } from './components.js';\nimport { ATTRIBUTES, ATTRIBUTE_MAP } from './attributes.js';\n\n/**\n * Get component definition by name\n */\nexport function getComponent(name: string): ComponentDef | undefined {\n return COMPONENT_MAP.get(name.toLowerCase());\n}\n\n/**\n * Get component definition by AST node type\n */\nexport function getComponentByNodeType(nodeType: string): ComponentDef | undefined {\n return NODE_TYPE_MAP.get(nodeType);\n}\n\n/**\n * Get attribute definition by name\n */\nexport function getAttribute(name: string): AttributeDef | undefined {\n return ATTRIBUTE_MAP.get(name);\n}\n\n/**\n * Get valid child components for a parent component\n */\nexport function getValidChildren(componentName: string): ComponentDef[] {\n const component = getComponent(componentName);\n if (!component || !component.hasChildren) return [];\n\n if (component.validChildren === undefined) {\n // All components except page are valid children\n return ALL_COMPONENTS.filter((c) => c.name !== 'page');\n }\n\n return component.validChildren\n .map((name) => getComponent(name))\n .filter((c): c is ComponentDef => c !== undefined);\n}\n\n/**\n * Check if a component is a valid child of another\n */\nexport function isValidChild(childName: string, parentName: string): boolean {\n const parent = getComponent(parentName);\n if (!parent || !parent.hasChildren) return false;\n\n if (parent.validChildren === undefined) return true;\n return parent.validChildren.includes(childName.toLowerCase());\n}\n\n/**\n * Get attribute definitions for a specific component\n */\nexport function getComponentAttributes(componentName: string): AttributeDef[] {\n const component = getComponent(componentName);\n if (!component) return ATTRIBUTES;\n\n return ATTRIBUTES.filter((attr) => component.attributes.includes(attr.name));\n}\n\n/**\n * Get all components in a category\n */\nexport function getComponentsByCategory(category: string): ComponentDef[] {\n return ALL_COMPONENTS.filter((c) => c.category === category);\n}\n\n/**\n * Get attribute type label for display\n */\nexport function getAttributeTypeLabel(attr: AttributeDef): string {\n if (attr.type === 'boolean') return 'boolean';\n if (attr.type === 'number') return 'number';\n if (attr.type === 'string' || attr.type === 'string[]') return 'string';\n if (attr.type === 'enum' && attr.values) {\n const preview = attr.values.slice(0, 3).join(' | ');\n return attr.values.length > 3 ? `${preview}...` : preview;\n }\n return attr.type;\n}\n\n/**\n * Format attribute values for display\n */\nexport function formatAttributeValues(attr: AttributeDef): string {\n if (attr.type === 'number') return 'Type: number';\n if (attr.type === 'string') return 'Type: string';\n if (attr.type === 'boolean') return 'Type: boolean (can be omitted)';\n if (attr.type === 'enum' && attr.values) {\n return `Values: ${attr.values.join(' | ')}`;\n }\n return `Type: ${attr.type}`;\n}\n\n/**\n * Check if a word is a known component\n */\nexport function isComponent(word: string): boolean {\n return COMPONENT_MAP.has(word.toLowerCase());\n}\n\n/**\n * Check if a word is a known attribute\n */\nexport function isAttribute(word: string): boolean {\n return ATTRIBUTE_MAP.has(word);\n}\n\n/**\n * Get all component names\n */\nexport function getComponentNames(): string[] {\n return ALL_COMPONENTS.map((c) => c.name);\n}\n\n/**\n * Get all attribute names\n */\nexport function getAttributeNames(): string[] {\n return ATTRIBUTES.map((a) => a.name);\n}\n\n/**\n * Get all unique categories\n */\nexport function getCategories(): string[] {\n return [...new Set(ALL_COMPONENTS.map((c) => c.category))];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACYO,IAAM,oBAAuC;AAAA;AAAA,EAElD;AAAA,EAAK;AAAA,EAAM;AAAA,EAAM;AAAA,EAAM;AAAA,EAAM;AAAA,EAAM;AAAA,EACnC;AAAA,EAAK;AAAA,EAAM;AAAA,EAAM;AAAA,EAAM;AAAA,EAAM;AAAA,EAAM;AAAA,EACnC;AAAA;AAAA,EAEA;AAAA,EAAK;AAAA,EAAK;AAAA,EAAQ;AAAA,EAAQ;AAAA,EAAQ;AAAA;AAAA,EAElC;AAAA,EAAQ;AAAA,EAAa;AAAA,EAAW;AAAA,EAAS;AAAA;AAAA,EAEz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AS,YAAY,MAAuB;AACjD,SAAO,cAAc,IAAI,KAAK,YAAY,CAAC;AAC7C;AAKO,SAAS,YAAY,MAAuB;AACjD,SAAO,cAAc,IAAI,IAAI;AAC/B;AAKO,SAAS,oBAA8B;AAC5C,SAAO,eAAe,IAAI,CAAC,MAAM,EAAE,IAAI;AACzC;AAKO,SAAS,oBAA8B;AAC5C,SAAO,WAAW,IAAI,CAAC,MAAM,EAAE,IAAI;AACrC;AAKO,SAAS,gBAA0B;AACxC,SAAO,CAAC,GAAG,IAAI,IAAI,eAAe,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAC3D;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/attributes.ts","../src/components.ts","../src/keywords.ts","../src/utils.ts"],"sourcesContent":["/**\n * @wireweave/language-data\n *\n * Language definitions and metadata for Wireweave DSL editor integrations.\n * This package is independent of @wireweave/core.\n *\n * Provides:\n * - Component and attribute definitions\n * - Editor utilities (autocomplete, validation hints)\n * - Monaco language configuration (coming soon)\n */\n\n// Types\nexport type {\n ComponentDef,\n AttributeDef,\n ComponentCategory,\n AttributeValueType,\n} from './types.js';\n\n// Data\nexport {\n ALL_COMPONENTS,\n COMPONENT_MAP,\n NODE_TYPE_MAP,\n VALID_COMPONENT_NAMES,\n} from './components.js';\nexport {\n ATTRIBUTES,\n ATTRIBUTE_MAP,\n COMMON_ATTRIBUTES,\n VALID_ATTRIBUTE_NAMES,\n} from './attributes.js';\nexport {\n CATEGORY_LABELS,\n VALUE_KEYWORDS,\n COMMON_NUMBERS,\n SPACING_SCALE,\n} from './keywords.js';\n\n// Utilities\nexport {\n getComponent,\n getComponentByNodeType,\n getAttribute,\n getValidChildren,\n isValidChild,\n getComponentAttributes,\n getComponentsByCategory,\n getAttributeTypeLabel,\n formatAttributeValues,\n isComponent,\n isAttribute,\n getComponentNames,\n getAttributeNames,\n getCategories,\n} from './utils.js';\n","/**\n * Attribute definitions for Wireweave DSL\n *\n * Complete attribute definitions for editor integrations.\n * This is the authoritative source for editor-related attribute data.\n */\n\nimport type { AttributeDef } from './types.js';\n\n/**\n * Common attributes available to most components\n */\nexport const COMMON_ATTRIBUTES: readonly string[] = [\n // Spacing\n 'p', 'px', 'py', 'pt', 'pr', 'pb', 'pl',\n 'm', 'mx', 'my', 'mt', 'mr', 'mb', 'ml',\n 'gap',\n // Size\n 'w', 'h', 'minW', 'maxW', 'minH', 'maxH',\n // Flex\n 'flex', 'direction', 'justify', 'align', 'wrap',\n // Grid\n 'span',\n // Position\n 'x', 'y',\n];\n\n/**\n * All attributes in Wireweave DSL\n */\nexport const ATTRIBUTES: AttributeDef[] = [\n // ============================================\n // Spacing Attributes\n // ============================================\n { name: 'p', type: 'number', description: 'Padding (all sides)', example: 'p=4' },\n { name: 'px', type: 'number', description: 'Horizontal padding', example: 'px=4' },\n { name: 'py', type: 'number', description: 'Vertical padding', example: 'py=4' },\n { name: 'pt', type: 'number', description: 'Top padding', example: 'pt=4' },\n { name: 'pr', type: 'number', description: 'Right padding', example: 'pr=4' },\n { name: 'pb', type: 'number', description: 'Bottom padding', example: 'pb=4' },\n { name: 'pl', type: 'number', description: 'Left padding', example: 'pl=4' },\n { name: 'm', type: 'number', description: 'Margin (all sides)', example: 'm=4' },\n { name: 'mx', type: 'string', description: 'Horizontal margin (number or \"auto\")', example: 'mx=auto' },\n { name: 'my', type: 'number', description: 'Vertical margin', example: 'my=4' },\n { name: 'mt', type: 'number', description: 'Top margin', example: 'mt=4' },\n { name: 'mr', type: 'number', description: 'Right margin', example: 'mr=4' },\n { name: 'mb', type: 'number', description: 'Bottom margin', example: 'mb=4' },\n { name: 'ml', type: 'number', description: 'Left margin', example: 'ml=4' },\n { name: 'gap', type: 'number', description: 'Gap between children', example: 'gap=4' },\n\n // ============================================\n // Size Attributes\n // ============================================\n { name: 'w', type: 'string', description: 'Width (number, \"full\", \"auto\", \"screen\", \"fit\")', example: 'w=full' },\n { name: 'h', type: 'string', description: 'Height (number, \"full\", \"auto\", \"screen\")', example: 'h=full' },\n { name: 'width', type: 'number', description: 'Width in pixels (page only)', example: 'width=400' },\n { name: 'height', type: 'number', description: 'Height in pixels (page only)', example: 'height=300' },\n { name: 'minW', type: 'number', description: 'Minimum width', example: 'minW=200' },\n { name: 'maxW', type: 'number', description: 'Maximum width', example: 'maxW=600' },\n { name: 'minH', type: 'number', description: 'Minimum height', example: 'minH=100' },\n { name: 'maxH', type: 'number', description: 'Maximum height', example: 'maxH=400' },\n\n // ============================================\n // Flex/Grid Layout Attributes\n // ============================================\n { name: 'flex', type: 'boolean', description: 'Enable flexbox', example: 'flex' },\n { name: 'direction', type: 'enum', values: ['row', 'column', 'row-reverse', 'column-reverse'], description: 'Flex direction', example: 'direction=column' },\n { name: 'justify', type: 'enum', values: ['start', 'center', 'end', 'between', 'around', 'evenly'], description: 'Main axis alignment', example: 'justify=center' },\n { name: 'align', type: 'enum', values: ['start', 'center', 'end', 'stretch', 'baseline'], description: 'Cross axis alignment', example: 'align=center' },\n { name: 'wrap', type: 'boolean', description: 'Enable flex wrap', example: 'wrap' },\n { name: 'span', type: 'number', description: 'Grid column span (1-12)', example: 'span=6' },\n { name: 'sm', type: 'number', description: 'Responsive span at 576px+', example: 'sm=6' },\n { name: 'md', type: 'number', description: 'Responsive span at 768px+', example: 'md=4' },\n { name: 'lg', type: 'number', description: 'Responsive span at 992px+', example: 'lg=3' },\n { name: 'xl', type: 'number', description: 'Responsive span at 1200px+', example: 'xl=2' },\n { name: 'order', type: 'number', description: 'Flex order', example: 'order=1' },\n\n // ============================================\n // Position Attributes\n // ============================================\n { name: 'x', type: 'number', description: 'Horizontal position', example: 'x=100' },\n { name: 'y', type: 'number', description: 'Vertical position', example: 'y=50' },\n { name: 'position', type: 'enum', values: ['left', 'right', 'top', 'bottom', 'top-left', 'top-center', 'top-right', 'bottom-left', 'bottom-center', 'bottom-right'], description: 'Position preset', example: 'position=left' },\n\n // ============================================\n // Visual Attributes\n // ============================================\n { name: 'border', type: 'boolean', description: 'Show border', example: 'border' },\n { name: 'rounded', type: 'boolean', description: 'Apply border radius', example: 'rounded' },\n { name: 'shadow', type: 'enum', values: ['none', 'sm', 'md', 'lg', 'xl'], description: 'Box shadow', example: 'shadow=md' },\n { name: 'bg', type: 'enum', values: ['muted', 'primary', 'secondary'], description: 'Background variant', example: 'bg=muted' },\n\n // ============================================\n // Text Attributes\n // ============================================\n { name: 'size', type: 'enum', values: ['xs', 'sm', 'base', 'md', 'lg', 'xl', '2xl', '3xl'], description: 'Size preset', example: 'size=lg' },\n { name: 'weight', type: 'enum', values: ['normal', 'medium', 'semibold', 'bold'], description: 'Font weight', example: 'weight=bold' },\n { name: 'level', type: 'number', description: 'Heading level (1-6)', example: 'level=2' },\n { name: 'muted', type: 'boolean', description: 'Muted/dimmed style', example: 'muted' },\n { name: 'bold', type: 'boolean', description: 'Bold text', example: 'bold' },\n\n // ============================================\n // Button Variant Attributes\n // ============================================\n { name: 'primary', type: 'boolean', description: 'Primary style', example: 'primary' },\n { name: 'secondary', type: 'boolean', description: 'Secondary style', example: 'secondary' },\n { name: 'outline', type: 'boolean', description: 'Outline style', example: 'outline' },\n { name: 'ghost', type: 'boolean', description: 'Ghost/transparent style', example: 'ghost' },\n { name: 'danger', type: 'boolean', description: 'Danger/destructive style', example: 'danger' },\n\n // ============================================\n // Status Variant Attributes\n // ============================================\n { name: 'variant', type: 'enum', values: ['default', 'primary', 'secondary', 'success', 'warning', 'danger', 'info'], description: 'Status variant', example: 'variant=success' },\n\n // ============================================\n // Form Attributes\n // ============================================\n { name: 'inputType', type: 'enum', values: ['text', 'email', 'password', 'number', 'tel', 'url', 'search', 'date'], description: 'Input field type', example: 'inputType=email' },\n { name: 'placeholder', type: 'string', description: 'Placeholder text', example: 'placeholder=\"Enter text\"' },\n { name: 'value', type: 'string', description: 'Default value', example: 'value=\"default\"' },\n { name: 'label', type: 'string', description: 'Field label', example: 'label=\"Name\"' },\n { name: 'name', type: 'string', description: 'Form field name', example: 'name=\"field\"' },\n { name: 'required', type: 'boolean', description: 'Required field', example: 'required' },\n { name: 'disabled', type: 'boolean', description: 'Disabled state', example: 'disabled' },\n { name: 'readonly', type: 'boolean', description: 'Read-only state', example: 'readonly' },\n { name: 'checked', type: 'boolean', description: 'Checked state', example: 'checked' },\n { name: 'loading', type: 'boolean', description: 'Loading state', example: 'loading' },\n { name: 'rows', type: 'number', description: 'Textarea rows', example: 'rows=4' },\n { name: 'min', type: 'number', description: 'Minimum value', example: 'min=0' },\n { name: 'max', type: 'number', description: 'Maximum value', example: 'max=100' },\n { name: 'step', type: 'number', description: 'Step increment', example: 'step=1' },\n\n // ============================================\n // Content Attributes\n // ============================================\n { name: 'title', type: 'string', description: 'Title text', example: 'title=\"Title\"' },\n { name: 'src', type: 'string', description: 'Source URL', example: 'src=\"/image.png\"' },\n { name: 'alt', type: 'string', description: 'Alt text', example: 'alt=\"Image\"' },\n { name: 'href', type: 'string', description: 'Link URL', example: 'href=\"/path\"' },\n { name: 'icon', type: 'string', description: 'Icon name', example: 'icon=\"home\"' },\n { name: 'external', type: 'boolean', description: 'External link', example: 'external' },\n\n // ============================================\n // State Attributes\n // ============================================\n { name: 'active', type: 'number', description: 'Active index', example: 'active=0' },\n { name: 'expanded', type: 'boolean', description: 'Expanded state', example: 'expanded' },\n { name: 'centered', type: 'boolean', description: 'Center content', example: 'centered' },\n { name: 'vertical', type: 'boolean', description: 'Vertical orientation', example: 'vertical' },\n { name: 'scroll', type: 'boolean', description: 'Enable scrolling', example: 'scroll' },\n\n // ============================================\n // Feedback Attributes\n // ============================================\n { name: 'dismissible', type: 'boolean', description: 'Can be dismissed', example: 'dismissible' },\n { name: 'indeterminate', type: 'boolean', description: 'Indeterminate state', example: 'indeterminate' },\n { name: 'pill', type: 'boolean', description: 'Pill/rounded style', example: 'pill' },\n\n // ============================================\n // Data Attributes\n // ============================================\n { name: 'striped', type: 'boolean', description: 'Striped rows', example: 'striped' },\n { name: 'bordered', type: 'boolean', description: 'Full borders', example: 'bordered' },\n { name: 'hover', type: 'boolean', description: 'Hover effect', example: 'hover' },\n { name: 'ordered', type: 'boolean', description: 'Ordered list', example: 'ordered' },\n { name: 'none', type: 'boolean', description: 'No list markers', example: 'none' },\n\n // ============================================\n // Page/Viewport Attributes\n // ============================================\n { name: 'viewport', type: 'string', description: 'Viewport size (e.g., \"1440x900\")', example: 'viewport=\"1440x900\"' },\n { name: 'device', type: 'string', description: 'Device preset', example: 'device=\"iphone14\"' },\n\n // ============================================\n // Interactive Attributes\n // ============================================\n { name: 'navigate', type: 'string', description: 'Navigation target URL or page', example: 'navigate=\"/dashboard\"' },\n { name: 'opens', type: 'string', description: 'Opens a modal, drawer, or popup', example: 'opens=\"settings-modal\"' },\n { name: 'toggles', type: 'string', description: 'Toggles visibility of an element', example: 'toggles=\"menu\"' },\n { name: 'action', type: 'string', description: 'Action identifier for event handling', example: 'action=\"submit-form\"' },\n\n // ============================================\n // Annotation Attributes\n // ============================================\n { name: 'anchor', type: 'enum', values: ['top-left', 'top-center', 'top-right', 'center-left', 'center', 'center-right', 'bottom-left', 'bottom-center', 'bottom-right'], description: 'Anchor position for marker in relative container', example: 'anchor=top-right' },\n { name: 'color', type: 'enum', values: ['blue', 'red', 'green', 'yellow', 'purple', 'orange'], description: 'Marker color', example: 'color=blue' },\n];\n\n/**\n * Map of attribute name to definition for quick lookup\n */\nexport const ATTRIBUTE_MAP: Map<string, AttributeDef> = new Map(\n ATTRIBUTES.map((attr) => [attr.name, attr])\n);\n\n/**\n * Set of all valid attribute names\n */\nexport const VALID_ATTRIBUTE_NAMES: ReadonlySet<string> = new Set(\n ATTRIBUTES.map((attr) => attr.name)\n);\n","/**\n * Component definitions for Wireweave DSL\n *\n * Complete component definitions for editor integrations.\n * This is the authoritative source for editor-related component data.\n */\n\nimport type { ComponentDef } from './types.js';\nimport { COMMON_ATTRIBUTES } from './attributes.js';\n\n/**\n * All components in Wireweave DSL\n */\nexport const ALL_COMPONENTS: ComponentDef[] = [\n // ============================================\n // Layout Components\n // ============================================\n {\n name: 'page',\n nodeType: 'Page',\n category: 'layout',\n attributes: [...COMMON_ATTRIBUTES, 'title', 'width', 'height', 'viewport', 'device', 'centered'],\n hasChildren: true,\n description: 'Root container for a wireframe page',\n example: 'page \"Dashboard\" centered { ... }',\n validChildren: ['header', 'main', 'footer', 'sidebar', 'section', 'nav', 'row', 'col', 'card'],\n validParents: [],\n },\n {\n name: 'header',\n nodeType: 'Header',\n category: 'layout',\n attributes: [...COMMON_ATTRIBUTES, 'border'],\n hasChildren: true,\n description: 'Page header section',\n example: 'header h=56 border { ... }',\n validParents: ['page'],\n },\n {\n name: 'main',\n nodeType: 'Main',\n category: 'layout',\n attributes: [...COMMON_ATTRIBUTES, 'scroll'],\n hasChildren: true,\n description: 'Main content section',\n example: 'main p=6 scroll { ... }',\n validParents: ['page'],\n },\n {\n name: 'footer',\n nodeType: 'Footer',\n category: 'layout',\n attributes: [...COMMON_ATTRIBUTES, 'border'],\n hasChildren: true,\n description: 'Page footer section',\n example: 'footer h=48 border { ... }',\n validParents: ['page'],\n },\n {\n name: 'sidebar',\n nodeType: 'Sidebar',\n category: 'layout',\n attributes: [...COMMON_ATTRIBUTES, 'position', 'border', 'bg'],\n hasChildren: true,\n description: 'Side navigation or content area',\n example: 'sidebar w=240 border { ... }',\n validParents: ['page'],\n },\n {\n name: 'section',\n nodeType: 'Section',\n category: 'layout',\n attributes: [...COMMON_ATTRIBUTES, 'title', 'expanded'],\n hasChildren: true,\n description: 'Grouped content section',\n example: 'section \"Settings\" expanded { ... }',\n },\n\n // ============================================\n // Grid Components\n // ============================================\n {\n name: 'row',\n nodeType: 'Row',\n category: 'grid',\n attributes: [...COMMON_ATTRIBUTES, 'border', 'bg'],\n hasChildren: true,\n description: 'Horizontal flex container',\n example: 'row flex gap=4 justify=between { ... }',\n },\n {\n name: 'col',\n nodeType: 'Col',\n category: 'grid',\n attributes: [...COMMON_ATTRIBUTES, 'sm', 'md', 'lg', 'xl', 'order', 'border', 'bg', 'scroll'],\n hasChildren: true,\n description: 'Vertical flex container or grid column',\n example: 'col span=6 md=4 { ... }',\n },\n {\n name: 'stack',\n nodeType: 'Stack',\n category: 'grid',\n attributes: [...COMMON_ATTRIBUTES, 'border', 'bg'],\n hasChildren: true,\n description: 'Vertical stack that only takes content height (unlike col which fills)',\n example: 'stack gap=4 align=center { ... }',\n },\n {\n name: 'relative',\n nodeType: 'Relative',\n category: 'grid',\n attributes: [...COMMON_ATTRIBUTES],\n hasChildren: true,\n description: 'Container for overlaying elements with absolute positioning',\n example: 'relative { button \"Submit\" marker 1 anchor=top-right }',\n },\n\n // ============================================\n // Container Components\n // ============================================\n {\n name: 'card',\n nodeType: 'Card',\n category: 'container',\n attributes: [...COMMON_ATTRIBUTES, 'title', 'shadow', 'border', 'rounded'],\n hasChildren: true,\n description: 'Card container with optional title',\n example: 'card \"Settings\" p=4 shadow=md { ... }',\n },\n {\n name: 'modal',\n nodeType: 'Modal',\n category: 'container',\n attributes: [...COMMON_ATTRIBUTES, 'title'],\n hasChildren: true,\n description: 'Modal dialog overlay',\n example: 'modal \"Confirm\" w=400 { ... }',\n },\n {\n name: 'drawer',\n nodeType: 'Drawer',\n category: 'container',\n attributes: [...COMMON_ATTRIBUTES, 'title', 'position'],\n hasChildren: true,\n description: 'Slide-in drawer panel',\n example: 'drawer \"Menu\" position=left { ... }',\n },\n {\n name: 'accordion',\n nodeType: 'Accordion',\n category: 'container',\n attributes: [...COMMON_ATTRIBUTES, 'title'],\n hasChildren: true,\n description: 'Collapsible sections container',\n example: 'accordion { section \"FAQ 1\" { ... } }',\n },\n\n // ============================================\n // Text Components\n // ============================================\n {\n name: 'text',\n nodeType: 'Text',\n category: 'text',\n attributes: [...COMMON_ATTRIBUTES, 'size', 'weight', 'muted', 'bold'],\n hasChildren: false,\n description: 'Text content',\n example: 'text \"Hello World\" size=lg weight=bold',\n },\n {\n name: 'title',\n nodeType: 'Title',\n category: 'text',\n attributes: [...COMMON_ATTRIBUTES, 'level', 'size'],\n hasChildren: false,\n description: 'Heading element (h1-h6)',\n example: 'title \"Welcome\" level=2',\n },\n {\n name: 'link',\n nodeType: 'Link',\n category: 'text',\n attributes: [...COMMON_ATTRIBUTES, 'href', 'external'],\n hasChildren: false,\n description: 'Hyperlink text',\n example: 'link \"Learn more\" href=\"/docs\" external',\n },\n\n // ============================================\n // Input Components\n // ============================================\n {\n name: 'input',\n nodeType: 'Input',\n category: 'input',\n attributes: [...COMMON_ATTRIBUTES, 'label', 'inputType', 'placeholder', 'value', 'disabled', 'required', 'readonly', 'icon', 'size', 'rounded'],\n hasChildren: false,\n description: 'Text input field',\n example: 'input \"Email\" inputType=email placeholder=\"user@example.com\" required',\n },\n {\n name: 'textarea',\n nodeType: 'Textarea',\n category: 'input',\n attributes: [...COMMON_ATTRIBUTES, 'label', 'placeholder', 'value', 'rows', 'disabled', 'required'],\n hasChildren: false,\n description: 'Multi-line text input',\n example: 'textarea \"Description\" rows=4 placeholder=\"Enter description...\"',\n },\n {\n name: 'select',\n nodeType: 'Select',\n category: 'input',\n attributes: [...COMMON_ATTRIBUTES, 'label', 'placeholder', 'value', 'disabled', 'required'],\n hasChildren: false,\n description: 'Dropdown select',\n example: 'select \"Country\" [\"USA\", \"Canada\", \"UK\"] placeholder=\"Select...\"',\n },\n {\n name: 'checkbox',\n nodeType: 'Checkbox',\n category: 'input',\n attributes: [...COMMON_ATTRIBUTES, 'label', 'checked', 'disabled'],\n hasChildren: false,\n description: 'Checkbox input',\n example: 'checkbox \"I agree to terms\" checked',\n },\n {\n name: 'radio',\n nodeType: 'Radio',\n category: 'input',\n attributes: [...COMMON_ATTRIBUTES, 'label', 'name', 'checked', 'disabled'],\n hasChildren: false,\n description: 'Radio button input',\n example: 'radio \"Option A\" name=\"choice\" checked',\n },\n {\n name: 'switch',\n nodeType: 'Switch',\n category: 'input',\n attributes: [...COMMON_ATTRIBUTES, 'label', 'checked', 'disabled'],\n hasChildren: false,\n description: 'Toggle switch',\n example: 'switch \"Dark mode\" checked',\n },\n {\n name: 'slider',\n nodeType: 'Slider',\n category: 'input',\n attributes: [...COMMON_ATTRIBUTES, 'label', 'min', 'max', 'value', 'step', 'disabled'],\n hasChildren: false,\n description: 'Range slider',\n example: 'slider \"Volume\" min=0 max=100 value=50',\n },\n {\n name: 'button',\n nodeType: 'Button',\n category: 'input',\n attributes: [...COMMON_ATTRIBUTES, 'primary', 'secondary', 'outline', 'ghost', 'danger', 'size', 'icon', 'disabled', 'loading'],\n hasChildren: false,\n description: 'Clickable button',\n example: 'button \"Submit\" primary icon=send',\n },\n\n // ============================================\n // Display Components\n // ============================================\n {\n name: 'image',\n nodeType: 'Image',\n category: 'display',\n attributes: [...COMMON_ATTRIBUTES, 'src', 'alt'],\n hasChildren: false,\n description: 'Image placeholder',\n example: 'image w=200 h=150',\n },\n {\n name: 'placeholder',\n nodeType: 'Placeholder',\n category: 'display',\n attributes: [...COMMON_ATTRIBUTES, 'label'],\n hasChildren: true,\n description: 'Generic placeholder',\n example: 'placeholder \"Banner Image\" w=full h=200 { ... }',\n },\n {\n name: 'avatar',\n nodeType: 'Avatar',\n category: 'display',\n attributes: [...COMMON_ATTRIBUTES, 'name', 'src', 'size'],\n hasChildren: false,\n description: 'User avatar',\n example: 'avatar \"John Doe\" size=lg',\n },\n {\n name: 'badge',\n nodeType: 'Badge',\n category: 'display',\n attributes: [...COMMON_ATTRIBUTES, 'variant', 'pill', 'icon', 'size'],\n hasChildren: false,\n description: 'Status badge',\n example: 'badge \"New\" variant=success pill',\n },\n {\n name: 'icon',\n nodeType: 'Icon',\n category: 'display',\n attributes: [...COMMON_ATTRIBUTES, 'size', 'muted'],\n hasChildren: false,\n description: 'Lucide icon',\n example: 'icon \"settings\" size=lg',\n },\n\n // ============================================\n // Data Components\n // ============================================\n {\n name: 'table',\n nodeType: 'Table',\n category: 'data',\n attributes: [...COMMON_ATTRIBUTES, 'striped', 'bordered', 'hover'],\n hasChildren: false,\n description: 'Data table',\n example: 'table striped bordered { columns [\"Name\", \"Email\"] row [\"John\", \"john@example.com\"] }',\n },\n {\n name: 'list',\n nodeType: 'List',\n category: 'data',\n attributes: [...COMMON_ATTRIBUTES, 'ordered', 'none'],\n hasChildren: false,\n description: 'List of items',\n example: 'list ordered [\"First\", \"Second\", \"Third\"]',\n },\n\n // ============================================\n // Feedback Components\n // ============================================\n {\n name: 'alert',\n nodeType: 'Alert',\n category: 'feedback',\n attributes: [...COMMON_ATTRIBUTES, 'variant', 'dismissible', 'icon'],\n hasChildren: false,\n description: 'Alert message',\n example: 'alert \"Changes saved!\" variant=success',\n },\n {\n name: 'toast',\n nodeType: 'Toast',\n category: 'feedback',\n attributes: [...COMMON_ATTRIBUTES, 'position', 'variant'],\n hasChildren: false,\n description: 'Toast notification',\n example: 'toast \"Item deleted\" position=bottom-right variant=danger',\n },\n {\n name: 'progress',\n nodeType: 'Progress',\n category: 'feedback',\n attributes: [...COMMON_ATTRIBUTES, 'value', 'max', 'label', 'indeterminate'],\n hasChildren: false,\n description: 'Progress bar',\n example: 'progress value=75 label=\"Uploading...\"',\n },\n {\n name: 'spinner',\n nodeType: 'Spinner',\n category: 'feedback',\n attributes: [...COMMON_ATTRIBUTES, 'label', 'size'],\n hasChildren: false,\n description: 'Loading spinner',\n example: 'spinner size=lg',\n },\n\n // ============================================\n // Overlay Components\n // ============================================\n {\n name: 'tooltip',\n nodeType: 'Tooltip',\n category: 'overlay',\n attributes: [...COMMON_ATTRIBUTES, 'position'],\n hasChildren: false,\n description: 'Tooltip on hover',\n example: 'tooltip \"More info\" position=top { icon \"help-circle\" }',\n },\n {\n name: 'popover',\n nodeType: 'Popover',\n category: 'overlay',\n attributes: [...COMMON_ATTRIBUTES, 'title'],\n hasChildren: true,\n description: 'Popover panel',\n example: 'popover \"Details\" { ... }',\n },\n {\n name: 'dropdown',\n nodeType: 'Dropdown',\n category: 'overlay',\n attributes: [...COMMON_ATTRIBUTES],\n hasChildren: false,\n description: 'Dropdown menu',\n example: 'dropdown { item \"Edit\" icon=edit item \"Delete\" icon=trash danger }',\n },\n\n // ============================================\n // Navigation Components\n // ============================================\n {\n name: 'nav',\n nodeType: 'Nav',\n category: 'navigation',\n attributes: [...COMMON_ATTRIBUTES, 'vertical'],\n hasChildren: false,\n description: 'Navigation menu',\n example: 'nav [{ label=\"Home\" icon=home active }, { label=\"Settings\" icon=settings }] vertical',\n },\n {\n name: 'tabs',\n nodeType: 'Tabs',\n category: 'navigation',\n attributes: [...COMMON_ATTRIBUTES, 'active'],\n hasChildren: true,\n description: 'Tab navigation',\n example: 'tabs { tab \"General\" active { ... } tab \"Advanced\" { ... } }',\n },\n {\n name: 'breadcrumb',\n nodeType: 'Breadcrumb',\n category: 'navigation',\n attributes: [...COMMON_ATTRIBUTES],\n hasChildren: false,\n description: 'Breadcrumb navigation',\n example: 'breadcrumb [{ label=\"Home\" href=\"/\" }, { label=\"Products\" }, { label=\"Details\" }]',\n },\n\n // ============================================\n // Divider Component\n // ============================================\n {\n name: 'divider',\n nodeType: 'Divider',\n category: 'layout',\n attributes: [...COMMON_ATTRIBUTES, 'vertical'],\n hasChildren: false,\n description: 'Horizontal separator',\n example: 'divider my=4',\n },\n\n // ============================================\n // Annotation Components\n // ============================================\n {\n name: 'marker',\n nodeType: 'Marker',\n category: 'annotation',\n attributes: [...COMMON_ATTRIBUTES, 'color', 'anchor'],\n hasChildren: false,\n description: 'Number marker for referencing in annotations',\n example: 'marker 1 anchor=top-right color=blue',\n },\n {\n name: 'annotations',\n nodeType: 'Annotations',\n category: 'annotation',\n attributes: [...COMMON_ATTRIBUTES, 'title'],\n hasChildren: true,\n description: 'Documentation panel for screen specifications',\n example: 'annotations title=\"화면 설명\" { item 1 \"제목\" { text \"설명\" } }',\n validChildren: ['item'],\n },\n {\n name: 'item',\n nodeType: 'AnnotationItem',\n category: 'annotation',\n attributes: [],\n hasChildren: true,\n description: 'Individual annotation entry with marker number and title',\n example: 'item 1 \"로그인 버튼\" { text \"OAuth 연동 예정\" }',\n validParents: ['annotations'],\n },\n];\n\n/**\n * Map of component name to definition for quick lookup\n */\nexport const COMPONENT_MAP: Map<string, ComponentDef> = new Map(\n ALL_COMPONENTS.map((comp) => [comp.name, comp])\n);\n\n/**\n * Map of AST node type to definition for quick lookup\n */\nexport const NODE_TYPE_MAP: Map<string, ComponentDef> = new Map(\n ALL_COMPONENTS.map((comp) => [comp.nodeType, comp])\n);\n\n/**\n * Set of all valid component names\n */\nexport const VALID_COMPONENT_NAMES: ReadonlySet<string> = new Set(\n ALL_COMPONENTS.map((comp) => comp.name)\n);\n","/**\n * Keywords and labels for Wireweave DSL\n */\n\nimport type { ComponentCategory } from './types.js';\n\n// Category labels for display\nexport const CATEGORY_LABELS: Record<ComponentCategory, string> = {\n layout: 'Layout',\n container: 'Container',\n grid: 'Grid',\n text: 'Text',\n input: 'Input',\n display: 'Display',\n data: 'Data',\n feedback: 'Feedback',\n overlay: 'Overlay',\n navigation: 'Navigation',\n annotation: 'Annotation',\n};\n\n// Value keywords used in the language\nexport const VALUE_KEYWORDS = [\n // Booleans\n 'true',\n 'false',\n\n // Button variants\n 'primary',\n 'secondary',\n 'outline',\n 'ghost',\n\n // Status variants\n 'success',\n 'danger',\n 'warning',\n 'info',\n 'default',\n\n // Sizes\n 'xs',\n 'sm',\n 'md',\n 'lg',\n 'xl',\n 'base',\n '2xl',\n '3xl',\n\n // Flex alignment\n 'start',\n 'center',\n 'end',\n 'between',\n 'around',\n 'evenly',\n 'stretch',\n 'baseline',\n\n // Positions\n 'left',\n 'right',\n 'top',\n 'bottom',\n 'top-left',\n 'top-center',\n 'top-right',\n 'bottom-left',\n 'bottom-center',\n 'bottom-right',\n 'center-left',\n 'center-right',\n\n // Marker colors\n 'blue',\n 'red',\n 'green',\n 'yellow',\n 'purple',\n 'orange',\n\n // Sizing\n 'full',\n 'auto',\n 'screen',\n 'fit',\n\n // Font weights\n 'normal',\n 'medium',\n 'semibold',\n 'bold',\n\n // Input types\n 'text',\n 'email',\n 'password',\n 'number',\n 'tel',\n 'url',\n 'search',\n 'date',\n\n // Flex direction\n 'row',\n 'column',\n 'row-reverse',\n 'column-reverse',\n\n // List\n 'none',\n 'nowrap',\n];\n\n// Common number suggestions for attributes\nexport const COMMON_NUMBERS = [0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24, 32, 48, 64];\n\n// Spacing scale (4px base)\nexport const SPACING_SCALE: Record<number, string> = {\n 0: '0px',\n 1: '4px',\n 2: '8px',\n 3: '12px',\n 4: '16px',\n 5: '20px',\n 6: '24px',\n 8: '32px',\n 10: '40px',\n 12: '48px',\n 16: '64px',\n 20: '80px',\n 24: '96px',\n};\n","/**\n * Utility functions for Wireweave language data\n */\n\nimport type { ComponentDef, AttributeDef } from './types.js';\nimport { ALL_COMPONENTS, COMPONENT_MAP, NODE_TYPE_MAP } from './components.js';\nimport { ATTRIBUTES, ATTRIBUTE_MAP } from './attributes.js';\n\n/**\n * Get component definition by name\n */\nexport function getComponent(name: string): ComponentDef | undefined {\n return COMPONENT_MAP.get(name.toLowerCase());\n}\n\n/**\n * Get component definition by AST node type\n */\nexport function getComponentByNodeType(nodeType: string): ComponentDef | undefined {\n return NODE_TYPE_MAP.get(nodeType);\n}\n\n/**\n * Get attribute definition by name\n */\nexport function getAttribute(name: string): AttributeDef | undefined {\n return ATTRIBUTE_MAP.get(name);\n}\n\n/**\n * Get valid child components for a parent component\n */\nexport function getValidChildren(componentName: string): ComponentDef[] {\n const component = getComponent(componentName);\n if (!component || !component.hasChildren) return [];\n\n if (component.validChildren === undefined) {\n // All components except page are valid children\n return ALL_COMPONENTS.filter((c) => c.name !== 'page');\n }\n\n return component.validChildren\n .map((name) => getComponent(name))\n .filter((c): c is ComponentDef => c !== undefined);\n}\n\n/**\n * Check if a component is a valid child of another\n */\nexport function isValidChild(childName: string, parentName: string): boolean {\n const parent = getComponent(parentName);\n if (!parent || !parent.hasChildren) return false;\n\n if (parent.validChildren === undefined) return true;\n return parent.validChildren.includes(childName.toLowerCase());\n}\n\n/**\n * Get attribute definitions for a specific component\n */\nexport function getComponentAttributes(componentName: string): AttributeDef[] {\n const component = getComponent(componentName);\n if (!component) return ATTRIBUTES;\n\n return ATTRIBUTES.filter((attr) => component.attributes.includes(attr.name));\n}\n\n/**\n * Get all components in a category\n */\nexport function getComponentsByCategory(category: string): ComponentDef[] {\n return ALL_COMPONENTS.filter((c) => c.category === category);\n}\n\n/**\n * Get attribute type label for display\n */\nexport function getAttributeTypeLabel(attr: AttributeDef): string {\n if (attr.type === 'boolean') return 'boolean';\n if (attr.type === 'number') return 'number';\n if (attr.type === 'string' || attr.type === 'string[]') return 'string';\n if (attr.type === 'enum' && attr.values) {\n const preview = attr.values.slice(0, 3).join(' | ');\n return attr.values.length > 3 ? `${preview}...` : preview;\n }\n return attr.type;\n}\n\n/**\n * Format attribute values for display\n */\nexport function formatAttributeValues(attr: AttributeDef): string {\n if (attr.type === 'number') return 'Type: number';\n if (attr.type === 'string') return 'Type: string';\n if (attr.type === 'boolean') return 'Type: boolean (can be omitted)';\n if (attr.type === 'enum' && attr.values) {\n return `Values: ${attr.values.join(' | ')}`;\n }\n return `Type: ${attr.type}`;\n}\n\n/**\n * Check if a word is a known component\n */\nexport function isComponent(word: string): boolean {\n return COMPONENT_MAP.has(word.toLowerCase());\n}\n\n/**\n * Check if a word is a known attribute\n */\nexport function isAttribute(word: string): boolean {\n return ATTRIBUTE_MAP.has(word);\n}\n\n/**\n * Get all component names\n */\nexport function getComponentNames(): string[] {\n return ALL_COMPONENTS.map((c) => c.name);\n}\n\n/**\n * Get all attribute names\n */\nexport function getAttributeNames(): string[] {\n return ATTRIBUTES.map((a) => a.name);\n}\n\n/**\n * Get all unique categories\n */\nexport function getCategories(): string[] {\n return [...new Set(ALL_COMPONENTS.map((c) => c.category))];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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S,YAAY,KAAK,SAAS,WAAY,QAAO;AAC/D,MAAI,KAAK,SAAS,UAAU,KAAK,QAAQ;AACvC,UAAM,UAAU,KAAK,OAAO,MAAM,GAAG,CAAC,EAAE,KAAK,KAAK;AAClD,WAAO,KAAK,OAAO,SAAS,IAAI,GAAG,OAAO,QAAQ;AAAA,EACpD;AACA,SAAO,KAAK;AACd;AAKO,SAAS,sBAAsB,MAA4B;AAChE,MAAI,KAAK,SAAS,SAAU,QAAO;AACnC,MAAI,KAAK,SAAS,SAAU,QAAO;AACnC,MAAI,KAAK,SAAS,UAAW,QAAO;AACpC,MAAI,KAAK,SAAS,UAAU,KAAK,QAAQ;AACvC,WAAO,WAAW,KAAK,OAAO,KAAK,KAAK,CAAC;AAAA,EAC3C;AACA,SAAO,SAAS,KAAK,IAAI;AAC3B;AAKO,SAAS,YAAY,MAAuB;AACjD,SAAO,cAAc,IAAI,KAAK,YAAY,CAAC;AAC7C;AAKO,SAAS,YAAY,MAAuB;AACjD,SAAO,cAAc,IAAI,IAAI;AAC/B;AAKO,SAAS,oBAA8B;AAC5C,SAAO,eAAe,IAAI,CAAC,MAAM,EAAE,IAAI;AACzC;AAKO,SAAS,oBAA8B;AAC5C,SAAO,WAAW,IAAI,CAAC,MAAM,EAAE,IAAI;AACrC;AAKO,SAAS,gBAA0B;AACxC,SAAO,CAAC,GAAG,IAAI,IAAI,eAAe,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAC3D;","names":[]}
|
package/dist/index.d.cts
CHANGED
|
@@ -11,7 +11,7 @@ type AttributeValueType = 'boolean' | 'number' | 'string' | 'string[]' | 'enum';
|
|
|
11
11
|
/**
|
|
12
12
|
* Component category
|
|
13
13
|
*/
|
|
14
|
-
type ComponentCategory = 'layout' | 'grid' | 'container' | 'text' | 'input' | 'display' | 'data' | 'feedback' | 'overlay' | 'navigation';
|
|
14
|
+
type ComponentCategory = 'layout' | 'grid' | 'container' | 'text' | 'input' | 'display' | 'data' | 'feedback' | 'overlay' | 'navigation' | 'annotation';
|
|
15
15
|
/**
|
|
16
16
|
* Component definition for editors
|
|
17
17
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ type AttributeValueType = 'boolean' | 'number' | 'string' | 'string[]' | 'enum';
|
|
|
11
11
|
/**
|
|
12
12
|
* Component category
|
|
13
13
|
*/
|
|
14
|
-
type ComponentCategory = 'layout' | 'grid' | 'container' | 'text' | 'input' | 'display' | 'data' | 'feedback' | 'overlay' | 'navigation';
|
|
14
|
+
type ComponentCategory = 'layout' | 'grid' | 'container' | 'text' | 'input' | 'display' | 'data' | 'feedback' | 'overlay' | 'navigation' | 'annotation';
|
|
15
15
|
/**
|
|
16
16
|
* Component definition for editors
|
|
17
17
|
*/
|
package/dist/index.js
CHANGED
|
@@ -171,7 +171,12 @@ var ATTRIBUTES = [
|
|
|
171
171
|
{ name: "navigate", type: "string", description: "Navigation target URL or page", example: 'navigate="/dashboard"' },
|
|
172
172
|
{ name: "opens", type: "string", description: "Opens a modal, drawer, or popup", example: 'opens="settings-modal"' },
|
|
173
173
|
{ name: "toggles", type: "string", description: "Toggles visibility of an element", example: 'toggles="menu"' },
|
|
174
|
-
{ name: "action", type: "string", description: "Action identifier for event handling", example: 'action="submit-form"' }
|
|
174
|
+
{ name: "action", type: "string", description: "Action identifier for event handling", example: 'action="submit-form"' },
|
|
175
|
+
// ============================================
|
|
176
|
+
// Annotation Attributes
|
|
177
|
+
// ============================================
|
|
178
|
+
{ name: "anchor", type: "enum", values: ["top-left", "top-center", "top-right", "center-left", "center", "center-right", "bottom-left", "bottom-center", "bottom-right"], description: "Anchor position for marker in relative container", example: "anchor=top-right" },
|
|
179
|
+
{ name: "color", type: "enum", values: ["blue", "red", "green", "yellow", "purple", "orange"], description: "Marker color", example: "color=blue" }
|
|
175
180
|
];
|
|
176
181
|
var ATTRIBUTE_MAP = new Map(
|
|
177
182
|
ATTRIBUTES.map((attr) => [attr.name, attr])
|
|
@@ -266,6 +271,24 @@ var ALL_COMPONENTS = [
|
|
|
266
271
|
description: "Vertical flex container or grid column",
|
|
267
272
|
example: "col span=6 md=4 { ... }"
|
|
268
273
|
},
|
|
274
|
+
{
|
|
275
|
+
name: "stack",
|
|
276
|
+
nodeType: "Stack",
|
|
277
|
+
category: "grid",
|
|
278
|
+
attributes: [...COMMON_ATTRIBUTES, "border", "bg"],
|
|
279
|
+
hasChildren: true,
|
|
280
|
+
description: "Vertical stack that only takes content height (unlike col which fills)",
|
|
281
|
+
example: "stack gap=4 align=center { ... }"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
name: "relative",
|
|
285
|
+
nodeType: "Relative",
|
|
286
|
+
category: "grid",
|
|
287
|
+
attributes: [...COMMON_ATTRIBUTES],
|
|
288
|
+
hasChildren: true,
|
|
289
|
+
description: "Container for overlaying elements with absolute positioning",
|
|
290
|
+
example: 'relative { button "Submit" marker 1 anchor=top-right }'
|
|
291
|
+
},
|
|
269
292
|
// ============================================
|
|
270
293
|
// Container Components
|
|
271
294
|
// ============================================
|
|
@@ -589,6 +612,38 @@ var ALL_COMPONENTS = [
|
|
|
589
612
|
hasChildren: false,
|
|
590
613
|
description: "Horizontal separator",
|
|
591
614
|
example: "divider my=4"
|
|
615
|
+
},
|
|
616
|
+
// ============================================
|
|
617
|
+
// Annotation Components
|
|
618
|
+
// ============================================
|
|
619
|
+
{
|
|
620
|
+
name: "marker",
|
|
621
|
+
nodeType: "Marker",
|
|
622
|
+
category: "annotation",
|
|
623
|
+
attributes: [...COMMON_ATTRIBUTES, "color", "anchor"],
|
|
624
|
+
hasChildren: false,
|
|
625
|
+
description: "Number marker for referencing in annotations",
|
|
626
|
+
example: "marker 1 anchor=top-right color=blue"
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
name: "annotations",
|
|
630
|
+
nodeType: "Annotations",
|
|
631
|
+
category: "annotation",
|
|
632
|
+
attributes: [...COMMON_ATTRIBUTES, "title"],
|
|
633
|
+
hasChildren: true,
|
|
634
|
+
description: "Documentation panel for screen specifications",
|
|
635
|
+
example: 'annotations title="\uD654\uBA74 \uC124\uBA85" { item 1 "\uC81C\uBAA9" { text "\uC124\uBA85" } }',
|
|
636
|
+
validChildren: ["item"]
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
name: "item",
|
|
640
|
+
nodeType: "AnnotationItem",
|
|
641
|
+
category: "annotation",
|
|
642
|
+
attributes: [],
|
|
643
|
+
hasChildren: true,
|
|
644
|
+
description: "Individual annotation entry with marker number and title",
|
|
645
|
+
example: 'item 1 "\uB85C\uADF8\uC778 \uBC84\uD2BC" { text "OAuth \uC5F0\uB3D9 \uC608\uC815" }',
|
|
646
|
+
validParents: ["annotations"]
|
|
592
647
|
}
|
|
593
648
|
];
|
|
594
649
|
var COMPONENT_MAP = new Map(
|
|
@@ -612,7 +667,8 @@ var CATEGORY_LABELS = {
|
|
|
612
667
|
data: "Data",
|
|
613
668
|
feedback: "Feedback",
|
|
614
669
|
overlay: "Overlay",
|
|
615
|
-
navigation: "Navigation"
|
|
670
|
+
navigation: "Navigation",
|
|
671
|
+
annotation: "Annotation"
|
|
616
672
|
};
|
|
617
673
|
var VALUE_KEYWORDS = [
|
|
618
674
|
// Booleans
|
|
@@ -658,6 +714,15 @@ var VALUE_KEYWORDS = [
|
|
|
658
714
|
"bottom-left",
|
|
659
715
|
"bottom-center",
|
|
660
716
|
"bottom-right",
|
|
717
|
+
"center-left",
|
|
718
|
+
"center-right",
|
|
719
|
+
// Marker colors
|
|
720
|
+
"blue",
|
|
721
|
+
"red",
|
|
722
|
+
"green",
|
|
723
|
+
"yellow",
|
|
724
|
+
"purple",
|
|
725
|
+
"orange",
|
|
661
726
|
// Sizing
|
|
662
727
|
"full",
|
|
663
728
|
"auto",
|