@vectoriox/iox-ui 5.140.0 → 5.141.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 +19 -2
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs +29 -3
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +468 -272
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs +32 -9
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +17 -1
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +63 -2
- package/index.d.ts +22 -1
- package/package.json +1 -1
- package/scene-core/index.d.ts +17 -1
- package/src/assist-core/assist-turn.ts +34 -2
- package/src/generation-core/check-layout.ts +19 -0
- package/src/generation-core/compose-layout.ts +26 -6
- package/src/generation-core/compose-site.ts +6 -0
- package/src/generation-core/header-edit.ts +15 -11
- package/src/generation-core/layout-language.ts +5 -0
- package/src/generation-core/list-space.ts +152 -0
- package/src/generation-core/public-api.ts +1 -0
- package/src/scene-core/split-text.ts +31 -7
- package/styles/iox-design.css +62 -4
|
@@ -17951,6 +17951,10 @@ var LayoutMendKind;
|
|
|
17951
17951
|
/** A list section's mix that breaks a list rule the composer can settle (list-ingredients §6, `checkList`): the layer
|
|
17952
17952
|
* takes the repaired mix — every repair of one list carries the same one. */
|
|
17953
17953
|
LayoutMendKind["List"] = "list";
|
|
17954
|
+
/** LI7: a list section that reads empty — the list beside an empty side of its section, or on its own with nothing that
|
|
17955
|
+
* reads (`layoutListBare`): its words are set beside it, the list's own name as its heading where none reads
|
|
17956
|
+
* (`layoutListPair`). Places change, words never (the name is the plan's). */
|
|
17957
|
+
LayoutMendKind["ListWords"] = "list-words";
|
|
17954
17958
|
/** A carried part whose action points at a node the new page no longer has (RD1 — a scroll link to a section that
|
|
17955
17959
|
* left): the action is dropped from the carry and the drop is said (`mendCarry`), never refused. */
|
|
17956
17960
|
LayoutMendKind["Link"] = "link";
|
|
@@ -19784,6 +19788,398 @@ function pageListIssues(page) {
|
|
|
19784
19788
|
return issues;
|
|
19785
19789
|
}
|
|
19786
19790
|
|
|
19791
|
+
/**
|
|
19792
|
+
* Space on a composed page (the M8 demo, the bar's live page 2026-11-10): what the static check can read off the grid
|
|
19793
|
+
* about stillness and emptiness — a held section where nothing moves, a shape that is there for nothing, a stretch of the
|
|
19794
|
+
* laptop's screen with nothing on it, an opening with no display. Estimates on the check's laptop (1440 × 900), the
|
|
19795
|
+
* render check measures the real page. Pure.
|
|
19796
|
+
*/
|
|
19797
|
+
const L$2 = SPEC_SITE_LAYOUT;
|
|
19798
|
+
const LIM$1 = L$2.limits;
|
|
19799
|
+
/**
|
|
19800
|
+
* The laptop the estimates are made on (the render check's 1440 × 900). A grid column is taken as 1440 / 12 px and a row
|
|
19801
|
+
* as its section's screens × 900 / rows (a held section's grid is its one-screen stage): the gutter and the column gaps
|
|
19802
|
+
* are left out, so a box reads about a fifth wider than it renders — the render check measures the real one.
|
|
19803
|
+
*/
|
|
19804
|
+
const LAYOUT_CHECK_VIEWPORT = { width: 1440, height: 900 };
|
|
19805
|
+
const GRID$2 = 12;
|
|
19806
|
+
const COLUMN_PX$2 = LAYOUT_CHECK_VIEWPORT.width / GRID$2;
|
|
19807
|
+
/** A line of words stands its size × this tall. */
|
|
19808
|
+
const LAYOUT_LINE_HEIGHT = 1.2;
|
|
19809
|
+
const HEBREW$4 = /[-]/;
|
|
19810
|
+
/** A button's ink, as tall as its padding and one line. */
|
|
19811
|
+
const BUTTON_PX = 56;
|
|
19812
|
+
/** How far the screens mend lowers a section at a time, and how often it tries. */
|
|
19813
|
+
const SCREENS_STEP = 0.25;
|
|
19814
|
+
const SCREENS_TRIES = 40;
|
|
19815
|
+
/** The kinds the composer stretches over their whole cell (`place`); every other kind sits in its cell's middle. */
|
|
19816
|
+
const FULL_CELL = new Set([LayoutLayerKind.Photo, LayoutLayerKind.Shape, LayoutLayerKind.Gallery, LayoutLayerKind.Form, LayoutLayerKind.Marquee]);
|
|
19817
|
+
/** The kinds a held section's line may be lit by the scroll (`kinetic`). */
|
|
19818
|
+
const LAYOUT_KINETIC_KINDS = new Set([LayoutLayerKind.Word, LayoutLayerKind.Heading, LayoutLayerKind.Text]);
|
|
19819
|
+
const span$2 = (r) => (r ? r[1] - r[0] : 0);
|
|
19820
|
+
const isText$1 = (l) => LAYOUT_TEXT_KINDS.has(l.kind);
|
|
19821
|
+
const isPictured$1 = (l) => l.kind === LayoutLayerKind.Photo || l.kind === LayoutLayerKind.Gallery;
|
|
19822
|
+
const wordsOf$4 = (t) => String(t ?? '').trim().split(/\s+/).filter(Boolean).length;
|
|
19823
|
+
const meets = (a, b) => {
|
|
19824
|
+
const ov = (p, q) => p[0] < q[1] && q[0] < p[1];
|
|
19825
|
+
return ov(a.col ?? [0, 0], b.col ?? [0, 0]) && ov(a.row ?? [0, 0], b.row ?? [0, 0]);
|
|
19826
|
+
};
|
|
19827
|
+
const textOf$3 = (l) => String(l.text ?? (l.items ?? []).join(' '));
|
|
19828
|
+
const advanceOf = (text) => (HEBREW$4.test(text) ? LIM$1.advance.hebrew : LIM$1.advance.latin);
|
|
19829
|
+
/** A grid box's size in px on the laptop. */
|
|
19830
|
+
function layoutBoxPx(col, row, s) {
|
|
19831
|
+
const height = (s.pin ? 1 : s.screens) * LAYOUT_CHECK_VIEWPORT.height;
|
|
19832
|
+
return { w: span$2(col) * COLUMN_PX$2, h: (span$2(row) * height) / Math.max(1, s.rows) };
|
|
19833
|
+
}
|
|
19834
|
+
/** Whether a sized text layer's words fit its box at its size (the check's estimate; a `screen` word is sized to fit). */
|
|
19835
|
+
function layoutTextFits(l, s, size = l.size) {
|
|
19836
|
+
const text = textOf$3(l);
|
|
19837
|
+
if (!isText$1(l) || !size || size === LayoutSize.Screen || !text)
|
|
19838
|
+
return true;
|
|
19839
|
+
const px = L$2.sizePx[size];
|
|
19840
|
+
const box = layoutBoxPx(l.col, l.row, s);
|
|
19841
|
+
const lines = Math.floor(box.h / (px * LAYOUT_LINE_HEIGHT));
|
|
19842
|
+
const items = l.kind === LayoutLayerKind.List ? Math.max(1, l.items?.length ?? 1) : 1;
|
|
19843
|
+
return lines >= items && (text.length * px * advanceOf(text)) / Math.max(1, lines) <= box.w * LIM$1.textFitSlack;
|
|
19844
|
+
}
|
|
19845
|
+
/** Words or a button drawn over a layer (above it, meeting it). */
|
|
19846
|
+
function wordsOver(s, li) {
|
|
19847
|
+
const l = s.layers[li];
|
|
19848
|
+
return s.layers.some((o, oi) => oi !== li && (isText$1(o) || o.kind === LayoutLayerKind.Button) && (o.z ?? 0) > (l.z ?? 0) && meets(o, l));
|
|
19849
|
+
}
|
|
19850
|
+
/**
|
|
19851
|
+
* A rule: a shape one row high with no words on it — the looks' hairline ("a shape one row high"). The composer draws it
|
|
19852
|
+
* as a line, never as the row's full height (the bar's grey boxes: a 150–180 px block where a hairline was meant).
|
|
19853
|
+
*/
|
|
19854
|
+
function isLayoutRule(s, li) {
|
|
19855
|
+
const l = s.layers?.[li];
|
|
19856
|
+
return !!l && l.kind === LayoutLayerKind.Shape && span$2(l.row) === 1 && !wordsOver(s, li);
|
|
19857
|
+
}
|
|
19858
|
+
/** Where a rule's line sits in its row: against the words it belongs to (above it → its top, below it → its bottom). */
|
|
19859
|
+
function layoutRuleEdge(s, li) {
|
|
19860
|
+
const l = s.layers[li];
|
|
19861
|
+
const beside = (o) => isText$1(o) && (o.col?.[0] ?? 0) < (l.col?.[1] ?? 0) && (l.col?.[0] ?? 0) < (o.col?.[1] ?? 0);
|
|
19862
|
+
if (s.layers.some((o, oi) => oi !== li && beside(o) && o.row?.[1] === l.row[0]))
|
|
19863
|
+
return 'start';
|
|
19864
|
+
if (s.layers.some((o, oi) => oi !== li && beside(o) && o.row?.[0] === l.row[1]))
|
|
19865
|
+
return 'end';
|
|
19866
|
+
return 'center';
|
|
19867
|
+
}
|
|
19868
|
+
/**
|
|
19869
|
+
* A shape is there for something: a rule, a band of colour (wide, or off an edge), a backdrop to words, a frame meeting
|
|
19870
|
+
* a picture, or it moves (tracks, a depth). Anything else is an empty box on the page.
|
|
19871
|
+
*/
|
|
19872
|
+
function layoutShapeHasPurpose(s, li) {
|
|
19873
|
+
const l = s.layers?.[li];
|
|
19874
|
+
if (!l || l.kind !== LayoutLayerKind.Shape)
|
|
19875
|
+
return true;
|
|
19876
|
+
if (isLayoutRule(s, li) || wordsOver(s, li))
|
|
19877
|
+
return true;
|
|
19878
|
+
if (span$2(l.col) >= LIM$1.bandColumns || (l.bleed && l.bleed !== 'none'))
|
|
19879
|
+
return true;
|
|
19880
|
+
if (s.layers.some((o, oi) => oi !== li && isPictured$1(o) && meets(o, l)))
|
|
19881
|
+
return true;
|
|
19882
|
+
return !!l.motion?.length || (!!l.depth && l.depth !== LayoutDepth.Mid);
|
|
19883
|
+
}
|
|
19884
|
+
/** A held section where nothing moves by the scroll: no track, no kinetic line, no gallery the scroll turns. */
|
|
19885
|
+
function layoutHeldStill(s) {
|
|
19886
|
+
if (!s.pin || (s.track ?? 1) > 1 || s.readyMade || s.carry)
|
|
19887
|
+
return false;
|
|
19888
|
+
return !(s.layers ?? []).some(l => !!l.motion?.length || !!l.kinetic || (l.kind === LayoutLayerKind.Gallery && !!l.gallery?.scroll));
|
|
19889
|
+
}
|
|
19890
|
+
/**
|
|
19891
|
+
* The line a still hold can light word by word: a word, heading or text of 2 to the kinetic words, never over a picture —
|
|
19892
|
+
* the lead first, then by size. -1: none.
|
|
19893
|
+
*/
|
|
19894
|
+
function layoutStillLine(s) {
|
|
19895
|
+
const sizes = Object.keys(L$2.sizePx);
|
|
19896
|
+
const found = (s.layers ?? [])
|
|
19897
|
+
.map((l, li) => ({ l, li }))
|
|
19898
|
+
.filter(({ l }) => LAYOUT_KINETIC_KINDS.has(l.kind) && wordsOf$4(l.text) >= 2 && wordsOf$4(l.text) <= LIM$1.kineticWords)
|
|
19899
|
+
.filter(({ l }) => !(s.layers ?? []).some(o => o !== l && isPictured$1(o) && meets(o, l)))
|
|
19900
|
+
.sort((a, b) => Number(b.l.role === LayoutRole.Lead) - Number(a.l.role === LayoutRole.Lead) || sizes.indexOf(b.l.size ?? 'm') - sizes.indexOf(a.l.size ?? 'm') || a.li - b.li);
|
|
19901
|
+
return found[0]?.li ?? -1;
|
|
19902
|
+
}
|
|
19903
|
+
/** A held section's largest photo that may move (not decoration — decoration only fades), for a still hold that cannot
|
|
19904
|
+
* let go of the page: -1, none. */
|
|
19905
|
+
function layoutDriftPhoto(s) {
|
|
19906
|
+
const area = (l) => span$2(l.col) * span$2(l.row);
|
|
19907
|
+
const found = (s.layers ?? []).map((l, li) => ({ l, li }))
|
|
19908
|
+
.filter(({ l }) => l.kind === LayoutLayerKind.Photo && l.role !== LayoutRole.Decoration && Array.isArray(l.col) && Array.isArray(l.row))
|
|
19909
|
+
.sort((a, b) => area(b.l) - area(a.l) || a.li - b.li);
|
|
19910
|
+
return found[0]?.li ?? -1;
|
|
19911
|
+
}
|
|
19912
|
+
/** The drift a still hold's photo takes: a slow scale over the whole hold — transform only, inside the track's bounds. */
|
|
19913
|
+
const LAYOUT_DRIFT = { prop: LayoutTrackProp.Scale, from: 1, to: 1.08, at: [0, 1] };
|
|
19914
|
+
/** A section whose screen is spoken for: what is on it never leaves it (held, sideways, a photo ground, ready-made), or
|
|
19915
|
+
* its space is the point (an inhale — the page's one breath, a word in the quiet). */
|
|
19916
|
+
const filled = (s) => !!s.pin || (s.track ?? 1) > 1 || !!s.readyMade || !!s.carry || String(s.ground ?? '').startsWith('photo:')
|
|
19917
|
+
|| s.kind === LayoutSectionKind.Inhale;
|
|
19918
|
+
/** Where a layer's ink is in its section (px from the section's top): its cell for what stretches, its words' lines in the
|
|
19919
|
+
* cell's middle for the rest, the line of a rule. */
|
|
19920
|
+
function inkOf(s, li, rowPx) {
|
|
19921
|
+
const l = s.layers[li];
|
|
19922
|
+
const t = (l.row[0] - 1) * rowPx;
|
|
19923
|
+
const b = (l.row[1] - 1) * rowPx;
|
|
19924
|
+
const mid = (t + b) / 2;
|
|
19925
|
+
if (l.kind === LayoutLayerKind.Shape && isLayoutRule(s, li)) {
|
|
19926
|
+
const edge = layoutRuleEdge(s, li);
|
|
19927
|
+
const at = edge === 'start' ? t : edge === 'end' ? b : mid;
|
|
19928
|
+
return [at, at];
|
|
19929
|
+
}
|
|
19930
|
+
if (FULL_CELL.has(l.kind) || l.size === LayoutSize.Screen)
|
|
19931
|
+
return [t, b];
|
|
19932
|
+
let h = BUTTON_PX;
|
|
19933
|
+
if (isText$1(l)) {
|
|
19934
|
+
const text = textOf$3(l);
|
|
19935
|
+
const px = L$2.sizePx[(l.size ?? LayoutSize.M)] ?? L$2.sizePx.m;
|
|
19936
|
+
const w = Math.max(1, span$2(l.col) * COLUMN_PX$2);
|
|
19937
|
+
const items = l.kind === LayoutLayerKind.List ? Math.max(1, l.items?.length ?? 1) : 1;
|
|
19938
|
+
const lines = Math.max(items, Math.ceil((text.length * px * advanceOf(text)) / (w * LIM$1.textFitSlack)));
|
|
19939
|
+
h = lines * px * LAYOUT_LINE_HEIGHT;
|
|
19940
|
+
}
|
|
19941
|
+
h = Math.min(b - t, h);
|
|
19942
|
+
return [mid - h / 2, mid + h / 2];
|
|
19943
|
+
}
|
|
19944
|
+
/**
|
|
19945
|
+
* Every stretch more than `voidScreen` of a screen tall with nothing on it, top to bottom. A section that holds (or is a
|
|
19946
|
+
* photo, or ready-made) fills its height; one that flows has its layers' ink (`inkOf`). Judged across the sections, as a
|
|
19947
|
+
* visitor scrolls them; the end of the page counts (the footer is not the page's).
|
|
19948
|
+
*/
|
|
19949
|
+
function layoutVoids(sections) {
|
|
19950
|
+
const ink = [];
|
|
19951
|
+
const bounds = [];
|
|
19952
|
+
let top = 0;
|
|
19953
|
+
for (const s of sections) {
|
|
19954
|
+
const height = Math.max(1, Number(s.screens) || 1) * LAYOUT_CHECK_VIEWPORT.height;
|
|
19955
|
+
bounds.push([top, top + height]);
|
|
19956
|
+
if (filled(s))
|
|
19957
|
+
ink.push([top, top + height]);
|
|
19958
|
+
else {
|
|
19959
|
+
const rowPx = height / Math.max(1, s.rows);
|
|
19960
|
+
(s.layers ?? []).forEach((l, li) => {
|
|
19961
|
+
if (!Array.isArray(l.row) || !Array.isArray(l.col))
|
|
19962
|
+
return;
|
|
19963
|
+
const [a, b] = inkOf(s, li, rowPx);
|
|
19964
|
+
ink.push([top + a, top + b]);
|
|
19965
|
+
});
|
|
19966
|
+
}
|
|
19967
|
+
top += height;
|
|
19968
|
+
}
|
|
19969
|
+
ink.sort((a, b) => a[0] - b[0]);
|
|
19970
|
+
const voids = [];
|
|
19971
|
+
const least = LIM$1.voidScreen * LAYOUT_CHECK_VIEWPORT.height;
|
|
19972
|
+
let end = 0;
|
|
19973
|
+
const push = (from, to) => {
|
|
19974
|
+
if (to - from <= least)
|
|
19975
|
+
return;
|
|
19976
|
+
const within = bounds.map((b, i) => (b[0] < to && from < b[1] ? i : -1)).filter(i => i >= 0);
|
|
19977
|
+
voids.push({ from: Math.round(from), to: Math.round(to), sections: within });
|
|
19978
|
+
};
|
|
19979
|
+
for (const [a, b] of ink) {
|
|
19980
|
+
push(end, a);
|
|
19981
|
+
end = Math.max(end, b);
|
|
19982
|
+
}
|
|
19983
|
+
push(end, top);
|
|
19984
|
+
return voids;
|
|
19985
|
+
}
|
|
19986
|
+
/**
|
|
19987
|
+
* The heights that close every void: the sections a void lies in that flow come down a quarter screen at a time (never
|
|
19988
|
+
* under one screen; their rows keep their share, and each of their words still fits) until no void is left. Null when
|
|
19989
|
+
* that cannot close them — then the model is asked.
|
|
19990
|
+
*/
|
|
19991
|
+
function layoutVoidScreens(sections) {
|
|
19992
|
+
const next = sections.map(s => ({ ...s }));
|
|
19993
|
+
const stuck = new Set();
|
|
19994
|
+
for (let tries = 0; tries < SCREENS_TRIES; tries++) {
|
|
19995
|
+
const voids = layoutVoids(next);
|
|
19996
|
+
if (!voids.length) {
|
|
19997
|
+
return next.map((s, i) => ({ section: i, screens: s.screens })).filter(({ section, screens }) => screens !== sections[section].screens);
|
|
19998
|
+
}
|
|
19999
|
+
const free = [...new Set(voids.flatMap(v => v.sections))]
|
|
20000
|
+
.filter(i => !filled(next[i]) && !stuck.has(i) && next[i].screens > 1)
|
|
20001
|
+
.sort((a, b) => next[b].screens - next[a].screens || a - b);
|
|
20002
|
+
if (!free.length)
|
|
20003
|
+
return null;
|
|
20004
|
+
const i = free[0];
|
|
20005
|
+
const lower = { ...next[i], screens: Math.max(1, Math.round((next[i].screens - SCREENS_STEP) * 100) / 100) };
|
|
20006
|
+
if ((lower.layers ?? []).every(l => layoutTextFits(l, lower)))
|
|
20007
|
+
next[i] = lower;
|
|
20008
|
+
else
|
|
20009
|
+
stuck.add(i);
|
|
20010
|
+
}
|
|
20011
|
+
return null;
|
|
20012
|
+
}
|
|
20013
|
+
/** The layers that make an opening's display: a word (set in the display face), or words at xxl or screen size. */
|
|
20014
|
+
function layoutOpeningDisplays(page) {
|
|
20015
|
+
const first = page.sections?.[0];
|
|
20016
|
+
if (!first || first.readyMade || first.carry)
|
|
20017
|
+
return [];
|
|
20018
|
+
return (first.layers ?? []).map((l, li) => ({ l, li }))
|
|
20019
|
+
.filter(({ l }) => isText$1(l) && (l.kind === LayoutLayerKind.Word || l.size === LayoutSize.Screen || l.size === LayoutSize.Xxl))
|
|
20020
|
+
.map(({ li }) => li);
|
|
20021
|
+
}
|
|
20022
|
+
/**
|
|
20023
|
+
* The opening's lead set as its display (a word) where it can be: a heading of at most `xl`'s characters. Its size goes
|
|
20024
|
+
* up to xl where it still fits there. Null: no such lead.
|
|
20025
|
+
*/
|
|
20026
|
+
function layoutOpeningDisplayMend(page) {
|
|
20027
|
+
const first = page.sections?.[0];
|
|
20028
|
+
if (!first || first.readyMade || first.carry)
|
|
20029
|
+
return null;
|
|
20030
|
+
const li = (first.layers ?? []).findIndex(l => l.role === LayoutRole.Lead && l.kind === LayoutLayerKind.Heading);
|
|
20031
|
+
if (li < 0)
|
|
20032
|
+
return null;
|
|
20033
|
+
const lead = first.layers[li];
|
|
20034
|
+
if (textOf$3(lead).length > L$2.maxChars.xl)
|
|
20035
|
+
return null;
|
|
20036
|
+
const small = lead.size !== LayoutSize.Xl && lead.size !== LayoutSize.Xxl;
|
|
20037
|
+
return small && layoutTextFits(lead, first, LayoutSize.Xl) ? { layer: li, size: LayoutSize.Xl } : { layer: li };
|
|
20038
|
+
}
|
|
20039
|
+
|
|
20040
|
+
/**
|
|
20041
|
+
* Where a list sits in its section (list-ingredients-plan.md LI7, Doron 2026-11-22: "the page looks very empty"): a list
|
|
20042
|
+
* whose items take less than its section's width — a deck is one card wide, any list can be set in a few columns — leaves
|
|
20043
|
+
* a stretch of the section with nothing on it unless its words stand beside it. The judge reads the grid on the check's
|
|
20044
|
+
* laptop (`LAYOUT_CHECK_VIEWPORT`); the pairing sets the section's words beside the list. Pure.
|
|
20045
|
+
*/
|
|
20046
|
+
/** A deck is one card wide (LI4): at most this many px, and this share of its cell (the composer draws exactly this). */
|
|
20047
|
+
const LIST_DECK_MAX_PX = 440;
|
|
20048
|
+
const LIST_DECK_SHARE = 0.8;
|
|
20049
|
+
/** The prompt's line for it (the layout brief reads it — one sentence, said once). */
|
|
20050
|
+
const LIST_WORDS_BESIDE_RULE = 'a list that takes part of its section (a deck is one card wide) has its words beside it — a heading, a line, the link to all of it — or is centred under them; never a list beside an empty half';
|
|
20051
|
+
/** The side of the section a list leaves empty: towards grid line 1 (`start`) or line 13 (`end`). */
|
|
20052
|
+
var LayoutListSide;
|
|
20053
|
+
(function (LayoutListSide) {
|
|
20054
|
+
LayoutListSide["Start"] = "start";
|
|
20055
|
+
LayoutListSide["End"] = "end";
|
|
20056
|
+
})(LayoutListSide || (LayoutListSide = {}));
|
|
20057
|
+
const GRID$1 = 12;
|
|
20058
|
+
const COLUMN_PX$1 = LAYOUT_CHECK_VIEWPORT.width / GRID$1;
|
|
20059
|
+
/** Columns with nothing on them at a list's rows, on one side, before the section reads empty (more than a third)… */
|
|
20060
|
+
const BARE_COLUMNS = 5;
|
|
20061
|
+
/** …unless the other side is as empty (a list centred under its words is a composition, not a gap). */
|
|
20062
|
+
const BARE_SKEW = 2;
|
|
20063
|
+
/** A list this many columns wide or fewer, with no words in its section, is a list on its own in the middle of nothing. */
|
|
20064
|
+
const NARROW_COLUMNS = GRID$1 / 2;
|
|
20065
|
+
/** Paired: the words take the empty side's five columns, one column apart from the list's six. */
|
|
20066
|
+
const PAIR_WORDS = { [LayoutListSide.Start]: [1, 6], [LayoutListSide.End]: [8, 13] };
|
|
20067
|
+
const PAIR_LIST = { [LayoutListSide.Start]: [7, 13], [LayoutListSide.End]: [1, 7] };
|
|
20068
|
+
/** The size a heading the pairing writes (the list's own name) is set at. */
|
|
20069
|
+
const PAIR_HEADING_SIZE = LayoutSize.L;
|
|
20070
|
+
const isList = (l) => l.kind === LayoutLayerKind.Gallery && !!l.gallery?.list && !!l.gallery?.source;
|
|
20071
|
+
/** Words that read: a word, a heading, a line of text, a label, a number, a list of lines. */
|
|
20072
|
+
const reads = (l) => LAYOUT_TEXT_KINDS.has(l.kind);
|
|
20073
|
+
/** The section's words: what reads, and its buttons (the link to all of it). */
|
|
20074
|
+
const isWords = (l) => reads(l) || l.kind === LayoutLayerKind.Button;
|
|
20075
|
+
const placed = (l) => Array.isArray(l.col) && Array.isArray(l.row);
|
|
20076
|
+
const overlaps$1 = (p, q) => p[0] < q[1] && q[0] < p[1];
|
|
20077
|
+
/** The columns a list's items take on the laptop (grid lines, fractional): a deck a card wide in its cell's middle, any
|
|
20078
|
+
* other arrangement its cell. */
|
|
20079
|
+
function layoutListDrawnCols(l) {
|
|
20080
|
+
const [a, b] = l.col;
|
|
20081
|
+
if (l.gallery?.list?.arrange !== LayoutListArrange.Deck)
|
|
20082
|
+
return [a, b];
|
|
20083
|
+
const cols = Math.min((b - a) * LIST_DECK_SHARE, LIST_DECK_MAX_PX / COLUMN_PX$1);
|
|
20084
|
+
const mid = (a + b) / 2;
|
|
20085
|
+
return [mid - cols / 2, mid + cols / 2];
|
|
20086
|
+
}
|
|
20087
|
+
/**
|
|
20088
|
+
* The first list layer of a section that reads empty on the laptop, or null: at the list's rows, one side of the section
|
|
20089
|
+
* has more than a third of its columns with nothing on them and the other side is not as empty, or the list is half the
|
|
20090
|
+
* width or less and nothing in the section reads. A section that is not a grid of its own (ready-made, carried,
|
|
20091
|
+
* sideways) is never judged.
|
|
20092
|
+
*/
|
|
20093
|
+
function layoutListBare(s) {
|
|
20094
|
+
if (s.readyMade || s.carry || (s.track ?? 1) > 1 || !Array.isArray(s.layers))
|
|
20095
|
+
return null;
|
|
20096
|
+
const anyReads = s.layers.some(l => reads(l) && !!String(l.text ?? (l.items ?? []).join('')).trim());
|
|
20097
|
+
for (let li = 0; li < s.layers.length; li++) {
|
|
20098
|
+
const l = s.layers[li];
|
|
20099
|
+
if (!isList(l) || !placed(l))
|
|
20100
|
+
continue;
|
|
20101
|
+
const [d0, d1] = layoutListDrawnCols(l);
|
|
20102
|
+
const covered = Array.from({ length: GRID$1 }, (_, k) => {
|
|
20103
|
+
const centre = k + 1.5;
|
|
20104
|
+
if (centre > d0 && centre < d1)
|
|
20105
|
+
return true;
|
|
20106
|
+
return s.layers.some((o, oi) => oi !== li && placed(o) && overlaps$1(o.row, l.row) && centre > o.col[0] && centre < o.col[1]);
|
|
20107
|
+
});
|
|
20108
|
+
const start = covered.findIndex(c => c);
|
|
20109
|
+
if (start < 0)
|
|
20110
|
+
continue;
|
|
20111
|
+
const end = GRID$1 - 1 - [...covered].reverse().findIndex(c => c);
|
|
20112
|
+
const startRun = start;
|
|
20113
|
+
const endRun = GRID$1 - 1 - end;
|
|
20114
|
+
const lopsided = Math.max(startRun, endRun) >= BARE_COLUMNS && Math.abs(startRun - endRun) >= BARE_SKEW;
|
|
20115
|
+
const alone = !anyReads && d1 - d0 <= NARROW_COLUMNS;
|
|
20116
|
+
if (lopsided || alone)
|
|
20117
|
+
return { layer: li, side: startRun >= endRun ? LayoutListSide.Start : LayoutListSide.End, reads: anyReads };
|
|
20118
|
+
}
|
|
20119
|
+
return null;
|
|
20120
|
+
}
|
|
20121
|
+
/**
|
|
20122
|
+
* The pairing (LI7): the list takes six columns on its own side, the section's words — every word, heading, line and
|
|
20123
|
+
* button, in reading order — the other five, stacked in the middle of the rows the list and its words spanned, each as
|
|
20124
|
+
* tall as its words need. A section where nothing reads gets the list's own name as its heading (`heading` — the plan's
|
|
20125
|
+
* name for the list, never a word made up). On a phone the words come first, then the list, then the rest as they were.
|
|
20126
|
+
* Null when it cannot: another layer (a photo, a shape) stands where the words or the list would go, no words and no
|
|
20127
|
+
* name, or more words than rows.
|
|
20128
|
+
*/
|
|
20129
|
+
function layoutListPair(s, li, side, heading) {
|
|
20130
|
+
const list = s.layers?.[li];
|
|
20131
|
+
if (!list || !isList(list) || !placed(list))
|
|
20132
|
+
return null;
|
|
20133
|
+
const next = structuredClone(s);
|
|
20134
|
+
const name = String(heading ?? '').trim();
|
|
20135
|
+
const anyReads = next.layers.some(l => reads(l) && !!String(l.text ?? (l.items ?? []).join('')).trim());
|
|
20136
|
+
// What the words spanned before (the list's rows and theirs) is the pairing's height; a heading it writes has no place yet.
|
|
20137
|
+
const before = next.layers.filter((l, i) => i !== li && isWords(l) && placed(l));
|
|
20138
|
+
const r0 = Math.min(list.row[0], ...before.map(l => l.row[0]));
|
|
20139
|
+
const r1 = Math.max(list.row[1], ...before.map(l => l.row[1]));
|
|
20140
|
+
const rows = r1 - r0;
|
|
20141
|
+
const added = anyReads ? -1 : next.layers.length;
|
|
20142
|
+
if (!anyReads) {
|
|
20143
|
+
if (!name)
|
|
20144
|
+
return null;
|
|
20145
|
+
next.layers.push({ kind: LayoutLayerKind.Heading, role: LayoutRole.Support, text: name, size: PAIR_HEADING_SIZE, col: [1, 2], row: [r0, r0 + 1] });
|
|
20146
|
+
}
|
|
20147
|
+
const words = next.layers
|
|
20148
|
+
.map((l, i) => ({ l, i }))
|
|
20149
|
+
.filter(({ l, i }) => i !== li && isWords(l) && placed(l))
|
|
20150
|
+
// The list's name it writes leads; the rest in reading order.
|
|
20151
|
+
.sort((a, b) => Number(b.i === added) - Number(a.i === added) || a.l.row[0] - b.l.row[0] || a.l.col[0] - b.l.col[0] || a.i - b.i);
|
|
20152
|
+
if (words.length > rows)
|
|
20153
|
+
return null;
|
|
20154
|
+
const wordsCol = PAIR_WORDS[side];
|
|
20155
|
+
const listCol = PAIR_LIST[side];
|
|
20156
|
+
const others = next.layers.filter((l, i) => i !== li && !isWords(l) && placed(l));
|
|
20157
|
+
if (others.some(o => overlaps$1(o.row, [r0, r1]) && (overlaps$1(o.col, wordsCol) || overlaps$1(o.col, listCol))))
|
|
20158
|
+
return null;
|
|
20159
|
+
// Each word as tall as its words need (one row at least), the block in the middle of the span.
|
|
20160
|
+
const heights = words.map(() => 1);
|
|
20161
|
+
const fits = (k) => layoutTextFits({ ...words[k].l, col: wordsCol, row: [0, heights[k]] }, next);
|
|
20162
|
+
for (let grow = true; grow && heights.reduce((a, b) => a + b, 0) < rows;) {
|
|
20163
|
+
const k = words.findIndex((_, j) => !fits(j));
|
|
20164
|
+
grow = k >= 0;
|
|
20165
|
+
if (grow)
|
|
20166
|
+
heights[k]++;
|
|
20167
|
+
}
|
|
20168
|
+
let at = r0 + Math.floor((rows - heights.reduce((a, b) => a + b, 0)) / 2);
|
|
20169
|
+
words.forEach((w, k) => {
|
|
20170
|
+
w.l.col = [...wordsCol];
|
|
20171
|
+
w.l.row = [at, at + heights[k]];
|
|
20172
|
+
at += heights[k];
|
|
20173
|
+
});
|
|
20174
|
+
next.layers[li].col = [...listCol];
|
|
20175
|
+
next.layers[li].row = [r0, r1];
|
|
20176
|
+
// A phone reads the words, then the list, then the rest in the order it had.
|
|
20177
|
+
const was = Array.isArray(s.phone) && s.phone.length === s.layers.length ? s.phone : s.layers.map((_, i) => i);
|
|
20178
|
+
const first = [...words.map(w => w.i), li];
|
|
20179
|
+
next.phone = [...first, ...was.filter(i => !first.includes(i)), ...next.layers.map((_, i) => i).filter(i => !first.includes(i) && !was.includes(i))];
|
|
20180
|
+
return next;
|
|
20181
|
+
}
|
|
20182
|
+
|
|
19787
20183
|
/**
|
|
19788
20184
|
* THE BODY (award-ingredients-plan §3.4, AW6; board award-body): how a site's sections meet (the seam), how their grounds
|
|
19789
20185
|
* follow one another (the rhythm), the texture laid on a ground (AW7) and the extra kinds of section a site may hold. Every
|
|
@@ -19843,7 +20239,7 @@ var BodySectionWord;
|
|
|
19843
20239
|
})(BodySectionWord || (BodySectionWord = {}));
|
|
19844
20240
|
class BodyMixError extends Error {
|
|
19845
20241
|
}
|
|
19846
|
-
const HEBREW$
|
|
20242
|
+
const HEBREW$3 = 'he';
|
|
19847
20243
|
const INGREDIENTS$3 = B.ingredients;
|
|
19848
20244
|
const MANY$2 = new Set(B.many);
|
|
19849
20245
|
const WAITS$3 = B.waits;
|
|
@@ -19858,7 +20254,7 @@ function bodyWords(ingredient) {
|
|
|
19858
20254
|
/** What a word means — in Hebrew when the builder speaks it. */
|
|
19859
20255
|
function bodyMeaning(ingredient, word, locale) {
|
|
19860
20256
|
const key = `${ingredient}.${word}`;
|
|
19861
|
-
return (locale === HEBREW$
|
|
20257
|
+
return (locale === HEBREW$3 ? B.meaningsHe?.[key] : undefined) ?? B.meanings[key] ?? word;
|
|
19862
20258
|
}
|
|
19863
20259
|
/** Whether the product draws a word today (a waiting word is listed with its phase, drawn as its stand-in). */
|
|
19864
20260
|
function bodyWordDrawn(ingredient, word) {
|
|
@@ -20103,10 +20499,10 @@ function groundToneOf(luminance) {
|
|
|
20103
20499
|
return luminance > TONE_SPLIT ? GroundTone.Light : GroundTone.Dark;
|
|
20104
20500
|
}
|
|
20105
20501
|
const PICTURED = new Set([LayoutLayerKind.Photo, LayoutLayerKind.Gallery, LayoutLayerKind.List, LayoutLayerKind.Marquee]);
|
|
20106
|
-
const span$
|
|
20502
|
+
const span$1 = (l) => (Array.isArray(l.col) ? l.col[1] - l.col[0] : 0);
|
|
20107
20503
|
const pictured = (s) => String(s.ground ?? '').startsWith('photo:') || (s.layers ?? []).some(l => PICTURED.has(l.kind));
|
|
20108
20504
|
/** A quiet section: words only, centred, every layer within `cols` of the twelve. */
|
|
20109
|
-
const quiet = (s, cols) => !pictured(s) && !!(s.layers ?? []).length && (s.layers ?? []).every(l => l.kind === LayoutLayerKind.Shape || (span$
|
|
20505
|
+
const quiet = (s, cols) => !pictured(s) && !!(s.layers ?? []).length && (s.layers ?? []).every(l => l.kind === LayoutLayerKind.Shape || (span$1(l) <= cols && (l.align ?? 'start') === 'center'));
|
|
20110
20506
|
const startsChapter = (s, at) => (at.includes('inhale') && s.kind === LayoutSectionKind.Inhale) || (at.includes('signature') && !!s.signature);
|
|
20111
20507
|
/**
|
|
20112
20508
|
* A composed page's grounds judged against the body's rhythm (`BODY.rhythms`): each issue a `Structure` issue on the page,
|
|
@@ -20166,255 +20562,6 @@ function rhythmIssues(sections, rhythm, ctx) {
|
|
|
20166
20562
|
return issues;
|
|
20167
20563
|
}
|
|
20168
20564
|
|
|
20169
|
-
/**
|
|
20170
|
-
* Space on a composed page (the M8 demo, the bar's live page 2026-11-10): what the static check can read off the grid
|
|
20171
|
-
* about stillness and emptiness — a held section where nothing moves, a shape that is there for nothing, a stretch of the
|
|
20172
|
-
* laptop's screen with nothing on it, an opening with no display. Estimates on the check's laptop (1440 × 900), the
|
|
20173
|
-
* render check measures the real page. Pure.
|
|
20174
|
-
*/
|
|
20175
|
-
const L$2 = SPEC_SITE_LAYOUT;
|
|
20176
|
-
const LIM$1 = L$2.limits;
|
|
20177
|
-
/**
|
|
20178
|
-
* The laptop the estimates are made on (the render check's 1440 × 900). A grid column is taken as 1440 / 12 px and a row
|
|
20179
|
-
* as its section's screens × 900 / rows (a held section's grid is its one-screen stage): the gutter and the column gaps
|
|
20180
|
-
* are left out, so a box reads about a fifth wider than it renders — the render check measures the real one.
|
|
20181
|
-
*/
|
|
20182
|
-
const LAYOUT_CHECK_VIEWPORT = { width: 1440, height: 900 };
|
|
20183
|
-
const GRID$1 = 12;
|
|
20184
|
-
const COLUMN_PX$1 = LAYOUT_CHECK_VIEWPORT.width / GRID$1;
|
|
20185
|
-
/** A line of words stands its size × this tall. */
|
|
20186
|
-
const LAYOUT_LINE_HEIGHT = 1.2;
|
|
20187
|
-
const HEBREW$3 = /[-]/;
|
|
20188
|
-
/** A button's ink, as tall as its padding and one line. */
|
|
20189
|
-
const BUTTON_PX = 56;
|
|
20190
|
-
/** How far the screens mend lowers a section at a time, and how often it tries. */
|
|
20191
|
-
const SCREENS_STEP = 0.25;
|
|
20192
|
-
const SCREENS_TRIES = 40;
|
|
20193
|
-
/** The kinds the composer stretches over their whole cell (`place`); every other kind sits in its cell's middle. */
|
|
20194
|
-
const FULL_CELL = new Set([LayoutLayerKind.Photo, LayoutLayerKind.Shape, LayoutLayerKind.Gallery, LayoutLayerKind.Form, LayoutLayerKind.Marquee]);
|
|
20195
|
-
/** The kinds a held section's line may be lit by the scroll (`kinetic`). */
|
|
20196
|
-
const LAYOUT_KINETIC_KINDS = new Set([LayoutLayerKind.Word, LayoutLayerKind.Heading, LayoutLayerKind.Text]);
|
|
20197
|
-
const span$1 = (r) => (r ? r[1] - r[0] : 0);
|
|
20198
|
-
const isText$1 = (l) => LAYOUT_TEXT_KINDS.has(l.kind);
|
|
20199
|
-
const isPictured$1 = (l) => l.kind === LayoutLayerKind.Photo || l.kind === LayoutLayerKind.Gallery;
|
|
20200
|
-
const wordsOf$4 = (t) => String(t ?? '').trim().split(/\s+/).filter(Boolean).length;
|
|
20201
|
-
const meets = (a, b) => {
|
|
20202
|
-
const ov = (p, q) => p[0] < q[1] && q[0] < p[1];
|
|
20203
|
-
return ov(a.col ?? [0, 0], b.col ?? [0, 0]) && ov(a.row ?? [0, 0], b.row ?? [0, 0]);
|
|
20204
|
-
};
|
|
20205
|
-
const textOf$3 = (l) => String(l.text ?? (l.items ?? []).join(' '));
|
|
20206
|
-
const advanceOf = (text) => (HEBREW$3.test(text) ? LIM$1.advance.hebrew : LIM$1.advance.latin);
|
|
20207
|
-
/** A grid box's size in px on the laptop. */
|
|
20208
|
-
function layoutBoxPx(col, row, s) {
|
|
20209
|
-
const height = (s.pin ? 1 : s.screens) * LAYOUT_CHECK_VIEWPORT.height;
|
|
20210
|
-
return { w: span$1(col) * COLUMN_PX$1, h: (span$1(row) * height) / Math.max(1, s.rows) };
|
|
20211
|
-
}
|
|
20212
|
-
/** Whether a sized text layer's words fit its box at its size (the check's estimate; a `screen` word is sized to fit). */
|
|
20213
|
-
function layoutTextFits(l, s, size = l.size) {
|
|
20214
|
-
const text = textOf$3(l);
|
|
20215
|
-
if (!isText$1(l) || !size || size === LayoutSize.Screen || !text)
|
|
20216
|
-
return true;
|
|
20217
|
-
const px = L$2.sizePx[size];
|
|
20218
|
-
const box = layoutBoxPx(l.col, l.row, s);
|
|
20219
|
-
const lines = Math.floor(box.h / (px * LAYOUT_LINE_HEIGHT));
|
|
20220
|
-
const items = l.kind === LayoutLayerKind.List ? Math.max(1, l.items?.length ?? 1) : 1;
|
|
20221
|
-
return lines >= items && (text.length * px * advanceOf(text)) / Math.max(1, lines) <= box.w * LIM$1.textFitSlack;
|
|
20222
|
-
}
|
|
20223
|
-
/** Words or a button drawn over a layer (above it, meeting it). */
|
|
20224
|
-
function wordsOver(s, li) {
|
|
20225
|
-
const l = s.layers[li];
|
|
20226
|
-
return s.layers.some((o, oi) => oi !== li && (isText$1(o) || o.kind === LayoutLayerKind.Button) && (o.z ?? 0) > (l.z ?? 0) && meets(o, l));
|
|
20227
|
-
}
|
|
20228
|
-
/**
|
|
20229
|
-
* A rule: a shape one row high with no words on it — the looks' hairline ("a shape one row high"). The composer draws it
|
|
20230
|
-
* as a line, never as the row's full height (the bar's grey boxes: a 150–180 px block where a hairline was meant).
|
|
20231
|
-
*/
|
|
20232
|
-
function isLayoutRule(s, li) {
|
|
20233
|
-
const l = s.layers?.[li];
|
|
20234
|
-
return !!l && l.kind === LayoutLayerKind.Shape && span$1(l.row) === 1 && !wordsOver(s, li);
|
|
20235
|
-
}
|
|
20236
|
-
/** Where a rule's line sits in its row: against the words it belongs to (above it → its top, below it → its bottom). */
|
|
20237
|
-
function layoutRuleEdge(s, li) {
|
|
20238
|
-
const l = s.layers[li];
|
|
20239
|
-
const beside = (o) => isText$1(o) && (o.col?.[0] ?? 0) < (l.col?.[1] ?? 0) && (l.col?.[0] ?? 0) < (o.col?.[1] ?? 0);
|
|
20240
|
-
if (s.layers.some((o, oi) => oi !== li && beside(o) && o.row?.[1] === l.row[0]))
|
|
20241
|
-
return 'start';
|
|
20242
|
-
if (s.layers.some((o, oi) => oi !== li && beside(o) && o.row?.[0] === l.row[1]))
|
|
20243
|
-
return 'end';
|
|
20244
|
-
return 'center';
|
|
20245
|
-
}
|
|
20246
|
-
/**
|
|
20247
|
-
* A shape is there for something: a rule, a band of colour (wide, or off an edge), a backdrop to words, a frame meeting
|
|
20248
|
-
* a picture, or it moves (tracks, a depth). Anything else is an empty box on the page.
|
|
20249
|
-
*/
|
|
20250
|
-
function layoutShapeHasPurpose(s, li) {
|
|
20251
|
-
const l = s.layers?.[li];
|
|
20252
|
-
if (!l || l.kind !== LayoutLayerKind.Shape)
|
|
20253
|
-
return true;
|
|
20254
|
-
if (isLayoutRule(s, li) || wordsOver(s, li))
|
|
20255
|
-
return true;
|
|
20256
|
-
if (span$1(l.col) >= LIM$1.bandColumns || (l.bleed && l.bleed !== 'none'))
|
|
20257
|
-
return true;
|
|
20258
|
-
if (s.layers.some((o, oi) => oi !== li && isPictured$1(o) && meets(o, l)))
|
|
20259
|
-
return true;
|
|
20260
|
-
return !!l.motion?.length || (!!l.depth && l.depth !== LayoutDepth.Mid);
|
|
20261
|
-
}
|
|
20262
|
-
/** A held section where nothing moves by the scroll: no track, no kinetic line, no gallery the scroll turns. */
|
|
20263
|
-
function layoutHeldStill(s) {
|
|
20264
|
-
if (!s.pin || (s.track ?? 1) > 1 || s.readyMade || s.carry)
|
|
20265
|
-
return false;
|
|
20266
|
-
return !(s.layers ?? []).some(l => !!l.motion?.length || !!l.kinetic || (l.kind === LayoutLayerKind.Gallery && !!l.gallery?.scroll));
|
|
20267
|
-
}
|
|
20268
|
-
/**
|
|
20269
|
-
* The line a still hold can light word by word: a word, heading or text of 2 to the kinetic words, never over a picture —
|
|
20270
|
-
* the lead first, then by size. -1: none.
|
|
20271
|
-
*/
|
|
20272
|
-
function layoutStillLine(s) {
|
|
20273
|
-
const sizes = Object.keys(L$2.sizePx);
|
|
20274
|
-
const found = (s.layers ?? [])
|
|
20275
|
-
.map((l, li) => ({ l, li }))
|
|
20276
|
-
.filter(({ l }) => LAYOUT_KINETIC_KINDS.has(l.kind) && wordsOf$4(l.text) >= 2 && wordsOf$4(l.text) <= LIM$1.kineticWords)
|
|
20277
|
-
.filter(({ l }) => !(s.layers ?? []).some(o => o !== l && isPictured$1(o) && meets(o, l)))
|
|
20278
|
-
.sort((a, b) => Number(b.l.role === LayoutRole.Lead) - Number(a.l.role === LayoutRole.Lead) || sizes.indexOf(b.l.size ?? 'm') - sizes.indexOf(a.l.size ?? 'm') || a.li - b.li);
|
|
20279
|
-
return found[0]?.li ?? -1;
|
|
20280
|
-
}
|
|
20281
|
-
/** A held section's largest photo that may move (not decoration — decoration only fades), for a still hold that cannot
|
|
20282
|
-
* let go of the page: -1, none. */
|
|
20283
|
-
function layoutDriftPhoto(s) {
|
|
20284
|
-
const area = (l) => span$1(l.col) * span$1(l.row);
|
|
20285
|
-
const found = (s.layers ?? []).map((l, li) => ({ l, li }))
|
|
20286
|
-
.filter(({ l }) => l.kind === LayoutLayerKind.Photo && l.role !== LayoutRole.Decoration && Array.isArray(l.col) && Array.isArray(l.row))
|
|
20287
|
-
.sort((a, b) => area(b.l) - area(a.l) || a.li - b.li);
|
|
20288
|
-
return found[0]?.li ?? -1;
|
|
20289
|
-
}
|
|
20290
|
-
/** The drift a still hold's photo takes: a slow scale over the whole hold — transform only, inside the track's bounds. */
|
|
20291
|
-
const LAYOUT_DRIFT = { prop: LayoutTrackProp.Scale, from: 1, to: 1.08, at: [0, 1] };
|
|
20292
|
-
/** A section whose screen is spoken for: what is on it never leaves it (held, sideways, a photo ground, ready-made), or
|
|
20293
|
-
* its space is the point (an inhale — the page's one breath, a word in the quiet). */
|
|
20294
|
-
const filled = (s) => !!s.pin || (s.track ?? 1) > 1 || !!s.readyMade || !!s.carry || String(s.ground ?? '').startsWith('photo:')
|
|
20295
|
-
|| s.kind === LayoutSectionKind.Inhale;
|
|
20296
|
-
/** Where a layer's ink is in its section (px from the section's top): its cell for what stretches, its words' lines in the
|
|
20297
|
-
* cell's middle for the rest, the line of a rule. */
|
|
20298
|
-
function inkOf(s, li, rowPx) {
|
|
20299
|
-
const l = s.layers[li];
|
|
20300
|
-
const t = (l.row[0] - 1) * rowPx;
|
|
20301
|
-
const b = (l.row[1] - 1) * rowPx;
|
|
20302
|
-
const mid = (t + b) / 2;
|
|
20303
|
-
if (l.kind === LayoutLayerKind.Shape && isLayoutRule(s, li)) {
|
|
20304
|
-
const edge = layoutRuleEdge(s, li);
|
|
20305
|
-
const at = edge === 'start' ? t : edge === 'end' ? b : mid;
|
|
20306
|
-
return [at, at];
|
|
20307
|
-
}
|
|
20308
|
-
if (FULL_CELL.has(l.kind) || l.size === LayoutSize.Screen)
|
|
20309
|
-
return [t, b];
|
|
20310
|
-
let h = BUTTON_PX;
|
|
20311
|
-
if (isText$1(l)) {
|
|
20312
|
-
const text = textOf$3(l);
|
|
20313
|
-
const px = L$2.sizePx[(l.size ?? LayoutSize.M)] ?? L$2.sizePx.m;
|
|
20314
|
-
const w = Math.max(1, span$1(l.col) * COLUMN_PX$1);
|
|
20315
|
-
const items = l.kind === LayoutLayerKind.List ? Math.max(1, l.items?.length ?? 1) : 1;
|
|
20316
|
-
const lines = Math.max(items, Math.ceil((text.length * px * advanceOf(text)) / (w * LIM$1.textFitSlack)));
|
|
20317
|
-
h = lines * px * LAYOUT_LINE_HEIGHT;
|
|
20318
|
-
}
|
|
20319
|
-
h = Math.min(b - t, h);
|
|
20320
|
-
return [mid - h / 2, mid + h / 2];
|
|
20321
|
-
}
|
|
20322
|
-
/**
|
|
20323
|
-
* Every stretch more than `voidScreen` of a screen tall with nothing on it, top to bottom. A section that holds (or is a
|
|
20324
|
-
* photo, or ready-made) fills its height; one that flows has its layers' ink (`inkOf`). Judged across the sections, as a
|
|
20325
|
-
* visitor scrolls them; the end of the page counts (the footer is not the page's).
|
|
20326
|
-
*/
|
|
20327
|
-
function layoutVoids(sections) {
|
|
20328
|
-
const ink = [];
|
|
20329
|
-
const bounds = [];
|
|
20330
|
-
let top = 0;
|
|
20331
|
-
for (const s of sections) {
|
|
20332
|
-
const height = Math.max(1, Number(s.screens) || 1) * LAYOUT_CHECK_VIEWPORT.height;
|
|
20333
|
-
bounds.push([top, top + height]);
|
|
20334
|
-
if (filled(s))
|
|
20335
|
-
ink.push([top, top + height]);
|
|
20336
|
-
else {
|
|
20337
|
-
const rowPx = height / Math.max(1, s.rows);
|
|
20338
|
-
(s.layers ?? []).forEach((l, li) => {
|
|
20339
|
-
if (!Array.isArray(l.row) || !Array.isArray(l.col))
|
|
20340
|
-
return;
|
|
20341
|
-
const [a, b] = inkOf(s, li, rowPx);
|
|
20342
|
-
ink.push([top + a, top + b]);
|
|
20343
|
-
});
|
|
20344
|
-
}
|
|
20345
|
-
top += height;
|
|
20346
|
-
}
|
|
20347
|
-
ink.sort((a, b) => a[0] - b[0]);
|
|
20348
|
-
const voids = [];
|
|
20349
|
-
const least = LIM$1.voidScreen * LAYOUT_CHECK_VIEWPORT.height;
|
|
20350
|
-
let end = 0;
|
|
20351
|
-
const push = (from, to) => {
|
|
20352
|
-
if (to - from <= least)
|
|
20353
|
-
return;
|
|
20354
|
-
const within = bounds.map((b, i) => (b[0] < to && from < b[1] ? i : -1)).filter(i => i >= 0);
|
|
20355
|
-
voids.push({ from: Math.round(from), to: Math.round(to), sections: within });
|
|
20356
|
-
};
|
|
20357
|
-
for (const [a, b] of ink) {
|
|
20358
|
-
push(end, a);
|
|
20359
|
-
end = Math.max(end, b);
|
|
20360
|
-
}
|
|
20361
|
-
push(end, top);
|
|
20362
|
-
return voids;
|
|
20363
|
-
}
|
|
20364
|
-
/**
|
|
20365
|
-
* The heights that close every void: the sections a void lies in that flow come down a quarter screen at a time (never
|
|
20366
|
-
* under one screen; their rows keep their share, and each of their words still fits) until no void is left. Null when
|
|
20367
|
-
* that cannot close them — then the model is asked.
|
|
20368
|
-
*/
|
|
20369
|
-
function layoutVoidScreens(sections) {
|
|
20370
|
-
const next = sections.map(s => ({ ...s }));
|
|
20371
|
-
const stuck = new Set();
|
|
20372
|
-
for (let tries = 0; tries < SCREENS_TRIES; tries++) {
|
|
20373
|
-
const voids = layoutVoids(next);
|
|
20374
|
-
if (!voids.length) {
|
|
20375
|
-
return next.map((s, i) => ({ section: i, screens: s.screens })).filter(({ section, screens }) => screens !== sections[section].screens);
|
|
20376
|
-
}
|
|
20377
|
-
const free = [...new Set(voids.flatMap(v => v.sections))]
|
|
20378
|
-
.filter(i => !filled(next[i]) && !stuck.has(i) && next[i].screens > 1)
|
|
20379
|
-
.sort((a, b) => next[b].screens - next[a].screens || a - b);
|
|
20380
|
-
if (!free.length)
|
|
20381
|
-
return null;
|
|
20382
|
-
const i = free[0];
|
|
20383
|
-
const lower = { ...next[i], screens: Math.max(1, Math.round((next[i].screens - SCREENS_STEP) * 100) / 100) };
|
|
20384
|
-
if ((lower.layers ?? []).every(l => layoutTextFits(l, lower)))
|
|
20385
|
-
next[i] = lower;
|
|
20386
|
-
else
|
|
20387
|
-
stuck.add(i);
|
|
20388
|
-
}
|
|
20389
|
-
return null;
|
|
20390
|
-
}
|
|
20391
|
-
/** The layers that make an opening's display: a word (set in the display face), or words at xxl or screen size. */
|
|
20392
|
-
function layoutOpeningDisplays(page) {
|
|
20393
|
-
const first = page.sections?.[0];
|
|
20394
|
-
if (!first || first.readyMade || first.carry)
|
|
20395
|
-
return [];
|
|
20396
|
-
return (first.layers ?? []).map((l, li) => ({ l, li }))
|
|
20397
|
-
.filter(({ l }) => isText$1(l) && (l.kind === LayoutLayerKind.Word || l.size === LayoutSize.Screen || l.size === LayoutSize.Xxl))
|
|
20398
|
-
.map(({ li }) => li);
|
|
20399
|
-
}
|
|
20400
|
-
/**
|
|
20401
|
-
* The opening's lead set as its display (a word) where it can be: a heading of at most `xl`'s characters. Its size goes
|
|
20402
|
-
* up to xl where it still fits there. Null: no such lead.
|
|
20403
|
-
*/
|
|
20404
|
-
function layoutOpeningDisplayMend(page) {
|
|
20405
|
-
const first = page.sections?.[0];
|
|
20406
|
-
if (!first || first.readyMade || first.carry)
|
|
20407
|
-
return null;
|
|
20408
|
-
const li = (first.layers ?? []).findIndex(l => l.role === LayoutRole.Lead && l.kind === LayoutLayerKind.Heading);
|
|
20409
|
-
if (li < 0)
|
|
20410
|
-
return null;
|
|
20411
|
-
const lead = first.layers[li];
|
|
20412
|
-
if (textOf$3(lead).length > L$2.maxChars.xl)
|
|
20413
|
-
return null;
|
|
20414
|
-
const small = lead.size !== LayoutSize.Xl && lead.size !== LayoutSize.Xxl;
|
|
20415
|
-
return small && layoutTextFits(lead, first, LayoutSize.Xl) ? { layer: li, size: LayoutSize.Xl } : { layer: li };
|
|
20416
|
-
}
|
|
20417
|
-
|
|
20418
20565
|
/**
|
|
20419
20566
|
* THE STATIC LAYOUT GATE (premium components M8 gate 2, M8-G2-D6; the prototype's `check` + `check21`, `code/cl2.mjs` and
|
|
20420
20567
|
* `cl21.mjs`): one composed page against every rule the language keeps — structure, the look's composition notes, Emil's
|
|
@@ -21139,6 +21286,17 @@ function examineLayout(page, ctx, carried, given) {
|
|
|
21139
21286
|
for (const v of voids) {
|
|
21140
21287
|
add(LayoutIssueCode.Look, `sections[${v.sections[0]}]`, `${Math.round(v.to - v.from)}px of the laptop's screen with nothing on it (${v.sections.map(i => sections[i].id).join(' → ')}) — a section that flows fills its screens: fewer screens, or layers where the eye would land`, voidScreens ? { kind: LayoutMendKind.Screens, sections: voidScreens } : undefined);
|
|
21141
21288
|
}
|
|
21289
|
+
// LI7: a list section never reads empty — its words beside the list, or the list centred under them.
|
|
21290
|
+
sections.forEach((s, i) => {
|
|
21291
|
+
const bare = layoutListBare(s);
|
|
21292
|
+
if (!bare)
|
|
21293
|
+
return;
|
|
21294
|
+
const source = s.layers[bare.layer].gallery?.source;
|
|
21295
|
+
const heading = ctx.listShapes?.find(x => x.alias === source)?.label;
|
|
21296
|
+
const paired = layoutListPair(s, bare.layer, bare.side, heading);
|
|
21297
|
+
add(LayoutIssueCode.Look, `sections[${i}].layers[${bare.layer}].col`, bare.reads ? `the list leaves the ${bare.side === LayoutListSide.Start ? 'first' : 'last'} columns of its section empty — ${LIST_WORDS_BESIDE_RULE}`
|
|
21298
|
+
: `the list stands alone, nothing in its section reads — ${LIST_WORDS_BESIDE_RULE}`, paired ? { kind: LayoutMendKind.ListWords, section: i, layer: bare.layer, side: bare.side, ...(heading && !bare.reads ? { heading } : {}) } : undefined);
|
|
21299
|
+
});
|
|
21142
21300
|
const opening = layoutOpeningDisplays(page);
|
|
21143
21301
|
if ((daring || ctx.design?.animate === SCENE_LEVEL) && sections[0] && !sections[0].readyMade) {
|
|
21144
21302
|
if (!opening.length) {
|
|
@@ -21555,6 +21713,14 @@ function mendLayout(page, issues) {
|
|
|
21555
21713
|
layer.gallery.list = structuredClone(mend.mix);
|
|
21556
21714
|
mended.push(issue);
|
|
21557
21715
|
}
|
|
21716
|
+
else if (mend?.kind === LayoutMendKind.ListWords) {
|
|
21717
|
+
const section = next.sections?.[mend.section];
|
|
21718
|
+
const paired = section ? layoutListPair(section, mend.layer, mend.side, mend.heading) : null;
|
|
21719
|
+
if (!paired)
|
|
21720
|
+
continue;
|
|
21721
|
+
next.sections[mend.section] = paired;
|
|
21722
|
+
mended.push(issue);
|
|
21723
|
+
}
|
|
21558
21724
|
else if (mend?.kind === LayoutMendKind.Words) {
|
|
21559
21725
|
const layer = layerAt(mend.layer);
|
|
21560
21726
|
if (!layer)
|
|
@@ -25748,8 +25914,16 @@ function galleryLayer(id, l, lc, ctx) {
|
|
|
25748
25914
|
/** The width a row's card takes: three across a laptop, most of a phone's width with the next one peeking. */
|
|
25749
25915
|
const LIST_ROW_SLIDE = `calc((100% - ${2 * SLIDE_GAP}px) / 3)`;
|
|
25750
25916
|
const LIST_ROW_SLIDE_PHONE = '82%';
|
|
25751
|
-
/** A deck is one card wide (LI4): a laptop's card, most of a phone. */
|
|
25752
|
-
const LIST_DECK_WIDTH =
|
|
25917
|
+
/** A deck is one card wide (LI4): a laptop's card, most of a phone — the width the list judge reads (list-space). */
|
|
25918
|
+
const LIST_DECK_WIDTH = `min(${LIST_DECK_MAX_PX}px, ${LIST_DECK_SHARE * 100}%)`;
|
|
25919
|
+
/** LI7: a deck's card turns in this share of the look's pace (Normal 650ms → 455ms): a card thrown, never a slide crawling. */
|
|
25920
|
+
const LIST_DECK_TURN = 0.7;
|
|
25921
|
+
/** LI7: the corner a list item wears — a card's the look's card radius, a picture's its image radius; a deck's slide and a
|
|
25922
|
+
* strip wear it too, so a peeking card, its shading and a closed strip keep the item's own corners. */
|
|
25923
|
+
const LIST_CARD_RADIUS = 'var(--iox-card-radius)';
|
|
25924
|
+
const LIST_PHOTO_RADIUS = 'var(--iox-image-radius)';
|
|
25925
|
+
/** A picture's deck slide carries the look's card shadow (a card carries its own). */
|
|
25926
|
+
const LIST_PHOTO_SHADOW = 'var(--iox-card-shadow)';
|
|
25753
25927
|
const LIST_GAP = 'var(--iox-space-gap)';
|
|
25754
25928
|
const LIST_PHOTO_ASPECT = '4 / 3';
|
|
25755
25929
|
/** A row or a deck turns by itself this often (the wire's autoplay). */
|
|
@@ -25807,6 +25981,9 @@ function listCard(id, mix, source, list, masonry, path, ctx, layout = CardLayout
|
|
|
25807
25981
|
return part;
|
|
25808
25982
|
const node = role === CardRole.Media ? part.children?.find(c => c.type === T.Image) : part;
|
|
25809
25983
|
node?.bindings.push({ prop, source, path: f });
|
|
25984
|
+
// iox-ui#111: bound words are the row's — never the recipe's own ("Category"), which a row with no value showed live.
|
|
25985
|
+
if (node && prop === 'content')
|
|
25986
|
+
node.props['content'] = '';
|
|
25810
25987
|
return node;
|
|
25811
25988
|
};
|
|
25812
25989
|
const title = list.roles['title'];
|
|
@@ -25903,7 +26080,7 @@ function composeList(id, l, mix, source, list, lc, ctx) {
|
|
|
25903
26080
|
? listCard(`${id}-item`, mix, source, list, masonry, lc.path, ctx, strips ? CardLayout.Overlay : CardLayout.Top)
|
|
25904
26081
|
: listPhoto(`${id}-item`, source, list, masonry);
|
|
25905
26082
|
if (strips)
|
|
25906
|
-
return composeStrips(id, frame, item, mix, source, ctx);
|
|
26083
|
+
return composeStrips(id, frame, item, mix, source, ctx, listItemRadius(mix));
|
|
25907
26084
|
item.interactions = [...item.interactions, listArriveInteraction(item.id, mix.arrive, ctx)];
|
|
25908
26085
|
// LI4: the one that stands out — a deck's top card IS its standing out; strips draw their own (wider).
|
|
25909
26086
|
const shown = standout && !standWait && !deck ? standWrap(`${id}-stand`, item, standout) : item;
|
|
@@ -25915,7 +26092,7 @@ function composeList(id, l, mix, source, list, lc, ctx) {
|
|
|
25915
26092
|
// A deck (LI4) is Swiper's cards: one card on top, the rest waiting behind, dragged away or stepped.
|
|
25916
26093
|
dir: ctx.rtl ? 'rtl' : 'ltr', effect: deck ? 'cards' : 'slide', slidesPerView: deck ? 1 : 'auto', spaceBetween: deck ? 0 : SLIDE_GAP,
|
|
25917
26094
|
centeredSlides: !deck && standout?.who === LayoutListWho.Middle, loop: 'off', freeMode: !deck && drag && !played, grabCursor: drag && !played,
|
|
25918
|
-
speed: GALLERY_SPEED, enableParallax: false, enableAutoplay: mix.move.includes(LayoutListMove.Auto) && !played,
|
|
26095
|
+
speed: deck ? Math.round(ctx.pace.support * LIST_DECK_TURN) : GALLERY_SPEED, enableParallax: false, enableAutoplay: mix.move.includes(LayoutListMove.Auto) && !played,
|
|
25919
26096
|
autoplayDelay: LIST_AUTOPLAY_MS, autoplayDisableOnInteraction: true, enableKeyboard: true, scrollPlays,
|
|
25920
26097
|
enableCaption: false, enableCount: false, enableNavigation: mix.move.includes(LayoutListMove.Arrows) && !played,
|
|
25921
26098
|
[SLIDER_PLACEMENT_TRAIT]: SliderPlacement.Under, ariaLabel: l.text ?? '',
|
|
@@ -25937,6 +26114,10 @@ function composeList(id, l, mix, source, list, lc, ctx) {
|
|
|
25937
26114
|
gap(ctx, LayoutGapCode.ListLater, `${lc.path}.gallery.list.phone`, `a ${arrange} stays one you swipe on a phone (${mix.phone} is a grid's)`);
|
|
25938
26115
|
const slide = create$1(`${id}-slide`, T.Slide, { caption: '' }, NO_ELEMENT_STYLE);
|
|
25939
26116
|
setStyleProps(slide, { width: deck ? FULL : LIST_ROW_SLIDE, height: FULL, display: 'flex', aspectRatio: 'auto' });
|
|
26117
|
+
// LI7: a deck's peeking cards and Swiper's shading over them wear the item's corner (the shared CSS rounds the
|
|
26118
|
+
// shading to the slide's), and a picture's card the look's shadow.
|
|
26119
|
+
if (deck)
|
|
26120
|
+
setStyleProps(slide, { borderRadius: listItemRadius(mix), ...(mix.item !== LayoutListItem.Card ? { boxShadow: LIST_PHOTO_SHADOW } : {}) });
|
|
25940
26121
|
if (!deck)
|
|
25941
26122
|
phone(slide, { width: LIST_ROW_SLIDE_PHONE });
|
|
25942
26123
|
slide.children = [shown];
|
|
@@ -25968,6 +26149,10 @@ function composeList(id, l, mix, source, list, lc, ctx) {
|
|
|
25968
26149
|
frame.children = [items];
|
|
25969
26150
|
return frame;
|
|
25970
26151
|
}
|
|
26152
|
+
/** The corner a list's items wear (LI7). */
|
|
26153
|
+
function listItemRadius(mix) {
|
|
26154
|
+
return mix.item === LayoutListItem.Card ? LIST_CARD_RADIUS : LIST_PHOTO_RADIUS;
|
|
26155
|
+
}
|
|
25971
26156
|
/**
|
|
25972
26157
|
* A deck (LI4) is a card wide, centred in its cell. The width sits on a holder, never the slider: the slider's own
|
|
25973
26158
|
* scoped `.swiper { width: 100% }` out-ranks a node's width class. On a phone the holder is the cell's width and the
|
|
@@ -26002,10 +26187,11 @@ function standWrap(id, item, standout) {
|
|
|
26002
26187
|
* the scrim) or the picture. Everything strips DO — the open one wider, pointing and focus, the phone — is the shared
|
|
26003
26188
|
* CSS's (iox-design.css, by the Repeater's role), so the canvas and the live site draw the same strips with no runtime.
|
|
26004
26189
|
*/
|
|
26005
|
-
function composeStrips(id, frame, item, mix, source, ctx) {
|
|
26190
|
+
function composeStrips(id, frame, item, mix, source, ctx, radius) {
|
|
26006
26191
|
const strip = create$1(`${id}-strip`, T.Container, {}, NO_ELEMENT_STYLE);
|
|
26007
26192
|
strip.role = LayoutListRole.StripItem;
|
|
26008
|
-
|
|
26193
|
+
// LI7: the strip's clip is the item's own corner — a closed strip is a rounded strip, never a square cut of a card.
|
|
26194
|
+
setStyleProps(strip, { position: 'relative', display: 'block', width: FULL, height: FULL, minHeight: ZERO$1, overflow: 'hidden', borderRadius: radius });
|
|
26009
26195
|
setStyleProps(item, { width: FULL, height: FULL, minHeight: ZERO$1 });
|
|
26010
26196
|
if (item.role === LayoutListRole.Item) {
|
|
26011
26197
|
const image = item.children?.[0];
|
|
@@ -26917,12 +27103,18 @@ function layoutListsContext(page, plan) {
|
|
|
26917
27103
|
function layoutGallerySources(plan) {
|
|
26918
27104
|
return layoutGalleryLists(plan).filter(l => l.pictures).map(l => l.alias);
|
|
26919
27105
|
}
|
|
27106
|
+
/** The prop a node's words live in (iox-ui#111: emptied when it is bound). */
|
|
27107
|
+
const BOUND_WORDS_PROP = 'content';
|
|
26920
27108
|
function addBinding(node, binding) {
|
|
26921
27109
|
const declared = NODE_BASELINES[node.type]?.traits ?? [];
|
|
26922
27110
|
if (!declared.includes(binding.prop) && !binding.prop.startsWith('routeParam:')) {
|
|
26923
27111
|
throw new ComposeError(`${node.type} has no trait "${binding.prop}" to bind`);
|
|
26924
27112
|
}
|
|
26925
27113
|
node.bindings.push(binding);
|
|
27114
|
+
// iox-ui#111: bound words are the row's — never the recipe's or the type's own ("Category", "Card title", "Enter text
|
|
27115
|
+
// here"): a renderer keeps the static words when the row has no value there, and they reached the live site.
|
|
27116
|
+
if (binding.prop === BOUND_WORDS_PROP)
|
|
27117
|
+
node.props[BOUND_WORDS_PROP] = '';
|
|
26926
27118
|
}
|
|
26927
27119
|
function assertTraits(type, names) {
|
|
26928
27120
|
const declared = NODE_BASELINES[type]?.traits ?? [];
|
|
@@ -33815,8 +34007,8 @@ const PROOF_FINGERPRINTS = [
|
|
|
33815
34007
|
const STORE_SLOT_ROLES = new Set([ShopRole.CartButton, AccountRole.Entry]);
|
|
33816
34008
|
/** The roles that link to one of the site's pages (the bar's row, the drawer's list, the bottom bar's items). */
|
|
33817
34009
|
const PAGE_LINK_ROLES = new Set([NavRole.Link, NavRole.DrawerLink, NavRole.BarItem]);
|
|
33818
|
-
/** The pages a header and its companions link to, in their order, once each — what the header is recomposed with
|
|
33819
|
-
*
|
|
34010
|
+
/** The pages a header and its companions link to, in their order, once each — what the header is recomposed with: a mix
|
|
34011
|
+
* change never takes the owner's links away, nor adds the studio's other pages (CC1's `phoneMenuPages`; iox-cms-client#82). */
|
|
33820
34012
|
function pagesOfHeader(current, companions) {
|
|
33821
34013
|
const out = [];
|
|
33822
34014
|
const walk = (n) => {
|
|
@@ -33828,15 +34020,19 @@ function pagesOfHeader(current, companions) {
|
|
|
33828
34020
|
[current, ...companions].forEach(walk);
|
|
33829
34021
|
return out;
|
|
33830
34022
|
}
|
|
33831
|
-
/**
|
|
33832
|
-
*
|
|
33833
|
-
|
|
34023
|
+
/**
|
|
34024
|
+
* The site a header is read, recomposed and advised for (`readHeader`, `applyHeaderMix`, and the studio's `headerAdvice`):
|
|
34025
|
+
* the pages are the ones the header links to — every ingredient is HOW the header shows its pages, never WHICH (the
|
|
34026
|
+
* Pages word is inline / menu / menu-pinned), so an Apply keeps the bar's links exactly (iox-cms-client#82: changing only
|
|
34027
|
+
* "Its colours follow" re-made the bar with every page the studio ever had — drafts, archived `-previous` copies, legal
|
|
34028
|
+
* pages). Only a header that links to no page takes the studio's. A header that holds the bag or the account entry is a
|
|
34029
|
+
* selling site's (unless the site says). Pure.
|
|
34030
|
+
*/
|
|
34031
|
+
function headerSiteFor(site, current, companions = []) {
|
|
33834
34032
|
let at = site;
|
|
33835
|
-
|
|
33836
|
-
|
|
33837
|
-
|
|
33838
|
-
at = { ...at, pages: own };
|
|
33839
|
-
}
|
|
34033
|
+
const own = pagesOfHeader(current, companions);
|
|
34034
|
+
if (own.length)
|
|
34035
|
+
at = { ...at, pages: own };
|
|
33840
34036
|
if (at.storeSlots !== undefined)
|
|
33841
34037
|
return at;
|
|
33842
34038
|
let sells = false;
|
|
@@ -33950,7 +34146,7 @@ function compose$1(mix, site, id, options) {
|
|
|
33950
34146
|
function readHeader(root, site, options = {}) {
|
|
33951
34147
|
const stored = storedHeaderMix(root);
|
|
33952
34148
|
const mix = stored ?? nearestHeaderMix(root, options.companions ?? []);
|
|
33953
|
-
const custom = headerShape(root) !== headerShape(compose$1(mix,
|
|
34149
|
+
const custom = headerShape(root) !== headerShape(compose$1(mix, headerSiteFor(site, root, options.companions), root.id, options).header);
|
|
33954
34150
|
return { mix, stored: !!stored, custom, galleryId: headerGalleryIdOf(mix) };
|
|
33955
34151
|
}
|
|
33956
34152
|
var HeaderReplacedKind;
|
|
@@ -33983,7 +34179,7 @@ function wordsOf$1(n) {
|
|
|
33983
34179
|
function applyHeaderMix(current, next, site, options = {}) {
|
|
33984
34180
|
const curCompanions = options.companions ?? [];
|
|
33985
34181
|
const baseMix = storedHeaderMix(current) ?? nearestHeaderMix(current, curCompanions);
|
|
33986
|
-
const at =
|
|
34182
|
+
const at = headerSiteFor(site, current, curCompanions);
|
|
33987
34183
|
const baseComposed = compose$1(baseMix, at, current.id, options);
|
|
33988
34184
|
const composed = compose$1(next, at, current.id, options);
|
|
33989
34185
|
const freshGroup = clone(grouped(composed.header, composed.companions));
|
|
@@ -34783,5 +34979,5 @@ function siteGlobalsOf(globals) {
|
|
|
34783
34979
|
* Generated bundle index. Do not edit.
|
|
34784
34980
|
*/
|
|
34785
34981
|
|
|
34786
|
-
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADDITION_CAPS, ADDITION_ITEMS_KEY, ADDITION_ITEM_SOURCE_SUFFIX, ADDITION_KEY_PREFIX, ADDITION_SLUG, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyRepairCode, BodyRhythm, BodySeam, BodySectionWord, BodyTexture, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_OWNED_PROPS, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutScrubRefusal, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, MAX_SITE_PICTURES, MOTION_TRIGGERS, MOVING_OPENING_MEDIA, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningIngredient, OpeningMedia, OpeningMixError, OpeningMotion, OpeningRepairCode, OpeningRole, OpeningWords, PAGE_ARCHETYPES, PERSONAL_CONTROLS, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, PublishScope, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, checkAdditions, checkBody, checkCarry, checkFooter, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, composablePage, composeContextOf, composeLayout, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, groundToneOf, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBinding, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBuiltWords, listIngredientWords, listMeaning, listNeverIsEmpty, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords$1 as openingWords, orientationOfRatio, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, previousRoute, pricesIn, publishRefusal, publishVerdict, quietMoveEntrance, readHeader, readOpening, readyMadeColumn, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, rhythmIssues, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteGlobalsOf, siteNavPages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withOpeningWord, withShownList, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
|
|
34982
|
+
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADDITION_CAPS, ADDITION_ITEMS_KEY, ADDITION_ITEM_SOURCE_SUFFIX, ADDITION_KEY_PREFIX, ADDITION_SLUG, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyRepairCode, BodyRhythm, BodySeam, BodySectionWord, BodyTexture, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_OWNED_PROPS, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_DECK_MAX_PX, LIST_DECK_SHARE, LIST_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, LIST_WORDS_BESIDE_RULE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListSide, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutScrubRefusal, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, MAX_SITE_PICTURES, MOTION_TRIGGERS, MOVING_OPENING_MEDIA, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningIngredient, OpeningMedia, OpeningMixError, OpeningMotion, OpeningRepairCode, OpeningRole, OpeningWords, PAGE_ARCHETYPES, PERSONAL_CONTROLS, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, PublishScope, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, checkAdditions, checkBody, checkCarry, checkFooter, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, composablePage, composeContextOf, composeLayout, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, groundToneOf, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBuiltWords, listIngredientWords, listMeaning, listNeverIsEmpty, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords$1 as openingWords, orientationOfRatio, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, previousRoute, pricesIn, publishRefusal, publishVerdict, quietMoveEntrance, readHeader, readOpening, readyMadeColumn, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, rhythmIssues, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteGlobalsOf, siteNavPages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withOpeningWord, withShownList, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
|
|
34787
34983
|
//# sourceMappingURL=vectoriox-iox-ui-generation-core.mjs.map
|