@wireweave/core 4.0.0-beta.13 → 4.0.0-beta.15

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.d.cts CHANGED
@@ -1,14 +1,16 @@
1
1
  import { A as AnyNode, a as AccordionNode, b as AlertNode, c as AvatarNode, B as BadgeNode, d as BreadcrumbNode, e as ButtonNode, f as CardNode, g as CheckboxNode, h as ColNode, i as ComponentDefinitionNode, C as ComponentUseNode, j as ContainerComponentNode, k as ContainerNode, D as DataNode, l as DefinitionNode, m as DisplayNode, n as DividerComponentNode, o as DrawerNode, p as DropdownNode, F as FeedbackNode, q as FooterNode, r as GridNode, H as HeaderNode, s as IconNode, t as ImageNode, u as InputComponentNode, v as InputNode, L as LayoutDefinitionNode, w as LayoutNode, x as LeafNode, y as LinkNode, z as ListNode, M as MainNode, E as ModalNode, N as NavNode, J as NavigationNode, K as NodeType, O as OverlayNode, P as PageNode, Q as PlaceholderNode, R as PopoverNode, T as ProgressNode, U as RadioNode, V as RowNode, X as SectionNode, Y as SelectNode, Z as SidebarNode, _ as SliderNode, $ as SlotNode, a0 as SpinnerNode, a1 as SwitchNode, a2 as TableNode, a3 as TabsNode, a4 as TextContentNode, a5 as TextNode, a6 as TextareaNode, a7 as TitleNode, a8 as ToastNode, a9 as TooltipNode, W as WireframeDocument, S as SourceLocation } from './types-CGRi1k2N.cjs';
2
2
  export { aa as AlertVariant, ab as AlignValue, ac as AnchorPosition, ad as AnnotationItemNode, ae as AnnotationNode, af as AnnotationsNode, ag as AppearanceProps, ah as AvatarSize, ai as AvatarSizeToken, aj as BadgeSize, ak as BadgeSizeToken, al as BadgeVariant, am as BaseNode, an as BreadcrumbItem, ao as ButtonSize, ap as ButtonSizeToken, aq as ButtonVariant, ar as CommonProps, as as ComponentInputValue, at as ComponentParameter, au as ComponentParameterType, av as ComponentSlotFill, aw as DirectionValue, ax as DrawerPosition, ay as DropdownItemNode, az as FlexProps, aA as GridProps, G as GuardedOutcomeProps, aB as HeightValue, aC as IconSize, aD as IconSizeToken, aE as InputType, aF as InteractionEffect, aG as InteractionHandler, I as InteractiveProps, aH as JustifyValue, aI as ListItemNode, aJ as MarkerColor, aK as MarkerNode, aL as NavBlockItem, aM as NavChild, aN as NavGroupNode, aO as NavItem, aP as Position, aQ as PositionProps, aR as RelativeNode, aS as RepeatNode, aT as SelectOption, aU as ShadowValue, aV as SizeProps, aW as SpacingProps, aX as SpacingValue, aY as SpinnerSize, aZ as SpinnerSizeToken, a_ as StackNode, a$ as StateDeclaration, b0 as StateGuard, b1 as StateValue, b2 as StateValueType, b3 as TabNode, b4 as TextAlign, b5 as TextSize, b6 as TextSizeToken, b7 as TextWeight, b8 as TitleLevel, b9 as ToastPosition, ba as TooltipPosition, bb as TopLevelNode, bc as ValueWithUnit, bd as VariantScopedProps, be as WidthValue } from './types-CGRi1k2N.cjs';
3
3
  export { ExpectedToken, ParseError, ParseErrorInfo, ParseOptions, ParseResult, getErrors, getV4SourceSpan, isValid, parse, parseV4, tryParse, tryParseV4 } from './parser.cjs';
4
- export { ENABLED_GUARD_ATTR, EXTERNAL_NAVIGATE_ATTR, HtmlRenderer, INERT_HREF, INTERACTIVE_ATTR_NAMES, IconData, IconElement, InteractiveAttrs, PlacedPage, ShellMiss, SiteModel, SiteScreen, SiteShell, TYPED_INTERACTION_ATTR, VISIBLE_GUARD_ATTR, anchorIntent, buildSiteModel, createHtmlRenderer, generateComponentStyles, generateStyles, getIconData, guardedOutcomeAttrs, interactiveAttrs, layoutCanvas, lucideIcons, render, renderCanvas, renderIconSvg, renderPage, renderToHtml, renderToSvg, renderUnknownIconSvg, resolvePageDimensions } from './renderer.cjs';
4
+ import { E as ExportOptions, J as JsonExportResult, a as JsonNode, F as FigmaExportResult, b as FigmaMappingProfile, c as FigmaMappingExportResult, V as V4SvgProfile, d as V4SvgExportResult } from './index-CIfur9e3.cjs';
5
+ export { C as CoreExportDiagnostic, e as ENABLED_GUARD_ATTR, f as EXTERNAL_NAVIGATE_ATTR, g as ExportLoss, h as FigmaAutoLayout, i as FigmaColor, j as FigmaCounterAxisAlign, k as FigmaLayoutMode, l as FigmaMappingArtifact, m as FigmaNode, n as FigmaNodeType, o as FigmaPrimaryAxisAlign, p as FigmaSemanticMapping, q as FigmaSize, r as FigmaSizingMode, s as FigmaSolidFill, t as FigmaStroke, u as FigmaTextAlign, v as FigmaTextStyle, w as FigmaWireweaveMetadata, H as HtmlRenderer, I as INERT_HREF, x as INTERACTIVE_ATTR_NAMES, y as IconData, z as IconElement, A as InteractiveAttrs, P as PlacedPage, S as ShellMiss, B as SiteModel, D as SiteScreen, G as SiteShell, T as TYPED_INTERACTION_ATTR, K as V4ExportDiagnostic, L as V4LinkedExportInput, M as V4SvgArtifact, N as V4SvgManifest, O as VISIBLE_GUARD_ATTR, Q as anchorIntent, R as buildSiteModel, U as createHtmlRenderer, W as generateComponentStyles, X as generateStyles, Y as getIconData, Z as guardedOutcomeAttrs, _ as interactiveAttrs, $ as layoutCanvas, a0 as lucideIcons, a1 as render, a2 as renderCanvas, a3 as renderIconSvg, a4 as renderPage, a5 as renderToHtml, a6 as renderToSvg, a7 as renderUnknownIconSvg, a8 as resolvePageDimensions } from './index-CIfur9e3.cjs';
5
6
  export { ATTRIBUTE_MAP, ATTRIBUTE_OVERRIDES, ATTRIBUTE_SPECS, BLOCK_NODE_SPECS, BOX_ATTRIBUTES, COMPONENT_MAP, COMPONENT_NAMES, COMPONENT_SPECS, COMPONENT_SPEC_BY_NAME, CONTAINER_ATTRIBUTES, ELEMENT_NODE_TYPE_MAP, GRAMMAR_BLOCK_NODE_TYPES, GRAMMAR_CHILD_KEYWORDS, GRAMMAR_ELEMENTS, GrammarBlockNodeType, GrammarElementName, GrammarNodeType, INTERACTIVE_ATTRIBUTES, LUCIDE_ICON_NAMES, NODE_TYPE_MAP, VALID_ATTRIBUTE_NAMES, VALID_COMPONENT_NAMES, attributeFor, getValidAttributes, isValidAttribute } from './spec.cjs';
