@vectoriox/iox-ui 5.137.0 → 5.138.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/assist-core/index.d.ts +22 -4
- package/composite-core/index.d.ts +10 -2
- package/design-core/index.d.ts +225 -20
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs +12 -2
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs +29 -5
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +18 -2
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +376 -61
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +986 -230
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +5 -4
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs +197 -28
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +185 -11
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +1111 -732
- package/harness-core/index.d.ts +2 -2
- package/index.d.ts +46 -2
- package/package.json +1 -1
- package/scene-core/index.d.ts +69 -13
- package/src/actions-core/element-actions.ts +14 -4
- package/src/assist-core/assist-turn.ts +3 -1
- package/src/assist-core/route-schema.ts +20 -5
- package/src/assist-core/surfaces.ts +12 -0
- package/src/composite-core/header.ts +18 -1
- package/src/design-core/design-settings.ts +14 -3
- package/src/design-core/design-token.model.ts +3 -0
- package/src/design-core/flavor-spec.generated.ts +64 -25
- package/src/design-core/graphemes.ts +16 -0
- package/src/design-core/header-behaviour.ts +20 -2
- package/src/design-core/motion-language.ts +11 -7
- package/src/design-core/node-classes.ts +10 -4
- package/src/design-core/preloader.ts +3 -4
- package/src/design-core/public-api.ts +3 -0
- package/src/design-core/scrub.ts +37 -0
- package/src/design-core/section-edge.ts +223 -0
- package/src/design-core/style-presets.ts +2 -0
- package/src/generation-core/body-mix.ts +443 -0
- package/src/generation-core/check-layout.ts +42 -4
- package/src/generation-core/compose-layout.ts +28 -6
- package/src/generation-core/compose-site.ts +26 -8
- package/src/generation-core/header-mix.ts +4 -0
- package/src/generation-core/layout-fingerprint.ts +19 -1
- package/src/generation-core/layout-language.ts +21 -1
- package/src/generation-core/layout-wire.ts +27 -2
- package/src/generation-core/node-baselines.generated.ts +7 -2
- package/src/generation-core/opening-mix.ts +32 -0
- package/src/generation-core/plan-wire.ts +1 -0
- package/src/generation-core/public-api.ts +2 -0
- package/src/generation-core/redesign-run.ts +27 -0
- package/src/generation-core/site-build-run.ts +24 -6
- package/src/generation-core/site-plan.model.ts +2 -0
- package/src/generation-core/site-spec.generated.ts +120 -58
- package/src/generation-core/text-scroll.ts +179 -0
- package/src/generation-core/validate-site-plan.ts +4 -2
- package/src/harness-core/starting-design.ts +6 -5
- package/src/scene-core/scroll-range.ts +4 -0
- package/src/scene-core/split-text.ts +216 -28
- package/styles/iox-design.css +87 -0
|
@@ -4,6 +4,7 @@ import type { ComposedPlaceholder } from './compose-site';
|
|
|
4
4
|
import type { LayoutIssue } from './layout-language';
|
|
5
5
|
import type { SerializedNode } from './serialized-node';
|
|
6
6
|
import type { AdditionIssue, AdditionOrigin } from './redesign-additions';
|
|
7
|
+
import type { AiRefusal } from './ai-run';
|
|
7
8
|
import { BuildStepError, BuildStepRecord, CreatedRecord, SiteBuildKind, SiteBuildStatus, UndoKept } from './site-build-run';
|
|
8
9
|
import type { PagePlan } from './site-plan.model';
|
|
9
10
|
|
|
@@ -80,6 +81,9 @@ export interface RedesignRequest {
|
|
|
80
81
|
keep: Record<string, number[]>;
|
|
81
82
|
/** A model the owner chose for the layouts (M8 D4), or none: the studio's choice for the step. */
|
|
82
83
|
model?: string;
|
|
84
|
+
/** False: nothing is added — no page, type or item is suggested or asked for (RD3-D7, "Redesign this page" in the
|
|
85
|
+
* builder). Absent: the additions step runs as for a site (§3e). */
|
|
86
|
+
additions?: boolean;
|
|
83
87
|
}
|
|
84
88
|
|
|
85
89
|
/** A page as the Snapshot took it — what Back restores, and what Switch judges a page edited after the harvest by. */
|
|
@@ -360,6 +364,29 @@ export enum RedesignRefusalCode {
|
|
|
360
364
|
NotRedesignable = 'not-redesignable',
|
|
361
365
|
}
|
|
362
366
|
|
|
367
|
+
/** Why "Redesign this page" cannot start, said before any call (RD3 R-H6): the page keeps its layout (`not-redesignable`
|
|
368
|
+
* — a legal page, a hand-made page with no reading, a page with no source), nothing of the studio was built
|
|
369
|
+
* (`nothing-built`), or the AI refuses the layout request (credits, plan, key — the shared `AiRefusal`, board 11). */
|
|
370
|
+
export type RedesignPageRefusal =
|
|
371
|
+
| { code: RedesignRefusalCode.NotRedesignable; message: string; reason: StagedPageReason }
|
|
372
|
+
| { code: RedesignRefusalCode.NothingBuilt; message: string }
|
|
373
|
+
| AiRefusal;
|
|
374
|
+
|
|
375
|
+
/** `GET …/site-builds/redesign/pages/:pageId/preflight` — what "Redesign this page" says before it sends (RD3, board P1
|
|
376
|
+
* and P5): whether it may start, and what ONE layout request costs on the model it would run on. Writes nothing. */
|
|
377
|
+
export interface RedesignPagePreflight {
|
|
378
|
+
pageId: string;
|
|
379
|
+
refusal: RedesignPageRefusal | null;
|
|
380
|
+
/** The page is laid out by the model (false: it is re-fitted to the look — patterns, or no reading — and costs nothing). */
|
|
381
|
+
asksModel: boolean;
|
|
382
|
+
/** Why it is re-fitted instead (absent when the model lays it out). */
|
|
383
|
+
reason?: StagedPageReason;
|
|
384
|
+
/** About what the layout request costs, in credits (0 when no model is asked; null when the studio's plan is unknown). */
|
|
385
|
+
estimate: number | null;
|
|
386
|
+
/** The model it would run on (Auto resolved), or null. */
|
|
387
|
+
model: string | null;
|
|
388
|
+
}
|
|
389
|
+
|
|
363
390
|
/** The day Back closes, or null (not switched). */
|
|
364
391
|
export function redesignBackUntil(run: Pick<RedesignRun, 'switch'>): Date | null {
|
|
365
392
|
const at = run.switch?.finishedAt ?? run.switch?.at;
|
|
@@ -185,6 +185,9 @@ export enum BuildNoticeCode {
|
|
|
185
185
|
/** LI5: the footer the plan asked for was mended (a word that waits drawn as its stand-in, a one-line footer that
|
|
186
186
|
* holds only some parts) — said like the header's and the opening's. */
|
|
187
187
|
FooterMended = 'footer-mended',
|
|
188
|
+
/** AW6: the body the plan asked for was mended (a section edge that comes with the award plan, on a basic build) —
|
|
189
|
+
* said like the header's, the opening's and the footer's. */
|
|
190
|
+
BodyMended = 'body-mended',
|
|
188
191
|
}
|
|
189
192
|
|
|
190
193
|
/** RD3-D3 (a): what a build does with a page an earlier Undo kept at an address its plan builds — the header and footer's
|
|
@@ -192,7 +195,8 @@ export enum BuildNoticeCode {
|
|
|
192
195
|
export enum KeptPagesChoice {
|
|
193
196
|
/** Build every other page; leave these as they are. */
|
|
194
197
|
Keep = 'keep',
|
|
195
|
-
/** Move each aside as a draft at `/<route>-previous` and build the plan's
|
|
198
|
+
/** Move each aside as a draft at `/<route>-previous` (`/shop-previous/:slug` for a per-item page) and build the plan's
|
|
199
|
+
* page at its address. Nothing is deleted. */
|
|
196
200
|
Replace = 'replace',
|
|
197
201
|
}
|
|
198
202
|
|
|
@@ -200,13 +204,26 @@ export enum KeptPagesChoice {
|
|
|
200
204
|
export const PREVIOUS_ROUTE_SUFFIX = '-previous';
|
|
201
205
|
|
|
202
206
|
/** Where a page moved aside goes: `/<route>-previous`, then `-previous-2`… — never an address in `taken` (shapes
|
|
203
|
-
* compared case-insensitively, trailing slash ignored). The home page (`/`) goes to `/home-previous`.
|
|
207
|
+
* compared case-insensitively, trailing slash and parameter names ignored). The home page (`/`) goes to `/home-previous`.
|
|
208
|
+
*
|
|
209
|
+
* ⚠️ The suffix goes on the route's LAST STATIC segment, never on a `:param` (vectoriox/iox-ui#100): `/shop/:slug` moved
|
|
210
|
+
* to `/shop/:slug-previous` still answered every `/shop/<item>` — a parameter matches the whole segment — and, older
|
|
211
|
+
* and published by Publish site, the replaced product page was served instead of the new one. So `/shop/:slug` →
|
|
212
|
+
* `/shop-previous/:slug`, and a route of parameters only (`/:slug`) → `/previous/:slug`. */
|
|
204
213
|
export function previousRoute(route: string, taken: ReadonlyArray<string>): string {
|
|
205
|
-
const key = (r: string) => (r.replace(/\/+$/, '') || '/').toLowerCase();
|
|
214
|
+
const key = (r: string) => (r.replace(/\/+$/, '') || '/').replace(/\/:[^/]+/g, '/:').toLowerCase();
|
|
206
215
|
const held = new Set(taken.map(key));
|
|
207
|
-
const
|
|
208
|
-
|
|
209
|
-
|
|
216
|
+
const segments = (route.replace(/\/+$/, '') || '/home').split('/').filter(Boolean);
|
|
217
|
+
if (!segments.length) segments.push('home');
|
|
218
|
+
const at = segments.map((seg, i) => (seg.startsWith(':') ? -1 : i)).filter(i => i >= 0).pop();
|
|
219
|
+
const shaped = (suffix: string) => {
|
|
220
|
+
const out = [...segments];
|
|
221
|
+
if (at === undefined) out.unshift(`previous${suffix}`);
|
|
222
|
+
else out[at] = `${out[at]}${PREVIOUS_ROUTE_SUFFIX}${suffix}`;
|
|
223
|
+
return `/${out.join('/')}`;
|
|
224
|
+
};
|
|
225
|
+
let candidate = shaped('');
|
|
226
|
+
for (let n = 2; held.has(key(candidate)); n++) candidate = shaped(`-${n}`);
|
|
210
227
|
return candidate;
|
|
211
228
|
}
|
|
212
229
|
|
|
@@ -217,6 +234,7 @@ const MEND_NOTICES: ReadonlyArray<readonly [ComposeIssueCode, BuildNoticeCode]>
|
|
|
217
234
|
[ComposeIssueCode.HeaderMended, BuildNoticeCode.HeaderMended],
|
|
218
235
|
[ComposeIssueCode.OpeningMended, BuildNoticeCode.OpeningMended],
|
|
219
236
|
[ComposeIssueCode.FooterMended, BuildNoticeCode.FooterMended],
|
|
237
|
+
[ComposeIssueCode.BodyMended, BuildNoticeCode.BodyMended],
|
|
220
238
|
];
|
|
221
239
|
const CARRY_ONLY = /^the opening found no place for /;
|
|
222
240
|
|
|
@@ -347,6 +347,8 @@ export interface PlanMixes {
|
|
|
347
347
|
readonly header?: ReadonlyArray<string>;
|
|
348
348
|
readonly footer?: ReadonlyArray<string>;
|
|
349
349
|
readonly opening?: ReadonlyArray<string>;
|
|
350
|
+
/** AW6 (body-mix.ts): how sections meet, how their grounds follow one another, the texture and extra kinds of section. */
|
|
351
|
+
readonly body?: ReadonlyArray<string>;
|
|
350
352
|
}
|
|
351
353
|
|
|
352
354
|
/** M8 gate 2: the idea a site's composed pages serve — the usual site for the business, and what this one does instead. */
|
|
@@ -17,12 +17,13 @@ export const SPEC_SITE_PLAN_SHAPE = {
|
|
|
17
17
|
"film?": "film — the owner's film as pictures (SC6b), set by the build and placed by placeFilm; never a model's",
|
|
18
18
|
"artDirection?": "artDirection — what every picture made for the site shares (M7): set by the generation from the business type and the look (generation-core artDirectionFor); never a model's",
|
|
19
19
|
"direction?": "direction — what the site is built around (M8 gate 2): written with the pages, shown on the Plan step; every composed page serves it",
|
|
20
|
-
"mixes?": "mixes — the header, the footer
|
|
20
|
+
"mixes?": "mixes — the header, the footer, the home page's opening and the body as mixes of ingredients (ingredients.md); a header or footer mix wins over its globals pattern"
|
|
21
21
|
},
|
|
22
22
|
"mixes": {
|
|
23
23
|
"header?": "string[] — the header as <ingredient>:<word> words (site.layout.header; header ingredients HI1)",
|
|
24
24
|
"footer?": "string[] — the footer as <ingredient>:<word> words (site.layout.footer; list ingredients LI5)",
|
|
25
|
-
"opening?": "string[] — the home page's opening (its first screen) as <ingredient>:<word> words (site.layout.opening; award ingredients AW8): it takes the place of the home page's first section when that is a hero, the hero's words and pictures carried in; absent or empty = the home page opens with its sections as written"
|
|
25
|
+
"opening?": "string[] — the home page's opening (its first screen) as <ingredient>:<word> words (site.layout.opening; award ingredients AW8): it takes the place of the home page's first section when that is a hero, the hero's words and pictures carried in; absent or empty = the home page opens with its sections as written",
|
|
26
|
+
"body?": "string[] — the site's body as <ingredient>:<word> words (site.layout.body; award ingredients AW6): how sections meet (seam), how their grounds follow one another (rhythm), the texture and the extra kinds of section; absent or empty = straight seams, each section's ground its own"
|
|
26
27
|
},
|
|
27
28
|
"direction": {
|
|
28
29
|
"idea": "string — one sentence: what this site is about and how it should feel",
|
|
@@ -76,7 +77,8 @@ export const SPEC_SITE_PLAN_SHAPE = {
|
|
|
76
77
|
"between?": "string — axes.betweens: what plays between pages",
|
|
77
78
|
"feel?": "string — motionLanguage.arrive: the curve things arrive on, the leave follows it (AW3, MB-D5; absent = motionLanguage.defaults.arrive)",
|
|
78
79
|
"headings?": "string — motionLanguage.move: how headings arrive (AW3; absent = each How animated level's own heading)",
|
|
79
|
-
"preloader?": "string — motionLanguage.preloader: what opens a visitor's first page (AW5; absent = none; the exit is the style's, never stored)"
|
|
80
|
+
"preloader?": "string — motionLanguage.preloader: what opens a visitor's first page (AW5; absent = none; the exit is the style's, never stored)",
|
|
81
|
+
"scrub?": "string — motionLanguage.scrub: what follows the scroll — never · words · entrances (AW10; absent = never; Lively and up, Pro)"
|
|
80
82
|
},
|
|
81
83
|
"contentType": {
|
|
82
84
|
"name": "string — unique",
|
|
@@ -6643,7 +6645,8 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
6643
6645
|
"clipReveal",
|
|
6644
6646
|
"maskRise",
|
|
6645
6647
|
"blurIn",
|
|
6646
|
-
"pop"
|
|
6648
|
+
"pop",
|
|
6649
|
+
"letters"
|
|
6647
6650
|
],
|
|
6648
6651
|
"sides": [
|
|
6649
6652
|
"bottom",
|
|
@@ -6755,7 +6758,8 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
6755
6758
|
"loop",
|
|
6756
6759
|
"drift",
|
|
6757
6760
|
"scroll",
|
|
6758
|
-
"autoplay"
|
|
6761
|
+
"autoplay",
|
|
6762
|
+
"scrub"
|
|
6759
6763
|
],
|
|
6760
6764
|
"dials": [
|
|
6761
6765
|
"distinct",
|
|
@@ -7876,6 +7880,10 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
7876
7880
|
"none",
|
|
7877
7881
|
"icons",
|
|
7878
7882
|
"search"
|
|
7883
|
+
],
|
|
7884
|
+
"ink": [
|
|
7885
|
+
"opening",
|
|
7886
|
+
"follows"
|
|
7879
7887
|
]
|
|
7880
7888
|
},
|
|
7881
7889
|
"meanings": {
|
|
@@ -7939,7 +7947,9 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
7939
7947
|
"above.marquee": "a moving band of the owner's words above the bar",
|
|
7940
7948
|
"inBar.none": "nothing more in the bar",
|
|
7941
7949
|
"inBar.icons": "small icons (sound, theme, chat) in the bar",
|
|
7942
|
-
"inBar.search": "a search field in the bar"
|
|
7950
|
+
"inBar.search": "a search field in the bar",
|
|
7951
|
+
"ink.opening": "the header's ink follows the page's opening ground",
|
|
7952
|
+
"ink.follows": "the header's ink follows the ground of every section that passes under it"
|
|
7943
7953
|
},
|
|
7944
7954
|
"meaningsHe": {
|
|
7945
7955
|
"arrange.split": "השם בתחילת הפס, הדפים בסופו",
|
|
@@ -8002,7 +8012,9 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
8002
8012
|
"above.marquee": "פס נע של מילים מעל הפס",
|
|
8003
8013
|
"inBar.none": "שום דבר נוסף בפס",
|
|
8004
8014
|
"inBar.icons": "אייקונים קטנים (צליל, ערכת צבע, צ׳אט) בפס",
|
|
8005
|
-
"inBar.search": "שדה חיפוש בפס"
|
|
8015
|
+
"inBar.search": "שדה חיפוש בפס",
|
|
8016
|
+
"ink.opening": "צבע הכותרת העליונה הולך אחרי הרקע של פתיחת הדף",
|
|
8017
|
+
"ink.follows": "צבע הכותרת העליונה הולך אחרי הרקע של כל אזור שעובר מתחתיה"
|
|
8006
8018
|
},
|
|
8007
8019
|
"waits": {
|
|
8008
8020
|
"menuShows.pictures": {
|
|
@@ -8083,7 +8095,8 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
8083
8095
|
"button": "lines",
|
|
8084
8096
|
"menuHover": "line",
|
|
8085
8097
|
"above": "none",
|
|
8086
|
-
"inBar": "none"
|
|
8098
|
+
"inBar": "none",
|
|
8099
|
+
"ink": "opening"
|
|
8087
8100
|
},
|
|
8088
8101
|
"named": {
|
|
8089
8102
|
"nav.inline-cta": {},
|
|
@@ -8733,10 +8746,6 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
8733
8746
|
"phase": "AW7",
|
|
8734
8747
|
"drawnAs": "photo"
|
|
8735
8748
|
},
|
|
8736
|
-
"motion.copy-out": {
|
|
8737
|
-
"phase": "AW10",
|
|
8738
|
-
"drawnAs": null
|
|
8739
|
-
},
|
|
8740
8749
|
"motion.pinned-covered": {
|
|
8741
8750
|
"phase": "AW9",
|
|
8742
8751
|
"drawnAs": null
|
|
@@ -9110,23 +9119,92 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
9110
9119
|
"sections.timeline": "steps by time (weeks, the hours of a day)",
|
|
9111
9120
|
"sections.hotspots": "points on a picture that open item cards"
|
|
9112
9121
|
},
|
|
9113
|
-
"
|
|
9114
|
-
"seam.
|
|
9115
|
-
|
|
9116
|
-
|
|
9122
|
+
"meaningsHe": {
|
|
9123
|
+
"seam.straight": "קו ישר בין שני רקעים",
|
|
9124
|
+
"seam.wave": "גבעה רכה בין שני רקעים",
|
|
9125
|
+
"seam.drip": "קצה בצורת טיפות נוטפות",
|
|
9126
|
+
"seam.torn": "קצה קרוע ומשונן",
|
|
9127
|
+
"seam.rounded": "אזור עם פינות תחתונות מעוגלות שמונח מעל הבא",
|
|
9128
|
+
"rhythm.free": "הרקע של כל אזור כפי שערכת הצבע שלו בוחרת",
|
|
9129
|
+
"rhythm.alternate": "הרקעים מתחלפים כהה ובהיר, אזור אחרי אזור",
|
|
9130
|
+
"rhythm.loud-quiet": "אזור עם תמונה, ואחריו אזור מילים צר וממורכז, שוב ושוב",
|
|
9131
|
+
"rhythm.chapters": "הרקע מתחלף רק במקום שבו פרק מתחיל",
|
|
9132
|
+
"rhythm.tail": "האזורים האחרונים חולקים את הרקע של הכותרת התחתונה, כך שהסוף נקרא כגוש אחד",
|
|
9133
|
+
"texture.none": "בלי מרקם",
|
|
9134
|
+
"texture.pattern": "דוגמה מצבעי העיצוב: נקודות, רשת, קווקוו, קווי גובה או סמל חוזר",
|
|
9135
|
+
"texture.light": "תמונות צל רכות (תריסים, עלים) מעל רקע של נייר",
|
|
9136
|
+
"texture.material": "חומר שמצויר ב-CSS (צלעות מעל זוהר נע, קרן איטית)",
|
|
9137
|
+
"texture.grain": "גרעיניות של נייר על רקע",
|
|
9138
|
+
"texture.lanes": "קווי השיער של עמודת התוכן וסימני הצלב לאורך כל הדף",
|
|
9139
|
+
"sections.inset-card": "אזור ככרטיס מעוגל על רקע הדף",
|
|
9140
|
+
"sections.sticky-title": "הכותרת של אזור נשארת בזמן שהכרטיסים שלו עוברים",
|
|
9141
|
+
"sections.tabs-nav": "פס לשוניות קבוע בדף, שהקו שלו הולך אחרי האזור שבתצוגה",
|
|
9142
|
+
"sections.promises": "פס של שלוש או ארבע הבטחות קצרות (משלוח, החזרות, אחריות) — העובדות של בעל העסק",
|
|
9143
|
+
"sections.table": "שורות מפתח : ערך (מפרט, השוואה)",
|
|
9144
|
+
"sections.timeline": "שלבים לפי זמן (שבועות, שעות היום)",
|
|
9145
|
+
"sections.hotspots": "נקודות על תמונה שפותחות כרטיסי פריטים"
|
|
9146
|
+
},
|
|
9147
|
+
"seams": {
|
|
9148
|
+
"straight": {
|
|
9149
|
+
"depth": [
|
|
9150
|
+
0,
|
|
9151
|
+
0
|
|
9152
|
+
],
|
|
9153
|
+
"mirrors": false
|
|
9117
9154
|
},
|
|
9118
|
-
"
|
|
9119
|
-
"
|
|
9120
|
-
|
|
9155
|
+
"wave": {
|
|
9156
|
+
"depth": [
|
|
9157
|
+
48,
|
|
9158
|
+
24
|
|
9159
|
+
],
|
|
9160
|
+
"mirrors": false
|
|
9121
9161
|
},
|
|
9122
|
-
"
|
|
9123
|
-
"
|
|
9124
|
-
|
|
9162
|
+
"drip": {
|
|
9163
|
+
"depth": [
|
|
9164
|
+
64,
|
|
9165
|
+
32
|
|
9166
|
+
],
|
|
9167
|
+
"mirrors": true
|
|
9125
9168
|
},
|
|
9126
|
-
"
|
|
9127
|
-
"
|
|
9128
|
-
|
|
9169
|
+
"torn": {
|
|
9170
|
+
"depth": [
|
|
9171
|
+
20,
|
|
9172
|
+
14
|
|
9173
|
+
],
|
|
9174
|
+
"mirrors": true
|
|
9175
|
+
},
|
|
9176
|
+
"rounded": {
|
|
9177
|
+
"depth": [
|
|
9178
|
+
0,
|
|
9179
|
+
0
|
|
9180
|
+
],
|
|
9181
|
+
"radius": [
|
|
9182
|
+
48,
|
|
9183
|
+
28
|
|
9184
|
+
],
|
|
9185
|
+
"mirrors": false
|
|
9186
|
+
}
|
|
9187
|
+
},
|
|
9188
|
+
"rhythms": {
|
|
9189
|
+
"free": {},
|
|
9190
|
+
"alternate": {
|
|
9191
|
+
"neighbours": "differ"
|
|
9192
|
+
},
|
|
9193
|
+
"loud-quiet": {
|
|
9194
|
+
"pairs": 2,
|
|
9195
|
+
"quietCols": 8
|
|
9196
|
+
},
|
|
9197
|
+
"chapters": {
|
|
9198
|
+
"changesAt": [
|
|
9199
|
+
"inhale",
|
|
9200
|
+
"signature"
|
|
9201
|
+
]
|
|
9129
9202
|
},
|
|
9203
|
+
"tail": {
|
|
9204
|
+
"last": 2
|
|
9205
|
+
}
|
|
9206
|
+
},
|
|
9207
|
+
"waits": {
|
|
9130
9208
|
"rhythm.alternate": {
|
|
9131
9209
|
"phase": "AW6",
|
|
9132
9210
|
"drawnAs": "free"
|
|
@@ -9163,10 +9241,6 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
9163
9241
|
"phase": "AW7",
|
|
9164
9242
|
"drawnAs": "none"
|
|
9165
9243
|
},
|
|
9166
|
-
"sections.inset-card": {
|
|
9167
|
-
"phase": "AW6",
|
|
9168
|
-
"drawnAs": null
|
|
9169
|
-
},
|
|
9170
9244
|
"sections.sticky-title": {
|
|
9171
9245
|
"phase": "AW9",
|
|
9172
9246
|
"drawnAs": null
|
|
@@ -9206,7 +9280,8 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
9206
9280
|
"rules": {
|
|
9207
9281
|
"seamAudited": true,
|
|
9208
9282
|
"texturesClearUnderReducedTransparency": true,
|
|
9209
|
-
"seamPaintsOnly": true
|
|
9283
|
+
"seamPaintsOnly": true,
|
|
9284
|
+
"seamKeepsClear": true
|
|
9210
9285
|
},
|
|
9211
9286
|
"tiers": {
|
|
9212
9287
|
"seam.straight": "all",
|
|
@@ -9215,6 +9290,7 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
9215
9290
|
"rules.seamAudited": "all",
|
|
9216
9291
|
"rules.texturesClearUnderReducedTransparency": "all",
|
|
9217
9292
|
"rules.seamPaintsOnly": "all",
|
|
9293
|
+
"rules.seamKeepsClear": "all",
|
|
9218
9294
|
"seam.wave": "pro",
|
|
9219
9295
|
"seam.drip": "pro",
|
|
9220
9296
|
"seam.torn": "pro",
|
|
@@ -9951,7 +10027,7 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
9951
10027
|
"drawnAs": "two"
|
|
9952
10028
|
},
|
|
9953
10029
|
"inline.media": {
|
|
9954
|
-
"phase": "
|
|
10030
|
+
"phase": "AW13",
|
|
9955
10031
|
"drawnAs": "none"
|
|
9956
10032
|
},
|
|
9957
10033
|
"gradient.accent": {
|
|
@@ -10204,14 +10280,6 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
10204
10280
|
"micro.odometer": "a price's digits roll when the period changes"
|
|
10205
10281
|
},
|
|
10206
10282
|
"waits": {
|
|
10207
|
-
"scrub.words": {
|
|
10208
|
-
"phase": "AW10",
|
|
10209
|
-
"drawnAs": "never"
|
|
10210
|
-
},
|
|
10211
|
-
"scrub.entrances": {
|
|
10212
|
-
"phase": "AW10",
|
|
10213
|
-
"drawnAs": "never"
|
|
10214
|
-
},
|
|
10215
10283
|
"loops.drift": {
|
|
10216
10284
|
"phase": "AW8",
|
|
10217
10285
|
"drawnAs": "none"
|
|
@@ -10300,6 +10368,10 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
10300
10368
|
"lively",
|
|
10301
10369
|
"expressive"
|
|
10302
10370
|
],
|
|
10371
|
+
"scrubLevels": [
|
|
10372
|
+
"lively",
|
|
10373
|
+
"expressive"
|
|
10374
|
+
],
|
|
10303
10375
|
"leaveFor": {
|
|
10304
10376
|
"enter": "exit",
|
|
10305
10377
|
"expo-out": "expo-out",
|
|
@@ -10319,7 +10391,8 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
10319
10391
|
"arrive": "enter",
|
|
10320
10392
|
"move": "fade",
|
|
10321
10393
|
"cover": "fade",
|
|
10322
|
-
"preloader": "none"
|
|
10394
|
+
"preloader": "none",
|
|
10395
|
+
"scrub": "never"
|
|
10323
10396
|
},
|
|
10324
10397
|
"coverMaxMs": {
|
|
10325
10398
|
"cover": 400,
|
|
@@ -10362,6 +10435,7 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
10362
10435
|
"rules.preloaderCapMs": "all",
|
|
10363
10436
|
"rules.preloaderLevels": "all",
|
|
10364
10437
|
"rules.popLevels": "all",
|
|
10438
|
+
"rules.scrubLevels": "all",
|
|
10365
10439
|
"rules.leaveFor": "all",
|
|
10366
10440
|
"rules.quietLevels": "all",
|
|
10367
10441
|
"rules.quiet": "all",
|
|
@@ -10924,15 +10998,17 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
10924
10998
|
"revealBy": {
|
|
10925
10999
|
"built": [
|
|
10926
11000
|
"line",
|
|
10927
|
-
"word"
|
|
11001
|
+
"word",
|
|
11002
|
+
"letter"
|
|
10928
11003
|
],
|
|
10929
|
-
"where": "scene-core TextRevealBy"
|
|
11004
|
+
"where": "scene-core TextRevealBy (letter since AW10)"
|
|
10930
11005
|
},
|
|
10931
11006
|
"enterMode": {
|
|
10932
11007
|
"built": [
|
|
10933
|
-
"once"
|
|
11008
|
+
"once",
|
|
11009
|
+
"scrubbed"
|
|
10934
11010
|
],
|
|
10935
|
-
"where": "
|
|
11011
|
+
"where": "an entrance plays once (viewportEnter, once), or by the scroll (AW10: scrollProgress, until 0.5)"
|
|
10936
11012
|
},
|
|
10937
11013
|
"phoneWalk": {
|
|
10938
11014
|
"built": [],
|
|
@@ -10970,20 +11046,6 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
10970
11046
|
"tier": "pro",
|
|
10971
11047
|
"meaning": "a word sits on the bottom edge, cropped by it"
|
|
10972
11048
|
},
|
|
10973
|
-
{
|
|
10974
|
-
"key": "revealBy.letter",
|
|
10975
|
-
"phase": "AW10",
|
|
10976
|
-
"drawnAs": "word",
|
|
10977
|
-
"tier": "pro",
|
|
10978
|
-
"meaning": "words assemble or light letter by letter (split in the browser only, put back after)"
|
|
10979
|
-
},
|
|
10980
|
-
{
|
|
10981
|
-
"key": "enterMode.scrubbed",
|
|
10982
|
-
"phase": "AW10",
|
|
10983
|
-
"drawnAs": "once",
|
|
10984
|
-
"tier": "pro",
|
|
10985
|
-
"meaning": "an entrance follows the scroll instead of playing once"
|
|
10986
|
-
},
|
|
10987
11049
|
{
|
|
10988
11050
|
"key": "phoneWalk.zigzag",
|
|
10989
11051
|
"phase": "AW9",
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { actionOfferedUnder, ELEMENT_ACTION_DESCRIPTORS, SCROLL_PROGRESS_TRIGGER } from '@vectoriox/iox-ui/actions-core';
|
|
2
|
+
import { ScrubId } from '@vectoriox/iox-ui/design-core';
|
|
3
|
+
|
|
4
|
+
import { ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER } from './entrances';
|
|
5
|
+
import { LayoutEnter, LayoutRole } from './layout-language';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* TEXT BY THE SCROLL (award-ingredients-plan AW10; board `award-text-scroll`) — the pure stamps. The runtime is the ONE
|
|
9
|
+
* `scrollProgress` runtime (`attachScrollProgress`), which plays a text's pieces since AW10 (`scrubTextReveal`); nothing
|
|
10
|
+
* here moves anything, it only says what a node carries.
|
|
11
|
+
*
|
|
12
|
+
* - **scrubbed**: an entrance the look stamps on time (`viewportEnter`, once) becomes the SAME action played by the
|
|
13
|
+
* scroll — wholly played when its element reaches the middle of the screen, let go there (its hover and press apply
|
|
14
|
+
* again). The first screen never scrubs: it is wholly in view at load, so a scroll entrance would be let go unseen.
|
|
15
|
+
* - **copy-out**: the opening's words fade as the page leaves it, following the scroll (graya) — a `fadeOut` played by
|
|
16
|
+
* the opening's own exit, gone at 0.6 of it. Opacity only, so it is the same under reduced motion.
|
|
17
|
+
* - **letter**: `params.by = 'letter'` on a text reveal (`TextRevealBy.Letter`); the split is the browser's, never the
|
|
18
|
+
* page's.
|
|
19
|
+
*
|
|
20
|
+
* Board approved 2026-11-22 (AW10-D1…D12): `planEntrances` runs every look stamp through `scrubbedEntrance` (the look's
|
|
21
|
+
* `design.scrub`, the opening excluded), the layout composer through `layoutScrub` (a layer's `scrub`), and
|
|
22
|
+
* `composeOpening` stamps copy-out when the opening's mix names it. The look's word is design-core's `ScrubId`.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/** The action a text reveal is. */
|
|
26
|
+
const TEXT_REVEAL = 'revealText';
|
|
27
|
+
|
|
28
|
+
/** Where a scrubbed entrance plays: from its element's first pixel on screen, wholly played at the middle of it. */
|
|
29
|
+
export const SCRUBBED_ENTRANCE = Object.freeze({ range: 'cover', until: 0.5 });
|
|
30
|
+
|
|
31
|
+
/** Interactions ▸ Follow the scroll ▸ Wholly in by (AW10-D6): the middle of the screen (the default), three quarters of
|
|
32
|
+
* the way, or the end of its pass — `params.until`. */
|
|
33
|
+
export enum ScrubUntil {
|
|
34
|
+
Middle = 'middle',
|
|
35
|
+
ThreeQuarters = 'three-quarters',
|
|
36
|
+
End = 'end',
|
|
37
|
+
}
|
|
38
|
+
export const SCRUB_UNTIL: Readonly<Record<ScrubUntil, number>> = Object.freeze({ [ScrubUntil.Middle]: 0.5, [ScrubUntil.ThreeQuarters]: 0.75, [ScrubUntil.End]: 1 });
|
|
39
|
+
|
|
40
|
+
/** The Wholly in by choice a stored `until` reads as (absent or 1 = the end). */
|
|
41
|
+
export function scrubUntilChoice(until: unknown): ScrubUntil {
|
|
42
|
+
const n = Number(until);
|
|
43
|
+
return (Object.entries(SCRUB_UNTIL).find(([, v]) => v === n)?.[0] as ScrubUntil | undefined) ?? ScrubUntil.End;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** Where copy-out plays: the opening's own exit, the words gone at 0.6 of it. */
|
|
47
|
+
export const COPY_OUT = Object.freeze({ range: 'exit', until: 0.6 });
|
|
48
|
+
|
|
49
|
+
/** A stamped interaction, in the shape both interaction runtimes read. */
|
|
50
|
+
export interface StampedAction {
|
|
51
|
+
type: string;
|
|
52
|
+
target: string;
|
|
53
|
+
duration?: number;
|
|
54
|
+
delay?: number;
|
|
55
|
+
easing?: string;
|
|
56
|
+
once?: boolean;
|
|
57
|
+
params?: Record<string, unknown>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface StampedInteraction {
|
|
61
|
+
id: string;
|
|
62
|
+
trigger: string;
|
|
63
|
+
range?: string;
|
|
64
|
+
actions: StampedAction[];
|
|
65
|
+
origin?: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface ScrubContext {
|
|
69
|
+
/** The node stands in the page's opening (its first screen): it plays on time whatever the scrub. */
|
|
70
|
+
opening?: boolean;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** Whether the look's `scrub` makes an entrance of `type` follow the scroll. */
|
|
74
|
+
export function scrubsEntrance(scrub: ScrubId | string | null | undefined, type: string, context: ScrubContext = {}): boolean {
|
|
75
|
+
if (context.opening) return false;
|
|
76
|
+
if (scrub === ScrubId.Entrances) return true;
|
|
77
|
+
return scrub === ScrubId.Words && type === TEXT_REVEAL;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* An entrance stamp under the look's `scrub` (AW10): the same action played by the scroll when the scrub takes it, else
|
|
82
|
+
* the stamp unchanged. A scroll-played action keeps its own params (distance, side, pieces) and its curve (the look's
|
|
83
|
+
* `ease-enter` — H7) and drops its clock (no duration, delay or row stagger: the scroll is the clock); under `words` a
|
|
84
|
+
* text lights rather than rises. Pure.
|
|
85
|
+
*/
|
|
86
|
+
export function scrubbedEntrance(ix: StampedInteraction, scrub: ScrubId | string | null | undefined, context: ScrubContext = {}): StampedInteraction {
|
|
87
|
+
const action = ix.actions[0];
|
|
88
|
+
if (ix.trigger !== ENTRANCE_TRIGGER || ix.actions.length !== 1 || !action || !scrubsEntrance(scrub, action.type, context)) return ix;
|
|
89
|
+
const params: Record<string, unknown> = { ...(action.params ?? {}), until: SCRUBBED_ENTRANCE.until };
|
|
90
|
+
delete params['stagger'];
|
|
91
|
+
delete params['cap'];
|
|
92
|
+
if (scrub === ScrubId.Words) params['look'] = 'light';
|
|
93
|
+
return {
|
|
94
|
+
id: ix.id,
|
|
95
|
+
trigger: SCROLL_PROGRESS_TRIGGER,
|
|
96
|
+
range: SCRUBBED_ENTRANCE.range,
|
|
97
|
+
actions: [{ type: action.type, target: action.target, ...(action.easing ? { easing: action.easing } : {}), params }],
|
|
98
|
+
...(ix.origin ? { origin: ix.origin } : {}),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/** How long an entrance plays once when Follow the scroll is turned off (AW10-D11): the Standard level's heading. */
|
|
103
|
+
export const ONCE_ENTRANCE_MS = 700;
|
|
104
|
+
|
|
105
|
+
/** Is `ix` a scrubbed entrance — one this module made, or an author's Follow the scroll: passing through the screen, one
|
|
106
|
+
* action the time trigger could play too (never a depth or a reading bar, which only the scroll plays)? */
|
|
107
|
+
export function isScrubbedEntrance(ix: StampedInteraction): boolean {
|
|
108
|
+
if (ix.trigger !== SCROLL_PROGRESS_TRIGGER || ix.range !== SCRUBBED_ENTRANCE.range || ix.actions.length !== 1) return false;
|
|
109
|
+
const d = ELEMENT_ACTION_DESCRIPTORS.find(x => x.type === ix.actions[0].type);
|
|
110
|
+
return !!d && actionOfferedUnder(d, ENTRANCE_TRIGGER);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Follow the scroll turned OFF (AW10-D11, "off, back to once"): a scrubbed entrance becomes the same action played once
|
|
115
|
+
* as it arrives (`viewportEnter`), `timing` its clock (its own curve, else the look's, and a Standard length when not
|
|
116
|
+
* given); its `until` goes, every other param (pieces, look, distance) stays. Anything else comes back as it was. Pure —
|
|
117
|
+
* the panel's one undo step, and the inverse of `scrubbedEntrance` but for the clock it dropped.
|
|
118
|
+
*/
|
|
119
|
+
export function onceEntrance(ix: StampedInteraction, timing: { duration?: number; delay?: number; easing?: string } = {}): StampedInteraction {
|
|
120
|
+
if (!isScrubbedEntrance(ix)) return ix;
|
|
121
|
+
const action = ix.actions[0];
|
|
122
|
+
const params: Record<string, unknown> = { ...(action.params ?? {}) };
|
|
123
|
+
delete params['until'];
|
|
124
|
+
const out: StampedAction = {
|
|
125
|
+
type: action.type, target: action.target,
|
|
126
|
+
duration: timing.duration ?? ONCE_ENTRANCE_MS, delay: timing.delay ?? 0, easing: timing.easing ?? action.easing ?? ENTRANCE_EASING, once: true,
|
|
127
|
+
...(Object.keys(params).length ? { params } : {}),
|
|
128
|
+
};
|
|
129
|
+
return { id: ix.id, trigger: ENTRANCE_TRIGGER, actions: [out], ...(ix.origin ? { origin: ix.origin } : {}) };
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Copy-out (AW10, OPENING `motion.copy-out`, AW10-D9): stamped on the opening SECTION (its exit is what is measured),
|
|
134
|
+
* fading each node that holds the opening's words — opacity only, so reduced motion keeps it (AW10-D10). Pure.
|
|
135
|
+
*/
|
|
136
|
+
export function copyOutInteraction(sectionId: string, wordsIds: string | ReadonlyArray<string>): StampedInteraction {
|
|
137
|
+
const targets = typeof wordsIds === 'string' ? [wordsIds] : [...wordsIds];
|
|
138
|
+
return {
|
|
139
|
+
id: `${sectionId}-copy-out`,
|
|
140
|
+
trigger: SCROLL_PROGRESS_TRIGGER,
|
|
141
|
+
range: COPY_OUT.range,
|
|
142
|
+
actions: targets.map(target => ({ type: 'fadeOut', target, params: { until: COPY_OUT.until } })),
|
|
143
|
+
origin: ENTRANCE_ORIGIN_LOOK,
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/** A look stamp on a node, as `planEntrances` gives it. */
|
|
148
|
+
export interface ScrubbableStamp {
|
|
149
|
+
nodeId: string;
|
|
150
|
+
interaction: StampedInteraction;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* The look's entrance stamps of one composed section under the look's `scrub` (AW10-D5, D7, D8): each one the scrub
|
|
155
|
+
* takes becomes the same action played by the scroll (`scrubbedEntrance`); the opening keeps every stamp on time. The
|
|
156
|
+
* ONE rule the composer applies to `planEntrances`' stamps. Pure.
|
|
157
|
+
*/
|
|
158
|
+
export function scrubEntranceStamps(stamps: ReadonlyArray<ScrubbableStamp>, scrub: ScrubId | string | null | undefined, context: ScrubContext = {}): ScrubbableStamp[] {
|
|
159
|
+
if (!scrub || scrub === ScrubId.Never || context.opening) return [...stamps];
|
|
160
|
+
return stamps.map(s => {
|
|
161
|
+
const interaction = scrubbedEntrance(s.interaction, scrub, context);
|
|
162
|
+
return interaction === s.interaction ? s : { ...s, interaction };
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/** The layout language's entrances a line of words plays as a text reveal (word by word, letter by letter). */
|
|
167
|
+
const TEXT_REVEAL_ENTERS: ReadonlySet<string> = new Set([LayoutEnter.MaskRise, LayoutEnter.Letters]);
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Whether the look's `scrub` takes a layout layer's entrance (AW10-D12): `entrances` takes every entrance, `words` a
|
|
171
|
+
* line of words that reveals (mask rise, letters — never a decoration, which only fades), the opening none. The layout
|
|
172
|
+
* composer plays a layer that says `scrub` by the scroll only when this holds; `checkLayout` mends a `scrub` it does not
|
|
173
|
+
* (`scrub-look`). `textual`: the layer is a line of words (word, heading, text, label, number). Pure.
|
|
174
|
+
*/
|
|
175
|
+
export function layoutScrubTakes(layer: { enter?: string; role?: string }, textual: boolean, scrub: ScrubId | string | null | undefined, context: ScrubContext = {}): boolean {
|
|
176
|
+
if (!layer.enter || layer.enter === LayoutEnter.None) return false;
|
|
177
|
+
const reveals = textual && layer.role !== LayoutRole.Decoration && TEXT_REVEAL_ENTERS.has(layer.enter);
|
|
178
|
+
return scrubsEntrance(scrub, reveals ? TEXT_REVEAL : layer.enter, context);
|
|
179
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ARRIVE_IDS, flavorPackById, MOVE_IDS, parseHexColor, PRELOADER_IDS, SPEC_AXES } from '@vectoriox/iox-ui/design-core';
|
|
1
|
+
import { ARRIVE_IDS, flavorPackById, MOVE_IDS, parseHexColor, PRELOADER_IDS, SCRUB_IDS, SPEC_AXES } from '@vectoriox/iox-ui/design-core';
|
|
2
2
|
import { formPresetById } from '@vectoriox/iox-ui/forms-core';
|
|
3
3
|
import { filmScreensFor, normalizeFrameSequence } from '@vectoriox/iox-ui/media-core';
|
|
4
4
|
import { SEO_DESCRIPTION_MAX, SEO_TITLE_MAX } from '@vectoriox/iox-ui/seo-core';
|
|
@@ -18,6 +18,7 @@ import { artDirectionIssues } from './art-direction';
|
|
|
18
18
|
import { footerMixFromWords } from './footer-mix';
|
|
19
19
|
import { headerMixFromWords } from './header-mix';
|
|
20
20
|
import { openingMixFromWords } from './opening-mix';
|
|
21
|
+
import { bodyMixFromWords } from './body-mix';
|
|
21
22
|
import { patternListGap } from './recipe-fields';
|
|
22
23
|
import { SPEC_SITE_LAYOUT, SPEC_SITE_PLAN_SHAPE } from './site-spec.generated';
|
|
23
24
|
import {
|
|
@@ -256,6 +257,7 @@ function validateDesign(c: Collector, design: unknown): void {
|
|
|
256
257
|
word('feel', ARRIVE_IDS);
|
|
257
258
|
word('headings', MOVE_IDS);
|
|
258
259
|
word('preloader', PRELOADER_IDS);
|
|
260
|
+
word('scrub', SCRUB_IDS);
|
|
259
261
|
if (design['mode'] !== undefined && !(SPEC_AXES.modes as ReadonlyArray<unknown>).includes(design['mode'])) bad('mode', `must be one of ${SPEC_AXES.modes.join(', ')}`);
|
|
260
262
|
if (design['pillButtons'] !== undefined && typeof design['pillButtons'] !== 'boolean') bad('pillButtons', 'must be a boolean');
|
|
261
263
|
if (design['fonts'] !== undefined && !isObject(design['fonts'])) bad('fonts', 'must be an object');
|
|
@@ -739,7 +741,7 @@ function validateGlobals(c: Collector, globals: unknown): void {
|
|
|
739
741
|
}
|
|
740
742
|
|
|
741
743
|
/** The parts a plan may carry as a mix, and how each reads its words (only the footer until header ingredients HI1). */
|
|
742
|
-
const MIX_READERS: Readonly<Record<string, (words: ReadonlyArray<string>) => unknown>> = { header: headerMixFromWords, footer: footerMixFromWords, opening: openingMixFromWords };
|
|
744
|
+
const MIX_READERS: Readonly<Record<string, (words: ReadonlyArray<string>) => unknown>> = { header: headerMixFromWords, footer: footerMixFromWords, opening: openingMixFromWords, body: bodyMixFromWords };
|
|
743
745
|
|
|
744
746
|
/** `mixes`: each part's words parse in its table (list ingredients LI5); absent is fine. */
|
|
745
747
|
function validateMixes(c: Collector, mixes: unknown): void {
|