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

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.
Files changed (47) hide show
  1. package/dist/app.cjs +50 -31
  2. package/dist/app.d.cts +3 -3
  3. package/dist/app.d.ts +3 -3
  4. package/dist/app.js +1 -31
  5. package/dist/chunk-3RWGG5EC.js +296 -342
  6. package/dist/chunk-4TMDPWPR.cjs +22 -32
  7. package/dist/{chunk-7VTK6LHL.cjs → chunk-4UZBGIGJ.cjs} +82 -97
  8. package/dist/chunk-5DGRIQDU.cjs +26 -44
  9. package/dist/chunk-ETV4XYOV.cjs +4 -6
  10. package/dist/{chunk-QOS4IC75.js → chunk-FS6A6EJ4.js} +28 -57
  11. package/dist/chunk-IMUVIIJR.cjs +317 -354
  12. package/dist/chunk-JJWAFHSV.js +2 -23
  13. package/dist/chunk-MD6MNOEQ.cjs +121 -142
  14. package/dist/chunk-PKBMQBKP.js +1 -3
  15. package/dist/chunk-R5WBZWBC.js +3 -19
  16. package/dist/chunk-V3HVWC7C.js +1 -32
  17. package/dist/chunk-XYACLXXF.js +4 -132
  18. package/dist/chunk-ZPHNXJRY.cjs +158 -180
  19. package/dist/{index-Da_B3eoM.d.ts → index-BGU_4N4W.d.ts} +2 -2
  20. package/dist/{index-G906GEtg.d.cts → index-BlNYFaZd.d.cts} +2 -2
  21. package/dist/{index-CghCKUPx.d.ts → index-Cx4-VXVS.d.ts} +2 -2
  22. package/dist/{index-Br7pNaf3.d.cts → index-DyXaMSgd.d.cts} +2 -2
  23. package/dist/index.cjs +738 -419
  24. package/dist/index.d.cts +6 -6
  25. package/dist/index.d.ts +6 -6
  26. package/dist/index.js +12 -385
  27. package/dist/interaction.cjs +26 -17
  28. package/dist/interaction.d.cts +2 -2
  29. package/dist/interaction.d.ts +2 -2
  30. package/dist/interaction.js +1 -17
  31. package/dist/parser.cjs +38 -21
  32. package/dist/parser.d.cts +3 -3
  33. package/dist/parser.d.ts +3 -3
  34. package/dist/parser.js +1 -21
  35. package/dist/renderer.cjs +124 -68
  36. package/dist/renderer.d.cts +104 -104
  37. package/dist/renderer.d.ts +104 -104
  38. package/dist/renderer.js +3 -68
  39. package/dist/spec.cjs +94 -49
  40. package/dist/spec.js +1 -49
  41. package/dist/{types-vhPCZpAW.d.cts → types-CGRi1k2N.d.cts} +1 -1
  42. package/dist/{types-vhPCZpAW.d.ts → types-CGRi1k2N.d.ts} +1 -1
  43. package/dist/{v4-types-Baz9yqAS.d.cts → v4-types-2ORUg6To.d.cts} +1 -1
  44. package/dist/{v4-types-Baz9yqAS.d.ts → v4-types-2ORUg6To.d.ts} +1 -1
  45. package/package.json +21 -23
  46. package/dist/chunk-WV724EAW.js +0 -0
  47. package/dist/chunk-XENFKHRC.cjs +0 -1
@@ -2,6 +2,4 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
 
5
- export {
6
- __publicField
7
- };
5
+ export { __publicField };
@@ -1,15 +1,5 @@
1
- import {
2
- expandVariants
3
- } from "./chunk-JJWAFHSV.js";
4
- import {
5
- HtmlRenderer,
6
- createHtmlRenderer,
7
- darkTheme,
8
- defaultTheme,
9
- documentPages,
10
- generateStyles,
11
- resolvePageDimensions
12
- } from "./chunk-XYACLXXF.js";
1
+ import { expandVariants } from './chunk-JJWAFHSV.js';
2
+ import { resolvePageDimensions, darkTheme, defaultTheme, generateStyles, documentPages, HtmlRenderer, createHtmlRenderer } from './chunk-XYACLXXF.js';
13
3
 
14
4
  // src/renderer/canvas-renderer.ts
15
5
  var DEFAULT_GAP = 64;
@@ -187,10 +177,4 @@ ${css}
187
177
  return { svg, width, height };
188
178
  }
189
179
 
190
- export {
191
- layoutCanvas,
192
- renderCanvas,
193
- render,
194
- renderToHtml,
195
- renderToSvg
196
- };
180
+ export { layoutCanvas, render, renderCanvas, renderToHtml, renderToSvg };
@@ -2871,35 +2871,4 @@ function attributeFor(componentNameOrType, attributeName) {
2871
2871
  return override ? { ...base, ...override } : base;
2872
2872
  }