6
7
  import { C as ComponentCategory } from './types-Dkgr0Wyc.cjs';
7
8
  export { A as AttributeOverride, a as AttributeSpec, b as AttributeValueType, c as ComponentSpec } from './types-Dkgr0Wyc.cjs';
9
+ import { b as LinkedApp } from './index-DdQv4Bu5.cjs';
10
+ export { e as AnnotationStyle, n as AppArtifact, o as AppBundle, A as AppResult, C as CanvasOptions, f as CanvasRenderResult, p as CreateAppBundleOptions, D as Diagnostic, I as InstanceStep, L as LinkedIdentity, P as PageRenderResult, R as RenderContext, c as RenderOptions, d as RenderResult, a as ScreenReference, i as SiteOptions, S as SourceMapEntry, g as SvgRenderOptions, h as SvgRenderResult, j as ThemeColors, T as ThemeConfig, q as createAppBundle, k as darkTheme, l as defaultTheme, m as getTheme, r as renderSite } from './index-DdQv4Bu5.cjs';
8
11
  import { S as ScreenFields, a as ScreenTransitionGraph } from './index-BlNYFaZd.cjs';
9
12
  export { I as InteractionDiagnostic, b as InteractionDiagnosticCode, c as InteractionKind, d as InteractionModel, N as NormalizedInteraction, e as NormalizedInteractionEffect, f as NormalizedInteractionHandler, g as ScreenAction, h as ScreenDisplay, i as ScreenElement, j as ScreenFieldsSummary, k as ScreenInput, T as TransitionEdge, l as TransitionScreen, m as collectInteractions, n as interactionSignature, o as isUrlTarget, p as normalizeInteractionHandlers, q as normalizeStateGuard } from './index-BlNYFaZd.cjs';
10
- export { AppArtifact, AppBundle, AppCompileResult, AppComponentInput, AppComponentInstanceId, AppDefinitionKind, AppDocument, AppLayoutInput, AppLinkDiagnostic, AppLinkDiagnosticCode, AppLinkResult, AppManifest, AppManifestModule, AppModuleInput, AppNodeId, AppNodeKind, AppReferenceInput, AppResult, AppScreenInput, AppSourceMapEntry, AppSourceSpan, CompileAppOptions, CreateAppBundleOptions, Diagnostic, InstanceStep, LinkedApp, LinkedIdentity, ResolvedAppComponent, ResolvedAppLayout, ResolvedAppModule, ResolvedAppReference, ResolvedAppScreen, RuntimeBrowserEffect, RuntimeInput, RuntimeSnapshot, RuntimeTrace, ScreenReference, SourceMapEntry, advanceClock, compileApp, createAppBundle, createAppComponentInstanceId, createAppNodeId, createRuntime, linkAndCompileApp, linkApp, reduceEvent, renderSite as renderAppSite, resetRuntime } from './app.cjs';
11
- export { A as AnnotationStyle, C as CanvasOptions, c as CanvasRenderResult, P as PageRenderResult, R as RenderContext, a as RenderOptions, b as RenderResult, e as SiteOptions, S as SvgRenderOptions, d as SvgRenderResult, f as ThemeColors, T as ThemeConfig, g as darkTheme, h as defaultTheme, i as getTheme, r as renderSite } from './index-DyXaMSgd.cjs';
13
+ export { AppCompileResult, AppComponentInput, AppComponentInstanceId, AppDefinitionKind, AppDocument, AppLayoutInput, AppLinkDiagnostic, AppLinkDiagnosticCode, AppLinkResult, AppManifest, AppManifestModule, AppModuleInput, AppNodeId, AppNodeKind, AppReferenceInput, AppScreenInput, AppSourceMapEntry, AppSourceSpan, CompileAppOptions, ResolvedAppComponent, ResolvedAppLayout, ResolvedAppModule, ResolvedAppReference, ResolvedAppScreen, RuntimeBrowserEffect, RuntimeInput, RuntimeSnapshot, RuntimeTrace, advanceClock, compileApp, createAppComponentInstanceId, createAppNodeId, createRuntime, linkAndCompileApp, linkApp, reduceEvent, renderSite as renderAppSite, resetRuntime } from './app.cjs';
12
14
  export { C as CanonicalDefinition, c as CanonicalModule, d as CanonicalNode, e as CanonicalParameter, f as CanonicalPrimitive, g as CanonicalSymbol, h as CanonicalUse, P as ParsedDocument, i as V4Diagnostic, j as V4ParseError, a as V4ParseOptions, b as V4ParseResult, V as V4SourceSpan } from './v4-types-2ORUg6To.cjs';
13
15
 
14
16
  /**
@@ -788,190 +790,6 @@ declare function areIdentical(oldDoc: WireframeDocument, newDoc: WireframeDocume
788
790
  */
789
791
  declare function getChangeSummary(oldDoc: WireframeDocument, newDoc: WireframeDocument): string;
790
792
 
