@wireweave/core 3.1.0-beta.2 → 3.1.0-beta.4
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/index.cjs +6934 -4571
- package/dist/index.d.cts +307 -13
- package/dist/index.d.ts +307 -13
- package/dist/index.js +6919 -4571
- package/dist/parser.cjs +1896 -927
- package/dist/parser.d.cts +1 -1
- package/dist/parser.d.ts +1 -1
- package/dist/parser.js +1896 -927
- package/dist/renderer.cjs +1506 -166
- package/dist/renderer.d.cts +103 -5
- package/dist/renderer.d.ts +103 -5
- package/dist/renderer.js +1505 -166
- package/dist/{types-BDaNyWMR.d.cts → types-Bb3NSNUs.d.cts} +89 -7
- package/dist/{types-BDaNyWMR.d.ts → types-Bb3NSNUs.d.ts} +89 -7
- package/package.json +4 -2
|
@@ -94,13 +94,59 @@ interface AppearanceProps {
|
|
|
94
94
|
bg?: 'muted' | 'primary' | 'secondary';
|
|
95
95
|
border?: boolean;
|
|
96
96
|
}
|
|
97
|
-
interface CommonProps extends SpacingProps, SizeProps, FlexProps, GridProps, PositionProps, AppearanceProps {
|
|
97
|
+
interface CommonProps extends SpacingProps, SizeProps, FlexProps, GridProps, PositionProps, AppearanceProps, GuardedOutcomeProps {
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
100
|
* Interactive properties for components that can trigger actions.
|
|
101
101
|
* Used for buttons, links, avatars, icons, and other clickable elements.
|
|
102
102
|
*/
|
|
103
|
-
|
|
103
|
+
/** Scalar values supported by the deterministic prototype state store. */
|
|
104
|
+
type StateValue = string | number | boolean;
|
|
105
|
+
/** Closed scalar types supported by a state declaration. */
|
|
106
|
+
type StateValueType = 'string' | 'number' | 'boolean';
|
|
107
|
+
/** One typed state value and the value it resets to. */
|
|
108
|
+
interface StateDeclaration {
|
|
109
|
+
name: string;
|
|
110
|
+
valueType: StateValueType;
|
|
111
|
+
initial: StateValue;
|
|
112
|
+
}
|
|
113
|
+
/** Equality is the only guard operation: small, typed, and deterministic. */
|
|
114
|
+
interface StateGuard {
|
|
115
|
+
state: string;
|
|
116
|
+
equals: StateValue;
|
|
117
|
+
}
|
|
118
|
+
/** State-controlled render outcomes available on every ordinary node. */
|
|
119
|
+
interface GuardedOutcomeProps {
|
|
120
|
+
visibleWhen?: StateGuard;
|
|
121
|
+
enabledWhen?: StateGuard;
|
|
122
|
+
}
|
|
123
|
+
type InteractionEffect = {
|
|
124
|
+
kind: 'navigate';
|
|
125
|
+
target: string;
|
|
126
|
+
} | {
|
|
127
|
+
kind: 'set';
|
|
128
|
+
state: string;
|
|
129
|
+
value: StateValue;
|
|
130
|
+
} | {
|
|
131
|
+
kind: 'reset';
|
|
132
|
+
state: string;
|
|
133
|
+
} | {
|
|
134
|
+
kind: 'toggle';
|
|
135
|
+
state: string;
|
|
136
|
+
} | {
|
|
137
|
+
kind: 'open';
|
|
138
|
+
target: string;
|
|
139
|
+
} | {
|
|
140
|
+
kind: 'close';
|
|
141
|
+
target: string;
|
|
142
|
+
};
|
|
143
|
+
/** A browser event with an optional state guard and ordered effects. */
|
|
144
|
+
interface InteractionHandler {
|
|
145
|
+
event: 'click';
|
|
146
|
+
guard?: StateGuard;
|
|
147
|
+
effects: InteractionEffect[];
|
|
148
|
+
}
|
|
149
|
+
interface InteractiveProps extends GuardedOutcomeProps {
|
|
104
150
|
/** Navigate to another page or URL */
|
|
105
151
|
navigate?: string;
|
|
106
152
|
/** Opens a modal, drawer, or other overlay element by id */
|
|
@@ -109,6 +155,8 @@ interface InteractiveProps {
|
|
|
109
155
|
toggles?: string;
|
|
110
156
|
/** Custom action identifier (e.g., "submit", "logout", "delete") */
|
|
111
157
|
action?: string;
|
|
158
|
+
/** Typed event/guard/effect handlers. Legacy intent props remain supported. */
|
|
159
|
+
on?: InteractionHandler | InteractionHandler[];
|
|
112
160
|
}
|
|
113
161
|
/**
|
|
114
162
|
* Wireframe Document — root node, holds pages and named layout definitions.
|
|
@@ -150,6 +198,8 @@ interface PageNode extends BaseNode, CommonProps {
|
|
|
150
198
|
device?: string;
|
|
151
199
|
/** Named layout shell that hosts this page's own children. */
|
|
152
200
|
uses?: string;
|
|
201
|
+
/** Application state declarations contributed by this screen module. */
|
|
202
|
+
states?: StateDeclaration[];
|
|
153
203
|
children: AnyNode[];
|
|
154
204
|
}
|
|
155
205
|
/**
|
|
@@ -161,12 +211,44 @@ interface PageNode extends BaseNode, CommonProps {
|
|
|
161
211
|
*/
|
|
162
212
|
interface LayoutDefinitionNode extends BaseNode, CommonProps {
|
|
163
213
|
type: 'Layout';
|
|
214
|
+
name: string;
|
|
215
|
+
/** Application state declarations contributed by this shared layout module. */
|
|
216
|
+
states?: StateDeclaration[];
|
|
217
|
+
children: AnyNode[];
|
|
218
|
+
}
|
|
219
|
+
/** A named reusable component definition. */
|
|
220
|
+
interface ComponentDefinitionNode extends BaseNode, CommonProps {
|
|
221
|
+
type: 'Component';
|
|
222
|
+
name: string;
|
|
223
|
+
parameters?: ComponentParameter[];
|
|
224
|
+
children: AnyNode[];
|
|
225
|
+
}
|
|
226
|
+
type ComponentParameterType = 'string' | 'number' | 'boolean';
|
|
227
|
+
interface ComponentParameter {
|
|
228
|
+
name: string;
|
|
229
|
+
valueType: ComponentParameterType;
|
|
230
|
+
}
|
|
231
|
+
type ComponentInputValue = string | number | boolean;
|
|
232
|
+
interface ComponentSlotFill {
|
|
164
233
|
name: string;
|
|
165
234
|
children: AnyNode[];
|
|
235
|
+
loc?: SourceLocation;
|
|
166
236
|
}
|
|
167
|
-
/**
|
|
237
|
+
/** An explicit reusable-component invocation. */
|
|
238
|
+
interface ComponentUseNode extends BaseNode {
|
|
239
|
+
type: 'ComponentUse';
|
|
240
|
+
name: string;
|
|
241
|
+
namespace?: string;
|
|
242
|
+
inputs: Record<string, ComponentInputValue>;
|
|
243
|
+
fills: ComponentSlotFill[];
|
|
244
|
+
instanceId?: string;
|
|
245
|
+
targetId?: string;
|
|
246
|
+
children?: AnyNode[];
|
|
247
|
+
}
|
|
248
|
+
/** Bare positional marker inside a layout or named marker inside a component. */
|
|
168
249
|
interface SlotNode extends BaseNode, CommonProps {
|
|
169
250
|
type: 'Slot';
|
|
251
|
+
name?: string;
|
|
170
252
|
}
|
|
171
253
|
interface HeaderNode extends BaseNode, CommonProps {
|
|
172
254
|
type: 'Header';
|
|
@@ -631,7 +713,7 @@ interface AnnotationItemNode extends BaseNode {
|
|
|
631
713
|
children: AnyNode[];
|
|
632
714
|
}
|
|
633
715
|
type LayoutNode = PageNode | HeaderNode | MainNode | FooterNode | SidebarNode | SectionNode;
|
|
634
|
-
type DefinitionNode = LayoutDefinitionNode;
|
|
716
|
+
type DefinitionNode = LayoutDefinitionNode | ComponentDefinitionNode;
|
|
635
717
|
type TopLevelNode = PageNode | DefinitionNode;
|
|
636
718
|
type GridNode = RowNode | ColNode | StackNode | RelativeNode;
|
|
637
719
|
type ContainerComponentNode = CardNode | ModalNode | DrawerNode | AccordionNode;
|
|
@@ -643,9 +725,9 @@ type FeedbackNode = AlertNode | ToastNode | ProgressNode | SpinnerNode;
|
|
|
643
725
|
type OverlayNode = TooltipNode | PopoverNode | DropdownNode;
|
|
644
726
|
type NavigationNode = NavNode | TabsNode | BreadcrumbNode;
|
|
645
727
|
type AnnotationNode = MarkerNode | AnnotationsNode | AnnotationItemNode;
|
|
646
|
-
type ContainerNode = LayoutNode | DefinitionNode | GridNode | ContainerComponentNode | PopoverNode | TooltipNode | AnnotationsNode | AnnotationItemNode;
|
|
728
|
+
type ContainerNode = LayoutNode | DefinitionNode | GridNode | ContainerComponentNode | PopoverNode | TooltipNode | AnnotationsNode | AnnotationItemNode | ComponentUseNode;
|
|
647
729
|
type LeafNode = TextContentNode | InputComponentNode | ButtonNode | DisplayNode | DataNode | FeedbackNode | DropdownNode | NavigationNode | DividerComponentNode | MarkerNode | SlotNode;
|
|
648
730
|
type AnyNode = ContainerNode | LeafNode;
|
|
649
|
-
type NodeType = 'Document' | 'Page' | 'Layout' | 'Slot' | 'Header' | 'Main' | 'Footer' | 'Sidebar' | 'Section' | 'Row' | 'Col' | 'Stack' | 'Relative' | 'Card' | 'Modal' | 'Drawer' | 'Accordion' | 'Text' | 'Title' | 'Link' | 'Input' | 'Textarea' | 'Select' | 'Checkbox' | 'Radio' | 'Switch' | 'Slider' | 'Button' | 'Image' | 'Placeholder' | 'Avatar' | 'Badge' | 'Icon' | 'Table' | 'List' | 'Alert' | 'Toast' | 'Progress' | 'Spinner' | 'Tooltip' | 'Popover' | 'Dropdown' | 'Nav' | 'Tabs' | 'Breadcrumb' | 'Divider' | 'Marker' | 'Annotations' | 'AnnotationItem';
|
|
731
|
+
type NodeType = 'Document' | 'Page' | 'Layout' | 'Component' | 'ComponentUse' | 'Slot' | 'Header' | 'Main' | 'Footer' | 'Sidebar' | 'Section' | 'Row' | 'Col' | 'Stack' | 'Relative' | 'Card' | 'Modal' | 'Drawer' | 'Accordion' | 'Text' | 'Title' | 'Link' | 'Input' | 'Textarea' | 'Select' | 'Checkbox' | 'Radio' | 'Switch' | 'Slider' | 'Button' | 'Image' | 'Placeholder' | 'Avatar' | 'Badge' | 'Icon' | 'Table' | 'List' | 'Alert' | 'Toast' | 'Progress' | 'Spinner' | 'Tooltip' | 'Popover' | 'Dropdown' | 'Nav' | 'Tabs' | 'Breadcrumb' | 'Divider' | 'Marker' | 'Annotations' | 'AnnotationItem';
|
|
650
732
|
|
|
651
|
-
export type {
|
|
733
|
+
export type { HeightValue as $, AccordionNode as A, BadgeNode as B, CardNode as C, ComponentInputValue as D, ComponentParameter as E, ComponentParameterType as F, ComponentSlotFill as G, ComponentUseNode as H, ContainerComponentNode as I, ContainerNode as J, DataNode as K, DefinitionNode as L, DirectionValue as M, DisplayNode as N, DividerComponentNode as O, DividerNode as P, DrawerNode as Q, DrawerPosition as R, DropdownItemNode as S, DropdownNode as T, FeedbackNode as U, FlexProps as V, FooterNode as W, GridNode as X, GridProps as Y, GuardedOutcomeProps as Z, HeaderNode as _, AlertNode as a, TextContentNode as a$, IconNode as a0, IconSize as a1, IconSizeToken as a2, ImageNode as a3, InputComponentNode as a4, InputNode as a5, InputType as a6, InteractionEffect as a7, InteractionHandler as a8, InteractiveProps as a9, RadioNode as aA, RelativeNode as aB, RowNode as aC, SectionNode as aD, SelectNode as aE, SelectOption as aF, ShadowValue as aG, SidebarNode as aH, SizeProps as aI, SliderNode as aJ, SlotNode as aK, SourceLocation as aL, SpacingProps as aM, SpacingValue as aN, SpinnerNode as aO, SpinnerSize as aP, SpinnerSizeToken as aQ, StackNode as aR, StateDeclaration as aS, StateGuard as aT, StateValue as aU, StateValueType as aV, SwitchNode as aW, TabNode as aX, TableNode as aY, TabsNode as aZ, TextAlign as a_, JustifyValue as aa, LayoutDefinitionNode as ab, LayoutNode as ac, LeafNode as ad, LinkNode as ae, ListItemNode as af, ListNode as ag, MainNode as ah, MarkerColor as ai, MarkerNode as aj, ModalNode as ak, NavBlockItem as al, NavChild as am, NavDivider as an, NavGroupNode as ao, NavItem as ap, NavNode as aq, NavigationNode as ar, NodeType as as, OverlayNode as at, PageNode as au, PlaceholderNode as av, PopoverNode as aw, Position as ax, PositionProps as ay, ProgressNode as az, AlertVariant as b, TextNode as b0, TextSize as b1, TextSizeToken as b2, TextWeight as b3, TextareaNode as b4, TitleLevel as b5, TitleNode as b6, ToastNode as b7, ToastPosition as b8, TooltipNode as b9, TooltipPosition as ba, TopLevelNode as bb, ValueWithUnit as bc, WidthValue as bd, WireframeDocument as be, AlignValue as c, AnchorPosition as d, AnnotationItemNode as e, AnnotationNode as f, AnnotationsNode as g, AnyNode as h, AppearanceProps as i, AvatarNode as j, AvatarSize as k, AvatarSizeToken as l, BadgeSize as m, BadgeSizeToken as n, BadgeVariant as o, BaseNode as p, BreadcrumbItem as q, BreadcrumbNode as r, ButtonNode as s, ButtonSize as t, ButtonSizeToken as u, ButtonVariant as v, CheckboxNode as w, ColNode as x, CommonProps as y, ComponentDefinitionNode as z };
|
|
@@ -94,13 +94,59 @@ interface AppearanceProps {
|
|
|
94
94
|
bg?: 'muted' | 'primary' | 'secondary';
|
|
95
95
|
border?: boolean;
|
|
96
96
|
}
|
|
97
|
-
interface CommonProps extends SpacingProps, SizeProps, FlexProps, GridProps, PositionProps, AppearanceProps {
|
|
97
|
+
interface CommonProps extends SpacingProps, SizeProps, FlexProps, GridProps, PositionProps, AppearanceProps, GuardedOutcomeProps {
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
100
|
* Interactive properties for components that can trigger actions.
|
|
101
101
|
* Used for buttons, links, avatars, icons, and other clickable elements.
|
|
102
102
|
*/
|
|
103
|
-
|
|
103
|
+
/** Scalar values supported by the deterministic prototype state store. */
|
|
104
|
+
type StateValue = string | number | boolean;
|
|
105
|
+
/** Closed scalar types supported by a state declaration. */
|
|
106
|
+
type StateValueType = 'string' | 'number' | 'boolean';
|
|
107
|
+
/** One typed state value and the value it resets to. */
|
|
108
|
+
interface StateDeclaration {
|
|
109
|
+
name: string;
|
|
110
|
+
valueType: StateValueType;
|
|
111
|
+
initial: StateValue;
|
|
112
|
+
}
|
|
113
|
+
/** Equality is the only guard operation: small, typed, and deterministic. */
|
|
114
|
+
interface StateGuard {
|
|
115
|
+
state: string;
|
|
116
|
+
equals: StateValue;
|
|
117
|
+
}
|
|
118
|
+
/** State-controlled render outcomes available on every ordinary node. */
|
|
119
|
+
interface GuardedOutcomeProps {
|
|
120
|
+
visibleWhen?: StateGuard;
|
|
121
|
+
enabledWhen?: StateGuard;
|
|
122
|
+
}
|
|
123
|
+
type InteractionEffect = {
|
|
124
|
+
kind: 'navigate';
|
|
125
|
+
target: string;
|
|
126
|
+
} | {
|
|
127
|
+
kind: 'set';
|
|
128
|
+
state: string;
|
|
129
|
+
value: StateValue;
|
|
130
|
+
} | {
|
|
131
|
+
kind: 'reset';
|
|
132
|
+
state: string;
|
|
133
|
+
} | {
|
|
134
|
+
kind: 'toggle';
|
|
135
|
+
state: string;
|
|
136
|
+
} | {
|
|
137
|
+
kind: 'open';
|
|
138
|
+
target: string;
|
|
139
|
+
} | {
|
|
140
|
+
kind: 'close';
|
|
141
|
+
target: string;
|
|
142
|
+
};
|
|
143
|
+
/** A browser event with an optional state guard and ordered effects. */
|
|
144
|
+
interface InteractionHandler {
|
|
145
|
+
event: 'click';
|
|
146
|
+
guard?: StateGuard;
|
|
147
|
+
effects: InteractionEffect[];
|
|
148
|
+
}
|
|
149
|
+
interface InteractiveProps extends GuardedOutcomeProps {
|
|
104
150
|
/** Navigate to another page or URL */
|
|
105
151
|
navigate?: string;
|
|
106
152
|
/** Opens a modal, drawer, or other overlay element by id */
|
|
@@ -109,6 +155,8 @@ interface InteractiveProps {
|
|
|
109
155
|
toggles?: string;
|
|
110
156
|
/** Custom action identifier (e.g., "submit", "logout", "delete") */
|
|
111
157
|
action?: string;
|
|
158
|
+
/** Typed event/guard/effect handlers. Legacy intent props remain supported. */
|
|
159
|
+
on?: InteractionHandler | InteractionHandler[];
|
|
112
160
|
}
|
|
113
161
|
/**
|
|
114
162
|
* Wireframe Document — root node, holds pages and named layout definitions.
|
|
@@ -150,6 +198,8 @@ interface PageNode extends BaseNode, CommonProps {
|
|
|
150
198
|
device?: string;
|
|
151
199
|
/** Named layout shell that hosts this page's own children. */
|
|
152
200
|
uses?: string;
|
|
201
|
+
/** Application state declarations contributed by this screen module. */
|
|
202
|
+
states?: StateDeclaration[];
|
|
153
203
|
children: AnyNode[];
|
|
154
204
|
}
|
|
155
205
|
/**
|
|
@@ -161,12 +211,44 @@ interface PageNode extends BaseNode, CommonProps {
|
|
|
161
211
|
*/
|
|
162
212
|
interface LayoutDefinitionNode extends BaseNode, CommonProps {
|
|
163
213
|
type: 'Layout';
|
|
214
|
+
name: string;
|
|
215
|
+
/** Application state declarations contributed by this shared layout module. */
|
|
216
|
+
states?: StateDeclaration[];
|
|
217
|
+
children: AnyNode[];
|
|
218
|
+
}
|
|
219
|
+
/** A named reusable component definition. */
|
|
220
|
+
interface ComponentDefinitionNode extends BaseNode, CommonProps {
|
|
221
|
+
type: 'Component';
|
|
222
|
+
name: string;
|
|
223
|
+
parameters?: ComponentParameter[];
|
|
224
|
+
children: AnyNode[];
|
|
225
|
+
}
|
|
226
|
+
type ComponentParameterType = 'string' | 'number' | 'boolean';
|
|
227
|
+
interface ComponentParameter {
|
|
228
|
+
name: string;
|
|
229
|
+
valueType: ComponentParameterType;
|
|
230
|
+
}
|
|
231
|
+
type ComponentInputValue = string | number | boolean;
|
|
232
|
+
interface ComponentSlotFill {
|
|
164
233
|
name: string;
|
|
165
234
|
children: AnyNode[];
|
|
235
|
+
loc?: SourceLocation;
|
|
166
236
|
}
|
|
167
|
-
/**
|
|
237
|
+
/** An explicit reusable-component invocation. */
|
|
238
|
+
interface ComponentUseNode extends BaseNode {
|
|
239
|
+
type: 'ComponentUse';
|
|
240
|
+
name: string;
|
|
241
|
+
namespace?: string;
|
|
242
|
+
inputs: Record<string, ComponentInputValue>;
|
|
243
|
+
fills: ComponentSlotFill[];
|
|
244
|
+
instanceId?: string;
|
|
245
|
+
targetId?: string;
|
|
246
|
+
children?: AnyNode[];
|
|
247
|
+
}
|
|
248
|
+
/** Bare positional marker inside a layout or named marker inside a component. */
|
|
168
249
|
interface SlotNode extends BaseNode, CommonProps {
|
|
169
250
|
type: 'Slot';
|
|
251
|
+
name?: string;
|
|
170
252
|
}
|
|
171
253
|
interface HeaderNode extends BaseNode, CommonProps {
|
|
172
254
|
type: 'Header';
|
|
@@ -631,7 +713,7 @@ interface AnnotationItemNode extends BaseNode {
|
|
|
631
713
|
children: AnyNode[];
|
|
632
714
|
}
|
|
633
715
|
type LayoutNode = PageNode | HeaderNode | MainNode | FooterNode | SidebarNode | SectionNode;
|
|
634
|
-
type DefinitionNode = LayoutDefinitionNode;
|
|
716
|
+
type DefinitionNode = LayoutDefinitionNode | ComponentDefinitionNode;
|
|
635
717
|
type TopLevelNode = PageNode | DefinitionNode;
|
|
636
718
|
type GridNode = RowNode | ColNode | StackNode | RelativeNode;
|
|
637
719
|
type ContainerComponentNode = CardNode | ModalNode | DrawerNode | AccordionNode;
|
|
@@ -643,9 +725,9 @@ type FeedbackNode = AlertNode | ToastNode | ProgressNode | SpinnerNode;
|
|
|
643
725
|
type OverlayNode = TooltipNode | PopoverNode | DropdownNode;
|
|
644
726
|
type NavigationNode = NavNode | TabsNode | BreadcrumbNode;
|
|
645
727
|
type AnnotationNode = MarkerNode | AnnotationsNode | AnnotationItemNode;
|
|
646
|
-
type ContainerNode = LayoutNode | DefinitionNode | GridNode | ContainerComponentNode | PopoverNode | TooltipNode | AnnotationsNode | AnnotationItemNode;
|
|
728
|
+
type ContainerNode = LayoutNode | DefinitionNode | GridNode | ContainerComponentNode | PopoverNode | TooltipNode | AnnotationsNode | AnnotationItemNode | ComponentUseNode;
|
|
647
729
|
type LeafNode = TextContentNode | InputComponentNode | ButtonNode | DisplayNode | DataNode | FeedbackNode | DropdownNode | NavigationNode | DividerComponentNode | MarkerNode | SlotNode;
|
|
648
730
|
type AnyNode = ContainerNode | LeafNode;
|
|
649
|
-
type NodeType = 'Document' | 'Page' | 'Layout' | 'Slot' | 'Header' | 'Main' | 'Footer' | 'Sidebar' | 'Section' | 'Row' | 'Col' | 'Stack' | 'Relative' | 'Card' | 'Modal' | 'Drawer' | 'Accordion' | 'Text' | 'Title' | 'Link' | 'Input' | 'Textarea' | 'Select' | 'Checkbox' | 'Radio' | 'Switch' | 'Slider' | 'Button' | 'Image' | 'Placeholder' | 'Avatar' | 'Badge' | 'Icon' | 'Table' | 'List' | 'Alert' | 'Toast' | 'Progress' | 'Spinner' | 'Tooltip' | 'Popover' | 'Dropdown' | 'Nav' | 'Tabs' | 'Breadcrumb' | 'Divider' | 'Marker' | 'Annotations' | 'AnnotationItem';
|
|
731
|
+
type NodeType = 'Document' | 'Page' | 'Layout' | 'Component' | 'ComponentUse' | 'Slot' | 'Header' | 'Main' | 'Footer' | 'Sidebar' | 'Section' | 'Row' | 'Col' | 'Stack' | 'Relative' | 'Card' | 'Modal' | 'Drawer' | 'Accordion' | 'Text' | 'Title' | 'Link' | 'Input' | 'Textarea' | 'Select' | 'Checkbox' | 'Radio' | 'Switch' | 'Slider' | 'Button' | 'Image' | 'Placeholder' | 'Avatar' | 'Badge' | 'Icon' | 'Table' | 'List' | 'Alert' | 'Toast' | 'Progress' | 'Spinner' | 'Tooltip' | 'Popover' | 'Dropdown' | 'Nav' | 'Tabs' | 'Breadcrumb' | 'Divider' | 'Marker' | 'Annotations' | 'AnnotationItem';
|
|
650
732
|
|
|
651
|
-
export type {
|
|
733
|
+
export type { HeightValue as $, AccordionNode as A, BadgeNode as B, CardNode as C, ComponentInputValue as D, ComponentParameter as E, ComponentParameterType as F, ComponentSlotFill as G, ComponentUseNode as H, ContainerComponentNode as I, ContainerNode as J, DataNode as K, DefinitionNode as L, DirectionValue as M, DisplayNode as N, DividerComponentNode as O, DividerNode as P, DrawerNode as Q, DrawerPosition as R, DropdownItemNode as S, DropdownNode as T, FeedbackNode as U, FlexProps as V, FooterNode as W, GridNode as X, GridProps as Y, GuardedOutcomeProps as Z, HeaderNode as _, AlertNode as a, TextContentNode as a$, IconNode as a0, IconSize as a1, IconSizeToken as a2, ImageNode as a3, InputComponentNode as a4, InputNode as a5, InputType as a6, InteractionEffect as a7, InteractionHandler as a8, InteractiveProps as a9, RadioNode as aA, RelativeNode as aB, RowNode as aC, SectionNode as aD, SelectNode as aE, SelectOption as aF, ShadowValue as aG, SidebarNode as aH, SizeProps as aI, SliderNode as aJ, SlotNode as aK, SourceLocation as aL, SpacingProps as aM, SpacingValue as aN, SpinnerNode as aO, SpinnerSize as aP, SpinnerSizeToken as aQ, StackNode as aR, StateDeclaration as aS, StateGuard as aT, StateValue as aU, StateValueType as aV, SwitchNode as aW, TabNode as aX, TableNode as aY, TabsNode as aZ, TextAlign as a_, JustifyValue as aa, LayoutDefinitionNode as ab, LayoutNode as ac, LeafNode as ad, LinkNode as ae, ListItemNode as af, ListNode as ag, MainNode as ah, MarkerColor as ai, MarkerNode as aj, ModalNode as ak, NavBlockItem as al, NavChild as am, NavDivider as an, NavGroupNode as ao, NavItem as ap, NavNode as aq, NavigationNode as ar, NodeType as as, OverlayNode as at, PageNode as au, PlaceholderNode as av, PopoverNode as aw, Position as ax, PositionProps as ay, ProgressNode as az, AlertVariant as b, TextNode as b0, TextSize as b1, TextSizeToken as b2, TextWeight as b3, TextareaNode as b4, TitleLevel as b5, TitleNode as b6, ToastNode as b7, ToastPosition as b8, TooltipNode as b9, TooltipPosition as ba, TopLevelNode as bb, ValueWithUnit as bc, WidthValue as bd, WireframeDocument as be, AlignValue as c, AnchorPosition as d, AnnotationItemNode as e, AnnotationNode as f, AnnotationsNode as g, AnyNode as h, AppearanceProps as i, AvatarNode as j, AvatarSize as k, AvatarSizeToken as l, BadgeSize as m, BadgeSizeToken as n, BadgeVariant as o, BaseNode as p, BreadcrumbItem as q, BreadcrumbNode as r, ButtonNode as s, ButtonSize as t, ButtonSizeToken as u, ButtonVariant as v, CheckboxNode as w, ColNode as x, CommonProps as y, ComponentDefinitionNode as z };
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wireweave/core",
|
|
3
|
-
"version": "3.1.0-beta.
|
|
3
|
+
"version": "3.1.0-beta.4",
|
|
4
4
|
"description": "Core parser and renderer for wireweave",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
|
-
"module": "dist/index.
|
|
7
|
+
"module": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
@@ -33,10 +33,12 @@
|
|
|
33
33
|
"@release-it/conventional-changelog": "^10.0.4",
|
|
34
34
|
"@storybook/html": "^10.2.18",
|
|
35
35
|
"@storybook/html-vite": "^10.2.18",
|
|
36
|
+
"@types/jsdom": "^28.0.3",
|
|
36
37
|
"@types/node": "^25.0.8",
|
|
37
38
|
"@vitest/coverage-v8": "^3.2.4",
|
|
38
39
|
"eslint": "^10.3.0",
|
|
39
40
|
"husky": "^9.1.7",
|
|
41
|
+
"jsdom": "^28.1.0",
|
|
40
42
|
"knip": "^6.13.1",
|
|
41
43
|
"lint-staged": "^17.0.4",
|
|
42
44
|
"lucide": "^0.562.0",
|