2873
2873
 
2874
- export {
2875
- GRAMMAR_ELEMENTS,
2876
- GRAMMAR_BLOCK_NODE_TYPES,
2877
- GRAMMAR_CHILD_KEYWORDS,
2878
- DEVICE_PRESETS,
2879
- DEFAULT_VIEWPORT,
2880
- parseViewportString,
2881
- resolveViewport,
2882
- getDevicePresets,
2883
- isValidDevicePreset,
2884
- calculateViewportScale,
2885
- wrapInPreviewContainer,
2886
- LUCIDE_ICON_NAMES,
2887
- ATTRIBUTE_SPECS,
2888
- VALID_ATTRIBUTE_NAMES,
2889
- ATTRIBUTE_MAP,
2890
- BOX_ATTRIBUTES,
2891
- CONTAINER_ATTRIBUTES,
2892
- INTERACTIVE_ATTRIBUTES,
2893
- COMPONENT_NAMES,
2894
- COMPONENT_SPECS,
2895
- VALID_COMPONENT_NAMES,
2896
- COMPONENT_MAP,
2897
- BLOCK_NODE_SPECS,
2898
- NODE_TYPE_MAP,
2899
- ELEMENT_NODE_TYPE_MAP,
2900
- COMPONENT_SPEC_BY_NAME,
2901
- getValidAttributes,
2902
- isValidAttribute,
2903
- ATTRIBUTE_OVERRIDES,
2904
- attributeFor
2905
- };
2874
+ export { ATTRIBUTE_MAP, ATTRIBUTE_OVERRIDES, ATTRIBUTE_SPECS, BLOCK_NODE_SPECS, BOX_ATTRIBUTES, COMPONENT_MAP, COMPONENT_NAMES, COMPONENT_SPECS, COMPONENT_SPEC_BY_NAME, CONTAINER_ATTRIBUTES, DEFAULT_VIEWPORT, DEVICE_PRESETS, ELEMENT_NODE_TYPE_MAP, GRAMMAR_BLOCK_NODE_TYPES, GRAMMAR_CHILD_KEYWORDS, GRAMMAR_ELEMENTS, INTERACTIVE_ATTRIBUTES, LUCIDE_ICON_NAMES, NODE_TYPE_MAP, VALID_ATTRIBUTE_NAMES, VALID_COMPONENT_NAMES, attributeFor, calculateViewportScale, getDevicePresets, getValidAttributes, isValidAttribute, isValidDevicePreset, parseViewportString, resolveViewport, wrapInPreviewContainer };
@@ -1,10 +1,5 @@
1
- import {
2
- ELEMENT_NODE_TYPE_MAP,
3
- resolveViewport
4
- } from "./chunk-V3HVWC7C.js";
5
- import {
6
- __publicField
7
- } from "./chunk-PKBMQBKP.js";
1
+ import { ELEMENT_NODE_TYPE_MAP, resolveViewport } from './chunk-V3HVWC7C.js';
2
+ import { __publicField } from './chunk-PKBMQBKP.js';
8
3
 
9
4
  // src/ast/guards.ts