791
- /**
792
- * Export Types
793
- *
794
- * Types for exporting wireframes to various formats.
795
- */
796
- /**
797
- * Simplified JSON node structure
798
- */
799
- interface JsonNode {
800
- /** Node type (e.g., 'page', 'button', 'input') */
801
- type: string;
802
- /** Node content or label */
803
- content?: string;
804
- /** Node attributes */
805
- attributes: Record<string, unknown>;
806
- /** Child nodes */
807
- children: JsonNode[];
808
- /** Source location (optional) */
809
- location?: {
810
- line: number;
811
- column: number;
812
- };
813
- }
814
- /**
815
- * JSON export result
816
- */
817
- interface JsonExportResult {
818
- /** Export format version */
819
- version: string;
820
- /** Export format */
821
- format: 'json';
822
- /** Exported pages */
823
- pages: JsonNode[];
824
- /** Metadata */
825
- metadata: {
826
- exportedAt: string;
827
- sourceFormat: 'wireweave';
828
- nodeCount: number;
829
- componentTypes: string[];
830
- };
831
- }
832
- /**
833
- * Figma node types that we can map to
834
- */
835
- type FigmaNodeType = 'DOCUMENT' | 'CANVAS' | 'FRAME' | 'GROUP' | 'TEXT' | 'RECTANGLE' | 'INSTANCE' | 'COMPONENT';
836
- /**
837
- * Figma Auto Layout mode
838
- */
839
- type FigmaLayoutMode = 'NONE' | 'HORIZONTAL' | 'VERTICAL';
840
- /**
841
- * Figma sizing mode for Auto Layout
842
- */
843
- type FigmaSizingMode = 'FIXED' | 'HUG' | 'FILL';
844
- /**
845
- * Figma primary axis alignment (justify)
846
- */
847
- type FigmaPrimaryAxisAlign = 'MIN' | 'CENTER' | 'MAX' | 'SPACE_BETWEEN';
848
- /**
849
- * Figma counter axis alignment (align)
850
- */
851
- type FigmaCounterAxisAlign = 'MIN' | 'CENTER' | 'MAX' | 'STRETCH' | 'BASELINE';
852
- /**
853
- * Figma text alignment
854
- */
855
- type FigmaTextAlign = 'LEFT' | 'CENTER' | 'RIGHT' | 'JUSTIFIED';
856
- /**
857
- * Figma color (RGBA, 0-1 range)
858
- */
859
- interface FigmaColor {
860
- r: number;
861
- g: number;
862
- b: number;
863
- a: number;
864
- }
865
- /**
866
- * Figma solid fill
867
- */
868
- interface FigmaSolidFill {
869
- type: 'SOLID';
870
- color: FigmaColor;
871
- opacity?: number;
872
- }
873
- /**
874
- * Figma stroke
875
- */
876
- interface FigmaStroke {
877
- type: 'SOLID';
878
- color: FigmaColor;
879
- }
880
- /**
881
- * Figma Auto Layout properties
882
- */
883
- interface FigmaAutoLayout {
884
- layoutMode: FigmaLayoutMode;
885
- layoutSizingHorizontal: FigmaSizingMode;
886
- layoutSizingVertical: FigmaSizingMode;
887
- primaryAxisAlignItems: FigmaPrimaryAxisAlign;
888
- counterAxisAlignItems: FigmaCounterAxisAlign;
889
- paddingTop: number;
890
- paddingRight: number;
891
- paddingBottom: number;
892
- paddingLeft: number;
893
- itemSpacing: number;
894
- layoutWrap?: 'NO_WRAP' | 'WRAP';
895
- }
896
- /**
897
- * Figma size properties
898
- */
899
- interface FigmaSize {
900
- width: number;
901
- height: number;
902
- minWidth?: number;
903
- maxWidth?: number;
904
- minHeight?: number;
905
- maxHeight?: number;
906
- }
907
- /**
908
- * Figma text properties
909
- */
910
- interface FigmaTextStyle {
911
- fontSize: number;
912
- fontWeight: number;
913
- textAlignHorizontal: FigmaTextAlign;
914
- characters: string;
915
- }
916
- /**
917
- * Figma-compatible node structure
918
- * Based on Figma's Plugin API structure
919
- */
920
- interface FigmaNode {
921
- /** Unique identifier */
922
- id: string;
923
- /** Node name */
924
- name: string;
925
- /** Node type */
926
- type: FigmaNodeType;
927
- /** Visibility */
928
- visible: boolean;
929
- /** Original Wireweave type */
930
- wireweaveType?: string;
931
- /** Original Wireweave attributes */
932
- wireweaveAttributes?: Record<string, unknown>;
933
- /** Child nodes */
934
- children?: FigmaNode[];
935
- /** Auto Layout properties (for FRAME) */
936
- autoLayout?: FigmaAutoLayout;
937
- /** Size properties */
938
- size?: FigmaSize;
939
- /** Text properties (for TEXT) */
940
- textStyle?: FigmaTextStyle;
941
- /** Background fills */
942
- fills?: FigmaSolidFill[];
943
- /** Border strokes */
944
- strokes?: FigmaStroke[];
945
- /** Stroke weight */
946
- strokeWeight?: number;
947
- /** Corner radius */
948
- cornerRadius?: number;
949
- }
950
- /**
951
- * Figma export result
952
- */
953
- interface FigmaExportResult {
954
- /** Export format version */
955
- version: string;
956
- /** Export format */
957
- format: 'figma';
958
- /** Document structure */
959
- document: FigmaNode;
960
- /** Component mappings for reference */
961
- componentMappings: Record<string, string>;
962
- }
963
- /**
964
- * Export options
965
- */
966
- interface ExportOptions {
967
- /** Include source locations */
968
- includeLocations?: boolean;
969
- /** Pretty print JSON (with indentation) */
970
- prettyPrint?: boolean;
971
- /** Include empty attributes */
972
- includeEmptyAttributes?: boolean;
973
- }
974
-
975
793
  /**
976
794
  * JSON export functionality
977
795
  */
@@ -1022,6 +840,7 @@ declare function resetFigmaIdCounter(): void;
1022
840
  * @returns Figma export result
1023
841
  */
1024
842
  declare function exportToFigma(doc: WireframeDocument): FigmaExportResult;
843
+ declare function exportToFigma(doc: LinkedApp, profile: FigmaMappingProfile): FigmaMappingExportResult;
1025
844
  /**
1026
845
  * Export wireframe to Figma-compatible JSON string
1027
846
  *
@@ -1031,6 +850,10 @@ declare function exportToFigma(doc: WireframeDocument): FigmaExportResult;
1031
850
  */
1032
851
  declare function exportToFigmaString(doc: WireframeDocument, prettyPrint?: boolean): string;
1033
852
 
853
+ declare function exportLinkedAppToFigma(linked: LinkedApp, profile: FigmaMappingProfile): FigmaMappingExportResult;
854
+
855
+ declare function exportLinkedAppToSvg(linked: LinkedApp, profile: V4SvgProfile): V4SvgExportResult;
856
+
1034
857
  /**
1035
858
  * Analysis Types for wireweave
1036
859
  *
@@ -1399,4 +1222,4 @@ declare function getNodeSource(source: string, doc: WireframeDocument, path: str
1399
1222
  */
1400
1223
  declare function buildDomTree(doc: WireframeDocument, pageIndexBase?: number): DomTreeNode[];
1401
1224
 
