@plitzi/sdk-authoring 0.38.13 → 0.38.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/CHANGELOG.md +247 -0
- package/dist/index-src.js +555 -446
- package/dist/index.d.ts +310 -17
- package/dist/index.js +3 -3
- package/dist/node.d.ts +94 -0
- package/dist/node.js +206 -2
- package/dist/plugin.d.ts +7 -0
- package/package.json +6 -6
- package/skills/plitzi-authoring/SKILL.md +1 -1
- package/skills/plitzi-authoring/reference/index.md +3 -2
- package/skills/plitzi-authoring/reference/layouts.md +10 -0
- package/skills/plitzi-authoring/reference/plugin-reach.md +91 -0
- package/skills/plitzi-authoring/reference/plugins.md +19 -35
- package/skills/plitzi-authoring/reference/realtime.md +11 -0
- package/skills/plitzi-authoring/reference/testing.md +3 -1
package/dist/index-src.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e$43, r as r$
|
|
1
|
+
import { n as e$43, r as r$39 } from "./index-declare.js";
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __exportAll = (all, no_symbols) => {
|
|
@@ -13,23 +13,23 @@ var __exportAll = (all, no_symbols) => {
|
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region ../sdk-shared/dist/helpers/twigWrapper/tokens/tokenPatterns.mjs
|
|
15
15
|
var e$42 = "[a-zA-Z_][a-zA-Z0-9_]*(?:-[a-zA-Z0-9_]+)*";
|
|
16
|
-
var t$
|
|
17
|
-
var n$
|
|
18
|
-
var r$
|
|
19
|
-
var i$
|
|
20
|
-
var a$24 = `(?:${`\\{\\{\\{\\s*${r$
|
|
16
|
+
var t$64 = `(?:${e$42}|\\d+)`;
|
|
17
|
+
var n$49 = `\\[\\s*(?:\\d+|'[^']*'|"[^"]*"|${e$42}(?:\\.${t$64})*)\\s*\\]`;
|
|
18
|
+
var r$38 = `${`${e$42}(?:${n$49})*(?:\\??\\.${t$64}(?:${n$49})*)*`}(?:\\s*\\?\\?\\s*[^|{}]+?)?(?:\\s*\\|\\s*[a-zA-Z_]+(?:\\([^)]*\\))?)*`;
|
|
19
|
+
var i$30 = `\\{\\{\\s*${r$38}\\s*\\}\\}`;
|
|
20
|
+
var a$24 = `(?:${`\\{\\{\\{\\s*${r$38}\\s*\\}\\}\\}`}|${i$30})`;
|
|
21
21
|
var o$26 = new RegExp(a$24, "g");
|
|
22
22
|
var s$24 = RegExp(`^${a$24}$`);
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region ../sdk-shared/dist/helpers/twigWrapper/tokens/hasValidToken.mjs
|
|
25
|
-
var n$
|
|
25
|
+
var n$48 = (n, r = !1) => {
|
|
26
26
|
if (typeof n != "string") return !1;
|
|
27
27
|
let i = r ? s$24 : o$26;
|
|
28
28
|
return i.lastIndex = 0, i.test(n.trim());
|
|
29
29
|
};
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region ../sdk-shared/dist/authoring/paramSpec.mjs
|
|
32
|
-
var t$
|
|
32
|
+
var t$63 = [
|
|
33
33
|
"text",
|
|
34
34
|
"textarea",
|
|
35
35
|
"select",
|
|
@@ -39,22 +39,22 @@ var t$61 = [
|
|
|
39
39
|
"json",
|
|
40
40
|
"elementIds"
|
|
41
41
|
];
|
|
42
|
-
var n$
|
|
42
|
+
var n$47 = (e, t, n) => {
|
|
43
43
|
let r = [];
|
|
44
44
|
for (let [i, a] of Object.entries(n)) a.when && e[i] !== void 0 && !a.when(t) && r.push(i);
|
|
45
45
|
return r;
|
|
46
46
|
};
|
|
47
|
-
var r$
|
|
47
|
+
var r$37 = (e, t, n) => {
|
|
48
48
|
let r = [];
|
|
49
49
|
for (let [i, a] of Object.entries(n)) a.required && e[i] === void 0 && (!a.when || a.when(t)) && r.push(i);
|
|
50
50
|
return r;
|
|
51
51
|
};
|
|
52
|
-
var i$
|
|
53
|
-
var a$23 = (t) => typeof t == "string" && n$
|
|
52
|
+
var i$29 = (e) => e.trim() !== "" && Number.isFinite(Number(e));
|
|
53
|
+
var a$23 = (t) => typeof t == "string" && n$48(t);
|
|
54
54
|
var o$25 = (e, t) => {
|
|
55
55
|
switch (t.type) {
|
|
56
56
|
case "boolean": return typeof e == "boolean";
|
|
57
|
-
case "number": return typeof e == "number" || typeof e == "string" && i$
|
|
57
|
+
case "number": return typeof e == "number" || typeof e == "string" && i$29(e);
|
|
58
58
|
case "select": return typeof e == "string" && (!t.options || t.options.includes(e));
|
|
59
59
|
case "scalar": return typeof e == "string" || typeof e == "number" || typeof e == "boolean";
|
|
60
60
|
case "json": return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "object" && !!e;
|
|
@@ -86,7 +86,7 @@ var c$19 = (e, t, n) => {
|
|
|
86
86
|
//#endregion
|
|
87
87
|
//#region ../sdk-shared/dist/helpers/scroll.mjs
|
|
88
88
|
var e$41 = ["smooth", "auto"];
|
|
89
|
-
var t$
|
|
89
|
+
var t$62 = [
|
|
90
90
|
"start",
|
|
91
91
|
"center",
|
|
92
92
|
"end",
|
|
@@ -95,13 +95,13 @@ var t$60 = [
|
|
|
95
95
|
var s$22 = "onScroll";
|
|
96
96
|
//#endregion
|
|
97
97
|
//#region ../sdk-shared/dist/authoring/elementCallbacks.mjs
|
|
98
|
-
var r$
|
|
98
|
+
var r$36 = {
|
|
99
99
|
type: "select",
|
|
100
100
|
description: "How it moves: \"smooth\" glides there, \"auto\" jumps.",
|
|
101
101
|
default: "smooth",
|
|
102
102
|
options: [...e$41]
|
|
103
103
|
};
|
|
104
|
-
var i$
|
|
104
|
+
var i$28 = {
|
|
105
105
|
scrollBy: {
|
|
106
106
|
title: "Scroll By",
|
|
107
107
|
type: "callback",
|
|
@@ -117,7 +117,7 @@ var i$27 = {
|
|
|
117
117
|
description: "How far down, the same way; negative goes up.",
|
|
118
118
|
default: ""
|
|
119
119
|
},
|
|
120
|
-
behavior: r$
|
|
120
|
+
behavior: r$36
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
scrollTo: {
|
|
@@ -135,7 +135,7 @@ var i$27 = {
|
|
|
135
135
|
description: "Where down, the same way. Empty stays.",
|
|
136
136
|
default: ""
|
|
137
137
|
},
|
|
138
|
-
behavior: r$
|
|
138
|
+
behavior: r$36
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
141
|
scrollIntoView: {
|
|
@@ -147,15 +147,15 @@ var i$27 = {
|
|
|
147
147
|
type: "select",
|
|
148
148
|
description: "Where the element lands, top to bottom.",
|
|
149
149
|
default: "start",
|
|
150
|
-
options: [...t$
|
|
150
|
+
options: [...t$62]
|
|
151
151
|
},
|
|
152
152
|
inline: {
|
|
153
153
|
type: "select",
|
|
154
154
|
description: "Where it lands, side to side.",
|
|
155
155
|
default: "nearest",
|
|
156
|
-
options: [...t$
|
|
156
|
+
options: [...t$62]
|
|
157
157
|
},
|
|
158
|
-
behavior: r$
|
|
158
|
+
behavior: r$36
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
};
|
|
@@ -216,7 +216,7 @@ var a$22 = {
|
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
},
|
|
219
|
-
...i$
|
|
219
|
+
...i$28
|
|
220
220
|
};
|
|
221
221
|
var o$24 = (e) => Object.hasOwn(a$22, e) ? a$22[e] : void 0;
|
|
222
222
|
var s$21 = (t, n) => {
|
|
@@ -697,6 +697,7 @@ var elementAttributeNames = {
|
|
|
697
697
|
],
|
|
698
698
|
notFound: [],
|
|
699
699
|
page: [
|
|
700
|
+
"documentScroll",
|
|
700
701
|
"layout",
|
|
701
702
|
"layoutContainer",
|
|
702
703
|
"notFound",
|
|
@@ -716,6 +717,11 @@ var elementAttributeNames = {
|
|
|
716
717
|
"windowSize"
|
|
717
718
|
],
|
|
718
719
|
paragraph: ["content"],
|
|
720
|
+
plitziSdk: [
|
|
721
|
+
"environment",
|
|
722
|
+
"offlineData",
|
|
723
|
+
"spaceKey"
|
|
724
|
+
],
|
|
719
725
|
reference: ["referenceId", "referenceType"],
|
|
720
726
|
richText: [
|
|
721
727
|
"content",
|
|
@@ -921,7 +927,7 @@ var e$40 = {
|
|
|
921
927
|
};
|
|
922
928
|
//#endregion
|
|
923
929
|
//#region ../sdk-elements/dist/elements/advanced/BlockHtml/declaration.mjs
|
|
924
|
-
var t$
|
|
930
|
+
var t$61 = r$39()({
|
|
925
931
|
type: "blockHtml",
|
|
926
932
|
content: {
|
|
927
933
|
attributes: { content: "" },
|
|
@@ -938,7 +944,7 @@ var t$59 = r$37()({
|
|
|
938
944
|
});
|
|
939
945
|
//#endregion
|
|
940
946
|
//#region ../sdk-elements/dist/elements/advanced/BlockJsx/declaration.mjs
|
|
941
|
-
var t$
|
|
947
|
+
var t$60 = r$39()({
|
|
942
948
|
type: "blockJsx",
|
|
943
949
|
content: {
|
|
944
950
|
attributes: {
|
|
@@ -960,7 +966,7 @@ var t$58 = r$37()({
|
|
|
960
966
|
});
|
|
961
967
|
//#endregion
|
|
962
968
|
//#region ../sdk-elements/dist/elements/advanced/Custom/declaration.mjs
|
|
963
|
-
var t$
|
|
969
|
+
var t$59 = r$39()({
|
|
964
970
|
type: "custom",
|
|
965
971
|
content: {
|
|
966
972
|
attributes: {
|
|
@@ -990,7 +996,7 @@ var t$57 = r$37()({
|
|
|
990
996
|
});
|
|
991
997
|
//#endregion
|
|
992
998
|
//#region ../sdk-elements/dist/elements/advanced/NodeHtml/declaration.mjs
|
|
993
|
-
var t$
|
|
999
|
+
var t$58 = r$39()({
|
|
994
1000
|
type: "nodeHtml",
|
|
995
1001
|
content: {
|
|
996
1002
|
attributes: { subType: "div" },
|
|
@@ -1014,8 +1020,28 @@ var t$56 = r$37()({
|
|
|
1014
1020
|
}
|
|
1015
1021
|
});
|
|
1016
1022
|
//#endregion
|
|
1023
|
+
//#region ../sdk-elements/dist/elements/advanced/PlitziSdk/declaration.mjs
|
|
1024
|
+
var t$57 = r$39()({
|
|
1025
|
+
type: "plitziSdk",
|
|
1026
|
+
content: {
|
|
1027
|
+
attributes: {
|
|
1028
|
+
spaceKey: "",
|
|
1029
|
+
environment: "main"
|
|
1030
|
+
},
|
|
1031
|
+
definition: {
|
|
1032
|
+
label: "Plitzi Sdk",
|
|
1033
|
+
description: "Another space drawn inside this one, as a widget — its home page, no router of its own: by its key, or from its documents (`offlineData`), bound to UI generated on the fly."
|
|
1034
|
+
},
|
|
1035
|
+
market: {
|
|
1036
|
+
category: "advanced",
|
|
1037
|
+
icon: "https://cdn.plitzi.com/resources/img/favicon.svg"
|
|
1038
|
+
},
|
|
1039
|
+
defaultStyle: { style: { base: { default: {} } } }
|
|
1040
|
+
}
|
|
1041
|
+
});
|
|
1042
|
+
//#endregion
|
|
1017
1043
|
//#region ../sdk-elements/dist/elements/advanced/Reference/declaration.mjs
|
|
1018
|
-
var t$
|
|
1044
|
+
var t$56 = r$39()({
|
|
1019
1045
|
type: "reference",
|
|
1020
1046
|
content: {
|
|
1021
1047
|
attributes: {
|
|
@@ -1039,7 +1065,7 @@ var t$55 = r$37()({
|
|
|
1039
1065
|
});
|
|
1040
1066
|
//#endregion
|
|
1041
1067
|
//#region ../sdk-elements/dist/elements/basic/Button/declaration.mjs
|
|
1042
|
-
var n$
|
|
1068
|
+
var n$46 = {
|
|
1043
1069
|
"padding-top": "6px",
|
|
1044
1070
|
"padding-left": "12px",
|
|
1045
1071
|
"padding-right": "12px",
|
|
@@ -1052,7 +1078,7 @@ var n$44 = {
|
|
|
1052
1078
|
"border-bottom-left-radius": "4px",
|
|
1053
1079
|
"border-bottom-right-radius": "4px"
|
|
1054
1080
|
};
|
|
1055
|
-
var r$
|
|
1081
|
+
var r$35 = r$39()({
|
|
1056
1082
|
type: "button",
|
|
1057
1083
|
attributeValues: {
|
|
1058
1084
|
subType: e$43()([
|
|
@@ -1083,22 +1109,22 @@ var r$33 = r$37()({
|
|
|
1083
1109
|
icon: "fa-solid fa-hand-pointer"
|
|
1084
1110
|
},
|
|
1085
1111
|
defaultStyle: {
|
|
1086
|
-
style: { base: { default: n$
|
|
1112
|
+
style: { base: { default: n$46 } },
|
|
1087
1113
|
subTypes: {
|
|
1088
1114
|
button: {
|
|
1089
1115
|
name: "Default Button",
|
|
1090
1116
|
displayMode: "desktop",
|
|
1091
|
-
style: { base: { default: n$
|
|
1117
|
+
style: { base: { default: n$46 } }
|
|
1092
1118
|
},
|
|
1093
1119
|
reset: {
|
|
1094
1120
|
name: "Reset Button",
|
|
1095
1121
|
displayMode: "desktop",
|
|
1096
|
-
style: { base: { default: n$
|
|
1122
|
+
style: { base: { default: n$46 } }
|
|
1097
1123
|
},
|
|
1098
1124
|
submit: {
|
|
1099
1125
|
name: "Submit Button",
|
|
1100
1126
|
displayMode: "desktop",
|
|
1101
|
-
style: { base: { default: n$
|
|
1127
|
+
style: { base: { default: n$46 } }
|
|
1102
1128
|
}
|
|
1103
1129
|
}
|
|
1104
1130
|
}
|
|
@@ -1106,7 +1132,7 @@ var r$33 = r$37()({
|
|
|
1106
1132
|
});
|
|
1107
1133
|
//#endregion
|
|
1108
1134
|
//#region ../sdk-elements/dist/elements/basic/Dropdown/declaration.mjs
|
|
1109
|
-
var n$
|
|
1135
|
+
var n$45 = r$39()({
|
|
1110
1136
|
type: "dropdown",
|
|
1111
1137
|
attributeValues: { popupPlacement: e$43()([
|
|
1112
1138
|
"left",
|
|
@@ -1155,7 +1181,7 @@ var n$43 = r$37()({
|
|
|
1155
1181
|
});
|
|
1156
1182
|
//#endregion
|
|
1157
1183
|
//#region ../sdk-elements/dist/elements/basic/Dropdown/DropdownPopup/declaration.mjs
|
|
1158
|
-
var t$
|
|
1184
|
+
var t$55 = r$39()({
|
|
1159
1185
|
type: "dropdownPopup",
|
|
1160
1186
|
ancestorType: "dropdown",
|
|
1161
1187
|
content: {
|
|
@@ -1202,7 +1228,7 @@ var t$54 = r$37()({
|
|
|
1202
1228
|
});
|
|
1203
1229
|
//#endregion
|
|
1204
1230
|
//#region ../sdk-elements/dist/elements/basic/Heading/declaration.mjs
|
|
1205
|
-
var n$
|
|
1231
|
+
var n$44 = r$39()({
|
|
1206
1232
|
type: "heading",
|
|
1207
1233
|
attributeValues: { subType: e$43()([
|
|
1208
1234
|
"h1",
|
|
@@ -1304,7 +1330,7 @@ var n$42 = r$37()({
|
|
|
1304
1330
|
});
|
|
1305
1331
|
//#endregion
|
|
1306
1332
|
//#region ../sdk-elements/dist/elements/basic/Link/declaration.mjs
|
|
1307
|
-
var n$
|
|
1333
|
+
var n$43 = r$39()({
|
|
1308
1334
|
type: "link",
|
|
1309
1335
|
attributeValues: {
|
|
1310
1336
|
mode: e$43()([
|
|
@@ -1356,7 +1382,7 @@ var n$41 = r$37()({
|
|
|
1356
1382
|
});
|
|
1357
1383
|
//#endregion
|
|
1358
1384
|
//#region ../sdk-elements/dist/elements/basic/Markdown/declaration.mjs
|
|
1359
|
-
var t$
|
|
1385
|
+
var t$54 = r$39()({
|
|
1360
1386
|
type: "markdown",
|
|
1361
1387
|
content: {
|
|
1362
1388
|
attributes: {
|
|
@@ -1406,7 +1432,7 @@ var t$53 = r$37()({
|
|
|
1406
1432
|
});
|
|
1407
1433
|
//#endregion
|
|
1408
1434
|
//#region ../sdk-elements/dist/elements/basic/Paragraph/declaration.mjs
|
|
1409
|
-
var t$
|
|
1435
|
+
var t$53 = r$39()({
|
|
1410
1436
|
type: "paragraph",
|
|
1411
1437
|
content: {
|
|
1412
1438
|
attributes: { content: "Paragraph" },
|
|
@@ -1426,7 +1452,7 @@ var t$52 = r$37()({
|
|
|
1426
1452
|
});
|
|
1427
1453
|
//#endregion
|
|
1428
1454
|
//#region ../sdk-elements/dist/elements/basic/RichText/declaration.mjs
|
|
1429
|
-
var n$
|
|
1455
|
+
var n$42 = r$39()({
|
|
1430
1456
|
type: "richText",
|
|
1431
1457
|
attributeValues: { format: e$43()([
|
|
1432
1458
|
"html",
|
|
@@ -1485,7 +1511,7 @@ var n$40 = r$37()({
|
|
|
1485
1511
|
});
|
|
1486
1512
|
//#endregion
|
|
1487
1513
|
//#region ../sdk-elements/dist/elements/basic/Text/declaration.mjs
|
|
1488
|
-
var t$
|
|
1514
|
+
var t$52 = r$39()({
|
|
1489
1515
|
type: "text",
|
|
1490
1516
|
content: {
|
|
1491
1517
|
attributes: { content: "Text" },
|
|
@@ -1502,7 +1528,7 @@ var t$51 = r$37()({
|
|
|
1502
1528
|
});
|
|
1503
1529
|
//#endregion
|
|
1504
1530
|
//#region ../sdk-elements/dist/elements/basic/ThemeToggle/declaration.mjs
|
|
1505
|
-
var n$
|
|
1531
|
+
var n$41 = {
|
|
1506
1532
|
"margin-top": "0px",
|
|
1507
1533
|
"margin-right": "0px",
|
|
1508
1534
|
"margin-bottom": "0px",
|
|
@@ -1523,7 +1549,7 @@ var n$39 = {
|
|
|
1523
1549
|
"letter-spacing": "inherit",
|
|
1524
1550
|
cursor: "pointer"
|
|
1525
1551
|
};
|
|
1526
|
-
var r$
|
|
1552
|
+
var r$34 = r$39()({
|
|
1527
1553
|
type: "themeToggle",
|
|
1528
1554
|
attributeValues: { subType: e$43()(["switch", "segmented"]) },
|
|
1529
1555
|
triggers: { onThemeChange: {
|
|
@@ -1556,10 +1582,10 @@ var r$32 = r$37()({
|
|
|
1556
1582
|
},
|
|
1557
1583
|
defaultStyle: {
|
|
1558
1584
|
style: {
|
|
1559
|
-
base: { default: n$
|
|
1585
|
+
base: { default: n$41 },
|
|
1560
1586
|
icon: { default: {} },
|
|
1561
1587
|
option: { default: {
|
|
1562
|
-
...n$
|
|
1588
|
+
...n$41,
|
|
1563
1589
|
"row-gap": "4px",
|
|
1564
1590
|
"column-gap": "4px"
|
|
1565
1591
|
} }
|
|
@@ -1570,7 +1596,7 @@ var r$32 = r$37()({
|
|
|
1570
1596
|
});
|
|
1571
1597
|
//#endregion
|
|
1572
1598
|
//#region ../sdk-elements/dist/elements/form/Form/declaration.mjs
|
|
1573
|
-
var n$
|
|
1599
|
+
var n$40 = r$39()({
|
|
1574
1600
|
type: "form",
|
|
1575
1601
|
attributeValues: { method: e$43()(["get", "post"]) },
|
|
1576
1602
|
sourceType: "apiContainer",
|
|
@@ -1652,7 +1678,7 @@ var n$38 = r$37()({
|
|
|
1652
1678
|
});
|
|
1653
1679
|
//#endregion
|
|
1654
1680
|
//#region ../sdk-elements/dist/elements/form/FormControl/declaration.mjs
|
|
1655
|
-
var n$
|
|
1681
|
+
var n$39 = {
|
|
1656
1682
|
width: "100%",
|
|
1657
1683
|
display: "flex",
|
|
1658
1684
|
"align-items": "center",
|
|
@@ -1681,11 +1707,11 @@ var n$37 = {
|
|
|
1681
1707
|
outline: "none",
|
|
1682
1708
|
position: "relative"
|
|
1683
1709
|
};
|
|
1684
|
-
var r$
|
|
1685
|
-
...n$
|
|
1710
|
+
var r$33 = {
|
|
1711
|
+
...n$39,
|
|
1686
1712
|
"line-height": "20px"
|
|
1687
1713
|
};
|
|
1688
|
-
var i$
|
|
1714
|
+
var i$27 = {
|
|
1689
1715
|
display: "flex",
|
|
1690
1716
|
cursor: "pointer",
|
|
1691
1717
|
"font-weight": "600",
|
|
@@ -1695,7 +1721,7 @@ var i$26 = {
|
|
|
1695
1721
|
"user-select": "none"
|
|
1696
1722
|
};
|
|
1697
1723
|
var a$21 = {
|
|
1698
|
-
...i$
|
|
1724
|
+
...i$27,
|
|
1699
1725
|
"margin-bottom": "4px"
|
|
1700
1726
|
};
|
|
1701
1727
|
var o$23 = {
|
|
@@ -1765,7 +1791,7 @@ var d$12 = {
|
|
|
1765
1791
|
cursor: "pointer"
|
|
1766
1792
|
};
|
|
1767
1793
|
var f$10 = {
|
|
1768
|
-
...n$
|
|
1794
|
+
...n$39,
|
|
1769
1795
|
cursor: "pointer"
|
|
1770
1796
|
};
|
|
1771
1797
|
var p$11 = {
|
|
@@ -1812,7 +1838,7 @@ var m$7 = (e, t, { field: n, icon: r } = {}) => ({
|
|
|
1812
1838
|
}
|
|
1813
1839
|
});
|
|
1814
1840
|
var h$4 = { field: l$13 };
|
|
1815
|
-
var g$4 = r$
|
|
1841
|
+
var g$4 = r$39()({
|
|
1816
1842
|
type: "formControl",
|
|
1817
1843
|
attributeValues: { subType: e$43()([
|
|
1818
1844
|
"text",
|
|
@@ -1887,21 +1913,21 @@ var g$4 = r$37()({
|
|
|
1887
1913
|
style: { base: { default: {} } },
|
|
1888
1914
|
subTypes: {
|
|
1889
1915
|
hidden: m$7("Form Control Hidden", {}),
|
|
1890
|
-
text: m$7("Form Control Text", r$
|
|
1891
|
-
number: m$7("Form Control Number", r$
|
|
1892
|
-
email: m$7("Form Control Email", r$
|
|
1893
|
-
password: m$7("Form Control Password", r$
|
|
1916
|
+
text: m$7("Form Control Text", r$33, h$4),
|
|
1917
|
+
number: m$7("Form Control Number", r$33, h$4),
|
|
1918
|
+
email: m$7("Form Control Email", r$33, h$4),
|
|
1919
|
+
password: m$7("Form Control Password", r$33, {
|
|
1894
1920
|
...h$4,
|
|
1895
1921
|
icon: d$12
|
|
1896
1922
|
}),
|
|
1897
|
-
search: m$7("Form Control Search", r$
|
|
1898
|
-
url: m$7("Form Control URL", r$
|
|
1899
|
-
tel: m$7("Form Control Phone", r$
|
|
1900
|
-
date: m$7("Form Control Date", r$
|
|
1901
|
-
time: m$7("Form Control Time", r$
|
|
1902
|
-
color: m$7("Form Control Color", r$
|
|
1923
|
+
search: m$7("Form Control Search", r$33, h$4),
|
|
1924
|
+
url: m$7("Form Control URL", r$33, h$4),
|
|
1925
|
+
tel: m$7("Form Control Phone", r$33, h$4),
|
|
1926
|
+
date: m$7("Form Control Date", r$33, h$4),
|
|
1927
|
+
time: m$7("Form Control Time", r$33, h$4),
|
|
1928
|
+
color: m$7("Form Control Color", r$33, h$4),
|
|
1903
1929
|
textarea: m$7("Form Control Textarea", {
|
|
1904
|
-
...r$
|
|
1930
|
+
...r$33,
|
|
1905
1931
|
color: "inherit",
|
|
1906
1932
|
resize: "vertical"
|
|
1907
1933
|
}),
|
|
@@ -1917,7 +1943,7 @@ var g$4 = r$37()({
|
|
|
1917
1943
|
"margin-left": "0px",
|
|
1918
1944
|
"margin-right": "4px"
|
|
1919
1945
|
} },
|
|
1920
|
-
label: { default: i$
|
|
1946
|
+
label: { default: i$27 },
|
|
1921
1947
|
requiredMark: { default: s$20 },
|
|
1922
1948
|
error: { default: o$23 }
|
|
1923
1949
|
}
|
|
@@ -1929,7 +1955,7 @@ var g$4 = r$37()({
|
|
|
1929
1955
|
base: { default: {} },
|
|
1930
1956
|
input: { default: p$11 },
|
|
1931
1957
|
label: { default: {
|
|
1932
|
-
...i$
|
|
1958
|
+
...i$27,
|
|
1933
1959
|
"align-items": "center"
|
|
1934
1960
|
} },
|
|
1935
1961
|
requiredMark: { default: s$20 },
|
|
@@ -1942,7 +1968,7 @@ var g$4 = r$37()({
|
|
|
1942
1968
|
});
|
|
1943
1969
|
//#endregion
|
|
1944
1970
|
//#region ../sdk-elements/dist/elements/internal/LayoutContainer/declaration.mjs
|
|
1945
|
-
var n$
|
|
1971
|
+
var n$38 = r$39()({
|
|
1946
1972
|
type: "layoutContainer",
|
|
1947
1973
|
attributeValues: { subType: e$43()([
|
|
1948
1974
|
"div",
|
|
@@ -1976,7 +2002,7 @@ var n$36 = r$37()({
|
|
|
1976
2002
|
});
|
|
1977
2003
|
//#endregion
|
|
1978
2004
|
//#region ../sdk-elements/dist/elements/internal/Loading/declaration.mjs
|
|
1979
|
-
var t$
|
|
2005
|
+
var t$51 = r$39()({
|
|
1980
2006
|
type: "loading",
|
|
1981
2007
|
content: {
|
|
1982
2008
|
attributes: {},
|
|
@@ -1994,7 +2020,7 @@ var t$50 = r$37()({
|
|
|
1994
2020
|
});
|
|
1995
2021
|
//#endregion
|
|
1996
2022
|
//#region ../sdk-elements/dist/elements/internal/NotFound/declaration.mjs
|
|
1997
|
-
var t$
|
|
2023
|
+
var t$50 = r$39()({
|
|
1998
2024
|
type: "notFound",
|
|
1999
2025
|
content: {
|
|
2000
2026
|
attributes: {},
|
|
@@ -2016,13 +2042,16 @@ var t$49 = r$37()({
|
|
|
2016
2042
|
});
|
|
2017
2043
|
//#endregion
|
|
2018
2044
|
//#region ../sdk-elements/dist/elements/internal/Page/declaration.mjs
|
|
2019
|
-
var t$
|
|
2045
|
+
var t$49 = ["locked", "noBounce"];
|
|
2046
|
+
var n$37 = (e) => t$49.some((t) => t === e);
|
|
2047
|
+
var r$32 = r$39()({
|
|
2020
2048
|
type: "page",
|
|
2021
2049
|
serverTemplates: [
|
|
2022
2050
|
"seoPageTitle",
|
|
2023
2051
|
"seoPageDescription",
|
|
2024
2052
|
"notFound"
|
|
2025
2053
|
],
|
|
2054
|
+
attributeValues: { documentScroll: t$49 },
|
|
2026
2055
|
triggers: { onPageLoad: {
|
|
2027
2056
|
action: "onPageLoad",
|
|
2028
2057
|
title: "On Page Load",
|
|
@@ -2076,7 +2105,7 @@ var t$48 = r$37()({
|
|
|
2076
2105
|
});
|
|
2077
2106
|
//#endregion
|
|
2078
2107
|
//#region ../sdk-elements/dist/elements/media/Embed/declaration.mjs
|
|
2079
|
-
var t$
|
|
2108
|
+
var t$48 = r$39()({
|
|
2080
2109
|
type: "embed",
|
|
2081
2110
|
content: {
|
|
2082
2111
|
attributes: {
|
|
@@ -2105,7 +2134,7 @@ var t$47 = r$37()({
|
|
|
2105
2134
|
});
|
|
2106
2135
|
//#endregion
|
|
2107
2136
|
//#region ../sdk-elements/dist/elements/media/FontAwesome/declaration.mjs
|
|
2108
|
-
var t$
|
|
2137
|
+
var t$47 = r$39()({
|
|
2109
2138
|
type: "fontAwesome",
|
|
2110
2139
|
content: {
|
|
2111
2140
|
attributes: {
|
|
@@ -2129,7 +2158,7 @@ var t$46 = r$37()({
|
|
|
2129
2158
|
});
|
|
2130
2159
|
//#endregion
|
|
2131
2160
|
//#region ../sdk-elements/dist/elements/media/Image/declaration.mjs
|
|
2132
|
-
var n$
|
|
2161
|
+
var n$36 = r$39()({
|
|
2133
2162
|
type: "image",
|
|
2134
2163
|
attributeValues: {
|
|
2135
2164
|
fetchPriority: e$43()([
|
|
@@ -2169,7 +2198,7 @@ var n$35 = r$37()({
|
|
|
2169
2198
|
});
|
|
2170
2199
|
//#endregion
|
|
2171
2200
|
//#region ../sdk-elements/dist/elements/media/Svg/declaration.mjs
|
|
2172
|
-
var t$
|
|
2201
|
+
var t$46 = r$39()({
|
|
2173
2202
|
type: "svg",
|
|
2174
2203
|
content: {
|
|
2175
2204
|
attributes: {
|
|
@@ -2196,7 +2225,7 @@ var t$45 = r$37()({
|
|
|
2196
2225
|
});
|
|
2197
2226
|
//#endregion
|
|
2198
2227
|
//#region ../sdk-elements/dist/elements/media/Video/declaration.mjs
|
|
2199
|
-
var t$
|
|
2228
|
+
var t$45 = r$39()({
|
|
2200
2229
|
type: "video",
|
|
2201
2230
|
content: {
|
|
2202
2231
|
attributes: {
|
|
@@ -2223,7 +2252,7 @@ var t$44 = r$37()({
|
|
|
2223
2252
|
});
|
|
2224
2253
|
//#endregion
|
|
2225
2254
|
//#region ../sdk-elements/dist/elements/provider/ApiContainer/declaration.mjs
|
|
2226
|
-
var n$
|
|
2255
|
+
var n$35 = r$39()({
|
|
2227
2256
|
type: "apiContainer",
|
|
2228
2257
|
attributeValues: {
|
|
2229
2258
|
subType: e$43()([
|
|
@@ -2379,7 +2408,7 @@ var n$34 = r$37()({
|
|
|
2379
2408
|
});
|
|
2380
2409
|
//#endregion
|
|
2381
2410
|
//#region ../sdk-elements/dist/elements/provider/Channel/declaration.mjs
|
|
2382
|
-
var n$
|
|
2411
|
+
var n$34 = r$39()({
|
|
2383
2412
|
type: "channel",
|
|
2384
2413
|
attributeValues: { subType: e$43()([
|
|
2385
2414
|
"",
|
|
@@ -2472,7 +2501,7 @@ var n$33 = r$37()({
|
|
|
2472
2501
|
},
|
|
2473
2502
|
definition: {
|
|
2474
2503
|
label: "Channel",
|
|
2475
|
-
description: "A realtime channel: every OTHER page on the same `topic` hears what one publishes, within milliseconds — the page that sent it too with `echo` (its `from` is then the `me` of the channel). The topic must match a channel the space declares in its settings (`channels`), e.g. `board:{{ id }}` under `board:{id}`. A topic of a private channel (`grant: true`) opens only with `grant`, bound to the grant the action that let this visitor in returned (its `realtime.grant` step). ITS DESCENDANTS bind to its source `channel_<id>`: `connected`, `members` (with the state each announced), `messages` (the last `keep`) and `
|
|
2504
|
+
description: "A realtime channel: every OTHER page on the same `topic` hears what one publishes, within milliseconds — the page that sent it too with `echo` (its `from` is then the `me` of the channel). The topic must match a channel the space declares in its settings (`channels`), e.g. `board:{{ id }}` under `board:{id}`. A topic of a private channel (`grant: true`) opens only with `grant`, bound to the grant the action that let this visitor in returned (its `realtime.grant` step). ITS DESCENDANTS bind to its source `channel_<id>`: `connected`, `members` (with the state each announced), `messages` (the last `keep`), `last` and — on a `retain: true` channel — `retained`, the latest data the server said of each type, there as the page joins (`retained.lists`). It fires `onMessage`; `onJoin` when somebody who came after this page has announced who they are, and `onLeave` when somebody goes — each with `from`, `user` and the `state` they announced; and answers `publish({ type, data, echo })` and `setPresence({ data })`; `presence` is the state this page announces (a name, a colour). Closed in the builder and anywhere without a server.",
|
|
2476
2505
|
items: []
|
|
2477
2506
|
},
|
|
2478
2507
|
market: {
|
|
@@ -2487,7 +2516,7 @@ var n$33 = r$37()({
|
|
|
2487
2516
|
});
|
|
2488
2517
|
//#endregion
|
|
2489
2518
|
//#region ../sdk-elements/dist/elements/structure/Carousel/CarouselTrack/declaration.mjs
|
|
2490
|
-
var t$
|
|
2519
|
+
var t$44 = r$39()({
|
|
2491
2520
|
type: "carouselTrack",
|
|
2492
2521
|
ancestorType: "carousel",
|
|
2493
2522
|
content: {
|
|
@@ -2510,7 +2539,7 @@ var t$43 = r$37()({
|
|
|
2510
2539
|
});
|
|
2511
2540
|
//#endregion
|
|
2512
2541
|
//#region ../sdk-elements/dist/elements/structure/Carousel/declaration.mjs
|
|
2513
|
-
var t$
|
|
2542
|
+
var t$43 = r$39()({
|
|
2514
2543
|
type: "carousel",
|
|
2515
2544
|
sourceType: "carousel",
|
|
2516
2545
|
triggers: { onChange: {
|
|
@@ -2591,7 +2620,7 @@ var t$42 = r$37()({
|
|
|
2591
2620
|
});
|
|
2592
2621
|
//#endregion
|
|
2593
2622
|
//#region ../sdk-elements/dist/elements/structure/Container/declaration.mjs
|
|
2594
|
-
var n$
|
|
2623
|
+
var n$33 = [
|
|
2595
2624
|
"div",
|
|
2596
2625
|
"header",
|
|
2597
2626
|
"footer",
|
|
@@ -2602,7 +2631,7 @@ var n$32 = [
|
|
|
2602
2631
|
"aside",
|
|
2603
2632
|
"figure"
|
|
2604
2633
|
];
|
|
2605
|
-
var r$
|
|
2634
|
+
var r$31 = r$39()({
|
|
2606
2635
|
type: "container",
|
|
2607
2636
|
attributeValues: {
|
|
2608
2637
|
subType: e$43()([
|
|
@@ -2654,7 +2683,7 @@ var r$30 = r$37()({
|
|
|
2654
2683
|
});
|
|
2655
2684
|
//#endregion
|
|
2656
2685
|
//#region ../sdk-elements/dist/elements/structure/DialogContainer/declaration.mjs
|
|
2657
|
-
var t$
|
|
2686
|
+
var t$42 = { default: {
|
|
2658
2687
|
height: "28px",
|
|
2659
2688
|
width: "28px",
|
|
2660
2689
|
"padding-top": "4px",
|
|
@@ -2678,7 +2707,7 @@ var t$41 = { default: {
|
|
|
2678
2707
|
"font-size": "inherit",
|
|
2679
2708
|
cursor: "pointer"
|
|
2680
2709
|
} };
|
|
2681
|
-
var n$
|
|
2710
|
+
var n$32 = {
|
|
2682
2711
|
"min-height": "30px",
|
|
2683
2712
|
"min-width": "30px",
|
|
2684
2713
|
"padding-top": "6px",
|
|
@@ -2698,17 +2727,17 @@ var n$31 = {
|
|
|
2698
2727
|
};
|
|
2699
2728
|
//#endregion
|
|
2700
2729
|
//#region ../sdk-elements/dist/elements/declarations/index.mjs
|
|
2701
|
-
var
|
|
2702
|
-
ApiContainer: n$
|
|
2703
|
-
BlockHtml: t$
|
|
2704
|
-
BlockJsx: t$
|
|
2705
|
-
Button: r$
|
|
2706
|
-
Carousel: t$
|
|
2707
|
-
CarouselTrack: t$
|
|
2708
|
-
Channel: n$
|
|
2709
|
-
Container: r$
|
|
2710
|
-
Custom: t$
|
|
2711
|
-
DialogContainer: r$
|
|
2730
|
+
var V = {
|
|
2731
|
+
ApiContainer: n$35,
|
|
2732
|
+
BlockHtml: t$61,
|
|
2733
|
+
BlockJsx: t$60,
|
|
2734
|
+
Button: r$35,
|
|
2735
|
+
Carousel: t$43,
|
|
2736
|
+
CarouselTrack: t$44,
|
|
2737
|
+
Channel: n$34,
|
|
2738
|
+
Container: r$31,
|
|
2739
|
+
Custom: t$59,
|
|
2740
|
+
DialogContainer: r$39()({
|
|
2712
2741
|
type: "dialogContainer",
|
|
2713
2742
|
sourceType: "dialogContainer",
|
|
2714
2743
|
triggers: {
|
|
@@ -2851,7 +2880,7 @@ var B = {
|
|
|
2851
2880
|
"font-weight": "500",
|
|
2852
2881
|
"line-height": "1.2"
|
|
2853
2882
|
} },
|
|
2854
|
-
headerCloseButton: t$
|
|
2883
|
+
headerCloseButton: t$42,
|
|
2855
2884
|
bodyContainer: { default: {
|
|
2856
2885
|
display: "flex",
|
|
2857
2886
|
"flex-direction": "column",
|
|
@@ -2863,9 +2892,9 @@ var B = {
|
|
|
2863
2892
|
"justify-content": "flex-end",
|
|
2864
2893
|
"margin-top": "8px"
|
|
2865
2894
|
} },
|
|
2866
|
-
acceptButton: { default: n$
|
|
2895
|
+
acceptButton: { default: n$32 },
|
|
2867
2896
|
cancelButton: { default: {
|
|
2868
|
-
...n$
|
|
2897
|
+
...n$32,
|
|
2869
2898
|
"margin-left": "12px"
|
|
2870
2899
|
} }
|
|
2871
2900
|
},
|
|
@@ -2874,17 +2903,17 @@ var B = {
|
|
|
2874
2903
|
},
|
|
2875
2904
|
initialItems: ["container"]
|
|
2876
2905
|
}),
|
|
2877
|
-
Dropdown: n$
|
|
2878
|
-
DropdownPopup: t$
|
|
2879
|
-
Embed: t$
|
|
2880
|
-
FontAwesome: t$
|
|
2881
|
-
Form: n$
|
|
2906
|
+
Dropdown: n$45,
|
|
2907
|
+
DropdownPopup: t$55,
|
|
2908
|
+
Embed: t$48,
|
|
2909
|
+
FontAwesome: t$47,
|
|
2910
|
+
Form: n$40,
|
|
2882
2911
|
FormControl: g$4,
|
|
2883
|
-
Heading: n$
|
|
2884
|
-
Image: n$
|
|
2885
|
-
LayoutContainer: n$
|
|
2886
|
-
Link: n$
|
|
2887
|
-
List: r$
|
|
2912
|
+
Heading: n$44,
|
|
2913
|
+
Image: n$36,
|
|
2914
|
+
LayoutContainer: n$38,
|
|
2915
|
+
Link: n$43,
|
|
2916
|
+
List: r$39()({
|
|
2888
2917
|
type: "list",
|
|
2889
2918
|
attributeValues: {
|
|
2890
2919
|
subType: e$43()(["ul", "ol"]),
|
|
@@ -2940,7 +2969,7 @@ var B = {
|
|
|
2940
2969
|
"listItem"
|
|
2941
2970
|
]
|
|
2942
2971
|
}),
|
|
2943
|
-
ListItem: r$
|
|
2972
|
+
ListItem: r$39()({
|
|
2944
2973
|
type: "listItem",
|
|
2945
2974
|
content: {
|
|
2946
2975
|
attributes: {},
|
|
@@ -2957,9 +2986,9 @@ var B = {
|
|
|
2957
2986
|
defaultStyle: { style: { base: { default: {} } } }
|
|
2958
2987
|
}
|
|
2959
2988
|
}),
|
|
2960
|
-
Loading: t$
|
|
2961
|
-
Markdown: t$
|
|
2962
|
-
ModalContainer: r$
|
|
2989
|
+
Loading: t$51,
|
|
2990
|
+
Markdown: t$54,
|
|
2991
|
+
ModalContainer: r$39()({
|
|
2963
2992
|
type: "modalContainer",
|
|
2964
2993
|
sourceType: "modalContainer",
|
|
2965
2994
|
triggers: {
|
|
@@ -3117,10 +3146,10 @@ var B = {
|
|
|
3117
3146
|
},
|
|
3118
3147
|
initialItems: ["container"]
|
|
3119
3148
|
}),
|
|
3120
|
-
NodeHtml: t$
|
|
3121
|
-
NotFound: t$
|
|
3122
|
-
Page:
|
|
3123
|
-
Pagination: r$
|
|
3149
|
+
NodeHtml: t$58,
|
|
3150
|
+
NotFound: t$50,
|
|
3151
|
+
Page: r$32,
|
|
3152
|
+
Pagination: r$39()({
|
|
3124
3153
|
type: "pagination",
|
|
3125
3154
|
attributeValues: {
|
|
3126
3155
|
mode: e$43()(["pages", "loadMore"]),
|
|
@@ -3170,11 +3199,12 @@ var B = {
|
|
|
3170
3199
|
}
|
|
3171
3200
|
}
|
|
3172
3201
|
}),
|
|
3173
|
-
Paragraph: t$
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3202
|
+
Paragraph: t$53,
|
|
3203
|
+
PlitziSdk: t$57,
|
|
3204
|
+
Reference: t$56,
|
|
3205
|
+
RichText: n$42,
|
|
3206
|
+
Svg: t$46,
|
|
3207
|
+
TabContainer: r$39()({
|
|
3178
3208
|
type: "tabContainer",
|
|
3179
3209
|
content: {
|
|
3180
3210
|
attributes: {},
|
|
@@ -3195,7 +3225,7 @@ var B = {
|
|
|
3195
3225
|
},
|
|
3196
3226
|
initialItems: ["tabContainerHeader", "tabContainerBody"]
|
|
3197
3227
|
}),
|
|
3198
|
-
TabContainerBody: r$
|
|
3228
|
+
TabContainerBody: r$39()({
|
|
3199
3229
|
type: "tabContainerBody",
|
|
3200
3230
|
ancestorType: "tabContainer",
|
|
3201
3231
|
content: {
|
|
@@ -3227,7 +3257,7 @@ var B = {
|
|
|
3227
3257
|
"tabContainerItem"
|
|
3228
3258
|
]
|
|
3229
3259
|
}),
|
|
3230
|
-
TabContainerHeader: r$
|
|
3260
|
+
TabContainerHeader: r$39()({
|
|
3231
3261
|
type: "tabContainerHeader",
|
|
3232
3262
|
ancestorType: "tabContainer",
|
|
3233
3263
|
content: {
|
|
@@ -3259,7 +3289,7 @@ var B = {
|
|
|
3259
3289
|
"tabContainerItem"
|
|
3260
3290
|
]
|
|
3261
3291
|
}),
|
|
3262
|
-
TabContainerItem: r$
|
|
3292
|
+
TabContainerItem: r$39()({
|
|
3263
3293
|
type: "tabContainerItem",
|
|
3264
3294
|
content: {
|
|
3265
3295
|
attributes: {},
|
|
@@ -3283,15 +3313,15 @@ var B = {
|
|
|
3283
3313
|
}
|
|
3284
3314
|
}
|
|
3285
3315
|
}),
|
|
3286
|
-
Text: t$
|
|
3287
|
-
ThemeToggle: r$
|
|
3288
|
-
Video: t$
|
|
3316
|
+
Text: t$52,
|
|
3317
|
+
ThemeToggle: r$34,
|
|
3318
|
+
Video: t$45
|
|
3289
3319
|
};
|
|
3290
|
-
var
|
|
3320
|
+
var H = Object.fromEntries(Object.values(V).flatMap((e) => "serverTemplates" in e ? [[e.type, e.serverTemplates]] : []));
|
|
3291
3321
|
//#endregion
|
|
3292
3322
|
//#region src/elements/catalog.ts
|
|
3293
3323
|
/** Every declaration, read through the part of its shape this catalog uses. */
|
|
3294
|
-
var declarations =
|
|
3324
|
+
var declarations = V;
|
|
3295
3325
|
/** Keyed by the schema `type`, which is what a document and every catalog address a type by. */
|
|
3296
3326
|
var elementCatalog = Object.fromEntries(Object.values(declarations).map((declaration) => [declaration.type, {
|
|
3297
3327
|
label: declaration.content?.definition?.label ?? declaration.type,
|
|
@@ -4604,7 +4634,7 @@ var e$39 = [
|
|
|
4604
4634
|
"computed"
|
|
4605
4635
|
];
|
|
4606
4636
|
e$39.filter((e) => e !== "state" && e !== "computed");
|
|
4607
|
-
var n$
|
|
4637
|
+
var n$29 = {
|
|
4608
4638
|
navigation: {
|
|
4609
4639
|
routeParams: "open",
|
|
4610
4640
|
queryParams: "open",
|
|
@@ -4663,20 +4693,20 @@ var e$38 = {
|
|
|
4663
4693
|
LowerR: 114,
|
|
4664
4694
|
LowerT: 116
|
|
4665
4695
|
};
|
|
4666
|
-
var t$
|
|
4667
|
-
var n$
|
|
4668
|
-
var r$
|
|
4669
|
-
var i$
|
|
4696
|
+
var t$34 = (t) => t >= 97 && t <= 122 || t >= 65 && t <= 90 || t === e$38.Underscore;
|
|
4697
|
+
var n$28 = (n) => t$34(n) || n >= e$38.Zero && n <= e$38.Nine;
|
|
4698
|
+
var r$29 = (t) => n$28(t) || t === e$38.Minus;
|
|
4699
|
+
var i$26 = (t) => t >= e$38.Zero && t <= e$38.Nine;
|
|
4670
4700
|
var a$20 = (t) => t === e$38.Space || t === e$38.Tab || t === e$38.Newline || t === e$38.CarriageReturn;
|
|
4671
4701
|
var o$22 = (e) => {
|
|
4672
4702
|
let r = e.length;
|
|
4673
|
-
if (r === 0 || !t$
|
|
4674
|
-
for (let t = 1; t < r; t++) if (!n$
|
|
4703
|
+
if (r === 0 || !t$34(e.charCodeAt(0))) return !1;
|
|
4704
|
+
for (let t = 1; t < r; t++) if (!n$28(e.charCodeAt(t))) return !1;
|
|
4675
4705
|
return !0;
|
|
4676
4706
|
};
|
|
4677
4707
|
var s$19 = (r) => {
|
|
4678
4708
|
let a = r.length;
|
|
4679
|
-
if (a === 0 || !t$
|
|
4709
|
+
if (a === 0 || !t$34(r.charCodeAt(0))) return !1;
|
|
4680
4710
|
let o = !1, s = !1;
|
|
4681
4711
|
for (let c = 1; c < a; c++) {
|
|
4682
4712
|
let a = r.charCodeAt(c);
|
|
@@ -4686,11 +4716,11 @@ var s$19 = (r) => {
|
|
|
4686
4716
|
continue;
|
|
4687
4717
|
}
|
|
4688
4718
|
if (o) {
|
|
4689
|
-
if (s = i$
|
|
4719
|
+
if (s = i$26(a), !s && !t$34(a)) return !1;
|
|
4690
4720
|
o = !1;
|
|
4691
4721
|
continue;
|
|
4692
4722
|
}
|
|
4693
|
-
if (s ? !i$
|
|
4723
|
+
if (s ? !i$26(a) : !n$28(a)) return !1;
|
|
4694
4724
|
}
|
|
4695
4725
|
return !o;
|
|
4696
4726
|
};
|
|
@@ -4750,7 +4780,7 @@ var e$37 = (e) => {
|
|
|
4750
4780
|
//#endregion
|
|
4751
4781
|
//#region ../sdk-shared/dist/helpers/twigWrapper/Lexer/types.mjs
|
|
4752
4782
|
var e$36 = (e, t) => t ? `{{{${e}}}}` : `{{${e}}}`;
|
|
4753
|
-
var t$
|
|
4783
|
+
var t$33 = (t) => {
|
|
4754
4784
|
switch (t.type) {
|
|
4755
4785
|
case "text": return t.value;
|
|
4756
4786
|
case "variable": return e$36(t.content, t.raw);
|
|
@@ -4780,12 +4810,12 @@ var o$21 = class {
|
|
|
4780
4810
|
}
|
|
4781
4811
|
scanName() {
|
|
4782
4812
|
let e = this.pos;
|
|
4783
|
-
if (!this.eof() && t$
|
|
4813
|
+
if (!this.eof() && t$34(this.src.charCodeAt(this.pos))) for (this.pos++; !this.eof() && r$29(this.src.charCodeAt(this.pos));) this.pos++;
|
|
4784
4814
|
return this.src.slice(e, this.pos);
|
|
4785
4815
|
}
|
|
4786
4816
|
scanIndex() {
|
|
4787
4817
|
let e = this.pos;
|
|
4788
|
-
for (; !this.eof() && i$
|
|
4818
|
+
for (; !this.eof() && i$26(this.src.charCodeAt(this.pos));) this.pos++;
|
|
4789
4819
|
return this.src.slice(e, this.pos);
|
|
4790
4820
|
}
|
|
4791
4821
|
scanStringLiteral() {
|
|
@@ -4801,15 +4831,15 @@ var o$21 = class {
|
|
|
4801
4831
|
}
|
|
4802
4832
|
scanNumber() {
|
|
4803
4833
|
let n = this.pos;
|
|
4804
|
-
for (this.src.charCodeAt(this.pos) === e$38.Minus && this.pos++; this.pos < this.src.length && i$
|
|
4805
|
-
if (this.src.charCodeAt(this.pos) === e$38.Dot) for (this.pos++; this.pos < this.src.length && i$
|
|
4834
|
+
for (this.src.charCodeAt(this.pos) === e$38.Minus && this.pos++; this.pos < this.src.length && i$26(this.src.charCodeAt(this.pos));) this.pos++;
|
|
4835
|
+
if (this.src.charCodeAt(this.pos) === e$38.Dot) for (this.pos++; this.pos < this.src.length && i$26(this.src.charCodeAt(this.pos));) this.pos++;
|
|
4806
4836
|
return Number(this.src.slice(n, this.pos));
|
|
4807
4837
|
}
|
|
4808
4838
|
matchKeyword(e) {
|
|
4809
4839
|
let t = this.pos + e.length;
|
|
4810
4840
|
if (t > this.src.length) return !1;
|
|
4811
4841
|
for (let t = 0; t < e.length; t++) if (this.src.charCodeAt(this.pos + t) !== e.charCodeAt(t)) return !1;
|
|
4812
|
-
return t < this.src.length && n$
|
|
4842
|
+
return t < this.src.length && n$28(this.src.charCodeAt(t)) ? !1 : (this.pos = t, this.skipWs(), !0);
|
|
4813
4843
|
}
|
|
4814
4844
|
matchBinaryOp() {
|
|
4815
4845
|
this.skipWs();
|
|
@@ -4825,11 +4855,11 @@ var o$21 = class {
|
|
|
4825
4855
|
};
|
|
4826
4856
|
//#endregion
|
|
4827
4857
|
//#region ../sdk-shared/dist/helpers/twigWrapper/Parser/ExpressionParser.mjs
|
|
4828
|
-
var r$
|
|
4858
|
+
var r$28 = (e, t) => {
|
|
4829
4859
|
let n = new s$18(e, t), r = n.parseTernary();
|
|
4830
4860
|
return n.expectEnd(), r;
|
|
4831
4861
|
};
|
|
4832
|
-
var i$
|
|
4862
|
+
var i$25 = (e, t) => {
|
|
4833
4863
|
let n = new s$18(e, t), r = n.parseApplyChain();
|
|
4834
4864
|
return n.expectEnd(), r;
|
|
4835
4865
|
};
|
|
@@ -4949,7 +4979,7 @@ var s$18 = class extends o$21 {
|
|
|
4949
4979
|
return this.pos = this.src.length, {
|
|
4950
4980
|
type: "unary",
|
|
4951
4981
|
operator: "not",
|
|
4952
|
-
operand: r$
|
|
4982
|
+
operand: r$28(t, this.issues)
|
|
4953
4983
|
};
|
|
4954
4984
|
}
|
|
4955
4985
|
if (this.matchKeyword("in")) {
|
|
@@ -5063,7 +5093,7 @@ var s$18 = class extends o$21 {
|
|
|
5063
5093
|
});
|
|
5064
5094
|
}
|
|
5065
5095
|
parseSignedAtom() {
|
|
5066
|
-
return this.peek() === e$38.Minus && i$
|
|
5096
|
+
return this.peek() === e$38.Minus && i$26(this.at(1)) ? this.maybeTrailingFilters({
|
|
5067
5097
|
type: "literal",
|
|
5068
5098
|
value: this.scanNumber()
|
|
5069
5099
|
}) : this.peek() === e$38.Minus ? (this.pos++, this.skipWs(), {
|
|
@@ -5073,7 +5103,7 @@ var s$18 = class extends o$21 {
|
|
|
5073
5103
|
}) : this.parseAtom();
|
|
5074
5104
|
}
|
|
5075
5105
|
parseDefault() {
|
|
5076
|
-
if (this.skipWs(), this.peek() === e$38.Minus && i$
|
|
5106
|
+
if (this.skipWs(), this.peek() === e$38.Minus && i$26(this.at(1))) return this.maybeTrailingFilters({
|
|
5077
5107
|
type: "literal",
|
|
5078
5108
|
value: this.scanNumber()
|
|
5079
5109
|
});
|
|
@@ -5109,7 +5139,7 @@ var s$18 = class extends o$21 {
|
|
|
5109
5139
|
type: "literal",
|
|
5110
5140
|
value: this.scanStringLiteral()
|
|
5111
5141
|
});
|
|
5112
|
-
if (i$
|
|
5142
|
+
if (i$26(n)) return this.maybeTrailingFilters({
|
|
5113
5143
|
type: "literal",
|
|
5114
5144
|
value: this.scanNumber()
|
|
5115
5145
|
});
|
|
@@ -5240,7 +5270,7 @@ var s$18 = class extends o$21 {
|
|
|
5240
5270
|
type: "literal",
|
|
5241
5271
|
value: this.scanStringLiteral()
|
|
5242
5272
|
};
|
|
5243
|
-
if (i$
|
|
5273
|
+
if (i$26(n)) return {
|
|
5244
5274
|
type: "literal",
|
|
5245
5275
|
value: this.scanNumber()
|
|
5246
5276
|
};
|
|
@@ -5283,12 +5313,12 @@ var s$18 = class extends o$21 {
|
|
|
5283
5313
|
};
|
|
5284
5314
|
//#endregion
|
|
5285
5315
|
//#region ../sdk-shared/dist/helpers/twigWrapper/Parser/helpers.mjs
|
|
5286
|
-
var n$
|
|
5316
|
+
var n$27 = (e) => {
|
|
5287
5317
|
let n = 0;
|
|
5288
5318
|
for (; n < e.length && !a$20(e.charCodeAt(n));) n++;
|
|
5289
5319
|
return e.slice(0, n);
|
|
5290
5320
|
};
|
|
5291
|
-
var r$
|
|
5321
|
+
var r$27 = (t) => {
|
|
5292
5322
|
let n = 0;
|
|
5293
5323
|
for (let r = 0; r + 1 < t.length; r++) {
|
|
5294
5324
|
let i = t.charCodeAt(r);
|
|
@@ -5305,7 +5335,7 @@ var c$16 = (e, t = !1, n) => {
|
|
|
5305
5335
|
if (!r.error) {
|
|
5306
5336
|
let e = r.peek();
|
|
5307
5337
|
if (e && e.type === "tag") {
|
|
5308
|
-
let t = n$
|
|
5338
|
+
let t = n$27(e.content.trim());
|
|
5309
5339
|
l$12.has(t) && (r.error = `Orphan closing tag: {% ${t} %} without matching opening tag`);
|
|
5310
5340
|
}
|
|
5311
5341
|
}
|
|
@@ -5369,7 +5399,7 @@ var f$9 = class {
|
|
|
5369
5399
|
let e = [];
|
|
5370
5400
|
for (; this.pos < this.tokens.length;) {
|
|
5371
5401
|
let t = this.peek();
|
|
5372
|
-
if (!t || t.type === "tag" && l$12.has(n$
|
|
5402
|
+
if (!t || t.type === "tag" && l$12.has(n$27(t.content.trim()))) break;
|
|
5373
5403
|
let n = this.parseNode();
|
|
5374
5404
|
n && e.push(n);
|
|
5375
5405
|
}
|
|
@@ -5403,7 +5433,7 @@ var f$9 = class {
|
|
|
5403
5433
|
},
|
|
5404
5434
|
source: i
|
|
5405
5435
|
};
|
|
5406
|
-
let o = r$
|
|
5436
|
+
let o = r$28(r, this.issues);
|
|
5407
5437
|
return {
|
|
5408
5438
|
type: "variable",
|
|
5409
5439
|
raw: t.raw,
|
|
@@ -5414,7 +5444,7 @@ var f$9 = class {
|
|
|
5414
5444
|
parseTag() {
|
|
5415
5445
|
let e = this.peek();
|
|
5416
5446
|
if (!e || e.type !== "tag") return null;
|
|
5417
|
-
let n = n$
|
|
5447
|
+
let n = n$27(e.content.trim());
|
|
5418
5448
|
switch (n) {
|
|
5419
5449
|
case "if": return this.parseIf();
|
|
5420
5450
|
case "for": return this.parseFor();
|
|
@@ -5431,14 +5461,14 @@ var f$9 = class {
|
|
|
5431
5461
|
if (e.type !== "tag") return this.error = "Malformed {% if %} tag", u$13();
|
|
5432
5462
|
let t = e.content.trim(), n = t.indexOf(" ") === -1 ? "" : t.slice(t.indexOf(" ") + 1).trim();
|
|
5433
5463
|
if (!n) return this.error = "Malformed {% if %} tag: missing condition", u$13();
|
|
5434
|
-
let r = r$
|
|
5464
|
+
let r = r$28(n, this.issues), i = this.parseBody(), s = [], c = null, l = !1;
|
|
5435
5465
|
for (; this.peek();) {
|
|
5436
5466
|
let e = this.peek();
|
|
5437
5467
|
if (!e || e.type !== "tag") break;
|
|
5438
|
-
let t = n$
|
|
5468
|
+
let t = n$27(e.content.trim());
|
|
5439
5469
|
if (t === "elseif") {
|
|
5440
5470
|
this.advance();
|
|
5441
|
-
let t = e.content.trim(), r = r$
|
|
5471
|
+
let t = e.content.trim(), r = r$28(t.slice(t.indexOf(" ") + 1).trim(), this.issues), i = this.parseBody();
|
|
5442
5472
|
s.push({
|
|
5443
5473
|
condition: r,
|
|
5444
5474
|
body: i
|
|
@@ -5464,20 +5494,20 @@ var f$9 = class {
|
|
|
5464
5494
|
if (n.type !== "tag") return d$11();
|
|
5465
5495
|
let r = n.content.trim(), i = r.slice(r.indexOf(" ") + 1).trim(), c = /\sin\s/.exec(i);
|
|
5466
5496
|
if (!c) return this.error = "Invalid {% for %} syntax: missing the `in` keyword", d$11();
|
|
5467
|
-
let l = i.slice(0, c.index).trim(), u = i.slice(c.index + c[0].length).trim(), f = r$
|
|
5497
|
+
let l = i.slice(0, c.index).trim(), u = i.slice(c.index + c[0].length).trim(), f = r$27(u), p = f ? {
|
|
5468
5498
|
type: "range",
|
|
5469
|
-
start: r$
|
|
5470
|
-
end: r$
|
|
5471
|
-
} : r$
|
|
5499
|
+
start: r$28(f[0], this.issues),
|
|
5500
|
+
end: r$28(f[1], this.issues)
|
|
5501
|
+
} : r$28(u, this.issues), m = l.indexOf(","), h = m === -1 ? null : l.slice(0, m).trim(), g = m === -1 ? l : l.slice(m + 1).trim();
|
|
5472
5502
|
if (!c$17(g)) return this.error = `Invalid {% for %} variable name: "${g}"`, d$11();
|
|
5473
5503
|
if (h !== null && !c$17(h)) return this.error = `Invalid {% for %} key variable name: "${h}"`, d$11();
|
|
5474
5504
|
let _ = this.parseBody(), v = null;
|
|
5475
5505
|
if (this.peek()) {
|
|
5476
5506
|
let e = this.peek();
|
|
5477
|
-
e && e.type === "tag" && n$
|
|
5507
|
+
e && e.type === "tag" && n$27(e.content.trim()) === "else" && (this.advance(), v = this.parseBody());
|
|
5478
5508
|
}
|
|
5479
5509
|
let y = this.peek();
|
|
5480
|
-
y && y.type === "tag" && n$
|
|
5510
|
+
y && y.type === "tag" && n$27(y.content.trim()) === "endfor" ? this.advance() : this.error = "Malformed {% for %} block: missing {% endfor %}";
|
|
5481
5511
|
let b = this.keepEmptyTokens ? this.reconstructRange(e, this.pos) : void 0;
|
|
5482
5512
|
return {
|
|
5483
5513
|
type: "for",
|
|
@@ -5491,7 +5521,7 @@ var f$9 = class {
|
|
|
5491
5521
|
}
|
|
5492
5522
|
reconstructRange(e, t) {
|
|
5493
5523
|
let n = "";
|
|
5494
|
-
for (let i = e; i < t; i++) n += t$
|
|
5524
|
+
for (let i = e; i < t; i++) n += t$33(this.tokens[i]);
|
|
5495
5525
|
return n;
|
|
5496
5526
|
}
|
|
5497
5527
|
parseSet() {
|
|
@@ -5517,7 +5547,7 @@ var f$9 = class {
|
|
|
5517
5547
|
return {
|
|
5518
5548
|
type: "set",
|
|
5519
5549
|
name: n.slice(0, r).trim(),
|
|
5520
|
-
value: r$
|
|
5550
|
+
value: r$28(n.slice(r + 1).trim(), this.issues)
|
|
5521
5551
|
};
|
|
5522
5552
|
}
|
|
5523
5553
|
parseApply() {
|
|
@@ -5528,7 +5558,7 @@ var f$9 = class {
|
|
|
5528
5558
|
filters: [],
|
|
5529
5559
|
body: []
|
|
5530
5560
|
};
|
|
5531
|
-
let t = e.content.trim(), r = i$
|
|
5561
|
+
let t = e.content.trim(), r = i$25(t.slice(t.indexOf(" ") + 1).trim(), this.issues), a = this.parseBody(), o = this.peek();
|
|
5532
5562
|
return o && o.type === "tag" && this.advance(), {
|
|
5533
5563
|
type: "apply",
|
|
5534
5564
|
filters: r,
|
|
@@ -5538,8 +5568,8 @@ var f$9 = class {
|
|
|
5538
5568
|
};
|
|
5539
5569
|
//#endregion
|
|
5540
5570
|
//#region ../sdk-shared/dist/helpers/twigWrapper/TemplateCache/TemplateCache.mjs
|
|
5541
|
-
var r$
|
|
5542
|
-
var i$
|
|
5571
|
+
var r$26 = /* @__PURE__ */ new Map();
|
|
5572
|
+
var i$24 = 1024;
|
|
5543
5573
|
var a$18 = {
|
|
5544
5574
|
hits: 0,
|
|
5545
5575
|
misses: 0
|
|
@@ -5563,9 +5593,9 @@ var c$15 = (t) => {
|
|
|
5563
5593
|
};
|
|
5564
5594
|
};
|
|
5565
5595
|
var l$11 = () => {
|
|
5566
|
-
if (r$
|
|
5567
|
-
let e = r$
|
|
5568
|
-
e !== void 0 && r$
|
|
5596
|
+
if (r$26.size >= i$24) {
|
|
5597
|
+
let e = r$26.keys().next().value;
|
|
5598
|
+
e !== void 0 && r$26.delete(e);
|
|
5569
5599
|
}
|
|
5570
5600
|
};
|
|
5571
5601
|
var u$12 = (e) => {
|
|
@@ -5591,17 +5621,17 @@ var u$12 = (e) => {
|
|
|
5591
5621
|
};
|
|
5592
5622
|
};
|
|
5593
5623
|
var d$10 = (e) => {
|
|
5594
|
-
let t = r$
|
|
5624
|
+
let t = r$26.get(e);
|
|
5595
5625
|
if (t) return a$18.hits++, t;
|
|
5596
5626
|
a$18.misses++;
|
|
5597
5627
|
let n = u$12(e);
|
|
5598
|
-
return n ? (l$11(), r$
|
|
5628
|
+
return n ? (l$11(), r$26.set(e, n), n) : null;
|
|
5599
5629
|
};
|
|
5600
5630
|
//#endregion
|
|
5601
5631
|
//#region ../sdk-shared/dist/helpers/twigWrapper/templateRoots.mjs
|
|
5602
|
-
var t$
|
|
5632
|
+
var t$32 = (e, n) => {
|
|
5603
5633
|
if (Array.isArray(e)) {
|
|
5604
|
-
for (let r of e) t$
|
|
5634
|
+
for (let r of e) t$32(r, n);
|
|
5605
5635
|
return;
|
|
5606
5636
|
}
|
|
5607
5637
|
if (typeof e == "object" && e) {
|
|
@@ -5610,16 +5640,16 @@ var t$31 = (e, n) => {
|
|
|
5610
5640
|
t.length > 0 && n.add(t.join("."));
|
|
5611
5641
|
return;
|
|
5612
5642
|
}
|
|
5613
|
-
for (let r of Object.values(e)) t$
|
|
5643
|
+
for (let r of Object.values(e)) t$32(r, n);
|
|
5614
5644
|
}
|
|
5615
5645
|
};
|
|
5616
|
-
var n$
|
|
5646
|
+
var n$26 = (n) => {
|
|
5617
5647
|
let r = d$10(n);
|
|
5618
5648
|
if (!r) return [];
|
|
5619
5649
|
let i = /* @__PURE__ */ new Set();
|
|
5620
|
-
return t$
|
|
5650
|
+
return t$32(r.nodes ?? r.nodesWithSource, i), [...i];
|
|
5621
5651
|
};
|
|
5622
|
-
var r$
|
|
5652
|
+
var r$25 = (e) => [...new Set(n$26(e).map((e) => e.split(".")[0]))];
|
|
5623
5653
|
//#endregion
|
|
5624
5654
|
//#region ../sdk-shared/dist/style/styleConstants.mjs
|
|
5625
5655
|
var e$35 = {
|
|
@@ -5637,7 +5667,7 @@ var e$35 = {
|
|
|
5637
5667
|
fonts: [],
|
|
5638
5668
|
cache: ""
|
|
5639
5669
|
};
|
|
5640
|
-
var t$
|
|
5670
|
+
var t$31 = {
|
|
5641
5671
|
DISPLAY: "display",
|
|
5642
5672
|
FLEX_WRAP: "flex-wrap",
|
|
5643
5673
|
FLEX_DIRECTION: "flex-direction",
|
|
@@ -5836,40 +5866,40 @@ var t$30 = {
|
|
|
5836
5866
|
STROKE: "stroke",
|
|
5837
5867
|
STROKE_WIDTH: "stroke-width"
|
|
5838
5868
|
};
|
|
5839
|
-
var n$
|
|
5840
|
-
t$
|
|
5841
|
-
t$
|
|
5842
|
-
t$
|
|
5843
|
-
t$
|
|
5844
|
-
t$
|
|
5845
|
-
t$
|
|
5846
|
-
t$
|
|
5847
|
-
t$
|
|
5848
|
-
t$
|
|
5849
|
-
t$
|
|
5850
|
-
t$
|
|
5851
|
-
t$
|
|
5852
|
-
t$
|
|
5853
|
-
t$
|
|
5854
|
-
t$
|
|
5855
|
-
t$
|
|
5856
|
-
t$
|
|
5857
|
-
t$
|
|
5858
|
-
t$
|
|
5859
|
-
t$
|
|
5860
|
-
t$
|
|
5861
|
-
t$
|
|
5869
|
+
var n$25 = [
|
|
5870
|
+
t$31.FONT_FAMILY,
|
|
5871
|
+
t$31.FONT_SIZE,
|
|
5872
|
+
t$31.FONT_STYLE,
|
|
5873
|
+
t$31.FONT_VARIANT,
|
|
5874
|
+
t$31.FONT_VARIANT_NUMERIC,
|
|
5875
|
+
t$31.FONT_FEATURE_SETTINGS,
|
|
5876
|
+
t$31.FONT_WEIGHT,
|
|
5877
|
+
t$31.COLOR,
|
|
5878
|
+
t$31.LINE_HEIGHT,
|
|
5879
|
+
t$31.LETTER_SPACING,
|
|
5880
|
+
t$31.TEXT_ALIGN,
|
|
5881
|
+
t$31.TEXT_DECORATION,
|
|
5882
|
+
t$31.TEXT_INDENT,
|
|
5883
|
+
t$31.TEXT_SHADOW,
|
|
5884
|
+
t$31.TEXT_TRANSFORM,
|
|
5885
|
+
t$31.TEXT_WRAP,
|
|
5886
|
+
t$31.TEXT_OVERFLOW,
|
|
5887
|
+
t$31.WHITE_SPACE,
|
|
5888
|
+
t$31.DIRECTION,
|
|
5889
|
+
t$31.CURSOR,
|
|
5890
|
+
t$31.LIST_STYLE,
|
|
5891
|
+
t$31.LIST_STYLE_TYPE
|
|
5862
5892
|
];
|
|
5863
|
-
Object.values(t$
|
|
5893
|
+
Object.values(t$31).map((e) => ({
|
|
5864
5894
|
path: e,
|
|
5865
5895
|
label: e
|
|
5866
5896
|
}));
|
|
5867
|
-
t$
|
|
5897
|
+
t$31.DISPLAY, t$31.FLEX_WRAP, t$31.FLEX_DIRECTION, t$31.ALIGN_ITEMS, t$31.JUSTIFY_ITEMS, t$31.JUSTIFY_CONTENT, t$31.ALIGN_CONTENT, t$31.ROW_GAP, t$31.COLUMN_GAP, t$31.GRID_ROW_GAP, t$31.GRID_COLUMN_GAP, t$31.GRID_TEMPLATE_AREAS, t$31.GRID_TEMPLATE_COLUMNS, t$31.GRID_TEMPLATE_ROWS, t$31.GRID_AUTO_FLOW, t$31.GRID_AUTO_ROWS, t$31.GRID_AUTO_COLUMNS, t$31.GRID_ROW_START, t$31.GRID_COLUMN_START, t$31.GRID_ROW_END, t$31.GRID_COLUMN_END, t$31.ALIGN_SELF, t$31.JUSTIFY_SELF, t$31.ORDER, t$31.FLEX_GROW, t$31.FLEX_SHRINK, t$31.FLEX_BASIS, t$31.LIST_STYLE, t$31.LIST_STYLE_TYPE, t$31.LIST_STYLE_POSITION, t$31.LIST_STYLE_IMAGE, t$31.BACKGROUND_COLOR, t$31.BACKGROUND_IMAGE, t$31.BACKGROUND_POSITION, t$31.BACKGROUND_SIZE, t$31.BACKGROUND_CLIP, t$31.BACKGROUND_ORIGIN, t$31.BACKGROUND_REPEAT, t$31.BACKGROUND_ATTACHMENT, t$31.BACKGROUND_BLEND_MODE, t$31.MASK_IMAGE, t$31.MASK_SIZE, t$31.MASK_POSITION, t$31.MASK_REPEAT, t$31.MASK_COMPOSITE, t$31.WEBKIT_MASK_IMAGE, t$31.BORDER_TOP_STYLE, t$31.BORDER_TOP_WIDTH, t$31.BORDER_TOP_COLOR, t$31.BORDER_BOTTOM_STYLE, t$31.BORDER_BOTTOM_WIDTH, t$31.BORDER_BOTTOM_COLOR, t$31.BORDER_LEFT_STYLE, t$31.BORDER_LEFT_WIDTH, t$31.BORDER_LEFT_COLOR, t$31.BORDER_RIGHT_STYLE, t$31.BORDER_RIGHT_WIDTH, t$31.BORDER_RIGHT_COLOR, t$31.BORDER_TOP_LEFT_RADIUS, t$31.BORDER_TOP_RIGHT_RADIUS, t$31.BORDER_BOTTOM_LEFT_RADIUS, t$31.BORDER_BOTTOM_RIGHT_RADIUS, t$31.BORDER_COLLAPSE, t$31.BORDER_SPACING, t$31.TABLE_LAYOUT, t$31.OPACITY, t$31.VISIBILITY, t$31.CURSOR, t$31.TRANSITION, t$31.TRANSITION_PROPERTY, t$31.TRANSITION_DURATION, t$31.TRANSITION_TIMING_FUNCTION, t$31.TRANSITION_DELAY, t$31.TRANSITION_BEHAVIOR, t$31.ANIMATION, t$31.ANIMATION_NAME, t$31.ANIMATION_DURATION, t$31.ANIMATION_TIMING_FUNCTION, t$31.ANIMATION_DELAY, t$31.ANIMATION_ITERATION_COUNT, t$31.ANIMATION_DIRECTION, t$31.ANIMATION_FILL_MODE, t$31.ANIMATION_PLAY_STATE, t$31.ANIMATION_TIMELINE, t$31.ANIMATION_RANGE, t$31.BOX_SHADOW, t$31.FILTER, t$31.BACKDROP_FILTER, t$31.MIX_BLEND_MODE, t$31.ISOLATION, t$31.CLIP_PATH, t$31.TRANSFORM, t$31.TRANSFORM_ORIGIN, t$31.TRANSLATE, t$31.ROTATE, t$31.SCALE, t$31.TRANSFORM_STYLE, t$31.PERSPECTIVE, t$31.PERSPECTIVE_ORIGIN, t$31.BACKFACE_VISIBILITY, t$31.WILL_CHANGE, t$31.OUTLINE_WIDTH, t$31.OUTLINE_STYLE, t$31.OUTLINE_COLOR, t$31.OUTLINE_OFFSET, t$31.POINTER_EVENTS, t$31.USER_SELECT, t$31.TOUCH_ACTION, t$31.RESIZE, t$31.APPEARANCE, t$31.SCROLL_BEHAVIOR, t$31.OVERSCROLL_BEHAVIOR, t$31.SCROLL_SNAP_TYPE, t$31.SCROLL_SNAP_ALIGN, t$31.SCROLL_SNAP_STOP, t$31.SCROLL_PADDING_TOP, t$31.SCROLL_MARGIN_TOP, t$31.ACCENT_COLOR, t$31.CARET_COLOR, t$31.COLOR_SCHEME, t$31.POSITION, t$31.FLOAT, t$31.CLEAR, t$31.Z_INDEX, t$31.TOP, t$31.BOTTOM, t$31.LEFT, t$31.RIGHT, t$31.BOX_SIZING, t$31.ASPECT_RATIO, t$31.WIDTH, t$31.HEIGHT, t$31.MIN_WIDTH, t$31.MIN_HEIGHT, t$31.MAX_WIDTH, t$31.MAX_HEIGHT, t$31.OVERFLOW, t$31.OVERFLOW_X, t$31.OVERFLOW_Y, t$31.SCROLLBAR_WIDTH, t$31.SCROLLBAR_COLOR, t$31.CONTAINER_TYPE, t$31.CONTENT, t$31.CONTAINER_NAME, t$31.OBJECT_FIT, t$31.OBJECT_POSITION, t$31.COLUMN_WIDTH, t$31.COLUMN_COUNT, t$31.MARGIN_TOP, t$31.MARGIN_BOTTOM, t$31.MARGIN_LEFT, t$31.MARGIN_RIGHT, t$31.PADDING_TOP, t$31.PADDING_BOTTOM, t$31.PADDING_LEFT, t$31.PADDING_RIGHT, t$31.FONT_FAMILY, t$31.FONT_WEIGHT, t$31.FONT_SIZE, t$31.LINE_HEIGHT, t$31.COLOR, t$31.TEXT_ALIGN, t$31.FONT_STYLE, t$31.FONT_VARIANT, t$31.FONT_VARIANT_NUMERIC, t$31.FONT_FEATURE_SETTINGS, t$31.TEXT_DECORATION, t$31.TEXT_DECORATION_LINE, t$31.TEXT_DECORATION_COLOR, t$31.TEXT_DECORATION_STYLE, t$31.TEXT_DECORATION_THICKNESS, t$31.TEXT_UNDERLINE_OFFSET, t$31.LETTER_SPACING, t$31.WORD_SPACING, t$31.TEXT_INDENT, t$31.TEXT_TRANSFORM, t$31.DIRECTION, t$31.WRITING_MODE, t$31.TEXT_ORIENTATION, t$31.WHITE_SPACE, t$31.TEXT_WRAP, t$31.WORD_BREAK, t$31.OVERFLOW_WRAP, t$31.HYPHENS, t$31.VERTICAL_ALIGN, t$31.TEXT_OVERFLOW, t$31.TEXT_SHADOW, t$31.LINE_CLAMP, t$31.WEBKIT_LINE_CLAMP, t$31.WEBKIT_BOX_ORIENT, t$31.WEBKIT_TEXT_FILL_COLOR, t$31.WEBKIT_BACKGROUND_CLIP, t$31.BOX_DECORATION_BREAK, t$31.WEBKIT_BOX_DECORATION_BREAK, t$31.FILL, t$31.STROKE, t$31.STROKE_WIDTH;
|
|
5868
5898
|
//#endregion
|
|
5869
5899
|
//#region ../sdk-shared/dist/schema/schemaConstants.mjs
|
|
5870
|
-
var t$
|
|
5871
|
-
var n$
|
|
5872
|
-
var r$
|
|
5900
|
+
var t$30 = /var\(\s*--([a-zA-Z0-9_-]+)\s*\)|\{\{\s*([a-zA-Z0-9_-]+)\s*\}\}/;
|
|
5901
|
+
var n$24 = "props";
|
|
5902
|
+
var r$23 = {
|
|
5873
5903
|
schema: {
|
|
5874
5904
|
definition: {
|
|
5875
5905
|
name: "",
|
|
@@ -5905,7 +5935,7 @@ var r$22 = {
|
|
|
5905
5935
|
*/
|
|
5906
5936
|
var GLOBAL_SOURCES = e$39;
|
|
5907
5937
|
/** What an element inside a component can read besides its own tree: the globals, and what its instance hands in. */
|
|
5908
|
-
var COMPONENT_SOURCES = [...GLOBAL_SOURCES, n$
|
|
5938
|
+
var COMPONENT_SOURCES = [...GLOBAL_SOURCES, n$24];
|
|
5909
5939
|
/**
|
|
5910
5940
|
* Turns what an author wrote into the name the runtime resolves.
|
|
5911
5941
|
*
|
|
@@ -5924,7 +5954,7 @@ var resolveSource = (source, index, where, globals = GLOBAL_SOURCES) => {
|
|
|
5924
5954
|
if (globals.includes(head)) return source;
|
|
5925
5955
|
const prefix = index.get(head);
|
|
5926
5956
|
if (!prefix) {
|
|
5927
|
-
const inComponent = globals.includes(n$
|
|
5957
|
+
const inComponent = globals.includes(n$24);
|
|
5928
5958
|
throw new AuthoringError("binding-source-unknown", `${where} binds to "${source}", but nothing ${inComponent ? "in this component" : "in this space"} answers to "${head}"${didYouMean(head, [...index.keys(), ...globals]) || "."} A source names an element by its id, or one of the globals: ${globals.join(", ")}.${inComponent ? " A component is closed: what it needs from where it is placed comes in as a prop." : ""}`);
|
|
5929
5959
|
}
|
|
5930
5960
|
return field ? `${prefix}_${head}.${field}` : `${prefix}_${head}`;
|
|
@@ -5935,6 +5965,11 @@ var resolveSource = (source, index, where, globals = GLOBAL_SOURCES) => {
|
|
|
5935
5965
|
if (head.slice(0, separator) !== expected) throw new AuthoringError("binding-source-unknown", `${where} binds to "${source}", but "${ref}" publishes its source as "${expected}_${ref}". Name the element alone and the prefix is filled in.`);
|
|
5936
5966
|
return source;
|
|
5937
5967
|
};
|
|
5968
|
+
/**
|
|
5969
|
+
* The attribute a binding writes, from where it lands: `offlineData.schema` writes part of `offlineData` — the runtime
|
|
5970
|
+
* sets the path — so it is `offlineData` an element has to read.
|
|
5971
|
+
*/
|
|
5972
|
+
var boundAttribute = (to) => to.split(".", 1)[0];
|
|
5938
5973
|
/** Both binding forms as one list. The map form targets attributes, which is what nearly every binding does. */
|
|
5939
5974
|
var toBindingSpecs = (bind) => Array.isArray(bind) ? bind : Object.entries(bind).map(([to, source]) => ({
|
|
5940
5975
|
to,
|
|
@@ -6090,7 +6125,7 @@ var activeOn = (cls, pages, options = {}) => {
|
|
|
6090
6125
|
* one only has to be one of them.
|
|
6091
6126
|
*/
|
|
6092
6127
|
var conditionSource = (template) => {
|
|
6093
|
-
const roots = r$
|
|
6128
|
+
const roots = r$25(template);
|
|
6094
6129
|
const global = roots.find((root) => GLOBAL_SOURCES.includes(root));
|
|
6095
6130
|
if (global) return global;
|
|
6096
6131
|
const element = roots.find((root) => root.includes("_"));
|
|
@@ -6374,7 +6409,7 @@ var callFactory = (type, declaration, first, second) => {
|
|
|
6374
6409
|
* the caller says they are, and nothing is claimed that is not known.
|
|
6375
6410
|
*/
|
|
6376
6411
|
var defineElement = (declaration) => (first, second) => callFactory(declaration.type, declaration, first, second);
|
|
6377
|
-
var declarationsByType = new Map(Object.values(
|
|
6412
|
+
var declarationsByType = new Map(Object.values(V).map((declaration) => [declaration.type, declaration]));
|
|
6378
6413
|
/**
|
|
6379
6414
|
* The attributes an element of this type starts with — what a factory merges under the author's own.
|
|
6380
6415
|
*
|
|
@@ -6455,6 +6490,7 @@ var elements_exports = /* @__PURE__ */ __exportAll({
|
|
|
6455
6490
|
nodeHtml: () => nodeHtml,
|
|
6456
6491
|
pagination: () => pagination,
|
|
6457
6492
|
paragraph: () => paragraph,
|
|
6493
|
+
plitziSdk: () => plitziSdk,
|
|
6458
6494
|
reference: () => reference,
|
|
6459
6495
|
richText: () => richText,
|
|
6460
6496
|
svg: () => svg,
|
|
@@ -6480,30 +6516,30 @@ var elements_exports = /* @__PURE__ */ __exportAll({
|
|
|
6480
6516
|
* appear in real documents, and their components are attached to their parent rather than exported on their own,
|
|
6481
6517
|
* which is why their declarations had to be written before they could be authored at all.
|
|
6482
6518
|
*/
|
|
6483
|
-
var apiContainer = defineElement(
|
|
6484
|
-
var blockHtml = defineElement(
|
|
6485
|
-
var blockJsx = defineElement(
|
|
6486
|
-
var button$1 = defineElement(
|
|
6519
|
+
var apiContainer = defineElement(V.ApiContainer);
|
|
6520
|
+
var blockHtml = defineElement(V.BlockHtml);
|
|
6521
|
+
var blockJsx = defineElement(V.BlockJsx);
|
|
6522
|
+
var button$1 = defineElement(V.Button);
|
|
6487
6523
|
/**
|
|
6488
6524
|
* A carousel's `items` may name the source its slides come from, as a list's may: `carousel({ id: 'hero', items:
|
|
6489
6525
|
* 'site.data.slides', row: r => … })` writes the slide into a `carouselTrack`, and its `children` are the controls.
|
|
6490
6526
|
*/
|
|
6491
|
-
var carousel = defineElement(
|
|
6492
|
-
var carouselTrack = defineElement(
|
|
6493
|
-
var channel = defineElement(
|
|
6494
|
-
var container = defineElement(
|
|
6495
|
-
var custom$1 = defineElement(
|
|
6496
|
-
var dialogContainer = defineElement(
|
|
6497
|
-
var dropdown = defineElement(
|
|
6498
|
-
var dropdownPopup = defineElement(
|
|
6499
|
-
var embed = defineElement(
|
|
6500
|
-
var fontAwesome = defineElement(
|
|
6501
|
-
var form = defineElement(
|
|
6502
|
-
var formControl = defineElement(
|
|
6503
|
-
var heading = defineElement(
|
|
6504
|
-
var image = defineElement(
|
|
6505
|
-
var link = defineElement(
|
|
6506
|
-
var listFactory = defineElement(
|
|
6527
|
+
var carousel = defineElement(V.Carousel);
|
|
6528
|
+
var carouselTrack = defineElement(V.CarouselTrack);
|
|
6529
|
+
var channel = defineElement(V.Channel);
|
|
6530
|
+
var container = defineElement(V.Container);
|
|
6531
|
+
var custom$1 = defineElement(V.Custom);
|
|
6532
|
+
var dialogContainer = defineElement(V.DialogContainer);
|
|
6533
|
+
var dropdown = defineElement(V.Dropdown);
|
|
6534
|
+
var dropdownPopup = defineElement(V.DropdownPopup);
|
|
6535
|
+
var embed = defineElement(V.Embed);
|
|
6536
|
+
var fontAwesome = defineElement(V.FontAwesome);
|
|
6537
|
+
var form = defineElement(V.Form);
|
|
6538
|
+
var formControl = defineElement(V.FormControl);
|
|
6539
|
+
var heading = defineElement(V.Heading);
|
|
6540
|
+
var image = defineElement(V.Image);
|
|
6541
|
+
var link = defineElement(V.Link);
|
|
6542
|
+
var listFactory = defineElement(V.List);
|
|
6507
6543
|
var isTypedList = (props) => isSourcePath(props.items);
|
|
6508
6544
|
function list$1(first, second) {
|
|
6509
6545
|
if (Array.isArray(first)) return listFactory(first, second);
|
|
@@ -6514,32 +6550,34 @@ function list$1(first, second) {
|
|
|
6514
6550
|
row: typeof row === "function" ? (named) => row(sourceRow(named.source, items)) : row
|
|
6515
6551
|
});
|
|
6516
6552
|
}
|
|
6517
|
-
var listItem = defineElement(
|
|
6518
|
-
var markdown = defineElement(
|
|
6519
|
-
var modalContainer = defineElement(
|
|
6520
|
-
var nodeHtml = defineElement(
|
|
6521
|
-
var pagination = defineElement(
|
|
6522
|
-
var paragraph = defineElement(
|
|
6523
|
-
|
|
6524
|
-
var
|
|
6525
|
-
var
|
|
6526
|
-
var
|
|
6527
|
-
var
|
|
6528
|
-
var
|
|
6529
|
-
var
|
|
6530
|
-
var
|
|
6531
|
-
var
|
|
6532
|
-
var
|
|
6553
|
+
var listItem = defineElement(V.ListItem);
|
|
6554
|
+
var markdown = defineElement(V.Markdown);
|
|
6555
|
+
var modalContainer = defineElement(V.ModalContainer);
|
|
6556
|
+
var nodeHtml = defineElement(V.NodeHtml);
|
|
6557
|
+
var pagination = defineElement(V.Pagination);
|
|
6558
|
+
var paragraph = defineElement(V.Paragraph);
|
|
6559
|
+
/** Another space drawn inside this one, as a widget: `plitziSdk({ id: 'card', bind: { offlineData: 'view.data' } })`. */
|
|
6560
|
+
var plitziSdk = defineElement(V.PlitziSdk);
|
|
6561
|
+
var reference = defineElement(V.Reference);
|
|
6562
|
+
var richText = defineElement(V.RichText);
|
|
6563
|
+
var svg = defineElement(V.Svg);
|
|
6564
|
+
var tabContainer = defineElement(V.TabContainer);
|
|
6565
|
+
var tabContainerBody = defineElement(V.TabContainerBody);
|
|
6566
|
+
var tabContainerHeader = defineElement(V.TabContainerHeader);
|
|
6567
|
+
var tabContainerItem = defineElement(V.TabContainerItem);
|
|
6568
|
+
var text$1 = defineElement(V.Text);
|
|
6569
|
+
var themeToggle = defineElement(V.ThemeToggle);
|
|
6570
|
+
var video = defineElement(V.Video);
|
|
6533
6571
|
//#endregion
|
|
6534
6572
|
//#region ../sdk-schema/dist/helpers/elementId.mjs
|
|
6535
6573
|
var e$34 = /^[A-Za-z](?:[A-Za-z0-9_-]*[A-Za-z0-9_])?$/;
|
|
6536
|
-
var t$
|
|
6537
|
-
var r$
|
|
6538
|
-
var i$
|
|
6574
|
+
var t$29 = (t) => e$34.test(t);
|
|
6575
|
+
var r$22 = (e) => new Set(Object.keys(e));
|
|
6576
|
+
var i$22 = (e, n, r) => t$29(n) ? e[n] && n !== r ? `"${n}" is already used by another element here` : null : `"${n}" is not a valid name: start with a letter, then letters, numbers, hyphens and underscores`;
|
|
6539
6577
|
var a$17 = (e, t) => {
|
|
6540
6578
|
let n = /* @__PURE__ */ new Set();
|
|
6541
6579
|
for (let r of t) {
|
|
6542
|
-
if (n.has(r.id) || i$
|
|
6580
|
+
if (n.has(r.id) || i$22(e, r.id)) return !1;
|
|
6543
6581
|
n.add(r.id);
|
|
6544
6582
|
}
|
|
6545
6583
|
return !0;
|
|
@@ -6704,6 +6742,7 @@ var PAGE_SPEC_KEYS = [
|
|
|
6704
6742
|
"seoTitle",
|
|
6705
6743
|
"seoDescription",
|
|
6706
6744
|
"notFound",
|
|
6745
|
+
"documentScroll",
|
|
6707
6746
|
"accessLevel",
|
|
6708
6747
|
"unauthorizedRedirect",
|
|
6709
6748
|
"folder",
|
|
@@ -6822,7 +6861,7 @@ function assertKnownKeys(value, keys, where, hint = "") {
|
|
|
6822
6861
|
/** Refuses an id nothing can name: empty, or with characters a template or a selector cannot carry. */
|
|
6823
6862
|
var assertId = (id, where) => {
|
|
6824
6863
|
if (id === void 0) return;
|
|
6825
|
-
if (typeof id !== "string" || !t$
|
|
6864
|
+
if (typeof id !== "string" || !t$29(id)) throw new AuthoringError("id-invalid", `${where}: the id ${JSON.stringify(id)} is not one a binding, a template or a test can name. Use a letter first, then letters, digits, "-" and "_" — like "hero-title".`);
|
|
6826
6865
|
};
|
|
6827
6866
|
/**
|
|
6828
6867
|
* A binding's own shape: the two fields it cannot be written without, and no field it ignores. What the binding
|
|
@@ -6853,20 +6892,20 @@ var paramIssue = (params, spec, where) => {
|
|
|
6853
6892
|
const suggestion = typeof value === "string" && invalid.options ? didYouMean(value, invalid.options) : "";
|
|
6854
6893
|
return invalid.options ? `${where}: "${invalid.key}" is ${JSON.stringify(value)}${suggestion || "."} It is one of ${invalid.options.map((option) => `'${option}'`).join(", ")}.` : `${where}: "${invalid.key}" is ${JSON.stringify(value)} (${invalid.got}), and it takes a ${invalid.expected}.`;
|
|
6855
6894
|
}
|
|
6856
|
-
const missing = r$
|
|
6895
|
+
const missing = r$37(provided, effective, declared).at(0);
|
|
6857
6896
|
return missing === void 0 ? void 0 : `${where} needs "${missing}": ${declared[missing].description}`;
|
|
6858
6897
|
};
|
|
6859
6898
|
//#endregion
|
|
6860
6899
|
//#region ../sdk-schema/dist/helpers/elementTree.mjs
|
|
6861
6900
|
var e$32 = (e, t) => t && Object.hasOwn(e, t) ? e[t] : void 0;
|
|
6862
|
-
var t$
|
|
6901
|
+
var t$28 = (t, n) => {
|
|
6863
6902
|
let r = [], i = /* @__PURE__ */ new Set([n]);
|
|
6864
6903
|
for (let a = e$32(t, e$32(t, n)?.definition.parentId); a && !i.has(a.id);) i.add(a.id), r.push(a.id), a = e$32(t, a.definition.parentId);
|
|
6865
6904
|
return r;
|
|
6866
6905
|
};
|
|
6867
|
-
var n$
|
|
6906
|
+
var n$23 = (n, r) => {
|
|
6868
6907
|
let i = [], a = /* @__PURE__ */ new Set([r]), o = (s) => {
|
|
6869
|
-
for (let c of [s, ...t$
|
|
6908
|
+
for (let c of [s, ...t$28(n, s)]) {
|
|
6870
6909
|
let t = e$32(n, c);
|
|
6871
6910
|
if (c !== s || s !== r) {
|
|
6872
6911
|
if (a.has(c)) continue;
|
|
@@ -6878,7 +6917,7 @@ var n$22 = (n, r) => {
|
|
|
6878
6917
|
};
|
|
6879
6918
|
return o(r), i;
|
|
6880
6919
|
};
|
|
6881
|
-
var r$
|
|
6920
|
+
var r$21 = (t, n) => {
|
|
6882
6921
|
let r = [], i = /* @__PURE__ */ new Set([n]), a = (n) => {
|
|
6883
6922
|
for (let o of e$32(t, n)?.definition.items ?? []) !i.has(o) && e$32(t, o) && (i.add(o), r.push(o), a(o));
|
|
6884
6923
|
};
|
|
@@ -6891,7 +6930,7 @@ var e$31 = {
|
|
|
6891
6930
|
tablet: 768,
|
|
6892
6931
|
mobile: 0
|
|
6893
6932
|
};
|
|
6894
|
-
var t$
|
|
6933
|
+
var t$27 = (t) => e$31[t] === 0 ? "0" : `${String(e$31[t] / 16)}rem`;
|
|
6895
6934
|
//#endregion
|
|
6896
6935
|
//#region ../sdk-shared/dist/style/displayModes.mjs
|
|
6897
6936
|
var e$30 = [
|
|
@@ -6899,10 +6938,10 @@ var e$30 = [
|
|
|
6899
6938
|
"tablet",
|
|
6900
6939
|
"mobile"
|
|
6901
6940
|
];
|
|
6902
|
-
var t$
|
|
6941
|
+
var t$26 = (t) => e$30.some((e) => e === t);
|
|
6903
6942
|
//#endregion
|
|
6904
6943
|
//#region ../sdk-shared/dist/style/fonts.mjs
|
|
6905
|
-
var i$
|
|
6944
|
+
var i$21 = (e) => {
|
|
6906
6945
|
try {
|
|
6907
6946
|
let t = new URL(e);
|
|
6908
6947
|
return t.protocol === "https:" && !t.username && !t.password;
|
|
@@ -6912,20 +6951,20 @@ var i$20 = (e) => {
|
|
|
6912
6951
|
};
|
|
6913
6952
|
//#endregion
|
|
6914
6953
|
//#region ../sdk-shared/dist/style/fontValidation.mjs
|
|
6915
|
-
var n$
|
|
6954
|
+
var n$22 = /* @__PURE__ */ new Set([
|
|
6916
6955
|
"system",
|
|
6917
6956
|
"google",
|
|
6918
6957
|
"remote",
|
|
6919
6958
|
"hosted"
|
|
6920
6959
|
]);
|
|
6921
|
-
var r$
|
|
6960
|
+
var r$20 = /* @__PURE__ */ new Set([
|
|
6922
6961
|
"auto",
|
|
6923
6962
|
"block",
|
|
6924
6963
|
"swap",
|
|
6925
6964
|
"fallback",
|
|
6926
6965
|
"optional"
|
|
6927
6966
|
]);
|
|
6928
|
-
var i$
|
|
6967
|
+
var i$20 = /* @__PURE__ */ new Set(["woff2", "woff"]);
|
|
6929
6968
|
var a$16 = 100;
|
|
6930
6969
|
var o$18 = (e) => {
|
|
6931
6970
|
for (let t = 0; t < e.length; t += 1) {
|
|
@@ -6960,7 +6999,7 @@ var f$7 = (t, n) => {
|
|
|
6960
6999
|
let { weight: r, style: a, format: o, unicodeRange: s } = t;
|
|
6961
7000
|
if (typeof r != "number" || !Number.isInteger(r) || r < 1 || r > 1e3) return c$13(`font.files[${n}].weight must be a whole number between 1 and 1000`);
|
|
6962
7001
|
if (a !== "normal" && a !== "italic") return c$13(`font.files[${n}].style must be "normal" or "italic"`);
|
|
6963
|
-
if (typeof o != "string" || !i$
|
|
7002
|
+
if (typeof o != "string" || !i$20.has(o)) return c$13(`font.files[${n}].format must be "woff2" or "woff"`);
|
|
6964
7003
|
let l = {
|
|
6965
7004
|
weight: r,
|
|
6966
7005
|
style: a,
|
|
@@ -6977,9 +7016,9 @@ var m$5 = (e) => !Array.isArray(e) || e.length === 0 ? c$13("font.files must be
|
|
|
6977
7016
|
var h$2 = (i) => {
|
|
6978
7017
|
if (!e$33(i)) return c$13("a font must be an object");
|
|
6979
7018
|
let { source: a, fallback: o, display: s, preload: h } = i;
|
|
6980
|
-
if (typeof a != "string" || !n$
|
|
7019
|
+
if (typeof a != "string" || !n$22.has(a)) return c$13("font.source must be one of: system, google, remote, hosted");
|
|
6981
7020
|
if (typeof o != "string" || !o.trim()) return c$13("font.fallback is required: it is what renders until the face arrives");
|
|
6982
|
-
if (s !== void 0 && (typeof s != "string" || !r$
|
|
7021
|
+
if (s !== void 0 && (typeof s != "string" || !r$20.has(s))) return c$13("font.display must be one of: auto, block, swap, fallback, optional");
|
|
6983
7022
|
if (h !== void 0 && typeof h != "boolean") return c$13("font.preload must be a boolean");
|
|
6984
7023
|
let g = {
|
|
6985
7024
|
family: l$9(i.family),
|
|
@@ -7008,12 +7047,12 @@ var h$2 = (i) => {
|
|
|
7008
7047
|
source: "remote",
|
|
7009
7048
|
files: m$5(n).map((e, n) => {
|
|
7010
7049
|
let r = f$7(e, n), { url: i } = e;
|
|
7011
|
-
return typeof i != "string" || !i$
|
|
7050
|
+
return typeof i != "string" || !i$21(i) ? c$13(`font.files[${n}].url must be an https URL with no credentials in it`) : {
|
|
7012
7051
|
...r,
|
|
7013
7052
|
url: i
|
|
7014
7053
|
};
|
|
7015
7054
|
})
|
|
7016
|
-
} : typeof e != "string" || !i$
|
|
7055
|
+
} : typeof e != "string" || !i$21(e) ? c$13("font.stylesheet must be an https URL with no credentials in it") : {
|
|
7017
7056
|
...g,
|
|
7018
7057
|
source: "remote",
|
|
7019
7058
|
stylesheet: e
|
|
@@ -7033,18 +7072,18 @@ var h$2 = (i) => {
|
|
|
7033
7072
|
var e$29 = /* @__PURE__ */ function(e) {
|
|
7034
7073
|
return e.COLOR = "color", e.SPACING = "spacing", e.SHADOW = "shadow", e.CUSTOM = "custom", e;
|
|
7035
7074
|
}({});
|
|
7036
|
-
var t$
|
|
7037
|
-
var n$
|
|
7075
|
+
var t$25 = Object.values(e$29);
|
|
7076
|
+
var n$21 = (e) => typeof e == "string" && t$25.includes(e);
|
|
7038
7077
|
//#endregion
|
|
7039
7078
|
//#region ../sdk-shared/dist/style/styleConditions.mjs
|
|
7040
7079
|
var e$28 = {
|
|
7041
7080
|
"motion-reduce": "@media (prefers-reduced-motion: reduce)",
|
|
7042
7081
|
"motion-safe": "@media (prefers-reduced-motion: no-preference)"
|
|
7043
7082
|
};
|
|
7044
|
-
var t$
|
|
7045
|
-
var r$
|
|
7046
|
-
var i$
|
|
7047
|
-
var a$15 = String.raw`\((?:min|max)-width:\s*${i$
|
|
7083
|
+
var t$24 = Object.keys(e$28);
|
|
7084
|
+
var r$19 = (t) => Object.hasOwn(e$28, t);
|
|
7085
|
+
var i$19 = String.raw`\d+(?:\.\d+)?(?:px|rem|em|ch)`;
|
|
7086
|
+
var a$15 = String.raw`\((?:min|max)-width:\s*${i$19}\)`;
|
|
7048
7087
|
var o$17 = new RegExp(String.raw`^container(?:\s+(?<name>-?[_a-zA-Z][\w-]*))?\s+(?<query>${a$15}(?:\s+and\s+${a$15})?)$`);
|
|
7049
7088
|
var s$15 = (e) => {
|
|
7050
7089
|
let t = o$17.exec(e.trim());
|
|
@@ -7054,12 +7093,12 @@ var s$15 = (e) => {
|
|
|
7054
7093
|
};
|
|
7055
7094
|
};
|
|
7056
7095
|
var c$12 = (e) => {
|
|
7057
|
-
if (r$
|
|
7096
|
+
if (r$19(e)) return e;
|
|
7058
7097
|
let t = s$15(e);
|
|
7059
7098
|
if (t) return t.name ? `container ${t.name} ${t.query}` : `container ${t.query}`;
|
|
7060
7099
|
};
|
|
7061
7100
|
var u$9 = (t) => {
|
|
7062
|
-
if (r$
|
|
7101
|
+
if (r$19(t)) return e$28[t];
|
|
7063
7102
|
let n = s$15(t);
|
|
7064
7103
|
if (n) return n.name ? `@container ${n.name} ${n.query}` : `@container ${n.query}`;
|
|
7065
7104
|
};
|
|
@@ -7080,7 +7119,7 @@ var e$27 = [
|
|
|
7080
7119
|
"first-line",
|
|
7081
7120
|
"selection"
|
|
7082
7121
|
];
|
|
7083
|
-
var t$
|
|
7122
|
+
var t$23 = {
|
|
7084
7123
|
before: "::before",
|
|
7085
7124
|
after: "::after",
|
|
7086
7125
|
marker: "::marker",
|
|
@@ -7089,9 +7128,9 @@ var t$22 = {
|
|
|
7089
7128
|
"first-line": "::first-line",
|
|
7090
7129
|
selection: "::selection"
|
|
7091
7130
|
};
|
|
7092
|
-
var n$
|
|
7093
|
-
var r$
|
|
7094
|
-
var i$
|
|
7131
|
+
var n$20 = (e) => Object.hasOwn(t$23, e);
|
|
7132
|
+
var r$18 = (e) => `::${e}`;
|
|
7133
|
+
var i$18 = [
|
|
7095
7134
|
"before",
|
|
7096
7135
|
"after",
|
|
7097
7136
|
"marker"
|
|
@@ -7210,8 +7249,8 @@ var e$26 = [
|
|
|
7210
7249
|
"odd",
|
|
7211
7250
|
"even"
|
|
7212
7251
|
];
|
|
7213
|
-
var t$
|
|
7214
|
-
var r$
|
|
7252
|
+
var t$22 = "plitzi-component--hidden";
|
|
7253
|
+
var r$17 = {
|
|
7215
7254
|
odd: 0,
|
|
7216
7255
|
even: 1,
|
|
7217
7256
|
first: 2,
|
|
@@ -7228,19 +7267,19 @@ var r$16 = {
|
|
|
7228
7267
|
disabled: 13,
|
|
7229
7268
|
hidden: 14
|
|
7230
7269
|
};
|
|
7231
|
-
var i$
|
|
7232
|
-
var a$13 = (t) => i$
|
|
7270
|
+
var i$17 = (e) => Object.hasOwn(r$17, e);
|
|
7271
|
+
var a$13 = (t) => i$17(t) ? r$17[t] : e$26.length;
|
|
7233
7272
|
var o$15 = (e) => Object.entries(e).sort(([e], [t]) => a$13(e) - a$13(t));
|
|
7234
7273
|
var l$7 = {
|
|
7235
7274
|
current: ":is([aria-current]:not([aria-current=\"false\"]),[aria-pressed=\"true\"],[aria-selected=\"true\"],[role=\"tabpanel\"]:not([hidden]))",
|
|
7236
7275
|
expanded: "[aria-expanded=\"true\"]",
|
|
7237
|
-
hidden: `.${t$
|
|
7276
|
+
hidden: `.${t$22}`,
|
|
7238
7277
|
first: ":first-child",
|
|
7239
7278
|
last: ":last-child",
|
|
7240
7279
|
odd: ":nth-child(odd)",
|
|
7241
7280
|
even: ":nth-child(even)"
|
|
7242
7281
|
};
|
|
7243
|
-
var u$7 = (e) => (i$
|
|
7282
|
+
var u$7 = (e) => (i$17(e) ? l$7[e] : void 0) ?? `:${e}`;
|
|
7244
7283
|
var d$6 = (e) => e === "hidden";
|
|
7245
7284
|
var p$7 = (e) => e === ">";
|
|
7246
7285
|
//#endregion
|
|
@@ -7252,7 +7291,7 @@ function e$25(e) {
|
|
|
7252
7291
|
}
|
|
7253
7292
|
return null;
|
|
7254
7293
|
}
|
|
7255
|
-
function t$
|
|
7294
|
+
function t$21(t, n) {
|
|
7256
7295
|
if (!t || t.startsWith(".") || t.endsWith(".") || /[^a-zA-Z0-9_.[\]-]/.test(t) || n && (/\.\.|(\[\])/g.test(t) || (t.match(/\[/g) || []).length !== (t.match(/\]/g) || []).length || /\][^.[]/.test(t))) return [];
|
|
7257
7296
|
let r = [], i = /([^.[\]]+)|\[(\d+)\]/g, a;
|
|
7258
7297
|
for (; a = i.exec(t);) if (a[1]) {
|
|
@@ -7267,7 +7306,7 @@ function t$20(t, n) {
|
|
|
7267
7306
|
}
|
|
7268
7307
|
return r.length ? r : [];
|
|
7269
7308
|
}
|
|
7270
|
-
function n$
|
|
7309
|
+
function n$19(t, n) {
|
|
7271
7310
|
if (!Array.isArray(t)) return [];
|
|
7272
7311
|
let r = [];
|
|
7273
7312
|
for (let i of t) {
|
|
@@ -7277,14 +7316,14 @@ function n$18(t, n) {
|
|
|
7277
7316
|
}
|
|
7278
7317
|
return r;
|
|
7279
7318
|
}
|
|
7280
|
-
function r$
|
|
7281
|
-
return e ? typeof e == "string" ? t$
|
|
7319
|
+
function r$16(e, r = !0) {
|
|
7320
|
+
return e ? typeof e == "string" ? t$21(e, r) : Array.isArray(e) ? n$19(e, r) : [] : [];
|
|
7282
7321
|
}
|
|
7283
7322
|
//#endregion
|
|
7284
7323
|
//#region ../../node_modules/@plitzi/plitzi-ui/dist/helpers/lodash/get.js
|
|
7285
|
-
function t$
|
|
7324
|
+
function t$20(t, n, r) {
|
|
7286
7325
|
if (t == null || !n) return r;
|
|
7287
|
-
let i = r$
|
|
7326
|
+
let i = r$16(n);
|
|
7288
7327
|
if (!i.length) return r;
|
|
7289
7328
|
let a = t;
|
|
7290
7329
|
for (let e of i) {
|
|
@@ -7298,8 +7337,8 @@ function t$19(t, n, r) {
|
|
|
7298
7337
|
}
|
|
7299
7338
|
//#endregion
|
|
7300
7339
|
//#region ../../node_modules/@plitzi/plitzi-ui/dist/helpers/lodash/set.js
|
|
7301
|
-
function t$
|
|
7302
|
-
let i = r$
|
|
7340
|
+
function t$19(t, n, r) {
|
|
7341
|
+
let i = r$16(n);
|
|
7303
7342
|
if (!i.length) return t;
|
|
7304
7343
|
let a = t;
|
|
7305
7344
|
for (let e = 0; e < i.length - 1; e++) {
|
|
@@ -7317,17 +7356,17 @@ function t$18(t, n, r) {
|
|
|
7317
7356
|
}
|
|
7318
7357
|
//#endregion
|
|
7319
7358
|
//#region ../../node_modules/@plitzi/plitzi-ui/dist/helpers/lodash/pick.js
|
|
7320
|
-
function n$
|
|
7359
|
+
function n$18(n, r) {
|
|
7321
7360
|
let i = {}, a = Array.isArray(r) ? r : [r];
|
|
7322
7361
|
for (let r of a) {
|
|
7323
|
-
let a = t$
|
|
7324
|
-
a !== void 0 && t$
|
|
7362
|
+
let a = t$20(n, r);
|
|
7363
|
+
a !== void 0 && t$19(i, r, a);
|
|
7325
7364
|
}
|
|
7326
7365
|
return i;
|
|
7327
7366
|
}
|
|
7328
7367
|
//#endregion
|
|
7329
7368
|
//#region ../sdk-style/dist/helpers/calculateInheriting.mjs
|
|
7330
|
-
var r$
|
|
7369
|
+
var r$15 = (e, t) => {
|
|
7331
7370
|
let n = [], r = t;
|
|
7332
7371
|
for (; r;) {
|
|
7333
7372
|
n.push(r);
|
|
@@ -7336,7 +7375,7 @@ var r$14 = (e, t) => {
|
|
|
7336
7375
|
}
|
|
7337
7376
|
return n;
|
|
7338
7377
|
};
|
|
7339
|
-
var i$
|
|
7378
|
+
var i$16 = (e, t, n, r, i) => {
|
|
7340
7379
|
let a = [], o = /* @__PURE__ */ new Set(), { definition: { styleSelectors: s, type: c }, attributes: { subType: l } } = e, u = (s[r] || "").split(" ").filter(Boolean);
|
|
7341
7380
|
for (let e of [...u, ...i]) {
|
|
7342
7381
|
if (o.has(e)) continue;
|
|
@@ -7357,10 +7396,10 @@ var i$15 = (e, t, n, r, i) => {
|
|
|
7357
7396
|
return a;
|
|
7358
7397
|
};
|
|
7359
7398
|
var a$12 = (e, n, r, i) => {
|
|
7360
|
-
let a = t$
|
|
7399
|
+
let a = t$20(i, `${e}.defaultStyle`, void 0);
|
|
7361
7400
|
if (a) return a.subTypes && !n && (n = Object.keys(a.subTypes)[0]), n && a.subTypes?.[n] && (a = a.subTypes[n]), {
|
|
7362
7401
|
name: "defaultStyle",
|
|
7363
|
-
attributes: { [r]: t$
|
|
7402
|
+
attributes: { [r]: t$20(a, `style.${r}`, {}) },
|
|
7364
7403
|
componentType: e,
|
|
7365
7404
|
isParent: !1,
|
|
7366
7405
|
isAncestor: !1,
|
|
@@ -7419,7 +7458,7 @@ var c$9 = (t, o, c, l, u = {}, d = {}) => {
|
|
|
7419
7458
|
tree: [],
|
|
7420
7459
|
style: {},
|
|
7421
7460
|
parentStyle: {}
|
|
7422
|
-
}, w = t ? r$
|
|
7461
|
+
}, w = t ? r$15(c, t) : [], T = /* @__PURE__ */ new Set();
|
|
7423
7462
|
for (let e of Object.keys(l)) {
|
|
7424
7463
|
let n = l[e];
|
|
7425
7464
|
if (n) {
|
|
@@ -7437,7 +7476,7 @@ var c$9 = (t, o, c, l, u = {}, d = {}) => {
|
|
|
7437
7476
|
continue;
|
|
7438
7477
|
}
|
|
7439
7478
|
if (!t && o) {
|
|
7440
|
-
let t = i$
|
|
7479
|
+
let t = i$16({
|
|
7441
7480
|
definition: {
|
|
7442
7481
|
type: o,
|
|
7443
7482
|
styleSelectors: {},
|
|
@@ -7460,7 +7499,7 @@ var c$9 = (t, o, c, l, u = {}, d = {}) => {
|
|
|
7460
7499
|
continue;
|
|
7461
7500
|
}
|
|
7462
7501
|
for (let r of w) {
|
|
7463
|
-
let s = t?.definition.parentId === r.id, c = r.id !== t?.id, l = i$
|
|
7502
|
+
let s = t?.definition.parentId === r.id, c = r.id !== t?.id, l = i$16(r, r.definition.type === o ? o : void 0, n, p, x);
|
|
7464
7503
|
!y && !c && !m && !h && Object.keys(l).length && (l = l.filter((e) => e.type === "element"));
|
|
7465
7504
|
for (let t of l) (!b.includes(t.name) || c) && C.tree.push({
|
|
7466
7505
|
name: t.name,
|
|
@@ -7484,7 +7523,7 @@ var c$9 = (t, o, c, l, u = {}, d = {}) => {
|
|
|
7484
7523
|
let E = {};
|
|
7485
7524
|
for (let t of C.tree) {
|
|
7486
7525
|
let r = s$12(t, p, S);
|
|
7487
|
-
if (r && Object.keys(r).length && ((t.isAncestor || t.isDefault && t.componentType !== o) && (r = n$
|
|
7526
|
+
if (r && Object.keys(r).length && ((t.isAncestor || t.isDefault && t.componentType !== o) && (r = n$18(r, n$25)), Object.keys(r).length)) for (let e of Object.keys(r)) E[e] || (E[e] = []), E[e].push({
|
|
7488
7527
|
key: t.name,
|
|
7489
7528
|
value: r[e],
|
|
7490
7529
|
displayMode: t.displayMode
|
|
@@ -7514,7 +7553,7 @@ var d$5 = class {
|
|
|
7514
7553
|
this.flat = t, this.variables = r ?? [], this.pages = i ?? [], this.mintId = a ?? c$14, this.takenElsewhere = o ?? (() => !1);
|
|
7515
7554
|
}
|
|
7516
7555
|
nextId = (e, t = () => !1) => {
|
|
7517
|
-
let n = r$
|
|
7556
|
+
let n = r$22(this.flat);
|
|
7518
7557
|
return this.mintId(e, (e) => n.has(e) || this.takenElsewhere(e) || t(e));
|
|
7519
7558
|
};
|
|
7520
7559
|
addElement = (e, n, r = "inside", i = {}) => {
|
|
@@ -7546,15 +7585,15 @@ var d$5 = class {
|
|
|
7546
7585
|
});
|
|
7547
7586
|
};
|
|
7548
7587
|
updateElement = (e) => !e || !this.flat[e.id] ? !1 : (this.flat[e.id] = e, !0);
|
|
7549
|
-
renameElement = (t, n) => this.flat[t] ? t === n ? [] : i$
|
|
7588
|
+
renameElement = (t, n) => this.flat[t] ? t === n ? [] : i$22(this.flat, n) || this.takenElsewhere(n) ? !1 : _$3(this.flat, { [t]: n }, this.pages) : !1;
|
|
7550
7589
|
moveElement = (e, t, n, r = "inside") => {
|
|
7551
7590
|
let i = this.flat[e], a = this.flat[n];
|
|
7552
|
-
if (!i || !a || n === t || t$
|
|
7591
|
+
if (!i || !a || n === t || t$28(this.flat, t).includes(n)) return !1;
|
|
7553
7592
|
let o = this.placement(t, r, [n], n);
|
|
7554
7593
|
return o ? (i.definition.items = (i.definition.items ?? []).filter((e) => e !== n), o.parent.definition.items = o.items, a.definition.parentId = o.parent.id, this.carryRoot(n, o.parent.definition.rootId), !0) : !1;
|
|
7555
7594
|
};
|
|
7556
7595
|
carryRoot = (e, t) => {
|
|
7557
|
-
if (this.flat[e].definition.rootId !== t) for (let n of [e, ...r$
|
|
7596
|
+
if (this.flat[e].definition.rootId !== t) for (let n of [e, ...r$21(this.flat, e)]) this.flat[n].definition.rootId = t;
|
|
7558
7597
|
};
|
|
7559
7598
|
cloneElements = (e, t = "", n = "", s = !1) => {
|
|
7560
7599
|
let c = {
|
|
@@ -7562,7 +7601,7 @@ var d$5 = class {
|
|
|
7562
7601
|
item: void 0
|
|
7563
7602
|
}, l = {}, u = this.flat[e];
|
|
7564
7603
|
if (!u) return c;
|
|
7565
|
-
let d = [e, ...r$
|
|
7604
|
+
let d = [e, ...r$21(this.flat, e)], f = r$22(this.flat);
|
|
7566
7605
|
for (let e of d) {
|
|
7567
7606
|
let t = u$11(e, (e) => f.has(e) || this.takenElsewhere(e));
|
|
7568
7607
|
f.add(t), l[e] = t;
|
|
@@ -7579,7 +7618,7 @@ var d$5 = class {
|
|
|
7579
7618
|
removeElement = (e, t = !1) => {
|
|
7580
7619
|
let n = this.flat[e];
|
|
7581
7620
|
if (!n || n.definition.type === "page" && !t || t && n.attributes.default) return !1;
|
|
7582
|
-
for (let t of r$
|
|
7621
|
+
for (let t of r$21(this.flat, e)) delete this.flat[t];
|
|
7583
7622
|
let r = n.definition.parentId ? this.flat[n.definition.parentId] : void 0;
|
|
7584
7623
|
return r?.definition.items && (r.definition.items = r.definition.items.filter((t) => t !== e)), delete this.flat[e], !0;
|
|
7585
7624
|
};
|
|
@@ -7661,7 +7700,7 @@ var d$5 = class {
|
|
|
7661
7700
|
getElementVariables = (e, t, n = this.flat, r = this.variables) => {
|
|
7662
7701
|
let i = [], a = n[t]?.definition.styleSelectors;
|
|
7663
7702
|
if (!a) return i;
|
|
7664
|
-
let o = new RegExp(t$
|
|
7703
|
+
let o = new RegExp(t$30, "g");
|
|
7665
7704
|
return Object.values(a).filter(Boolean).forEach((t) => {
|
|
7666
7705
|
Object.values(e.platform).forEach((e) => {
|
|
7667
7706
|
let n = e[t];
|
|
@@ -7712,8 +7751,8 @@ var p$6 = (e, t) => Object.hasOwn(e.components, t) ? e.components[t] : void 0;
|
|
|
7712
7751
|
var m$3 = (e, t) => e.definition.type === "reference" && e.attributes.referenceType === "component" && (t === void 0 || e.attributes.referenceId === t);
|
|
7713
7752
|
//#endregion
|
|
7714
7753
|
//#region ../sdk-shared/dist/navigation/routes.mjs
|
|
7715
|
-
var i$
|
|
7716
|
-
var a$11 = (e) => i$
|
|
7754
|
+
var i$15 = (e) => e.replaceAll(/\/+/g, "/");
|
|
7755
|
+
var a$11 = (e) => i$15(e.replace(/{{([a-zA-Z0-9-_:*/]+)}}/gi, ":$1"));
|
|
7717
7756
|
var o$12 = (e, t) => {
|
|
7718
7757
|
if (!t || !e[t]) return "";
|
|
7719
7758
|
let { slug: n, parentId: r } = e[t];
|
|
@@ -7734,8 +7773,8 @@ function s$10(e, t, n, r = !1) {
|
|
|
7734
7773
|
[a$11(`/${c}`)]: n,
|
|
7735
7774
|
[a$11(`/${n}`)]: n
|
|
7736
7775
|
};
|
|
7737
|
-
if (!l && r) return i$
|
|
7738
|
-
if (!t.find((e) => e.id === l)) return r ? i$
|
|
7776
|
+
if (!l && r) return i$15(`/${c}`);
|
|
7777
|
+
if (!t.find((e) => e.id === l)) return r ? i$15(`/${c}`) : {
|
|
7739
7778
|
[a$11(`/${c}`)]: n,
|
|
7740
7779
|
[a$11(`/${n}`)]: n
|
|
7741
7780
|
};
|
|
@@ -7743,7 +7782,7 @@ function s$10(e, t, n, r = !1) {
|
|
|
7743
7782
|
...e,
|
|
7744
7783
|
[t.id]: t
|
|
7745
7784
|
}), {}), l), c].filter(Boolean).join("/");
|
|
7746
|
-
return r ? i$
|
|
7785
|
+
return r ? i$15(`/${d}`) : {
|
|
7747
7786
|
[a$11(`/${d}`)]: n,
|
|
7748
7787
|
[a$11(`/${n}`)]: n
|
|
7749
7788
|
};
|
|
@@ -7883,14 +7922,14 @@ var LintContext = class {
|
|
|
7883
7922
|
}
|
|
7884
7923
|
/** The elements `id` is nested in, as the document stores them — what "inside a form" means. */
|
|
7885
7924
|
ancestors(id) {
|
|
7886
|
-
return new Set(t$
|
|
7925
|
+
return new Set(t$28(this.flat, id));
|
|
7887
7926
|
}
|
|
7888
7927
|
/**
|
|
7889
7928
|
* The elements whose sources `id` can read: everything it renders inside, the layout shells around its page included
|
|
7890
7929
|
* — the walk the runtime makes, so a provider beside the slot in a layout is not in it.
|
|
7891
7930
|
*/
|
|
7892
7931
|
scope(id) {
|
|
7893
|
-
return new Set(n$
|
|
7932
|
+
return new Set(n$23(this.flat, id));
|
|
7894
7933
|
}
|
|
7895
7934
|
/** The route params an element's page declares; a layout renders on every page, so it sees all of them. */
|
|
7896
7935
|
routeParams(id) {
|
|
@@ -7995,20 +8034,21 @@ var withPluginCatalogs = (options) => {
|
|
|
7995
8034
|
})
|
|
7996
8035
|
},
|
|
7997
8036
|
drawsNothingTypes: [...rest.drawsNothingTypes ?? [], ...plugins.filter((declaration) => declaration.drawsNothing === true).flatMap((declaration) => [declaration.type, hostedKey(declaration)])],
|
|
8037
|
+
choosesChildrenTypes: [...rest.choosesChildrenTypes ?? [], ...plugins.filter((declaration) => declaration.choosesChildren === true).flatMap((declaration) => [declaration.type, hostedKey(declaration)])],
|
|
7998
8038
|
leafTypes: [...rest.leafTypes ?? [], ...plugins.filter((declaration) => declaration.content?.definition && !Array.isArray(declaration.content.definition.items)).map((declaration) => declaration.type)]
|
|
7999
8039
|
};
|
|
8000
8040
|
};
|
|
8001
|
-
var n$
|
|
8041
|
+
var n$17 = (e) => {
|
|
8002
8042
|
let t = typeof e == "string" && e.trim() !== "" ? Number(e) : e;
|
|
8003
8043
|
return typeof t == "number" && Number.isInteger(t) && t >= 250 ? t : void 0;
|
|
8004
8044
|
};
|
|
8005
|
-
var t$
|
|
8045
|
+
var t$18 = [
|
|
8006
8046
|
"ctrl",
|
|
8007
8047
|
"alt",
|
|
8008
8048
|
"shift",
|
|
8009
8049
|
"meta"
|
|
8010
8050
|
];
|
|
8011
|
-
var n$
|
|
8051
|
+
var n$16 = {
|
|
8012
8052
|
ctrl: "ctrl",
|
|
8013
8053
|
control: "ctrl",
|
|
8014
8054
|
alt: "alt",
|
|
@@ -8019,7 +8059,7 @@ var n$15 = {
|
|
|
8019
8059
|
command: "meta",
|
|
8020
8060
|
mod: "mod"
|
|
8021
8061
|
};
|
|
8022
|
-
var r$
|
|
8062
|
+
var r$14 = {
|
|
8023
8063
|
esc: "escape",
|
|
8024
8064
|
space: "space",
|
|
8025
8065
|
spacebar: "space",
|
|
@@ -8032,7 +8072,7 @@ var r$13 = {
|
|
|
8032
8072
|
del: "delete",
|
|
8033
8073
|
return: "enter"
|
|
8034
8074
|
};
|
|
8035
|
-
var i$
|
|
8075
|
+
var i$14 = /* @__PURE__ */ new Set([
|
|
8036
8076
|
"escape",
|
|
8037
8077
|
"enter",
|
|
8038
8078
|
"tab",
|
|
@@ -8050,22 +8090,22 @@ var i$13 = /* @__PURE__ */ new Set([
|
|
|
8050
8090
|
"pagedown",
|
|
8051
8091
|
...Array.from({ length: 12 }, (e, t) => `f${t + 1}`)
|
|
8052
8092
|
]);
|
|
8053
|
-
var a$10 = (e, n) => [...t$
|
|
8093
|
+
var a$10 = (e, n) => [...t$18.filter((t) => e.has(t)), n].join("+");
|
|
8054
8094
|
var o$11 = (e, t) => {
|
|
8055
8095
|
let o = e.trim().toLowerCase();
|
|
8056
8096
|
if (!o) return { problem: "an empty shortcut (two commas in a row, or one at the end)" };
|
|
8057
8097
|
let s = o.endsWith("++") ? [...o.slice(0, -2).split("+"), "+"] : o.split("+"), c = o === "+" ? ["+"] : s.filter((e) => e !== ""), l = /* @__PURE__ */ new Set(), u = [];
|
|
8058
8098
|
for (let e of c) {
|
|
8059
|
-
if (Object.hasOwn(n$
|
|
8060
|
-
let r = n$
|
|
8099
|
+
if (Object.hasOwn(n$16, e)) {
|
|
8100
|
+
let r = n$16[e];
|
|
8061
8101
|
l.add(r === "mod" ? t ? "meta" : "ctrl" : r);
|
|
8062
8102
|
continue;
|
|
8063
8103
|
}
|
|
8064
|
-
u.push(Object.hasOwn(r$
|
|
8104
|
+
u.push(Object.hasOwn(r$14, e) ? r$14[e] : e);
|
|
8065
8105
|
}
|
|
8066
8106
|
if (u.length !== 1) return { problem: `"${e.trim()}" names ${u.length ? `${u.length} keys (${u.join(", ")})` : "no key, only modifiers"}: a shortcut is modifiers and ONE key, like "shift+f"` };
|
|
8067
8107
|
let [d] = u;
|
|
8068
|
-
return d.length !== 1 && !i$
|
|
8108
|
+
return d.length !== 1 && !i$14.has(d) ? { problem: `"${d}" in "${e.trim()}" is not a key: use one character ("f", "?", "+") or a key's name (${[...i$14].slice(0, 15).join(", ")}, f1…f12)` } : { combo: a$10(l, d) };
|
|
8069
8109
|
};
|
|
8070
8110
|
var s$9 = (e, t = !1) => {
|
|
8071
8111
|
let n = e.split(",").map((e) => o$11(e, t));
|
|
@@ -8112,17 +8152,20 @@ var steps_exports$1 = /* @__PURE__ */ __exportAll({
|
|
|
8112
8152
|
toggleElement: () => toggleElement,
|
|
8113
8153
|
updateElement: () => updateElement
|
|
8114
8154
|
});
|
|
8155
|
+
var builtinTrigger = (trigger) => {
|
|
8156
|
+
if (Object.hasOwn(e$40, trigger)) return e$40[trigger];
|
|
8157
|
+
return Object.hasOwn(typeTriggerDefinitions, trigger) ? typeTriggerDefinitions[trigger] : void 0;
|
|
8158
|
+
};
|
|
8115
8159
|
/**
|
|
8116
|
-
* `on('onClick')`, and the same for every other trigger.
|
|
8160
|
+
* `on('onClick')`, and the same for every other trigger — a plugin's too (`on('onPick')`). What the event carries is
|
|
8161
|
+
* read through the step's id, so name it: `[named('picked', on('onPick')), setState({ key: 'seat', type: 'text', value:
|
|
8162
|
+
* '{{ picked.seat }}' })]`.
|
|
8117
8163
|
*
|
|
8118
8164
|
* The basic set every element registers is named and autocompletes; any other string is accepted because a TYPE
|
|
8119
8165
|
* may publish triggers of its own — a form's `onSubmit`, a provider's page change — and refusing those would make
|
|
8120
|
-
* the builders useless for exactly the flows that matter most.
|
|
8166
|
+
* the builders useless for exactly the flows that matter most. A plugin's, typed by its declaration:
|
|
8167
|
+
* `declaredTrigger(declaration, 'onPick')`.
|
|
8121
8168
|
*/
|
|
8122
|
-
var builtinTrigger = (trigger) => {
|
|
8123
|
-
if (Object.hasOwn(e$40, trigger)) return e$40[trigger];
|
|
8124
|
-
return Object.hasOwn(typeTriggerDefinitions, trigger) ? typeTriggerDefinitions[trigger] : void 0;
|
|
8125
|
-
};
|
|
8126
8169
|
var on = (trigger, params = {}) => {
|
|
8127
8170
|
const declared = builtinTrigger(trigger);
|
|
8128
8171
|
return {
|
|
@@ -8166,7 +8209,7 @@ var onKey = (keys) => {
|
|
|
8166
8209
|
* (`when(...)`) — a state an `onMouseEnter` sets, say. `{{ <this step's id>.count }}` is how many times it has ticked.
|
|
8167
8210
|
*/
|
|
8168
8211
|
var onInterval = (ms) => {
|
|
8169
|
-
if (n$
|
|
8212
|
+
if (n$17(ms) === void 0) throw new AuthoringError("trigger-interval", `onInterval(${String(ms)}) is not an interval a flow can repeat on: it takes a whole number of milliseconds, at least 250 — \`onInterval(5000)\` is every five seconds.`);
|
|
8170
8213
|
return on("onInterval", { interval: ms });
|
|
8171
8214
|
};
|
|
8172
8215
|
/**
|
|
@@ -8448,7 +8491,7 @@ var e$22 = {
|
|
|
8448
8491
|
elements: "Only these containers",
|
|
8449
8492
|
none: "None — this only reads"
|
|
8450
8493
|
};
|
|
8451
|
-
var t$
|
|
8494
|
+
var t$17 = (t, n = () => !0) => ({
|
|
8452
8495
|
invalidateQueries: {
|
|
8453
8496
|
type: "select",
|
|
8454
8497
|
description: "What to refresh once the write succeeded, so the page shows the new data: the requests to the same site, every provider on the page, only the api containers named in `invalidateElements`, or none for a step that only reads. Server-driven containers are refreshed too, asking the server past its cache. Containers on screen ask again at once; the rest when they are shown.",
|
|
@@ -8470,7 +8513,7 @@ var t$16 = (t, n = () => !0) => ({
|
|
|
8470
8513
|
});
|
|
8471
8514
|
//#endregion
|
|
8472
8515
|
//#region ../sdk-interactions/dist/sources/ActionsSource/callbacks.mjs
|
|
8473
|
-
var t$
|
|
8516
|
+
var t$16 = {
|
|
8474
8517
|
runServerAction: {
|
|
8475
8518
|
source: "actions",
|
|
8476
8519
|
title: "Run Server Action",
|
|
@@ -8510,7 +8553,7 @@ var t$15 = {
|
|
|
8510
8553
|
default: "",
|
|
8511
8554
|
when: (e) => e.mode !== "detached"
|
|
8512
8555
|
},
|
|
8513
|
-
...t$
|
|
8556
|
+
...t$17([
|
|
8514
8557
|
"all",
|
|
8515
8558
|
"elements",
|
|
8516
8559
|
"none"
|
|
@@ -8849,7 +8892,44 @@ var e$17 = {
|
|
|
8849
8892
|
};
|
|
8850
8893
|
//#endregion
|
|
8851
8894
|
//#region ../sdk-shared/dist/authoring/spaceCallbacks.mjs
|
|
8852
|
-
var e$16 =
|
|
8895
|
+
var e$16 = [
|
|
8896
|
+
"top-right",
|
|
8897
|
+
"top-center",
|
|
8898
|
+
"top-left",
|
|
8899
|
+
"bottom-right",
|
|
8900
|
+
"bottom-center",
|
|
8901
|
+
"bottom-left"
|
|
8902
|
+
];
|
|
8903
|
+
var t$15 = [
|
|
8904
|
+
"success",
|
|
8905
|
+
"danger",
|
|
8906
|
+
"warning",
|
|
8907
|
+
"info"
|
|
8908
|
+
];
|
|
8909
|
+
var n$15 = (n) => {
|
|
8910
|
+
let r = e$16.find((e) => e === n.placement), i = t$15.find((e) => e === n.appearance), { autoDismiss: a, autoDismissTimeout: o } = n, s = typeof o == "number" && Number.isFinite(o) && o > 0 ? o : void 0, c = {
|
|
8911
|
+
placement: r !== void 0,
|
|
8912
|
+
appearance: i !== void 0,
|
|
8913
|
+
autoDismiss: typeof a == "boolean",
|
|
8914
|
+
autoDismissTimeout: s !== void 0
|
|
8915
|
+
};
|
|
8916
|
+
return {
|
|
8917
|
+
options: {
|
|
8918
|
+
...r === void 0 ? {} : { placement: r },
|
|
8919
|
+
...i === void 0 ? {} : { appearance: i },
|
|
8920
|
+
...typeof a == "boolean" ? { autoDismiss: a } : {},
|
|
8921
|
+
...s === void 0 ? {} : { autoDismissTimeout: s }
|
|
8922
|
+
},
|
|
8923
|
+
ignored: Object.entries(c).filter(([e, t]) => !t && n[e] !== void 0).map(([e]) => e)
|
|
8924
|
+
};
|
|
8925
|
+
};
|
|
8926
|
+
var r$13 = {
|
|
8927
|
+
placement: "top-right",
|
|
8928
|
+
appearance: "success",
|
|
8929
|
+
autoDismiss: !0,
|
|
8930
|
+
autoDismissTimeout: 5e3
|
|
8931
|
+
};
|
|
8932
|
+
var i$13 = { addNotification: {
|
|
8853
8933
|
source: "space",
|
|
8854
8934
|
title: "Add Notification",
|
|
8855
8935
|
strictParams: !0,
|
|
@@ -8862,37 +8942,25 @@ var e$16 = { addNotification: {
|
|
|
8862
8942
|
placement: {
|
|
8863
8943
|
type: "select",
|
|
8864
8944
|
description: "Where the toast appears on screen.",
|
|
8865
|
-
default:
|
|
8866
|
-
options: [
|
|
8867
|
-
"top-right",
|
|
8868
|
-
"top-center",
|
|
8869
|
-
"top-left",
|
|
8870
|
-
"bottom-right",
|
|
8871
|
-
"bottom-center",
|
|
8872
|
-
"bottom-left"
|
|
8873
|
-
]
|
|
8945
|
+
default: r$13.placement,
|
|
8946
|
+
options: [...e$16]
|
|
8874
8947
|
},
|
|
8875
8948
|
appearance: {
|
|
8876
8949
|
type: "select",
|
|
8877
8950
|
description: "Visual style of the notification: success, danger, warning or info.",
|
|
8878
|
-
default:
|
|
8879
|
-
options: [
|
|
8880
|
-
"success",
|
|
8881
|
-
"danger",
|
|
8882
|
-
"warning",
|
|
8883
|
-
"info"
|
|
8884
|
-
]
|
|
8951
|
+
default: r$13.appearance,
|
|
8952
|
+
options: [...t$15]
|
|
8885
8953
|
},
|
|
8886
8954
|
autoDismiss: {
|
|
8887
8955
|
type: "boolean",
|
|
8888
8956
|
description: "Whether the notification dismisses itself after a timeout.",
|
|
8889
|
-
default:
|
|
8957
|
+
default: r$13.autoDismiss,
|
|
8890
8958
|
canBind: !1
|
|
8891
8959
|
},
|
|
8892
8960
|
autoDismissTimeout: {
|
|
8893
8961
|
type: "number",
|
|
8894
8962
|
description: "Milliseconds before auto-dismiss. Only applies when autoDismiss is true.",
|
|
8895
|
-
default:
|
|
8963
|
+
default: r$13.autoDismissTimeout,
|
|
8896
8964
|
when: (e) => e.autoDismiss === !0
|
|
8897
8965
|
}
|
|
8898
8966
|
}
|
|
@@ -8915,12 +8983,12 @@ var e$16 = { addNotification: {
|
|
|
8915
8983
|
* of them is an authoring question nobody at runtime asks.
|
|
8916
8984
|
*/
|
|
8917
8985
|
var BUILTIN_GLOBAL_CALLBACKS = {
|
|
8918
|
-
...
|
|
8986
|
+
...i$13,
|
|
8919
8987
|
...e$17,
|
|
8920
8988
|
...e$20,
|
|
8921
8989
|
...e$19,
|
|
8922
8990
|
...e$21,
|
|
8923
|
-
...t$
|
|
8991
|
+
...t$16,
|
|
8924
8992
|
...e$18
|
|
8925
8993
|
};
|
|
8926
8994
|
/** The built-in globalCallback for an action, or undefined when the action is not a known built-in (a plugin
|
|
@@ -8970,7 +9038,7 @@ var hostFor = (step, host) => step.type === "trigger" || step.type === "callback
|
|
|
8970
9038
|
var assertStepIds = (ids, where) => {
|
|
8971
9039
|
const seen = /* @__PURE__ */ new Set();
|
|
8972
9040
|
for (const id of ids) {
|
|
8973
|
-
if (!t$
|
|
9041
|
+
if (!t$29(id)) throw new AuthoringError("step-name", `Step "${id}" in ${where} is not a valid name: start with a letter, then letters, numbers, hyphens and underscores. A later step reads this one as {{ ${id}.field }}.`);
|
|
8974
9042
|
if (seen.has(id)) throw new AuthoringError("step-duplicate", `${where} names the step "${id}" twice. A flow's steps are keyed by id, so the second wins.`);
|
|
8975
9043
|
seen.add(id);
|
|
8976
9044
|
}
|
|
@@ -9490,7 +9558,7 @@ var BUILTIN_UTILITIES = {
|
|
|
9490
9558
|
label: "Fresh for (s)",
|
|
9491
9559
|
when: (e) => t$14(e) && (e.cache === !0 || e.cache === "true")
|
|
9492
9560
|
},
|
|
9493
|
-
...t$
|
|
9561
|
+
...t$17([
|
|
9494
9562
|
"origin",
|
|
9495
9563
|
"all",
|
|
9496
9564
|
"elements",
|
|
@@ -9748,18 +9816,6 @@ var inputOf$1 = (params) => Object.fromEntries(Object.entries(params).map(([key,
|
|
|
9748
9816
|
}];
|
|
9749
9817
|
}));
|
|
9750
9818
|
var kebab = (name) => name.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
9751
|
-
/**
|
|
9752
|
-
* A server action that runs one of the space's tasks and answers its result — the way in a task is reached by from a
|
|
9753
|
-
* page (`call`), the HTML (`render`) or anywhere else, written once: the task's params are the action's input, its
|
|
9754
|
-
* title and description the action's, its address the id.
|
|
9755
|
-
*
|
|
9756
|
-
* ```ts
|
|
9757
|
-
* export const make = taskAction(tasks.make, { trigger: { type: 'call', access: 'public' } });
|
|
9758
|
-
* runServerAction({ actionId: make.id, input: { title: '{{ state.title }}' } });
|
|
9759
|
-
* ```
|
|
9760
|
-
*
|
|
9761
|
-
* An action of more than one step, or one whose input is not the task's params, is a `defineAction`.
|
|
9762
|
-
*/
|
|
9763
9819
|
var taskAction = (task, { trigger, id, name, description, output, limits }) => {
|
|
9764
9820
|
const input = inputOf$1(task.params);
|
|
9765
9821
|
const triggers = (Array.isArray(trigger) ? trigger : [trigger]).map((each) => ({
|
|
@@ -10094,8 +10150,8 @@ var warnClickOnStaticElement = (ctx, element, where) => {
|
|
|
10094
10150
|
var warnIgnoredRegionName = (ctx, element, where) => {
|
|
10095
10151
|
if (element.definition.type !== "container" || !says(ctx, element, "label")) return;
|
|
10096
10152
|
const subType = textOf(attributeValue(ctx, element, "subType"), "div");
|
|
10097
|
-
if (n$
|
|
10098
|
-
ctx.warn("label-ignored", `${where} is a "${subType}" with a \`label\`, which nobody reads: it takes its name from what it holds. Put the words inside it — or, if it is a part of the page of its own, make it one of ${n$
|
|
10153
|
+
if (n$33.some((tag) => tag === subType)) return;
|
|
10154
|
+
ctx.warn("label-ignored", `${where} is a "${subType}" with a \`label\`, which nobody reads: it takes its name from what it holds. Put the words inside it — or, if it is a part of the page of its own, make it one of ${n$33.map((tag) => `'${tag}'`).join(", ")}.`, element.id);
|
|
10099
10155
|
};
|
|
10100
10156
|
/**
|
|
10101
10157
|
* Whether `id`'s subtree holds something a keyboard can reach — or markup the linter cannot read, which may — leaving
|
|
@@ -10403,9 +10459,9 @@ var s$8 = /* @__PURE__ */ new Set([
|
|
|
10403
10459
|
var c$7 = (t, n) => {
|
|
10404
10460
|
let r = [];
|
|
10405
10461
|
if (o$9.test(t) || r.push("a pattern is letters, digits and `:_.-`, with `{name}` for the part a page fills in — `board:{id}`"), !e$33(n)) return [...r, "a channel is an object: `{ access: { mode: \"public\" } }`"];
|
|
10406
|
-
let { access: i, publish: a, presence: c, grant: l,
|
|
10407
|
-
typeof
|
|
10408
|
-
for (let [e, t] of [["maxMessageBytes",
|
|
10462
|
+
let { access: i, publish: a, presence: c, grant: l, retain: u, maxMessageBytes: d, messagesPerSecond: f } = n, p = e$33(i) ? i.mode : void 0;
|
|
10463
|
+
typeof p != "string" || !s$8.has(p) ? r.push("`access` is { mode: \"public\" }, { mode: \"session\" } or { mode: \"role\", permissions: […] }") : p === "role" && !(e$33(i) && Array.isArray(i.permissions) && i.permissions.every((e) => typeof e == "string")) && r.push("`access: { mode: \"role\" }` names the permissions it needs: `permissions: [\"boardEdit\"]`"), a !== void 0 && a !== "clients" && a !== "server" && r.push("`publish` is \"clients\" (pages send) or \"server\" (only a flow's realtime.publish)"), c !== void 0 && typeof c != "boolean" && r.push("`presence` is true or false"), l !== void 0 && typeof l != "boolean" && r.push("`grant` is true (a page needs a grant from `realtime.grant` to open a topic) or false"), u !== void 0 && typeof u != "boolean" ? r.push("`retain` is true (the server keeps the latest message of each type for pages that join) or false") : u === !0 && a !== "server" && r.push("`retain: true` keeps what the server says, so only the server may speak: add `publish: \"server\"` — a page changes it through an action");
|
|
10464
|
+
for (let [e, t] of [["maxMessageBytes", d], ["messagesPerSecond", f]]) t !== void 0 && (typeof t != "number" || !Number.isInteger(t) || t <= 0) && r.push(`\`${e}\` is a whole number above zero`);
|
|
10409
10465
|
return r;
|
|
10410
10466
|
};
|
|
10411
10467
|
//#endregion
|
|
@@ -11198,7 +11254,7 @@ var l$6 = (e) => {
|
|
|
11198
11254
|
//#region src/style/properties.ts
|
|
11199
11255
|
/** Every kebab-case CSS property Plitzi's style engine understands. Values written to a definition must use these
|
|
11200
11256
|
* exact keys — camelCase or unknown keys are rejected. */
|
|
11201
|
-
var cssProperties = Array.from(new Set(Object.values(t$
|
|
11257
|
+
var cssProperties = Array.from(new Set(Object.values(t$31))).sort();
|
|
11202
11258
|
var cssPropertySet = new Set(cssProperties);
|
|
11203
11259
|
var isCssProperty = (key) => cssPropertySet.has(key);
|
|
11204
11260
|
var toKebab = (key) => key.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
@@ -12092,7 +12148,7 @@ var assertPseudo = (pseudo, part) => {
|
|
|
12092
12148
|
const ruleSets = partRuleSets(part);
|
|
12093
12149
|
for (const rules of ruleSets) for (const [property, value] of Object.entries(rules)) {
|
|
12094
12150
|
if (property === "content") {
|
|
12095
|
-
if (!i$
|
|
12151
|
+
if (!i$18.includes(pseudo)) throw new AuthoringError("style-pseudo-content", `\`content\` on \`::${pseudo}\` draws nothing: only ${i$18.map((name) => `\`::${name}\``).join(", ")} take one.`);
|
|
12096
12152
|
if (!m$4(String(value))) throw new AuthoringError("style-pseudo-content", `\`content: ${String(value)}\` on \`::${pseudo}\` is not text CSS can read, so nothing is drawn. Text goes in quotes inside the string — \`content: '"${String(value).replace(/"/g, "\\\"")}"'\` — and an empty box is \`'""'\`; \`counter()\`, \`attr()\` and \`url()\` are written as they are.`);
|
|
12097
12153
|
continue;
|
|
12098
12154
|
}
|
|
@@ -12104,7 +12160,7 @@ var toPseudos = (pseudos) => {
|
|
|
12104
12160
|
const parts = /* @__PURE__ */ new Map();
|
|
12105
12161
|
for (const [name, spec] of Object.entries(pseudos ?? {})) {
|
|
12106
12162
|
const bare = name.replace(/^:+/, "");
|
|
12107
|
-
if (!n$
|
|
12163
|
+
if (!n$20(name)) throw new AuthoringError("style-pseudo-unknown", `Unknown pseudo-element "${name}"${n$20(bare) ? ` — write it without the colons, "${bare}"` : didYouMean(bare, e$27)}. A class dresses ${e$27.join(", ")}.`);
|
|
12108
12164
|
const part = partOf(spec);
|
|
12109
12165
|
const rules = {
|
|
12110
12166
|
base: toResponsive(part.css),
|
|
@@ -12131,7 +12187,7 @@ var toConditions = (conditions) => {
|
|
|
12131
12187
|
const parts = /* @__PURE__ */ new Map();
|
|
12132
12188
|
for (const [key, spec] of Object.entries(conditions ?? {})) {
|
|
12133
12189
|
const condition = c$12(key);
|
|
12134
|
-
if (!condition) throw new AuthoringError("style-condition-unknown", `Unknown condition "${key}"${didYouMean(key, t$
|
|
12190
|
+
if (!condition) throw new AuthoringError("style-condition-unknown", `Unknown condition "${key}"${didYouMean(key, t$24)}. A class's rules can hold under ${t$24.map((name) => `\`${name}\``).join(", ")}, or a container's width — \`container (max-width: 30rem)\`, \`container card (min-width: 480px)\` (min-width, max-width or both joined by \`and\`, in px, rem, em or ch).`);
|
|
12135
12191
|
if (parts.has(condition)) throw new AuthoringError("style-condition-unknown", `"${key}" is \`${condition}\`, which the class already writes under another spelling: keep one.`);
|
|
12136
12192
|
const part = partOf(spec);
|
|
12137
12193
|
parts.set(condition, {
|
|
@@ -13823,7 +13879,7 @@ var tokens = (variables) => {
|
|
|
13823
13879
|
};
|
|
13824
13880
|
//#endregion
|
|
13825
13881
|
//#region src/schema/lint/globalReads.ts
|
|
13826
|
-
var isShaped = (source) => Object.hasOwn(n$
|
|
13882
|
+
var isShaped = (source) => Object.hasOwn(n$29, source);
|
|
13827
13883
|
/** A global and the field read of it, at the start of a path: `auth.isAuthenticated`, `navigation.queryParams.next`. */
|
|
13828
13884
|
var GLOBAL_FIELD = /^([A-Za-z_$][\w$]*)\.([A-Za-z_$][\w$]*)/;
|
|
13829
13885
|
/** A flag the space does not declare: the read resolves to nothing, so what it gates is silently off. */
|
|
@@ -13836,7 +13892,7 @@ var reportUnknownComputed = (ctx, name, where, id) => {
|
|
|
13836
13892
|
};
|
|
13837
13893
|
/** A field of `navigation`, `auth` or `theme` that the source never publishes (`GLOBAL_SOURCE_FIELDS`). */
|
|
13838
13894
|
var checkShapedField = (ctx, source, field, where, id) => {
|
|
13839
|
-
const fields = Object.keys(n$
|
|
13895
|
+
const fields = Object.keys(n$29[source]);
|
|
13840
13896
|
if (fields.includes(field)) return;
|
|
13841
13897
|
const paths = fields.map((name) => `${source}.${name}`);
|
|
13842
13898
|
ctx.error("global-field-unknown", `${where} reads "${source}.${field}", which the \`${source}\` source never has — it reads as nothing, always${didYouMean(`${source}.${field}`, paths) || "."} \`${source}\` holds ${paths.join(", ")}.`, id);
|
|
@@ -13856,7 +13912,7 @@ var checkGlobalRead = (ctx, path, where, id) => {
|
|
|
13856
13912
|
* Every `<global>.<field>` a template reads, off the parsed template: a string literal that only looks like one
|
|
13857
13913
|
* (`'https://auth.acme.com'`) is not a read, nor is a field of something else (`post.auth.name`).
|
|
13858
13914
|
*/
|
|
13859
|
-
var globalFieldsRead = (template) => n$
|
|
13915
|
+
var globalFieldsRead = (template) => n$26(template).flatMap((path) => {
|
|
13860
13916
|
const [source = "", field] = path.split(".");
|
|
13861
13917
|
return field ? [[source, field]] : [];
|
|
13862
13918
|
});
|
|
@@ -13955,8 +14011,9 @@ var lintPages = (ctx) => {
|
|
|
13955
14011
|
if (!page) continue;
|
|
13956
14012
|
const where = ctx.describe(pageId);
|
|
13957
14013
|
checkPageTemplates(ctx, pageId, where);
|
|
13958
|
-
const { accessLevel, slug, folder } = page.attributes;
|
|
14014
|
+
const { accessLevel, documentScroll, slug, folder } = page.attributes;
|
|
13959
14015
|
if (accessLevel !== void 0 && accessLevel !== "" && !ACCESS_LEVELS.includes(accessLevel)) ctx.error("page-access-level", `${where}: \`accessLevel\` is ${JSON.stringify(accessLevel)}. It is one of ${ACCESS_LEVELS.map((level) => `'${level}'`).join(", ")}.`, pageId);
|
|
14016
|
+
if (documentScroll !== void 0 && documentScroll !== "" && !n$37(documentScroll)) ctx.error("attribute-value", `${where}: \`documentScroll\` is ${JSON.stringify(documentScroll)}${typeof documentScroll === "string" && didYouMean(documentScroll, t$49) || "."} It is one of ${t$49.map((value) => `'${value}'`).join(", ")} — or left out, for a page that scrolls as any does.`, pageId);
|
|
13960
14017
|
const path = `/${[typeof folder === "string" && folder ? folderPath(ctx, folder) : "", textOf(slug)].filter(Boolean).join("/")}`;
|
|
13961
14018
|
if (a$9(path)) ctx.error("page-route-reserved", `${where} answers at ${path}, under /fn — which is where the space's functions answer, never a page. Give it another slug (or its folder another one).`, pageId);
|
|
13962
14019
|
const key = `${path} ${typeof accessLevel === "string" && accessLevel ? accessLevel : "everyone"}`;
|
|
@@ -14234,7 +14291,7 @@ var checkAttributes = (ctx, element, where) => {
|
|
|
14234
14291
|
ctx.error("unknown-attribute", `${where} sets "${name}", which a "${type}" never reads${didYouMean(name, names) || "."}${hint || ` It reads ${names.join(", ")}.`}`, element.id);
|
|
14235
14292
|
continue;
|
|
14236
14293
|
}
|
|
14237
|
-
if (value === void 0 || value === null || typeof value === "string" && n$
|
|
14294
|
+
if (value === void 0 || value === null || typeof value === "string" && n$48(value)) continue;
|
|
14238
14295
|
if (Object.hasOwn(enums, name) && !(typeof value === "string" && enums[name].includes(value))) {
|
|
14239
14296
|
const tag = name === "subType" && typeof value === "string" ? value : void 0;
|
|
14240
14297
|
const owner = tag === void 0 ? void 0 : Object.entries(ctx.catalogs.attributeValues ?? {}).find(([other, values]) => other !== type && Object.hasOwn(values, "subType") && values.subType.includes(tag))?.[0];
|
|
@@ -14312,7 +14369,7 @@ var checkBindings = (ctx, element, where) => {
|
|
|
14312
14369
|
const prefix = ctx.sources.get(providerId);
|
|
14313
14370
|
if (prefix && head === `${prefix}_${providerId}` && !scope.has(providerId)) ctx.error("binding-source-out-of-scope", `${at} reads "${binding.source}", but "${providerId}" is not around it. An element's source reaches only the elements inside it — move this one into "${providerId}", or read the value through something both can see, like \`state\`.`, element.id);
|
|
14314
14371
|
if (binding.to === "visibility" && category === "attributes") ctx.error("visibility-as-attribute", `${where} binds "visibility" as an attribute, which no element reads — it would stay on screen. Write \`visible: '${binding.source}'\` on the element (or \`visible: { source: '${binding.source}', template }\`).`, element.id);
|
|
14315
|
-
const unread = binding.to !== "visibility" && binding.to !== "className" && !names?.includes(binding.to);
|
|
14372
|
+
const unread = binding.to !== "visibility" && binding.to !== "className" && !names?.includes(boundAttribute(binding.to));
|
|
14316
14373
|
if (category === "attributes" && names && unread) {
|
|
14317
14374
|
const styled = binding.to === "style" || isCssProperty(binding.to) || isCustomProperty(binding.to);
|
|
14318
14375
|
const how = styled ? ` A style is bound in the \`style\` category, one property at a time — \`bindTemplate('${binding.to === "style" ? "background-color" : binding.to}', '${binding.source}', '{{ source }}', { category: 'style' })\` — or a custom property its class reads: \`'--who'\` beside \`background-color: var(--who)\`.` : ` It reads ${names.join(", ")}.`;
|
|
@@ -14356,17 +14413,17 @@ var checkTemplateInValue = (ctx, element, where, name, value) => {
|
|
|
14356
14413
|
*/
|
|
14357
14414
|
var checkAttributeTemplates = (ctx, element, where) => {
|
|
14358
14415
|
if (PROSE_TYPES.has(element.definition.type)) return;
|
|
14359
|
-
const evaluated =
|
|
14416
|
+
const evaluated = H[element.definition.type] ?? [];
|
|
14360
14417
|
const rendered = Object.fromEntries(Object.entries(element.attributes).filter(([name]) => !evaluated.includes(name)));
|
|
14361
14418
|
for (const name of evaluated) {
|
|
14362
14419
|
const value = element.attributes[name];
|
|
14363
14420
|
if (typeof value === "string" && value !== "") checkTemplate(ctx, value, `${where}: its "${name}"`, { kind: "binding" }, ctx.scope(element.id), element.id);
|
|
14364
14421
|
}
|
|
14365
14422
|
for (const [name, value] of Object.entries(rendered)) if (typeof value !== "string") checkTemplateInValue(ctx, element, where, name, value);
|
|
14366
|
-
else if (e$7(value) && !n$
|
|
14423
|
+
else if (e$7(value) && !n$48(value)) ctx.warn("template-never-resolved", `${where} carries "${shorten(value)}", which is never resolved: an attribute only reads a name with filters (\`{{ post.slug|upper }}\`). Move the expression into a binding's \`twigTemplate\`, where it is evaluated in full.`, element.id, { value });
|
|
14367
14424
|
const routeParams = ctx.routeParams(element.id);
|
|
14368
14425
|
const scope = ctx.scope(element.id);
|
|
14369
|
-
for (const [name, value] of Object.entries(rendered)) if (typeof value === "string" && n$
|
|
14426
|
+
for (const [name, value] of Object.entries(rendered)) if (typeof value === "string" && n$48(value)) checkTemplate(ctx, value, `${where}: its "${name}"`, {
|
|
14370
14427
|
kind: "attribute",
|
|
14371
14428
|
routeParams
|
|
14372
14429
|
}, scope, element.id);
|
|
@@ -14745,7 +14802,7 @@ var checkTriggerKeys = (ctx, node, where, hostId) => {
|
|
|
14745
14802
|
};
|
|
14746
14803
|
/** A repeating flow whose interval cannot repeat: not a whole number of milliseconds, or faster than the floor. */
|
|
14747
14804
|
var checkTriggerInterval = (ctx, node, where, hostId) => {
|
|
14748
|
-
if (node.action !== "onInterval" || n$
|
|
14805
|
+
if (node.action !== "onInterval" || n$17(node.params.interval) !== void 0) return;
|
|
14749
14806
|
ctx.error("trigger-interval", `${where} repeats a flow every ${JSON.stringify(node.params.interval)} ms, which never ticks: an interval is a whole number of milliseconds, at least 250 — \`onInterval(5000)\`.`, hostId);
|
|
14750
14807
|
};
|
|
14751
14808
|
/**
|
|
@@ -15525,7 +15582,7 @@ var FIXERS = {
|
|
|
15525
15582
|
const names = ctx.attributeNamesFor(element);
|
|
15526
15583
|
const bindings = element.definition.bindings;
|
|
15527
15584
|
if (!names || !bindings?.attributes) return;
|
|
15528
|
-
const reads = (binding) => binding.to === "visibility" || binding.to === "className" || names.includes(binding.to);
|
|
15585
|
+
const reads = (binding) => binding.to === "visibility" || binding.to === "className" || names.includes(boundAttribute(binding.to));
|
|
15529
15586
|
for (const binding of bindings.attributes.filter((candidate) => !reads(candidate))) report(`Removed the binding onto "${binding.to}", which a "${element.definition.type}" never reads.`, {
|
|
15530
15587
|
on: "binding",
|
|
15531
15588
|
op: "remove",
|
|
@@ -16123,7 +16180,7 @@ var n$1 = (n) => {
|
|
|
16123
16180
|
dark: []
|
|
16124
16181
|
};
|
|
16125
16182
|
return Object.entries(r).forEach(([n, r]) => {
|
|
16126
|
-
switch (n$
|
|
16183
|
+
switch (n$21(n) ? n : e$29.CUSTOM) {
|
|
16127
16184
|
case e$29.COLOR:
|
|
16128
16185
|
Object.keys(r).forEach((e) => {
|
|
16129
16186
|
let t = r[e];
|
|
@@ -16177,7 +16234,7 @@ var m = (e, t, n) => {
|
|
|
16177
16234
|
return i;
|
|
16178
16235
|
};
|
|
16179
16236
|
var h = (e, t, n) => Object.entries(e).flatMap(([e, { default: r, states: o }]) => {
|
|
16180
|
-
let l = r$
|
|
16237
|
+
let l = r$18(e), u = r.length ? [y(`&${l}`, r, {}, t, n)] : [];
|
|
16181
16238
|
for (let [e, r] of o$15(o ?? {})) u.push(y(`&${u$7(e)}${l}`, r, {}, t, n)), d$6(e) && u.push(v(`&${l}`, r, t, n));
|
|
16182
16239
|
return u;
|
|
16183
16240
|
});
|
|
@@ -16247,9 +16304,9 @@ var o$2 = (e, t = ":root", n = 2, r = !0) => {
|
|
|
16247
16304
|
};
|
|
16248
16305
|
//#endregion
|
|
16249
16306
|
//#region ../sdk-style/dist/StyleHelper.mjs
|
|
16250
|
-
var s$1 = Object.fromEntries(e$30.map((e) => [e, t$
|
|
16307
|
+
var s$1 = Object.fromEntries(e$30.map((e) => [e, t$27(e)]));
|
|
16251
16308
|
var c = (e) => {
|
|
16252
|
-
if (t$
|
|
16309
|
+
if (t$26(e)) return e$31[e];
|
|
16253
16310
|
let t = e.match(/(\d*\.?\d+)(px|rem)/);
|
|
16254
16311
|
if (!t) return 0;
|
|
16255
16312
|
let r = parseFloat(t[1]);
|
|
@@ -16487,7 +16544,7 @@ var stateAndPseudoOf = (written) => {
|
|
|
16487
16544
|
if (!match) return;
|
|
16488
16545
|
const state = match.at(1);
|
|
16489
16546
|
const pseudo = match.at(2);
|
|
16490
|
-
if (state !== void 0 && !isStyleState$1(state) || pseudo !== void 0 && !n$
|
|
16547
|
+
if (state !== void 0 && !isStyleState$1(state) || pseudo !== void 0 && !n$20(pseudo)) return;
|
|
16491
16548
|
return {
|
|
16492
16549
|
state,
|
|
16493
16550
|
pseudo
|
|
@@ -16507,7 +16564,7 @@ var targetOf = (written, isClass) => {
|
|
|
16507
16564
|
className,
|
|
16508
16565
|
state
|
|
16509
16566
|
};
|
|
16510
|
-
return n$
|
|
16567
|
+
return n$20(pseudo) ? {
|
|
16511
16568
|
className,
|
|
16512
16569
|
state,
|
|
16513
16570
|
pseudo
|
|
@@ -16554,7 +16611,7 @@ var declarationsOf = (body) => {
|
|
|
16554
16611
|
* there, and a `content` CSS can read. A rule that does not is left in `customCss`, where it was written and does exactly
|
|
16555
16612
|
* what it did.
|
|
16556
16613
|
*/
|
|
16557
|
-
var pseudoHolds = (pseudo, rules) => Object.entries(rules).every(([property, value]) => property === "content" ? i$
|
|
16614
|
+
var pseudoHolds = (pseudo, rules) => Object.entries(rules).every(([property, value]) => property === "content" ? i$18.includes(pseudo) && m$4(String(value)) : u$8(pseudo, property));
|
|
16558
16615
|
/** Where a pseudo-element's rules land, its state aside: the class, the pseudo-element and the condition. */
|
|
16559
16616
|
var pseudoKey = ({ className, pseudo, condition }) => `${className}::${pseudo ?? ""}@${condition ?? ""}`;
|
|
16560
16617
|
/**
|
|
@@ -17912,7 +17969,7 @@ var o$1 = (i, a) => {
|
|
|
17912
17969
|
});
|
|
17913
17970
|
}, k = () => {
|
|
17914
17971
|
Object.values(l).forEach((t) => {
|
|
17915
|
-
t && (t$
|
|
17972
|
+
t && (t$29(t.id) || s.push({
|
|
17916
17973
|
code: "INVALID_ELEMENT_ID",
|
|
17917
17974
|
message: `Element "${t.id}" has a name that must start with a letter, then letters, numbers, hyphens and underscores (no hyphen or underscore at the start, and no hyphen at the end)`,
|
|
17918
17975
|
elementId: t.id
|
|
@@ -17965,7 +18022,7 @@ var o$1 = (i, a) => {
|
|
|
17965
18022
|
if (!r) return;
|
|
17966
18023
|
let i = Object.keys(r);
|
|
17967
18024
|
Object.entries(r).forEach(([r, a]) => {
|
|
17968
|
-
t$
|
|
18025
|
+
t$29(r) || s.push({
|
|
17969
18026
|
code: "INVALID_INTERACTION_ID",
|
|
17970
18027
|
message: `Interaction "${r}" on element "${n.id}" has a name that must start with a letter, then letters, numbers, hyphens and underscores — a later step reads it as {{ ${r}.field }}`,
|
|
17971
18028
|
elementId: n.id
|
|
@@ -18030,7 +18087,7 @@ var o$1 = (i, a) => {
|
|
|
18030
18087
|
code: "COMPONENT_ID_MISMATCH",
|
|
18031
18088
|
message: `${d} has id "${l.id}"`,
|
|
18032
18089
|
componentId: t
|
|
18033
|
-
}), t$
|
|
18090
|
+
}), t$29(t) || s.push({
|
|
18034
18091
|
code: "INVALID_COMPONENT_ID",
|
|
18035
18092
|
message: `${d} has a name that must start with a letter, then letters, numbers, hyphens and underscores`,
|
|
18036
18093
|
componentId: t
|
|
@@ -18267,6 +18324,20 @@ var componentWhere = (component) => {
|
|
|
18267
18324
|
/** The types that render their children once per item: everything inside one is repeated, one copy per row. */
|
|
18268
18325
|
var REPEATING_TYPES = /* @__PURE__ */ new Set(["list", "carouselTrack"]);
|
|
18269
18326
|
/**
|
|
18327
|
+
* What an element puts its children under. An element that chooses them makes each `chosen` — unless a condition above
|
|
18328
|
+
* it already holds them, which no choice of its own can lift.
|
|
18329
|
+
*/
|
|
18330
|
+
var aboveChildren = (conditional, shownWith, chooses) => {
|
|
18331
|
+
if (chooses && (!conditional || shownWith !== void 0)) return "chosen";
|
|
18332
|
+
if (shownWith !== void 0) return { shownWith };
|
|
18333
|
+
return conditional ? "condition" : "shown";
|
|
18334
|
+
};
|
|
18335
|
+
/** The chosen element `id` is drawn with: itself when it is one, the one it is inside otherwise. */
|
|
18336
|
+
var shownWithOf = (above, id) => {
|
|
18337
|
+
if (above === "chosen") return id;
|
|
18338
|
+
return typeof above === "object" ? above.shownWith : void 0;
|
|
18339
|
+
};
|
|
18340
|
+
/**
|
|
18270
18341
|
* How a person finds an element in what they wrote: its own name when it has one, otherwise the steps from the nearest
|
|
18271
18342
|
* one that does — `"store-footer" › container[1] › text[0]` rather than a path of indices from the page down.
|
|
18272
18343
|
*/
|
|
@@ -18312,7 +18383,8 @@ var PAGE_SPEC_FIELDS = {
|
|
|
18312
18383
|
accessLevel: "accessLevel",
|
|
18313
18384
|
seoPageTitle: "seoTitle",
|
|
18314
18385
|
seoPageDescription: "seoDescription",
|
|
18315
|
-
notFound: "notFound"
|
|
18386
|
+
notFound: "notFound",
|
|
18387
|
+
documentScroll: "documentScroll"
|
|
18316
18388
|
};
|
|
18317
18389
|
var layoutAttributes = (layout) => layout ? {
|
|
18318
18390
|
layout: layout.id,
|
|
@@ -18919,13 +18991,13 @@ var SpaceAuthor = class {
|
|
|
18919
18991
|
const where = componentWhere(component);
|
|
18920
18992
|
assertKnownKeys(component, COMPONENT_SPEC_KEYS, where);
|
|
18921
18993
|
const id = component.id;
|
|
18922
|
-
if (typeof id !== "string" || !t$
|
|
18994
|
+
if (typeof id !== "string" || !t$29(id)) throw new AuthoringError("component-id", `${where} needs an \`id\` that starts with a letter, then letters, numbers, hyphens and underscores — it is the name an instance places it by: \`component('${String(id)}')\`.`);
|
|
18923
18995
|
if (componentIds.has(component.id)) throw new AuthoringError("component-duplicate", `Two components are called "${component.id}". A component's id is the one name it is placed by.`);
|
|
18924
18996
|
componentIds.add(component.id);
|
|
18925
18997
|
for (const [name, prop] of Object.entries(component.props ?? {})) {
|
|
18926
18998
|
const problem = c$8(name);
|
|
18927
18999
|
if (problem) throw new AuthoringError("prop-name", `${where}: ${problem}.`);
|
|
18928
|
-
const types = t$
|
|
19000
|
+
const types = t$63;
|
|
18929
19001
|
const type = prop.type;
|
|
18930
19002
|
if (!types.includes(type)) throw new AuthoringError("prop-type-unknown", `${where} declares the prop "${name}" as \`${type}\`, which is no type${didYouMean(type, [...types]) || "."} A prop is one of ${types.join(", ")}: words are \`text\`.`);
|
|
18931
19003
|
}
|
|
@@ -19022,7 +19094,7 @@ var SpaceAuthor = class {
|
|
|
19022
19094
|
}
|
|
19023
19095
|
/** The element about to be placed under `parentId`, and everything that one is nested in. */
|
|
19024
19096
|
ancestorsOf(parentId, flat) {
|
|
19025
|
-
return Object.hasOwn(flat, parentId) ? /* @__PURE__ */ new Set([parentId, ...t$
|
|
19097
|
+
return Object.hasOwn(flat, parentId) ? /* @__PURE__ */ new Set([parentId, ...t$28(flat, parentId)]) : /* @__PURE__ */ new Set();
|
|
19026
19098
|
}
|
|
19027
19099
|
/**
|
|
19028
19100
|
* Where a page's ids are derived from — its slug, unless another page already claimed it.
|
|
@@ -19126,7 +19198,8 @@ var SpaceAuthor = class {
|
|
|
19126
19198
|
seoEnabled: Boolean(page.seoTitle ?? page.seoDescription),
|
|
19127
19199
|
...page.seoTitle ? { seoPageTitle: page.seoTitle } : {},
|
|
19128
19200
|
...page.seoDescription ? { seoPageDescription: page.seoDescription } : {},
|
|
19129
|
-
...page.notFound ? { notFound: page.notFound } : {}
|
|
19201
|
+
...page.notFound ? { notFound: page.notFound } : {},
|
|
19202
|
+
...page.documentScroll ? { documentScroll: page.documentScroll } : {}
|
|
19130
19203
|
},
|
|
19131
19204
|
definition: {
|
|
19132
19205
|
label: "Page",
|
|
@@ -19168,7 +19241,7 @@ var SpaceAuthor = class {
|
|
|
19168
19241
|
const where = componentWhere(component);
|
|
19169
19242
|
const tree = this.componentTrees.get(component.id);
|
|
19170
19243
|
if (!tree) throw new Error(`${where} was not collected before it was written`);
|
|
19171
|
-
const rootId = this.addElement(component.root, `${this.spec.permanentUrl}/component:${component.id}`, placeOf(component.root, `Component "${component.id}"`), "", "",
|
|
19244
|
+
const rootId = this.addElement(component.root, `${this.spec.permanentUrl}/component:${component.id}`, placeOf(component.root, `Component "${component.id}"`), "", "", "shown", tree);
|
|
19172
19245
|
const ids = Object.keys(tree.map.flat);
|
|
19173
19246
|
for (const slot of component.slots ?? []) if (!ids.includes(slot)) throw new AuthoringError("slot-unknown", `${where} declares the slot "${slot}", which is not an element of its tree${didYouMean(slot, ids) || "."} A slot is an element inside the component — usually an empty container — that an instance fills.`);
|
|
19174
19247
|
return {
|
|
@@ -19297,6 +19370,9 @@ var SpaceAuthor = class {
|
|
|
19297
19370
|
* state that names it — shows nothing on a bare visit either, and that is it working: it is conditional the way its
|
|
19298
19371
|
* children are. Bottom up, so a wrapper of such an element is too. Without it a suite asserting "everything named
|
|
19299
19372
|
* is visible" failed on the menu at rest, and the only way past was a condition on the parent that said nothing new.
|
|
19373
|
+
*
|
|
19374
|
+
* Not an element that chooses its children: its children are conditional because it decides which to show, and it is
|
|
19375
|
+
* on screen to decide — a dashboard is there whichever panels it draws.
|
|
19300
19376
|
*/
|
|
19301
19377
|
markConditionalByChildren(schema) {
|
|
19302
19378
|
const handles = [...Object.values(this.handles), ...Object.values(this.layoutHandles)].flatMap((root) => Object.values(root.elements));
|
|
@@ -19304,7 +19380,8 @@ var SpaceAuthor = class {
|
|
|
19304
19380
|
for (let changed = true; changed;) {
|
|
19305
19381
|
changed = false;
|
|
19306
19382
|
for (const handle of handles) {
|
|
19307
|
-
const
|
|
19383
|
+
const element = schema.flat[handle.id];
|
|
19384
|
+
const items = handle.conditional || this.choosesChildren(element) ? [] : element.definition.items ?? [];
|
|
19308
19385
|
if (items.length > 0 && items.every((child) => byId.get(child)?.conditional === true)) {
|
|
19309
19386
|
handle.conditional = true;
|
|
19310
19387
|
changed = true;
|
|
@@ -19322,6 +19399,10 @@ var SpaceAuthor = class {
|
|
|
19322
19399
|
drawsNothing(element) {
|
|
19323
19400
|
return this.options.drawsNothingTypes?.includes(this.pluginKeyOf(element)) ?? false;
|
|
19324
19401
|
}
|
|
19402
|
+
/** Whether the element's plugin declares it shows only some of its children, chosen as it runs. */
|
|
19403
|
+
choosesChildren(element) {
|
|
19404
|
+
return this.options.choosesChildrenTypes?.includes(this.pluginKeyOf(element)) ?? false;
|
|
19405
|
+
}
|
|
19325
19406
|
/** Plugin types already warned about a reserved attribute: said once, at the first element of the type. */
|
|
19326
19407
|
reservedWarned = /* @__PURE__ */ new Set();
|
|
19327
19408
|
/**
|
|
@@ -19364,9 +19445,9 @@ var SpaceAuthor = class {
|
|
|
19364
19445
|
* An element and everything under it, into `tree` — or, when it cannot be written, the reason kept for the end, so a
|
|
19365
19446
|
* run reports every element that is wrong rather than the first. Its subtree is skipped; its siblings are not.
|
|
19366
19447
|
*/
|
|
19367
|
-
addElement(spec, path, place, rootId, parentId,
|
|
19448
|
+
addElement(spec, path, place, rootId, parentId, above = "shown", tree = this.pagesTree) {
|
|
19368
19449
|
try {
|
|
19369
|
-
return this.writeElement(spec, path, place, rootId, parentId,
|
|
19450
|
+
return this.writeElement(spec, path, place, rootId, parentId, above, tree);
|
|
19370
19451
|
} catch (error) {
|
|
19371
19452
|
this.skipped += 1;
|
|
19372
19453
|
this.refusals.push({
|
|
@@ -19408,7 +19489,7 @@ var SpaceAuthor = class {
|
|
|
19408
19489
|
* is that place with its id in its position, so it never changes when its siblings move. `place` is how a person
|
|
19409
19490
|
* finds it: the nearest named element, and the steps from there.
|
|
19410
19491
|
*/
|
|
19411
|
-
writeElement(spec, path, place, rootId, parentId,
|
|
19492
|
+
writeElement(spec, path, place, rootId, parentId, above, tree) {
|
|
19412
19493
|
this.assertElementShape(spec, place);
|
|
19413
19494
|
const id = spec.id ?? this.nextId(spec.type);
|
|
19414
19495
|
const identity = `${path.slice(0, path.lastIndexOf("/"))}/#${id}`;
|
|
@@ -19423,7 +19504,9 @@ var SpaceAuthor = class {
|
|
|
19423
19504
|
bind: this.boundFrom(spec, where),
|
|
19424
19505
|
visible: spec.visible
|
|
19425
19506
|
});
|
|
19426
|
-
const
|
|
19507
|
+
const ownCondition = spec.visible !== void 0 || hasVisibilityBinding(bindings);
|
|
19508
|
+
const conditional = above !== "shown" || ownCondition;
|
|
19509
|
+
const shownWith = ownCondition ? void 0 : shownWithOf(above, id);
|
|
19427
19510
|
const ancestors = this.ancestorsOf(parentId, tree.map.flat);
|
|
19428
19511
|
bindings?.forEach((binding) => assertBindingShape(binding, where));
|
|
19429
19512
|
const sourceIndex = this.options.sourceTypes ? tree.sources : void 0;
|
|
@@ -19477,10 +19560,13 @@ var SpaceAuthor = class {
|
|
|
19477
19560
|
selector: element.definition.type === "reference" && element.attributes.referenceType === "component" ? instanceSelectorFor(id) : selectorFor(id),
|
|
19478
19561
|
named: spec.id !== void 0,
|
|
19479
19562
|
...conditional ? { conditional: true } : {},
|
|
19563
|
+
...shownWith === void 0 ? {} : { shownWith },
|
|
19480
19564
|
...[...ancestors].some((ancestor) => REPEATING_TYPES.has(tree.map.flat[ancestor].definition.type)) ? { repeated: true } : {},
|
|
19481
19565
|
...a$7(element) || this.drawsNothing(element) ? { boxless: true } : {}
|
|
19482
19566
|
});
|
|
19483
|
-
|
|
19567
|
+
const children = spec.row === void 0 ? spec.children : this.rowChildren(spec, spec.row, id, where);
|
|
19568
|
+
const childrenAbove = aboveChildren(conditional, shownWith, this.choosesChildren(element));
|
|
19569
|
+
children?.forEach((child, index) => this.addElement(child, `${identity}/${index}`, placeOf(child, place, index), ownRootId, id, childrenAbove, tree));
|
|
19484
19570
|
return id;
|
|
19485
19571
|
}
|
|
19486
19572
|
/** A `row` placed: a list's IS its children; a carousel's goes in a track, beside the controls it was given. */
|
|
@@ -19835,7 +19921,7 @@ var validateSnippet$1 = (snippet, options = {}) => {
|
|
|
19835
19921
|
}));
|
|
19836
19922
|
const { errors: spaceErrors, warnings } = validateSpace$1({
|
|
19837
19923
|
schema: {
|
|
19838
|
-
...r$
|
|
19924
|
+
...r$23.schema,
|
|
19839
19925
|
...schema
|
|
19840
19926
|
},
|
|
19841
19927
|
style
|
|
@@ -20090,7 +20176,7 @@ var categoryOf = (variable) => {
|
|
|
20090
20176
|
/** The name an element carried beside its id before the id became the name, where it carries a usable one. */
|
|
20091
20177
|
var idRefOf = (element) => {
|
|
20092
20178
|
const stored = element;
|
|
20093
|
-
if (!e$33(stored) || typeof stored.idRef !== "string" || !t$
|
|
20179
|
+
if (!e$33(stored) || typeof stored.idRef !== "string" || !t$29(stored.idRef)) return;
|
|
20094
20180
|
return stored.idRef;
|
|
20095
20181
|
};
|
|
20096
20182
|
/**
|
|
@@ -20106,7 +20192,7 @@ var idRefOf = (element) => {
|
|
|
20106
20192
|
var withNamedIds = (schema) => {
|
|
20107
20193
|
const stale = Object.values(schema.flat).filter((element) => {
|
|
20108
20194
|
const idRef = idRefOf(element);
|
|
20109
|
-
return idRef ? idRef !== element.id : !t$
|
|
20195
|
+
return idRef ? idRef !== element.id : !t$29(element.id);
|
|
20110
20196
|
});
|
|
20111
20197
|
if (stale.length === 0) return {
|
|
20112
20198
|
schema,
|
|
@@ -20841,7 +20927,7 @@ var readBlock = (reader, breakpoint, block, place, unwritable) => {
|
|
|
20841
20927
|
if (!isEmpty$1(split.unwritable)) park(breakpoint, state, split.unwritable);
|
|
20842
20928
|
}
|
|
20843
20929
|
for (const [pseudo, pseudoBlock] of Object.entries(block.pseudos ?? {})) {
|
|
20844
|
-
if (!n$
|
|
20930
|
+
if (!n$20(pseudo)) continue;
|
|
20845
20931
|
const pseudoReader = reader.pseudos.get(pseudo) ?? newReader();
|
|
20846
20932
|
readBlock(pseudoReader, breakpoint, pseudoBlock, {
|
|
20847
20933
|
...place,
|
|
@@ -21090,6 +21176,7 @@ var PAGE_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
|
21090
21176
|
"seoPageTitle",
|
|
21091
21177
|
"seoPageDescription",
|
|
21092
21178
|
"notFound",
|
|
21179
|
+
"documentScroll",
|
|
21093
21180
|
"enabled"
|
|
21094
21181
|
]);
|
|
21095
21182
|
var LAYOUT_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
@@ -21786,6 +21873,8 @@ var SpecReader = class {
|
|
|
21786
21873
|
const seoTitle = typeof attributes.seoPageTitle === "string" ? attributes.seoPageTitle : "";
|
|
21787
21874
|
const seoDescription = typeof attributes.seoPageDescription === "string" ? attributes.seoPageDescription : "";
|
|
21788
21875
|
const notFound = typeof attributes.notFound === "string" ? attributes.notFound : "";
|
|
21876
|
+
const documentScroll = n$37(attributes.documentScroll) ? attributes.documentScroll : void 0;
|
|
21877
|
+
if (!documentScroll && attributes.documentScroll !== void 0 && attributes.documentScroll !== "") this.correct("dropped-field", `${where} had \`documentScroll\` ${JSON.stringify(attributes.documentScroll)}, which no page reads; it is authored scrolling as any page does.`, page.id);
|
|
21789
21878
|
if (BINDING_CATEGORIES.some((category) => bindingsOf(page.definition.bindings, category).length > 0)) this.correct("dropped-field", `${where} had bindings of its own, which a page cannot declare.`, page.id);
|
|
21790
21879
|
return {
|
|
21791
21880
|
id: page.id,
|
|
@@ -21795,6 +21884,7 @@ var SpecReader = class {
|
|
|
21795
21884
|
...seoTitle ? { seoTitle } : {},
|
|
21796
21885
|
...seoDescription ? { seoDescription } : {},
|
|
21797
21886
|
...notFound ? { notFound } : {},
|
|
21887
|
+
...documentScroll ? { documentScroll } : {},
|
|
21798
21888
|
...folder ? { folder } : {},
|
|
21799
21889
|
...layout ? { layout } : {},
|
|
21800
21890
|
...accessLevel ? { accessLevel } : {},
|
|
@@ -23462,7 +23552,7 @@ var importedFiles = ({ probes, dark }) => {
|
|
|
23462
23552
|
const css = Object.fromEntries(ranges.filter(([, rules]) => Object.keys(rules).length > 0).map(([mode, rules]) => [mode, rulesOf(rules)]));
|
|
23463
23553
|
const listFile = listFiles.get(node.path);
|
|
23464
23554
|
const id = elementId(node.id ?? (listFile ? `${listFile}-item` : node.heading), node.tag === "div" ? "block" : node.tag);
|
|
23465
|
-
if (!t$
|
|
23555
|
+
if (!t$29(id)) throw new Error(`importedFiles: "${id}" is not a valid element id.`);
|
|
23466
23556
|
const props = {
|
|
23467
23557
|
id,
|
|
23468
23558
|
subType: SUB_TYPES.has(node.tag) ? node.tag : void 0,
|
|
@@ -25209,18 +25299,9 @@ var readDevTools = (driver, input) => driver.evaluate(readDevToolsInPage, input)
|
|
|
25209
25299
|
var failedFlowText = (flow) => `flow ${flow.trigger}${flow.on ? ` on ${flow.on}` : ""} failed` + flow.steps.filter((step) => step.status === "failed").map((step) => ` — ${step.title} [${step.action}]${step.error ? `: ${step.error}` : ""}`).join("");
|
|
25210
25300
|
//#endregion
|
|
25211
25301
|
//#region src/testing/onScreen.ts
|
|
25212
|
-
/**
|
|
25213
|
-
|
|
25214
|
-
* outermost shell first.
|
|
25215
|
-
*
|
|
25216
|
-
* Left out, because a bare visit cannot see them and asserting them would only fail: an element shown under a
|
|
25217
|
-
* condition (`conditional`), one rendered once per list row (`repeated` — several copies, or none while the list is
|
|
25218
|
-
* empty), and a provider with no tag (`boxless`), which has no box to be visible. The roots themselves are left out
|
|
25219
|
-
* too: a page and a layout are frames, and what a reader sees is what is in them.
|
|
25220
|
-
*/
|
|
25221
|
-
var onScreen = (handles, page, options = {}) => {
|
|
25302
|
+
/** The handles of a page and of every layout it renders inside, outermost shell first. */
|
|
25303
|
+
var rootsOf = (handles, page) => {
|
|
25222
25304
|
const pageHandle = handles.page(page);
|
|
25223
|
-
const ignored = new Set((options.ignore ?? []).map((id) => handles.element(id).id));
|
|
25224
25305
|
const roots = [pageHandle.elements];
|
|
25225
25306
|
const seen = /* @__PURE__ */ new Set();
|
|
25226
25307
|
for (let layoutId = pageHandle.layout; layoutId !== void 0 && !seen.has(layoutId);) {
|
|
@@ -25230,9 +25311,29 @@ var onScreen = (handles, page, options = {}) => {
|
|
|
25230
25311
|
roots.unshift(layout.elements);
|
|
25231
25312
|
layoutId = layout.layout;
|
|
25232
25313
|
}
|
|
25314
|
+
return roots.flatMap((elements) => Object.values(elements));
|
|
25315
|
+
};
|
|
25316
|
+
/** The handles a page check may owe at all: named (or every one, with `all`), drawn once, with a box, not ignored. */
|
|
25317
|
+
var owable = (handles, page, options) => {
|
|
25318
|
+
const ignored = new Set((options.ignore ?? []).map((id) => handles.element(id).id));
|
|
25233
25319
|
const all = options.elements === "all";
|
|
25234
|
-
return
|
|
25320
|
+
return rootsOf(handles, page).filter((handle) => (all || handle.named) && !handle.repeated && !handle.boxless && !ignored.has(handle.id));
|
|
25235
25321
|
};
|
|
25322
|
+
/**
|
|
25323
|
+
* What a page shows the moment it is opened, by handle: its own elements and those of every layout it renders inside,
|
|
25324
|
+
* outermost shell first.
|
|
25325
|
+
*
|
|
25326
|
+
* Left out, because a bare visit cannot see them and asserting them would only fail: an element shown under a
|
|
25327
|
+
* condition (`conditional`), one rendered once per list row (`repeated` — several copies, or none while the list is
|
|
25328
|
+
* empty), and a provider with no tag (`boxless`), which has no box to be visible. The roots themselves are left out
|
|
25329
|
+
* too: a page and a layout are frames, and what a reader sees is what is in them.
|
|
25330
|
+
*/
|
|
25331
|
+
var onScreen = (handles, page, options = {}) => owable(handles, page, options).filter((handle) => !handle.conditional);
|
|
25332
|
+
/**
|
|
25333
|
+
* What a page owes only if an element that chooses its children draws them (`shownWith`): left out of `onScreen`,
|
|
25334
|
+
* since a bare visit may show none, and owed like the rest once the child they come with is on screen.
|
|
25335
|
+
*/
|
|
25336
|
+
var onScreenIfChosen = (handles, page, options = {}) => owable(handles, page, options).filter((handle) => handle.shownWith !== void 0);
|
|
25236
25337
|
//#endregion
|
|
25237
25338
|
//#region src/testing/probe.ts
|
|
25238
25339
|
/**
|
|
@@ -25312,9 +25413,11 @@ function probePage(input) {
|
|
|
25312
25413
|
const missing = [];
|
|
25313
25414
|
const hidden = [];
|
|
25314
25415
|
const byWidth = [];
|
|
25315
|
-
|
|
25416
|
+
const notDrawn = [];
|
|
25417
|
+
for (const { id, selector, list, shownWith } of input.expected) {
|
|
25316
25418
|
const nodes = [...document.querySelectorAll(selector)];
|
|
25317
|
-
if (
|
|
25419
|
+
if (shownWith !== void 0 && ![...document.querySelectorAll(shownWith)].some(isVisible)) notDrawn.push(id);
|
|
25420
|
+
else if (nodes.length === 0) missing.push(id);
|
|
25318
25421
|
else if (!nodes.some(isVisible)) {
|
|
25319
25422
|
const hider = hiderOf(nodes[0]);
|
|
25320
25423
|
if (hider && laidOutByWidth(hider.at)) byWidth.push(id);
|
|
@@ -25610,6 +25713,7 @@ function probePage(input) {
|
|
|
25610
25713
|
marked: document.querySelector("[data-plitzi-el]") !== null,
|
|
25611
25714
|
missing,
|
|
25612
25715
|
hidden,
|
|
25716
|
+
notDrawn,
|
|
25613
25717
|
byWidth,
|
|
25614
25718
|
brokenImages,
|
|
25615
25719
|
overflow,
|
|
@@ -25673,13 +25777,15 @@ var defaultPage = (handles) => {
|
|
|
25673
25777
|
return home.id;
|
|
25674
25778
|
};
|
|
25675
25779
|
var pause$1 = (milliseconds) => new Promise((resolve) => setTimeout(resolve, milliseconds));
|
|
25676
|
-
var inspect = async (driver, page,
|
|
25780
|
+
var inspect = async (driver, page, owed, options) => {
|
|
25677
25781
|
const skip = new Set(options.skip ?? []);
|
|
25782
|
+
const expected = owed.map(({ handle }) => handle);
|
|
25678
25783
|
const input = {
|
|
25679
|
-
expected:
|
|
25784
|
+
expected: owed.map(({ handle, shownWith }) => ({
|
|
25680
25785
|
id: handle.id,
|
|
25681
25786
|
selector: handle.selector,
|
|
25682
|
-
...handle.type === "list" ? { list: true } : {}
|
|
25787
|
+
...handle.type === "list" ? { list: true } : {},
|
|
25788
|
+
...shownWith === void 0 ? {} : { shownWith }
|
|
25683
25789
|
})),
|
|
25684
25790
|
images: !skip.has("images"),
|
|
25685
25791
|
overflow: !skip.has("overflow"),
|
|
@@ -25691,7 +25797,7 @@ var inspect = async (driver, page, expected, options) => {
|
|
|
25691
25797
|
const issues = issuesOf(expected, findings);
|
|
25692
25798
|
if (issues.length === 0 || Date.now() >= deadline) return {
|
|
25693
25799
|
page,
|
|
25694
|
-
checked: expected.length,
|
|
25800
|
+
checked: expected.length - findings.notDrawn.length,
|
|
25695
25801
|
problems: issues.map((issue) => issue.message),
|
|
25696
25802
|
issues,
|
|
25697
25803
|
hiddenAtWidth: findings.byWidth
|
|
@@ -25714,7 +25820,10 @@ var inspect = async (driver, page, expected, options) => {
|
|
|
25714
25820
|
*/
|
|
25715
25821
|
var inspectPage = async (driver, handles, options = {}) => {
|
|
25716
25822
|
const page = handles.page(options.page ?? defaultPage(handles)).id;
|
|
25717
|
-
return inspect(driver, page, onScreen(handles, page, options), options)
|
|
25823
|
+
return inspect(driver, page, [...onScreen(handles, page, options).map((handle) => ({ handle })), ...onScreenIfChosen(handles, page, options).flatMap((handle) => handle.shownWith === void 0 ? [] : [{
|
|
25824
|
+
handle,
|
|
25825
|
+
shownWith: handles.element(handle.shownWith).selector
|
|
25826
|
+
}])], options);
|
|
25718
25827
|
};
|
|
25719
25828
|
/**
|
|
25720
25829
|
* The half of `inspectPage` that needs no space: images, sideways scroll, legibility — for a page whose documents are
|
|
@@ -26578,4 +26687,4 @@ var validateSnippet = (snippet, options = {}) => validateSnippet$1(snippet, {
|
|
|
26578
26687
|
...options
|
|
26579
26688
|
});
|
|
26580
26689
|
//#endregion
|
|
26581
|
-
export {
|
|
26690
|
+
export { EXPLAIN_KINDS as $, hiddenWhen as $i, toggleState as $n, withPluginCatalogs as $r, STYLE_STATES as $t, unrollPage as A, a$22 as Aa, svg as Ai, applyUtility as An, onClick as Ar, withNotificationsCss as At, CATALOG_TEMPLATE_IDENTITY as B, defaultLabel as Bi, copyToClipboard as Bn, onSubmit as Br, column as Bt, pageTexts as C, elementTriggers as Ca, modalContainer as Ci, selectorFor as Cn, carouselPlay as Cr, suggestClassOverrides as Ct, pageRegions as D, n$37 as Da, plitziSdk as Di, defineAction as Dn, declaredCallback as Dr, familyOf as Dt, diffPictures as E, typeTriggerDefinitions as Ea, paragraph as Ei, authoringCodesTable as En, closeModal as Er, refusalOf as Et, failedFlowText as F, n$47 as Fa, text$1 as Fi, authLogin as Fn, onKey as Fr, r$4 as Ft, toPortableSource as G, GLOBAL_SOURCES as Gi, moveState as Gn, resetForm as Gr, classRefs as Gt, blankTemplateFiles as H, element as Hi, delay as Hn, openModal as Hr, row as Ht, readDevTools as I, r$37 as Ia, themeToggle as Ii, authLogout as In, onLoad as Ir, t$6 as It, darkScheme as J, authorBinding as Ji, runServerAction as Jn, scrollTo as Jr, isStyleDeclaration as Jt, space as K, activeOn as Ki, navigate as Kn, scrollBy as Kr, isClassModifier as Kt, readDevToolsInPage as L, s$23 as La, video as Li, authRefreshDetails as Ln, onPageLoad as Lr, tokens as Lt, inspectPage as M, o$24 as Ma, tabContainerBody as Mi, SET_STATE_TYPES as Mn, onFlowError as Mr, i$2 as Mt, onScreen as N, s$21 as Na, tabContainerHeader as Ni, addNotification as Nn, onFlowProgress as Nr, FIXABLE_CODES as Nt, profilePictures as O, t$49 as Oa, reference as Oi, taskAction as On, declaredTrigger as Or, pageFamily as Ot, onScreenIfChosen as P, c$19 as Pa, tabContainerItem as Pi, appendState as Pn, onInterval as Pr, n$6 as Pt, BUILDER_NAMES as Q, hasVisibilityBinding as Qi, toggleInState as Qn, elementsFromManifest as Qr, BREAKPOINTS$1 as Qt, dataIssues as R, t$63 as Ra, component as Ri, cancelServerAction as Rn, onPointerDown as Rr, createTw as Rt, compareTexts as S, elementSourceTypes as Sa, markdown as Si, pathForSlug as Sn, carouselPause as Sr, withoutQuieted as St, comparePictures as T, typeCallbackDefinitions as Ta, pagination as Ti, flagSpecOf as Tn, closeDialog as Tr, SpaceRefusedError as Tt, catalogTemplateFiles as U, inferredLinkMode as Ui, hostAction as Un, publishOn as Ur, className as Ut, blankSpace as V, defineElement as Vi, cycleState as Vn, openDialog as Vr, grid as Vt, emptyTemplateFiles as W, COMPONENT_SOURCES as Wi, invalidateQueries as Wn, reloadApi as Wr, classNames as Wt, importedFiles as X, boundAttribute as Xi, setState as Xn, toggleElement as Xr, splitClassList as Xt, importSlug as Y, bindTemplate as Yi, runServerActionOrNotify as Yn, setFieldValue as Yr, modifierClassName as Yt, importProbe as Z, groupBindings as Zi, stepState as Zn, updateElement as Zr, styles as Zt, shortcutKey as _, elementCatalog as _a, heading as _i, digest as _n, t$15 as _r, transformerCatalog as _t, locateClasses as a, actionSource as aa, carousel as ai, cssShorthands as an, named$2 as ar, ELEMENT_FIELDS as at, summariseRenders as b, elementPartTypes as ba, list$1 as bi, instanceSelectorFor as bn, carouselGoTo as br, assertSpaceValid as bt, validateSnippet as c, closest as ca, container as ci, expandShorthandTraced as cn, whenSucceeded as cr, SCHEMA_SETTINGS as ct, i as d, AuthoringError as da, dropdown as di, cssProperties as dn, applyBuiltinCallback as dr, actionSpecFromEntry as dt, resolveSource as ea, e$33 as ei, css as en, twigTemplate as er, GLOBAL_CALLBACK_BUILDERS as et, o as f, authoringCodeEntry as fa, dropdownPopup as fi, cssPropertyName as fn, getGlobalCallback as fr, actionToSource as ft, pressShortcut as g, elementCallbacks as ga, formControl as gi, e$9 as gn, r$13 as gr, suggestTransformer as gt, withElement as h, elementAttributeValues as ha, form as hi, suggestCssProperty as hn, n$15 as hr, getTransformer as ht, lintSpace as i, withVisibility as ia, button$1 as ii, toResponsive as in, flowStepIds as ir, explanationText as it, inspectDocument as j, i$28 as ja, tabContainer as ji, getUtility as jn, onFlowEnd as jr, d$2 as jt, loadImages as k, elementAttributeNames as ka, richText as ki, BUILTIN_UTILITIES as kn, on as kr, notificationsCss as kt, validateSpace as l, scope as la, custom$1 as li, shorthandLonghands as ln, whileRunning as lr, specFromSpace as lt, singlePageSpace as m, elementAncestorTypes as ma, fontAwesome as mi, isCustomProperty as mn, i$13 as mr, BUILTIN_TRANSFORMERS as mt, authorSpace as n, variantFrom as na, blockHtml as ni, sameBlocks as nn, authorFlow as nr, explainKindOf as nt, locateElements as o, source as oa, carouselTrack as oi, expandShorthand as on, when as or, SPACE_FIELDS as ot, compactSvg as p, isSuggestionCode as pa, embed as pi, isCssProperty as pn, e$16 as pr, withNamedIds as pt, space$1 as q, activeWhen as qi, removeState as qn, scrollIntoView as qr, isClassRef as qt, fixSpace as r, visibleWhen as ra, blockJsx as ri, toBlocks as rn, authorFlows as rr, explainList as rt, planFixes as s, twig as sa, channel as si, expandShorthandPatch as sn, whenFailed as sr, specToSource as st, authorSnippet as t, toBindingSpecs as ta, apiContainer as ti, isRuleSetSpec as tn, webHook as tr, explain as tt, a as u, AUTHORING_CODES as ua, dialogContainer as ui, cssNumberValue as un, BUILTIN_GLOBAL_CALLBACKS as ur, compareSpaces as ut, openPage as v, elementDefaultAttributes as va, image as vi, slugify as vn, announceOn as vr, assertSnippetValid as vt, alignPictures as w, elementTypeNames as wa, nodeHtml as wi, flagGateOf as wn, carouselPrevious as wr, unusedDeclarations as wt, PAGE_TEXT_LIMIT as x, elementSlots as xa, listItem as xi, locate as xn, carouselNext as xr, suggestSpace as xt, inspectRenders as y, elementLeafTypes as ya, link as yi, buildHandles as yn, cancelApi as yr, PAGE_SPEC_FIELDS as yt, answerAction as z, defaultAttributes as zi, clearState as zn, onScroll as zr, tw as zt };
|