10
5
  var CONTAINER_TYPES = [
@@ -50941,8 +50936,6 @@ var HtmlRenderer = class extends BaseRenderer {
50941
50936
  const title = node.title ? `<title>${this.escapeHtml(node.title)}</title>
50942
50937
  ` : "";
50943
50938
  const { x: _canvasX, y: _canvasY, ...nodeWithoutCanvasPos } = node;
50944
- void _canvasX;
50945
- void _canvasY;
50946
50939
  const commonStyles = this.buildCommonStyles(nodeWithoutCanvasPos);
50947
50940
  let viewportStyle = `position: relative; width: ${viewport.width}px; height: ${viewport.height}px; overflow: hidden`;
50948
50941
  if (this.context.options.background) {
@@ -51462,129 +51455,6 @@ function resolvePageDimensions(page) {
51462
51455
  const viewport = resolveViewport(page.viewport, page.device);
51463
51456
  return { width: viewport.width, height: viewport.height };
51464
51457
  }
51465
-
51466
- export {
51467
- isContainerNode,
51468
- hasChildren,
51469
- isLeafNode,
51470
- isLayoutNode,
51471
- isPageNode,
51472
- isDefinitionNode,
51473
- isLayoutDefinitionNode,
51474
- isComponentDefinitionNode,
51475
- isComponentUseNode,
51476
- isSlotNode,
51477
- isHeaderNode,
51478
- isMainNode,
51479
- isFooterNode,
51480
- isSidebarNode,
51481
- isSectionNode,
51482
- isGridNode,
51483
- isRowNode,
51484
- isColNode,
51485
- isContainerComponentNode,
51486
- isCardNode,
51487
- isModalNode,
51488
- isDrawerNode,
51489
- isAccordionNode,
51490
- isTextContentNode,
51491
- isTextNode,
51492
- isTitleNode,
51493
- isLinkNode,
51494
- isInputComponentNode,
51495
- isInputNode,
51496
- isTextareaNode,
51497
- isSelectNode,
51498
- isCheckboxNode,
51499
- isRadioNode,
51500
- isSwitchNode,
51501
- isSliderNode,
51502
- isButtonNode,
51503
- isDisplayNode,
51504
- isImageNode,
51505
- isPlaceholderNode,
51506
- isAvatarNode,
51507
- isBadgeNode,
51508
- isIconNode,
51509
- isDataNode,
51510
- isTableNode,
51511
- isListNode,
51512
- isFeedbackNode,
51513
- isAlertNode,
51514
- isToastNode,
51515
- isProgressNode,
51516
- isSpinnerNode,
51517
- isOverlayNode,
51518
- isTooltipNode,
51519
- isPopoverNode,
51520
- isDropdownNode,
51521
- isNavigationNode,
51522
- isNavNode,
51523
- isTabsNode,
51524
- isBreadcrumbNode,
51525
- isDividerNode,
51526
- isNodeType,
51527
- walk,
51528
- walkDocument,
51529
- documentPages,
51530
- documentDefinitions,
51531
- find,
51532
- findAll,
51533
- findByType,
51534
- countNodes,
51535
- getMaxDepth,
51536
- getAncestors,
51537
- mapNodes,
51538
- cloneNode,
51539
- contains,
51540
- getNodeTypes,
51541
- REPEAT_EXPANSION_BUDGET,
51542
- RepeatBudgetError,
51543
- expandRepeats,
51544
- variantScope,
51545
- filterVariantScope,
51546
- filterUnscopedPages,
51547
- defaultTheme,
51548
- darkTheme,
51549
- getTheme,
51550
- generateComponentStyles,
51551
- generateStyles,
51552
- ANCHOR_PATH_ATTR,
51553
- ANCHOR_LOC_ATTR,
51554
- anchorChildNodes,
51555
- walkAnchorPaths,
51556
- resolveAnchorPath,
51557
- categoryOf,
51558
- getLabel,
51559
- getContent,
51560
- getInteractiveLabel,
51561
- getInteractions,
51562
- getItemInteractions,
51563
- renderPage,
51564
- resolvePageDimensions,
51565
- buildSiteModel,
51566
- normalizeStateGuard,
51567
- normalizeInteractionHandlers,
51568
- interactionSignature,
51569
- collectInteractions,
51570
- isUrlTarget,
51571
- INTERACTIVE_ATTR_NAMES,
51572
- EXTERNAL_NAVIGATE_ATTR,
51573
- TYPED_INTERACTION_ATTR,
51574
- VISIBLE_GUARD_ATTR,
51575
- ENABLED_GUARD_ATTR,
51576
- VARIANT_SCOPE_ATTR,
51577
- INERT_HREF,
51578
- guardedOutcomeAttrs,
51579
- interactiveAttrs,
51580
- anchorIntent,
51581
- lucideIcons,
51582
- getIconData,
51583
- renderIconSvg,
51584
- renderUnknownIconSvg,
51585
- HtmlRenderer,
51586
- createHtmlRenderer
51587
- };
51588
51458
  /**
51589
51459
  * GENERATED FILE -- DO NOT EDIT.
51590
51460
  *
@@ -51610,3 +51480,5 @@ export {
51610
51480
  *
51611
51481
  * @see https://lucide.dev
51612
51482
  */
51483
+
51484
+ export { ANCHOR_LOC_ATTR, ANCHOR_PATH_ATTR, ENABLED_GUARD_ATTR, EXTERNAL_NAVIGATE_ATTR, HtmlRenderer, INERT_HREF, INTERACTIVE_ATTR_NAMES, REPEAT_EXPANSION_BUDGET, RepeatBudgetError, TYPED_INTERACTION_ATTR, VARIANT_SCOPE_ATTR, VISIBLE_GUARD_ATTR, anchorChildNodes, anchorIntent, buildSiteModel, categoryOf, cloneNode, collectInteractions, contains, countNodes, createHtmlRenderer, darkTheme, defaultTheme, documentDefinitions, documentPages, expandRepeats, filterUnscopedPages, filterVariantScope, find, findAll, findByType, generateComponentStyles, generateStyles, getAncestors, getContent, getIconData, getInteractions, getInteractiveLabel, getItemInteractions, getLabel, getMaxDepth, getNodeTypes, getTheme, guardedOutcomeAttrs, hasChildren, interactionSignature, interactiveAttrs, 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, isUrlTarget, lucideIcons, mapNodes, normalizeInteractionHandlers, normalizeStateGuard, renderIconSvg, renderPage, renderUnknownIconSvg, resolveAnchorPath, resolvePageDimensions, variantScope, walk, walkAnchorPaths, walkDocument };