@plitzi/sdk-authoring 0.38.14 → 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 +102 -0
- package/dist/index-src.js +459 -407
- package/dist/index.d.ts +162 -19
- package/dist/index.js +3 -3
- package/dist/node.d.ts +77 -1
- package/dist/node.js +206 -2
- package/dist/plugin.d.ts +2 -1
- 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/plugin-reach.md +91 -0
- package/skills/plitzi-authoring/reference/plugins.md +15 -31
- 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$62 = [
|
|
|
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$61 = [
|
|
|
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) => {
|
|
@@ -927,7 +927,7 @@ var e$40 = {
|
|
|
927
927
|
};
|
|
928
928
|
//#endregion
|
|
929
929
|
//#region ../sdk-elements/dist/elements/advanced/BlockHtml/declaration.mjs
|
|
930
|
-
var t$
|
|
930
|
+
var t$61 = r$39()({
|
|
931
931
|
type: "blockHtml",
|
|
932
932
|
content: {
|
|
933
933
|
attributes: { content: "" },
|
|
@@ -944,7 +944,7 @@ var t$60 = r$38()({
|
|
|
944
944
|
});
|
|
945
945
|
//#endregion
|
|
946
946
|
//#region ../sdk-elements/dist/elements/advanced/BlockJsx/declaration.mjs
|
|
947
|
-
var t$
|
|
947
|
+
var t$60 = r$39()({
|
|
948
948
|
type: "blockJsx",
|
|
949
949
|
content: {
|
|
950
950
|
attributes: {
|
|
@@ -966,7 +966,7 @@ var t$59 = r$38()({
|
|
|
966
966
|
});
|
|
967
967
|
//#endregion
|
|
968
968
|
//#region ../sdk-elements/dist/elements/advanced/Custom/declaration.mjs
|
|
969
|
-
var t$
|
|
969
|
+
var t$59 = r$39()({
|
|
970
970
|
type: "custom",
|
|
971
971
|
content: {
|
|
972
972
|
attributes: {
|
|
@@ -996,7 +996,7 @@ var t$58 = r$38()({
|
|
|
996
996
|
});
|
|
997
997
|
//#endregion
|
|
998
998
|
//#region ../sdk-elements/dist/elements/advanced/NodeHtml/declaration.mjs
|
|
999
|
-
var t$
|
|
999
|
+
var t$58 = r$39()({
|
|
1000
1000
|
type: "nodeHtml",
|
|
1001
1001
|
content: {
|
|
1002
1002
|
attributes: { subType: "div" },
|
|
@@ -1021,7 +1021,7 @@ var t$57 = r$38()({
|
|
|
1021
1021
|
});
|
|
1022
1022
|
//#endregion
|
|
1023
1023
|
//#region ../sdk-elements/dist/elements/advanced/PlitziSdk/declaration.mjs
|
|
1024
|
-
var t$
|
|
1024
|
+
var t$57 = r$39()({
|
|
1025
1025
|
type: "plitziSdk",
|
|
1026
1026
|
content: {
|
|
1027
1027
|
attributes: {
|
|
@@ -1041,7 +1041,7 @@ var t$56 = r$38()({
|
|
|
1041
1041
|
});
|
|
1042
1042
|
//#endregion
|
|
1043
1043
|
//#region ../sdk-elements/dist/elements/advanced/Reference/declaration.mjs
|
|
1044
|
-
var t$
|
|
1044
|
+
var t$56 = r$39()({
|
|
1045
1045
|
type: "reference",
|
|
1046
1046
|
content: {
|
|
1047
1047
|
attributes: {
|
|
@@ -1065,7 +1065,7 @@ var t$55 = r$38()({
|
|
|
1065
1065
|
});
|
|
1066
1066
|
//#endregion
|
|
1067
1067
|
//#region ../sdk-elements/dist/elements/basic/Button/declaration.mjs
|
|
1068
|
-
var n$
|
|
1068
|
+
var n$46 = {
|
|
1069
1069
|
"padding-top": "6px",
|
|
1070
1070
|
"padding-left": "12px",
|
|
1071
1071
|
"padding-right": "12px",
|
|
@@ -1078,7 +1078,7 @@ var n$45 = {
|
|
|
1078
1078
|
"border-bottom-left-radius": "4px",
|
|
1079
1079
|
"border-bottom-right-radius": "4px"
|
|
1080
1080
|
};
|
|
1081
|
-
var r$
|
|
1081
|
+
var r$35 = r$39()({
|
|
1082
1082
|
type: "button",
|
|
1083
1083
|
attributeValues: {
|
|
1084
1084
|
subType: e$43()([
|
|
@@ -1109,22 +1109,22 @@ var r$34 = r$38()({
|
|
|
1109
1109
|
icon: "fa-solid fa-hand-pointer"
|
|
1110
1110
|
},
|
|
1111
1111
|
defaultStyle: {
|
|
1112
|
-
style: { base: { default: n$
|
|
1112
|
+
style: { base: { default: n$46 } },
|
|
1113
1113
|
subTypes: {
|
|
1114
1114
|
button: {
|
|
1115
1115
|
name: "Default Button",
|
|
1116
1116
|
displayMode: "desktop",
|
|
1117
|
-
style: { base: { default: n$
|
|
1117
|
+
style: { base: { default: n$46 } }
|
|
1118
1118
|
},
|
|
1119
1119
|
reset: {
|
|
1120
1120
|
name: "Reset Button",
|
|
1121
1121
|
displayMode: "desktop",
|
|
1122
|
-
style: { base: { default: n$
|
|
1122
|
+
style: { base: { default: n$46 } }
|
|
1123
1123
|
},
|
|
1124
1124
|
submit: {
|
|
1125
1125
|
name: "Submit Button",
|
|
1126
1126
|
displayMode: "desktop",
|
|
1127
|
-
style: { base: { default: n$
|
|
1127
|
+
style: { base: { default: n$46 } }
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
@@ -1132,7 +1132,7 @@ var r$34 = r$38()({
|
|
|
1132
1132
|
});
|
|
1133
1133
|
//#endregion
|
|
1134
1134
|
//#region ../sdk-elements/dist/elements/basic/Dropdown/declaration.mjs
|
|
1135
|
-
var n$
|
|
1135
|
+
var n$45 = r$39()({
|
|
1136
1136
|
type: "dropdown",
|
|
1137
1137
|
attributeValues: { popupPlacement: e$43()([
|
|
1138
1138
|
"left",
|
|
@@ -1181,7 +1181,7 @@ var n$44 = r$38()({
|
|
|
1181
1181
|
});
|
|
1182
1182
|
//#endregion
|
|
1183
1183
|
//#region ../sdk-elements/dist/elements/basic/Dropdown/DropdownPopup/declaration.mjs
|
|
1184
|
-
var t$
|
|
1184
|
+
var t$55 = r$39()({
|
|
1185
1185
|
type: "dropdownPopup",
|
|
1186
1186
|
ancestorType: "dropdown",
|
|
1187
1187
|
content: {
|
|
@@ -1228,7 +1228,7 @@ var t$54 = r$38()({
|
|
|
1228
1228
|
});
|
|
1229
1229
|
//#endregion
|
|
1230
1230
|
//#region ../sdk-elements/dist/elements/basic/Heading/declaration.mjs
|
|
1231
|
-
var n$
|
|
1231
|
+
var n$44 = r$39()({
|
|
1232
1232
|
type: "heading",
|
|
1233
1233
|
attributeValues: { subType: e$43()([
|
|
1234
1234
|
"h1",
|
|
@@ -1330,7 +1330,7 @@ var n$43 = r$38()({
|
|
|
1330
1330
|
});
|
|
1331
1331
|
//#endregion
|
|
1332
1332
|
//#region ../sdk-elements/dist/elements/basic/Link/declaration.mjs
|
|
1333
|
-
var n$
|
|
1333
|
+
var n$43 = r$39()({
|
|
1334
1334
|
type: "link",
|
|
1335
1335
|
attributeValues: {
|
|
1336
1336
|
mode: e$43()([
|
|
@@ -1382,7 +1382,7 @@ var n$42 = r$38()({
|
|
|
1382
1382
|
});
|
|
1383
1383
|
//#endregion
|
|
1384
1384
|
//#region ../sdk-elements/dist/elements/basic/Markdown/declaration.mjs
|
|
1385
|
-
var t$
|
|
1385
|
+
var t$54 = r$39()({
|
|
1386
1386
|
type: "markdown",
|
|
1387
1387
|
content: {
|
|
1388
1388
|
attributes: {
|
|
@@ -1432,7 +1432,7 @@ var t$53 = r$38()({
|
|
|
1432
1432
|
});
|
|
1433
1433
|
//#endregion
|
|
1434
1434
|
//#region ../sdk-elements/dist/elements/basic/Paragraph/declaration.mjs
|
|
1435
|
-
var t$
|
|
1435
|
+
var t$53 = r$39()({
|
|
1436
1436
|
type: "paragraph",
|
|
1437
1437
|
content: {
|
|
1438
1438
|
attributes: { content: "Paragraph" },
|
|
@@ -1452,7 +1452,7 @@ var t$52 = r$38()({
|
|
|
1452
1452
|
});
|
|
1453
1453
|
//#endregion
|
|
1454
1454
|
//#region ../sdk-elements/dist/elements/basic/RichText/declaration.mjs
|
|
1455
|
-
var n$
|
|
1455
|
+
var n$42 = r$39()({
|
|
1456
1456
|
type: "richText",
|
|
1457
1457
|
attributeValues: { format: e$43()([
|
|
1458
1458
|
"html",
|
|
@@ -1511,7 +1511,7 @@ var n$41 = r$38()({
|
|
|
1511
1511
|
});
|
|
1512
1512
|
//#endregion
|
|
1513
1513
|
//#region ../sdk-elements/dist/elements/basic/Text/declaration.mjs
|
|
1514
|
-
var t$
|
|
1514
|
+
var t$52 = r$39()({
|
|
1515
1515
|
type: "text",
|
|
1516
1516
|
content: {
|
|
1517
1517
|
attributes: { content: "Text" },
|
|
@@ -1528,7 +1528,7 @@ var t$51 = r$38()({
|
|
|
1528
1528
|
});
|
|
1529
1529
|
//#endregion
|
|
1530
1530
|
//#region ../sdk-elements/dist/elements/basic/ThemeToggle/declaration.mjs
|
|
1531
|
-
var n$
|
|
1531
|
+
var n$41 = {
|
|
1532
1532
|
"margin-top": "0px",
|
|
1533
1533
|
"margin-right": "0px",
|
|
1534
1534
|
"margin-bottom": "0px",
|
|
@@ -1549,7 +1549,7 @@ var n$40 = {
|
|
|
1549
1549
|
"letter-spacing": "inherit",
|
|
1550
1550
|
cursor: "pointer"
|
|
1551
1551
|
};
|
|
1552
|
-
var r$
|
|
1552
|
+
var r$34 = r$39()({
|
|
1553
1553
|
type: "themeToggle",
|
|
1554
1554
|
attributeValues: { subType: e$43()(["switch", "segmented"]) },
|
|
1555
1555
|
triggers: { onThemeChange: {
|
|
@@ -1582,10 +1582,10 @@ var r$33 = r$38()({
|
|
|
1582
1582
|
},
|
|
1583
1583
|
defaultStyle: {
|
|
1584
1584
|
style: {
|
|
1585
|
-
base: { default: n$
|
|
1585
|
+
base: { default: n$41 },
|
|
1586
1586
|
icon: { default: {} },
|
|
1587
1587
|
option: { default: {
|
|
1588
|
-
...n$
|
|
1588
|
+
...n$41,
|
|
1589
1589
|
"row-gap": "4px",
|
|
1590
1590
|
"column-gap": "4px"
|
|
1591
1591
|
} }
|
|
@@ -1596,7 +1596,7 @@ var r$33 = r$38()({
|
|
|
1596
1596
|
});
|
|
1597
1597
|
//#endregion
|
|
1598
1598
|
//#region ../sdk-elements/dist/elements/form/Form/declaration.mjs
|
|
1599
|
-
var n$
|
|
1599
|
+
var n$40 = r$39()({
|
|
1600
1600
|
type: "form",
|
|
1601
1601
|
attributeValues: { method: e$43()(["get", "post"]) },
|
|
1602
1602
|
sourceType: "apiContainer",
|
|
@@ -1678,7 +1678,7 @@ var n$39 = r$38()({
|
|
|
1678
1678
|
});
|
|
1679
1679
|
//#endregion
|
|
1680
1680
|
//#region ../sdk-elements/dist/elements/form/FormControl/declaration.mjs
|
|
1681
|
-
var n$
|
|
1681
|
+
var n$39 = {
|
|
1682
1682
|
width: "100%",
|
|
1683
1683
|
display: "flex",
|
|
1684
1684
|
"align-items": "center",
|
|
@@ -1707,11 +1707,11 @@ var n$38 = {
|
|
|
1707
1707
|
outline: "none",
|
|
1708
1708
|
position: "relative"
|
|
1709
1709
|
};
|
|
1710
|
-
var r$
|
|
1711
|
-
...n$
|
|
1710
|
+
var r$33 = {
|
|
1711
|
+
...n$39,
|
|
1712
1712
|
"line-height": "20px"
|
|
1713
1713
|
};
|
|
1714
|
-
var i$
|
|
1714
|
+
var i$27 = {
|
|
1715
1715
|
display: "flex",
|
|
1716
1716
|
cursor: "pointer",
|
|
1717
1717
|
"font-weight": "600",
|
|
@@ -1721,7 +1721,7 @@ var i$26 = {
|
|
|
1721
1721
|
"user-select": "none"
|
|
1722
1722
|
};
|
|
1723
1723
|
var a$21 = {
|
|
1724
|
-
...i$
|
|
1724
|
+
...i$27,
|
|
1725
1725
|
"margin-bottom": "4px"
|
|
1726
1726
|
};
|
|
1727
1727
|
var o$23 = {
|
|
@@ -1791,7 +1791,7 @@ var d$12 = {
|
|
|
1791
1791
|
cursor: "pointer"
|
|
1792
1792
|
};
|
|
1793
1793
|
var f$10 = {
|
|
1794
|
-
...n$
|
|
1794
|
+
...n$39,
|
|
1795
1795
|
cursor: "pointer"
|
|
1796
1796
|
};
|
|
1797
1797
|
var p$11 = {
|
|
@@ -1838,7 +1838,7 @@ var m$7 = (e, t, { field: n, icon: r } = {}) => ({
|
|
|
1838
1838
|
}
|
|
1839
1839
|
});
|
|
1840
1840
|
var h$4 = { field: l$13 };
|
|
1841
|
-
var g$4 = r$
|
|
1841
|
+
var g$4 = r$39()({
|
|
1842
1842
|
type: "formControl",
|
|
1843
1843
|
attributeValues: { subType: e$43()([
|
|
1844
1844
|
"text",
|
|
@@ -1913,21 +1913,21 @@ var g$4 = r$38()({
|
|
|
1913
1913
|
style: { base: { default: {} } },
|
|
1914
1914
|
subTypes: {
|
|
1915
1915
|
hidden: m$7("Form Control Hidden", {}),
|
|
1916
|
-
text: m$7("Form Control Text", r$
|
|
1917
|
-
number: m$7("Form Control Number", r$
|
|
1918
|
-
email: m$7("Form Control Email", r$
|
|
1919
|
-
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, {
|
|
1920
1920
|
...h$4,
|
|
1921
1921
|
icon: d$12
|
|
1922
1922
|
}),
|
|
1923
|
-
search: m$7("Form Control Search", r$
|
|
1924
|
-
url: m$7("Form Control URL", r$
|
|
1925
|
-
tel: m$7("Form Control Phone", r$
|
|
1926
|
-
date: m$7("Form Control Date", r$
|
|
1927
|
-
time: m$7("Form Control Time", r$
|
|
1928
|
-
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),
|
|
1929
1929
|
textarea: m$7("Form Control Textarea", {
|
|
1930
|
-
...r$
|
|
1930
|
+
...r$33,
|
|
1931
1931
|
color: "inherit",
|
|
1932
1932
|
resize: "vertical"
|
|
1933
1933
|
}),
|
|
@@ -1943,7 +1943,7 @@ var g$4 = r$38()({
|
|
|
1943
1943
|
"margin-left": "0px",
|
|
1944
1944
|
"margin-right": "4px"
|
|
1945
1945
|
} },
|
|
1946
|
-
label: { default: i$
|
|
1946
|
+
label: { default: i$27 },
|
|
1947
1947
|
requiredMark: { default: s$20 },
|
|
1948
1948
|
error: { default: o$23 }
|
|
1949
1949
|
}
|
|
@@ -1955,7 +1955,7 @@ var g$4 = r$38()({
|
|
|
1955
1955
|
base: { default: {} },
|
|
1956
1956
|
input: { default: p$11 },
|
|
1957
1957
|
label: { default: {
|
|
1958
|
-
...i$
|
|
1958
|
+
...i$27,
|
|
1959
1959
|
"align-items": "center"
|
|
1960
1960
|
} },
|
|
1961
1961
|
requiredMark: { default: s$20 },
|
|
@@ -1968,7 +1968,7 @@ var g$4 = r$38()({
|
|
|
1968
1968
|
});
|
|
1969
1969
|
//#endregion
|
|
1970
1970
|
//#region ../sdk-elements/dist/elements/internal/LayoutContainer/declaration.mjs
|
|
1971
|
-
var n$
|
|
1971
|
+
var n$38 = r$39()({
|
|
1972
1972
|
type: "layoutContainer",
|
|
1973
1973
|
attributeValues: { subType: e$43()([
|
|
1974
1974
|
"div",
|
|
@@ -2002,7 +2002,7 @@ var n$37 = r$38()({
|
|
|
2002
2002
|
});
|
|
2003
2003
|
//#endregion
|
|
2004
2004
|
//#region ../sdk-elements/dist/elements/internal/Loading/declaration.mjs
|
|
2005
|
-
var t$
|
|
2005
|
+
var t$51 = r$39()({
|
|
2006
2006
|
type: "loading",
|
|
2007
2007
|
content: {
|
|
2008
2008
|
attributes: {},
|
|
@@ -2020,7 +2020,7 @@ var t$50 = r$38()({
|
|
|
2020
2020
|
});
|
|
2021
2021
|
//#endregion
|
|
2022
2022
|
//#region ../sdk-elements/dist/elements/internal/NotFound/declaration.mjs
|
|
2023
|
-
var t$
|
|
2023
|
+
var t$50 = r$39()({
|
|
2024
2024
|
type: "notFound",
|
|
2025
2025
|
content: {
|
|
2026
2026
|
attributes: {},
|
|
@@ -2042,16 +2042,16 @@ var t$49 = r$38()({
|
|
|
2042
2042
|
});
|
|
2043
2043
|
//#endregion
|
|
2044
2044
|
//#region ../sdk-elements/dist/elements/internal/Page/declaration.mjs
|
|
2045
|
-
var t$
|
|
2046
|
-
var n$
|
|
2047
|
-
var r$
|
|
2045
|
+
var t$49 = ["locked", "noBounce"];
|
|
2046
|
+
var n$37 = (e) => t$49.some((t) => t === e);
|
|
2047
|
+
var r$32 = r$39()({
|
|
2048
2048
|
type: "page",
|
|
2049
2049
|
serverTemplates: [
|
|
2050
2050
|
"seoPageTitle",
|
|
2051
2051
|
"seoPageDescription",
|
|
2052
2052
|
"notFound"
|
|
2053
2053
|
],
|
|
2054
|
-
attributeValues: { documentScroll: t$
|
|
2054
|
+
attributeValues: { documentScroll: t$49 },
|
|
2055
2055
|
triggers: { onPageLoad: {
|
|
2056
2056
|
action: "onPageLoad",
|
|
2057
2057
|
title: "On Page Load",
|
|
@@ -2105,7 +2105,7 @@ var r$31 = r$38()({
|
|
|
2105
2105
|
});
|
|
2106
2106
|
//#endregion
|
|
2107
2107
|
//#region ../sdk-elements/dist/elements/media/Embed/declaration.mjs
|
|
2108
|
-
var t$
|
|
2108
|
+
var t$48 = r$39()({
|
|
2109
2109
|
type: "embed",
|
|
2110
2110
|
content: {
|
|
2111
2111
|
attributes: {
|
|
@@ -2134,7 +2134,7 @@ var t$47 = r$38()({
|
|
|
2134
2134
|
});
|
|
2135
2135
|
//#endregion
|
|
2136
2136
|
//#region ../sdk-elements/dist/elements/media/FontAwesome/declaration.mjs
|
|
2137
|
-
var t$
|
|
2137
|
+
var t$47 = r$39()({
|
|
2138
2138
|
type: "fontAwesome",
|
|
2139
2139
|
content: {
|
|
2140
2140
|
attributes: {
|
|
@@ -2158,7 +2158,7 @@ var t$46 = r$38()({
|
|
|
2158
2158
|
});
|
|
2159
2159
|
//#endregion
|
|
2160
2160
|
//#region ../sdk-elements/dist/elements/media/Image/declaration.mjs
|
|
2161
|
-
var n$
|
|
2161
|
+
var n$36 = r$39()({
|
|
2162
2162
|
type: "image",
|
|
2163
2163
|
attributeValues: {
|
|
2164
2164
|
fetchPriority: e$43()([
|
|
@@ -2198,7 +2198,7 @@ var n$35 = r$38()({
|
|
|
2198
2198
|
});
|
|
2199
2199
|
//#endregion
|
|
2200
2200
|
//#region ../sdk-elements/dist/elements/media/Svg/declaration.mjs
|
|
2201
|
-
var t$
|
|
2201
|
+
var t$46 = r$39()({
|
|
2202
2202
|
type: "svg",
|
|
2203
2203
|
content: {
|
|
2204
2204
|
attributes: {
|
|
@@ -2225,7 +2225,7 @@ var t$45 = r$38()({
|
|
|
2225
2225
|
});
|
|
2226
2226
|
//#endregion
|
|
2227
2227
|
//#region ../sdk-elements/dist/elements/media/Video/declaration.mjs
|
|
2228
|
-
var t$
|
|
2228
|
+
var t$45 = r$39()({
|
|
2229
2229
|
type: "video",
|
|
2230
2230
|
content: {
|
|
2231
2231
|
attributes: {
|
|
@@ -2252,7 +2252,7 @@ var t$44 = r$38()({
|
|
|
2252
2252
|
});
|
|
2253
2253
|
//#endregion
|
|
2254
2254
|
//#region ../sdk-elements/dist/elements/provider/ApiContainer/declaration.mjs
|
|
2255
|
-
var n$
|
|
2255
|
+
var n$35 = r$39()({
|
|
2256
2256
|
type: "apiContainer",
|
|
2257
2257
|
attributeValues: {
|
|
2258
2258
|
subType: e$43()([
|
|
@@ -2408,7 +2408,7 @@ var n$34 = r$38()({
|
|
|
2408
2408
|
});
|
|
2409
2409
|
//#endregion
|
|
2410
2410
|
//#region ../sdk-elements/dist/elements/provider/Channel/declaration.mjs
|
|
2411
|
-
var n$
|
|
2411
|
+
var n$34 = r$39()({
|
|
2412
2412
|
type: "channel",
|
|
2413
2413
|
attributeValues: { subType: e$43()([
|
|
2414
2414
|
"",
|
|
@@ -2501,7 +2501,7 @@ var n$33 = r$38()({
|
|
|
2501
2501
|
},
|
|
2502
2502
|
definition: {
|
|
2503
2503
|
label: "Channel",
|
|
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`) 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.",
|
|
2505
2505
|
items: []
|
|
2506
2506
|
},
|
|
2507
2507
|
market: {
|
|
@@ -2516,7 +2516,7 @@ var n$33 = r$38()({
|
|
|
2516
2516
|
});
|
|
2517
2517
|
//#endregion
|
|
2518
2518
|
//#region ../sdk-elements/dist/elements/structure/Carousel/CarouselTrack/declaration.mjs
|
|
2519
|
-
var t$
|
|
2519
|
+
var t$44 = r$39()({
|
|
2520
2520
|
type: "carouselTrack",
|
|
2521
2521
|
ancestorType: "carousel",
|
|
2522
2522
|
content: {
|
|
@@ -2539,7 +2539,7 @@ var t$43 = r$38()({
|
|
|
2539
2539
|
});
|
|
2540
2540
|
//#endregion
|
|
2541
2541
|
//#region ../sdk-elements/dist/elements/structure/Carousel/declaration.mjs
|
|
2542
|
-
var t$
|
|
2542
|
+
var t$43 = r$39()({
|
|
2543
2543
|
type: "carousel",
|
|
2544
2544
|
sourceType: "carousel",
|
|
2545
2545
|
triggers: { onChange: {
|
|
@@ -2620,7 +2620,7 @@ var t$42 = r$38()({
|
|
|
2620
2620
|
});
|
|
2621
2621
|
//#endregion
|
|
2622
2622
|
//#region ../sdk-elements/dist/elements/structure/Container/declaration.mjs
|
|
2623
|
-
var n$
|
|
2623
|
+
var n$33 = [
|
|
2624
2624
|
"div",
|
|
2625
2625
|
"header",
|
|
2626
2626
|
"footer",
|
|
@@ -2631,7 +2631,7 @@ var n$32 = [
|
|
|
2631
2631
|
"aside",
|
|
2632
2632
|
"figure"
|
|
2633
2633
|
];
|
|
2634
|
-
var r$
|
|
2634
|
+
var r$31 = r$39()({
|
|
2635
2635
|
type: "container",
|
|
2636
2636
|
attributeValues: {
|
|
2637
2637
|
subType: e$43()([
|
|
@@ -2683,7 +2683,7 @@ var r$30 = r$38()({
|
|
|
2683
2683
|
});
|
|
2684
2684
|
//#endregion
|
|
2685
2685
|
//#region ../sdk-elements/dist/elements/structure/DialogContainer/declaration.mjs
|
|
2686
|
-
var t$
|
|
2686
|
+
var t$42 = { default: {
|
|
2687
2687
|
height: "28px",
|
|
2688
2688
|
width: "28px",
|
|
2689
2689
|
"padding-top": "4px",
|
|
@@ -2707,7 +2707,7 @@ var t$41 = { default: {
|
|
|
2707
2707
|
"font-size": "inherit",
|
|
2708
2708
|
cursor: "pointer"
|
|
2709
2709
|
} };
|
|
2710
|
-
var n$
|
|
2710
|
+
var n$32 = {
|
|
2711
2711
|
"min-height": "30px",
|
|
2712
2712
|
"min-width": "30px",
|
|
2713
2713
|
"padding-top": "6px",
|
|
@@ -2728,16 +2728,16 @@ var n$31 = {
|
|
|
2728
2728
|
//#endregion
|
|
2729
2729
|
//#region ../sdk-elements/dist/elements/declarations/index.mjs
|
|
2730
2730
|
var V = {
|
|
2731
|
-
ApiContainer: n$
|
|
2732
|
-
BlockHtml: t$
|
|
2733
|
-
BlockJsx: t$
|
|
2734
|
-
Button: r$
|
|
2735
|
-
Carousel: t$
|
|
2736
|
-
CarouselTrack: t$
|
|
2737
|
-
Channel: n$
|
|
2738
|
-
Container: r$
|
|
2739
|
-
Custom: t$
|
|
2740
|
-
DialogContainer: r$
|
|
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()({
|
|
2741
2741
|
type: "dialogContainer",
|
|
2742
2742
|
sourceType: "dialogContainer",
|
|
2743
2743
|
triggers: {
|
|
@@ -2880,7 +2880,7 @@ var V = {
|
|
|
2880
2880
|
"font-weight": "500",
|
|
2881
2881
|
"line-height": "1.2"
|
|
2882
2882
|
} },
|
|
2883
|
-
headerCloseButton: t$
|
|
2883
|
+
headerCloseButton: t$42,
|
|
2884
2884
|
bodyContainer: { default: {
|
|
2885
2885
|
display: "flex",
|
|
2886
2886
|
"flex-direction": "column",
|
|
@@ -2892,9 +2892,9 @@ var V = {
|
|
|
2892
2892
|
"justify-content": "flex-end",
|
|
2893
2893
|
"margin-top": "8px"
|
|
2894
2894
|
} },
|
|
2895
|
-
acceptButton: { default: n$
|
|
2895
|
+
acceptButton: { default: n$32 },
|
|
2896
2896
|
cancelButton: { default: {
|
|
2897
|
-
...n$
|
|
2897
|
+
...n$32,
|
|
2898
2898
|
"margin-left": "12px"
|
|
2899
2899
|
} }
|
|
2900
2900
|
},
|
|
@@ -2903,17 +2903,17 @@ var V = {
|
|
|
2903
2903
|
},
|
|
2904
2904
|
initialItems: ["container"]
|
|
2905
2905
|
}),
|
|
2906
|
-
Dropdown: n$
|
|
2907
|
-
DropdownPopup: t$
|
|
2908
|
-
Embed: t$
|
|
2909
|
-
FontAwesome: t$
|
|
2910
|
-
Form: n$
|
|
2906
|
+
Dropdown: n$45,
|
|
2907
|
+
DropdownPopup: t$55,
|
|
2908
|
+
Embed: t$48,
|
|
2909
|
+
FontAwesome: t$47,
|
|
2910
|
+
Form: n$40,
|
|
2911
2911
|
FormControl: g$4,
|
|
2912
|
-
Heading: n$
|
|
2913
|
-
Image: n$
|
|
2914
|
-
LayoutContainer: n$
|
|
2915
|
-
Link: n$
|
|
2916
|
-
List: r$
|
|
2912
|
+
Heading: n$44,
|
|
2913
|
+
Image: n$36,
|
|
2914
|
+
LayoutContainer: n$38,
|
|
2915
|
+
Link: n$43,
|
|
2916
|
+
List: r$39()({
|
|
2917
2917
|
type: "list",
|
|
2918
2918
|
attributeValues: {
|
|
2919
2919
|
subType: e$43()(["ul", "ol"]),
|
|
@@ -2969,7 +2969,7 @@ var V = {
|
|
|
2969
2969
|
"listItem"
|
|
2970
2970
|
]
|
|
2971
2971
|
}),
|
|
2972
|
-
ListItem: r$
|
|
2972
|
+
ListItem: r$39()({
|
|
2973
2973
|
type: "listItem",
|
|
2974
2974
|
content: {
|
|
2975
2975
|
attributes: {},
|
|
@@ -2986,9 +2986,9 @@ var V = {
|
|
|
2986
2986
|
defaultStyle: { style: { base: { default: {} } } }
|
|
2987
2987
|
}
|
|
2988
2988
|
}),
|
|
2989
|
-
Loading: t$
|
|
2990
|
-
Markdown: t$
|
|
2991
|
-
ModalContainer: r$
|
|
2989
|
+
Loading: t$51,
|
|
2990
|
+
Markdown: t$54,
|
|
2991
|
+
ModalContainer: r$39()({
|
|
2992
2992
|
type: "modalContainer",
|
|
2993
2993
|
sourceType: "modalContainer",
|
|
2994
2994
|
triggers: {
|
|
@@ -3146,10 +3146,10 @@ var V = {
|
|
|
3146
3146
|
},
|
|
3147
3147
|
initialItems: ["container"]
|
|
3148
3148
|
}),
|
|
3149
|
-
NodeHtml: t$
|
|
3150
|
-
NotFound: t$
|
|
3151
|
-
Page: r$
|
|
3152
|
-
Pagination: r$
|
|
3149
|
+
NodeHtml: t$58,
|
|
3150
|
+
NotFound: t$50,
|
|
3151
|
+
Page: r$32,
|
|
3152
|
+
Pagination: r$39()({
|
|
3153
3153
|
type: "pagination",
|
|
3154
3154
|
attributeValues: {
|
|
3155
3155
|
mode: e$43()(["pages", "loadMore"]),
|
|
@@ -3199,12 +3199,12 @@ var V = {
|
|
|
3199
3199
|
}
|
|
3200
3200
|
}
|
|
3201
3201
|
}),
|
|
3202
|
-
Paragraph: t$
|
|
3203
|
-
PlitziSdk: t$
|
|
3204
|
-
Reference: t$
|
|
3205
|
-
RichText: n$
|
|
3206
|
-
Svg: t$
|
|
3207
|
-
TabContainer: r$
|
|
3202
|
+
Paragraph: t$53,
|
|
3203
|
+
PlitziSdk: t$57,
|
|
3204
|
+
Reference: t$56,
|
|
3205
|
+
RichText: n$42,
|
|
3206
|
+
Svg: t$46,
|
|
3207
|
+
TabContainer: r$39()({
|
|
3208
3208
|
type: "tabContainer",
|
|
3209
3209
|
content: {
|
|
3210
3210
|
attributes: {},
|
|
@@ -3225,7 +3225,7 @@ var V = {
|
|
|
3225
3225
|
},
|
|
3226
3226
|
initialItems: ["tabContainerHeader", "tabContainerBody"]
|
|
3227
3227
|
}),
|
|
3228
|
-
TabContainerBody: r$
|
|
3228
|
+
TabContainerBody: r$39()({
|
|
3229
3229
|
type: "tabContainerBody",
|
|
3230
3230
|
ancestorType: "tabContainer",
|
|
3231
3231
|
content: {
|
|
@@ -3257,7 +3257,7 @@ var V = {
|
|
|
3257
3257
|
"tabContainerItem"
|
|
3258
3258
|
]
|
|
3259
3259
|
}),
|
|
3260
|
-
TabContainerHeader: r$
|
|
3260
|
+
TabContainerHeader: r$39()({
|
|
3261
3261
|
type: "tabContainerHeader",
|
|
3262
3262
|
ancestorType: "tabContainer",
|
|
3263
3263
|
content: {
|
|
@@ -3289,7 +3289,7 @@ var V = {
|
|
|
3289
3289
|
"tabContainerItem"
|
|
3290
3290
|
]
|
|
3291
3291
|
}),
|
|
3292
|
-
TabContainerItem: r$
|
|
3292
|
+
TabContainerItem: r$39()({
|
|
3293
3293
|
type: "tabContainerItem",
|
|
3294
3294
|
content: {
|
|
3295
3295
|
attributes: {},
|
|
@@ -3313,9 +3313,9 @@ var V = {
|
|
|
3313
3313
|
}
|
|
3314
3314
|
}
|
|
3315
3315
|
}),
|
|
3316
|
-
Text: t$
|
|
3317
|
-
ThemeToggle: r$
|
|
3318
|
-
Video: t$
|
|
3316
|
+
Text: t$52,
|
|
3317
|
+
ThemeToggle: r$34,
|
|
3318
|
+
Video: t$45
|
|
3319
3319
|
};
|
|
3320
3320
|
var H = Object.fromEntries(Object.values(V).flatMap((e) => "serverTemplates" in e ? [[e.type, e.serverTemplates]] : []));
|
|
3321
3321
|
//#endregion
|
|
@@ -4634,7 +4634,7 @@ var e$39 = [
|
|
|
4634
4634
|
"computed"
|
|
4635
4635
|
];
|
|
4636
4636
|
e$39.filter((e) => e !== "state" && e !== "computed");
|
|
4637
|
-
var n$
|
|
4637
|
+
var n$29 = {
|
|
4638
4638
|
navigation: {
|
|
4639
4639
|
routeParams: "open",
|
|
4640
4640
|
queryParams: "open",
|
|
@@ -4693,20 +4693,20 @@ var e$38 = {
|
|
|
4693
4693
|
LowerR: 114,
|
|
4694
4694
|
LowerT: 116
|
|
4695
4695
|
};
|
|
4696
|
-
var t$
|
|
4697
|
-
var n$
|
|
4698
|
-
var r$
|
|
4699
|
-
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;
|
|
4700
4700
|
var a$20 = (t) => t === e$38.Space || t === e$38.Tab || t === e$38.Newline || t === e$38.CarriageReturn;
|
|
4701
4701
|
var o$22 = (e) => {
|
|
4702
4702
|
let r = e.length;
|
|
4703
|
-
if (r === 0 || !t$
|
|
4704
|
-
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;
|
|
4705
4705
|
return !0;
|
|
4706
4706
|
};
|
|
4707
4707
|
var s$19 = (r) => {
|
|
4708
4708
|
let a = r.length;
|
|
4709
|
-
if (a === 0 || !t$
|
|
4709
|
+
if (a === 0 || !t$34(r.charCodeAt(0))) return !1;
|
|
4710
4710
|
let o = !1, s = !1;
|
|
4711
4711
|
for (let c = 1; c < a; c++) {
|
|
4712
4712
|
let a = r.charCodeAt(c);
|
|
@@ -4716,11 +4716,11 @@ var s$19 = (r) => {
|
|
|
4716
4716
|
continue;
|
|
4717
4717
|
}
|
|
4718
4718
|
if (o) {
|
|
4719
|
-
if (s = i$
|
|
4719
|
+
if (s = i$26(a), !s && !t$34(a)) return !1;
|
|
4720
4720
|
o = !1;
|
|
4721
4721
|
continue;
|
|
4722
4722
|
}
|
|
4723
|
-
if (s ? !i$
|
|
4723
|
+
if (s ? !i$26(a) : !n$28(a)) return !1;
|
|
4724
4724
|
}
|
|
4725
4725
|
return !o;
|
|
4726
4726
|
};
|
|
@@ -4780,7 +4780,7 @@ var e$37 = (e) => {
|
|
|
4780
4780
|
//#endregion
|
|
4781
4781
|
//#region ../sdk-shared/dist/helpers/twigWrapper/Lexer/types.mjs
|
|
4782
4782
|
var e$36 = (e, t) => t ? `{{{${e}}}}` : `{{${e}}}`;
|
|
4783
|
-
var t$
|
|
4783
|
+
var t$33 = (t) => {
|
|
4784
4784
|
switch (t.type) {
|
|
4785
4785
|
case "text": return t.value;
|
|
4786
4786
|
case "variable": return e$36(t.content, t.raw);
|
|
@@ -4810,12 +4810,12 @@ var o$21 = class {
|
|
|
4810
4810
|
}
|
|
4811
4811
|
scanName() {
|
|
4812
4812
|
let e = this.pos;
|
|
4813
|
-
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++;
|
|
4814
4814
|
return this.src.slice(e, this.pos);
|
|
4815
4815
|
}
|
|
4816
4816
|
scanIndex() {
|
|
4817
4817
|
let e = this.pos;
|
|
4818
|
-
for (; !this.eof() && i$
|
|
4818
|
+
for (; !this.eof() && i$26(this.src.charCodeAt(this.pos));) this.pos++;
|
|
4819
4819
|
return this.src.slice(e, this.pos);
|
|
4820
4820
|
}
|
|
4821
4821
|
scanStringLiteral() {
|
|
@@ -4831,15 +4831,15 @@ var o$21 = class {
|
|
|
4831
4831
|
}
|
|
4832
4832
|
scanNumber() {
|
|
4833
4833
|
let n = this.pos;
|
|
4834
|
-
for (this.src.charCodeAt(this.pos) === e$38.Minus && this.pos++; this.pos < this.src.length && i$
|
|
4835
|
-
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++;
|
|
4836
4836
|
return Number(this.src.slice(n, this.pos));
|
|
4837
4837
|
}
|
|
4838
4838
|
matchKeyword(e) {
|
|
4839
4839
|
let t = this.pos + e.length;
|
|
4840
4840
|
if (t > this.src.length) return !1;
|
|
4841
4841
|
for (let t = 0; t < e.length; t++) if (this.src.charCodeAt(this.pos + t) !== e.charCodeAt(t)) return !1;
|
|
4842
|
-
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);
|
|
4843
4843
|
}
|
|
4844
4844
|
matchBinaryOp() {
|
|
4845
4845
|
this.skipWs();
|
|
@@ -4855,11 +4855,11 @@ var o$21 = class {
|
|
|
4855
4855
|
};
|
|
4856
4856
|
//#endregion
|
|
4857
4857
|
//#region ../sdk-shared/dist/helpers/twigWrapper/Parser/ExpressionParser.mjs
|
|
4858
|
-
var r$
|
|
4858
|
+
var r$28 = (e, t) => {
|
|
4859
4859
|
let n = new s$18(e, t), r = n.parseTernary();
|
|
4860
4860
|
return n.expectEnd(), r;
|
|
4861
4861
|
};
|
|
4862
|
-
var i$
|
|
4862
|
+
var i$25 = (e, t) => {
|
|
4863
4863
|
let n = new s$18(e, t), r = n.parseApplyChain();
|
|
4864
4864
|
return n.expectEnd(), r;
|
|
4865
4865
|
};
|
|
@@ -4979,7 +4979,7 @@ var s$18 = class extends o$21 {
|
|
|
4979
4979
|
return this.pos = this.src.length, {
|
|
4980
4980
|
type: "unary",
|
|
4981
4981
|
operator: "not",
|
|
4982
|
-
operand: r$
|
|
4982
|
+
operand: r$28(t, this.issues)
|
|
4983
4983
|
};
|
|
4984
4984
|
}
|
|
4985
4985
|
if (this.matchKeyword("in")) {
|
|
@@ -5093,7 +5093,7 @@ var s$18 = class extends o$21 {
|
|
|
5093
5093
|
});
|
|
5094
5094
|
}
|
|
5095
5095
|
parseSignedAtom() {
|
|
5096
|
-
return this.peek() === e$38.Minus && i$
|
|
5096
|
+
return this.peek() === e$38.Minus && i$26(this.at(1)) ? this.maybeTrailingFilters({
|
|
5097
5097
|
type: "literal",
|
|
5098
5098
|
value: this.scanNumber()
|
|
5099
5099
|
}) : this.peek() === e$38.Minus ? (this.pos++, this.skipWs(), {
|
|
@@ -5103,7 +5103,7 @@ var s$18 = class extends o$21 {
|
|
|
5103
5103
|
}) : this.parseAtom();
|
|
5104
5104
|
}
|
|
5105
5105
|
parseDefault() {
|
|
5106
|
-
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({
|
|
5107
5107
|
type: "literal",
|
|
5108
5108
|
value: this.scanNumber()
|
|
5109
5109
|
});
|
|
@@ -5139,7 +5139,7 @@ var s$18 = class extends o$21 {
|
|
|
5139
5139
|
type: "literal",
|
|
5140
5140
|
value: this.scanStringLiteral()
|
|
5141
5141
|
});
|
|
5142
|
-
if (i$
|
|
5142
|
+
if (i$26(n)) return this.maybeTrailingFilters({
|
|
5143
5143
|
type: "literal",
|
|
5144
5144
|
value: this.scanNumber()
|
|
5145
5145
|
});
|
|
@@ -5270,7 +5270,7 @@ var s$18 = class extends o$21 {
|
|
|
5270
5270
|
type: "literal",
|
|
5271
5271
|
value: this.scanStringLiteral()
|
|
5272
5272
|
};
|
|
5273
|
-
if (i$
|
|
5273
|
+
if (i$26(n)) return {
|
|
5274
5274
|
type: "literal",
|
|
5275
5275
|
value: this.scanNumber()
|
|
5276
5276
|
};
|
|
@@ -5313,12 +5313,12 @@ var s$18 = class extends o$21 {
|
|
|
5313
5313
|
};
|
|
5314
5314
|
//#endregion
|
|
5315
5315
|
//#region ../sdk-shared/dist/helpers/twigWrapper/Parser/helpers.mjs
|
|
5316
|
-
var n$
|
|
5316
|
+
var n$27 = (e) => {
|
|
5317
5317
|
let n = 0;
|
|
5318
5318
|
for (; n < e.length && !a$20(e.charCodeAt(n));) n++;
|
|
5319
5319
|
return e.slice(0, n);
|
|
5320
5320
|
};
|
|
5321
|
-
var r$
|
|
5321
|
+
var r$27 = (t) => {
|
|
5322
5322
|
let n = 0;
|
|
5323
5323
|
for (let r = 0; r + 1 < t.length; r++) {
|
|
5324
5324
|
let i = t.charCodeAt(r);
|
|
@@ -5335,7 +5335,7 @@ var c$16 = (e, t = !1, n) => {
|
|
|
5335
5335
|
if (!r.error) {
|
|
5336
5336
|
let e = r.peek();
|
|
5337
5337
|
if (e && e.type === "tag") {
|
|
5338
|
-
let t = n$
|
|
5338
|
+
let t = n$27(e.content.trim());
|
|
5339
5339
|
l$12.has(t) && (r.error = `Orphan closing tag: {% ${t} %} without matching opening tag`);
|
|
5340
5340
|
}
|
|
5341
5341
|
}
|
|
@@ -5399,7 +5399,7 @@ var f$9 = class {
|
|
|
5399
5399
|
let e = [];
|
|
5400
5400
|
for (; this.pos < this.tokens.length;) {
|
|
5401
5401
|
let t = this.peek();
|
|
5402
|
-
if (!t || t.type === "tag" && l$12.has(n$
|
|
5402
|
+
if (!t || t.type === "tag" && l$12.has(n$27(t.content.trim()))) break;
|
|
5403
5403
|
let n = this.parseNode();
|
|
5404
5404
|
n && e.push(n);
|
|
5405
5405
|
}
|
|
@@ -5433,7 +5433,7 @@ var f$9 = class {
|
|
|
5433
5433
|
},
|
|
5434
5434
|
source: i
|
|
5435
5435
|
};
|
|
5436
|
-
let o = r$
|
|
5436
|
+
let o = r$28(r, this.issues);
|
|
5437
5437
|
return {
|
|
5438
5438
|
type: "variable",
|
|
5439
5439
|
raw: t.raw,
|
|
@@ -5444,7 +5444,7 @@ var f$9 = class {
|
|
|
5444
5444
|
parseTag() {
|
|
5445
5445
|
let e = this.peek();
|
|
5446
5446
|
if (!e || e.type !== "tag") return null;
|
|
5447
|
-
let n = n$
|
|
5447
|
+
let n = n$27(e.content.trim());
|
|
5448
5448
|
switch (n) {
|
|
5449
5449
|
case "if": return this.parseIf();
|
|
5450
5450
|
case "for": return this.parseFor();
|
|
@@ -5461,14 +5461,14 @@ var f$9 = class {
|
|
|
5461
5461
|
if (e.type !== "tag") return this.error = "Malformed {% if %} tag", u$13();
|
|
5462
5462
|
let t = e.content.trim(), n = t.indexOf(" ") === -1 ? "" : t.slice(t.indexOf(" ") + 1).trim();
|
|
5463
5463
|
if (!n) return this.error = "Malformed {% if %} tag: missing condition", u$13();
|
|
5464
|
-
let r = r$
|
|
5464
|
+
let r = r$28(n, this.issues), i = this.parseBody(), s = [], c = null, l = !1;
|
|
5465
5465
|
for (; this.peek();) {
|
|
5466
5466
|
let e = this.peek();
|
|
5467
5467
|
if (!e || e.type !== "tag") break;
|
|
5468
|
-
let t = n$
|
|
5468
|
+
let t = n$27(e.content.trim());
|
|
5469
5469
|
if (t === "elseif") {
|
|
5470
5470
|
this.advance();
|
|
5471
|
-
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();
|
|
5472
5472
|
s.push({
|
|
5473
5473
|
condition: r,
|
|
5474
5474
|
body: i
|
|
@@ -5494,20 +5494,20 @@ var f$9 = class {
|
|
|
5494
5494
|
if (n.type !== "tag") return d$11();
|
|
5495
5495
|
let r = n.content.trim(), i = r.slice(r.indexOf(" ") + 1).trim(), c = /\sin\s/.exec(i);
|
|
5496
5496
|
if (!c) return this.error = "Invalid {% for %} syntax: missing the `in` keyword", d$11();
|
|
5497
|
-
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 ? {
|
|
5498
5498
|
type: "range",
|
|
5499
|
-
start: r$
|
|
5500
|
-
end: r$
|
|
5501
|
-
} : 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();
|
|
5502
5502
|
if (!c$17(g)) return this.error = `Invalid {% for %} variable name: "${g}"`, d$11();
|
|
5503
5503
|
if (h !== null && !c$17(h)) return this.error = `Invalid {% for %} key variable name: "${h}"`, d$11();
|
|
5504
5504
|
let _ = this.parseBody(), v = null;
|
|
5505
5505
|
if (this.peek()) {
|
|
5506
5506
|
let e = this.peek();
|
|
5507
|
-
e && e.type === "tag" && n$
|
|
5507
|
+
e && e.type === "tag" && n$27(e.content.trim()) === "else" && (this.advance(), v = this.parseBody());
|
|
5508
5508
|
}
|
|
5509
5509
|
let y = this.peek();
|
|
5510
|
-
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 %}";
|
|
5511
5511
|
let b = this.keepEmptyTokens ? this.reconstructRange(e, this.pos) : void 0;
|
|
5512
5512
|
return {
|
|
5513
5513
|
type: "for",
|
|
@@ -5521,7 +5521,7 @@ var f$9 = class {
|
|
|
5521
5521
|
}
|
|
5522
5522
|
reconstructRange(e, t) {
|
|
5523
5523
|
let n = "";
|
|
5524
|
-
for (let i = e; i < t; i++) n += t$
|
|
5524
|
+
for (let i = e; i < t; i++) n += t$33(this.tokens[i]);
|
|
5525
5525
|
return n;
|
|
5526
5526
|
}
|
|
5527
5527
|
parseSet() {
|
|
@@ -5547,7 +5547,7 @@ var f$9 = class {
|
|
|
5547
5547
|
return {
|
|
5548
5548
|
type: "set",
|
|
5549
5549
|
name: n.slice(0, r).trim(),
|
|
5550
|
-
value: r$
|
|
5550
|
+
value: r$28(n.slice(r + 1).trim(), this.issues)
|
|
5551
5551
|
};
|
|
5552
5552
|
}
|
|
5553
5553
|
parseApply() {
|
|
@@ -5558,7 +5558,7 @@ var f$9 = class {
|
|
|
5558
5558
|
filters: [],
|
|
5559
5559
|
body: []
|
|
5560
5560
|
};
|
|
5561
|
-
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();
|
|
5562
5562
|
return o && o.type === "tag" && this.advance(), {
|
|
5563
5563
|
type: "apply",
|
|
5564
5564
|
filters: r,
|
|
@@ -5568,8 +5568,8 @@ var f$9 = class {
|
|
|
5568
5568
|
};
|
|
5569
5569
|
//#endregion
|
|
5570
5570
|
//#region ../sdk-shared/dist/helpers/twigWrapper/TemplateCache/TemplateCache.mjs
|
|
5571
|
-
var r$
|
|
5572
|
-
var i$
|
|
5571
|
+
var r$26 = /* @__PURE__ */ new Map();
|
|
5572
|
+
var i$24 = 1024;
|
|
5573
5573
|
var a$18 = {
|
|
5574
5574
|
hits: 0,
|
|
5575
5575
|
misses: 0
|
|
@@ -5593,9 +5593,9 @@ var c$15 = (t) => {
|
|
|
5593
5593
|
};
|
|
5594
5594
|
};
|
|
5595
5595
|
var l$11 = () => {
|
|
5596
|
-
if (r$
|
|
5597
|
-
let e = r$
|
|
5598
|
-
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);
|
|
5599
5599
|
}
|
|
5600
5600
|
};
|
|
5601
5601
|
var u$12 = (e) => {
|
|
@@ -5621,17 +5621,17 @@ var u$12 = (e) => {
|
|
|
5621
5621
|
};
|
|
5622
5622
|
};
|
|
5623
5623
|
var d$10 = (e) => {
|
|
5624
|
-
let t = r$
|
|
5624
|
+
let t = r$26.get(e);
|
|
5625
5625
|
if (t) return a$18.hits++, t;
|
|
5626
5626
|
a$18.misses++;
|
|
5627
5627
|
let n = u$12(e);
|
|
5628
|
-
return n ? (l$11(), r$
|
|
5628
|
+
return n ? (l$11(), r$26.set(e, n), n) : null;
|
|
5629
5629
|
};
|
|
5630
5630
|
//#endregion
|
|
5631
5631
|
//#region ../sdk-shared/dist/helpers/twigWrapper/templateRoots.mjs
|
|
5632
|
-
var t$
|
|
5632
|
+
var t$32 = (e, n) => {
|
|
5633
5633
|
if (Array.isArray(e)) {
|
|
5634
|
-
for (let r of e) t$
|
|
5634
|
+
for (let r of e) t$32(r, n);
|
|
5635
5635
|
return;
|
|
5636
5636
|
}
|
|
5637
5637
|
if (typeof e == "object" && e) {
|
|
@@ -5640,16 +5640,16 @@ var t$31 = (e, n) => {
|
|
|
5640
5640
|
t.length > 0 && n.add(t.join("."));
|
|
5641
5641
|
return;
|
|
5642
5642
|
}
|
|
5643
|
-
for (let r of Object.values(e)) t$
|
|
5643
|
+
for (let r of Object.values(e)) t$32(r, n);
|
|
5644
5644
|
}
|
|
5645
5645
|
};
|
|
5646
|
-
var n$
|
|
5646
|
+
var n$26 = (n) => {
|
|
5647
5647
|
let r = d$10(n);
|
|
5648
5648
|
if (!r) return [];
|
|
5649
5649
|
let i = /* @__PURE__ */ new Set();
|
|
5650
|
-
return t$
|
|
5650
|
+
return t$32(r.nodes ?? r.nodesWithSource, i), [...i];
|
|
5651
5651
|
};
|
|
5652
|
-
var r$
|
|
5652
|
+
var r$25 = (e) => [...new Set(n$26(e).map((e) => e.split(".")[0]))];
|
|
5653
5653
|
//#endregion
|
|
5654
5654
|
//#region ../sdk-shared/dist/style/styleConstants.mjs
|
|
5655
5655
|
var e$35 = {
|
|
@@ -5667,7 +5667,7 @@ var e$35 = {
|
|
|
5667
5667
|
fonts: [],
|
|
5668
5668
|
cache: ""
|
|
5669
5669
|
};
|
|
5670
|
-
var t$
|
|
5670
|
+
var t$31 = {
|
|
5671
5671
|
DISPLAY: "display",
|
|
5672
5672
|
FLEX_WRAP: "flex-wrap",
|
|
5673
5673
|
FLEX_DIRECTION: "flex-direction",
|
|
@@ -5866,40 +5866,40 @@ var t$30 = {
|
|
|
5866
5866
|
STROKE: "stroke",
|
|
5867
5867
|
STROKE_WIDTH: "stroke-width"
|
|
5868
5868
|
};
|
|
5869
|
-
var n$
|
|
5870
|
-
t$
|
|
5871
|
-
t$
|
|
5872
|
-
t$
|
|
5873
|
-
t$
|
|
5874
|
-
t$
|
|
5875
|
-
t$
|
|
5876
|
-
t$
|
|
5877
|
-
t$
|
|
5878
|
-
t$
|
|
5879
|
-
t$
|
|
5880
|
-
t$
|
|
5881
|
-
t$
|
|
5882
|
-
t$
|
|
5883
|
-
t$
|
|
5884
|
-
t$
|
|
5885
|
-
t$
|
|
5886
|
-
t$
|
|
5887
|
-
t$
|
|
5888
|
-
t$
|
|
5889
|
-
t$
|
|
5890
|
-
t$
|
|
5891
|
-
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
|
|
5892
5892
|
];
|
|
5893
|
-
Object.values(t$
|
|
5893
|
+
Object.values(t$31).map((e) => ({
|
|
5894
5894
|
path: e,
|
|
5895
5895
|
label: e
|
|
5896
5896
|
}));
|
|
5897
|
-
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;
|
|
5898
5898
|
//#endregion
|
|
5899
5899
|
//#region ../sdk-shared/dist/schema/schemaConstants.mjs
|
|
5900
|
-
var t$
|
|
5901
|
-
var n$
|
|
5902
|
-
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 = {
|
|
5903
5903
|
schema: {
|
|
5904
5904
|
definition: {
|
|
5905
5905
|
name: "",
|
|
@@ -5935,7 +5935,7 @@ var r$22 = {
|
|
|
5935
5935
|
*/
|
|
5936
5936
|
var GLOBAL_SOURCES = e$39;
|
|
5937
5937
|
/** What an element inside a component can read besides its own tree: the globals, and what its instance hands in. */
|
|
5938
|
-
var COMPONENT_SOURCES = [...GLOBAL_SOURCES, n$
|
|
5938
|
+
var COMPONENT_SOURCES = [...GLOBAL_SOURCES, n$24];
|
|
5939
5939
|
/**
|
|
5940
5940
|
* Turns what an author wrote into the name the runtime resolves.
|
|
5941
5941
|
*
|
|
@@ -5954,7 +5954,7 @@ var resolveSource = (source, index, where, globals = GLOBAL_SOURCES) => {
|
|
|
5954
5954
|
if (globals.includes(head)) return source;
|
|
5955
5955
|
const prefix = index.get(head);
|
|
5956
5956
|
if (!prefix) {
|
|
5957
|
-
const inComponent = globals.includes(n$
|
|
5957
|
+
const inComponent = globals.includes(n$24);
|
|
5958
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." : ""}`);
|
|
5959
5959
|
}
|
|
5960
5960
|
return field ? `${prefix}_${head}.${field}` : `${prefix}_${head}`;
|
|
@@ -6125,7 +6125,7 @@ var activeOn = (cls, pages, options = {}) => {
|
|
|
6125
6125
|
* one only has to be one of them.
|
|
6126
6126
|
*/
|
|
6127
6127
|
var conditionSource = (template) => {
|
|
6128
|
-
const roots = r$
|
|
6128
|
+
const roots = r$25(template);
|
|
6129
6129
|
const global = roots.find((root) => GLOBAL_SOURCES.includes(root));
|
|
6130
6130
|
if (global) return global;
|
|
6131
6131
|
const element = roots.find((root) => root.includes("_"));
|
|
@@ -6571,13 +6571,13 @@ var video = defineElement(V.Video);
|
|
|
6571
6571
|
//#endregion
|
|
6572
6572
|
//#region ../sdk-schema/dist/helpers/elementId.mjs
|
|
6573
6573
|
var e$34 = /^[A-Za-z](?:[A-Za-z0-9_-]*[A-Za-z0-9_])?$/;
|
|
6574
|
-
var t$
|
|
6575
|
-
var r$
|
|
6576
|
-
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`;
|
|
6577
6577
|
var a$17 = (e, t) => {
|
|
6578
6578
|
let n = /* @__PURE__ */ new Set();
|
|
6579
6579
|
for (let r of t) {
|
|
6580
|
-
if (n.has(r.id) || i$
|
|
6580
|
+
if (n.has(r.id) || i$22(e, r.id)) return !1;
|
|
6581
6581
|
n.add(r.id);
|
|
6582
6582
|
}
|
|
6583
6583
|
return !0;
|
|
@@ -6861,7 +6861,7 @@ function assertKnownKeys(value, keys, where, hint = "") {
|
|
|
6861
6861
|
/** Refuses an id nothing can name: empty, or with characters a template or a selector cannot carry. */
|
|
6862
6862
|
var assertId = (id, where) => {
|
|
6863
6863
|
if (id === void 0) return;
|
|
6864
|
-
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".`);
|
|
6865
6865
|
};
|
|
6866
6866
|
/**
|
|
6867
6867
|
* A binding's own shape: the two fields it cannot be written without, and no field it ignores. What the binding
|
|
@@ -6892,20 +6892,20 @@ var paramIssue = (params, spec, where) => {
|
|
|
6892
6892
|
const suggestion = typeof value === "string" && invalid.options ? didYouMean(value, invalid.options) : "";
|
|
6893
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}.`;
|
|
6894
6894
|
}
|
|
6895
|
-
const missing = r$
|
|
6895
|
+
const missing = r$37(provided, effective, declared).at(0);
|
|
6896
6896
|
return missing === void 0 ? void 0 : `${where} needs "${missing}": ${declared[missing].description}`;
|
|
6897
6897
|
};
|
|
6898
6898
|
//#endregion
|
|
6899
6899
|
//#region ../sdk-schema/dist/helpers/elementTree.mjs
|
|
6900
6900
|
var e$32 = (e, t) => t && Object.hasOwn(e, t) ? e[t] : void 0;
|
|
6901
|
-
var t$
|
|
6901
|
+
var t$28 = (t, n) => {
|
|
6902
6902
|
let r = [], i = /* @__PURE__ */ new Set([n]);
|
|
6903
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);
|
|
6904
6904
|
return r;
|
|
6905
6905
|
};
|
|
6906
|
-
var n$
|
|
6906
|
+
var n$23 = (n, r) => {
|
|
6907
6907
|
let i = [], a = /* @__PURE__ */ new Set([r]), o = (s) => {
|
|
6908
|
-
for (let c of [s, ...t$
|
|
6908
|
+
for (let c of [s, ...t$28(n, s)]) {
|
|
6909
6909
|
let t = e$32(n, c);
|
|
6910
6910
|
if (c !== s || s !== r) {
|
|
6911
6911
|
if (a.has(c)) continue;
|
|
@@ -6917,7 +6917,7 @@ var n$22 = (n, r) => {
|
|
|
6917
6917
|
};
|
|
6918
6918
|
return o(r), i;
|
|
6919
6919
|
};
|
|
6920
|
-
var r$
|
|
6920
|
+
var r$21 = (t, n) => {
|
|
6921
6921
|
let r = [], i = /* @__PURE__ */ new Set([n]), a = (n) => {
|
|
6922
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));
|
|
6923
6923
|
};
|
|
@@ -6930,7 +6930,7 @@ var e$31 = {
|
|
|
6930
6930
|
tablet: 768,
|
|
6931
6931
|
mobile: 0
|
|
6932
6932
|
};
|
|
6933
|
-
var t$
|
|
6933
|
+
var t$27 = (t) => e$31[t] === 0 ? "0" : `${String(e$31[t] / 16)}rem`;
|
|
6934
6934
|
//#endregion
|
|
6935
6935
|
//#region ../sdk-shared/dist/style/displayModes.mjs
|
|
6936
6936
|
var e$30 = [
|
|
@@ -6938,10 +6938,10 @@ var e$30 = [
|
|
|
6938
6938
|
"tablet",
|
|
6939
6939
|
"mobile"
|
|
6940
6940
|
];
|
|
6941
|
-
var t$
|
|
6941
|
+
var t$26 = (t) => e$30.some((e) => e === t);
|
|
6942
6942
|
//#endregion
|
|
6943
6943
|
//#region ../sdk-shared/dist/style/fonts.mjs
|
|
6944
|
-
var i$
|
|
6944
|
+
var i$21 = (e) => {
|
|
6945
6945
|
try {
|
|
6946
6946
|
let t = new URL(e);
|
|
6947
6947
|
return t.protocol === "https:" && !t.username && !t.password;
|
|
@@ -6951,20 +6951,20 @@ var i$20 = (e) => {
|
|
|
6951
6951
|
};
|
|
6952
6952
|
//#endregion
|
|
6953
6953
|
//#region ../sdk-shared/dist/style/fontValidation.mjs
|
|
6954
|
-
var n$
|
|
6954
|
+
var n$22 = /* @__PURE__ */ new Set([
|
|
6955
6955
|
"system",
|
|
6956
6956
|
"google",
|
|
6957
6957
|
"remote",
|
|
6958
6958
|
"hosted"
|
|
6959
6959
|
]);
|
|
6960
|
-
var r$
|
|
6960
|
+
var r$20 = /* @__PURE__ */ new Set([
|
|
6961
6961
|
"auto",
|
|
6962
6962
|
"block",
|
|
6963
6963
|
"swap",
|
|
6964
6964
|
"fallback",
|
|
6965
6965
|
"optional"
|
|
6966
6966
|
]);
|
|
6967
|
-
var i$
|
|
6967
|
+
var i$20 = /* @__PURE__ */ new Set(["woff2", "woff"]);
|
|
6968
6968
|
var a$16 = 100;
|
|
6969
6969
|
var o$18 = (e) => {
|
|
6970
6970
|
for (let t = 0; t < e.length; t += 1) {
|
|
@@ -6999,7 +6999,7 @@ var f$7 = (t, n) => {
|
|
|
6999
6999
|
let { weight: r, style: a, format: o, unicodeRange: s } = t;
|
|
7000
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`);
|
|
7001
7001
|
if (a !== "normal" && a !== "italic") return c$13(`font.files[${n}].style must be "normal" or "italic"`);
|
|
7002
|
-
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"`);
|
|
7003
7003
|
let l = {
|
|
7004
7004
|
weight: r,
|
|
7005
7005
|
style: a,
|
|
@@ -7016,9 +7016,9 @@ var m$5 = (e) => !Array.isArray(e) || e.length === 0 ? c$13("font.files must be
|
|
|
7016
7016
|
var h$2 = (i) => {
|
|
7017
7017
|
if (!e$33(i)) return c$13("a font must be an object");
|
|
7018
7018
|
let { source: a, fallback: o, display: s, preload: h } = i;
|
|
7019
|
-
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");
|
|
7020
7020
|
if (typeof o != "string" || !o.trim()) return c$13("font.fallback is required: it is what renders until the face arrives");
|
|
7021
|
-
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");
|
|
7022
7022
|
if (h !== void 0 && typeof h != "boolean") return c$13("font.preload must be a boolean");
|
|
7023
7023
|
let g = {
|
|
7024
7024
|
family: l$9(i.family),
|
|
@@ -7047,12 +7047,12 @@ var h$2 = (i) => {
|
|
|
7047
7047
|
source: "remote",
|
|
7048
7048
|
files: m$5(n).map((e, n) => {
|
|
7049
7049
|
let r = f$7(e, n), { url: i } = e;
|
|
7050
|
-
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`) : {
|
|
7051
7051
|
...r,
|
|
7052
7052
|
url: i
|
|
7053
7053
|
};
|
|
7054
7054
|
})
|
|
7055
|
-
} : 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") : {
|
|
7056
7056
|
...g,
|
|
7057
7057
|
source: "remote",
|
|
7058
7058
|
stylesheet: e
|
|
@@ -7072,18 +7072,18 @@ var h$2 = (i) => {
|
|
|
7072
7072
|
var e$29 = /* @__PURE__ */ function(e) {
|
|
7073
7073
|
return e.COLOR = "color", e.SPACING = "spacing", e.SHADOW = "shadow", e.CUSTOM = "custom", e;
|
|
7074
7074
|
}({});
|
|
7075
|
-
var t$
|
|
7076
|
-
var n$
|
|
7075
|
+
var t$25 = Object.values(e$29);
|
|
7076
|
+
var n$21 = (e) => typeof e == "string" && t$25.includes(e);
|
|
7077
7077
|
//#endregion
|
|
7078
7078
|
//#region ../sdk-shared/dist/style/styleConditions.mjs
|
|
7079
7079
|
var e$28 = {
|
|
7080
7080
|
"motion-reduce": "@media (prefers-reduced-motion: reduce)",
|
|
7081
7081
|
"motion-safe": "@media (prefers-reduced-motion: no-preference)"
|
|
7082
7082
|
};
|
|
7083
|
-
var t$
|
|
7084
|
-
var r$
|
|
7085
|
-
var i$
|
|
7086
|
-
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}\)`;
|
|
7087
7087
|
var o$17 = new RegExp(String.raw`^container(?:\s+(?<name>-?[_a-zA-Z][\w-]*))?\s+(?<query>${a$15}(?:\s+and\s+${a$15})?)$`);
|
|
7088
7088
|
var s$15 = (e) => {
|
|
7089
7089
|
let t = o$17.exec(e.trim());
|
|
@@ -7093,12 +7093,12 @@ var s$15 = (e) => {
|
|
|
7093
7093
|
};
|
|
7094
7094
|
};
|
|
7095
7095
|
var c$12 = (e) => {
|
|
7096
|
-
if (r$
|
|
7096
|
+
if (r$19(e)) return e;
|
|
7097
7097
|
let t = s$15(e);
|
|
7098
7098
|
if (t) return t.name ? `container ${t.name} ${t.query}` : `container ${t.query}`;
|
|
7099
7099
|
};
|
|
7100
7100
|
var u$9 = (t) => {
|
|
7101
|
-
if (r$
|
|
7101
|
+
if (r$19(t)) return e$28[t];
|
|
7102
7102
|
let n = s$15(t);
|
|
7103
7103
|
if (n) return n.name ? `@container ${n.name} ${n.query}` : `@container ${n.query}`;
|
|
7104
7104
|
};
|
|
@@ -7119,7 +7119,7 @@ var e$27 = [
|
|
|
7119
7119
|
"first-line",
|
|
7120
7120
|
"selection"
|
|
7121
7121
|
];
|
|
7122
|
-
var t$
|
|
7122
|
+
var t$23 = {
|
|
7123
7123
|
before: "::before",
|
|
7124
7124
|
after: "::after",
|
|
7125
7125
|
marker: "::marker",
|
|
@@ -7128,9 +7128,9 @@ var t$22 = {
|
|
|
7128
7128
|
"first-line": "::first-line",
|
|
7129
7129
|
selection: "::selection"
|
|
7130
7130
|
};
|
|
7131
|
-
var n$
|
|
7132
|
-
var r$
|
|
7133
|
-
var i$
|
|
7131
|
+
var n$20 = (e) => Object.hasOwn(t$23, e);
|
|
7132
|
+
var r$18 = (e) => `::${e}`;
|
|
7133
|
+
var i$18 = [
|
|
7134
7134
|
"before",
|
|
7135
7135
|
"after",
|
|
7136
7136
|
"marker"
|
|
@@ -7249,8 +7249,8 @@ var e$26 = [
|
|
|
7249
7249
|
"odd",
|
|
7250
7250
|
"even"
|
|
7251
7251
|
];
|
|
7252
|
-
var t$
|
|
7253
|
-
var r$
|
|
7252
|
+
var t$22 = "plitzi-component--hidden";
|
|
7253
|
+
var r$17 = {
|
|
7254
7254
|
odd: 0,
|
|
7255
7255
|
even: 1,
|
|
7256
7256
|
first: 2,
|
|
@@ -7267,19 +7267,19 @@ var r$16 = {
|
|
|
7267
7267
|
disabled: 13,
|
|
7268
7268
|
hidden: 14
|
|
7269
7269
|
};
|
|
7270
|
-
var i$
|
|
7271
|
-
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;
|
|
7272
7272
|
var o$15 = (e) => Object.entries(e).sort(([e], [t]) => a$13(e) - a$13(t));
|
|
7273
7273
|
var l$7 = {
|
|
7274
7274
|
current: ":is([aria-current]:not([aria-current=\"false\"]),[aria-pressed=\"true\"],[aria-selected=\"true\"],[role=\"tabpanel\"]:not([hidden]))",
|
|
7275
7275
|
expanded: "[aria-expanded=\"true\"]",
|
|
7276
|
-
hidden: `.${t$
|
|
7276
|
+
hidden: `.${t$22}`,
|
|
7277
7277
|
first: ":first-child",
|
|
7278
7278
|
last: ":last-child",
|
|
7279
7279
|
odd: ":nth-child(odd)",
|
|
7280
7280
|
even: ":nth-child(even)"
|
|
7281
7281
|
};
|
|
7282
|
-
var u$7 = (e) => (i$
|
|
7282
|
+
var u$7 = (e) => (i$17(e) ? l$7[e] : void 0) ?? `:${e}`;
|
|
7283
7283
|
var d$6 = (e) => e === "hidden";
|
|
7284
7284
|
var p$7 = (e) => e === ">";
|
|
7285
7285
|
//#endregion
|
|
@@ -7291,7 +7291,7 @@ function e$25(e) {
|
|
|
7291
7291
|
}
|
|
7292
7292
|
return null;
|
|
7293
7293
|
}
|
|
7294
|
-
function t$
|
|
7294
|
+
function t$21(t, n) {
|
|
7295
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 [];
|
|
7296
7296
|
let r = [], i = /([^.[\]]+)|\[(\d+)\]/g, a;
|
|
7297
7297
|
for (; a = i.exec(t);) if (a[1]) {
|
|
@@ -7306,7 +7306,7 @@ function t$20(t, n) {
|
|
|
7306
7306
|
}
|
|
7307
7307
|
return r.length ? r : [];
|
|
7308
7308
|
}
|
|
7309
|
-
function n$
|
|
7309
|
+
function n$19(t, n) {
|
|
7310
7310
|
if (!Array.isArray(t)) return [];
|
|
7311
7311
|
let r = [];
|
|
7312
7312
|
for (let i of t) {
|
|
@@ -7316,14 +7316,14 @@ function n$18(t, n) {
|
|
|
7316
7316
|
}
|
|
7317
7317
|
return r;
|
|
7318
7318
|
}
|
|
7319
|
-
function r$
|
|
7320
|
-
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) : [] : [];
|
|
7321
7321
|
}
|
|
7322
7322
|
//#endregion
|
|
7323
7323
|
//#region ../../node_modules/@plitzi/plitzi-ui/dist/helpers/lodash/get.js
|
|
7324
|
-
function t$
|
|
7324
|
+
function t$20(t, n, r) {
|
|
7325
7325
|
if (t == null || !n) return r;
|
|
7326
|
-
let i = r$
|
|
7326
|
+
let i = r$16(n);
|
|
7327
7327
|
if (!i.length) return r;
|
|
7328
7328
|
let a = t;
|
|
7329
7329
|
for (let e of i) {
|
|
@@ -7337,8 +7337,8 @@ function t$19(t, n, r) {
|
|
|
7337
7337
|
}
|
|
7338
7338
|
//#endregion
|
|
7339
7339
|
//#region ../../node_modules/@plitzi/plitzi-ui/dist/helpers/lodash/set.js
|
|
7340
|
-
function t$
|
|
7341
|
-
let i = r$
|
|
7340
|
+
function t$19(t, n, r) {
|
|
7341
|
+
let i = r$16(n);
|
|
7342
7342
|
if (!i.length) return t;
|
|
7343
7343
|
let a = t;
|
|
7344
7344
|
for (let e = 0; e < i.length - 1; e++) {
|
|
@@ -7356,17 +7356,17 @@ function t$18(t, n, r) {
|
|
|
7356
7356
|
}
|
|
7357
7357
|
//#endregion
|
|
7358
7358
|
//#region ../../node_modules/@plitzi/plitzi-ui/dist/helpers/lodash/pick.js
|
|
7359
|
-
function n$
|
|
7359
|
+
function n$18(n, r) {
|
|
7360
7360
|
let i = {}, a = Array.isArray(r) ? r : [r];
|
|
7361
7361
|
for (let r of a) {
|
|
7362
|
-
let a = t$
|
|
7363
|
-
a !== void 0 && t$
|
|
7362
|
+
let a = t$20(n, r);
|
|
7363
|
+
a !== void 0 && t$19(i, r, a);
|
|
7364
7364
|
}
|
|
7365
7365
|
return i;
|
|
7366
7366
|
}
|
|
7367
7367
|
//#endregion
|
|
7368
7368
|
//#region ../sdk-style/dist/helpers/calculateInheriting.mjs
|
|
7369
|
-
var r$
|
|
7369
|
+
var r$15 = (e, t) => {
|
|
7370
7370
|
let n = [], r = t;
|
|
7371
7371
|
for (; r;) {
|
|
7372
7372
|
n.push(r);
|
|
@@ -7375,7 +7375,7 @@ var r$14 = (e, t) => {
|
|
|
7375
7375
|
}
|
|
7376
7376
|
return n;
|
|
7377
7377
|
};
|
|
7378
|
-
var i$
|
|
7378
|
+
var i$16 = (e, t, n, r, i) => {
|
|
7379
7379
|
let a = [], o = /* @__PURE__ */ new Set(), { definition: { styleSelectors: s, type: c }, attributes: { subType: l } } = e, u = (s[r] || "").split(" ").filter(Boolean);
|
|
7380
7380
|
for (let e of [...u, ...i]) {
|
|
7381
7381
|
if (o.has(e)) continue;
|
|
@@ -7396,10 +7396,10 @@ var i$15 = (e, t, n, r, i) => {
|
|
|
7396
7396
|
return a;
|
|
7397
7397
|
};
|
|
7398
7398
|
var a$12 = (e, n, r, i) => {
|
|
7399
|
-
let a = t$
|
|
7399
|
+
let a = t$20(i, `${e}.defaultStyle`, void 0);
|
|
7400
7400
|
if (a) return a.subTypes && !n && (n = Object.keys(a.subTypes)[0]), n && a.subTypes?.[n] && (a = a.subTypes[n]), {
|
|
7401
7401
|
name: "defaultStyle",
|
|
7402
|
-
attributes: { [r]: t$
|
|
7402
|
+
attributes: { [r]: t$20(a, `style.${r}`, {}) },
|
|
7403
7403
|
componentType: e,
|
|
7404
7404
|
isParent: !1,
|
|
7405
7405
|
isAncestor: !1,
|
|
@@ -7458,7 +7458,7 @@ var c$9 = (t, o, c, l, u = {}, d = {}) => {
|
|
|
7458
7458
|
tree: [],
|
|
7459
7459
|
style: {},
|
|
7460
7460
|
parentStyle: {}
|
|
7461
|
-
}, w = t ? r$
|
|
7461
|
+
}, w = t ? r$15(c, t) : [], T = /* @__PURE__ */ new Set();
|
|
7462
7462
|
for (let e of Object.keys(l)) {
|
|
7463
7463
|
let n = l[e];
|
|
7464
7464
|
if (n) {
|
|
@@ -7476,7 +7476,7 @@ var c$9 = (t, o, c, l, u = {}, d = {}) => {
|
|
|
7476
7476
|
continue;
|
|
7477
7477
|
}
|
|
7478
7478
|
if (!t && o) {
|
|
7479
|
-
let t = i$
|
|
7479
|
+
let t = i$16({
|
|
7480
7480
|
definition: {
|
|
7481
7481
|
type: o,
|
|
7482
7482
|
styleSelectors: {},
|
|
@@ -7499,7 +7499,7 @@ var c$9 = (t, o, c, l, u = {}, d = {}) => {
|
|
|
7499
7499
|
continue;
|
|
7500
7500
|
}
|
|
7501
7501
|
for (let r of w) {
|
|
7502
|
-
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);
|
|
7503
7503
|
!y && !c && !m && !h && Object.keys(l).length && (l = l.filter((e) => e.type === "element"));
|
|
7504
7504
|
for (let t of l) (!b.includes(t.name) || c) && C.tree.push({
|
|
7505
7505
|
name: t.name,
|
|
@@ -7523,7 +7523,7 @@ var c$9 = (t, o, c, l, u = {}, d = {}) => {
|
|
|
7523
7523
|
let E = {};
|
|
7524
7524
|
for (let t of C.tree) {
|
|
7525
7525
|
let r = s$12(t, p, S);
|
|
7526
|
-
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({
|
|
7527
7527
|
key: t.name,
|
|
7528
7528
|
value: r[e],
|
|
7529
7529
|
displayMode: t.displayMode
|
|
@@ -7553,7 +7553,7 @@ var d$5 = class {
|
|
|
7553
7553
|
this.flat = t, this.variables = r ?? [], this.pages = i ?? [], this.mintId = a ?? c$14, this.takenElsewhere = o ?? (() => !1);
|
|
7554
7554
|
}
|
|
7555
7555
|
nextId = (e, t = () => !1) => {
|
|
7556
|
-
let n = r$
|
|
7556
|
+
let n = r$22(this.flat);
|
|
7557
7557
|
return this.mintId(e, (e) => n.has(e) || this.takenElsewhere(e) || t(e));
|
|
7558
7558
|
};
|
|
7559
7559
|
addElement = (e, n, r = "inside", i = {}) => {
|
|
@@ -7585,15 +7585,15 @@ var d$5 = class {
|
|
|
7585
7585
|
});
|
|
7586
7586
|
};
|
|
7587
7587
|
updateElement = (e) => !e || !this.flat[e.id] ? !1 : (this.flat[e.id] = e, !0);
|
|
7588
|
-
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;
|
|
7589
7589
|
moveElement = (e, t, n, r = "inside") => {
|
|
7590
7590
|
let i = this.flat[e], a = this.flat[n];
|
|
7591
|
-
if (!i || !a || n === t || t$
|
|
7591
|
+
if (!i || !a || n === t || t$28(this.flat, t).includes(n)) return !1;
|
|
7592
7592
|
let o = this.placement(t, r, [n], n);
|
|
7593
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;
|
|
7594
7594
|
};
|
|
7595
7595
|
carryRoot = (e, t) => {
|
|
7596
|
-
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;
|
|
7597
7597
|
};
|
|
7598
7598
|
cloneElements = (e, t = "", n = "", s = !1) => {
|
|
7599
7599
|
let c = {
|
|
@@ -7601,7 +7601,7 @@ var d$5 = class {
|
|
|
7601
7601
|
item: void 0
|
|
7602
7602
|
}, l = {}, u = this.flat[e];
|
|
7603
7603
|
if (!u) return c;
|
|
7604
|
-
let d = [e, ...r$
|
|
7604
|
+
let d = [e, ...r$21(this.flat, e)], f = r$22(this.flat);
|
|
7605
7605
|
for (let e of d) {
|
|
7606
7606
|
let t = u$11(e, (e) => f.has(e) || this.takenElsewhere(e));
|
|
7607
7607
|
f.add(t), l[e] = t;
|
|
@@ -7618,7 +7618,7 @@ var d$5 = class {
|
|
|
7618
7618
|
removeElement = (e, t = !1) => {
|
|
7619
7619
|
let n = this.flat[e];
|
|
7620
7620
|
if (!n || n.definition.type === "page" && !t || t && n.attributes.default) return !1;
|
|
7621
|
-
for (let t of r$
|
|
7621
|
+
for (let t of r$21(this.flat, e)) delete this.flat[t];
|
|
7622
7622
|
let r = n.definition.parentId ? this.flat[n.definition.parentId] : void 0;
|
|
7623
7623
|
return r?.definition.items && (r.definition.items = r.definition.items.filter((t) => t !== e)), delete this.flat[e], !0;
|
|
7624
7624
|
};
|
|
@@ -7700,7 +7700,7 @@ var d$5 = class {
|
|
|
7700
7700
|
getElementVariables = (e, t, n = this.flat, r = this.variables) => {
|
|
7701
7701
|
let i = [], a = n[t]?.definition.styleSelectors;
|
|
7702
7702
|
if (!a) return i;
|
|
7703
|
-
let o = new RegExp(t$
|
|
7703
|
+
let o = new RegExp(t$30, "g");
|
|
7704
7704
|
return Object.values(a).filter(Boolean).forEach((t) => {
|
|
7705
7705
|
Object.values(e.platform).forEach((e) => {
|
|
7706
7706
|
let n = e[t];
|
|
@@ -7751,8 +7751,8 @@ var p$6 = (e, t) => Object.hasOwn(e.components, t) ? e.components[t] : void 0;
|
|
|
7751
7751
|
var m$3 = (e, t) => e.definition.type === "reference" && e.attributes.referenceType === "component" && (t === void 0 || e.attributes.referenceId === t);
|
|
7752
7752
|
//#endregion
|
|
7753
7753
|
//#region ../sdk-shared/dist/navigation/routes.mjs
|
|
7754
|
-
var i$
|
|
7755
|
-
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"));
|
|
7756
7756
|
var o$12 = (e, t) => {
|
|
7757
7757
|
if (!t || !e[t]) return "";
|
|
7758
7758
|
let { slug: n, parentId: r } = e[t];
|
|
@@ -7773,8 +7773,8 @@ function s$10(e, t, n, r = !1) {
|
|
|
7773
7773
|
[a$11(`/${c}`)]: n,
|
|
7774
7774
|
[a$11(`/${n}`)]: n
|
|
7775
7775
|
};
|
|
7776
|
-
if (!l && r) return i$
|
|
7777
|
-
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}`) : {
|
|
7778
7778
|
[a$11(`/${c}`)]: n,
|
|
7779
7779
|
[a$11(`/${n}`)]: n
|
|
7780
7780
|
};
|
|
@@ -7782,7 +7782,7 @@ function s$10(e, t, n, r = !1) {
|
|
|
7782
7782
|
...e,
|
|
7783
7783
|
[t.id]: t
|
|
7784
7784
|
}), {}), l), c].filter(Boolean).join("/");
|
|
7785
|
-
return r ? i$
|
|
7785
|
+
return r ? i$15(`/${d}`) : {
|
|
7786
7786
|
[a$11(`/${d}`)]: n,
|
|
7787
7787
|
[a$11(`/${n}`)]: n
|
|
7788
7788
|
};
|
|
@@ -7922,14 +7922,14 @@ var LintContext = class {
|
|
|
7922
7922
|
}
|
|
7923
7923
|
/** The elements `id` is nested in, as the document stores them — what "inside a form" means. */
|
|
7924
7924
|
ancestors(id) {
|
|
7925
|
-
return new Set(t$
|
|
7925
|
+
return new Set(t$28(this.flat, id));
|
|
7926
7926
|
}
|
|
7927
7927
|
/**
|
|
7928
7928
|
* The elements whose sources `id` can read: everything it renders inside, the layout shells around its page included
|
|
7929
7929
|
* — the walk the runtime makes, so a provider beside the slot in a layout is not in it.
|
|
7930
7930
|
*/
|
|
7931
7931
|
scope(id) {
|
|
7932
|
-
return new Set(n$
|
|
7932
|
+
return new Set(n$23(this.flat, id));
|
|
7933
7933
|
}
|
|
7934
7934
|
/** The route params an element's page declares; a layout renders on every page, so it sees all of them. */
|
|
7935
7935
|
routeParams(id) {
|
|
@@ -8038,17 +8038,17 @@ var withPluginCatalogs = (options) => {
|
|
|
8038
8038
|
leafTypes: [...rest.leafTypes ?? [], ...plugins.filter((declaration) => declaration.content?.definition && !Array.isArray(declaration.content.definition.items)).map((declaration) => declaration.type)]
|
|
8039
8039
|
};
|
|
8040
8040
|
};
|
|
8041
|
-
var n$
|
|
8041
|
+
var n$17 = (e) => {
|
|
8042
8042
|
let t = typeof e == "string" && e.trim() !== "" ? Number(e) : e;
|
|
8043
8043
|
return typeof t == "number" && Number.isInteger(t) && t >= 250 ? t : void 0;
|
|
8044
8044
|
};
|
|
8045
|
-
var t$
|
|
8045
|
+
var t$18 = [
|
|
8046
8046
|
"ctrl",
|
|
8047
8047
|
"alt",
|
|
8048
8048
|
"shift",
|
|
8049
8049
|
"meta"
|
|
8050
8050
|
];
|
|
8051
|
-
var n$
|
|
8051
|
+
var n$16 = {
|
|
8052
8052
|
ctrl: "ctrl",
|
|
8053
8053
|
control: "ctrl",
|
|
8054
8054
|
alt: "alt",
|
|
@@ -8059,7 +8059,7 @@ var n$15 = {
|
|
|
8059
8059
|
command: "meta",
|
|
8060
8060
|
mod: "mod"
|
|
8061
8061
|
};
|
|
8062
|
-
var r$
|
|
8062
|
+
var r$14 = {
|
|
8063
8063
|
esc: "escape",
|
|
8064
8064
|
space: "space",
|
|
8065
8065
|
spacebar: "space",
|
|
@@ -8072,7 +8072,7 @@ var r$13 = {
|
|
|
8072
8072
|
del: "delete",
|
|
8073
8073
|
return: "enter"
|
|
8074
8074
|
};
|
|
8075
|
-
var i$
|
|
8075
|
+
var i$14 = /* @__PURE__ */ new Set([
|
|
8076
8076
|
"escape",
|
|
8077
8077
|
"enter",
|
|
8078
8078
|
"tab",
|
|
@@ -8090,22 +8090,22 @@ var i$13 = /* @__PURE__ */ new Set([
|
|
|
8090
8090
|
"pagedown",
|
|
8091
8091
|
...Array.from({ length: 12 }, (e, t) => `f${t + 1}`)
|
|
8092
8092
|
]);
|
|
8093
|
-
var a$10 = (e, n) => [...t$
|
|
8093
|
+
var a$10 = (e, n) => [...t$18.filter((t) => e.has(t)), n].join("+");
|
|
8094
8094
|
var o$11 = (e, t) => {
|
|
8095
8095
|
let o = e.trim().toLowerCase();
|
|
8096
8096
|
if (!o) return { problem: "an empty shortcut (two commas in a row, or one at the end)" };
|
|
8097
8097
|
let s = o.endsWith("++") ? [...o.slice(0, -2).split("+"), "+"] : o.split("+"), c = o === "+" ? ["+"] : s.filter((e) => e !== ""), l = /* @__PURE__ */ new Set(), u = [];
|
|
8098
8098
|
for (let e of c) {
|
|
8099
|
-
if (Object.hasOwn(n$
|
|
8100
|
-
let r = n$
|
|
8099
|
+
if (Object.hasOwn(n$16, e)) {
|
|
8100
|
+
let r = n$16[e];
|
|
8101
8101
|
l.add(r === "mod" ? t ? "meta" : "ctrl" : r);
|
|
8102
8102
|
continue;
|
|
8103
8103
|
}
|
|
8104
|
-
u.push(Object.hasOwn(r$
|
|
8104
|
+
u.push(Object.hasOwn(r$14, e) ? r$14[e] : e);
|
|
8105
8105
|
}
|
|
8106
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"` };
|
|
8107
8107
|
let [d] = u;
|
|
8108
|
-
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) };
|
|
8109
8109
|
};
|
|
8110
8110
|
var s$9 = (e, t = !1) => {
|
|
8111
8111
|
let n = e.split(",").map((e) => o$11(e, t));
|
|
@@ -8152,17 +8152,20 @@ var steps_exports$1 = /* @__PURE__ */ __exportAll({
|
|
|
8152
8152
|
toggleElement: () => toggleElement,
|
|
8153
8153
|
updateElement: () => updateElement
|
|
8154
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
|
+
};
|
|
8155
8159
|
/**
|
|
8156
|
-
* `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 }}' })]`.
|
|
8157
8163
|
*
|
|
8158
8164
|
* The basic set every element registers is named and autocompletes; any other string is accepted because a TYPE
|
|
8159
8165
|
* may publish triggers of its own — a form's `onSubmit`, a provider's page change — and refusing those would make
|
|
8160
|
-
* 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')`.
|
|
8161
8168
|
*/
|
|
8162
|
-
var builtinTrigger = (trigger) => {
|
|
8163
|
-
if (Object.hasOwn(e$40, trigger)) return e$40[trigger];
|
|
8164
|
-
return Object.hasOwn(typeTriggerDefinitions, trigger) ? typeTriggerDefinitions[trigger] : void 0;
|
|
8165
|
-
};
|
|
8166
8169
|
var on = (trigger, params = {}) => {
|
|
8167
8170
|
const declared = builtinTrigger(trigger);
|
|
8168
8171
|
return {
|
|
@@ -8206,7 +8209,7 @@ var onKey = (keys) => {
|
|
|
8206
8209
|
* (`when(...)`) — a state an `onMouseEnter` sets, say. `{{ <this step's id>.count }}` is how many times it has ticked.
|
|
8207
8210
|
*/
|
|
8208
8211
|
var onInterval = (ms) => {
|
|
8209
|
-
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.`);
|
|
8210
8213
|
return on("onInterval", { interval: ms });
|
|
8211
8214
|
};
|
|
8212
8215
|
/**
|
|
@@ -8488,7 +8491,7 @@ var e$22 = {
|
|
|
8488
8491
|
elements: "Only these containers",
|
|
8489
8492
|
none: "None — this only reads"
|
|
8490
8493
|
};
|
|
8491
|
-
var t$
|
|
8494
|
+
var t$17 = (t, n = () => !0) => ({
|
|
8492
8495
|
invalidateQueries: {
|
|
8493
8496
|
type: "select",
|
|
8494
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.",
|
|
@@ -8510,7 +8513,7 @@ var t$16 = (t, n = () => !0) => ({
|
|
|
8510
8513
|
});
|
|
8511
8514
|
//#endregion
|
|
8512
8515
|
//#region ../sdk-interactions/dist/sources/ActionsSource/callbacks.mjs
|
|
8513
|
-
var t$
|
|
8516
|
+
var t$16 = {
|
|
8514
8517
|
runServerAction: {
|
|
8515
8518
|
source: "actions",
|
|
8516
8519
|
title: "Run Server Action",
|
|
@@ -8550,7 +8553,7 @@ var t$15 = {
|
|
|
8550
8553
|
default: "",
|
|
8551
8554
|
when: (e) => e.mode !== "detached"
|
|
8552
8555
|
},
|
|
8553
|
-
...t$
|
|
8556
|
+
...t$17([
|
|
8554
8557
|
"all",
|
|
8555
8558
|
"elements",
|
|
8556
8559
|
"none"
|
|
@@ -8889,7 +8892,44 @@ var e$17 = {
|
|
|
8889
8892
|
};
|
|
8890
8893
|
//#endregion
|
|
8891
8894
|
//#region ../sdk-shared/dist/authoring/spaceCallbacks.mjs
|
|
8892
|
-
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: {
|
|
8893
8933
|
source: "space",
|
|
8894
8934
|
title: "Add Notification",
|
|
8895
8935
|
strictParams: !0,
|
|
@@ -8902,37 +8942,25 @@ var e$16 = { addNotification: {
|
|
|
8902
8942
|
placement: {
|
|
8903
8943
|
type: "select",
|
|
8904
8944
|
description: "Where the toast appears on screen.",
|
|
8905
|
-
default:
|
|
8906
|
-
options: [
|
|
8907
|
-
"top-right",
|
|
8908
|
-
"top-center",
|
|
8909
|
-
"top-left",
|
|
8910
|
-
"bottom-right",
|
|
8911
|
-
"bottom-center",
|
|
8912
|
-
"bottom-left"
|
|
8913
|
-
]
|
|
8945
|
+
default: r$13.placement,
|
|
8946
|
+
options: [...e$16]
|
|
8914
8947
|
},
|
|
8915
8948
|
appearance: {
|
|
8916
8949
|
type: "select",
|
|
8917
8950
|
description: "Visual style of the notification: success, danger, warning or info.",
|
|
8918
|
-
default:
|
|
8919
|
-
options: [
|
|
8920
|
-
"success",
|
|
8921
|
-
"danger",
|
|
8922
|
-
"warning",
|
|
8923
|
-
"info"
|
|
8924
|
-
]
|
|
8951
|
+
default: r$13.appearance,
|
|
8952
|
+
options: [...t$15]
|
|
8925
8953
|
},
|
|
8926
8954
|
autoDismiss: {
|
|
8927
8955
|
type: "boolean",
|
|
8928
8956
|
description: "Whether the notification dismisses itself after a timeout.",
|
|
8929
|
-
default:
|
|
8957
|
+
default: r$13.autoDismiss,
|
|
8930
8958
|
canBind: !1
|
|
8931
8959
|
},
|
|
8932
8960
|
autoDismissTimeout: {
|
|
8933
8961
|
type: "number",
|
|
8934
8962
|
description: "Milliseconds before auto-dismiss. Only applies when autoDismiss is true.",
|
|
8935
|
-
default:
|
|
8963
|
+
default: r$13.autoDismissTimeout,
|
|
8936
8964
|
when: (e) => e.autoDismiss === !0
|
|
8937
8965
|
}
|
|
8938
8966
|
}
|
|
@@ -8955,12 +8983,12 @@ var e$16 = { addNotification: {
|
|
|
8955
8983
|
* of them is an authoring question nobody at runtime asks.
|
|
8956
8984
|
*/
|
|
8957
8985
|
var BUILTIN_GLOBAL_CALLBACKS = {
|
|
8958
|
-
...
|
|
8986
|
+
...i$13,
|
|
8959
8987
|
...e$17,
|
|
8960
8988
|
...e$20,
|
|
8961
8989
|
...e$19,
|
|
8962
8990
|
...e$21,
|
|
8963
|
-
...t$
|
|
8991
|
+
...t$16,
|
|
8964
8992
|
...e$18
|
|
8965
8993
|
};
|
|
8966
8994
|
/** The built-in globalCallback for an action, or undefined when the action is not a known built-in (a plugin
|
|
@@ -9010,7 +9038,7 @@ var hostFor = (step, host) => step.type === "trigger" || step.type === "callback
|
|
|
9010
9038
|
var assertStepIds = (ids, where) => {
|
|
9011
9039
|
const seen = /* @__PURE__ */ new Set();
|
|
9012
9040
|
for (const id of ids) {
|
|
9013
|
-
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 }}.`);
|
|
9014
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.`);
|
|
9015
9043
|
seen.add(id);
|
|
9016
9044
|
}
|
|
@@ -9530,7 +9558,7 @@ var BUILTIN_UTILITIES = {
|
|
|
9530
9558
|
label: "Fresh for (s)",
|
|
9531
9559
|
when: (e) => t$14(e) && (e.cache === !0 || e.cache === "true")
|
|
9532
9560
|
},
|
|
9533
|
-
...t$
|
|
9561
|
+
...t$17([
|
|
9534
9562
|
"origin",
|
|
9535
9563
|
"all",
|
|
9536
9564
|
"elements",
|
|
@@ -9788,18 +9816,6 @@ var inputOf$1 = (params) => Object.fromEntries(Object.entries(params).map(([key,
|
|
|
9788
9816
|
}];
|
|
9789
9817
|
}));
|
|
9790
9818
|
var kebab = (name) => name.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
9791
|
-
/**
|
|
9792
|
-
* 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
|
|
9793
|
-
* page (`call`), the HTML (`render`) or anywhere else, written once: the task's params are the action's input, its
|
|
9794
|
-
* title and description the action's, its address the id.
|
|
9795
|
-
*
|
|
9796
|
-
* ```ts
|
|
9797
|
-
* export const make = taskAction(tasks.make, { trigger: { type: 'call', access: 'public' } });
|
|
9798
|
-
* runServerAction({ actionId: make.id, input: { title: '{{ state.title }}' } });
|
|
9799
|
-
* ```
|
|
9800
|
-
*
|
|
9801
|
-
* An action of more than one step, or one whose input is not the task's params, is a `defineAction`.
|
|
9802
|
-
*/
|
|
9803
9819
|
var taskAction = (task, { trigger, id, name, description, output, limits }) => {
|
|
9804
9820
|
const input = inputOf$1(task.params);
|
|
9805
9821
|
const triggers = (Array.isArray(trigger) ? trigger : [trigger]).map((each) => ({
|
|
@@ -10134,8 +10150,8 @@ var warnClickOnStaticElement = (ctx, element, where) => {
|
|
|
10134
10150
|
var warnIgnoredRegionName = (ctx, element, where) => {
|
|
10135
10151
|
if (element.definition.type !== "container" || !says(ctx, element, "label")) return;
|
|
10136
10152
|
const subType = textOf(attributeValue(ctx, element, "subType"), "div");
|
|
10137
|
-
if (n$
|
|
10138
|
-
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);
|
|
10139
10155
|
};
|
|
10140
10156
|
/**
|
|
10141
10157
|
* Whether `id`'s subtree holds something a keyboard can reach — or markup the linter cannot read, which may — leaving
|
|
@@ -10443,9 +10459,9 @@ var s$8 = /* @__PURE__ */ new Set([
|
|
|
10443
10459
|
var c$7 = (t, n) => {
|
|
10444
10460
|
let r = [];
|
|
10445
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\" } }`"];
|
|
10446
|
-
let { access: i, publish: a, presence: c, grant: l,
|
|
10447
|
-
typeof
|
|
10448
|
-
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`);
|
|
10449
10465
|
return r;
|
|
10450
10466
|
};
|
|
10451
10467
|
//#endregion
|
|
@@ -11238,7 +11254,7 @@ var l$6 = (e) => {
|
|
|
11238
11254
|
//#region src/style/properties.ts
|
|
11239
11255
|
/** Every kebab-case CSS property Plitzi's style engine understands. Values written to a definition must use these
|
|
11240
11256
|
* exact keys — camelCase or unknown keys are rejected. */
|
|
11241
|
-
var cssProperties = Array.from(new Set(Object.values(t$
|
|
11257
|
+
var cssProperties = Array.from(new Set(Object.values(t$31))).sort();
|
|
11242
11258
|
var cssPropertySet = new Set(cssProperties);
|
|
11243
11259
|
var isCssProperty = (key) => cssPropertySet.has(key);
|
|
11244
11260
|
var toKebab = (key) => key.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
@@ -12132,7 +12148,7 @@ var assertPseudo = (pseudo, part) => {
|
|
|
12132
12148
|
const ruleSets = partRuleSets(part);
|
|
12133
12149
|
for (const rules of ruleSets) for (const [property, value] of Object.entries(rules)) {
|
|
12134
12150
|
if (property === "content") {
|
|
12135
|
-
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.`);
|
|
12136
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.`);
|
|
12137
12153
|
continue;
|
|
12138
12154
|
}
|
|
@@ -12144,7 +12160,7 @@ var toPseudos = (pseudos) => {
|
|
|
12144
12160
|
const parts = /* @__PURE__ */ new Map();
|
|
12145
12161
|
for (const [name, spec] of Object.entries(pseudos ?? {})) {
|
|
12146
12162
|
const bare = name.replace(/^:+/, "");
|
|
12147
|
-
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(", ")}.`);
|
|
12148
12164
|
const part = partOf(spec);
|
|
12149
12165
|
const rules = {
|
|
12150
12166
|
base: toResponsive(part.css),
|
|
@@ -12171,7 +12187,7 @@ var toConditions = (conditions) => {
|
|
|
12171
12187
|
const parts = /* @__PURE__ */ new Map();
|
|
12172
12188
|
for (const [key, spec] of Object.entries(conditions ?? {})) {
|
|
12173
12189
|
const condition = c$12(key);
|
|
12174
|
-
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).`);
|
|
12175
12191
|
if (parts.has(condition)) throw new AuthoringError("style-condition-unknown", `"${key}" is \`${condition}\`, which the class already writes under another spelling: keep one.`);
|
|
12176
12192
|
const part = partOf(spec);
|
|
12177
12193
|
parts.set(condition, {
|
|
@@ -13863,7 +13879,7 @@ var tokens = (variables) => {
|
|
|
13863
13879
|
};
|
|
13864
13880
|
//#endregion
|
|
13865
13881
|
//#region src/schema/lint/globalReads.ts
|
|
13866
|
-
var isShaped = (source) => Object.hasOwn(n$
|
|
13882
|
+
var isShaped = (source) => Object.hasOwn(n$29, source);
|
|
13867
13883
|
/** A global and the field read of it, at the start of a path: `auth.isAuthenticated`, `navigation.queryParams.next`. */
|
|
13868
13884
|
var GLOBAL_FIELD = /^([A-Za-z_$][\w$]*)\.([A-Za-z_$][\w$]*)/;
|
|
13869
13885
|
/** A flag the space does not declare: the read resolves to nothing, so what it gates is silently off. */
|
|
@@ -13876,7 +13892,7 @@ var reportUnknownComputed = (ctx, name, where, id) => {
|
|
|
13876
13892
|
};
|
|
13877
13893
|
/** A field of `navigation`, `auth` or `theme` that the source never publishes (`GLOBAL_SOURCE_FIELDS`). */
|
|
13878
13894
|
var checkShapedField = (ctx, source, field, where, id) => {
|
|
13879
|
-
const fields = Object.keys(n$
|
|
13895
|
+
const fields = Object.keys(n$29[source]);
|
|
13880
13896
|
if (fields.includes(field)) return;
|
|
13881
13897
|
const paths = fields.map((name) => `${source}.${name}`);
|
|
13882
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);
|
|
@@ -13896,7 +13912,7 @@ var checkGlobalRead = (ctx, path, where, id) => {
|
|
|
13896
13912
|
* Every `<global>.<field>` a template reads, off the parsed template: a string literal that only looks like one
|
|
13897
13913
|
* (`'https://auth.acme.com'`) is not a read, nor is a field of something else (`post.auth.name`).
|
|
13898
13914
|
*/
|
|
13899
|
-
var globalFieldsRead = (template) => n$
|
|
13915
|
+
var globalFieldsRead = (template) => n$26(template).flatMap((path) => {
|
|
13900
13916
|
const [source = "", field] = path.split(".");
|
|
13901
13917
|
return field ? [[source, field]] : [];
|
|
13902
13918
|
});
|
|
@@ -13997,7 +14013,7 @@ var lintPages = (ctx) => {
|
|
|
13997
14013
|
checkPageTemplates(ctx, pageId, where);
|
|
13998
14014
|
const { accessLevel, documentScroll, slug, folder } = page.attributes;
|
|
13999
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);
|
|
14000
|
-
if (documentScroll !== void 0 && documentScroll !== "" && !n$
|
|
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);
|
|
14001
14017
|
const path = `/${[typeof folder === "string" && folder ? folderPath(ctx, folder) : "", textOf(slug)].filter(Boolean).join("/")}`;
|
|
14002
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);
|
|
14003
14019
|
const key = `${path} ${typeof accessLevel === "string" && accessLevel ? accessLevel : "everyone"}`;
|
|
@@ -14275,7 +14291,7 @@ var checkAttributes = (ctx, element, where) => {
|
|
|
14275
14291
|
ctx.error("unknown-attribute", `${where} sets "${name}", which a "${type}" never reads${didYouMean(name, names) || "."}${hint || ` It reads ${names.join(", ")}.`}`, element.id);
|
|
14276
14292
|
continue;
|
|
14277
14293
|
}
|
|
14278
|
-
if (value === void 0 || value === null || typeof value === "string" && n$
|
|
14294
|
+
if (value === void 0 || value === null || typeof value === "string" && n$48(value)) continue;
|
|
14279
14295
|
if (Object.hasOwn(enums, name) && !(typeof value === "string" && enums[name].includes(value))) {
|
|
14280
14296
|
const tag = name === "subType" && typeof value === "string" ? value : void 0;
|
|
14281
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];
|
|
@@ -14404,10 +14420,10 @@ var checkAttributeTemplates = (ctx, element, where) => {
|
|
|
14404
14420
|
if (typeof value === "string" && value !== "") checkTemplate(ctx, value, `${where}: its "${name}"`, { kind: "binding" }, ctx.scope(element.id), element.id);
|
|
14405
14421
|
}
|
|
14406
14422
|
for (const [name, value] of Object.entries(rendered)) if (typeof value !== "string") checkTemplateInValue(ctx, element, where, name, value);
|
|
14407
|
-
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 });
|
|
14408
14424
|
const routeParams = ctx.routeParams(element.id);
|
|
14409
14425
|
const scope = ctx.scope(element.id);
|
|
14410
|
-
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}"`, {
|
|
14411
14427
|
kind: "attribute",
|
|
14412
14428
|
routeParams
|
|
14413
14429
|
}, scope, element.id);
|
|
@@ -14786,7 +14802,7 @@ var checkTriggerKeys = (ctx, node, where, hostId) => {
|
|
|
14786
14802
|
};
|
|
14787
14803
|
/** A repeating flow whose interval cannot repeat: not a whole number of milliseconds, or faster than the floor. */
|
|
14788
14804
|
var checkTriggerInterval = (ctx, node, where, hostId) => {
|
|
14789
|
-
if (node.action !== "onInterval" || n$
|
|
14805
|
+
if (node.action !== "onInterval" || n$17(node.params.interval) !== void 0) return;
|
|
14790
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);
|
|
14791
14807
|
};
|
|
14792
14808
|
/**
|
|
@@ -16164,7 +16180,7 @@ var n$1 = (n) => {
|
|
|
16164
16180
|
dark: []
|
|
16165
16181
|
};
|
|
16166
16182
|
return Object.entries(r).forEach(([n, r]) => {
|
|
16167
|
-
switch (n$
|
|
16183
|
+
switch (n$21(n) ? n : e$29.CUSTOM) {
|
|
16168
16184
|
case e$29.COLOR:
|
|
16169
16185
|
Object.keys(r).forEach((e) => {
|
|
16170
16186
|
let t = r[e];
|
|
@@ -16218,7 +16234,7 @@ var m = (e, t, n) => {
|
|
|
16218
16234
|
return i;
|
|
16219
16235
|
};
|
|
16220
16236
|
var h = (e, t, n) => Object.entries(e).flatMap(([e, { default: r, states: o }]) => {
|
|
16221
|
-
let l = r$
|
|
16237
|
+
let l = r$18(e), u = r.length ? [y(`&${l}`, r, {}, t, n)] : [];
|
|
16222
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));
|
|
16223
16239
|
return u;
|
|
16224
16240
|
});
|
|
@@ -16288,9 +16304,9 @@ var o$2 = (e, t = ":root", n = 2, r = !0) => {
|
|
|
16288
16304
|
};
|
|
16289
16305
|
//#endregion
|
|
16290
16306
|
//#region ../sdk-style/dist/StyleHelper.mjs
|
|
16291
|
-
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)]));
|
|
16292
16308
|
var c = (e) => {
|
|
16293
|
-
if (t$
|
|
16309
|
+
if (t$26(e)) return e$31[e];
|
|
16294
16310
|
let t = e.match(/(\d*\.?\d+)(px|rem)/);
|
|
16295
16311
|
if (!t) return 0;
|
|
16296
16312
|
let r = parseFloat(t[1]);
|
|
@@ -16528,7 +16544,7 @@ var stateAndPseudoOf = (written) => {
|
|
|
16528
16544
|
if (!match) return;
|
|
16529
16545
|
const state = match.at(1);
|
|
16530
16546
|
const pseudo = match.at(2);
|
|
16531
|
-
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;
|
|
16532
16548
|
return {
|
|
16533
16549
|
state,
|
|
16534
16550
|
pseudo
|
|
@@ -16548,7 +16564,7 @@ var targetOf = (written, isClass) => {
|
|
|
16548
16564
|
className,
|
|
16549
16565
|
state
|
|
16550
16566
|
};
|
|
16551
|
-
return n$
|
|
16567
|
+
return n$20(pseudo) ? {
|
|
16552
16568
|
className,
|
|
16553
16569
|
state,
|
|
16554
16570
|
pseudo
|
|
@@ -16595,7 +16611,7 @@ var declarationsOf = (body) => {
|
|
|
16595
16611
|
* there, and a `content` CSS can read. A rule that does not is left in `customCss`, where it was written and does exactly
|
|
16596
16612
|
* what it did.
|
|
16597
16613
|
*/
|
|
16598
|
-
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));
|
|
16599
16615
|
/** Where a pseudo-element's rules land, its state aside: the class, the pseudo-element and the condition. */
|
|
16600
16616
|
var pseudoKey = ({ className, pseudo, condition }) => `${className}::${pseudo ?? ""}@${condition ?? ""}`;
|
|
16601
16617
|
/**
|
|
@@ -17953,7 +17969,7 @@ var o$1 = (i, a) => {
|
|
|
17953
17969
|
});
|
|
17954
17970
|
}, k = () => {
|
|
17955
17971
|
Object.values(l).forEach((t) => {
|
|
17956
|
-
t && (t$
|
|
17972
|
+
t && (t$29(t.id) || s.push({
|
|
17957
17973
|
code: "INVALID_ELEMENT_ID",
|
|
17958
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)`,
|
|
17959
17975
|
elementId: t.id
|
|
@@ -18006,7 +18022,7 @@ var o$1 = (i, a) => {
|
|
|
18006
18022
|
if (!r) return;
|
|
18007
18023
|
let i = Object.keys(r);
|
|
18008
18024
|
Object.entries(r).forEach(([r, a]) => {
|
|
18009
|
-
t$
|
|
18025
|
+
t$29(r) || s.push({
|
|
18010
18026
|
code: "INVALID_INTERACTION_ID",
|
|
18011
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 }}`,
|
|
18012
18028
|
elementId: n.id
|
|
@@ -18071,7 +18087,7 @@ var o$1 = (i, a) => {
|
|
|
18071
18087
|
code: "COMPONENT_ID_MISMATCH",
|
|
18072
18088
|
message: `${d} has id "${l.id}"`,
|
|
18073
18089
|
componentId: t
|
|
18074
|
-
}), t$
|
|
18090
|
+
}), t$29(t) || s.push({
|
|
18075
18091
|
code: "INVALID_COMPONENT_ID",
|
|
18076
18092
|
message: `${d} has a name that must start with a letter, then letters, numbers, hyphens and underscores`,
|
|
18077
18093
|
componentId: t
|
|
@@ -18308,6 +18324,20 @@ var componentWhere = (component) => {
|
|
|
18308
18324
|
/** The types that render their children once per item: everything inside one is repeated, one copy per row. */
|
|
18309
18325
|
var REPEATING_TYPES = /* @__PURE__ */ new Set(["list", "carouselTrack"]);
|
|
18310
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
|
+
/**
|
|
18311
18341
|
* How a person finds an element in what they wrote: its own name when it has one, otherwise the steps from the nearest
|
|
18312
18342
|
* one that does — `"store-footer" › container[1] › text[0]` rather than a path of indices from the page down.
|
|
18313
18343
|
*/
|
|
@@ -18961,13 +18991,13 @@ var SpaceAuthor = class {
|
|
|
18961
18991
|
const where = componentWhere(component);
|
|
18962
18992
|
assertKnownKeys(component, COMPONENT_SPEC_KEYS, where);
|
|
18963
18993
|
const id = component.id;
|
|
18964
|
-
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)}')\`.`);
|
|
18965
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.`);
|
|
18966
18996
|
componentIds.add(component.id);
|
|
18967
18997
|
for (const [name, prop] of Object.entries(component.props ?? {})) {
|
|
18968
18998
|
const problem = c$8(name);
|
|
18969
18999
|
if (problem) throw new AuthoringError("prop-name", `${where}: ${problem}.`);
|
|
18970
|
-
const types = t$
|
|
19000
|
+
const types = t$63;
|
|
18971
19001
|
const type = prop.type;
|
|
18972
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\`.`);
|
|
18973
19003
|
}
|
|
@@ -19064,7 +19094,7 @@ var SpaceAuthor = class {
|
|
|
19064
19094
|
}
|
|
19065
19095
|
/** The element about to be placed under `parentId`, and everything that one is nested in. */
|
|
19066
19096
|
ancestorsOf(parentId, flat) {
|
|
19067
|
-
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();
|
|
19068
19098
|
}
|
|
19069
19099
|
/**
|
|
19070
19100
|
* Where a page's ids are derived from — its slug, unless another page already claimed it.
|
|
@@ -19211,7 +19241,7 @@ var SpaceAuthor = class {
|
|
|
19211
19241
|
const where = componentWhere(component);
|
|
19212
19242
|
const tree = this.componentTrees.get(component.id);
|
|
19213
19243
|
if (!tree) throw new Error(`${where} was not collected before it was written`);
|
|
19214
|
-
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);
|
|
19215
19245
|
const ids = Object.keys(tree.map.flat);
|
|
19216
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.`);
|
|
19217
19247
|
return {
|
|
@@ -19415,9 +19445,9 @@ var SpaceAuthor = class {
|
|
|
19415
19445
|
* An element and everything under it, into `tree` — or, when it cannot be written, the reason kept for the end, so a
|
|
19416
19446
|
* run reports every element that is wrong rather than the first. Its subtree is skipped; its siblings are not.
|
|
19417
19447
|
*/
|
|
19418
|
-
addElement(spec, path, place, rootId, parentId,
|
|
19448
|
+
addElement(spec, path, place, rootId, parentId, above = "shown", tree = this.pagesTree) {
|
|
19419
19449
|
try {
|
|
19420
|
-
return this.writeElement(spec, path, place, rootId, parentId,
|
|
19450
|
+
return this.writeElement(spec, path, place, rootId, parentId, above, tree);
|
|
19421
19451
|
} catch (error) {
|
|
19422
19452
|
this.skipped += 1;
|
|
19423
19453
|
this.refusals.push({
|
|
@@ -19459,7 +19489,7 @@ var SpaceAuthor = class {
|
|
|
19459
19489
|
* is that place with its id in its position, so it never changes when its siblings move. `place` is how a person
|
|
19460
19490
|
* finds it: the nearest named element, and the steps from there.
|
|
19461
19491
|
*/
|
|
19462
|
-
writeElement(spec, path, place, rootId, parentId,
|
|
19492
|
+
writeElement(spec, path, place, rootId, parentId, above, tree) {
|
|
19463
19493
|
this.assertElementShape(spec, place);
|
|
19464
19494
|
const id = spec.id ?? this.nextId(spec.type);
|
|
19465
19495
|
const identity = `${path.slice(0, path.lastIndexOf("/"))}/#${id}`;
|
|
@@ -19474,7 +19504,9 @@ var SpaceAuthor = class {
|
|
|
19474
19504
|
bind: this.boundFrom(spec, where),
|
|
19475
19505
|
visible: spec.visible
|
|
19476
19506
|
});
|
|
19477
|
-
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);
|
|
19478
19510
|
const ancestors = this.ancestorsOf(parentId, tree.map.flat);
|
|
19479
19511
|
bindings?.forEach((binding) => assertBindingShape(binding, where));
|
|
19480
19512
|
const sourceIndex = this.options.sourceTypes ? tree.sources : void 0;
|
|
@@ -19528,12 +19560,13 @@ var SpaceAuthor = class {
|
|
|
19528
19560
|
selector: element.definition.type === "reference" && element.attributes.referenceType === "component" ? instanceSelectorFor(id) : selectorFor(id),
|
|
19529
19561
|
named: spec.id !== void 0,
|
|
19530
19562
|
...conditional ? { conditional: true } : {},
|
|
19563
|
+
...shownWith === void 0 ? {} : { shownWith },
|
|
19531
19564
|
...[...ancestors].some((ancestor) => REPEATING_TYPES.has(tree.map.flat[ancestor].definition.type)) ? { repeated: true } : {},
|
|
19532
19565
|
...a$7(element) || this.drawsNothing(element) ? { boxless: true } : {}
|
|
19533
19566
|
});
|
|
19534
19567
|
const children = spec.row === void 0 ? spec.children : this.rowChildren(spec, spec.row, id, where);
|
|
19535
|
-
const
|
|
19536
|
-
children?.forEach((child, index) => this.addElement(child, `${identity}/${index}`, placeOf(child, place, index), ownRootId, id,
|
|
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));
|
|
19537
19570
|
return id;
|
|
19538
19571
|
}
|
|
19539
19572
|
/** A `row` placed: a list's IS its children; a carousel's goes in a track, beside the controls it was given. */
|
|
@@ -19888,7 +19921,7 @@ var validateSnippet$1 = (snippet, options = {}) => {
|
|
|
19888
19921
|
}));
|
|
19889
19922
|
const { errors: spaceErrors, warnings } = validateSpace$1({
|
|
19890
19923
|
schema: {
|
|
19891
|
-
...r$
|
|
19924
|
+
...r$23.schema,
|
|
19892
19925
|
...schema
|
|
19893
19926
|
},
|
|
19894
19927
|
style
|
|
@@ -20143,7 +20176,7 @@ var categoryOf = (variable) => {
|
|
|
20143
20176
|
/** The name an element carried beside its id before the id became the name, where it carries a usable one. */
|
|
20144
20177
|
var idRefOf = (element) => {
|
|
20145
20178
|
const stored = element;
|
|
20146
|
-
if (!e$33(stored) || typeof stored.idRef !== "string" || !t$
|
|
20179
|
+
if (!e$33(stored) || typeof stored.idRef !== "string" || !t$29(stored.idRef)) return;
|
|
20147
20180
|
return stored.idRef;
|
|
20148
20181
|
};
|
|
20149
20182
|
/**
|
|
@@ -20159,7 +20192,7 @@ var idRefOf = (element) => {
|
|
|
20159
20192
|
var withNamedIds = (schema) => {
|
|
20160
20193
|
const stale = Object.values(schema.flat).filter((element) => {
|
|
20161
20194
|
const idRef = idRefOf(element);
|
|
20162
|
-
return idRef ? idRef !== element.id : !t$
|
|
20195
|
+
return idRef ? idRef !== element.id : !t$29(element.id);
|
|
20163
20196
|
});
|
|
20164
20197
|
if (stale.length === 0) return {
|
|
20165
20198
|
schema,
|
|
@@ -20894,7 +20927,7 @@ var readBlock = (reader, breakpoint, block, place, unwritable) => {
|
|
|
20894
20927
|
if (!isEmpty$1(split.unwritable)) park(breakpoint, state, split.unwritable);
|
|
20895
20928
|
}
|
|
20896
20929
|
for (const [pseudo, pseudoBlock] of Object.entries(block.pseudos ?? {})) {
|
|
20897
|
-
if (!n$
|
|
20930
|
+
if (!n$20(pseudo)) continue;
|
|
20898
20931
|
const pseudoReader = reader.pseudos.get(pseudo) ?? newReader();
|
|
20899
20932
|
readBlock(pseudoReader, breakpoint, pseudoBlock, {
|
|
20900
20933
|
...place,
|
|
@@ -21840,7 +21873,7 @@ var SpecReader = class {
|
|
|
21840
21873
|
const seoTitle = typeof attributes.seoPageTitle === "string" ? attributes.seoPageTitle : "";
|
|
21841
21874
|
const seoDescription = typeof attributes.seoPageDescription === "string" ? attributes.seoPageDescription : "";
|
|
21842
21875
|
const notFound = typeof attributes.notFound === "string" ? attributes.notFound : "";
|
|
21843
|
-
const documentScroll = n$
|
|
21876
|
+
const documentScroll = n$37(attributes.documentScroll) ? attributes.documentScroll : void 0;
|
|
21844
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);
|
|
21845
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);
|
|
21846
21879
|
return {
|
|
@@ -23519,7 +23552,7 @@ var importedFiles = ({ probes, dark }) => {
|
|
|
23519
23552
|
const css = Object.fromEntries(ranges.filter(([, rules]) => Object.keys(rules).length > 0).map(([mode, rules]) => [mode, rulesOf(rules)]));
|
|
23520
23553
|
const listFile = listFiles.get(node.path);
|
|
23521
23554
|
const id = elementId(node.id ?? (listFile ? `${listFile}-item` : node.heading), node.tag === "div" ? "block" : node.tag);
|
|
23522
|
-
if (!t$
|
|
23555
|
+
if (!t$29(id)) throw new Error(`importedFiles: "${id}" is not a valid element id.`);
|
|
23523
23556
|
const props = {
|
|
23524
23557
|
id,
|
|
23525
23558
|
subType: SUB_TYPES.has(node.tag) ? node.tag : void 0,
|
|
@@ -25266,18 +25299,9 @@ var readDevTools = (driver, input) => driver.evaluate(readDevToolsInPage, input)
|
|
|
25266
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("");
|
|
25267
25300
|
//#endregion
|
|
25268
25301
|
//#region src/testing/onScreen.ts
|
|
25269
|
-
/**
|
|
25270
|
-
|
|
25271
|
-
* outermost shell first.
|
|
25272
|
-
*
|
|
25273
|
-
* Left out, because a bare visit cannot see them and asserting them would only fail: an element shown under a
|
|
25274
|
-
* condition (`conditional`), one rendered once per list row (`repeated` — several copies, or none while the list is
|
|
25275
|
-
* empty), and a provider with no tag (`boxless`), which has no box to be visible. The roots themselves are left out
|
|
25276
|
-
* too: a page and a layout are frames, and what a reader sees is what is in them.
|
|
25277
|
-
*/
|
|
25278
|
-
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) => {
|
|
25279
25304
|
const pageHandle = handles.page(page);
|
|
25280
|
-
const ignored = new Set((options.ignore ?? []).map((id) => handles.element(id).id));
|
|
25281
25305
|
const roots = [pageHandle.elements];
|
|
25282
25306
|
const seen = /* @__PURE__ */ new Set();
|
|
25283
25307
|
for (let layoutId = pageHandle.layout; layoutId !== void 0 && !seen.has(layoutId);) {
|
|
@@ -25287,9 +25311,29 @@ var onScreen = (handles, page, options = {}) => {
|
|
|
25287
25311
|
roots.unshift(layout.elements);
|
|
25288
25312
|
layoutId = layout.layout;
|
|
25289
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));
|
|
25290
25319
|
const all = options.elements === "all";
|
|
25291
|
-
return
|
|
25320
|
+
return rootsOf(handles, page).filter((handle) => (all || handle.named) && !handle.repeated && !handle.boxless && !ignored.has(handle.id));
|
|
25292
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);
|
|
25293
25337
|
//#endregion
|
|
25294
25338
|
//#region src/testing/probe.ts
|
|
25295
25339
|
/**
|
|
@@ -25369,9 +25413,11 @@ function probePage(input) {
|
|
|
25369
25413
|
const missing = [];
|
|
25370
25414
|
const hidden = [];
|
|
25371
25415
|
const byWidth = [];
|
|
25372
|
-
|
|
25416
|
+
const notDrawn = [];
|
|
25417
|
+
for (const { id, selector, list, shownWith } of input.expected) {
|
|
25373
25418
|
const nodes = [...document.querySelectorAll(selector)];
|
|
25374
|
-
if (
|
|
25419
|
+
if (shownWith !== void 0 && ![...document.querySelectorAll(shownWith)].some(isVisible)) notDrawn.push(id);
|
|
25420
|
+
else if (nodes.length === 0) missing.push(id);
|
|
25375
25421
|
else if (!nodes.some(isVisible)) {
|
|
25376
25422
|
const hider = hiderOf(nodes[0]);
|
|
25377
25423
|
if (hider && laidOutByWidth(hider.at)) byWidth.push(id);
|
|
@@ -25667,6 +25713,7 @@ function probePage(input) {
|
|
|
25667
25713
|
marked: document.querySelector("[data-plitzi-el]") !== null,
|
|
25668
25714
|
missing,
|
|
25669
25715
|
hidden,
|
|
25716
|
+
notDrawn,
|
|
25670
25717
|
byWidth,
|
|
25671
25718
|
brokenImages,
|
|
25672
25719
|
overflow,
|
|
@@ -25730,13 +25777,15 @@ var defaultPage = (handles) => {
|
|
|
25730
25777
|
return home.id;
|
|
25731
25778
|
};
|
|
25732
25779
|
var pause$1 = (milliseconds) => new Promise((resolve) => setTimeout(resolve, milliseconds));
|
|
25733
|
-
var inspect = async (driver, page,
|
|
25780
|
+
var inspect = async (driver, page, owed, options) => {
|
|
25734
25781
|
const skip = new Set(options.skip ?? []);
|
|
25782
|
+
const expected = owed.map(({ handle }) => handle);
|
|
25735
25783
|
const input = {
|
|
25736
|
-
expected:
|
|
25784
|
+
expected: owed.map(({ handle, shownWith }) => ({
|
|
25737
25785
|
id: handle.id,
|
|
25738
25786
|
selector: handle.selector,
|
|
25739
|
-
...handle.type === "list" ? { list: true } : {}
|
|
25787
|
+
...handle.type === "list" ? { list: true } : {},
|
|
25788
|
+
...shownWith === void 0 ? {} : { shownWith }
|
|
25740
25789
|
})),
|
|
25741
25790
|
images: !skip.has("images"),
|
|
25742
25791
|
overflow: !skip.has("overflow"),
|
|
@@ -25748,7 +25797,7 @@ var inspect = async (driver, page, expected, options) => {
|
|
|
25748
25797
|
const issues = issuesOf(expected, findings);
|
|
25749
25798
|
if (issues.length === 0 || Date.now() >= deadline) return {
|
|
25750
25799
|
page,
|
|
25751
|
-
checked: expected.length,
|
|
25800
|
+
checked: expected.length - findings.notDrawn.length,
|
|
25752
25801
|
problems: issues.map((issue) => issue.message),
|
|
25753
25802
|
issues,
|
|
25754
25803
|
hiddenAtWidth: findings.byWidth
|
|
@@ -25771,7 +25820,10 @@ var inspect = async (driver, page, expected, options) => {
|
|
|
25771
25820
|
*/
|
|
25772
25821
|
var inspectPage = async (driver, handles, options = {}) => {
|
|
25773
25822
|
const page = handles.page(options.page ?? defaultPage(handles)).id;
|
|
25774
|
-
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);
|
|
25775
25827
|
};
|
|
25776
25828
|
/**
|
|
25777
25829
|
* The half of `inspectPage` that needs no space: images, sideways scroll, legibility — for a page whose documents are
|
|
@@ -26635,4 +26687,4 @@ var validateSnippet = (snippet, options = {}) => validateSnippet$1(snippet, {
|
|
|
26635
26687
|
...options
|
|
26636
26688
|
});
|
|
26637
26689
|
//#endregion
|
|
26638
|
-
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 };
|