1402
- export { ANCHOR_LOC_ATTR, ANCHOR_PATH_ATTR, type AccessibilityMetrics, AccordionNode, AlertNode, type AnalysisOptions, type AnalysisResult, type AnchorEntry, AnyNode, type AttributeChange, AvatarNode, BadgeNode, BreadcrumbNode, ButtonNode, CardNode, CheckboxNode, ColNode, type ComplexityMetrics, ComponentCategory, ComponentDefinitionNode, type ComponentParameterReference, type ComponentStats, ComponentUseNode, ContainerComponentNode, ContainerNode, type ContentAnalysis, DEFAULT_VIEWPORT, DEVICE_PRESETS, DataNode, DefinitionNode, type DiffChangeType, type DiffOptions, type DiffResult, type DiffSummary, DisplayNode, DividerComponentNode, type DomTreeNode, DrawerNode, DropdownNode, type ExportOptions, FeedbackNode, type FigmaAutoLayout, type FigmaColor, type FigmaCounterAxisAlign, type FigmaExportResult, type FigmaLayoutMode, type FigmaNode, type FigmaNodeType, type FigmaPrimaryAxisAlign, type FigmaSize, type FigmaSizingMode, type FigmaSolidFill, type FigmaStroke, type FigmaTextAlign, type FigmaTextStyle, FooterNode, GridNode, HeaderNode, IconNode, ImageNode, InputComponentNode, InputNode, type JsonExportResult, type JsonNode, type LayoutAnalysis, LayoutDefinitionNode, LayoutNode, LeafNode, LinkNode, ListNode, MainNode, ModalNode, NavNode, NavigationNode, type NodeChange, type NodePredicate, NodeType, OverlayNode, PageNode, PlaceholderNode, PopoverNode, type PreviewWrapperOptions, ProgressNode, REPEAT_EXPANSION_BUDGET, RadioNode, RepeatBudgetError, RowNode, ScreenFields, ScreenTransitionGraph, SectionNode, SelectNode, SidebarNode, SliderNode, SlotNode, SourceLocation, type SourceSlice, SpinnerNode, SwitchNode, TableNode, TabsNode, TextContentNode, TextNode, TextareaNode, TitleNode, ToastNode, TooltipNode, type TreeMetrics, type ValidationError, type ValidationOptions, type ValidationResult, type ViewportSize, type WalkCallback, WireframeDocument, analyze, areIdentical, buildAnchorIndex, buildDomTree, calculateViewportScale, cloneNode, collectParameterReferences, contains, countNodes, diff, documentDefinitions, documentPages, expandRepeats, expandVariants, exportToFigma, exportToFigmaString, exportToJson, exportToJsonString, extractAllScreenFields, extractScreenFields, extractScreenTransitions, filterUnscopedPages, filterVariantScope, find, findAll, findByType, formatWireframeCode, getAncestors, getChangeSummary, getDevicePresets, getMaxDepth, getNodeSource, getNodeTypes, getPageSource, getValidationErrors, hasChildren, importFromJson, isAccordionNode, isAlertNode, isAvatarNode, isBadgeNode, isBreadcrumbNode, isButtonNode, isCardNode, isCheckboxNode, isColNode, isComponentDefinitionNode, isComponentUseNode, isContainerComponentNode, isContainerNode, isDataNode, isDefinitionNode, isDisplayNode, isDividerNode, isDrawerNode, isDropdownNode, isFeedbackNode, isFooterNode, isGridNode, isHeaderNode, isIconNode, isImageNode, isInputComponentNode, isInputNode, isLayoutDefinitionNode, isLayoutNode, isLeafNode, isLinkNode, isListNode, isMainNode, isModalNode, isNavNode, isNavigationNode, isNodeType, isOverlayNode, isPageNode, isPlaceholderNode, isPopoverNode, isProgressNode, isRadioNode, isRowNode, isSectionNode, isSelectNode, isSidebarNode, isSliderNode, isSlotNode, isSpinnerNode, isSwitchNode, isTableNode, isTabsNode, isTextContentNode, isTextNode, isTextareaNode, isTitleNode, isToastNode, isTooltipNode, isValidAst, isValidDevicePreset, mapNodes, parameterReferenceName, parseViewportString, printWireframe, resetFigmaIdCounter, resolveAnchor, resolveViewport, validate, variantScope, walk, walkDocument, wrapInPreviewContainer };
1225
+ export { ANCHOR_LOC_ATTR, ANCHOR_PATH_ATTR, type AccessibilityMetrics, AccordionNode, AlertNode, type AnalysisOptions, type AnalysisResult, type AnchorEntry, AnyNode, type AttributeChange, AvatarNode, BadgeNode, BreadcrumbNode, ButtonNode, CardNode, CheckboxNode, ColNode, type ComplexityMetrics, ComponentCategory, ComponentDefinitionNode, type ComponentParameterReference, type ComponentStats, ComponentUseNode, ContainerComponentNode, ContainerNode, type ContentAnalysis, DEFAULT_VIEWPORT, DEVICE_PRESETS, DataNode, DefinitionNode, type DiffChangeType, type DiffOptions, type DiffResult, type DiffSummary, DisplayNode, DividerComponentNode, type DomTreeNode, DrawerNode, DropdownNode, ExportOptions, FeedbackNode, FigmaExportResult, FigmaMappingExportResult, FigmaMappingProfile, FooterNode, GridNode, HeaderNode, IconNode, ImageNode, InputComponentNode, InputNode, JsonExportResult, JsonNode, type LayoutAnalysis, LayoutDefinitionNode, LayoutNode, LeafNode, LinkNode, LinkedApp, ListNode, MainNode, ModalNode, NavNode, NavigationNode, type NodeChange, type NodePredicate, NodeType, OverlayNode, PageNode, PlaceholderNode, PopoverNode, type PreviewWrapperOptions, ProgressNode, REPEAT_EXPANSION_BUDGET, RadioNode, RepeatBudgetError, RowNode, ScreenFields, ScreenTransitionGraph, SectionNode, SelectNode, SidebarNode, SliderNode, SlotNode, SourceLocation, type SourceSlice, SpinnerNode, SwitchNode, TableNode, TabsNode, TextContentNode, TextNode, TextareaNode, TitleNode, ToastNode, TooltipNode, type TreeMetrics, V4SvgExportResult, V4SvgProfile, type ValidationError, type ValidationOptions, type ValidationResult, type ViewportSize, type WalkCallback, WireframeDocument, analyze, areIdentical, buildAnchorIndex, buildDomTree, calculateViewportScale, cloneNode, collectParameterReferences, contains, countNodes, diff, documentDefinitions, documentPages, expandRepeats, expandVariants, exportLinkedAppToFigma, exportLinkedAppToSvg, exportToFigma, exportToFigmaString, exportToJson, exportToJsonString, extractAllScreenFields, extractScreenFields, extractScreenTransitions, filterUnscopedPages, filterVariantScope, find, findAll, findByType, formatWireframeCode, getAncestors, getChangeSummary, getDevicePresets, getMaxDepth, getNodeSource, getNodeTypes, getPageSource, getValidationErrors, hasChildren, importFromJson, isAccordionNode, isAlertNode, isAvatarNode, isBadgeNode, isBreadcrumbNode, isButtonNode, isCardNode, isCheckboxNode, isColNode, isComponentDefinitionNode, isComponentUseNode, isContainerComponentNode, isContainerNode, isDataNode, isDefinitionNode, isDisplayNode, isDividerNode, isDrawerNode, isDropdownNode, isFeedbackNode, isFooterNode, isGridNode, isHeaderNode, isIconNode, isImageNode, isInputComponentNode, isInputNode, isLayoutDefinitionNode, isLayoutNode, isLeafNode, isLinkNode, isListNode, isMainNode, isModalNode, isNavNode, isNavigationNode, isNodeType, isOverlayNode, isPageNode, isPlaceholderNode, isPopoverNode, isProgressNode, isRadioNode, isRowNode, isSectionNode, isSelectNode, isSidebarNode, isSliderNode, isSlotNode, isSpinnerNode, isSwitchNode, isTableNode, isTabsNode, isTextContentNode, isTextNode, isTextareaNode, isTitleNode, isToastNode, isTooltipNode, isValidAst, isValidDevicePreset, mapNodes, parameterReferenceName, parseViewportString, printWireframe, resetFigmaIdCounter, resolveAnchor, resolveViewport, validate, variantScope, walk, walkDocument, wrapInPreviewContainer };
package/dist/index.d.ts CHANGED
@@ -1,14 +1,16 @@
1
1
  import { A as AnyNode, a as AccordionNode, b as AlertNode, c as AvatarNode, B as BadgeNode, d as BreadcrumbNode, e as ButtonNode, f as CardNode, g as CheckboxNode, h as ColNode, i as ComponentDefinitionNode, C as ComponentUseNode, j as ContainerComponentNode, k as ContainerNode, D as DataNode, l as DefinitionNode, m as DisplayNode, n as DividerComponentNode, o as DrawerNode, p as DropdownNode, F as FeedbackNode, q as FooterNode, r as GridNode, H as HeaderNode, s as IconNode, t as ImageNode, u as InputComponentNode, v as InputNode, L as LayoutDefinitionNode, w as LayoutNode, x as LeafNode, y as LinkNode, z as ListNode, M as MainNode, E as ModalNode, N as NavNode, J as NavigationNode, K as NodeType, O as OverlayNode, P as PageNode, Q as PlaceholderNode, R as PopoverNode, T as ProgressNode, U as RadioNode, V as RowNode, X as SectionNode, Y as SelectNode, Z as SidebarNode, _ as SliderNode, $ as SlotNode, a0 as SpinnerNode, a1 as SwitchNode, a2 as TableNode, a3 as TabsNode, a4 as TextContentNode, a5 as TextNode, a6 as TextareaNode, a7 as TitleNode, a8 as ToastNode, a9 as TooltipNode, W as WireframeDocument, S as SourceLocation } from './types-CGRi1k2N.js';
