@vectoriox/iox-ui 5.145.0 → 5.147.0
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/composite-core/index.d.ts +10 -1
- package/design-core/index.d.ts +336 -23
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs +2 -1
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +8 -5
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +459 -38
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +34 -3
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +108 -0
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +29 -1
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +23 -0
- package/harness-core/index.d.ts +91 -1
- package/index.d.ts +23 -2
- package/package.json +1 -1
- package/src/assist-core/site-look.ts +2 -1
- package/src/composite-core/slider.ts +7 -4
- package/src/design-core/design-apply.ts +19 -2
- package/src/design-core/design-settings.ts +18 -7
- package/src/design-core/design-token.model.ts +11 -0
- package/src/design-core/flavor-spec.generated.ts +298 -24
- package/src/design-core/flavor-tokens.ts +7 -1
- package/src/design-core/node-classes.ts +66 -1
- package/src/design-core/section-edge.ts +14 -4
- package/src/design-core/token-css.ts +48 -3
- package/src/generation-core/adjustments.ts +7 -3
- package/src/generation-core/site-spec.generated.ts +26 -0
- package/src/generation-core/validate-site-plan.ts +1 -0
- package/src/harness-core/harness-spec.generated.ts +108 -0
- package/src/harness-core/starting-design.ts +1 -1
|
@@ -77,6 +77,7 @@ declare const SPEC_SITE_PLAN_SHAPE: {
|
|
|
77
77
|
readonly mode: "'light' | 'dark' | 'auto'";
|
|
78
78
|
readonly "tint?": "string — axes.tints (DS9 neutral tint)";
|
|
79
79
|
readonly "fonts?": "object — uploaded font families per role (DS5)";
|
|
80
|
+
readonly "column?": "string — axes.columns: the content column every section, the header and the footer share (award §0c; absent = the pack's defaults.column)";
|
|
80
81
|
readonly "scroll?": "string — axes.scrolls: how the site scrolls (rev 3.1; absent = axes.motionChoices.pre)";
|
|
81
82
|
readonly "animate?": "string — axes.animations: how much the sections move in as they scroll into view";
|
|
82
83
|
readonly "between?": "string — axes.betweens: what plays between pages";
|
|
@@ -8897,6 +8898,10 @@ declare const SPEC_SITE_LAYOUT: {
|
|
|
8897
8898
|
readonly built: readonly [];
|
|
8898
8899
|
readonly where: "commerce track G (C-D21) — the shop's parts, handed over as words (AW-D19)";
|
|
8899
8900
|
};
|
|
8901
|
+
readonly pageColumn: {
|
|
8902
|
+
readonly built: readonly [];
|
|
8903
|
+
readonly where: "award §0c CW2: `LayoutPage.column` on the layout wire (one enum, offered per type — harness COLUMN_NEVER); until then a composed page wears the site's word (design ▸ content width)";
|
|
8904
|
+
};
|
|
8900
8905
|
};
|
|
8901
8906
|
readonly rows: readonly [{
|
|
8902
8907
|
readonly key: "trackProps.draw";
|
|
@@ -8994,6 +8999,24 @@ declare const SPEC_SITE_LAYOUT: {
|
|
|
8994
8999
|
readonly drawnAs: null;
|
|
8995
9000
|
readonly tier: "pro";
|
|
8996
9001
|
readonly meaning: "an out-of-season card with notify me";
|
|
9002
|
+
}, {
|
|
9003
|
+
readonly key: "pageColumn.wide";
|
|
9004
|
+
readonly phase: "CW2";
|
|
9005
|
+
readonly drawnAs: null;
|
|
9006
|
+
readonly tier: "all";
|
|
9007
|
+
readonly meaning: "the page runs the window minus the one gutter (a gallery, a bold page) — never a formal type";
|
|
9008
|
+
}, {
|
|
9009
|
+
readonly key: "pageColumn.contained";
|
|
9010
|
+
readonly phase: "CW2";
|
|
9011
|
+
readonly drawnAs: null;
|
|
9012
|
+
readonly tier: "all";
|
|
9013
|
+
readonly meaning: "the page's words sit in one centred column; grounds keep the window";
|
|
9014
|
+
}, {
|
|
9015
|
+
readonly key: "pageColumn.narrow";
|
|
9016
|
+
readonly phase: "CW2";
|
|
9017
|
+
readonly drawnAs: null;
|
|
9018
|
+
readonly tier: "all";
|
|
9019
|
+
readonly meaning: "a reading column — a story, a case study, a long page of words";
|
|
8997
9020
|
}];
|
|
8998
9021
|
};
|
|
8999
9022
|
};
|
package/harness-core/index.d.ts
CHANGED
|
@@ -166,6 +166,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
166
166
|
readonly moves: readonly [];
|
|
167
167
|
readonly say: readonly [];
|
|
168
168
|
};
|
|
169
|
+
readonly column: {
|
|
170
|
+
readonly never: readonly [];
|
|
171
|
+
};
|
|
169
172
|
readonly art: {
|
|
170
173
|
readonly preloader: readonly [];
|
|
171
174
|
readonly cover: readonly [];
|
|
@@ -250,6 +253,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
250
253
|
readonly moves: readonly [];
|
|
251
254
|
readonly say: readonly [];
|
|
252
255
|
};
|
|
256
|
+
readonly column: {
|
|
257
|
+
readonly never: readonly [];
|
|
258
|
+
};
|
|
253
259
|
readonly art: {
|
|
254
260
|
readonly preloader: readonly [];
|
|
255
261
|
readonly cover: readonly [];
|
|
@@ -335,6 +341,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
335
341
|
readonly moves: readonly [];
|
|
336
342
|
readonly say: readonly [];
|
|
337
343
|
};
|
|
344
|
+
readonly column: {
|
|
345
|
+
readonly never: readonly [];
|
|
346
|
+
};
|
|
338
347
|
readonly art: {
|
|
339
348
|
readonly preloader: readonly [];
|
|
340
349
|
readonly cover: readonly [];
|
|
@@ -421,6 +430,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
421
430
|
readonly moves: readonly [];
|
|
422
431
|
readonly say: readonly [];
|
|
423
432
|
};
|
|
433
|
+
readonly column: {
|
|
434
|
+
readonly never: readonly [];
|
|
435
|
+
};
|
|
424
436
|
readonly art: {
|
|
425
437
|
readonly preloader: readonly [];
|
|
426
438
|
readonly cover: readonly [];
|
|
@@ -497,6 +509,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
497
509
|
readonly moves: readonly [];
|
|
498
510
|
readonly say: readonly [];
|
|
499
511
|
};
|
|
512
|
+
readonly column: {
|
|
513
|
+
readonly never: readonly [];
|
|
514
|
+
};
|
|
500
515
|
readonly art: {
|
|
501
516
|
readonly preloader: readonly [];
|
|
502
517
|
readonly cover: readonly [];
|
|
@@ -575,6 +590,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
575
590
|
readonly moves: readonly [];
|
|
576
591
|
readonly say: readonly [];
|
|
577
592
|
};
|
|
593
|
+
readonly column: {
|
|
594
|
+
readonly never: readonly [];
|
|
595
|
+
};
|
|
578
596
|
readonly art: {
|
|
579
597
|
readonly preloader: readonly [];
|
|
580
598
|
readonly cover: readonly [];
|
|
@@ -652,6 +670,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
652
670
|
readonly moves: readonly [];
|
|
653
671
|
readonly say: readonly [];
|
|
654
672
|
};
|
|
673
|
+
readonly column: {
|
|
674
|
+
readonly never: readonly [];
|
|
675
|
+
};
|
|
655
676
|
readonly art: {
|
|
656
677
|
readonly preloader: readonly [];
|
|
657
678
|
readonly cover: readonly [];
|
|
@@ -730,6 +751,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
730
751
|
readonly moves: readonly [];
|
|
731
752
|
readonly say: readonly [];
|
|
732
753
|
};
|
|
754
|
+
readonly column: {
|
|
755
|
+
readonly never: readonly [];
|
|
756
|
+
};
|
|
733
757
|
readonly art: {
|
|
734
758
|
readonly preloader: readonly [];
|
|
735
759
|
readonly cover: readonly [];
|
|
@@ -807,6 +831,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
807
831
|
readonly moves: readonly [];
|
|
808
832
|
readonly say: readonly ["Trust and care are shown straight: nothing leans, nothing is fanned like a hand of cards."];
|
|
809
833
|
};
|
|
834
|
+
readonly column: {
|
|
835
|
+
readonly never: readonly ["wide"];
|
|
836
|
+
};
|
|
810
837
|
readonly art: {
|
|
811
838
|
readonly preloader: readonly ["counter", "letters"];
|
|
812
839
|
readonly cover: readonly ["veil", "flood"];
|
|
@@ -894,6 +921,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
894
921
|
readonly moves: readonly [];
|
|
895
922
|
readonly say: readonly [];
|
|
896
923
|
};
|
|
924
|
+
readonly column: {
|
|
925
|
+
readonly never: readonly [];
|
|
926
|
+
};
|
|
897
927
|
readonly art: {
|
|
898
928
|
readonly preloader: readonly ["counter"];
|
|
899
929
|
readonly cover: readonly ["veil"];
|
|
@@ -975,6 +1005,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
975
1005
|
readonly moves: readonly [];
|
|
976
1006
|
readonly say: readonly [];
|
|
977
1007
|
};
|
|
1008
|
+
readonly column: {
|
|
1009
|
+
readonly never: readonly [];
|
|
1010
|
+
};
|
|
978
1011
|
readonly art: {
|
|
979
1012
|
readonly preloader: readonly ["counter"];
|
|
980
1013
|
readonly cover: readonly ["veil"];
|
|
@@ -1057,6 +1090,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1057
1090
|
readonly moves: readonly [];
|
|
1058
1091
|
readonly say: readonly [];
|
|
1059
1092
|
};
|
|
1093
|
+
readonly column: {
|
|
1094
|
+
readonly never: readonly [];
|
|
1095
|
+
};
|
|
1060
1096
|
readonly art: {
|
|
1061
1097
|
readonly preloader: readonly ["counter"];
|
|
1062
1098
|
readonly cover: readonly ["veil"];
|
|
@@ -1135,6 +1171,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1135
1171
|
readonly moves: readonly ["auto", "page"];
|
|
1136
1172
|
readonly say: readonly ["People who come for care or advice read at their own pace: nothing turns by itself, nothing to flick through.", "Trust and care are shown straight: nothing leans, nothing is fanned like a hand of cards."];
|
|
1137
1173
|
};
|
|
1174
|
+
readonly column: {
|
|
1175
|
+
readonly never: readonly ["wide"];
|
|
1176
|
+
};
|
|
1138
1177
|
readonly art: {
|
|
1139
1178
|
readonly preloader: readonly ["mark", "counter", "letters"];
|
|
1140
1179
|
readonly cover: readonly ["flood", "wipe", "circle", "veil", "interstitial"];
|
|
@@ -1217,6 +1256,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1217
1256
|
readonly moves: readonly ["auto", "page"];
|
|
1218
1257
|
readonly say: readonly ["People who come for care or advice read at their own pace: nothing turns by itself, nothing to flick through.", "Trust and care are shown straight: nothing leans, nothing is fanned like a hand of cards."];
|
|
1219
1258
|
};
|
|
1259
|
+
readonly column: {
|
|
1260
|
+
readonly never: readonly ["wide"];
|
|
1261
|
+
};
|
|
1220
1262
|
readonly art: {
|
|
1221
1263
|
readonly preloader: readonly ["mark", "counter", "letters"];
|
|
1222
1264
|
readonly cover: readonly ["flood", "wipe", "circle", "veil", "interstitial"];
|
|
@@ -1300,6 +1342,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1300
1342
|
readonly moves: readonly ["auto", "page"];
|
|
1301
1343
|
readonly say: readonly ["People who come for care or advice read at their own pace: nothing turns by itself, nothing to flick through.", "Trust and care are shown straight: nothing leans, nothing is fanned like a hand of cards."];
|
|
1302
1344
|
};
|
|
1345
|
+
readonly column: {
|
|
1346
|
+
readonly never: readonly ["wide"];
|
|
1347
|
+
};
|
|
1303
1348
|
readonly art: {
|
|
1304
1349
|
readonly preloader: readonly ["mark", "counter", "letters"];
|
|
1305
1350
|
readonly cover: readonly ["flood", "wipe", "circle", "veil", "interstitial"];
|
|
@@ -1381,6 +1426,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1381
1426
|
readonly moves: readonly [];
|
|
1382
1427
|
readonly say: readonly ["Trust and care are shown straight: nothing leans, nothing is fanned like a hand of cards."];
|
|
1383
1428
|
};
|
|
1429
|
+
readonly column: {
|
|
1430
|
+
readonly never: readonly ["wide"];
|
|
1431
|
+
};
|
|
1384
1432
|
readonly art: {
|
|
1385
1433
|
readonly preloader: readonly ["counter", "letters"];
|
|
1386
1434
|
readonly cover: readonly ["veil", "flood"];
|
|
@@ -1458,6 +1506,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1458
1506
|
readonly moves: readonly [];
|
|
1459
1507
|
readonly say: readonly [];
|
|
1460
1508
|
};
|
|
1509
|
+
readonly column: {
|
|
1510
|
+
readonly never: readonly [];
|
|
1511
|
+
};
|
|
1461
1512
|
readonly art: {
|
|
1462
1513
|
readonly preloader: readonly [];
|
|
1463
1514
|
readonly cover: readonly [];
|
|
@@ -1542,6 +1593,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1542
1593
|
readonly moves: readonly [];
|
|
1543
1594
|
readonly say: readonly [];
|
|
1544
1595
|
};
|
|
1596
|
+
readonly column: {
|
|
1597
|
+
readonly never: readonly [];
|
|
1598
|
+
};
|
|
1545
1599
|
readonly art: {
|
|
1546
1600
|
readonly preloader: readonly ["counter"];
|
|
1547
1601
|
readonly cover: readonly ["veil"];
|
|
@@ -1623,6 +1677,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1623
1677
|
readonly moves: readonly [];
|
|
1624
1678
|
readonly say: readonly [];
|
|
1625
1679
|
};
|
|
1680
|
+
readonly column: {
|
|
1681
|
+
readonly never: readonly [];
|
|
1682
|
+
};
|
|
1626
1683
|
readonly art: {
|
|
1627
1684
|
readonly preloader: readonly [];
|
|
1628
1685
|
readonly cover: readonly [];
|
|
@@ -1704,6 +1761,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1704
1761
|
readonly moves: readonly [];
|
|
1705
1762
|
readonly say: readonly [];
|
|
1706
1763
|
};
|
|
1764
|
+
readonly column: {
|
|
1765
|
+
readonly never: readonly [];
|
|
1766
|
+
};
|
|
1707
1767
|
readonly art: {
|
|
1708
1768
|
readonly preloader: readonly [];
|
|
1709
1769
|
readonly cover: readonly [];
|
|
@@ -1780,6 +1840,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1780
1840
|
readonly moves: readonly [];
|
|
1781
1841
|
readonly say: readonly [];
|
|
1782
1842
|
};
|
|
1843
|
+
readonly column: {
|
|
1844
|
+
readonly never: readonly [];
|
|
1845
|
+
};
|
|
1783
1846
|
readonly art: {
|
|
1784
1847
|
readonly preloader: readonly ["counter"];
|
|
1785
1848
|
readonly cover: readonly ["veil"];
|
|
@@ -1857,6 +1920,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1857
1920
|
readonly moves: readonly [];
|
|
1858
1921
|
readonly say: readonly [];
|
|
1859
1922
|
};
|
|
1923
|
+
readonly column: {
|
|
1924
|
+
readonly never: readonly [];
|
|
1925
|
+
};
|
|
1860
1926
|
readonly art: {
|
|
1861
1927
|
readonly preloader: readonly [];
|
|
1862
1928
|
readonly cover: readonly [];
|
|
@@ -1934,6 +2000,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1934
2000
|
readonly moves: readonly [];
|
|
1935
2001
|
readonly say: readonly ["A deck reads as a game; advice and causes are read, not flicked.", "Trust and care are shown straight: nothing leans, nothing is fanned like a hand of cards."];
|
|
1936
2002
|
};
|
|
2003
|
+
readonly column: {
|
|
2004
|
+
readonly never: readonly ["wide"];
|
|
2005
|
+
};
|
|
1937
2006
|
readonly art: {
|
|
1938
2007
|
readonly preloader: readonly ["counter", "letters"];
|
|
1939
2008
|
readonly cover: readonly ["veil", "flood"];
|
|
@@ -2013,6 +2082,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
2013
2082
|
readonly moves: readonly [];
|
|
2014
2083
|
readonly say: readonly ["A deck reads as a game; advice and causes are read, not flicked.", "Trust and care are shown straight: nothing leans, nothing is fanned like a hand of cards."];
|
|
2015
2084
|
};
|
|
2085
|
+
readonly column: {
|
|
2086
|
+
readonly never: readonly ["wide"];
|
|
2087
|
+
};
|
|
2016
2088
|
readonly art: {
|
|
2017
2089
|
readonly preloader: readonly ["counter", "letters"];
|
|
2018
2090
|
readonly cover: readonly ["veil", "flood"];
|
|
@@ -2086,6 +2158,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
2086
2158
|
readonly moves: readonly ["auto", "page"];
|
|
2087
2159
|
readonly say: readonly ["People who come for care or advice read at their own pace: nothing turns by itself, nothing to flick through.", "Trust and care are shown straight: nothing leans, nothing is fanned like a hand of cards."];
|
|
2088
2160
|
};
|
|
2161
|
+
readonly column: {
|
|
2162
|
+
readonly never: readonly ["wide"];
|
|
2163
|
+
};
|
|
2089
2164
|
readonly art: {
|
|
2090
2165
|
readonly preloader: readonly ["mark", "counter", "letters"];
|
|
2091
2166
|
readonly cover: readonly ["flood", "wipe", "circle", "veil", "interstitial"];
|
|
@@ -2170,6 +2245,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
2170
2245
|
readonly moves: readonly [];
|
|
2171
2246
|
readonly say: readonly [];
|
|
2172
2247
|
};
|
|
2248
|
+
readonly column: {
|
|
2249
|
+
readonly never: readonly [];
|
|
2250
|
+
};
|
|
2173
2251
|
readonly art: {
|
|
2174
2252
|
readonly preloader: readonly ["counter"];
|
|
2175
2253
|
readonly cover: readonly ["veil"];
|
|
@@ -2250,6 +2328,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
2250
2328
|
readonly moves: readonly [];
|
|
2251
2329
|
readonly say: readonly ["A deck reads as a game; advice and causes are read, not flicked.", "Trust and care are shown straight: nothing leans, nothing is fanned like a hand of cards."];
|
|
2252
2330
|
};
|
|
2331
|
+
readonly column: {
|
|
2332
|
+
readonly never: readonly ["wide"];
|
|
2333
|
+
};
|
|
2253
2334
|
readonly art: {
|
|
2254
2335
|
readonly preloader: readonly ["counter", "letters"];
|
|
2255
2336
|
readonly cover: readonly ["veil", "flood"];
|
|
@@ -2323,6 +2404,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
2323
2404
|
readonly moves: readonly [];
|
|
2324
2405
|
readonly say: readonly [];
|
|
2325
2406
|
};
|
|
2407
|
+
readonly column: {
|
|
2408
|
+
readonly never: readonly [];
|
|
2409
|
+
};
|
|
2326
2410
|
readonly art: {
|
|
2327
2411
|
readonly preloader: readonly [];
|
|
2328
2412
|
readonly cover: readonly [];
|
|
@@ -2403,6 +2487,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
2403
2487
|
readonly moves: readonly [];
|
|
2404
2488
|
readonly say: readonly [];
|
|
2405
2489
|
};
|
|
2490
|
+
readonly column: {
|
|
2491
|
+
readonly never: readonly [];
|
|
2492
|
+
};
|
|
2406
2493
|
readonly art: {
|
|
2407
2494
|
readonly preloader: readonly [];
|
|
2408
2495
|
readonly cover: readonly [];
|
|
@@ -2483,6 +2570,9 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
2483
2570
|
readonly moves: readonly [];
|
|
2484
2571
|
readonly say: readonly [];
|
|
2485
2572
|
};
|
|
2573
|
+
readonly column: {
|
|
2574
|
+
readonly never: readonly [];
|
|
2575
|
+
};
|
|
2486
2576
|
readonly art: {
|
|
2487
2577
|
readonly preloader: readonly ["counter"];
|
|
2488
2578
|
readonly cover: readonly ["veil"];
|
|
@@ -3885,7 +3975,7 @@ declare const GENERATION_LIMITS: {
|
|
|
3885
3975
|
* only while the start is Lively or Expressive (PL-D6) — a calm business (its ceiling below Standard) or "little
|
|
3886
3976
|
* movement" never opens with one. Its By the scroll (AW10) likewise, only on a Lively or Expressive start (AW10-D7).
|
|
3887
3977
|
*/
|
|
3888
|
-
declare function presetDesign(presetId: string, input: MotionInput | string | null, kept?: Partial<Pick<DesignChoices, 'scroll' | 'animate' | 'between' | 'motion' | 'feel' | 'headings' | 'preloader' | 'scrub'>>, read?: StyleRead | null): DesignChoices | null;
|
|
3978
|
+
declare function presetDesign(presetId: string, input: MotionInput | string | null, kept?: Partial<Pick<DesignChoices, 'scroll' | 'animate' | 'between' | 'motion' | 'feel' | 'headings' | 'preloader' | 'scrub' | 'column'>>, read?: StyleRead | null): DesignChoices | null;
|
|
3889
3979
|
interface StartingDesign {
|
|
3890
3980
|
presetId: string;
|
|
3891
3981
|
design: DesignChoices;
|
package/index.d.ts
CHANGED
|
@@ -3485,6 +3485,27 @@ declare function boundStyleCss(entries: ReadonlyArray<{
|
|
|
3485
3485
|
prop: string;
|
|
3486
3486
|
value: unknown;
|
|
3487
3487
|
}>): string;
|
|
3488
|
+
/** The `style:` entries among a node's resolved props (the engine's string path joins them with `boundStyleCss`). */
|
|
3489
|
+
declare function boundStyleEntries(props: Readonly<Record<string, unknown>>): Array<{
|
|
3490
|
+
prop: string;
|
|
3491
|
+
value: unknown;
|
|
3492
|
+
}>;
|
|
3493
|
+
/** The element a bound style is written on — anything with an inline `style` (an HTMLElement, an SVG element). */
|
|
3494
|
+
interface BoundStyleTarget {
|
|
3495
|
+
style: {
|
|
3496
|
+
setProperty(name: string, value: string): void;
|
|
3497
|
+
removeProperty(name: string): string;
|
|
3498
|
+
};
|
|
3499
|
+
}
|
|
3500
|
+
/**
|
|
3501
|
+
* ONE bound value onto a live element, for every renderer that writes DOM (the engine's component path, the builder's
|
|
3502
|
+
* template row and preview rows, the admin's bindings panel): a `style:` binding sets its custom property — or removes
|
|
3503
|
+
* it when the value no longer answers (a cleared colour, a value that is no hex) — and answers true, so the caller
|
|
3504
|
+
* never pushes it into a component input as well. Any other prop answers false and is the caller's.
|
|
3505
|
+
*/
|
|
3506
|
+
declare function applyBoundStyle(el: BoundStyleTarget | null | undefined, prop: string, value: unknown): boolean;
|
|
3507
|
+
/** Every `style:` entry of a node's resolved props onto its element (`applyBoundStyle` each). */
|
|
3508
|
+
declare function applyBoundStyles(el: BoundStyleTarget | null | undefined, props: Readonly<Record<string, unknown>> | null | undefined): void;
|
|
3488
3509
|
|
|
3489
3510
|
/**
|
|
3490
3511
|
* The canonical shape of a page's SEO metadata, plus the flat tag list both renderers emit.
|
|
@@ -4934,5 +4955,5 @@ declare function formToastsOnSend(form: Element | null | undefined): boolean;
|
|
|
4934
4955
|
/** Raise the form's Sent toast (from the form — its scope and its look). */
|
|
4935
4956
|
declare function raiseFormToast(form: Element): ToastHandle | null;
|
|
4936
4957
|
|
|
4937
|
-
export { A11yAttribute, A11yTrait, ACCESSIBLE_NAME_TYPES, AOSService, ARIA_CURRENT_PAGE, BACKDROP_TWIN_KEY, BACKDROP_WHOLE_KEY, BLUR_IN_START_PX, BOUND_STYLE_PREFIX, BREAKPOINTS, Breakpoint, BreakpointQueryKind, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CALENDAR_CLOSING_ATTRIBUTE, CALENDAR_DESIGN_ATTRIBUTE, CALENDAR_INSTANT_ATTRIBUTE, CALENDAR_SHEET_QUERY, COMPONENT_STATE_SELECTOR, CONTAINER_HTML_TAGS, CONTEXT_ACTION_TYPES, COUNT_ATTRIBUTE, COUNT_DEFAULT_MS, COUNT_MAX_MS, COUNT_UP_ACTION, CURRENT_LINK_TYPES, CalendarClass, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ComponentState, ContainerComponent, ContextStore, CoverPaint, DECORATIVE_TYPES, DEFAULT_GALLERY_SCHEDULER, DEFAULT_INTERACTION_EASING, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_PHOSPHOR_WEIGHT, DEFAULT_WIDTH_BY_TYPE, DEPTH_CLIP_ATTRIBUTE, DIALOG_CLOSE_ABOVE_ATTRIBUTE, DIALOG_NODE_TYPE, DatePickerRuntime, DeclarationContext, EASING_KEYWORDS, EASING_TOKENS, ENTRANCE_ACTION_TYPES, ENTRANCE_FALLBACK_CSS, ENTRANCE_NOSCRIPT_CSS, ENTRANCE_PRESTATE_ATTRIBUTE, EXIT_ACTION_TYPES, EasingKeyword, EasingToken, FLOATING_GAP, FLOATING_LAYER_CLASS, FLOATING_MARGIN, FLOATING_SHEET_QUERY, FloatingAlign, FloatingSide, FormRenderState, FormRuntimeService, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, HEADER_SCROLL_HYSTERESIS_PX, HOVER_DEFAULT_TRANSITION_TRAITS, HOVER_MEDIA_QUERY, HOVER_STATES, HeaderInkRuntime, HeaderRuntime, INTERACTION_ANIMATION_ID, INTERACTION_HIDDEN_ATTRIBUTE, INTERACTION_MARKER_ATTRIBUTES, IOX_BUILDER_EVENTS, IOX_FORM_MESSAGES, IOX_FORM_NAVIGATOR, IOX_FORM_TRANSPORT, IS_PREVIEW, InlineEditEvent, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxDialogComponent, IoxFieldComponent, IoxFormComponent, IoxFormErrorComponent, IoxFormSuccessComponent, IoxPageComponent, IoxPageModule, IoxPopoverComponent, IoxSubmitButtonComponent, IoxUiModule, IoxVideoComponent, LAST_EMITTED_STATES, LEGACY_DIRECTION_KEY, LEGACY_HOVER_TRANSITION_TRAITS, LEGACY_SWIPER_CONTROLS, LIST_GROUND_PIPE, LIST_INK_PIPE, LinkedContainerComponent, MANAGED_A11Y_ATTRIBUTES, MAX_LINES_KEY, NAMED_GROUP_ROLES, NO_PAGE_TRANSITION, ON_STATE_ROLES, OUTER_STYLE_PROPS, PAGE_LEAVE_RATIO, PAGE_STYLE_TOKENS, PAGE_TOKEN_FALLBACKS, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PART_CLASS_NAMES, PART_PAGINATION_MODIFIER, PHONE_TRANSITION_QUERY, PIPE_DESCRIPTORS, PIPE_REGISTRY, POPOVER_SELECTOR, PRELOADER_AT_ATTRIBUTE, PRELOADER_CLASS, PRELOADER_CSS, PRELOADER_END_EVENT, PRELOADER_RUN_ATTRIBUTE, PRELOADING_ATTRIBUTE, PROGRESS_ATTRIBUTE, PageScrollProvider, PageStyleField, PageStyleSource, PausableTimer, PauseReason, PointerKind, PopoverAttribute, REDUCED_ENTRANCE_FRAMES, REDUCED_MOTION_QUERY, REDUCED_PAGE_LEAVE, RELATIONAL_STATE_PSEUDO, RevealActionType, SCROLLBARS_TAKE_WIDTH_CLASS, SCROLLED_ATTRIBUTE, SCROLLED_STATE_ROLE, SCROLLED_THRESHOLD_PX, SCROLL_ANIMATION_ID, SCROLL_EASINGS, SELF_PLAYING_TRIGGERS, SHAKE_DURATION_MS, SHAKE_EASING, SHAKE_KEYFRAMES, SLIDER_CARDS, SLIDER_FAN, SLIDER_FEEL, SLIDER_INPUTS_ATTRIBUTE, SLIDER_INPUT_NAMES, SLIDER_PHONE_BREAKPOINT, SLIDER_RUNWAY_CLASS, SLIDER_STEPS_PROPERTY, SLIDE_CAPTION_ATTRIBUTE, STATE_PSEUDO_CLASS, STRUCTURAL_STATES, SUPPRESSED_STYLE_PROPS_BY_TYPE, SWIPER_A11Y_OPTIONS, SWIPER_RESPONSIVE_TRAITS, SWIPER_TRIGGER_EVENTS, ScrollActionType, ScrollEasing, SectionComponent, SettleMode, SliderCreativePreset, StringFormRuntime, SwiperModuleName, TARGETED_STATE_SUFFIX, TEXT_ALIGN_KEY, TEXT_DIRECTION_KEY, TOAST_CLOSE_WORDS, TOAST_DESIGN_ATTRIBUTE, TOAST_EDGE_ATTRIBUTE, TOAST_FIRST_LANDS_MS, TOAST_MAX_MS, TOAST_MAX_VISIBLE, TOAST_MIN_MS, TOAST_MS_PER_CHAR, TOOLTIP_ATTRIBUTE, TOOLTIP_FIRST_DELAY_MS, TOOLTIP_HIDE_GRACE_MS, TOOLTIP_INSTANT_ATTRIBUTE, TOOLTIP_PINNED_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, TOOLTIP_SIDE_ATTRIBUTE, TOOLTIP_TYPES, TOOLTIP_WARM_MS, TRANSITION_FEELS, TRANSITION_PROPERTY_KEY, TextAlign, TextBlockComponent, ToastClass, ToastEdge, TooltipClass, TooltipRuntime, VALIDATION_STATES, VALIDATION_STATE_CLASS, VIRTUAL_TRAIT_GROUPS, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, VisibilityActionType, activeActions, afterPreloader, animateAction, applyBindingPipes, applyFeel, armCountUp, armInteractionCounts, attachDatePicker, attachDatePickers, attachScrollProgress, attachStringForm, attachTooltips, bootSlider, boundStyleCss, boundStyleOf, breakpointDef, breakpointForWidth, breakpointQueryFor, buildInteractionKeyframes, buildPartSelector, buildPreloaderLayer, buildSwiperBreakpoints, buildTargetedStateSelector, buildTargetedSuffixSelector, buildTransitionTimeline, canPopover, cascadeChain, clearInputOverride, clearOverride, clearToasts, closeAboveMediaQuery, closeAllPopovers, closePopover, collectContextSlotKeys, commitInlineEdit, compileDeclarations, compilePageStyle, componentStatesFor, composeVirtualTraits, containerHtmlTag, contextActionEffect, contextSlotKeys, countDuration, countIsReadable, countLocaleOf, countOverrides, countValueAt, coverPanelStyle, createCoverPanel, datePickerOf, declaredInputNames, decomposeBackdropFilter, defaultHoverTransitionTraits, defaultMessageResolver, deriveSeoFromContent, describePageStyle, describeSeoFields, dialogCloseAboveMinWidth, directionalFrames, domHasSliderParts, durationMs, effectiveActionType, effectiveTransitionId, ensurePreloaderStyles, entrancePreStateStyle, entranceStartsHidden, fanMiddle, feelFor, fieldLanguage, finalKeyframe, firstScreenReadiness, floatingLayer, floatingScope, formSentWords, formToastsOnSend, formatCount, framesFromLiveValue, gateHoverRule, getSeoValue, hasCounted, hasHoverState, hasOwnPageTransition, hasOwnTransition, headerShouldHide, hideFromTopLayer, hidingHeadersIn, initialSlotValues, inkFollowingHeadersIn, interactionMarkerAttributes, isActionEnabled, isBoundProp, isBoundStyleProp, isContextAction, isCubicBezier, isCurrentLink, isEasingToken, isExternalOrFragment, isGradientPaint, isHoverPointer, isHoverState, isInputOverriddenAt, isInteractionEasing, isLastEmittedStateKey, isOpenPopover, isOperated, isOverriddenAt, isPopoverOpen, isPreloading, isPressFeedback, isScrolled, isStructuralState, isValidSlotKey, isWholeBackdropSet, keyframePropertyName, keyframeStyleEntries, layerFrame, legacyEnterToTransition, lookEaseOf, markScrollbarsTakeWidth, mediaQueryFor, mergeSwiperBreakpoints, migrateLegacyDirection, migrateLegacyTextAlign, motionAllowed, mountPreloader, nearestCommonAncestorId, needsAccessibleName, needsGroupName, nodeA11yAttributes, nodeCssId, nodeTraitValue, nodeUsesContext, normalizeAppPath, normalizeGalleryImage, normalizeIconClass, openPopover, openingPictureOf, orderStatesForEmit, pageTransitionOf, parentBreakpoint, parseCount, parseUrlList, partClassName, placeFloating, placePopover, planPartRule, planResponsiveRules, planScroll, planStateRule, planSwiperOptions, playCountUp, playDualLayerTransition, playInteraction, playPreloaderPreview, playsOnScroll, popoverPanelAttributes, popoverSide, prefersReducedMotion, preloaderContentOf, preloaderHeadScript, raiseFloatingLayer, raiseFormToast, rectInLayer, reducedEntranceFades, reducedEntranceRun, renderDefaultDeclarations, resetPageStyleField, resetSeoField, resolveBoundValue, resolveContextValue, resolveGalleryEffect, resolveGalleryUrls, resolveInputChain, resolveInputs, resolveInteractionEasing, resolvePageTransition, resolvePath, resolveSeo, resolveStateStyles, resolveStyleProps, resolveToggleVisibility, resolveValueChain, restoreCountUp, rewriteViewportUnits, runPreloader, safeSetInput, scrollActionKind, scrollMotionEnv, scrollbarsTakeWidthScript, scrubUntilOf, serializeA11yAttributes, setDateFieldValue, setInputOverride, setOverride, setSeoAuto, setSeoBinding, setSeoOverride, setSeoValue, settleInteraction, settleModeFor, shakeElement, showCalendarDesign, showInTopLayer, showToast, showToastDesign, sliderControlElements, sliderInputsFromProps, sliderInputsOf, sliderRunwayHtml, splitOuterProps, splitPressFeedback, stateNamesIn, statePseudoClass, stateSelectorSuffix, stateTransitionProperties, stringFormRuntimeOf, stripSuppressedProps, swiperAutoplayAllowed, swiperLoopOptions, swiperModuleNames, syncInteractionMarkers, syncNodeA11yAttributes, syncSubmitButtons, targetedStateSelector, toLayerRect, toastCloseWord, toastDuration, toastEdge, toastsToEvict, togglePopover, tooltipSide, tooltipTiming, tooltipWords, tooltipsOf, transitionPropertyList, translateYOf, viewportTransitionContext, watchHeaderInk, watchHeaders, watchScrolled, withContextSlots, withPhoneDefaults, withStateTransitions, wrapInBreakpointQuery, wrapInMediaQuery };
|
|
4938
|
-
export type { A11yNodeSource, AnimateActionOptions, BoundValueSpec, BreakpointDef, ContextActionEffect, ContextActionLike, ContextItemRef, ContextSlotDefault, ContextValueSpec, ContextWriteScope, CountTarget, CoverPanelContext, CurrentLinkOptions, DatePickerOptions, FloatingLayerOptions, FloatingOptions, FloatingPlacement, FloatingRect, FloatingSize, FloatingViewport, FormMessageResolver, GalleryBoundSource, GalleryDurations, GalleryEffect, GalleryEffectDescriptor, GalleryImage, GalleryLoopOptions, GalleryLoopScheduler, GalleryLoopState, GallerySlideState, HeaderRuntimeOptions, IBuilderEventEmitter, InlineEditableNode, InputMap, InteractionKeyframe, IoxContextSlot, IoxPipe, LayerFrame, MatchMediaHost, NodeA11yContext, OverrideBreakpoint, PageCoverSpec, PageScrollStart, PageStyleFieldState, PageStyleOptions, PageStyleSettings, PageTransitionCategory, PageTransitionCategoryMeta, PageTransitionContext, PageTransitionOptions, PageTransitionPreset, PipeArgSpec, PipeContext, PipeDescriptor, PlannedPageTransition, PopoverCloseOptions, PopoverOpenOptions, PreloaderContent, PreloaderPreviewOptions, PreloaderRunOptions, PressAction, RegisteredField, ResolvedPageCover, ResolvedPageTransition, ResponsiveLayer, ResponsiveOverrides, ResponsiveRuleSet, RouteAnimationLike, ScrollPlanContext, ScrollProgressAction, ScrollProgressHost, ScrollProgressInteraction, ScrollSource, SeoDerivedContent, SeoFieldSource, SeoFieldState, SeoResolveContext, SetContextParams, SettleOptions, SliderBootOptions, SliderControlElements, SliderInputs, StateRulePlan, StateScope, StateStyleMap, StringFormOptions, StyleMap, StyleTreeNode, SwiperBreakpointMap, SwiperModuleFlags, SwiperPlan, SwiperPlanContext, ToastHandle, ToastOptions, ToggleableAction, TooltipRuntimeOptions, TooltipTimingState, TransitionFeel, TransitionPhase, TransitionPreviewLayers, TransitionTimelineInput, TransitionViewport, ValueSource, VirtualTraitGroup };
|
|
4958
|
+
export { A11yAttribute, A11yTrait, ACCESSIBLE_NAME_TYPES, AOSService, ARIA_CURRENT_PAGE, BACKDROP_TWIN_KEY, BACKDROP_WHOLE_KEY, BLUR_IN_START_PX, BOUND_STYLE_PREFIX, BREAKPOINTS, Breakpoint, BreakpointQueryKind, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CALENDAR_CLOSING_ATTRIBUTE, CALENDAR_DESIGN_ATTRIBUTE, CALENDAR_INSTANT_ATTRIBUTE, CALENDAR_SHEET_QUERY, COMPONENT_STATE_SELECTOR, CONTAINER_HTML_TAGS, CONTEXT_ACTION_TYPES, COUNT_ATTRIBUTE, COUNT_DEFAULT_MS, COUNT_MAX_MS, COUNT_UP_ACTION, CURRENT_LINK_TYPES, CalendarClass, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ComponentState, ContainerComponent, ContextStore, CoverPaint, DECORATIVE_TYPES, DEFAULT_GALLERY_SCHEDULER, DEFAULT_INTERACTION_EASING, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_PHOSPHOR_WEIGHT, DEFAULT_WIDTH_BY_TYPE, DEPTH_CLIP_ATTRIBUTE, DIALOG_CLOSE_ABOVE_ATTRIBUTE, DIALOG_NODE_TYPE, DatePickerRuntime, DeclarationContext, EASING_KEYWORDS, EASING_TOKENS, ENTRANCE_ACTION_TYPES, ENTRANCE_FALLBACK_CSS, ENTRANCE_NOSCRIPT_CSS, ENTRANCE_PRESTATE_ATTRIBUTE, EXIT_ACTION_TYPES, EasingKeyword, EasingToken, FLOATING_GAP, FLOATING_LAYER_CLASS, FLOATING_MARGIN, FLOATING_SHEET_QUERY, FloatingAlign, FloatingSide, FormRenderState, FormRuntimeService, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, HEADER_SCROLL_HYSTERESIS_PX, HOVER_DEFAULT_TRANSITION_TRAITS, HOVER_MEDIA_QUERY, HOVER_STATES, HeaderInkRuntime, HeaderRuntime, INTERACTION_ANIMATION_ID, INTERACTION_HIDDEN_ATTRIBUTE, INTERACTION_MARKER_ATTRIBUTES, IOX_BUILDER_EVENTS, IOX_FORM_MESSAGES, IOX_FORM_NAVIGATOR, IOX_FORM_TRANSPORT, IS_PREVIEW, InlineEditEvent, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxDialogComponent, IoxFieldComponent, IoxFormComponent, IoxFormErrorComponent, IoxFormSuccessComponent, IoxPageComponent, IoxPageModule, IoxPopoverComponent, IoxSubmitButtonComponent, IoxUiModule, IoxVideoComponent, LAST_EMITTED_STATES, LEGACY_DIRECTION_KEY, LEGACY_HOVER_TRANSITION_TRAITS, LEGACY_SWIPER_CONTROLS, LIST_GROUND_PIPE, LIST_INK_PIPE, LinkedContainerComponent, MANAGED_A11Y_ATTRIBUTES, MAX_LINES_KEY, NAMED_GROUP_ROLES, NO_PAGE_TRANSITION, ON_STATE_ROLES, OUTER_STYLE_PROPS, PAGE_LEAVE_RATIO, PAGE_STYLE_TOKENS, PAGE_TOKEN_FALLBACKS, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PART_CLASS_NAMES, PART_PAGINATION_MODIFIER, PHONE_TRANSITION_QUERY, PIPE_DESCRIPTORS, PIPE_REGISTRY, POPOVER_SELECTOR, PRELOADER_AT_ATTRIBUTE, PRELOADER_CLASS, PRELOADER_CSS, PRELOADER_END_EVENT, PRELOADER_RUN_ATTRIBUTE, PRELOADING_ATTRIBUTE, PROGRESS_ATTRIBUTE, PageScrollProvider, PageStyleField, PageStyleSource, PausableTimer, PauseReason, PointerKind, PopoverAttribute, REDUCED_ENTRANCE_FRAMES, REDUCED_MOTION_QUERY, REDUCED_PAGE_LEAVE, RELATIONAL_STATE_PSEUDO, RevealActionType, SCROLLBARS_TAKE_WIDTH_CLASS, SCROLLED_ATTRIBUTE, SCROLLED_STATE_ROLE, SCROLLED_THRESHOLD_PX, SCROLL_ANIMATION_ID, SCROLL_EASINGS, SELF_PLAYING_TRIGGERS, SHAKE_DURATION_MS, SHAKE_EASING, SHAKE_KEYFRAMES, SLIDER_CARDS, SLIDER_FAN, SLIDER_FEEL, SLIDER_INPUTS_ATTRIBUTE, SLIDER_INPUT_NAMES, SLIDER_PHONE_BREAKPOINT, SLIDER_RUNWAY_CLASS, SLIDER_STEPS_PROPERTY, SLIDE_CAPTION_ATTRIBUTE, STATE_PSEUDO_CLASS, STRUCTURAL_STATES, SUPPRESSED_STYLE_PROPS_BY_TYPE, SWIPER_A11Y_OPTIONS, SWIPER_RESPONSIVE_TRAITS, SWIPER_TRIGGER_EVENTS, ScrollActionType, ScrollEasing, SectionComponent, SettleMode, SliderCreativePreset, StringFormRuntime, SwiperModuleName, TARGETED_STATE_SUFFIX, TEXT_ALIGN_KEY, TEXT_DIRECTION_KEY, TOAST_CLOSE_WORDS, TOAST_DESIGN_ATTRIBUTE, TOAST_EDGE_ATTRIBUTE, TOAST_FIRST_LANDS_MS, TOAST_MAX_MS, TOAST_MAX_VISIBLE, TOAST_MIN_MS, TOAST_MS_PER_CHAR, TOOLTIP_ATTRIBUTE, TOOLTIP_FIRST_DELAY_MS, TOOLTIP_HIDE_GRACE_MS, TOOLTIP_INSTANT_ATTRIBUTE, TOOLTIP_PINNED_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, TOOLTIP_SIDE_ATTRIBUTE, TOOLTIP_TYPES, TOOLTIP_WARM_MS, TRANSITION_FEELS, TRANSITION_PROPERTY_KEY, TextAlign, TextBlockComponent, ToastClass, ToastEdge, TooltipClass, TooltipRuntime, VALIDATION_STATES, VALIDATION_STATE_CLASS, VIRTUAL_TRAIT_GROUPS, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, VisibilityActionType, activeActions, afterPreloader, animateAction, applyBindingPipes, applyBoundStyle, applyBoundStyles, applyFeel, armCountUp, armInteractionCounts, attachDatePicker, attachDatePickers, attachScrollProgress, attachStringForm, attachTooltips, bootSlider, boundStyleCss, boundStyleEntries, boundStyleOf, breakpointDef, breakpointForWidth, breakpointQueryFor, buildInteractionKeyframes, buildPartSelector, buildPreloaderLayer, buildSwiperBreakpoints, buildTargetedStateSelector, buildTargetedSuffixSelector, buildTransitionTimeline, canPopover, cascadeChain, clearInputOverride, clearOverride, clearToasts, closeAboveMediaQuery, closeAllPopovers, closePopover, collectContextSlotKeys, commitInlineEdit, compileDeclarations, compilePageStyle, componentStatesFor, composeVirtualTraits, containerHtmlTag, contextActionEffect, contextSlotKeys, countDuration, countIsReadable, countLocaleOf, countOverrides, countValueAt, coverPanelStyle, createCoverPanel, datePickerOf, declaredInputNames, decomposeBackdropFilter, defaultHoverTransitionTraits, defaultMessageResolver, deriveSeoFromContent, describePageStyle, describeSeoFields, dialogCloseAboveMinWidth, directionalFrames, domHasSliderParts, durationMs, effectiveActionType, effectiveTransitionId, ensurePreloaderStyles, entrancePreStateStyle, entranceStartsHidden, fanMiddle, feelFor, fieldLanguage, finalKeyframe, firstScreenReadiness, floatingLayer, floatingScope, formSentWords, formToastsOnSend, formatCount, framesFromLiveValue, gateHoverRule, getSeoValue, hasCounted, hasHoverState, hasOwnPageTransition, hasOwnTransition, headerShouldHide, hideFromTopLayer, hidingHeadersIn, initialSlotValues, inkFollowingHeadersIn, interactionMarkerAttributes, isActionEnabled, isBoundProp, isBoundStyleProp, isContextAction, isCubicBezier, isCurrentLink, isEasingToken, isExternalOrFragment, isGradientPaint, isHoverPointer, isHoverState, isInputOverriddenAt, isInteractionEasing, isLastEmittedStateKey, isOpenPopover, isOperated, isOverriddenAt, isPopoverOpen, isPreloading, isPressFeedback, isScrolled, isStructuralState, isValidSlotKey, isWholeBackdropSet, keyframePropertyName, keyframeStyleEntries, layerFrame, legacyEnterToTransition, lookEaseOf, markScrollbarsTakeWidth, mediaQueryFor, mergeSwiperBreakpoints, migrateLegacyDirection, migrateLegacyTextAlign, motionAllowed, mountPreloader, nearestCommonAncestorId, needsAccessibleName, needsGroupName, nodeA11yAttributes, nodeCssId, nodeTraitValue, nodeUsesContext, normalizeAppPath, normalizeGalleryImage, normalizeIconClass, openPopover, openingPictureOf, orderStatesForEmit, pageTransitionOf, parentBreakpoint, parseCount, parseUrlList, partClassName, placeFloating, placePopover, planPartRule, planResponsiveRules, planScroll, planStateRule, planSwiperOptions, playCountUp, playDualLayerTransition, playInteraction, playPreloaderPreview, playsOnScroll, popoverPanelAttributes, popoverSide, prefersReducedMotion, preloaderContentOf, preloaderHeadScript, raiseFloatingLayer, raiseFormToast, rectInLayer, reducedEntranceFades, reducedEntranceRun, renderDefaultDeclarations, resetPageStyleField, resetSeoField, resolveBoundValue, resolveContextValue, resolveGalleryEffect, resolveGalleryUrls, resolveInputChain, resolveInputs, resolveInteractionEasing, resolvePageTransition, resolvePath, resolveSeo, resolveStateStyles, resolveStyleProps, resolveToggleVisibility, resolveValueChain, restoreCountUp, rewriteViewportUnits, runPreloader, safeSetInput, scrollActionKind, scrollMotionEnv, scrollbarsTakeWidthScript, scrubUntilOf, serializeA11yAttributes, setDateFieldValue, setInputOverride, setOverride, setSeoAuto, setSeoBinding, setSeoOverride, setSeoValue, settleInteraction, settleModeFor, shakeElement, showCalendarDesign, showInTopLayer, showToast, showToastDesign, sliderControlElements, sliderInputsFromProps, sliderInputsOf, sliderRunwayHtml, splitOuterProps, splitPressFeedback, stateNamesIn, statePseudoClass, stateSelectorSuffix, stateTransitionProperties, stringFormRuntimeOf, stripSuppressedProps, swiperAutoplayAllowed, swiperLoopOptions, swiperModuleNames, syncInteractionMarkers, syncNodeA11yAttributes, syncSubmitButtons, targetedStateSelector, toLayerRect, toastCloseWord, toastDuration, toastEdge, toastsToEvict, togglePopover, tooltipSide, tooltipTiming, tooltipWords, tooltipsOf, transitionPropertyList, translateYOf, viewportTransitionContext, watchHeaderInk, watchHeaders, watchScrolled, withContextSlots, withPhoneDefaults, withStateTransitions, wrapInBreakpointQuery, wrapInMediaQuery };
|
|
4959
|
+
export type { A11yNodeSource, AnimateActionOptions, BoundStyleTarget, BoundValueSpec, BreakpointDef, ContextActionEffect, ContextActionLike, ContextItemRef, ContextSlotDefault, ContextValueSpec, ContextWriteScope, CountTarget, CoverPanelContext, CurrentLinkOptions, DatePickerOptions, FloatingLayerOptions, FloatingOptions, FloatingPlacement, FloatingRect, FloatingSize, FloatingViewport, FormMessageResolver, GalleryBoundSource, GalleryDurations, GalleryEffect, GalleryEffectDescriptor, GalleryImage, GalleryLoopOptions, GalleryLoopScheduler, GalleryLoopState, GallerySlideState, HeaderRuntimeOptions, IBuilderEventEmitter, InlineEditableNode, InputMap, InteractionKeyframe, IoxContextSlot, IoxPipe, LayerFrame, MatchMediaHost, NodeA11yContext, OverrideBreakpoint, PageCoverSpec, PageScrollStart, PageStyleFieldState, PageStyleOptions, PageStyleSettings, PageTransitionCategory, PageTransitionCategoryMeta, PageTransitionContext, PageTransitionOptions, PageTransitionPreset, PipeArgSpec, PipeContext, PipeDescriptor, PlannedPageTransition, PopoverCloseOptions, PopoverOpenOptions, PreloaderContent, PreloaderPreviewOptions, PreloaderRunOptions, PressAction, RegisteredField, ResolvedPageCover, ResolvedPageTransition, ResponsiveLayer, ResponsiveOverrides, ResponsiveRuleSet, RouteAnimationLike, ScrollPlanContext, ScrollProgressAction, ScrollProgressHost, ScrollProgressInteraction, ScrollSource, SeoDerivedContent, SeoFieldSource, SeoFieldState, SeoResolveContext, SetContextParams, SettleOptions, SliderBootOptions, SliderControlElements, SliderInputs, StateRulePlan, StateScope, StateStyleMap, StringFormOptions, StyleMap, StyleTreeNode, SwiperBreakpointMap, SwiperModuleFlags, SwiperPlan, SwiperPlanContext, ToastHandle, ToastOptions, ToggleableAction, TooltipRuntimeOptions, TooltipTimingState, TransitionFeel, TransitionPhase, TransitionPreviewLayers, TransitionTimelineInput, TransitionViewport, ValueSource, VirtualTraitGroup };
|
package/package.json
CHANGED
|
@@ -260,7 +260,8 @@ export function applyLookEdits(current: DesignChoices | null | undefined, edits:
|
|
|
260
260
|
refuse(LookAxis.Mode, AssistIssueCode.NotAnOption, `${preset.name} is drawn in ${preset.modes.join(' and ')} only, not ${MODE_LABELS[wear!]}`);
|
|
261
261
|
} else {
|
|
262
262
|
const { fonts: _drop, ...rest } = look;
|
|
263
|
-
|
|
263
|
+
// The site's content column is the site's too (award §0c, AW-D39): a style never narrows or widens it.
|
|
264
|
+
next = { ...rest, ...Object.fromEntries(SITE_MOTION.map(k => [k, before[k]])), column: before.column } as DesignChoices;
|
|
264
265
|
}
|
|
265
266
|
}
|
|
266
267
|
}
|
|
@@ -178,11 +178,14 @@ const ZERO = '0px 0px 0px 0px';
|
|
|
178
178
|
/** A control in the bar: in flow, its own size, no offsets (the bar spaces its parts). */
|
|
179
179
|
const BAR_PART_LAYOUT: Readonly<Record<string, string>> = { position: 'static', top: 'auto', margin: ZERO };
|
|
180
180
|
/**
|
|
181
|
-
* The bar (M1.3): a row under the picture. Its inline padding keeps the PAGE's
|
|
182
|
-
* screen's edge — the
|
|
183
|
-
* width, the bar's containing block) — so in a padded section it is 0 and at full bleed it is the
|
|
181
|
+
* The bar (M1.3): a row under the picture. Its inline padding keeps the PAGE's inset when the slider bleeds to the
|
|
182
|
+
* screen's edge — the page's inset less however far the slider is already inset from the screen (`100%` is the slider's
|
|
183
|
+
* width, the bar's containing block) — so in a padded section it is 0 and at full bleed it is the page's inset.
|
|
184
|
+
* The page's inset is `space-inline` (award §0c.8, AW-D41) written in viewport units — `max(4vw, gutter, (100vw −
|
|
185
|
+
* content-width) / 2)` — because a `%` here is the SLIDER's, never the page's (T-CW2); the canvas rewrites `vw` to its
|
|
186
|
+
* frame. A classic scrollbar shifts it by ≤ 8px, the same trade as before.
|
|
184
187
|
*/
|
|
185
|
-
const BAR_INLINE_PAD = 'max(0px, calc(var(--iox-space-gutter, 24px) - (100vw - 100%) / 2))';
|
|
188
|
+
export const BAR_INLINE_PAD = 'max(0px, calc(max(4vw, var(--iox-space-gutter, 24px), (100vw - var(--iox-content-width, 100%)) / 2) - (100vw - 100%) / 2))';
|
|
186
189
|
const BAR_BASE: Readonly<Record<string, string>> = {
|
|
187
190
|
position: 'relative', display: 'flex', flexDirection: 'row', flexWrap: 'nowrap', alignItems: 'center', justifyContent: 'flex-start',
|
|
188
191
|
gap: '12px', width: '100%', height: 'auto', minHeight: '44px', margin: ZERO, padding: `12px ${BAR_INLINE_PAD} 0px ${BAR_INLINE_PAD}`, zIndex: '10',
|
|
@@ -61,6 +61,20 @@ function packDefaultsLookup(): (packId: string) => ReadonlyArray<Map<string, See
|
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
+
/**
|
|
65
|
+
* Token values the contract SUPERSEDED for rows a v2 pack seeds — a machine row still holding one is untouched, so an
|
|
66
|
+
* Apply rewrites it and the builder load heals it (`designTokenRepairs`), the way DS9's contrast fixes reached studios:
|
|
67
|
+
* - guidance `56d6264` (award §0c CW0, AW-D41): `section-pad` and `nav-pad` read `space-inline` — before, every pattern
|
|
68
|
+
* section and the header padded by the bare `space-gutter`, and Glass's pill computed its own `10px 10px 10px 22px`.
|
|
69
|
+
* A spec pins every entry as no flavor's current value. Add one with every contract change of a seeded token's value.
|
|
70
|
+
*/
|
|
71
|
+
export const SUPERSEDED_TOKEN_VALUES: Readonly<Record<string, ReadonlyArray<string>>> = {
|
|
72
|
+
'section-pad': ['var(--iox-space-section) var(--iox-space-gutter)'],
|
|
73
|
+
'nav-pad': ['16px var(--iox-space-gutter)', '10px 10px 10px 22px'],
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
const supersededOf = (name: string): SeedExpectation[] => (SUPERSEDED_TOKEN_VALUES[name] ?? []).map(value => ({ value }));
|
|
77
|
+
|
|
64
78
|
const present = (list: ReadonlyArray<SeedExpectation | undefined>): SeedExpectation[] => list.filter((e): e is SeedExpectation => !!e);
|
|
65
79
|
|
|
66
80
|
const FONT_ROLES: ReadonlySet<string> = new Set(FONT_FAMILY_TOKENS);
|
|
@@ -97,7 +111,7 @@ export function designBaseline(previous: StoredDesign): SeedBaseline {
|
|
|
97
111
|
if (stampedBy === SWISS_FLAVOR.id) return swiss.get(row.name);
|
|
98
112
|
const ownDefaults = stampedBy ? packDefaults(stampedBy).map(m => m.get(row.name)) : [];
|
|
99
113
|
const expected = [current.get(row.name), beforeTint.get(row.name), ...ownDefaults];
|
|
100
|
-
return present([...expected, ...expected.map(e => beforeScriptPartners(row.name, e))]);
|
|
114
|
+
return present([...expected, ...expected.map(e => beforeScriptPartners(row.name, e)), ...(stampedBy ? supersededOf(row.name) : [])]);
|
|
101
115
|
};
|
|
102
116
|
}
|
|
103
117
|
|
|
@@ -214,7 +228,9 @@ export function missingDesignRows(existing: ReadonlyArray<{ name: string }>, cho
|
|
|
214
228
|
* `accent-text` that reads on every ground — reach a studio that applied its look before them;
|
|
215
229
|
* - stamped by the current pack and still holding a font stack WITHOUT the Hebrew partner the pairing now
|
|
216
230
|
* names second (H1-2): a Hebrew page of a studio seeded before it would draw its headings in the browser's
|
|
217
|
-
* default face for good
|
|
231
|
+
* default face for good;
|
|
232
|
+
* - stamped by a v2 pack and still holding a value the contract superseded (`SUPERSEDED_TOKEN_VALUES`): the content
|
|
233
|
+
* column's one edge (award §0c, AW-D41) reaches a studio seeded before it.
|
|
218
234
|
* No author edit produces any of these shapes — the Tokens panel edited the light value only, and since DS8 an
|
|
219
235
|
* edit makes the row `source: user`, which this never touches.
|
|
220
236
|
*/
|
|
@@ -235,6 +251,7 @@ export function designTokenRepairs(existing: ReadonlyArray<StoredDesignTokenRow>
|
|
|
235
251
|
const machineWrote = present([
|
|
236
252
|
...(stampedBy ? packDefaults(stampedBy).map(m => m.get(row.name)) : []),
|
|
237
253
|
...(stampedBy === pack.id ? [beforeTint.get(row.name), beforeScriptPartners(row.name, want), beforeScriptPartners(row.name, beforeTint.get(row.name))] : []),
|
|
254
|
+
...(stampedBy ? supersededOf(row.name) : []),
|
|
238
255
|
]);
|
|
239
256
|
if (!darkOnly && !untouchedSeedRow(row, machineWrote)) continue;
|
|
240
257
|
out.push({ id: row._id, data: { value: want.value, values: want.values ?? {}, source: stamp, ...(want.group ? { group: want.group } : {}), ...(want.tier ? { tier: want.tier } : {}) } });
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SPEC_AXES, SPEC_FONT_ROLES } from './flavor-spec.generated';
|
|
2
2
|
import { parseHexColor } from './brand';
|
|
3
3
|
import {
|
|
4
|
-
AnimateId, BetweenId, DesignChoices, DesignMode, DesignMotion, FlavorPackV2, FontRoleToken, PRE_MOTION, PRE_TINT_DEFAULT,
|
|
5
|
-
SPEC_FLAVORS, TintId,
|
|
4
|
+
AnimateId, BetweenId, ColumnId, DesignChoices, DesignMode, DesignMotion, FlavorPackV2, FontRoleToken, PRE_COLUMN, PRE_MOTION, PRE_TINT_DEFAULT,
|
|
5
|
+
ScrollId, SPEC_FLAVORS, TintId,
|
|
6
6
|
} from './design-token.model';
|
|
7
7
|
import type { FlavorRevertSnapshot } from './flavor-seed';
|
|
8
8
|
import { isArriveId, isMoveId } from './motion-language';
|
|
@@ -37,6 +37,8 @@ export enum DesignConfigKey {
|
|
|
37
37
|
PillButtons = 'pillButtons',
|
|
38
38
|
Mode = 'mode',
|
|
39
39
|
Tint = 'tint',
|
|
40
|
+
/** Award §0c: the site's content column (a `ColumnId`); absent on a row stored before it = wide (AW-D39). */
|
|
41
|
+
Column = 'column',
|
|
40
42
|
Fonts = 'fonts',
|
|
41
43
|
Scroll = 'scroll',
|
|
42
44
|
Animate = 'animate',
|
|
@@ -138,6 +140,7 @@ export function resolveDesignChoices(partial: Partial<DesignChoices> | null | un
|
|
|
138
140
|
pillButtons: asBoolean(partial?.pillButtons) ?? pack.defaults.pillButtons,
|
|
139
141
|
mode: (MODES.includes(asString(partial?.mode) ?? '') ? asString(partial?.mode) : pack.defaults.mode) as DesignMode,
|
|
140
142
|
tint: keyOf(SPEC_AXES.tints, asString(partial?.tint)) ?? pack.defaults.tint,
|
|
143
|
+
column: keyOf<ColumnId>(SPEC_AXES.columns, asString(partial?.column)) ?? pack.defaults.column,
|
|
141
144
|
...(fonts ? { fonts } : {}),
|
|
142
145
|
...resolveDesignMotion(partial),
|
|
143
146
|
...resolveMotionLanguageChoices(partial),
|
|
@@ -180,23 +183,29 @@ export function packDesignChoices(flavorId: string): DesignChoices {
|
|
|
180
183
|
/**
|
|
181
184
|
* What picking a pack card means, given the design the studio wears: the applied pack → the applied
|
|
182
185
|
* choices; another pack → that pack's defaults, CARRYING the author's chosen fonts (§5b — a font the
|
|
183
|
-
* author chose survives a pack switch unless the author changes it)
|
|
184
|
-
* how it scrolls and changes page is not a pack's, so a Look pick never resets it)
|
|
186
|
+
* author chose survives a pack switch unless the author changes it), the site's motion (rev 3.1 MO-D3 —
|
|
187
|
+
* how it scrolls and changes page is not a pack's, so a Look pick never resets it) and the site's content column
|
|
188
|
+
* (award §0c, AW-D39 — a width is the site's, not a style's). Both picker homes call this.
|
|
185
189
|
*/
|
|
186
190
|
export function choicesForPack(flavorId: string, applied: DesignChoices | null | undefined): DesignChoices {
|
|
187
191
|
const pack = flavorPackById(flavorId) ?? defaultPack();
|
|
188
192
|
if (applied && resolveDesignChoices(applied).flavorId === pack.id) return resolveDesignChoices(applied);
|
|
189
|
-
return resolveDesignChoices({
|
|
193
|
+
return resolveDesignChoices({
|
|
194
|
+
flavorId: pack.id, fonts: applied?.fonts, ...resolveDesignMotion(applied), ...(applied?.column ? { column: applied.column } : {}),
|
|
195
|
+
});
|
|
190
196
|
}
|
|
191
197
|
|
|
192
198
|
/**
|
|
193
199
|
* A stored `settings.design` config → the resolved design. No row (or no config) → Crisp's defaults. A
|
|
194
200
|
* row stored before DS9 has no `tint`: it was applied with the look's own palette, so it reads `neutral`
|
|
195
|
-
* (never the pack's new default — the studio's rows hold the palette, and nothing may repaint them unasked).
|
|
201
|
+
* (never the pack's new default — the studio's rows hold the palette, and nothing may repaint them unasked). Likewise a
|
|
202
|
+
* row stored before the content column has no `column`: its pages were built wide, so it reads `wide` (AW-D39, T-CW1 —
|
|
203
|
+
* the pack's `contained` would narrow every built studio on release).
|
|
196
204
|
*/
|
|
197
205
|
export function readDesignConfig(config: ReadonlyArray<DesignConfigEntry> | null | undefined, hasRow = !!config): StoredDesign {
|
|
198
206
|
const map = configMap(config);
|
|
199
207
|
const storedTint = asString(map.get(DesignConfigKey.Tint)) ?? (hasRow ? PRE_TINT_DEFAULT : null);
|
|
208
|
+
const storedColumn = asString(map.get(DesignConfigKey.Column)) ?? (hasRow ? PRE_COLUMN : null);
|
|
200
209
|
const storedFlavorId = asString(map.get(DesignConfigKey.FlavorId));
|
|
201
210
|
const storedSeed = asString(map.get(DesignConfigKey.BrandSeed));
|
|
202
211
|
const choices = resolveDesignChoices({
|
|
@@ -209,6 +218,7 @@ export function readDesignConfig(config: ReadonlyArray<DesignConfigEntry> | null
|
|
|
209
218
|
pillButtons: asBoolean(map.get(DesignConfigKey.PillButtons)) ?? undefined,
|
|
210
219
|
mode: map.get(DesignConfigKey.Mode) as DesignMode,
|
|
211
220
|
tint: (storedTint ?? undefined) as TintId | undefined,
|
|
221
|
+
column: (storedColumn ?? undefined) as ColumnId | undefined,
|
|
212
222
|
fonts: map.get(DesignConfigKey.Fonts) as DesignChoices['fonts'],
|
|
213
223
|
scroll: map.get(DesignConfigKey.Scroll) as ScrollId,
|
|
214
224
|
animate: map.get(DesignConfigKey.Animate) as AnimateId,
|
|
@@ -256,6 +266,7 @@ export function designConfigEntries(
|
|
|
256
266
|
{ key: DesignConfigKey.PillButtons, value: String(c.pillButtons) },
|
|
257
267
|
{ key: DesignConfigKey.Mode, value: c.mode },
|
|
258
268
|
{ key: DesignConfigKey.Tint, value: c.tint },
|
|
269
|
+
{ key: DesignConfigKey.Column, value: c.column },
|
|
259
270
|
{ key: DesignConfigKey.Scroll, value: c.scroll },
|
|
260
271
|
{ key: DesignConfigKey.Animate, value: c.animate },
|
|
261
272
|
{ key: DesignConfigKey.Between, value: c.between },
|
|
@@ -274,7 +285,7 @@ export function sameDesignChoices(a: DesignChoices, b: DesignChoices): boolean {
|
|
|
274
285
|
const y = resolveDesignChoices(b);
|
|
275
286
|
return x.flavorId === y.flavorId && x.seed.toLowerCase() === y.seed.toLowerCase() && x.pairId === y.pairId
|
|
276
287
|
&& x.shape === y.shape && x.density === y.density && x.motion === y.motion
|
|
277
|
-
&& x.pillButtons === y.pillButtons && x.mode === y.mode && x.tint === y.tint
|
|
288
|
+
&& x.pillButtons === y.pillButtons && x.mode === y.mode && x.tint === y.tint && x.column === y.column
|
|
278
289
|
&& x.scroll === y.scroll && x.animate === y.animate && x.between === y.between
|
|
279
290
|
&& (x.feel ?? '') === (y.feel ?? '') && (x.headings ?? '') === (y.headings ?? '')
|
|
280
291
|
&& (x.preloader ?? '') === (y.preloader ?? '')
|
|
@@ -46,6 +46,13 @@ export type TintId = keyof typeof SPEC_AXES.tints;
|
|
|
46
46
|
export const TINT_IDS = Object.keys(SPEC_AXES.tints) as ReadonlyArray<TintId>;
|
|
47
47
|
/** What a studio that stored its look BEFORE the tint existed wears: exactly the look's own palette. */
|
|
48
48
|
export const PRE_TINT_DEFAULT: TintId = 'neutral';
|
|
49
|
+
/** The content column (award plan §0c, AW-D33): Wide (the window minus the one gutter) · Contained · Narrow. */
|
|
50
|
+
export type ColumnId = keyof typeof SPEC_AXES.columns;
|
|
51
|
+
export const COLUMN_IDS = Object.keys(SPEC_AXES.columns) as ReadonlyArray<ColumnId>;
|
|
52
|
+
/** What a studio that stored its look BEFORE the column existed wears: Wide — exactly its pages (AW-D39). */
|
|
53
|
+
export const PRE_COLUMN: ColumnId = SPEC_AXES.columnChoices.pre as ColumnId;
|
|
54
|
+
/** What a NEW look starts on: one centred column (AW-D34; every pack's `defaults.column`). */
|
|
55
|
+
export const NEW_COLUMN: ColumnId = SPEC_AXES.columnChoices.new as ColumnId;
|
|
49
56
|
/** How the site scrolls (AI plan rev 3.1 §3p): Normal (the browser's own) · Smooth · Extra smooth. */
|
|
50
57
|
export type ScrollId = keyof typeof SPEC_AXES.scrolls;
|
|
51
58
|
/** How much the sections move in as they scroll into view: Still · Subtle · Standard · Lively. */
|
|
@@ -81,6 +88,9 @@ export interface DesignChoices {
|
|
|
81
88
|
/** Absent = the pack's default (`defaults.tint`). `readDesignConfig` reads a row stored before DS9 as
|
|
82
89
|
* `neutral` — the palette it was applied with. */
|
|
83
90
|
tint?: TintId;
|
|
91
|
+
/** The site's content column (award §0c). Absent = the pack's default (`defaults.column`, contained); `readDesignConfig`
|
|
92
|
+
* reads a row stored before the column as `wide` — the pages it was built with (AW-D39). */
|
|
93
|
+
column?: ColumnId;
|
|
84
94
|
fonts?: Partial<Record<FontRoleToken, string>>;
|
|
85
95
|
/** Absent = `PRE_MOTION` (a row stored before rev 3.1 reads what its site already did). */
|
|
86
96
|
scroll?: ScrollId;
|
|
@@ -149,6 +159,7 @@ export interface FlavorPackV2 {
|
|
|
149
159
|
readonly pillButtons: boolean;
|
|
150
160
|
readonly mode: DesignMode;
|
|
151
161
|
readonly tint: TintId;
|
|
162
|
+
readonly column: ColumnId;
|
|
152
163
|
};
|
|
153
164
|
readonly seed: string;
|
|
154
165
|
readonly seeds: ReadonlyArray<string>;
|