@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.
- package/dist/app.cjs +50 -31
- package/dist/app.d.cts +3 -3
- package/dist/app.d.ts +3 -3
- package/dist/app.js +1 -31
- package/dist/chunk-3RWGG5EC.js +296 -342
- package/dist/chunk-4TMDPWPR.cjs +22 -32
- package/dist/{chunk-7VTK6LHL.cjs → chunk-4UZBGIGJ.cjs} +82 -97
- package/dist/chunk-5DGRIQDU.cjs +26 -44
- package/dist/chunk-ETV4XYOV.cjs +4 -6
- package/dist/{chunk-QOS4IC75.js → chunk-FS6A6EJ4.js} +28 -57
- package/dist/chunk-IMUVIIJR.cjs +317 -354
- package/dist/chunk-JJWAFHSV.js +2 -23
- package/dist/chunk-MD6MNOEQ.cjs +121 -142
- package/dist/chunk-PKBMQBKP.js +1 -3
- package/dist/chunk-R5WBZWBC.js +3 -19
- package/dist/chunk-V3HVWC7C.js +1 -32
- package/dist/chunk-XYACLXXF.js +4 -132
- package/dist/chunk-ZPHNXJRY.cjs +158 -180
- package/dist/{index-Da_B3eoM.d.ts → index-BGU_4N4W.d.ts} +2 -2
- package/dist/{index-G906GEtg.d.cts → index-BlNYFaZd.d.cts} +2 -2
- package/dist/{index-CghCKUPx.d.ts → index-Cx4-VXVS.d.ts} +2 -2
- package/dist/{index-Br7pNaf3.d.cts → index-DyXaMSgd.d.cts} +2 -2
- package/dist/index.cjs +738 -419
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +12 -385
- package/dist/interaction.cjs +26 -17
- package/dist/interaction.d.cts +2 -2
- package/dist/interaction.d.ts +2 -2
- package/dist/interaction.js +1 -17
- package/dist/parser.cjs +38 -21
- package/dist/parser.d.cts +3 -3
- package/dist/parser.d.ts +3 -3
- package/dist/parser.js +1 -21
- package/dist/renderer.cjs +124 -68
- package/dist/renderer.d.cts +104 -104
- package/dist/renderer.d.ts +104 -104
- package/dist/renderer.js +3 -68
- package/dist/spec.cjs +94 -49
- package/dist/spec.js +1 -49
- package/dist/{types-vhPCZpAW.d.cts → types-CGRi1k2N.d.cts} +1 -1
- package/dist/{types-vhPCZpAW.d.ts → types-CGRi1k2N.d.ts} +1 -1
- package/dist/{v4-types-Baz9yqAS.d.cts → v4-types-2ORUg6To.d.cts} +1 -1
- package/dist/{v4-types-Baz9yqAS.d.ts → v4-types-2ORUg6To.d.ts} +1 -1
- package/package.json +21 -23
- package/dist/chunk-WV724EAW.js +0 -0
- package/dist/chunk-XENFKHRC.cjs +0 -1
package/dist/chunk-MD6MNOEQ.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/spec/grammar-elements.generated.ts
|
|
4
|
+
exports.GRAMMAR_ELEMENTS = {
|
|
3
5
|
page: "Page",
|
|
4
6
|
layout: "Layout",
|
|
5
7
|
component: "Component",
|
|
@@ -52,8 +54,8 @@ var GRAMMAR_ELEMENTS = {
|
|
|
52
54
|
annotations: "Annotations",
|
|
53
55
|
item: "AnnotationItem"
|
|
54
56
|
};
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
exports.GRAMMAR_BLOCK_NODE_TYPES = ["ListItem", "DropdownItem", "NavGroup", "NavItem"];
|
|
58
|
+
exports.GRAMMAR_CHILD_KEYWORDS = [
|
|
57
59
|
"page",
|
|
58
60
|
"header",
|
|
59
61
|
"main",
|
|
@@ -109,7 +111,7 @@ var GRAMMAR_CHILD_KEYWORDS = [
|
|
|
109
111
|
];
|
|
110
112
|
|
|
111
113
|
// src/spec/icon-names.generated.ts
|
|
112
|
-
|
|
114
|
+
exports.LUCIDE_ICON_NAMES = [
|
|
113
115
|
"a-arrow-down",
|
|
114
116
|
"a-arrow-up",
|
|
115
117
|
"a-large-small",
|
|
@@ -1780,7 +1782,7 @@ var LUCIDE_ICON_NAMES = [
|
|
|
1780
1782
|
];
|
|
1781
1783
|
|
|
1782
1784
|
// src/viewport/presets.ts
|
|
1783
|
-
|
|
1785
|
+
exports.DEVICE_PRESETS = {
|
|
1784
1786
|
// Desktop
|
|
1785
1787
|
"desktop-sm": { width: 1280, height: 800, label: "Small Laptop", category: "desktop" },
|
|
1786
1788
|
desktop: { width: 1440, height: 900, label: "Desktop", category: "desktop" },
|
|
@@ -1804,7 +1806,7 @@ var DEVICE_PRESETS = {
|
|
|
1804
1806
|
android: { width: 360, height: 800, label: "Android", category: "mobile" },
|
|
1805
1807
|
"android-lg": { width: 412, height: 915, label: "Android Large", category: "mobile" }
|
|
1806
1808
|
};
|
|
1807
|
-
|
|
1809
|
+
exports.DEFAULT_VIEWPORT = exports.DEVICE_PRESETS["desktop"];
|
|
1808
1810
|
function parseViewportString(value) {
|
|
1809
1811
|
if (typeof value === "number") {
|
|
1810
1812
|
return { width: value };
|
|
@@ -1816,27 +1818,27 @@ function parseViewportString(value) {
|
|
|
1816
1818
|
return { width, height };
|
|
1817
1819
|
}
|
|
1818
1820
|
function resolveViewport(viewport, device) {
|
|
1819
|
-
if (device && DEVICE_PRESETS[device]) {
|
|
1820
|
-
return DEVICE_PRESETS[device];
|
|
1821
|
+
if (device && exports.DEVICE_PRESETS[device]) {
|
|
1822
|
+
return exports.DEVICE_PRESETS[device];
|
|
1821
1823
|
}
|
|
1822
1824
|
if (viewport !== void 0) {
|
|
1823
1825
|
const parsed = parseViewportString(viewport);
|
|
1824
1826
|
if (parsed) {
|
|
1825
1827
|
return {
|
|
1826
1828
|
width: parsed.width,
|
|
1827
|
-
height: parsed.height || DEFAULT_VIEWPORT.height,
|
|
1828
|
-
label: `${parsed.width}x${parsed.height || DEFAULT_VIEWPORT.height}`,
|
|
1829
|
+
height: parsed.height || exports.DEFAULT_VIEWPORT.height,
|
|
1830
|
+
label: `${parsed.width}x${parsed.height || exports.DEFAULT_VIEWPORT.height}`,
|
|
1829
1831
|
category: parsed.width <= 430 ? "mobile" : parsed.width <= 1024 ? "tablet" : "desktop"
|
|
1830
1832
|
};
|
|
1831
1833
|
}
|
|
1832
1834
|
}
|
|
1833
|
-
return DEFAULT_VIEWPORT;
|
|
1835
|
+
return exports.DEFAULT_VIEWPORT;
|
|
1834
1836
|
}
|
|
1835
1837
|
function getDevicePresets() {
|
|
1836
|
-
return { ...DEVICE_PRESETS };
|
|
1838
|
+
return { ...exports.DEVICE_PRESETS };
|
|
1837
1839
|
}
|
|
1838
1840
|
function isValidDevicePreset(device) {
|
|
1839
|
-
return device in DEVICE_PRESETS;
|
|
1841
|
+
return device in exports.DEVICE_PRESETS;
|
|
1840
1842
|
}
|
|
1841
1843
|
function calculateViewportScale(viewport, containerWidth, containerHeight, maxScale = 1) {
|
|
1842
1844
|
const scaleX = containerWidth / viewport.width;
|
|
@@ -1863,7 +1865,7 @@ ${html}
|
|
|
1863
1865
|
}
|
|
1864
1866
|
|
|
1865
1867
|
// src/spec/attributes.ts
|
|
1866
|
-
|
|
1868
|
+
exports.ATTRIBUTE_SPECS = [
|
|
1867
1869
|
// ============================================
|
|
1868
1870
|
// Spacing Attributes
|
|
1869
1871
|
// ============================================
|
|
@@ -2125,7 +2127,7 @@ var ATTRIBUTE_SPECS = [
|
|
|
2125
2127
|
// `DEVICE_PRESETS` and silently falls back to the default when it misses, so
|
|
2126
2128
|
// a hand-kept copy of the key list would turn every typo into a wireframe
|
|
2127
2129
|
// rendered at the wrong width with no diagnostic.
|
|
2128
|
-
values: Object.keys(DEVICE_PRESETS),
|
|
2130
|
+
values: Object.keys(exports.DEVICE_PRESETS),
|
|
2129
2131
|
description: "Device preset"
|
|
2130
2132
|
},
|
|
2131
2133
|
// ============================================
|
|
@@ -2215,13 +2217,13 @@ var ATTRIBUTE_SPECS = [
|
|
|
2215
2217
|
// ============================================
|
|
2216
2218
|
{ name: "uses", type: "string", description: "Name of the layout a page is drawn inside" }
|
|
2217
2219
|
];
|
|
2218
|
-
|
|
2219
|
-
ATTRIBUTE_SPECS.map((attr) => attr.name)
|
|
2220
|
+
exports.VALID_ATTRIBUTE_NAMES = new Set(
|
|
2221
|
+
exports.ATTRIBUTE_SPECS.map((attr) => attr.name)
|
|
2220
2222
|
);
|
|
2221
|
-
|
|
2222
|
-
ATTRIBUTE_SPECS.map((attr) => [attr.name, attr])
|
|
2223
|
+
exports.ATTRIBUTE_MAP = new Map(
|
|
2224
|
+
exports.ATTRIBUTE_SPECS.map((attr) => [attr.name, attr])
|
|
2223
2225
|
);
|
|
2224
|
-
|
|
2226
|
+
exports.BOX_ATTRIBUTES = [
|
|
2225
2227
|
// Guarded runtime outcomes
|
|
2226
2228
|
"visibleWhen",
|
|
2227
2229
|
"enabledWhen",
|
|
@@ -2259,7 +2261,7 @@ var BOX_ATTRIBUTES = [
|
|
|
2259
2261
|
"x",
|
|
2260
2262
|
"y"
|
|
2261
2263
|
];
|
|
2262
|
-
|
|
2264
|
+
exports.CONTAINER_ATTRIBUTES = [
|
|
2263
2265
|
// Flex
|
|
2264
2266
|
"flex",
|
|
2265
2267
|
"direction",
|
|
@@ -2271,7 +2273,7 @@ var CONTAINER_ATTRIBUTES = [
|
|
|
2271
2273
|
"border",
|
|
2272
2274
|
"rounded"
|
|
2273
2275
|
];
|
|
2274
|
-
|
|
2276
|
+
exports.INTERACTIVE_ATTRIBUTES = [
|
|
2275
2277
|
"navigate",
|
|
2276
2278
|
"opens",
|
|
2277
2279
|
"toggles",
|
|
@@ -2300,10 +2302,10 @@ var COMPONENT_METADATA = {
|
|
|
2300
2302
|
// `when` names positions along it — the two sit at different levels and a
|
|
2301
2303
|
// page carrying both would be asking `expandVariants` to filter a page
|
|
2302
2304
|
// against a name it is itself the source of.
|
|
2303
|
-
...BOX_ATTRIBUTES.filter(
|
|
2305
|
+
...exports.BOX_ATTRIBUTES.filter(
|
|
2304
2306
|
(name) => name !== "visibleWhen" && name !== "enabledWhen" && name !== "when"
|
|
2305
2307
|
),
|
|
2306
|
-
...CONTAINER_ATTRIBUTES,
|
|
2308
|
+
...exports.CONTAINER_ATTRIBUTES,
|
|
2307
2309
|
"id",
|
|
2308
2310
|
"title",
|
|
2309
2311
|
"width",
|
|
@@ -2353,31 +2355,31 @@ var COMPONENT_METADATA = {
|
|
|
2353
2355
|
},
|
|
2354
2356
|
header: {
|
|
2355
2357
|
category: "layout",
|
|
2356
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES],
|
|
2358
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES],
|
|
2357
2359
|
hasChildren: true,
|
|
2358
2360
|
description: "Page header section"
|
|
2359
2361
|
},
|
|
2360
2362
|
main: {
|
|
2361
2363
|
category: "layout",
|
|
2362
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES, "scroll"],
|
|
2364
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "scroll"],
|
|
2363
2365
|
hasChildren: true,
|
|
2364
2366
|
description: "Main content section"
|
|
2365
2367
|
},
|
|
2366
2368
|
footer: {
|
|
2367
2369
|
category: "layout",
|
|
2368
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES],
|
|
2370
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES],
|
|
2369
2371
|
hasChildren: true,
|
|
2370
2372
|
description: "Page footer section"
|
|
2371
2373
|
},
|
|
2372
2374
|
sidebar: {
|
|
2373
2375
|
category: "layout",
|
|
2374
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES, "position"],
|
|
2376
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "position"],
|
|
2375
2377
|
hasChildren: true,
|
|
2376
2378
|
description: "Side navigation or content area"
|
|
2377
2379
|
},
|
|
2378
2380
|
section: {
|
|
2379
2381
|
category: "layout",
|
|
2380
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES, "title", "expanded"],
|
|
2382
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "title", "expanded"],
|
|
2381
2383
|
hasChildren: true,
|
|
2382
2384
|
description: "Grouped content section"
|
|
2383
2385
|
},
|
|
@@ -2386,15 +2388,15 @@ var COMPONENT_METADATA = {
|
|
|
2386
2388
|
// ============================================
|
|
2387
2389
|
row: {
|
|
2388
2390
|
category: "grid",
|
|
2389
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES],
|
|
2391
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES],
|
|
2390
2392
|
hasChildren: true,
|
|
2391
2393
|
description: "Horizontal flex container"
|
|
2392
2394
|
},
|
|
2393
2395
|
col: {
|
|
2394
2396
|
category: "grid",
|
|
2395
2397
|
attributes: [
|
|
2396
|
-
...BOX_ATTRIBUTES,
|
|
2397
|
-
...CONTAINER_ATTRIBUTES,
|
|
2398
|
+
...exports.BOX_ATTRIBUTES,
|
|
2399
|
+
...exports.CONTAINER_ATTRIBUTES,
|
|
2398
2400
|
// `span` sizes a grid column and does nothing on any other element, so it
|
|
2399
2401
|
// is declared on the one element that reads it rather than on every one.
|
|
2400
2402
|
"span",
|
|
@@ -2410,13 +2412,13 @@ var COMPONENT_METADATA = {
|
|
|
2410
2412
|
},
|
|
2411
2413
|
stack: {
|
|
2412
2414
|
category: "grid",
|
|
2413
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES],
|
|
2415
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES],
|
|
2414
2416
|
hasChildren: true,
|
|
2415
2417
|
description: "Vertical stack that only takes content height (unlike col which fills)"
|
|
2416
2418
|
},
|
|
2417
2419
|
relative: {
|
|
2418
2420
|
category: "grid",
|
|
2419
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES],
|
|
2421
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES],
|
|
2420
2422
|
hasChildren: true,
|
|
2421
2423
|
description: "Container for overlaying elements with absolute positioning"
|
|
2422
2424
|
},
|
|
@@ -2426,9 +2428,9 @@ var COMPONENT_METADATA = {
|
|
|
2426
2428
|
card: {
|
|
2427
2429
|
category: "container",
|
|
2428
2430
|
attributes: [
|
|
2429
|
-
...BOX_ATTRIBUTES,
|
|
2430
|
-
...CONTAINER_ATTRIBUTES,
|
|
2431
|
-
...INTERACTIVE_ATTRIBUTES,
|
|
2431
|
+
...exports.BOX_ATTRIBUTES,
|
|
2432
|
+
...exports.CONTAINER_ATTRIBUTES,
|
|
2433
|
+
...exports.INTERACTIVE_ATTRIBUTES,
|
|
2432
2434
|
"title",
|
|
2433
2435
|
"shadow"
|
|
2434
2436
|
],
|
|
@@ -2437,19 +2439,19 @@ var COMPONENT_METADATA = {
|
|
|
2437
2439
|
},
|
|
2438
2440
|
modal: {
|
|
2439
2441
|
category: "container",
|
|
2440
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES, "id", "title"],
|
|
2442
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "id", "title"],
|
|
2441
2443
|
hasChildren: true,
|
|
2442
2444
|
description: "Modal dialog overlay"
|
|
2443
2445
|
},
|
|
2444
2446
|
drawer: {
|
|
2445
2447
|
category: "container",
|
|
2446
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES, "id", "title", "position"],
|
|
2448
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "id", "title", "position"],
|
|
2447
2449
|
hasChildren: true,
|
|
2448
2450
|
description: "Slide-in drawer panel"
|
|
2449
2451
|
},
|
|
2450
2452
|
accordion: {
|
|
2451
2453
|
category: "container",
|
|
2452
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES, "title"],
|
|
2454
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "title"],
|
|
2453
2455
|
hasChildren: true,
|
|
2454
2456
|
description: "Collapsible sections container"
|
|
2455
2457
|
},
|
|
@@ -2458,22 +2460,22 @@ var COMPONENT_METADATA = {
|
|
|
2458
2460
|
// ============================================
|
|
2459
2461
|
text: {
|
|
2460
2462
|
category: "text",
|
|
2461
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES, "size", "weight", "muted", "bold"],
|
|
2463
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "size", "weight", "muted", "bold"],
|
|
2462
2464
|
hasChildren: false,
|
|
2463
2465
|
description: "Text content"
|
|
2464
2466
|
},
|
|
2465
2467
|
title: {
|
|
2466
2468
|
category: "text",
|
|
2467
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES, "level", "size"],
|
|
2469
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "level", "size"],
|
|
2468
2470
|
hasChildren: false,
|
|
2469
2471
|
description: "Heading element (h1-h6)"
|
|
2470
2472
|
},
|
|
2471
2473
|
link: {
|
|
2472
2474
|
category: "text",
|
|
2473
2475
|
attributes: [
|
|
2474
|
-
...BOX_ATTRIBUTES,
|
|
2475
|
-
...CONTAINER_ATTRIBUTES,
|
|
2476
|
-
...INTERACTIVE_ATTRIBUTES,
|
|
2476
|
+
...exports.BOX_ATTRIBUTES,
|
|
2477
|
+
...exports.CONTAINER_ATTRIBUTES,
|
|
2478
|
+
...exports.INTERACTIVE_ATTRIBUTES,
|
|
2477
2479
|
"href",
|
|
2478
2480
|
"external"
|
|
2479
2481
|
],
|
|
@@ -2486,8 +2488,8 @@ var COMPONENT_METADATA = {
|
|
|
2486
2488
|
input: {
|
|
2487
2489
|
category: "input",
|
|
2488
2490
|
attributes: [
|
|
2489
|
-
...BOX_ATTRIBUTES,
|
|
2490
|
-
...CONTAINER_ATTRIBUTES,
|
|
2491
|
+
...exports.BOX_ATTRIBUTES,
|
|
2492
|
+
...exports.CONTAINER_ATTRIBUTES,
|
|
2491
2493
|
"label",
|
|
2492
2494
|
"inputType",
|
|
2493
2495
|
"placeholder",
|
|
@@ -2504,8 +2506,8 @@ var COMPONENT_METADATA = {
|
|
|
2504
2506
|
textarea: {
|
|
2505
2507
|
category: "input",
|
|
2506
2508
|
attributes: [
|
|
2507
|
-
...BOX_ATTRIBUTES,
|
|
2508
|
-
...CONTAINER_ATTRIBUTES,
|
|
2509
|
+
...exports.BOX_ATTRIBUTES,
|
|
2510
|
+
...exports.CONTAINER_ATTRIBUTES,
|
|
2509
2511
|
"label",
|
|
2510
2512
|
"placeholder",
|
|
2511
2513
|
"value",
|
|
@@ -2519,8 +2521,8 @@ var COMPONENT_METADATA = {
|
|
|
2519
2521
|
select: {
|
|
2520
2522
|
category: "input",
|
|
2521
2523
|
attributes: [
|
|
2522
|
-
...BOX_ATTRIBUTES,
|
|
2523
|
-
...CONTAINER_ATTRIBUTES,
|
|
2524
|
+
...exports.BOX_ATTRIBUTES,
|
|
2525
|
+
...exports.CONTAINER_ATTRIBUTES,
|
|
2524
2526
|
"label",
|
|
2525
2527
|
"placeholder",
|
|
2526
2528
|
"value",
|
|
@@ -2532,27 +2534,27 @@ var COMPONENT_METADATA = {
|
|
|
2532
2534
|
},
|
|
2533
2535
|
checkbox: {
|
|
2534
2536
|
category: "input",
|
|
2535
|
-
attributes: [...BOX_ATTRIBUTES, "label", "checked", "disabled"],
|
|
2537
|
+
attributes: [...exports.BOX_ATTRIBUTES, "label", "checked", "disabled"],
|
|
2536
2538
|
hasChildren: false,
|
|
2537
2539
|
description: "Checkbox input"
|
|
2538
2540
|
},
|
|
2539
2541
|
radio: {
|
|
2540
2542
|
category: "input",
|
|
2541
|
-
attributes: [...BOX_ATTRIBUTES, "label", "name", "checked", "disabled"],
|
|
2543
|
+
attributes: [...exports.BOX_ATTRIBUTES, "label", "name", "checked", "disabled"],
|
|
2542
2544
|
hasChildren: false,
|
|
2543
2545
|
description: "Radio button input"
|
|
2544
2546
|
},
|
|
2545
2547
|
switch: {
|
|
2546
2548
|
category: "input",
|
|
2547
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES, "label", "checked", "disabled"],
|
|
2549
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "label", "checked", "disabled"],
|
|
2548
2550
|
hasChildren: false,
|
|
2549
2551
|
description: "Toggle switch"
|
|
2550
2552
|
},
|
|
2551
2553
|
slider: {
|
|
2552
2554
|
category: "input",
|
|
2553
2555
|
attributes: [
|
|
2554
|
-
...BOX_ATTRIBUTES,
|
|
2555
|
-
...CONTAINER_ATTRIBUTES,
|
|
2556
|
+
...exports.BOX_ATTRIBUTES,
|
|
2557
|
+
...exports.CONTAINER_ATTRIBUTES,
|
|
2556
2558
|
"label",
|
|
2557
2559
|
"min",
|
|
2558
2560
|
"max",
|
|
@@ -2566,9 +2568,9 @@ var COMPONENT_METADATA = {
|
|
|
2566
2568
|
button: {
|
|
2567
2569
|
category: "input",
|
|
2568
2570
|
attributes: [
|
|
2569
|
-
...BOX_ATTRIBUTES,
|
|
2570
|
-
...CONTAINER_ATTRIBUTES,
|
|
2571
|
-
...INTERACTIVE_ATTRIBUTES,
|
|
2571
|
+
...exports.BOX_ATTRIBUTES,
|
|
2572
|
+
...exports.CONTAINER_ATTRIBUTES,
|
|
2573
|
+
...exports.INTERACTIVE_ATTRIBUTES,
|
|
2572
2574
|
"primary",
|
|
2573
2575
|
"secondary",
|
|
2574
2576
|
"outline",
|
|
@@ -2592,9 +2594,9 @@ var COMPONENT_METADATA = {
|
|
|
2592
2594
|
image: {
|
|
2593
2595
|
category: "display",
|
|
2594
2596
|
attributes: [
|
|
2595
|
-
...BOX_ATTRIBUTES,
|
|
2596
|
-
...CONTAINER_ATTRIBUTES,
|
|
2597
|
-
...INTERACTIVE_ATTRIBUTES,
|
|
2597
|
+
...exports.BOX_ATTRIBUTES,
|
|
2598
|
+
...exports.CONTAINER_ATTRIBUTES,
|
|
2599
|
+
...exports.INTERACTIVE_ATTRIBUTES,
|
|
2598
2600
|
"src",
|
|
2599
2601
|
"alt"
|
|
2600
2602
|
],
|
|
@@ -2603,16 +2605,16 @@ var COMPONENT_METADATA = {
|
|
|
2603
2605
|
},
|
|
2604
2606
|
placeholder: {
|
|
2605
2607
|
category: "display",
|
|
2606
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES, "label"],
|
|
2608
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "label"],
|
|
2607
2609
|
hasChildren: true,
|
|
2608
2610
|
description: "Generic placeholder"
|
|
2609
2611
|
},
|
|
2610
2612
|
avatar: {
|
|
2611
2613
|
category: "display",
|
|
2612
2614
|
attributes: [
|
|
2613
|
-
...BOX_ATTRIBUTES,
|
|
2614
|
-
...CONTAINER_ATTRIBUTES,
|
|
2615
|
-
...INTERACTIVE_ATTRIBUTES,
|
|
2615
|
+
...exports.BOX_ATTRIBUTES,
|
|
2616
|
+
...exports.CONTAINER_ATTRIBUTES,
|
|
2617
|
+
...exports.INTERACTIVE_ATTRIBUTES,
|
|
2616
2618
|
"name",
|
|
2617
2619
|
"size"
|
|
2618
2620
|
],
|
|
@@ -2622,9 +2624,9 @@ var COMPONENT_METADATA = {
|
|
|
2622
2624
|
badge: {
|
|
2623
2625
|
category: "display",
|
|
2624
2626
|
attributes: [
|
|
2625
|
-
...BOX_ATTRIBUTES,
|
|
2626
|
-
...CONTAINER_ATTRIBUTES,
|
|
2627
|
-
...INTERACTIVE_ATTRIBUTES,
|
|
2627
|
+
...exports.BOX_ATTRIBUTES,
|
|
2628
|
+
...exports.CONTAINER_ATTRIBUTES,
|
|
2629
|
+
...exports.INTERACTIVE_ATTRIBUTES,
|
|
2628
2630
|
"variant",
|
|
2629
2631
|
"pill",
|
|
2630
2632
|
"icon",
|
|
@@ -2637,9 +2639,9 @@ var COMPONENT_METADATA = {
|
|
|
2637
2639
|
icon: {
|
|
2638
2640
|
category: "display",
|
|
2639
2641
|
attributes: [
|
|
2640
|
-
...BOX_ATTRIBUTES,
|
|
2641
|
-
...CONTAINER_ATTRIBUTES,
|
|
2642
|
-
...INTERACTIVE_ATTRIBUTES,
|
|
2642
|
+
...exports.BOX_ATTRIBUTES,
|
|
2643
|
+
...exports.CONTAINER_ATTRIBUTES,
|
|
2644
|
+
...exports.INTERACTIVE_ATTRIBUTES,
|
|
2643
2645
|
"name",
|
|
2644
2646
|
"size",
|
|
2645
2647
|
"muted"
|
|
@@ -2652,13 +2654,13 @@ var COMPONENT_METADATA = {
|
|
|
2652
2654
|
// ============================================
|
|
2653
2655
|
table: {
|
|
2654
2656
|
category: "data",
|
|
2655
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES, "striped", "bordered", "hover"],
|
|
2657
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "striped", "bordered", "hover"],
|
|
2656
2658
|
hasChildren: false,
|
|
2657
2659
|
description: "Data table"
|
|
2658
2660
|
},
|
|
2659
2661
|
list: {
|
|
2660
2662
|
category: "data",
|
|
2661
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES, "ordered", "none"],
|
|
2663
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "ordered", "none"],
|
|
2662
2664
|
hasChildren: false,
|
|
2663
2665
|
description: "List of items"
|
|
2664
2666
|
},
|
|
@@ -2667,21 +2669,21 @@ var COMPONENT_METADATA = {
|
|
|
2667
2669
|
// ============================================
|
|
2668
2670
|
alert: {
|
|
2669
2671
|
category: "feedback",
|
|
2670
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES, "variant", "dismissible", "icon"],
|
|
2672
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "variant", "dismissible", "icon"],
|
|
2671
2673
|
hasChildren: false,
|
|
2672
2674
|
description: "Alert message"
|
|
2673
2675
|
},
|
|
2674
2676
|
toast: {
|
|
2675
2677
|
category: "feedback",
|
|
2676
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES, "position", "variant"],
|
|
2678
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "position", "variant"],
|
|
2677
2679
|
hasChildren: false,
|
|
2678
2680
|
description: "Toast notification"
|
|
2679
2681
|
},
|
|
2680
2682
|
progress: {
|
|
2681
2683
|
category: "feedback",
|
|
2682
2684
|
attributes: [
|
|
2683
|
-
...BOX_ATTRIBUTES,
|
|
2684
|
-
...CONTAINER_ATTRIBUTES,
|
|
2685
|
+
...exports.BOX_ATTRIBUTES,
|
|
2686
|
+
...exports.CONTAINER_ATTRIBUTES,
|
|
2685
2687
|
"value",
|
|
2686
2688
|
"max",
|
|
2687
2689
|
"label",
|
|
@@ -2692,7 +2694,7 @@ var COMPONENT_METADATA = {
|
|
|
2692
2694
|
},
|
|
2693
2695
|
spinner: {
|
|
2694
2696
|
category: "feedback",
|
|
2695
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES, "label", "size"],
|
|
2697
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "label", "size"],
|
|
2696
2698
|
hasChildren: false,
|
|
2697
2699
|
description: "Loading spinner"
|
|
2698
2700
|
},
|
|
@@ -2701,19 +2703,19 @@ var COMPONENT_METADATA = {
|
|
|
2701
2703
|
// ============================================
|
|
2702
2704
|
tooltip: {
|
|
2703
2705
|
category: "overlay",
|
|
2704
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES, "position"],
|
|
2706
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "position"],
|
|
2705
2707
|
hasChildren: false,
|
|
2706
2708
|
description: "Tooltip on hover"
|
|
2707
2709
|
},
|
|
2708
2710
|
popover: {
|
|
2709
2711
|
category: "overlay",
|
|
2710
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES, "title"],
|
|
2712
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "title"],
|
|
2711
2713
|
hasChildren: true,
|
|
2712
2714
|
description: "Popover panel"
|
|
2713
2715
|
},
|
|
2714
2716
|
dropdown: {
|
|
2715
2717
|
category: "overlay",
|
|
2716
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES],
|
|
2718
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES],
|
|
2717
2719
|
hasChildren: false,
|
|
2718
2720
|
description: "Dropdown menu"
|
|
2719
2721
|
},
|
|
@@ -2722,19 +2724,19 @@ var COMPONENT_METADATA = {
|
|
|
2722
2724
|
// ============================================
|
|
2723
2725
|
nav: {
|
|
2724
2726
|
category: "navigation",
|
|
2725
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES, "vertical"],
|
|
2727
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "vertical"],
|
|
2726
2728
|
hasChildren: false,
|
|
2727
2729
|
description: "Navigation menu"
|
|
2728
2730
|
},
|
|
2729
2731
|
tabs: {
|
|
2730
2732
|
category: "navigation",
|
|
2731
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES, "active"],
|
|
2733
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "active"],
|
|
2732
2734
|
hasChildren: true,
|
|
2733
2735
|
description: "Tab navigation"
|
|
2734
2736
|
},
|
|
2735
2737
|
breadcrumb: {
|
|
2736
2738
|
category: "navigation",
|
|
2737
|
-
attributes: [...BOX_ATTRIBUTES, ...CONTAINER_ATTRIBUTES],
|
|
2739
|
+
attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES],
|
|
2738
2740
|
hasChildren: false,
|
|
2739
2741
|
description: "Breadcrumb navigation"
|
|
2740
2742
|
},
|
|
@@ -2743,7 +2745,7 @@ var COMPONENT_METADATA = {
|
|
|
2743
2745
|
// ============================================
|
|
2744
2746
|
divider: {
|
|
2745
2747
|
category: "layout",
|
|
2746
|
-
attributes: [...BOX_ATTRIBUTES, "vertical"],
|
|
2748
|
+
attributes: [...exports.BOX_ATTRIBUTES, "vertical"],
|
|
2747
2749
|
hasChildren: false,
|
|
2748
2750
|
description: "Horizontal separator"
|
|
2749
2751
|
},
|
|
@@ -2752,13 +2754,13 @@ var COMPONENT_METADATA = {
|
|
|
2752
2754
|
// ============================================
|
|
2753
2755
|
marker: {
|
|
2754
2756
|
category: "annotation",
|
|
2755
|
-
attributes: [...BOX_ATTRIBUTES, "color", "anchor"],
|
|
2757
|
+
attributes: [...exports.BOX_ATTRIBUTES, "color", "anchor"],
|
|
2756
2758
|
hasChildren: false,
|
|
2757
2759
|
description: "Number marker for referencing in annotations"
|
|
2758
2760
|
},
|
|
2759
2761
|
annotations: {
|
|
2760
2762
|
category: "annotation",
|
|
2761
|
-
attributes: [...BOX_ATTRIBUTES, "title"],
|
|
2763
|
+
attributes: [...exports.BOX_ATTRIBUTES, "title"],
|
|
2762
2764
|
hasChildren: true,
|
|
2763
2765
|
description: "Documentation panel for screen specifications"
|
|
2764
2766
|
},
|
|
@@ -2769,21 +2771,21 @@ var COMPONENT_METADATA = {
|
|
|
2769
2771
|
description: "Individual annotation entry with marker number and title"
|
|
2770
2772
|
}
|
|
2771
2773
|
};
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
+
exports.COMPONENT_NAMES = Object.keys(COMPONENT_METADATA);
|
|
2775
|
+
exports.COMPONENT_SPECS = exports.COMPONENT_NAMES.map((name) => ({
|
|
2774
2776
|
name,
|
|
2775
|
-
nodeType: GRAMMAR_ELEMENTS[name],
|
|
2777
|
+
nodeType: exports.GRAMMAR_ELEMENTS[name],
|
|
2776
2778
|
...COMPONENT_METADATA[name]
|
|
2777
2779
|
}));
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
COMPONENT_SPECS.map((comp) => [comp.name, comp])
|
|
2780
|
+
exports.VALID_COMPONENT_NAMES = new Set(exports.COMPONENT_NAMES);
|
|
2781
|
+
exports.COMPONENT_MAP = new Map(
|
|
2782
|
+
exports.COMPONENT_SPECS.map((comp) => [comp.name, comp])
|
|
2781
2783
|
);
|
|
2782
2784
|
var BLOCK_NODE_METADATA = {
|
|
2783
2785
|
NavItem: {
|
|
2784
2786
|
keyword: "item",
|
|
2785
2787
|
category: "navigation",
|
|
2786
|
-
attributes: [...INTERACTIVE_ATTRIBUTES, "icon", "href", "active", "disabled"],
|
|
2788
|
+
attributes: [...exports.INTERACTIVE_ATTRIBUTES, "icon", "href", "active", "disabled"],
|
|
2787
2789
|
hasChildren: false,
|
|
2788
2790
|
description: "Navigation entry inside a nav block"
|
|
2789
2791
|
},
|
|
@@ -2797,7 +2799,7 @@ var BLOCK_NODE_METADATA = {
|
|
|
2797
2799
|
DropdownItem: {
|
|
2798
2800
|
keyword: "item",
|
|
2799
2801
|
category: "overlay",
|
|
2800
|
-
attributes: [...INTERACTIVE_ATTRIBUTES, "icon", "href", "danger", "disabled"],
|
|
2802
|
+
attributes: [...exports.INTERACTIVE_ATTRIBUTES, "icon", "href", "danger", "disabled"],
|
|
2801
2803
|
hasChildren: false,
|
|
2802
2804
|
description: "Menu entry inside a dropdown"
|
|
2803
2805
|
},
|
|
@@ -2809,22 +2811,22 @@ var BLOCK_NODE_METADATA = {
|
|
|
2809
2811
|
description: "Entry inside a list block, optionally nesting a further list"
|
|
2810
2812
|
}
|
|
2811
2813
|
};
|
|
2812
|
-
|
|
2814
|
+
exports.BLOCK_NODE_SPECS = exports.GRAMMAR_BLOCK_NODE_TYPES.map(
|
|
2813
2815
|
(nodeType) => {
|
|
2814
2816
|
const { keyword, ...metadata } = BLOCK_NODE_METADATA[nodeType];
|
|
2815
2817
|
return { name: keyword, nodeType, ...metadata };
|
|
2816
2818
|
}
|
|
2817
2819
|
);
|
|
2818
|
-
|
|
2819
|
-
[...COMPONENT_SPECS, ...BLOCK_NODE_SPECS].map((comp) => [comp.nodeType, comp])
|
|
2820
|
+
exports.NODE_TYPE_MAP = new Map(
|
|
2821
|
+
[...exports.COMPONENT_SPECS, ...exports.BLOCK_NODE_SPECS].map((comp) => [comp.nodeType, comp])
|
|
2820
2822
|
);
|
|
2821
|
-
|
|
2822
|
-
COMPONENT_SPECS.map((comp) => [comp.nodeType, comp])
|
|
2823
|
+
exports.ELEMENT_NODE_TYPE_MAP = new Map(
|
|
2824
|
+
exports.COMPONENT_SPECS.map((comp) => [comp.nodeType, comp])
|
|
2823
2825
|
);
|
|
2824
|
-
|
|
2826
|
+
exports.COMPONENT_SPEC_BY_NAME = Object.fromEntries(exports.COMPONENT_SPECS.map((comp) => [comp.name, comp]));
|
|
2825
2827
|
function getValidAttributes(componentNameOrType) {
|
|
2826
2828
|
var _a;
|
|
2827
|
-
const spec = (_a = COMPONENT_MAP.get(componentNameOrType)) != null ? _a : NODE_TYPE_MAP.get(componentNameOrType);
|
|
2829
|
+
const spec = (_a = exports.COMPONENT_MAP.get(componentNameOrType)) != null ? _a : exports.NODE_TYPE_MAP.get(componentNameOrType);
|
|
2828
2830
|
return spec == null ? void 0 : spec.attributes;
|
|
2829
2831
|
}
|
|
2830
2832
|
function isValidAttribute(componentNameOrType, attributeName) {
|
|
@@ -2836,7 +2838,7 @@ function isValidAttribute(componentNameOrType, attributeName) {
|
|
|
2836
2838
|
// src/spec/attribute-overrides.ts
|
|
2837
2839
|
var GLYPH_NAME = {
|
|
2838
2840
|
type: "enum",
|
|
2839
|
-
values: LUCIDE_ICON_NAMES,
|
|
2841
|
+
values: exports.LUCIDE_ICON_NAMES,
|
|
2840
2842
|
description: "Icon name, from the Lucide set"
|
|
2841
2843
|
};
|
|
2842
2844
|
var GLYPH_VALUED_ATTRIBUTES = ["icon"];
|
|
@@ -2850,7 +2852,7 @@ function buildOverrides() {
|
|
|
2850
2852
|
(_a = overrides[nodeType]) != null ? _a : overrides[nodeType] = {};
|
|
2851
2853
|
overrides[nodeType][attribute] = override;
|
|
2852
2854
|
};
|
|
2853
|
-
for (const spec of [...COMPONENT_SPECS, ...BLOCK_NODE_SPECS]) {
|
|
2855
|
+
for (const spec of [...exports.COMPONENT_SPECS, ...exports.BLOCK_NODE_SPECS]) {
|
|
2854
2856
|
for (const attribute of GLYPH_VALUED_ATTRIBUTES) {
|
|
2855
2857
|
if (spec.attributes.includes(attribute)) put(spec.nodeType, attribute, GLYPH_NAME);
|
|
2856
2858
|
}
|
|
@@ -2860,46 +2862,23 @@ function buildOverrides() {
|
|
|
2860
2862
|
}
|
|
2861
2863
|
return overrides;
|
|
2862
2864
|
}
|
|
2863
|
-
|
|
2865
|
+
exports.ATTRIBUTE_OVERRIDES = buildOverrides();
|
|
2864
2866
|
function attributeFor(componentNameOrType, attributeName) {
|
|
2865
2867
|
var _a, _b;
|
|
2866
|
-
const spec = (_a = COMPONENT_MAP.get(componentNameOrType)) != null ? _a : NODE_TYPE_MAP.get(componentNameOrType);
|
|
2868
|
+
const spec = (_a = exports.COMPONENT_MAP.get(componentNameOrType)) != null ? _a : exports.NODE_TYPE_MAP.get(componentNameOrType);
|
|
2867
2869
|
if (!(spec == null ? void 0 : spec.attributes.includes(attributeName))) return void 0;
|
|
2868
|
-
const base = ATTRIBUTE_MAP.get(attributeName);
|
|
2870
|
+
const base = exports.ATTRIBUTE_MAP.get(attributeName);
|
|
2869
2871
|
if (!base) return void 0;
|
|
2870
|
-
const override = (_b = ATTRIBUTE_OVERRIDES[spec.nodeType]) == null ? void 0 : _b[attributeName];
|
|
2872
|
+
const override = (_b = exports.ATTRIBUTE_OVERRIDES[spec.nodeType]) == null ? void 0 : _b[attributeName];
|
|
2871
2873
|
return override ? { ...base, ...override } : base;
|
|
2872
2874
|
}
|
|
2873
2875
|
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
exports.GRAMMAR_ELEMENTS = GRAMMAR_ELEMENTS; exports.GRAMMAR_BLOCK_NODE_TYPES = GRAMMAR_BLOCK_NODE_TYPES; exports.GRAMMAR_CHILD_KEYWORDS = GRAMMAR_CHILD_KEYWORDS; exports.DEVICE_PRESETS = DEVICE_PRESETS; exports.DEFAULT_VIEWPORT = DEFAULT_VIEWPORT; exports.parseViewportString = parseViewportString; exports.resolveViewport = resolveViewport; exports.getDevicePresets = getDevicePresets; exports.isValidDevicePreset = isValidDevicePreset; exports.calculateViewportScale = calculateViewportScale; exports.wrapInPreviewContainer = wrapInPreviewContainer; exports.LUCIDE_ICON_NAMES = LUCIDE_ICON_NAMES; exports.ATTRIBUTE_SPECS = ATTRIBUTE_SPECS; exports.VALID_ATTRIBUTE_NAMES = VALID_ATTRIBUTE_NAMES; exports.ATTRIBUTE_MAP = ATTRIBUTE_MAP; exports.BOX_ATTRIBUTES = BOX_ATTRIBUTES; exports.CONTAINER_ATTRIBUTES = CONTAINER_ATTRIBUTES; exports.INTERACTIVE_ATTRIBUTES = INTERACTIVE_ATTRIBUTES; exports.COMPONENT_NAMES = COMPONENT_NAMES; exports.COMPONENT_SPECS = COMPONENT_SPECS; exports.VALID_COMPONENT_NAMES = VALID_COMPONENT_NAMES; exports.COMPONENT_MAP = COMPONENT_MAP; exports.BLOCK_NODE_SPECS = BLOCK_NODE_SPECS; exports.NODE_TYPE_MAP = NODE_TYPE_MAP; exports.ELEMENT_NODE_TYPE_MAP = ELEMENT_NODE_TYPE_MAP; exports.COMPONENT_SPEC_BY_NAME = COMPONENT_SPEC_BY_NAME; exports.getValidAttributes = getValidAttributes; exports.isValidAttribute = isValidAttribute; exports.ATTRIBUTE_OVERRIDES = ATTRIBUTE_OVERRIDES; exports.attributeFor = attributeFor;
|
|
2876
|
+
exports.attributeFor = attributeFor;
|
|
2877
|
+
exports.calculateViewportScale = calculateViewportScale;
|
|
2878
|
+
exports.getDevicePresets = getDevicePresets;
|
|
2879
|
+
exports.getValidAttributes = getValidAttributes;
|
|
2880
|
+
exports.isValidAttribute = isValidAttribute;
|
|
2881
|
+
exports.isValidDevicePreset = isValidDevicePreset;
|
|
2882
|
+
exports.parseViewportString = parseViewportString;
|
|
2883
|
+
exports.resolveViewport = resolveViewport;
|
|
2884
|
+
exports.wrapInPreviewContainer = wrapInPreviewContainer;
|