2
2
  export { aa as AlertVariant, ab as AlignValue, ac as AnchorPosition, ad as AnnotationItemNode, ae as AnnotationNode, af as AnnotationsNode, ag as AppearanceProps, ah as AvatarSize, ai as AvatarSizeToken, aj as BadgeSize, ak as BadgeSizeToken, al as BadgeVariant, am as BaseNode, an as BreadcrumbItem, ao as ButtonSize, ap as ButtonSizeToken, aq as ButtonVariant, ar as CommonProps, as as ComponentInputValue, at as ComponentParameter, au as ComponentParameterType, av as ComponentSlotFill, aw as DirectionValue, ax as DrawerPosition, ay as DropdownItemNode, az as FlexProps, aA as GridProps, G as GuardedOutcomeProps, aB as HeightValue, aC as IconSize, aD as IconSizeToken, aE as InputType, aF as InteractionEffect, aG as InteractionHandler, I as InteractiveProps, aH as JustifyValue, aI as ListItemNode, aJ as MarkerColor, aK as MarkerNode, aL as NavBlockItem, aM as NavChild, aN as NavGroupNode, aO as NavItem, aP as Position, aQ as PositionProps, aR as RelativeNode, aS as RepeatNode, aT as SelectOption, aU as ShadowValue, aV as SizeProps, aW as SpacingProps, aX as SpacingValue, aY as SpinnerSize, aZ as SpinnerSizeToken, a_ as StackNode, a$ as StateDeclaration, b0 as StateGuard, b1 as StateValue, b2 as StateValueType, b3 as TabNode, b4 as TextAlign, b5 as TextSize, b6 as TextSizeToken, b7 as TextWeight, b8 as TitleLevel, b9 as ToastPosition, ba as TooltipPosition, bb as TopLevelNode, bc as ValueWithUnit, bd as VariantScopedProps, be as WidthValue } from './types-CGRi1k2N.js';
3
3
  export { ExpectedToken, ParseError, ParseErrorInfo, ParseOptions, ParseResult, getErrors, getV4SourceSpan, isValid, parse, parseV4, tryParse, tryParseV4 } from './parser.js';
4
- export { ENABLED_GUARD_ATTR, EXTERNAL_NAVIGATE_ATTR, HtmlRenderer, INERT_HREF, INTERACTIVE_ATTR_NAMES, IconData, IconElement, InteractiveAttrs, PlacedPage, ShellMiss, SiteModel, SiteScreen, SiteShell, TYPED_INTERACTION_ATTR, VISIBLE_GUARD_ATTR, anchorIntent, buildSiteModel, createHtmlRenderer, generateComponentStyles, generateStyles, getIconData, guardedOutcomeAttrs, interactiveAttrs, layoutCanvas, lucideIcons, render, renderCanvas, renderIconSvg, renderPage, renderToHtml, renderToSvg, renderUnknownIconSvg, resolvePageDimensions } from './renderer.js';
4
+ import { E as ExportOptions, J as JsonExportResult, a as JsonNode, F as FigmaExportResult, b as FigmaMappingProfile, c as FigmaMappingExportResult, V as V4SvgProfile, d as V4SvgExportResult } from './index-DwGsnD0n.js';
5
+ export { C as CoreExportDiagnostic, e as ENABLED_GUARD_ATTR, f as EXTERNAL_NAVIGATE_ATTR, g as ExportLoss, h as FigmaAutoLayout, i as FigmaColor, j as FigmaCounterAxisAlign, k as FigmaLayoutMode, l as FigmaMappingArtifact, m as FigmaNode, n as FigmaNodeType, o as FigmaPrimaryAxisAlign, p as FigmaSemanticMapping, q as FigmaSize, r as FigmaSizingMode, s as FigmaSolidFill, t as FigmaStroke, u as FigmaTextAlign, v as FigmaTextStyle, w as FigmaWireweaveMetadata, H as HtmlRenderer, I as INERT_HREF, x as INTERACTIVE_ATTR_NAMES, y as IconData, z as IconElement, A as InteractiveAttrs, P as PlacedPage, S as ShellMiss, B as SiteModel, D as SiteScreen, G as SiteShell, T as TYPED_INTERACTION_ATTR, K as V4ExportDiagnostic, L as V4LinkedExportInput, M as V4SvgArtifact, N as V4SvgManifest, O as VISIBLE_GUARD_ATTR, Q as anchorIntent, R as buildSiteModel, U as createHtmlRenderer, W as generateComponentStyles, X as generateStyles, Y as getIconData, Z as guardedOutcomeAttrs, _ as interactiveAttrs, $ as layoutCanvas, a0 as lucideIcons, a1 as render, a2 as renderCanvas, a3 as renderIconSvg, a4 as renderPage, a5 as renderToHtml, a6 as renderToSvg, a7 as renderUnknownIconSvg, a8 as resolvePageDimensions } from './index-DwGsnD0n.js';
5
6
  export { ATTRIBUTE_MAP, ATTRIBUTE_OVERRIDES, ATTRIBUTE_SPECS, BLOCK_NODE_SPECS, BOX_ATTRIBUTES, COMPONENT_MAP, COMPONENT_NAMES, COMPONENT_SPECS, COMPONENT_SPEC_BY_NAME, CONTAINER_ATTRIBUTES, ELEMENT_NODE_TYPE_MAP, GRAMMAR_BLOCK_NODE_TYPES, GRAMMAR_CHILD_KEYWORDS, GRAMMAR_ELEMENTS, GrammarBlockNodeType, GrammarElementName, GrammarNodeType, INTERACTIVE_ATTRIBUTES, LUCIDE_ICON_NAMES, NODE_TYPE_MAP, VALID_ATTRIBUTE_NAMES, VALID_COMPONENT_NAMES, attributeFor, getValidAttributes, isValidAttribute } from './spec.js';
