@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/app.cjs +16 -15
- package/dist/app.d.cts +4 -144
- package/dist/app.d.ts +4 -144
- package/dist/app.js +2 -1
- package/dist/chunk-24W2GEKO.js +2342 -0
- package/dist/{chunk-IMUVIIJR.cjs → chunk-H2SWIUMU.cjs} +9 -3
- package/dist/chunk-KMZXXIM2.cjs +396 -0
- package/dist/chunk-NPDSIAWT.js +389 -0
- package/dist/{chunk-FS6A6EJ4.js → chunk-NZGEUVB4.js} +75 -1330
- package/dist/{chunk-3RWGG5EC.js → chunk-UGMDBW46.js} +9 -4
- package/dist/chunk-VCHXMPZL.cjs +2356 -0
- package/dist/{chunk-4UZBGIGJ.cjs → chunk-XODYFTKU.cjs} +136 -1392
- package/dist/index-CIfur9e3.d.cts +1031 -0
- package/dist/{index-DyXaMSgd.d.cts → index-DdQv4Bu5.d.cts} +149 -1
- package/dist/index-DwGsnD0n.d.ts +1031 -0
- package/dist/{index-BGU_4N4W.d.ts → index-c4FTW7XA.d.ts} +149 -1
- package/dist/index.cjs +245 -54
- package/dist/index.d.cts +11 -188
- package/dist/index.d.ts +11 -188
- package/dist/index.js +205 -18
- package/dist/parser.cjs +9 -9
- package/dist/parser.js +1 -1
- package/dist/renderer.cjs +8 -8
- package/dist/renderer.d.cts +4 -756
- package/dist/renderer.d.ts +4 -756
- package/dist/renderer.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-4TMDPWPR.cjs +0 -186
- package/dist/chunk-5DGRIQDU.cjs +0 -824
- package/dist/chunk-JJWAFHSV.js +0 -821
- package/dist/chunk-R5WBZWBC.js +0 -180
package/dist/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export { layoutCanvas, render, renderCanvas, renderToHtml, renderToSvg } from './chunk-
|
|
2
|
-
import { collectParameterReferences } from './chunk-
|
|
3
|
-
export { advanceClock, collectParameterReferences, compileApp,
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
6
|
-
|
|
1
|
+
export { exportLinkedAppToSvg, layoutCanvas, render, renderCanvas, renderToHtml, renderToSvg } from './chunk-NPDSIAWT.js';
|
|
2
|
+
import { collectParameterReferences } from './chunk-NZGEUVB4.js';
|
|
3
|
+
export { advanceClock, collectParameterReferences, compileApp, createAppComponentInstanceId, createAppNodeId, createRuntime, linkAndCompileApp, linkApp, parameterReferenceName, reduceEvent, renderSite as renderAppSite, resetRuntime } from './chunk-NZGEUVB4.js';
|
|
4
|
+
import { getLinkedAppData, failed, diagnostic, freeze, jcs } from './chunk-24W2GEKO.js';
|
|
5
|
+
export { createAppBundle, expandVariants, renderSite } from './chunk-24W2GEKO.js';
|
|
6
|
+
import { parse, digestV4 } from './chunk-UGMDBW46.js';
|
|
7
|
+
export { V4ParseError, getErrors, getV4SourceSpan, isValid, parse, parseV4, tryParse, tryParseV4 } from './chunk-UGMDBW46.js';
|
|
7
8
|
import { documentPages, walk, categoryOf, getLabel, getContent, isInputComponentNode, getInteractiveLabel, getInteractions, getItemInteractions, buildSiteModel, collectInteractions, walkAnchorPaths, resolveAnchorPath, anchorChildNodes, isUrlTarget, variantScope } from './chunk-XYACLXXF.js';
|
|
8
9
|
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, VISIBLE_GUARD_ATTR, anchorIntent, buildSiteModel, cloneNode, collectInteractions, contains, countNodes, createHtmlRenderer, darkTheme, defaultTheme, documentDefinitions, documentPages, expandRepeats, filterUnscopedPages, filterVariantScope, find, findAll, findByType, generateComponentStyles, generateStyles, getAncestors, getIconData, 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, resolvePageDimensions, variantScope, walk, walkDocument } from './chunk-XYACLXXF.js';
|
|
9
10
|
import { GRAMMAR_CHILD_KEYWORDS, NODE_TYPE_MAP, VALID_ATTRIBUTE_NAMES } from './chunk-V3HVWC7C.js';
|
|
@@ -1349,6 +1350,189 @@ function importFromJson(json) {
|
|
|
1349
1350
|
return json.pages;
|
|
1350
1351
|
}
|
|
1351
1352
|
|
|
1353
|
+
// src/export/v4-figma.ts
|
|
1354
|
+
function routeKey(route) {
|
|
1355
|
+
var _a;
|
|
1356
|
+
return `${route.namespace}/${route.id}/${(_a = route.variant) != null ? _a : ""}`;
|
|
1357
|
+
}
|
|
1358
|
+
function scalar(value) {
|
|
1359
|
+
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean")
|
|
1360
|
+
return String(value);
|
|
1361
|
+
return "";
|
|
1362
|
+
}
|
|
1363
|
+
function validateProfile(profile) {
|
|
1364
|
+
if (profile === null || typeof profile !== "object") return null;
|
|
1365
|
+
const value = profile;
|
|
1366
|
+
if (value.id !== "wireweave-figma-mapping-v1" || value.target !== "figma-plugin-json-v1")
|
|
1367
|
+
return null;
|
|
1368
|
+
const screens = value.screens === void 0 ? "selected" : value.screens;
|
|
1369
|
+
if (screens !== "selected" && screens !== "all") return null;
|
|
1370
|
+
const board = value.board;
|
|
1371
|
+
if (board !== void 0 && (board === null || typeof board !== "object" || typeof board.namespace !== "string" || typeof board.id !== "string" || board.variant !== void 0 && typeof board.variant !== "string"))
|
|
1372
|
+
return null;
|
|
1373
|
+
return {
|
|
1374
|
+
id: "wireweave-figma-mapping-v1",
|
|
1375
|
+
target: "figma-plugin-json-v1",
|
|
1376
|
+
...board === void 0 ? {} : { board },
|
|
1377
|
+
screens
|
|
1378
|
+
};
|
|
1379
|
+
}
|
|
1380
|
+
function figmaType(kind) {
|
|
1381
|
+
if (["text", "title", "link", "badge", "marker"].includes(kind)) return "TEXT";
|
|
1382
|
+
if (["image", "placeholder", "divider", "icon", "avatar"].includes(kind)) return "RECTANGLE";
|
|
1383
|
+
return "FRAME";
|
|
1384
|
+
}
|
|
1385
|
+
function metadata(source) {
|
|
1386
|
+
return {
|
|
1387
|
+
identity: source.identity,
|
|
1388
|
+
moduleId: source.moduleId,
|
|
1389
|
+
source: source.source,
|
|
1390
|
+
invocationSources: source.invocationSources,
|
|
1391
|
+
requirementRefs: source.requirementRefs,
|
|
1392
|
+
obligationRefs: source.obligationRefs,
|
|
1393
|
+
operationIds: source.operationIds
|
|
1394
|
+
};
|
|
1395
|
+
}
|
|
1396
|
+
function semanticId(renderedId) {
|
|
1397
|
+
return `wf-${digestV4(renderedId).slice("sha256:".length)}`;
|
|
1398
|
+
}
|
|
1399
|
+
function nodeLabel(node) {
|
|
1400
|
+
var _a, _b;
|
|
1401
|
+
return scalar((_b = (_a = node.node.label) != null ? _a : node.node.attributes.label) != null ? _b : node.node.attributes.aria) || node.node.kind;
|
|
1402
|
+
}
|
|
1403
|
+
function nodeToFigma(node, sources, mappings) {
|
|
1404
|
+
const source = sources.get(node.renderedId);
|
|
1405
|
+
if (source === void 0) throw new TypeError(`Missing linked source map for ${node.renderedId}`);
|
|
1406
|
+
const id = semanticId(node.renderedId);
|
|
1407
|
+
mappings.push({ renderedId: node.renderedId, figmaId: id, identity: source.identity, source });
|
|
1408
|
+
const type = figmaType(node.node.kind);
|
|
1409
|
+
const attributes = node.node.attributes;
|
|
1410
|
+
const result = {
|
|
1411
|
+
id,
|
|
1412
|
+
name: nodeLabel(node),
|
|
1413
|
+
type,
|
|
1414
|
+
visible: true,
|
|
1415
|
+
wireweaveType: node.node.kind,
|
|
1416
|
+
wireweaveMetadata: metadata(source),
|
|
1417
|
+
...Object.keys(attributes).length === 0 ? {} : { wireweaveAttributes: attributes }
|
|
1418
|
+
};
|
|
1419
|
+
if (type === "TEXT") {
|
|
1420
|
+
result.textStyle = {
|
|
1421
|
+
fontSize: 16,
|
|
1422
|
+
fontWeight: node.node.kind === "title" ? 600 : 400,
|
|
1423
|
+
textAlignHorizontal: "LEFT",
|
|
1424
|
+
characters: nodeLabel(node)
|
|
1425
|
+
};
|
|
1426
|
+
} else if (type === "RECTANGLE") {
|
|
1427
|
+
result.size = { width: 200, height: node.node.kind === "divider" ? 1 : 120 };
|
|
1428
|
+
result.fills = [{ type: "SOLID", color: { r: 0.96, g: 0.96, b: 0.96, a: 1 } }];
|
|
1429
|
+
} else {
|
|
1430
|
+
result.autoLayout = {
|
|
1431
|
+
layoutMode: node.node.kind === "row" ? "HORIZONTAL" : "VERTICAL",
|
|
1432
|
+
layoutSizingHorizontal: "FILL",
|
|
1433
|
+
layoutSizingVertical: "HUG",
|
|
1434
|
+
primaryAxisAlignItems: "MIN",
|
|
1435
|
+
counterAxisAlignItems: "STRETCH",
|
|
1436
|
+
paddingTop: 8,
|
|
1437
|
+
paddingRight: 8,
|
|
1438
|
+
paddingBottom: 8,
|
|
1439
|
+
paddingLeft: 8,
|
|
1440
|
+
itemSpacing: 8,
|
|
1441
|
+
layoutWrap: "NO_WRAP"
|
|
1442
|
+
};
|
|
1443
|
+
result.size = { width: 1440, height: 1 };
|
|
1444
|
+
}
|
|
1445
|
+
if (node.children.length > 0)
|
|
1446
|
+
result.children = node.children.map((child) => nodeToFigma(child, sources, mappings));
|
|
1447
|
+
return result;
|
|
1448
|
+
}
|
|
1449
|
+
function screenRoots(data, screen) {
|
|
1450
|
+
var _a;
|
|
1451
|
+
const shell = screen.shell === void 0 ? void 0 : data.shells.find((item) => item.owner.key === screen.shell);
|
|
1452
|
+
return [...(_a = shell == null ? void 0 : shell.children) != null ? _a : [], ...screen.children];
|
|
1453
|
+
}
|
|
1454
|
+
function interactionLosses(sources) {
|
|
1455
|
+
return sources.flatMap(
|
|
1456
|
+
(source) => source.operationIds.map((operationId) => ({
|
|
1457
|
+
code: "WW_EXPORT_FIGMA_INTERACTION",
|
|
1458
|
+
kind: "interaction",
|
|
1459
|
+
message: "Figma mapping preserves operation identity but cannot execute runtime semantics.",
|
|
1460
|
+
renderedId: source.renderedId,
|
|
1461
|
+
operationId,
|
|
1462
|
+
source,
|
|
1463
|
+
details: { target: "figma-plugin-json-v1" }
|
|
1464
|
+
}))
|
|
1465
|
+
);
|
|
1466
|
+
}
|
|
1467
|
+
function exportLinkedAppToFigma(linked, profile) {
|
|
1468
|
+
var _a;
|
|
1469
|
+
const data = getLinkedAppData(linked);
|
|
1470
|
+
if (data === void 0)
|
|
1471
|
+
return failed([diagnostic("WW_SCHEMA", "app.untrusted-linked-model", void 0, {}, "compile")]);
|
|
1472
|
+
const valid = validateProfile(profile);
|
|
1473
|
+
if (valid === null)
|
|
1474
|
+
return failed([
|
|
1475
|
+
diagnostic("WW_EXPORT_PROFILE", "export.invalid-figma-profile", void 0, {}, "compile")
|
|
1476
|
+
]);
|
|
1477
|
+
const screens = data.screens.slice().sort((a, b) => routeKey(a.route).localeCompare(routeKey(b.route)));
|
|
1478
|
+
const target = (_a = valid.board) != null ? _a : data.bundle.entry;
|
|
1479
|
+
const selected = valid.screens === "all" ? screens : screens.filter((screen) => routeKey(screen.route) === routeKey(target));
|
|
1480
|
+
if (selected.length === 0)
|
|
1481
|
+
return failed([
|
|
1482
|
+
diagnostic("WW_EXPORT_BOARD", "export.board-not-found", void 0, {}, "compile")
|
|
1483
|
+
]);
|
|
1484
|
+
const renderedIds = /* @__PURE__ */ new Set();
|
|
1485
|
+
for (const screen of selected) {
|
|
1486
|
+
const pending = screenRoots(data, screen);
|
|
1487
|
+
while (pending.length > 0) {
|
|
1488
|
+
const node = pending.shift();
|
|
1489
|
+
renderedIds.add(node.renderedId);
|
|
1490
|
+
pending.unshift(...node.children);
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
const sourceMap = data.sourceMap.filter((entry) => renderedIds.has(entry.renderedId)).slice().sort((a, b) => a.renderedId.localeCompare(b.renderedId));
|
|
1494
|
+
const sourceById = new Map(sourceMap.map((entry) => [entry.renderedId, entry]));
|
|
1495
|
+
const mappings = [];
|
|
1496
|
+
const document = {
|
|
1497
|
+
id: `document-${digestV4(linked.digest).slice("sha256:".length)}`,
|
|
1498
|
+
name: data.bundle.id,
|
|
1499
|
+
type: "DOCUMENT",
|
|
1500
|
+
visible: true,
|
|
1501
|
+
children: selected.map((screen) => ({
|
|
1502
|
+
id: `canvas-${digestV4(routeKey(screen.route)).slice("sha256:".length)}`,
|
|
1503
|
+
name: routeKey(screen.route),
|
|
1504
|
+
type: "CANVAS",
|
|
1505
|
+
visible: true,
|
|
1506
|
+
children: screenRoots(data, screen).map((node) => nodeToFigma(node, sourceById, mappings))
|
|
1507
|
+
}))
|
|
1508
|
+
};
|
|
1509
|
+
mappings.sort((a, b) => a.renderedId.localeCompare(b.renderedId));
|
|
1510
|
+
const lossReport = interactionLosses(sourceMap);
|
|
1511
|
+
const diagnostics = lossReport.length ? [
|
|
1512
|
+
{
|
|
1513
|
+
severity: "warning",
|
|
1514
|
+
code: "WW_EXPORT_FIGMA_INTERACTION",
|
|
1515
|
+
message: "Runtime operations are preserved as metadata and recorded in lossReport.",
|
|
1516
|
+
details: { count: lossReport.length }
|
|
1517
|
+
}
|
|
1518
|
+
] : [];
|
|
1519
|
+
const artifact = freeze({
|
|
1520
|
+
kind: "FigmaMappingArtifact",
|
|
1521
|
+
version: "4.0.0",
|
|
1522
|
+
format: "figma",
|
|
1523
|
+
target: valid.target,
|
|
1524
|
+
appId: data.bundle.id,
|
|
1525
|
+
linkedDigest: linked.digest,
|
|
1526
|
+
profileDigest: digestV4(jcs(valid)),
|
|
1527
|
+
document,
|
|
1528
|
+
mappings,
|
|
1529
|
+
sourceMap,
|
|
1530
|
+
lossReport,
|
|
1531
|
+
diagnostics
|
|
1532
|
+
});
|
|
1533
|
+
return { ok: true, value: artifact, diagnostics: [] };
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1352
1536
|
// src/export/figma.ts
|
|
1353
1537
|
var SPACING_SCALE = {
|
|
1354
1538
|
0: 0,
|
|
@@ -1572,13 +1756,13 @@ function extractStrokes(node) {
|
|
|
1572
1756
|
strokeWeight: 1
|
|
1573
1757
|
};
|
|
1574
1758
|
}
|
|
1575
|
-
function
|
|
1576
|
-
const
|
|
1759
|
+
function nodeToFigma2(node) {
|
|
1760
|
+
const figmaType2 = mapToFigmaType(node.type);
|
|
1577
1761
|
const content = getNodeContent(node);
|
|
1578
1762
|
const figmaNode = {
|
|
1579
1763
|
id: generateFigmaId(),
|
|
1580
1764
|
name: content || node.type,
|
|
1581
|
-
type:
|
|
1765
|
+
type: figmaType2,
|
|
1582
1766
|
visible: true,
|
|
1583
1767
|
wireweaveType: node.type.toLowerCase()
|
|
1584
1768
|
};
|
|
@@ -1586,7 +1770,7 @@ function nodeToFigma(node) {
|
|
|
1586
1770
|
if (Object.keys(attrs).length > 0) {
|
|
1587
1771
|
figmaNode.wireweaveAttributes = attrs;
|
|
1588
1772
|
}
|
|
1589
|
-
if (
|
|
1773
|
+
if (figmaType2 === "FRAME") {
|
|
1590
1774
|
figmaNode.autoLayout = extractAutoLayout(node);
|
|
1591
1775
|
figmaNode.size = extractSize(node);
|
|
1592
1776
|
const fills = extractFills(node);
|
|
@@ -1599,12 +1783,12 @@ function nodeToFigma(node) {
|
|
|
1599
1783
|
if (node.type.toLowerCase() === "card") {
|
|
1600
1784
|
figmaNode.cornerRadius = 8;
|
|
1601
1785
|
}
|
|
1602
|
-
} else if (
|
|
1786
|
+
} else if (figmaType2 === "TEXT") {
|
|
1603
1787
|
figmaNode.textStyle = extractTextStyle(node);
|
|
1604
1788
|
if (getAttr(node, "muted")) {
|
|
1605
1789
|
figmaNode.fills = [{ type: "SOLID", color: COLORS.textMuted }];
|
|
1606
1790
|
}
|
|
1607
|
-
} else if (
|
|
1791
|
+
} else if (figmaType2 === "RECTANGLE") {
|
|
1608
1792
|
figmaNode.size = extractSize(node, 200, 150);
|
|
1609
1793
|
const fills = extractFills(node);
|
|
1610
1794
|
if (fills) {
|
|
@@ -1617,7 +1801,7 @@ function nodeToFigma(node) {
|
|
|
1617
1801
|
const children = [];
|
|
1618
1802
|
for (const child of node.children) {
|
|
1619
1803
|
if (child && typeof child === "object" && "type" in child) {
|
|
1620
|
-
children.push(
|
|
1804
|
+
children.push(nodeToFigma2(child));
|
|
1621
1805
|
}
|
|
1622
1806
|
}
|
|
1623
1807
|
if (children.length > 0) {
|
|
@@ -1626,7 +1810,10 @@ function nodeToFigma(node) {
|
|
|
1626
1810
|
}
|
|
1627
1811
|
return figmaNode;
|
|
1628
1812
|
}
|
|
1629
|
-
function exportToFigma(doc) {
|
|
1813
|
+
function exportToFigma(doc, profile) {
|
|
1814
|
+
if ("kind" in doc && doc.kind === "LinkedApp")
|
|
1815
|
+
return exportLinkedAppToFigma(doc, profile);
|
|
1816
|
+
const legacyDocument = doc;
|
|
1630
1817
|
resetFigmaIdCounter();
|
|
1631
1818
|
const documentNode = {
|
|
1632
1819
|
id: generateFigmaId(),
|
|
@@ -1635,11 +1822,11 @@ function exportToFigma(doc) {
|
|
|
1635
1822
|
visible: true,
|
|
1636
1823
|
children: []
|
|
1637
1824
|
};
|
|
1638
|
-
for (const page of documentPages(
|
|
1639
|
-
documentNode.children.push(
|
|
1825
|
+
for (const page of documentPages(legacyDocument)) {
|
|
1826
|
+
documentNode.children.push(nodeToFigma2(page));
|
|
1640
1827
|
}
|
|
1641
1828
|
const componentMappings = {};
|
|
1642
|
-
const types = getComponentTypes(
|
|
1829
|
+
const types = getComponentTypes(legacyDocument);
|
|
1643
1830
|
for (const type of types) {
|
|
1644
1831
|
componentMappings[type] = mapToFigmaType(type);
|
|
1645
1832
|
}
|
|
@@ -2359,4 +2546,4 @@ function buildDomTreeNode(node, path) {
|
|
|
2359
2546
|
return treeNode;
|
|
2360
2547
|
}
|
|
2361
2548
|
|
|
2362
|
-
export { analyze, areIdentical, buildAnchorIndex, buildDomTree, diff, exportToFigma, exportToFigmaString, exportToJson, exportToJsonString, extractAllScreenFields, extractScreenFields, extractScreenTransitions, formatWireframeCode, getChangeSummary, getNodeSource, getPageSource, getValidationErrors, importFromJson, isValidAst, printWireframe, resetFigmaIdCounter, resolveAnchor, validate };
|
|
2549
|
+
export { analyze, areIdentical, buildAnchorIndex, buildDomTree, diff, exportLinkedAppToFigma, exportToFigma, exportToFigmaString, exportToJson, exportToJsonString, extractAllScreenFields, extractScreenFields, extractScreenTransitions, formatWireframeCode, getChangeSummary, getNodeSource, getPageSource, getValidationErrors, importFromJson, isValidAst, printWireframe, resetFigmaIdCounter, resolveAnchor, validate };
|
package/dist/parser.cjs
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkH2SWIUMU_cjs = require('./chunk-H2SWIUMU.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "V4ParseError", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkH2SWIUMU_cjs.V4ParseError; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "getErrors", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkH2SWIUMU_cjs.getErrors; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getV4SourceSpan", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkH2SWIUMU_cjs.getV4SourceSpan; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "isValid", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkH2SWIUMU_cjs.isValid; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "parse", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkH2SWIUMU_cjs.parse; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "parseV4", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkH2SWIUMU_cjs.parseV4; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "tryParse", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkH2SWIUMU_cjs.tryParse; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "tryParseV4", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkH2SWIUMU_cjs.tryParseV4; }
|
|
38
38
|
});
|
package/dist/parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { V4ParseError, getErrors, getV4SourceSpan, isValid, parse, parseV4, tryParse, tryParseV4 } from './chunk-
|
|
1
|
+
export { V4ParseError, getErrors, getV4SourceSpan, isValid, parse, parseV4, tryParse, tryParseV4 } from './chunk-UGMDBW46.js';
|
package/dist/renderer.cjs
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkKMZXXIM2_cjs = require('./chunk-KMZXXIM2.cjs');
|
|
4
|
+
var chunkVCHXMPZL_cjs = require('./chunk-VCHXMPZL.cjs');
|
|
5
5
|
var chunkZPHNXJRY_cjs = require('./chunk-ZPHNXJRY.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "layoutCanvas", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkKMZXXIM2_cjs.layoutCanvas; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "render", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkKMZXXIM2_cjs.render; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "renderCanvas", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkKMZXXIM2_cjs.renderCanvas; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "renderToHtml", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkKMZXXIM2_cjs.renderToHtml; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "renderToSvg", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkKMZXXIM2_cjs.renderToSvg; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "renderSite", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkVCHXMPZL_cjs.renderSite; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "ENABLED_GUARD_ATTR", {
|
|
34
34
|
enumerable: true,
|