@wireweave/core 2.4.0 → 2.5.0
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 +861 -245
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +861 -245
- package/dist/parser.cjs +604 -243
- package/dist/parser.d.cts +1 -1
- package/dist/parser.d.ts +1 -1
- package/dist/parser.js +604 -243
- package/dist/renderer.cjs +230 -2
- package/dist/renderer.d.cts +4 -1
- package/dist/renderer.d.ts +4 -1
- package/dist/renderer.js +230 -2
- package/dist/{types-D_1QkAXo.d.cts → types-EbEsGNxL.d.cts} +72 -4
- package/dist/{types-D_1QkAXo.d.ts → types-EbEsGNxL.d.ts} +72 -4
- package/package.json +1 -1
|
@@ -506,6 +506,73 @@ interface BreadcrumbNode extends BaseNode, CommonProps {
|
|
|
506
506
|
interface DividerComponentNode extends BaseNode, CommonProps {
|
|
507
507
|
type: 'Divider';
|
|
508
508
|
}
|
|
509
|
+
type MarkerColor = 'blue' | 'red' | 'green' | 'yellow' | 'purple' | 'orange';
|
|
510
|
+
/**
|
|
511
|
+
* Marker - Number marker for referencing in annotations
|
|
512
|
+
*
|
|
513
|
+
* Displays a numbered circle that can be placed on UI elements.
|
|
514
|
+
* Recommended to use inside `relative` with `anchor` for positioning outside the UI.
|
|
515
|
+
*
|
|
516
|
+
* Example:
|
|
517
|
+
* ```wireframe
|
|
518
|
+
* relative {
|
|
519
|
+
* button "Submit"
|
|
520
|
+
* marker 1 anchor=top-right
|
|
521
|
+
* }
|
|
522
|
+
* ```
|
|
523
|
+
*/
|
|
524
|
+
interface MarkerNode extends BaseNode, CommonProps {
|
|
525
|
+
type: 'Marker';
|
|
526
|
+
/** The marker number (1, 2, 3, ...) */
|
|
527
|
+
number: number;
|
|
528
|
+
/** Marker color */
|
|
529
|
+
color?: MarkerColor;
|
|
530
|
+
/** Anchor position when inside a relative container */
|
|
531
|
+
anchor?: AnchorPosition;
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* Annotations - Documentation panel for screen specifications
|
|
535
|
+
*
|
|
536
|
+
* Container for annotation items that describe UI elements.
|
|
537
|
+
* Visually distinct from wireframe UI with dashed border and different background.
|
|
538
|
+
* Rendered with data-role="documentation" for LLM recognition.
|
|
539
|
+
*
|
|
540
|
+
* Example:
|
|
541
|
+
* ```wireframe
|
|
542
|
+
* annotations title="화면 설명" {
|
|
543
|
+
* item 1 "이메일 입력" { text "유효성 검사 적용" }
|
|
544
|
+
* item 2 "로그인 버튼" { text "OAuth 연동" }
|
|
545
|
+
* }
|
|
546
|
+
* ```
|
|
547
|
+
*/
|
|
548
|
+
interface AnnotationsNode extends BaseNode, CommonProps {
|
|
549
|
+
type: 'Annotations';
|
|
550
|
+
/** Panel title (default: "화면 설명" or "Annotations") */
|
|
551
|
+
title?: string;
|
|
552
|
+
children: AnnotationItemNode[];
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* AnnotationItem - Individual annotation entry
|
|
556
|
+
*
|
|
557
|
+
* Represents a single annotation with a marker number, title, and description content.
|
|
558
|
+
*
|
|
559
|
+
* Example:
|
|
560
|
+
* ```wireframe
|
|
561
|
+
* item 1 "이메일 입력" {
|
|
562
|
+
* text "- 유효성 검사 적용"
|
|
563
|
+
* text "- 최대 255자"
|
|
564
|
+
* }
|
|
565
|
+
* ```
|
|
566
|
+
*/
|
|
567
|
+
interface AnnotationItemNode extends BaseNode {
|
|
568
|
+
type: 'AnnotationItem';
|
|
569
|
+
/** The marker number this item references */
|
|
570
|
+
number: number;
|
|
571
|
+
/** Item title */
|
|
572
|
+
title: string;
|
|
573
|
+
/** Description content (Text nodes) */
|
|
574
|
+
children: AnyNode[];
|
|
575
|
+
}
|
|
509
576
|
type LayoutNode = PageNode | HeaderNode | MainNode | FooterNode | SidebarNode | SectionNode;
|
|
510
577
|
type GridNode = RowNode | ColNode | StackNode | RelativeNode;
|
|
511
578
|
type ContainerComponentNode = CardNode | ModalNode | DrawerNode | AccordionNode;
|
|
@@ -516,9 +583,10 @@ type DataNode = TableNode | ListNode;
|
|
|
516
583
|
type FeedbackNode = AlertNode | ToastNode | ProgressNode | SpinnerNode;
|
|
517
584
|
type OverlayNode = TooltipNode | PopoverNode | DropdownNode;
|
|
518
585
|
type NavigationNode = NavNode | TabsNode | BreadcrumbNode;
|
|
519
|
-
type
|
|
520
|
-
type
|
|
586
|
+
type AnnotationNode = MarkerNode | AnnotationsNode | AnnotationItemNode;
|
|
587
|
+
type ContainerNode = LayoutNode | GridNode | ContainerComponentNode | PopoverNode | TooltipNode | AnnotationsNode | AnnotationItemNode;
|
|
588
|
+
type LeafNode = TextContentNode | InputComponentNode | ButtonNode | DisplayNode | DataNode | FeedbackNode | DropdownNode | NavigationNode | DividerComponentNode | MarkerNode;
|
|
521
589
|
type AnyNode = ContainerNode | LeafNode;
|
|
522
|
-
type NodeType = 'Document' | 'Page' | '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';
|
|
590
|
+
type NodeType = 'Document' | 'Page' | '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';
|
|
523
591
|
|
|
524
|
-
export type { ToastNode as $, AnyNode as A, BadgeNode as B, CardNode as C, DataNode as D, RowNode as E, FeedbackNode as F, GridNode as G, HeaderNode as H, IconNode as I, SelectNode as J, SidebarNode as K, LayoutNode as L, MainNode as M, NavNode as N, OverlayNode as O, PageNode as P, SliderNode as Q, RadioNode as R, SectionNode as S, SpinnerNode as T, SwitchNode as U, TableNode as V, TabsNode as W, TextContentNode as X, TextNode as Y, TextareaNode as Z, TitleNode as _, AccordionNode as a, TooltipNode as a0, WireframeDocument as a1, AlertVariant as a2, AlignValue as a3, AnchorPosition as a4,
|
|
592
|
+
export type { ToastNode as $, AnyNode as A, BadgeNode as B, CardNode as C, DataNode as D, RowNode as E, FeedbackNode as F, GridNode as G, HeaderNode as H, IconNode as I, SelectNode as J, SidebarNode as K, LayoutNode as L, MainNode as M, NavNode as N, OverlayNode as O, PageNode as P, SliderNode as Q, RadioNode as R, SectionNode as S, SpinnerNode as T, SwitchNode as U, TableNode as V, TabsNode as W, TextContentNode as X, TextNode as Y, TextareaNode as Z, TitleNode as _, AccordionNode as a, TooltipNode as a0, WireframeDocument as a1, AlertVariant as a2, AlignValue as a3, AnchorPosition as a4, AnnotationItemNode as a5, AnnotationNode as a6, AnnotationsNode as a7, AppearanceProps as a8, AvatarSize as a9, NavChild as aA, NavDivider as aB, NavGroupNode as aC, NavItem as aD, Position as aE, PositionProps as aF, RelativeNode as aG, SelectOption as aH, ShadowValue as aI, SizeProps as aJ, SourceLocation as aK, SpacingProps as aL, SpacingValue as aM, SpinnerSize as aN, SpinnerSizeToken as aO, StackNode as aP, TabNode as aQ, TextAlign as aR, TextSize as aS, TextSizeToken as aT, TextWeight as aU, TitleLevel as aV, ToastPosition as aW, TooltipPosition as aX, ValueWithUnit as aY, WidthValue as aZ, AvatarSizeToken as aa, BadgeSize as ab, BadgeSizeToken as ac, BadgeVariant as ad, BaseNode as ae, BreadcrumbItem as af, ButtonSize as ag, ButtonSizeToken as ah, ButtonVariant as ai, CommonProps as aj, DirectionValue as ak, DividerNode as al, DrawerPosition as am, DropdownItemNode as an, FlexProps as ao, GridProps as ap, HeightValue as aq, IconSize as ar, IconSizeToken as as, InputType as at, InteractiveProps as au, JustifyValue as av, ListItemNode as aw, MarkerColor as ax, MarkerNode as ay, NavBlockItem as az, AlertNode as b, AvatarNode as c, BreadcrumbNode as d, ButtonNode as e, CheckboxNode as f, ColNode as g, ContainerComponentNode as h, ContainerNode as i, DisplayNode as j, DividerComponentNode as k, DrawerNode as l, DropdownNode as m, FooterNode as n, ImageNode as o, InputComponentNode as p, InputNode as q, LeafNode as r, LinkNode as s, ListNode as t, ModalNode as u, NavigationNode as v, NodeType as w, PlaceholderNode as x, PopoverNode as y, ProgressNode as z };
|