6
7
  import { C as ComponentCategory } from './types-Dkgr0Wyc.js';
7
8
  export { A as AttributeOverride, a as AttributeSpec, b as AttributeValueType, c as ComponentSpec } from './types-Dkgr0Wyc.js';
9
+ import { b as LinkedApp } from './index-c4FTW7XA.js';
10
+ export { e as AnnotationStyle, n as AppArtifact, o as AppBundle, A as AppResult, C as CanvasOptions, f as CanvasRenderResult, p as CreateAppBundleOptions, D as Diagnostic, I as InstanceStep, L as LinkedIdentity, P as PageRenderResult, R as RenderContext, c as RenderOptions, d as RenderResult, a as ScreenReference, i as SiteOptions, S as SourceMapEntry, g as SvgRenderOptions, h as SvgRenderResult, j as ThemeColors, T as ThemeConfig, q as createAppBundle, k as darkTheme, l as defaultTheme, m as getTheme, r as renderSite } from './index-c4FTW7XA.js';
8
11
  import { S as ScreenFields, a as ScreenTransitionGraph } from './index-Cx4-VXVS.js';
9
12
  export { I as InteractionDiagnostic, b as InteractionDiagnosticCode, c as InteractionKind, d as InteractionModel, N as NormalizedInteraction, e as NormalizedInteractionEffect, f as NormalizedInteractionHandler, g as ScreenAction, h as ScreenDisplay, i as ScreenElement, j as ScreenFieldsSummary, k as ScreenInput, T as TransitionEdge, l as TransitionScreen, m as collectInteractions, n as interactionSignature, o as isUrlTarget, p as normalizeInteractionHandlers, q as normalizeStateGuard } from './index-Cx4-VXVS.js';
10
- export { AppArtifact, AppBundle, AppCompileResult, AppComponentInput, AppComponentInstanceId, AppDefinitionKind, AppDocument, AppLayoutInput, AppLinkDiagnostic, AppLinkDiagnosticCode, AppLinkResult, AppManifest, AppManifestModule, AppModuleInput, AppNodeId, AppNodeKind, AppReferenceInput, AppResult, AppScreenInput, AppSourceMapEntry, AppSourceSpan, CompileAppOptions, CreateAppBundleOptions, Diagnostic, InstanceStep, LinkedApp, LinkedIdentity, ResolvedAppComponent, ResolvedAppLayout, ResolvedAppModule, ResolvedAppReference, ResolvedAppScreen, RuntimeBrowserEffect, RuntimeInput, RuntimeSnapshot, RuntimeTrace, ScreenReference, SourceMapEntry, advanceClock, compileApp, createAppBundle, createAppComponentInstanceId, createAppNodeId, createRuntime, linkAndCompileApp, linkApp, reduceEvent, renderSite as renderAppSite, resetRuntime } from './app.js';
11
- export { A as AnnotationStyle, C as CanvasOptions, c as CanvasRenderResult, P as PageRenderResult, R as RenderContext, a as RenderOptions, b as RenderResult, e as SiteOptions, S as SvgRenderOptions, d as SvgRenderResult, f as ThemeColors, T as ThemeConfig, g as darkTheme, h as defaultTheme, i as getTheme, r as renderSite } from './index-BGU_4N4W.js';
13
+ export { AppCompileResult, AppComponentInput, AppComponentInstanceId, AppDefinitionKind, AppDocument, AppLayoutInput, AppLinkDiagnostic, AppLinkDiagnosticCode, AppLinkResult, AppManifest, AppManifestModule, AppModuleInput, AppNodeId, AppNodeKind, AppReferenceInput, AppScreenInput, AppSourceMapEntry, AppSourceSpan, CompileAppOptions, ResolvedAppComponent, ResolvedAppLayout, ResolvedAppModule, ResolvedAppReference, ResolvedAppScreen, RuntimeBrowserEffect, RuntimeInput, RuntimeSnapshot, RuntimeTrace, advanceClock, compileApp, createAppComponentInstanceId, createAppNodeId, createRuntime, linkAndCompileApp, linkApp, reduceEvent, renderSite as renderAppSite, resetRuntime } from './app.js';
12
14
  export { C as CanonicalDefinition, c as CanonicalModule, d as CanonicalNode, e as CanonicalParameter, f as CanonicalPrimitive, g as CanonicalSymbol, h as CanonicalUse, P as ParsedDocument, i as V4Diagnostic, j as V4ParseError, a as V4ParseOptions, b as V4ParseResult, V as V4SourceSpan } from './v4-types-2ORUg6To.js';
13
15
 
14
16
  /**
@@ -788,190 +790,6 @@ declare function areIdentical(oldDoc: WireframeDocument, newDoc: WireframeDocume
788
790
  */
789
791
  declare function getChangeSummary(oldDoc: WireframeDocument, newDoc: WireframeDocument): string;
790
792
 
791
- /**
792
- * Export Types
793
- *
794
- * Types for exporting wireframes to various formats.
795
- */
796
- /**
797
- * Simplified JSON node structure
798
- */
799
- interface JsonNode {
800
- /** Node type (e.g., 'page', 'button', 'input') */
801
- type: string;
802
- /** Node content or label */
803
- content?: string;
804
- /** Node attributes */
805
- attributes: Record<string, unknown>;
806
- /** Child nodes */
807
- children: JsonNode[];
808
- /** Source location (optional) */
809
- location?: {
810
- line: number;
811
- column: number;
812
- };
813
- }
814
- /**
815
- * JSON export result
816
- */
817
- interface JsonExportResult {
818
- /** Export format version */
819
- version: string;
820
- /** Export format */
821
- format: 'json';
822
- /** Exported pages */
823
- pages: JsonNode[];
824
- /** Metadata */
825
- metadata: {
826
- exportedAt: string;
827
- sourceFormat: 'wireweave';
828
- nodeCount: number;
829
- componentTypes: string[];
830
- };
831
- }
832
- /**
833
- * Figma node types that we can map to
834
- */
835
- type FigmaNodeType = 'DOCUMENT' | 'CANVAS' | 'FRAME' | 'GROUP' | 'TEXT' | 'RECTANGLE' | 'INSTANCE' | 'COMPONENT';
836
- /**
837
- * Figma Auto Layout mode
838
- */
839
- type FigmaLayoutMode = 'NONE' | 'HORIZONTAL' | 'VERTICAL';
840
- /**
841
- * Figma sizing mode for Auto Layout
842
- */
843
- type FigmaSizingMode = 'FIXED' | 'HUG' | 'FILL';
844
- /**
845
- * Figma primary axis alignment (justify)
846
- */
847
- type FigmaPrimaryAxisAlign = 'MIN' | 'CENTER' | 'MAX' | 'SPACE_BETWEEN';
848
- /**
849
- * Figma counter axis alignment (align)
850
- */
851
- type FigmaCounterAxisAlign = 'MIN' | 'CENTER' | 'MAX' | 'STRETCH' | 'BASELINE';
852
- /**
853
- * Figma text alignment
854
- */
855
- type FigmaTextAlign = 'LEFT' | 'CENTER' | 'RIGHT' | 'JUSTIFIED';
856
- /**
857
- * Figma color (RGBA, 0-1 range)
858
- */
859
- interface FigmaColor {
860
- r: number;
861
- g: number;
862
- b: number;
863
- a: number;
864
- }
865
- /**
866
- * Figma solid fill
867
- */
868
- interface FigmaSolidFill {
869
- type: 'SOLID';
870
- color: FigmaColor;
871
- opacity?: number;
872
- }
873
- /**
874
- * Figma stroke
875
- */
876
- interface FigmaStroke {
877
- type: 'SOLID';
878
- color: FigmaColor;
879
- }
880
- /**
881
- * Figma Auto Layout properties
882
- */
883
- interface FigmaAutoLayout {
884
- layoutMode: FigmaLayoutMode;
885
- layoutSizingHorizontal: FigmaSizingMode;
886
- layoutSizingVertical: FigmaSizingMode;
887
- primaryAxisAlignItems: FigmaPrimaryAxisAlign;
888
- counterAxisAlignItems: FigmaCounterAxisAlign;
889
- paddingTop: number;
890
- paddingRight: number;
891
- paddingBottom: number;
892
- paddingLeft: number;
893
- itemSpacing: number;
894
- layoutWrap?: 'NO_WRAP' | 'WRAP';
895
- }
896
- /**
897
- * Figma size properties
898
- */
899
- interface FigmaSize {
900
- width: number;
901
- height: number;
902
- minWidth?: number;
903
- maxWidth?: number;
904
- minHeight?: number;
905
- maxHeight?: number;
906
- }
907
- /**
908
- * Figma text properties
909
- */
910
- interface FigmaTextStyle {
911
- fontSize: number;
912
- fontWeight: number;
913
- textAlignHorizontal: FigmaTextAlign;
914
- characters: string;
915
- }
916
- /**
917
- * Figma-compatible node structure
918
- * Based on Figma's Plugin API structure
919
- */
920
- interface FigmaNode {
921
- /** Unique identifier */
922
- id: string;
923
- /** Node name */
924
- name: string;
925
- /** Node type */
926
- type: FigmaNodeType;
927
- /** Visibility */
928
- visible: boolean;
929
- /** Original Wireweave type */
930
- wireweaveType?: string;
931
- /** Original Wireweave attributes */
932
- wireweaveAttributes?: Record<string, unknown>;
933
- /** Child nodes */
934
- children?: FigmaNode[];
935
- /** Auto Layout properties (for FRAME) */
936
- autoLayout?: FigmaAutoLayout;
937
- /** Size properties */
938
- size?: FigmaSize;
939
- /** Text properties (for TEXT) */
940
- textStyle?: FigmaTextStyle;
941
- /** Background fills */
942
- fills?: FigmaSolidFill[];
943
- /** Border strokes */
944
- strokes?: FigmaStroke[];
945
- /** Stroke weight */
946
- strokeWeight?: number;
947
- /** Corner radius */
948
- cornerRadius?: number;
949
- }
950
- /**
951
- * Figma export result
952
- */
953
- interface FigmaExportResult {
954
- /** Export format version */
955
- version: string;
956
- /** Export format */
957
- format: 'figma';
958
- /** Document structure */
959
- document: FigmaNode;
960
- /** Component mappings for reference */
961
- componentMappings: Record<string, string>;
962
- }
963
- /**
964
- * Export options
965
- */
966
- interface ExportOptions {
967
- /** Include source locations */
968
- includeLocations?: boolean;
969
- /** Pretty print JSON (with indentation) */
970
- prettyPrint?: boolean;
971
- /** Include empty attributes */
972
- includeEmptyAttributes?: boolean;
973
- }
974
-
975
793
  /**
976
794
  * JSON export functionality
977
795
  */
@@ -1022,6 +840,7 @@ declare function resetFigmaIdCounter(): void;
1022
840
  * @returns Figma export result
1023
841
  */
1024
842
  declare function exportToFigma(doc: WireframeDocument): FigmaExportResult;
843
+ declare function exportToFigma(doc: LinkedApp, profile: FigmaMappingProfile): FigmaMappingExportResult;
1025
844
  /**
1026
845
  * Export wireframe to Figma-compatible JSON string
1027
846
  *
@@ -1031,6 +850,10 @@ declare function exportToFigma(doc: WireframeDocument): FigmaExportResult;
1031
850
  */
1032
851
  declare function exportToFigmaString(doc: WireframeDocument, prettyPrint?: boolean): string;
1033
852
 
853
+ declare function exportLinkedAppToFigma(linked: LinkedApp, profile: FigmaMappingProfile): FigmaMappingExportResult;
854
+
855
+ declare function exportLinkedAppToSvg(linked: LinkedApp, profile: V4SvgProfile): V4SvgExportResult;
856
+
1034
857
  /**
1035
858
  * Analysis Types for wireweave
1036
859
  *
@@ -1399,4 +1222,4 @@ declare function getNodeSource(source: string, doc: WireframeDocument, path: str
1399
1222
  */
1400
1223
  declare function buildDomTree(doc: WireframeDocument, pageIndexBase?: number): DomTreeNode[];
1401
1224
 
1402
- export { ANCHOR_LOC_ATTR, ANCHOR_PATH_ATTR, type AccessibilityMetrics, AccordionNode, AlertNode, type AnalysisOptions, type AnalysisResult, type AnchorEntry, AnyNode, type AttributeChange, AvatarNode, BadgeNode, BreadcrumbNode, ButtonNode, CardNode, CheckboxNode, ColNode, type ComplexityMetrics, ComponentCategory, ComponentDefinitionNode, type ComponentParameterReference, type ComponentStats, ComponentUseNode, ContainerComponentNode, ContainerNode, type ContentAnalysis, DEFAULT_VIEWPORT, DEVICE_PRESETS, DataNode, DefinitionNode, type DiffChangeType, type DiffOptions, type DiffResult, type DiffSummary, DisplayNode, DividerComponentNode, type DomTreeNode, DrawerNode, DropdownNode, type ExportOptions, FeedbackNode, type FigmaAutoLayout, type FigmaColor, type FigmaCounterAxisAlign, type FigmaExportResult, type FigmaLayoutMode, type FigmaNode, type FigmaNodeType, type FigmaPrimaryAxisAlign, type FigmaSize, type FigmaSizingMode, type FigmaSolidFill, type FigmaStroke, type FigmaTextAlign, type FigmaTextStyle, FooterNode, GridNode, HeaderNode, IconNode, ImageNode, InputComponentNode, InputNode, type JsonExportResult, type JsonNode, type LayoutAnalysis, LayoutDefinitionNode, LayoutNode, LeafNode, LinkNode, ListNode, MainNode, ModalNode, NavNode, NavigationNode, type NodeChange, type NodePredicate, NodeType, OverlayNode, PageNode, PlaceholderNode, PopoverNode, type PreviewWrapperOptions, ProgressNode, REPEAT_EXPANSION_BUDGET, RadioNode, RepeatBudgetError, RowNode, ScreenFields, ScreenTransitionGraph, SectionNode, SelectNode, SidebarNode, SliderNode, SlotNode, SourceLocation, type SourceSlice, SpinnerNode, SwitchNode, TableNode, TabsNode, TextContentNode, TextNode, TextareaNode, TitleNode, ToastNode, TooltipNode, type TreeMetrics, type ValidationError, type ValidationOptions, type ValidationResult, type ViewportSize, type WalkCallback, WireframeDocument, analyze, areIdentical, buildAnchorIndex, buildDomTree, calculateViewportScale, cloneNode, collectParameterReferences, contains, countNodes, diff, documentDefinitions, documentPages, expandRepeats, expandVariants, exportToFigma, exportToFigmaString, exportToJson, exportToJsonString, extractAllScreenFields, extractScreenFields, extractScreenTransitions, filterUnscopedPages, filterVariantScope, find, findAll, findByType, formatWireframeCode, getAncestors, getChangeSummary, getDevicePresets, getMaxDepth, getNodeSource, getNodeTypes, getPageSource, getValidationErrors, hasChildren, importFromJson, isAccordionNode, isAlertNode, isAvatarNode, isBadgeNode, isBreadcrumbNode, isButtonNode, isCardNode, isCheckboxNode, isColNode, isComponentDefinitionNode, isComponentUseNode, isContainerComponentNode, isContainerNode, isDataNode, isDefinitionNode, isDisplayNode, isDividerNode, isDrawerNode, isDropdownNode, isFeedbackNode, isFooterNode, isGridNode, isHeaderNode, isIconNode, isImageNode, isInputComponentNode, isInputNode, isLayoutDefinitionNode, isLayoutNode, isLeafNode, isLinkNode, isListNode, isMainNode, isModalNode, isNavNode, isNavigationNode, isNodeType, isOverlayNode, isPageNode, isPlaceholderNode, isPopoverNode, isProgressNode, isRadioNode, isRowNode, isSectionNode, isSelectNode, isSidebarNode, isSliderNode, isSlotNode, isSpinnerNode, isSwitchNode, isTableNode, isTabsNode, isTextContentNode, isTextNode, isTextareaNode, isTitleNode, isToastNode, isTooltipNode, isValidAst, isValidDevicePreset, mapNodes, parameterReferenceName, parseViewportString, printWireframe, resetFigmaIdCounter, resolveAnchor, resolveViewport, validate, variantScope, walk, walkDocument, wrapInPreviewContainer };
1225
+ export { ANCHOR_LOC_ATTR, ANCHOR_PATH_ATTR, type AccessibilityMetrics, AccordionNode, AlertNode, type AnalysisOptions, type AnalysisResult, type AnchorEntry, AnyNode, type AttributeChange, AvatarNode, BadgeNode, BreadcrumbNode, ButtonNode, CardNode, CheckboxNode, ColNode, type ComplexityMetrics, ComponentCategory, ComponentDefinitionNode, type ComponentParameterReference, type ComponentStats, ComponentUseNode, ContainerComponentNode, ContainerNode, type ContentAnalysis, DEFAULT_VIEWPORT, DEVICE_PRESETS, DataNode, DefinitionNode, type DiffChangeType, type DiffOptions, type DiffResult, type DiffSummary, DisplayNode, DividerComponentNode, type DomTreeNode, DrawerNode, DropdownNode, ExportOptions, FeedbackNode, FigmaExportResult, FigmaMappingExportResult, FigmaMappingProfile, FooterNode, GridNode, HeaderNode, IconNode, ImageNode, InputComponentNode, InputNode, JsonExportResult, JsonNode, type LayoutAnalysis, LayoutDefinitionNode, LayoutNode, LeafNode, LinkNode, LinkedApp, ListNode, MainNode, ModalNode, NavNode, NavigationNode, type NodeChange, type NodePredicate, NodeType, OverlayNode, PageNode, PlaceholderNode, PopoverNode, type PreviewWrapperOptions, ProgressNode, REPEAT_EXPANSION_BUDGET, RadioNode, RepeatBudgetError, RowNode, ScreenFields, ScreenTransitionGraph, SectionNode, SelectNode, SidebarNode, SliderNode, SlotNode, SourceLocation, type SourceSlice, SpinnerNode, SwitchNode, TableNode, TabsNode, TextContentNode, TextNode, TextareaNode, TitleNode, ToastNode, TooltipNode, type TreeMetrics, V4SvgExportResult, V4SvgProfile, type ValidationError, type ValidationOptions, type ValidationResult, type ViewportSize, type WalkCallback, WireframeDocument, analyze, areIdentical, buildAnchorIndex, buildDomTree, calculateViewportScale, cloneNode, collectParameterReferences, contains, countNodes, diff, documentDefinitions, documentPages, expandRepeats, expandVariants, exportLinkedAppToFigma, exportLinkedAppToSvg, exportToFigma, exportToFigmaString, exportToJson, exportToJsonString, extractAllScreenFields, extractScreenFields, extractScreenTransitions, filterUnscopedPages, filterVariantScope, find, findAll, findByType, formatWireframeCode, getAncestors, getChangeSummary, getDevicePresets, getMaxDepth, getNodeSource, getNodeTypes, getPageSource, getValidationErrors, hasChildren, importFromJson, isAccordionNode, isAlertNode, isAvatarNode, isBadgeNode, isBreadcrumbNode, isButtonNode, isCardNode, isCheckboxNode, isColNode, isComponentDefinitionNode, isComponentUseNode, isContainerComponentNode, isContainerNode, isDataNode, isDefinitionNode, isDisplayNode, isDividerNode, isDrawerNode, isDropdownNode, isFeedbackNode, isFooterNode, isGridNode, isHeaderNode, isIconNode, isImageNode, isInputComponentNode, isInputNode, isLayoutDefinitionNode, isLayoutNode, isLeafNode, isLinkNode, isListNode, isMainNode, isModalNode, isNavNode, isNavigationNode, isNodeType, isOverlayNode, isPageNode, isPlaceholderNode, isPopoverNode, isProgressNode, isRadioNode, isRowNode, isSectionNode, isSelectNode, isSidebarNode, isSliderNode, isSlotNode, isSpinnerNode, isSwitchNode, isTableNode, isTabsNode, isTextContentNode, isTextNode, isTextareaNode, isTitleNode, isToastNode, isTooltipNode, isValidAst, isValidDevicePreset, mapNodes, parameterReferenceName, parseViewportString, printWireframe, resetFigmaIdCounter, resolveAnchor, resolveViewport, validate, variantScope, walk, walkDocument, wrapInPreviewContainer };