@vectoriox/iox-ui 5.156.0 → 5.157.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/fesm2022/vectoriox-iox-ui-generation-core.mjs +1088 -104
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/generation-core/index.d.ts +401 -3
- package/package.json +1 -1
- package/src/generation-core/check-free.ts +375 -0
- package/src/generation-core/free-fallback.ts +139 -0
- package/src/generation-core/free-wire.ts +432 -0
- package/src/generation-core/plan-words.ts +50 -3
- package/src/generation-core/prompt-limits.ts +96 -0
- package/src/generation-core/public-api.ts +4 -0
|
@@ -19143,6 +19143,20 @@ const FACT_SHAPES = [
|
|
|
19143
19143
|
PRICE_SHAPE,
|
|
19144
19144
|
{ kind: 'time', pattern: /(?<!\d)\d{1,2}[:.]\d{2}(?!\d)/g, key: m => m.replace(/\D/g, '') },
|
|
19145
19145
|
];
|
|
19146
|
+
/** A bare number of three digits or more (`numbers` only); a phone, a price or a time is judged as one first. */
|
|
19147
|
+
const NUMBER_SHAPE = { kind: 'number', pattern: /(?<![\p{L}\p{N}])\d[\d,.]*\d(?![\p{L}\p{N}])/gu, key: (m) => m.replace(/\D/g, '') };
|
|
19148
|
+
const MIN_NUMBER_DIGITS = 3;
|
|
19149
|
+
/** A quotation: three words or more between quotation marks that stand outside a word (a Hebrew gershayim inside one —
|
|
19150
|
+
* ש״ח, צה״ל — is not a quote mark). */
|
|
19151
|
+
const QUOTE = /(?<![\p{L}\p{N}])["“„«״]([^"“”„«»״\n]+?)["”»״](?![\p{L}\p{N}])/gu;
|
|
19152
|
+
const MIN_QUOTE_WORDS = 3;
|
|
19153
|
+
const QUOTE_WORDS = /[\p{L}\p{N}]+/gu;
|
|
19154
|
+
/** A text's words, lower case, one space apart — what a quote is found in. */
|
|
19155
|
+
const plainWords = (text) => ` ${(normalise(text).match(QUOTE_WORDS) ?? []).join(' ')} `;
|
|
19156
|
+
/** Every quotation in `text` of three words or more, as written between its marks. */
|
|
19157
|
+
function quotesIn(text) {
|
|
19158
|
+
return [...String(text ?? '').matchAll(QUOTE)].map(m => m[1].trim()).filter(q => (q.match(QUOTE_WORDS) ?? []).length >= MIN_QUOTE_WORDS);
|
|
19159
|
+
}
|
|
19146
19160
|
/** Every price written in `text` (commerce C-D21: what a business sells never carries one — the owner sets prices). */
|
|
19147
19161
|
function pricesIn(text) {
|
|
19148
19162
|
return (text.match(PRICE_SHAPE.pattern) ?? []).map(m => m.trim());
|
|
@@ -19150,17 +19164,22 @@ function pricesIn(text) {
|
|
|
19150
19164
|
const MIN_PHONE_DIGITS = 8;
|
|
19151
19165
|
/** "2019 – 2024" is two years, not a phone number. */
|
|
19152
19166
|
const YEAR_RANGE = /^\s*\d{4}\s*[-–]\s*\d{4}\s*$/;
|
|
19153
|
-
function ownedKeys(facts, known = []) {
|
|
19167
|
+
function ownedKeys(facts, known = [], numbers = false) {
|
|
19154
19168
|
const keys = new Set();
|
|
19169
|
+
const shapes = numbers ? [...FACT_SHAPES, NUMBER_SHAPE] : FACT_SHAPES;
|
|
19155
19170
|
for (const value of [...Object.values(facts), ...known]) {
|
|
19156
19171
|
if (typeof value !== 'string')
|
|
19157
19172
|
continue;
|
|
19158
|
-
for (const shape of
|
|
19173
|
+
for (const shape of shapes)
|
|
19159
19174
|
for (const m of value.match(shape.pattern) ?? [])
|
|
19160
19175
|
keys.add(`${shape.kind}:${shape.key(m)}`);
|
|
19161
19176
|
}
|
|
19162
19177
|
return keys;
|
|
19163
19178
|
}
|
|
19179
|
+
/** `text` with every email, real phone, price and time blanked — what is left for the bare-number shape. */
|
|
19180
|
+
function withoutFactShapes(text) {
|
|
19181
|
+
return FACT_SHAPES.reduce((rest, shape) => rest.replace(shape.pattern, m => (shape.kind === 'phone' && (shape.key(m).length < MIN_PHONE_DIGITS || YEAR_RANGE.test(m)) ? m : ' ')), text);
|
|
19182
|
+
}
|
|
19164
19183
|
/**
|
|
19165
19184
|
* The words to avoid and the facts never given, in any texts a model wrote — the plan's (`planWordIssues`) and an AI
|
|
19166
19185
|
* Assist turn's field values (assist-core, R-H2): ONE judge of what a model may write.
|
|
@@ -19168,7 +19187,7 @@ function ownedKeys(facts, known = []) {
|
|
|
19168
19187
|
function factIssues(texts, ctx) {
|
|
19169
19188
|
const issues = [];
|
|
19170
19189
|
const avoid = [...new Set(ctx.avoidWords.map(w => w.trim()).filter(Boolean))].map(w => ({ word: w, pattern: wordPattern(w) }));
|
|
19171
|
-
const owned = ownedKeys(ctx.facts, ctx.known);
|
|
19190
|
+
const owned = ownedKeys(ctx.facts, ctx.known, ctx.numbers);
|
|
19172
19191
|
for (const { path, text } of texts) {
|
|
19173
19192
|
const words = normalise(text);
|
|
19174
19193
|
for (const a of avoid)
|
|
@@ -19183,6 +19202,20 @@ function factIssues(texts, ctx) {
|
|
|
19183
19202
|
issues.push({ code: PlanWordIssueCode.InventedFact, path, message: `"${m.trim()}" looks like a ${shape.kind} the owner never gave — leave it out` });
|
|
19184
19203
|
}
|
|
19185
19204
|
}
|
|
19205
|
+
if (ctx.quotes) {
|
|
19206
|
+
const owners = [...Object.values(ctx.facts), ...(ctx.known ?? [])].filter((v) => typeof v === 'string').map(plainWords);
|
|
19207
|
+
for (const q of quotesIn(text)) {
|
|
19208
|
+
if (!owners.some(o => o.includes(plainWords(q))))
|
|
19209
|
+
issues.push({ code: PlanWordIssueCode.InventedFact, path, message: `"${q}" reads as a quote the owner never gave — a quote is a fact: leave it out` });
|
|
19210
|
+
}
|
|
19211
|
+
}
|
|
19212
|
+
if (ctx.numbers) {
|
|
19213
|
+
for (const m of withoutFactShapes(text).match(NUMBER_SHAPE.pattern) ?? []) {
|
|
19214
|
+
const key = NUMBER_SHAPE.key(m);
|
|
19215
|
+
if (key.length >= MIN_NUMBER_DIGITS && !owned.has(`number:${key}`))
|
|
19216
|
+
issues.push({ code: PlanWordIssueCode.InventedFact, path, message: `"${m.trim()}" looks like a number the owner never gave — leave it out` });
|
|
19217
|
+
}
|
|
19218
|
+
}
|
|
19186
19219
|
}
|
|
19187
19220
|
return issues;
|
|
19188
19221
|
}
|
|
@@ -19735,7 +19768,7 @@ const V$1 = SPEC_SITE_LAYOUT.vocab;
|
|
|
19735
19768
|
const GALLERY_EFFECTS = V$1.galleryEffects;
|
|
19736
19769
|
const FORM_PRESETS = V$1.formPresets;
|
|
19737
19770
|
const BUTTON_VARIANTS = V$1.buttonVariants;
|
|
19738
|
-
const NONE$
|
|
19771
|
+
const NONE$3 = 'none';
|
|
19739
19772
|
const CLIP = 'clipReveal';
|
|
19740
19773
|
const CLIP_SIDE = `${CLIP}-`;
|
|
19741
19774
|
/** A gallery the wire marks `autoplay` turns every 5 s — what the proof sites' autoplaying galleries do. */
|
|
@@ -19743,7 +19776,7 @@ const LAYOUT_WIRE_AUTOPLAY_MS = 5000;
|
|
|
19743
19776
|
const CHIP_SLOTS = Array.from(new Set(Object.values(V$1.formChips).flat()));
|
|
19744
19777
|
const SLOT_NAMES = [...V$1.formSlots, ...CHIP_SLOTS];
|
|
19745
19778
|
const ENTER_ON_WIRE = V$1.enters.flatMap((e) => (e === CLIP ? V$1.sides.map((s) => `${CLIP_SIDE}${s}`) : [e]));
|
|
19746
|
-
const VARIANT_ON_WIRE = [NONE$
|
|
19779
|
+
const VARIANT_ON_WIRE = [NONE$3, ...V$1.buttonVariants, ...V$1.galleryEffects, ...V$1.formPresets];
|
|
19747
19780
|
/**
|
|
19748
19781
|
* List ingredients (list-ingredients-plan.md §2, LI1): a list section's mix travels as ONE list of `<ingredient>:<word>`
|
|
19749
19782
|
* words (`arrange:strips`, `hover:dim`) and its parts as `<list>.<role>` (`stories.quote`) — two properties, so the
|
|
@@ -19823,11 +19856,11 @@ const mixHint = (offered) => LIST_INGREDIENTS.map(k => {
|
|
|
19823
19856
|
function layoutWirePartWords(lists) {
|
|
19824
19857
|
return lists.flatMap(l => l.roles.map(r => `${l.alias}${PART_SEPARATOR}${r}`));
|
|
19825
19858
|
}
|
|
19826
|
-
const text$
|
|
19859
|
+
const text$2 = (d) => ({ ...jsonText(), description: d });
|
|
19827
19860
|
const integer = (d) => ({ ...jsonInteger(), description: d });
|
|
19828
|
-
const oneOf$
|
|
19861
|
+
const oneOf$2 = (values, d) => ({ ...jsonOneOf(values), description: d });
|
|
19829
19862
|
const listOf$2 = (items, d) => ({ ...jsonListOf(items), description: d });
|
|
19830
|
-
const closed = (properties, d) => jsonClosedObject(properties, Object.keys(properties), d);
|
|
19863
|
+
const closed$1 = (properties, d) => jsonClosedObject(properties, Object.keys(properties), d);
|
|
19831
19864
|
/** The strict format for one composed page — with the list ingredients when `options.lists` is given. */
|
|
19832
19865
|
function layoutWireJsonSchema(options = {}) {
|
|
19833
19866
|
const partWords = options.lists ? layoutWirePartWords(options.lists) : [];
|
|
@@ -19836,66 +19869,66 @@ function layoutWireJsonSchema(options = {}) {
|
|
|
19836
19869
|
const lists = options.lists
|
|
19837
19870
|
? {
|
|
19838
19871
|
mix: listOf$2(jsonOneOf(mixOffered), `gallery showing a list (source): how its items are shown, one word per choice — ${mixHint(mixOffered)}; [] for none`),
|
|
19839
|
-
parts: listOf$2(jsonOneOf(partWords.length ? partWords : [NONE$
|
|
19872
|
+
parts: listOf$2(jsonOneOf(partWords.length ? partWords : [NONE$3]), "gallery showing a list as cards: the list's fields each card shows, <list>.<role>, the source's own; [] for none"),
|
|
19840
19873
|
}
|
|
19841
19874
|
: {};
|
|
19842
19875
|
const carried = options.carry
|
|
19843
19876
|
? {
|
|
19844
|
-
carry: oneOf$
|
|
19877
|
+
carry: oneOf$2([NONE$3, ...options.carry], "a redesign: the owner's part this layer shows, by handle — its words, photo or form as they are (write no text of your own then); a section's ONLY layer naming a bind:/block:/keep: handle makes the whole section that part; 'none' for a layer of your own"),
|
|
19845
19878
|
}
|
|
19846
19879
|
: {};
|
|
19847
|
-
const layer = closed({
|
|
19848
|
-
kind: oneOf$
|
|
19849
|
-
role: oneOf$
|
|
19850
|
-
text: text$
|
|
19880
|
+
const layer = closed$1({
|
|
19881
|
+
kind: oneOf$2(V$1.kinds, 'what the layer is'),
|
|
19882
|
+
role: oneOf$2(V$1.roles, 'lead: the ONE thing the eye finds first in its section · support: follows it · decoration: only fades · static: never moves'),
|
|
19883
|
+
text: text$2("the words (word, heading, text, label, number, button); '' for none; a fact you were not given is {fact:<key>}"),
|
|
19851
19884
|
items: listOf$2(jsonText(), 'list items · marquee phrases · one caption per gallery photo; [] for none'),
|
|
19852
19885
|
photos: listOf$2(jsonText(), 'photo: one photo id · gallery: its slides, in order; ids from the photos you are given; [] for none'),
|
|
19853
|
-
source: text$
|
|
19886
|
+
source: text$2("gallery: the alias of a list data source whose items it shows instead of photos; '' for none"),
|
|
19854
19887
|
box: listOf$2(jsonInteger(), '[colStart, colEnd, rowStart, rowEnd]: grid lines 1..13 (1..12×hold+1 sideways) and 1..rows+1'),
|
|
19855
|
-
size: oneOf$
|
|
19856
|
-
color: oneOf$
|
|
19857
|
-
align: oneOf$
|
|
19888
|
+
size: oneOf$2([NONE$3, ...V$1.sizes], "type size; 'screen' = as wide as its columns, a word, never a sentence"),
|
|
19889
|
+
color: oneOf$2(V$1.colours, "the look's colour by name"),
|
|
19890
|
+
align: oneOf$2(V$1.aligns, 'text alignment'),
|
|
19858
19891
|
z: integer('0..9 stacking'),
|
|
19859
|
-
bleed: oneOf$
|
|
19892
|
+
bleed: oneOf$2(V$1.bleeds, 'runs off the screen at that edge'),
|
|
19860
19893
|
rotate: integer("degrees, within the look's limit"),
|
|
19861
|
-
to: text$
|
|
19862
|
-
variant: oneOf$
|
|
19863
|
-
enter: oneOf$
|
|
19894
|
+
to: text$2("button: a section id of this page or a page route ('/contact'); '' for none"),
|
|
19895
|
+
variant: oneOf$2(VARIANT_ON_WIRE, 'button: primary | secondary | ghost · gallery: its effect · form: its preset · none'),
|
|
19896
|
+
enter: oneOf$2(layoutEntersOffered(options.scrub), scrubOffered(options.scrub)
|
|
19864
19897
|
? 'plays once as it arrives (time); clipReveal opens from that side; letters: a line of words rises letter by letter (a display line)'
|
|
19865
19898
|
: 'plays once as it arrives (time); clipReveal opens from that side'),
|
|
19866
|
-
depth: oneOf$
|
|
19899
|
+
depth: oneOf$2([NONE$3, ...V$1.depths], 'the parallax trio (not in held sections)'),
|
|
19867
19900
|
inner: integer('0..3: how far a photo drifts inside its frame'),
|
|
19868
19901
|
flags: listOf$2(jsonOneOf(layoutFlagsOffered(options.scrub)), `switches: scrim (a shadow under words on a photo) · kinetic (lit word by word, held only) · contain · gallery: centered, freeMode, loop, drift, scroll (held only: the scroll turns it), autoplay${scrubOffered(options.scrub) ? ` · scrub (its entrance follows the scroll instead of playing once — ${options.scrub === ScrubId.Words ? 'a mask rise or letters only' : 'any entrance'}; never in the first section)` : ''}; [] for none`),
|
|
19869
19902
|
perView: { type: 'number', description: 'gallery slides per view; 0 for none' },
|
|
19870
|
-
slots: listOf$2(closed({ slot: oneOf$
|
|
19871
|
-
motion: listOf$2(closed({
|
|
19872
|
-
prop: oneOf$
|
|
19873
|
-
ease: oneOf$
|
|
19903
|
+
slots: listOf$2(closed$1({ slot: oneOf$2(SLOT_NAMES, 'which words'), text: text$2('the words, in the business\'s language') }), "form: its title, intro, submit, successTitle, successText, channel, and one entry per chip (needs · budget · guests); [] for none"),
|
|
19904
|
+
motion: listOf$2(closed$1({
|
|
19905
|
+
prop: oneOf$2(V$1.trackProps, 'what moves'),
|
|
19906
|
+
ease: oneOf$2(V$1.eases, 'how'),
|
|
19874
19907
|
values: listOf$2({ type: 'number' }, '[from, to, at0, at1]: values and the part of the hold it plays over (0..1)'),
|
|
19875
19908
|
}), 'held sections only: tracks the scroll plays; [] for none'),
|
|
19876
19909
|
...lists,
|
|
19877
19910
|
...carried,
|
|
19878
19911
|
});
|
|
19879
|
-
const section = closed({
|
|
19880
|
-
id: text$
|
|
19881
|
-
kind: oneOf$
|
|
19912
|
+
const section = closed$1({
|
|
19913
|
+
id: text$2('a short slug, unique on the page'),
|
|
19914
|
+
kind: oneOf$2(V$1.sectionKinds, 'content · inhale (a breath: ≤ 2 small layers, no photo) · signature (exactly ONE)'),
|
|
19882
19915
|
screens: integer('1..5 screen heights'),
|
|
19883
19916
|
hold: integer('0 flows · 1 held (the page stops while its layers move) · 2..4 held and carried sideways that many screens'),
|
|
19884
|
-
ground: text$
|
|
19917
|
+
ground: text$2("a colour name, or photo:<id>"),
|
|
19885
19918
|
rows: integer('4..16 grid rows'),
|
|
19886
|
-
transition: oneOf$
|
|
19919
|
+
transition: oneOf$2(V$1.transitions, 'how it arrives over the section before'),
|
|
19887
19920
|
phone: listOf$2(jsonInteger(), "every layer's index exactly once, in a phone's reading order"),
|
|
19888
19921
|
layers: listOf$2(layer, 'the layers'),
|
|
19889
19922
|
});
|
|
19890
19923
|
const columns = columnsOnWire(options);
|
|
19891
19924
|
const page = columns
|
|
19892
|
-
? { column: oneOf$
|
|
19925
|
+
? { column: oneOf$2(columns, "the page's content column: wide = the window less the one gutter (a gallery, a bold page) · contained = one centred column · narrow = a reading column (a story, a case study); grounds and bleeds keep the window") }
|
|
19893
19926
|
: {};
|
|
19894
|
-
return closed({ ...page, sections: listOf$2(section, '4..8 sections') }, 'one composed page in the layout language');
|
|
19927
|
+
return closed$1({ ...page, sections: listOf$2(section, '4..8 sections') }, 'one composed page in the layout language');
|
|
19895
19928
|
}
|
|
19896
19929
|
const nonEmpty$2 = (v) => typeof v === 'string' && v.trim() !== '';
|
|
19897
19930
|
const num = (v, fallback = 0) => (typeof v === 'number' && Number.isFinite(v) ? v : fallback);
|
|
19898
|
-
const strings = (v) => (Array.isArray(v) ? v.filter((x) => typeof x === 'string') : []);
|
|
19931
|
+
const strings$1 = (v) => (Array.isArray(v) ? v.filter((x) => typeof x === 'string') : []);
|
|
19899
19932
|
function expandForm(l, preset) {
|
|
19900
19933
|
const form = { preset: preset };
|
|
19901
19934
|
const options = {};
|
|
@@ -19916,9 +19949,9 @@ function expandForm(l, preset) {
|
|
|
19916
19949
|
return form;
|
|
19917
19950
|
}
|
|
19918
19951
|
function expandGallery(l, flags, variant) {
|
|
19919
|
-
const captions = strings(l['items']);
|
|
19952
|
+
const captions = strings$1(l['items']);
|
|
19920
19953
|
const gallery = {
|
|
19921
|
-
slides: strings(l['photos']).map((id, i) => ({ photo: { id }, ...(nonEmpty$2(captions[i]) ? { caption: captions[i] } : {}) })),
|
|
19954
|
+
slides: strings$1(l['photos']).map((id, i) => ({ photo: { id }, ...(nonEmpty$2(captions[i]) ? { caption: captions[i] } : {}) })),
|
|
19922
19955
|
};
|
|
19923
19956
|
if (GALLERY_EFFECTS.includes(variant))
|
|
19924
19957
|
gallery.effect = variant;
|
|
@@ -19940,10 +19973,10 @@ function expandGallery(l, flags, variant) {
|
|
|
19940
19973
|
/** `mix` + `parts` → a list mix, or null when the wire names no mix. Words are kept as written (`checkList` judges them);
|
|
19941
19974
|
* parts of another list than the gallery's are left out, and the first part names the list when `source` is empty. */
|
|
19942
19975
|
function expandListMix(l, gallery) {
|
|
19943
|
-
const words = strings(l['mix']);
|
|
19976
|
+
const words = strings$1(l['mix']);
|
|
19944
19977
|
if (!words.length)
|
|
19945
19978
|
return null;
|
|
19946
|
-
const parts = strings(l['parts']).filter(p => p !== NONE$
|
|
19979
|
+
const parts = strings$1(l['parts']).filter(p => p !== NONE$3).map(p => {
|
|
19947
19980
|
const at = p.lastIndexOf(PART_SEPARATOR);
|
|
19948
19981
|
return at > 0 ? { list: p.slice(0, at), role: p.slice(at + 1) } : null;
|
|
19949
19982
|
}).filter((p) => !!p);
|
|
@@ -20003,8 +20036,8 @@ function expandTrack(t) {
|
|
|
20003
20036
|
function expandLayer(l, beat) {
|
|
20004
20037
|
const kind = String(l['kind']);
|
|
20005
20038
|
const box = Array.isArray(l['box']) ? l['box'].map(x => num(x)) : [];
|
|
20006
|
-
const flags = new Set(strings(l['flags']));
|
|
20007
|
-
const variant = String(l['variant'] ?? NONE$
|
|
20039
|
+
const flags = new Set(strings$1(l['flags']));
|
|
20040
|
+
const variant = String(l['variant'] ?? NONE$3);
|
|
20008
20041
|
const out = {
|
|
20009
20042
|
kind: kind,
|
|
20010
20043
|
role: String(l['role']),
|
|
@@ -20013,18 +20046,18 @@ function expandLayer(l, beat) {
|
|
|
20013
20046
|
};
|
|
20014
20047
|
if (nonEmpty$2(l['text']))
|
|
20015
20048
|
out.text = String(l['text']);
|
|
20016
|
-
const items = strings(l['items']);
|
|
20049
|
+
const items = strings$1(l['items']);
|
|
20017
20050
|
if (items.length && kind !== 'gallery')
|
|
20018
20051
|
out.items = items;
|
|
20019
|
-
if (kind === 'photo' && strings(l['photos'])[0])
|
|
20020
|
-
out.photo = { id: strings(l['photos'])[0] };
|
|
20052
|
+
if (kind === 'photo' && strings$1(l['photos'])[0])
|
|
20053
|
+
out.photo = { id: strings$1(l['photos'])[0] };
|
|
20021
20054
|
if (kind === 'gallery')
|
|
20022
20055
|
out.gallery = expandGallery(l, flags, variant);
|
|
20023
20056
|
if (kind === 'form')
|
|
20024
20057
|
out.form = expandForm(l, FORM_PRESETS.includes(variant) ? variant : 'contact');
|
|
20025
20058
|
if (kind === 'button' && BUTTON_VARIANTS.includes(variant))
|
|
20026
20059
|
out.variant = variant;
|
|
20027
|
-
if (nonEmpty$2(l['size']) && l['size'] !== NONE$
|
|
20060
|
+
if (nonEmpty$2(l['size']) && l['size'] !== NONE$3)
|
|
20028
20061
|
out.size = String(l['size']);
|
|
20029
20062
|
if (nonEmpty$2(l['color']))
|
|
20030
20063
|
out.color = String(l['color']);
|
|
@@ -20032,7 +20065,7 @@ function expandLayer(l, beat) {
|
|
|
20032
20065
|
out.align = String(l['align']);
|
|
20033
20066
|
if (num(l['z']))
|
|
20034
20067
|
out.z = num(l['z']);
|
|
20035
|
-
if (nonEmpty$2(l['bleed']) && l['bleed'] !== NONE$
|
|
20068
|
+
if (nonEmpty$2(l['bleed']) && l['bleed'] !== NONE$3)
|
|
20036
20069
|
out.bleed = String(l['bleed']);
|
|
20037
20070
|
if (num(l['rotate']))
|
|
20038
20071
|
out.rotate = num(l['rotate']);
|
|
@@ -20046,23 +20079,23 @@ function expandLayer(l, beat) {
|
|
|
20046
20079
|
out.fit = 'contain';
|
|
20047
20080
|
if (flags.has(SCRUB_FLAG))
|
|
20048
20081
|
out.scrub = true;
|
|
20049
|
-
const enter = String(l['enter'] ?? NONE$
|
|
20082
|
+
const enter = String(l['enter'] ?? NONE$3);
|
|
20050
20083
|
if (enter.startsWith(CLIP_SIDE)) {
|
|
20051
20084
|
out.enter = CLIP;
|
|
20052
20085
|
out.from = enter.slice(CLIP_SIDE.length);
|
|
20053
20086
|
}
|
|
20054
|
-
else if (enter !== NONE$
|
|
20087
|
+
else if (enter !== NONE$3)
|
|
20055
20088
|
out.enter = enter;
|
|
20056
20089
|
if (out.enter)
|
|
20057
20090
|
out.beat = beat;
|
|
20058
|
-
if (nonEmpty$2(l['depth']) && l['depth'] !== NONE$
|
|
20091
|
+
if (nonEmpty$2(l['depth']) && l['depth'] !== NONE$3)
|
|
20059
20092
|
out.depth = String(l['depth']);
|
|
20060
20093
|
if (num(l['inner']))
|
|
20061
20094
|
out.inner = num(l['inner']);
|
|
20062
20095
|
const motion = (Array.isArray(l['motion']) ? l['motion'] : []).filter(isPlainObject).map(expandTrack);
|
|
20063
20096
|
if (motion.length)
|
|
20064
20097
|
out.motion = motion;
|
|
20065
|
-
if (nonEmpty$2(l['carry']) && l['carry'] !== NONE$
|
|
20098
|
+
if (nonEmpty$2(l['carry']) && l['carry'] !== NONE$3)
|
|
20066
20099
|
out.carry = String(l['carry']).trim();
|
|
20067
20100
|
return out;
|
|
20068
20101
|
}
|
|
@@ -20075,7 +20108,7 @@ function expandLayer(l, beat) {
|
|
|
20075
20108
|
function derivedBeats(layers) {
|
|
20076
20109
|
const last = LAYOUT_BEAT_DELAY.length - 1;
|
|
20077
20110
|
let beat = 0;
|
|
20078
|
-
return layers.map(l => (l.role === 'lead' ? 0 : String(l.enter ?? NONE$
|
|
20111
|
+
return layers.map(l => (l.role === 'lead' ? 0 : String(l.enter ?? NONE$3) !== NONE$3 ? Math.min(++beat, last) : 0));
|
|
20079
20112
|
}
|
|
20080
20113
|
function expandSection(s) {
|
|
20081
20114
|
const kind = String(s['kind']);
|
|
@@ -20156,16 +20189,16 @@ function layerToWire(l) {
|
|
|
20156
20189
|
photos: g ? g.slides.map(s => s.photo?.id ?? '') : l.photo ? [l.photo.id] : [],
|
|
20157
20190
|
source: g?.source ?? '',
|
|
20158
20191
|
box: [...(l.col ?? [1, 2]), ...(l.row ?? [1, 2])],
|
|
20159
|
-
size: l.size ?? NONE$
|
|
20192
|
+
size: l.size ?? NONE$3,
|
|
20160
20193
|
color: l.color ?? 'ink',
|
|
20161
20194
|
align: l.align ?? 'start',
|
|
20162
20195
|
z: l.z ?? 0,
|
|
20163
|
-
bleed: l.bleed ?? NONE$
|
|
20196
|
+
bleed: l.bleed ?? NONE$3,
|
|
20164
20197
|
rotate: l.rotate ?? 0,
|
|
20165
20198
|
to: l.to ?? '',
|
|
20166
|
-
variant: l.variant ?? g?.effect ?? f?.preset ?? NONE$
|
|
20167
|
-
enter: l.enter === CLIP ? `${CLIP_SIDE}${l.from ?? 'bottom'}` : l.enter ?? NONE$
|
|
20168
|
-
depth: l.depth ?? NONE$
|
|
20199
|
+
variant: l.variant ?? g?.effect ?? f?.preset ?? NONE$3,
|
|
20200
|
+
enter: l.enter === CLIP ? `${CLIP_SIDE}${l.from ?? 'bottom'}` : l.enter ?? NONE$3,
|
|
20201
|
+
depth: l.depth ?? NONE$3,
|
|
20169
20202
|
inner: l.inner ?? 0,
|
|
20170
20203
|
flags,
|
|
20171
20204
|
perView: typeof g?.perView === 'number' ? g.perView : 0,
|
|
@@ -20178,8 +20211,8 @@ function layerToWire(l) {
|
|
|
20178
20211
|
/** A section place (RD-D20) on the wire: ONE layer naming its handle — what `expandSection` reads back as the place. */
|
|
20179
20212
|
function carryPlaceToWire(s) {
|
|
20180
20213
|
const layer = {
|
|
20181
|
-
kind: 'text', role: 'lead', text: '', items: [], photos: [], source: '', box: [1, 13, 1, 2], size: NONE$
|
|
20182
|
-
z: 0, bleed: NONE$
|
|
20214
|
+
kind: 'text', role: 'lead', text: '', items: [], photos: [], source: '', box: [1, 13, 1, 2], size: NONE$3, color: 'ink', align: 'start',
|
|
20215
|
+
z: 0, bleed: NONE$3, rotate: 0, to: '', variant: NONE$3, enter: NONE$3, depth: NONE$3, inner: 0, flags: [], perView: 0, slots: [], motion: [],
|
|
20183
20216
|
carry: s.carry,
|
|
20184
20217
|
};
|
|
20185
20218
|
return { id: s.id, kind: 'content', screens: 1, hold: 0, ground: 'ground', rows: 4, transition: 'cut', phone: [0], layers: [layer] };
|
|
@@ -21446,7 +21479,7 @@ const filled$1 = (s) => !!s.pin || (s.track ?? 1) > 1 || !!s.readyMade || !!s.ca
|
|
|
21446
21479
|
|| s.kind === LayoutSectionKind.Inhale;
|
|
21447
21480
|
/** 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
|
|
21448
21481
|
* cell's middle for the rest, the line of a rule. */
|
|
21449
|
-
function inkOf(s, li, rowPx) {
|
|
21482
|
+
function inkOf$1(s, li, rowPx) {
|
|
21450
21483
|
const l = s.layers[li];
|
|
21451
21484
|
const t = (l.row[0] - 1) * rowPx;
|
|
21452
21485
|
const b = (l.row[1] - 1) * rowPx;
|
|
@@ -21489,7 +21522,7 @@ function layoutVoids(sections) {
|
|
|
21489
21522
|
(s.layers ?? []).forEach((l, li) => {
|
|
21490
21523
|
if (!Array.isArray(l.row) || !Array.isArray(l.col))
|
|
21491
21524
|
return;
|
|
21492
|
-
const [a, b] = inkOf(s, li, rowPx);
|
|
21525
|
+
const [a, b] = inkOf$1(s, li, rowPx);
|
|
21493
21526
|
ink.push([top + a, top + b]);
|
|
21494
21527
|
});
|
|
21495
21528
|
}
|
|
@@ -23725,7 +23758,7 @@ const brandPart = (ctx) => {
|
|
|
23725
23758
|
return ctx.tagline?.trim() ? node : { ...node, c: (node.c ?? []).filter(n => n.fromBusiness !== 'tagline') };
|
|
23726
23759
|
};
|
|
23727
23760
|
/** The columns of a footer's grid: the name's block wider, one column per block it holds. */
|
|
23728
|
-
function columnsOf(count) {
|
|
23761
|
+
function columnsOf$1(count) {
|
|
23729
23762
|
const lay = { display: 'grid', gridTemplateColumns: ['2fr', ...Array.from({ length: count }, () => '1fr')].join(' '), gap: GAP$1 };
|
|
23730
23763
|
const resp = count >= 3
|
|
23731
23764
|
? { tablet: { gridTemplateColumns: 'repeat(2, minmax(0, 1fr))' }, mobile: { gridTemplateColumns: 'minmax(0, 1fr)' } }
|
|
@@ -23768,7 +23801,7 @@ function bodyOf$2(mix, ctx) {
|
|
|
23768
23801
|
];
|
|
23769
23802
|
}
|
|
23770
23803
|
default:
|
|
23771
|
-
return [{ t: 'Container', es: 'box', ...columnsOf(holds.length), c: [brandPart(ctx), ...holds] }, part$3('rule'), part$3('copyright')];
|
|
23804
|
+
return [{ t: 'Container', es: 'box', ...columnsOf$1(holds.length), c: [brandPart(ctx), ...holds] }, part$3('rule'), part$3('copyright')];
|
|
23772
23805
|
}
|
|
23773
23806
|
}
|
|
23774
23807
|
/** A footer mix as a pattern: what the composer stamps as the site's footer (global, after the page). Check it first. */
|
|
@@ -23912,7 +23945,7 @@ const TEXT$1 = 'Text';
|
|
|
23912
23945
|
const HEADING$1 = 'Heading';
|
|
23913
23946
|
const NAV_STYLE = 'nav';
|
|
23914
23947
|
const DISPLAY = 'display';
|
|
23915
|
-
const NONE$
|
|
23948
|
+
const NONE$2 = 'none';
|
|
23916
23949
|
const CLICK = 'click';
|
|
23917
23950
|
const HOME_ROUTE = '/';
|
|
23918
23951
|
const COMPOSED$2 = { releaseLayoutDefaults: true };
|
|
@@ -24000,7 +24033,7 @@ function navShapeOf(globals) {
|
|
|
24000
24033
|
return NavShape.Bar;
|
|
24001
24034
|
return drawer ? NavShape.Drawer : null;
|
|
24002
24035
|
}
|
|
24003
|
-
const hiddenAt = (n) => Object.entries(n.responsive ?? {}).find(([, layer]) => layer?.styleProps?.[DISPLAY] === NONE$
|
|
24036
|
+
const hiddenAt = (n) => Object.entries(n.responsive ?? {}).find(([, layer]) => layer?.styleProps?.[DISPLAY] === NONE$2)?.[0] ?? null;
|
|
24004
24037
|
/** The breakpoint the phone shape takes over at, read off the header's links row (default Mobile). */
|
|
24005
24038
|
function navShapeBreakpoint(globals) {
|
|
24006
24039
|
const links = find(globals, NavRole.Links);
|
|
@@ -24114,7 +24147,7 @@ const MENU_DISPLAY = 'inline-flex';
|
|
|
24114
24147
|
/** What a header part hidden at every width shows again when the menu goes back to phone widths only. */
|
|
24115
24148
|
const BUILT_DISPLAY = { [NavRole.Links]: 'flex' };
|
|
24116
24149
|
function phoneOnly(node, at, display) {
|
|
24117
|
-
node.styleProps[DISPLAY] = NONE$
|
|
24150
|
+
node.styleProps[DISPLAY] = NONE$2;
|
|
24118
24151
|
node.responsive = { ...(node.responsive ?? {}), [at]: { ...(node.responsive?.[at] ?? {}), styleProps: { ...(node.responsive?.[at]?.styleProps ?? {}), [DISPLAY]: display } } };
|
|
24119
24152
|
}
|
|
24120
24153
|
/** At every width (HI-D8): `display` lives in the base styles and no breakpoint overrides it. */
|
|
@@ -24134,11 +24167,11 @@ function displayEverywhere(node, display) {
|
|
|
24134
24167
|
function menuAtEveryWidth(globals, navId) {
|
|
24135
24168
|
const root = findNavRoot(globals, navId);
|
|
24136
24169
|
const menu = root ? find([root], NavRole.MenuButton) : null;
|
|
24137
|
-
return !!menu && menu.styleProps?.[DISPLAY] !== NONE$
|
|
24170
|
+
return !!menu && menu.styleProps?.[DISPLAY] !== NONE$2;
|
|
24138
24171
|
}
|
|
24139
24172
|
/** Hidden at the phone width: the header's links row. */
|
|
24140
24173
|
function hideAt(node, at) {
|
|
24141
|
-
node.responsive = { ...(node.responsive ?? {}), [at]: { ...(node.responsive?.[at] ?? {}), styleProps: { ...(node.responsive?.[at]?.styleProps ?? {}), [DISPLAY]: NONE$
|
|
24174
|
+
node.responsive = { ...(node.responsive ?? {}), [at]: { ...(node.responsive?.[at] ?? {}), styleProps: { ...(node.responsive?.[at]?.styleProps ?? {}), [DISPLAY]: NONE$2 } } };
|
|
24142
24175
|
}
|
|
24143
24176
|
/** Move every `display` override the shape owns to the new breakpoint. */
|
|
24144
24177
|
function moveDisplayOverride(node, to) {
|
|
@@ -24449,12 +24482,12 @@ function planNavShape(globals, shape, options = {}, navId) {
|
|
|
24449
24482
|
const menu = wantMenuButton ? (existingMenu ? asToggle(existingMenu) : menuButton(kit, dr.id, at, words)) : null;
|
|
24450
24483
|
for (const p of phoneHiddenParts(root)) {
|
|
24451
24484
|
if (everyWidth && !KEPT_AT_EVERY_WIDTH.has(roleOf(p))) {
|
|
24452
|
-
displayEverywhere(p, NONE$
|
|
24485
|
+
displayEverywhere(p, NONE$2);
|
|
24453
24486
|
continue;
|
|
24454
24487
|
}
|
|
24455
24488
|
// Back from every width: the base `none` was this function's, not the author's. Base styles hold ONE display, so
|
|
24456
24489
|
// the part takes back what its role is built with (the links row is a row), else its type's own.
|
|
24457
|
-
if (wasEveryWidth && p.styleProps?.[DISPLAY] === NONE$
|
|
24490
|
+
if (wasEveryWidth && p.styleProps?.[DISPLAY] === NONE$2) {
|
|
24458
24491
|
const back = BUILT_DISPLAY[roleOf(p) ?? ''];
|
|
24459
24492
|
if (back)
|
|
24460
24493
|
p.styleProps[DISPLAY] = back;
|
|
@@ -27609,7 +27642,7 @@ function rootsOf(page, layout) {
|
|
|
27609
27642
|
return out;
|
|
27610
27643
|
}
|
|
27611
27644
|
/** The layer a composed layout node belongs to (`<page>-s<section>-l<layer>…`), or null. */
|
|
27612
|
-
function layerOf(nodeId) {
|
|
27645
|
+
function layerOf$1(nodeId) {
|
|
27613
27646
|
const m = /-s(\d+)-l(\d+)(?:-|$)/.exec(nodeId);
|
|
27614
27647
|
return m ? { section: Number(m[1]), layer: Number(m[2]) } : null;
|
|
27615
27648
|
}
|
|
@@ -27725,7 +27758,7 @@ function typeLedRound(plan, composed, filled, context = {}) {
|
|
|
27725
27758
|
if (where.opening)
|
|
27726
27759
|
continue;
|
|
27727
27760
|
if (where.laid >= 0) {
|
|
27728
|
-
const at = layerOf(e.nodeId);
|
|
27761
|
+
const at = layerOf$1(e.nodeId);
|
|
27729
27762
|
const layers = laid.get(where.laid) ?? new Set();
|
|
27730
27763
|
if (at && at.section === where.laid)
|
|
27731
27764
|
layers.add(at.layer);
|
|
@@ -32886,8 +32919,8 @@ class PlanWireShapeError extends Error {
|
|
|
32886
32919
|
}
|
|
32887
32920
|
// ── The format ─────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
32888
32921
|
const unique = (values) => [...new Set(values)];
|
|
32889
|
-
const NONE = '';
|
|
32890
|
-
const orNone = (values) => jsonOneOf([NONE, ...values]);
|
|
32922
|
+
const NONE$1 = '';
|
|
32923
|
+
const orNone = (values) => jsonOneOf([NONE$1, ...values]);
|
|
32891
32924
|
const closedOrText = (values) => (values.length ? jsonOneOf(values) : jsonText());
|
|
32892
32925
|
const shaped = (entry, properties) => jsonShapedObject(PLAN_WIRE_SHAPE[entry], properties, `wire ${entry}`);
|
|
32893
32926
|
/** The patterns a page section may use (every non-global one but a film's, which `placeFilm` places), in library order. */
|
|
@@ -33000,7 +33033,7 @@ function planWirePartJsonSchema(part, options = {}) {
|
|
|
33000
33033
|
return jsonShapedObject(planWirePartShape(part, options), Object.fromEntries(PLAN_PART_KEYS[part].map(k => [k, PLAN_TOP_SCHEMAS[k](options)])), `wire plan ${part}`);
|
|
33001
33034
|
}
|
|
33002
33035
|
/** A value standing for "absent": `''` (or nothing at all). */
|
|
33003
|
-
const isNone = (v) => v === undefined || v === NONE;
|
|
33036
|
+
const isNone = (v) => v === undefined || v === NONE$1;
|
|
33004
33037
|
const optional = (name, v, none = isNone) => (none(v) ? {} : { [name]: v });
|
|
33005
33038
|
const emptyList = (v) => v === undefined || (Array.isArray(v) && v.length === 0);
|
|
33006
33039
|
/** `[{ <keyName>, <valueName> }]` → `{ key: value }`; anything else is left for the gate to refuse. */
|
|
@@ -33129,7 +33162,7 @@ function expandPlanWire(parts, context) {
|
|
|
33129
33162
|
...rest,
|
|
33130
33163
|
...expandWireGlobals(globals),
|
|
33131
33164
|
...(sells === undefined ? {} : { shop: sells }),
|
|
33132
|
-
...(isPlainObject(direction) && direction['idea'] === NONE ? {} : direction === undefined ? {} : { direction }),
|
|
33165
|
+
...(isPlainObject(direction) && direction['idea'] === NONE$1 ? {} : direction === undefined ? {} : { direction }),
|
|
33133
33166
|
version: SITE_PLAN_VERSION,
|
|
33134
33167
|
source: { ...context.source },
|
|
33135
33168
|
business: expandWireBusiness(business, context.facts),
|
|
@@ -33177,7 +33210,7 @@ function expandWireGlobals(globals) {
|
|
|
33177
33210
|
}
|
|
33178
33211
|
// ── The plan → the wire ────────────────────────────────────────────────────────────────────────────────────────────
|
|
33179
33212
|
function fieldToWire(field) {
|
|
33180
|
-
return { name: field.name, controller: field.controller, required: field.required ?? false, note: field.note ?? NONE };
|
|
33213
|
+
return { name: field.name, controller: field.controller, required: field.required ?? false, note: field.note ?? NONE$1 };
|
|
33181
33214
|
}
|
|
33182
33215
|
function contentTypeToWire(type, options = {}) {
|
|
33183
33216
|
const played = type.roles;
|
|
@@ -33189,37 +33222,37 @@ function contentTypeToWire(type, options = {}) {
|
|
|
33189
33222
|
};
|
|
33190
33223
|
}
|
|
33191
33224
|
function dataSourceToWire(source) {
|
|
33192
|
-
const blank = { alias: source.alias, type: source.type, mode: NONE, contentType: NONE, limit: 0, filterField: NONE, routeParam: NONE, of: NONE, op: NONE, within: NONE };
|
|
33225
|
+
const blank = { alias: source.alias, type: source.type, mode: NONE$1, contentType: NONE$1, limit: 0, filterField: NONE$1, routeParam: NONE$1, of: NONE$1, op: NONE$1, within: NONE$1 };
|
|
33193
33226
|
if (source.type === PlanDataSourceType.Relative)
|
|
33194
33227
|
return { ...blank, of: source.of, op: source.op, within: source.within };
|
|
33195
33228
|
if (source.type === PlanDataSourceType.Shop) {
|
|
33196
33229
|
return {
|
|
33197
33230
|
...blank, mode: source.mode, contentType: source.resource, limit: source.limit ?? 0,
|
|
33198
|
-
filterField: source.filterByRouteParam?.field ?? NONE, routeParam: source.filterByRouteParam?.routeParam ?? NONE,
|
|
33231
|
+
filterField: source.filterByRouteParam?.field ?? NONE$1, routeParam: source.filterByRouteParam?.routeParam ?? NONE$1,
|
|
33199
33232
|
};
|
|
33200
33233
|
}
|
|
33201
33234
|
return {
|
|
33202
33235
|
...blank, mode: source.mode, contentType: source.contentType, limit: source.limit ?? 0,
|
|
33203
|
-
filterField: source.filterByRouteParam?.field ?? NONE, routeParam: source.filterByRouteParam?.routeParam ?? NONE,
|
|
33236
|
+
filterField: source.filterByRouteParam?.field ?? NONE$1, routeParam: source.filterByRouteParam?.routeParam ?? NONE$1,
|
|
33204
33237
|
};
|
|
33205
33238
|
}
|
|
33206
33239
|
function sectionToWire(section) {
|
|
33207
33240
|
return {
|
|
33208
33241
|
pattern: section.pattern, slots: mapToList(section.slots, 'slot', 'text'), links: mapToList(section.links, 'slot', 'route'),
|
|
33209
|
-
binding: section.binding ?? NONE, without: [...(section.without ?? [])], form: section.form ?? NONE, enter: section.enter ?? NONE,
|
|
33242
|
+
binding: section.binding ?? NONE$1, without: [...(section.without ?? [])], form: section.form ?? NONE$1, enter: section.enter ?? NONE$1,
|
|
33210
33243
|
};
|
|
33211
33244
|
}
|
|
33212
33245
|
function pageToWire(page, options = {}) {
|
|
33213
33246
|
return {
|
|
33214
|
-
key: page.key, name: page.name, route: page.route, inNav: page.inNav ?? false, archetype: page.archetype ?? NONE, need: page.need ?? NONE,
|
|
33215
|
-
template: page.template ?? NONE, routeSource: page.routeSource ?? NONE,
|
|
33216
|
-
seo: { title: page.seo?.title ?? NONE, description: page.seo?.description ?? NONE },
|
|
33247
|
+
key: page.key, name: page.name, route: page.route, inNav: page.inNav ?? false, archetype: page.archetype ?? NONE$1, need: page.need ?? NONE$1,
|
|
33248
|
+
template: page.template ?? NONE$1, routeSource: page.routeSource ?? NONE$1,
|
|
33249
|
+
seo: { title: page.seo?.title ?? NONE$1, description: page.seo?.description ?? NONE$1 },
|
|
33217
33250
|
...(options.children === false ? {} : { sections: page.sections.map(sectionToWire) }),
|
|
33218
33251
|
compose: page.compose ?? false,
|
|
33219
33252
|
};
|
|
33220
33253
|
}
|
|
33221
33254
|
const PLAN_TO_WIRE = {
|
|
33222
|
-
business: plan => ({ name: plan.business.name, tagline: plan.business.tagline ?? NONE }),
|
|
33255
|
+
business: plan => ({ name: plan.business.name, tagline: plan.business.tagline ?? NONE$1 }),
|
|
33223
33256
|
contentTypes: plan => plan.contentTypes.map(type => contentTypeToWire(type)),
|
|
33224
33257
|
dataSources: plan => plan.dataSources.map(dataSourceToWire),
|
|
33225
33258
|
pages: plan => plan.pages.map(page => pageToWire(page)),
|
|
@@ -33229,7 +33262,7 @@ const PLAN_TO_WIRE = {
|
|
|
33229
33262
|
// AW6: the award tier's wire writes the body ([] = none); every other tier's has no such key (its plan wears none).
|
|
33230
33263
|
...(isAward(options) ? { [BODY_WIRE_KEY]: [...(plan.mixes?.body ?? [])] } : {}),
|
|
33231
33264
|
}),
|
|
33232
|
-
direction: plan => ({ idea: plan.direction?.idea ?? NONE, cliche: plan.direction?.cliche ?? NONE, flip: plan.direction?.flip ?? NONE, rules: [...(plan.direction?.rules ?? [])] }),
|
|
33265
|
+
direction: plan => ({ idea: plan.direction?.idea ?? NONE$1, cliche: plan.direction?.cliche ?? NONE$1, flip: plan.direction?.flip ?? NONE$1, rules: [...(plan.direction?.rules ?? [])] }),
|
|
33233
33266
|
shop: plan => (plan.shop?.products ?? []).map(p => ({ name: p.name, category: p.category, description: p.description, options: p.options.map(o => ({ name: o.name, values: [...o.values] })) })),
|
|
33234
33267
|
};
|
|
33235
33268
|
/** One part of the plan on the wire: what that part's request (asked at `options`' tier) would have answered. */
|
|
@@ -33326,11 +33359,11 @@ function additionSourcesOf(typeName) {
|
|
|
33326
33359
|
{ alias: `${typeName}${ADDITION_ITEM_SOURCE_SUFFIX}`, type: PlanDataSourceType.Cms, mode: PlanDataSourceMode.Single, contentType: typeName, filterByRouteParam: { field: ADDITION_SLUG, routeParam: ADDITION_SLUG } },
|
|
33327
33360
|
];
|
|
33328
33361
|
}
|
|
33329
|
-
const list = (value) => (Array.isArray(value) ? value : []);
|
|
33330
|
-
const text = (value) => (typeof value === 'string' ? value : '');
|
|
33362
|
+
const list$1 = (value) => (Array.isArray(value) ? value : []);
|
|
33363
|
+
const text$1 = (value) => (typeof value === 'string' ? value : '');
|
|
33331
33364
|
/** Does the Pages answer ask for content (so the Content request is asked). */
|
|
33332
33365
|
function additionsNeedContent(pagesAnswer) {
|
|
33333
|
-
return isPlainObject(pagesAnswer) && (list(pagesAnswer['newTypes']).length > 0 || list(pagesAnswer['newItems']).length > 0);
|
|
33366
|
+
return isPlainObject(pagesAnswer) && (list$1(pagesAnswer['newTypes']).length > 0 || list$1(pagesAnswer['newItems']).length > 0);
|
|
33334
33367
|
}
|
|
33335
33368
|
/**
|
|
33336
33369
|
* The answers → what the redesign adds. Translates, never repairs (as `expandPlanWire`): a wrong value stays wrong, for
|
|
@@ -33339,21 +33372,21 @@ function additionsNeedContent(pagesAnswer) {
|
|
|
33339
33372
|
function expandAdditions(pagesAnswer, contentAnswer) {
|
|
33340
33373
|
const pages = isPlainObject(pagesAnswer) ? pagesAnswer : {};
|
|
33341
33374
|
const content = isPlainObject(contentAnswer) ? contentAnswer : {};
|
|
33342
|
-
const newTypes = list(pages['newTypes']).filter(isPlainObject).map(t => ({ name: text(t['name']), label: text(t['label']) }));
|
|
33375
|
+
const newTypes = list$1(pages['newTypes']).filter(isPlainObject).map(t => ({ name: text$1(t['name']), label: text$1(t['label']) }));
|
|
33343
33376
|
return {
|
|
33344
|
-
pages: list(pages['pages']).filter(isPlainObject).map(wire => {
|
|
33377
|
+
pages: list$1(pages['pages']).filter(isPlainObject).map(wire => {
|
|
33345
33378
|
const { origin, reason, ...page } = wire;
|
|
33346
|
-
return { page: expandWirePage(page), origin: origin, reason: text(reason) };
|
|
33379
|
+
return { page: expandWirePage(page), origin: origin, reason: text$1(reason) };
|
|
33347
33380
|
}),
|
|
33348
|
-
contentTypes: list(content['contentTypes']).map(t => expandWireContentType(t)),
|
|
33381
|
+
contentTypes: list$1(content['contentTypes']).map(t => expandWireContentType(t)),
|
|
33349
33382
|
dataSources: newTypes.filter(t => t.name).flatMap(t => additionSourcesOf(t.name)),
|
|
33350
|
-
items: list(content['items']).filter(isPlainObject).map(item => ({
|
|
33351
|
-
contentType: text(item['contentType']),
|
|
33352
|
-
values: Object.fromEntries(list(item['values']).filter(isPlainObject).map(v => [text(v['field']), v['value']])),
|
|
33383
|
+
items: list$1(content['items']).filter(isPlainObject).map(item => ({
|
|
33384
|
+
contentType: text$1(item['contentType']),
|
|
33385
|
+
values: Object.fromEntries(list$1(item['values']).filter(isPlainObject).map(v => [text$1(v['field']), v['value']])),
|
|
33353
33386
|
})),
|
|
33354
33387
|
asks: {
|
|
33355
33388
|
newTypes,
|
|
33356
|
-
newItems: list(pages['newItems']).filter(isPlainObject).map(n => ({ contentType: text(n['contentType']), count: Number(n['count']) || 0 })),
|
|
33389
|
+
newItems: list$1(pages['newItems']).filter(isPlainObject).map(n => ({ contentType: text$1(n['contentType']), count: Number(n['count']) || 0 })),
|
|
33357
33390
|
},
|
|
33358
33391
|
};
|
|
33359
33392
|
}
|
|
@@ -34483,7 +34516,7 @@ const NO_INDEX = -1;
|
|
|
34483
34516
|
/** A new page or content type on the wire: its children are edits of their own. */
|
|
34484
34517
|
const CHILDLESS = { children: false };
|
|
34485
34518
|
/** A list holding exactly one object: none → absent, one → it (expanded), more → the list (the gate refuses it). */
|
|
34486
|
-
const oneOf = (schema, expand, toWire, what) => ({
|
|
34519
|
+
const oneOf$1 = (schema, expand, toWire, what) => ({
|
|
34487
34520
|
text: `${what}[] — exactly one when the op takes it`,
|
|
34488
34521
|
none: [],
|
|
34489
34522
|
schema: () => jsonListOf(schema()),
|
|
@@ -34507,12 +34540,12 @@ const EDIT_WIRE = {
|
|
|
34507
34540
|
binding: textKey('setSectionData: the list source the section repeats'),
|
|
34508
34541
|
contentType: textKey('addField: a content type of the plan'),
|
|
34509
34542
|
newPage: {
|
|
34510
|
-
...oneOf(() => wirePageJsonSchema(CHILDLESS), v => expandWirePage(v, CHILDLESS), p => pageToWire(p, CHILDLESS), 'page'),
|
|
34543
|
+
...oneOf$1(() => wirePageJsonSchema(CHILDLESS), v => expandWirePage(v, CHILDLESS), p => pageToWire(p, CHILDLESS), 'page'),
|
|
34511
34544
|
text: 'page[] — exactly one when the op takes it, WITHOUT sections: each is an addSection after it',
|
|
34512
34545
|
},
|
|
34513
|
-
newSection: oneOf(wireSectionJsonSchema, expandWireSection, sectionToWire, 'section'),
|
|
34546
|
+
newSection: oneOf$1(wireSectionJsonSchema, expandWireSection, sectionToWire, 'section'),
|
|
34514
34547
|
newContentType: {
|
|
34515
|
-
...oneOf(() => wireContentTypeJsonSchema(CHILDLESS), v => expandWireContentType(v, CHILDLESS), t => contentTypeToWire(t, CHILDLESS), 'contentType'),
|
|
34548
|
+
...oneOf$1(() => wireContentTypeJsonSchema(CHILDLESS), v => expandWireContentType(v, CHILDLESS), t => contentTypeToWire(t, CHILDLESS), 'contentType'),
|
|
34516
34549
|
text: "contentType[] — exactly one when the op takes it, WITHOUT fields: each is an addField after it (the samples' values stay in its seed)",
|
|
34517
34550
|
},
|
|
34518
34551
|
dataSources: {
|
|
@@ -34521,7 +34554,7 @@ const EDIT_WIRE = {
|
|
|
34521
34554
|
expand: v => (Array.isArray(v) ? v.map(expandWireDataSource) : v),
|
|
34522
34555
|
toWire: (v) => v.map(dataSourceToWire),
|
|
34523
34556
|
},
|
|
34524
|
-
newField: oneOf(wireFieldJsonSchema, expandWireField, fieldToWire, 'field'),
|
|
34557
|
+
newField: oneOf$1(wireFieldJsonSchema, expandWireField, fieldToWire, 'field'),
|
|
34525
34558
|
sample: { text: "string | string[] — addField: the samples' value for it", none: '', schema: () => jsonAnyOf([jsonText(), jsonListOf(jsonText())]) },
|
|
34526
34559
|
};
|
|
34527
34560
|
/** Each op's keys (`PLAN_EDIT_SHAPE`) → the wire key that carries it. */
|
|
@@ -35076,7 +35109,7 @@ const HAND_BUILT_LEGAL = {
|
|
|
35076
35109
|
const HEBREW = 'he';
|
|
35077
35110
|
const MAILER = 'mailer';
|
|
35078
35111
|
const EMAIL_DELIVERY = 'email';
|
|
35079
|
-
const LITERAL_COLOUR = /#[0-9a-f]{3,8}\b|rgba?\(|hsla?\(/i;
|
|
35112
|
+
const LITERAL_COLOUR$1 = /#[0-9a-f]{3,8}\b|rgba?\(|hsla?\(/i;
|
|
35080
35113
|
const COLOUR_TRAITS = /color|Color|^background$|boxShadow|textShadow/;
|
|
35081
35114
|
const HEADING_LEVEL = /^h([1-6])$/;
|
|
35082
35115
|
const DIALOG_TYPE = 'Dialog';
|
|
@@ -35392,7 +35425,7 @@ function checkTokens(ctx, snapshot, pages) {
|
|
|
35392
35425
|
if (!n.elementStyle)
|
|
35393
35426
|
return;
|
|
35394
35427
|
const maps = [n.styleProps, ...Object.values(n.stateStyles ?? {}), ...Object.values(n.responsive ?? {}).map(l => l?.styleProps)];
|
|
35395
|
-
const literal = maps.some(map => Object.entries(map ?? {}).some(([k, v]) => COLOUR_TRAITS.test(k) && LITERAL_COLOUR.test(String(v)) && !(k === 'borderColor' && n.styleProps['borderWidth'] === '0px')));
|
|
35428
|
+
const literal = maps.some(map => Object.entries(map ?? {}).some(([k, v]) => COLOUR_TRAITS.test(k) && LITERAL_COLOUR$1.test(String(v)) && !(k === 'borderColor' && n.styleProps['borderWidth'] === '0px')));
|
|
35396
35429
|
if (literal)
|
|
35397
35430
|
add(ctx, SiteFindingCode.LiteralColour, null, { ...where, nodeId: n.id });
|
|
35398
35431
|
});
|
|
@@ -36630,6 +36663,957 @@ function judgeLayoutRender(measured, pixels = []) {
|
|
|
36630
36663
|
return [...issues.values()];
|
|
36631
36664
|
}
|
|
36632
36665
|
|
|
36666
|
+
/**
|
|
36667
|
+
* THE FREE SECTION (award-ingredients plan §11.4, FS3; FS-D15…FS-D18). A free page is ordinary builder-shaped nodes the
|
|
36668
|
+
* model writes itself — Section, Container, Heading, Text, Button, Image, Video — each with styles, a phone layer, a hover
|
|
36669
|
+
* and ONE move, plus SLOTS where a recipe stands (a list bound to content, a form): the model places a slot and never
|
|
36670
|
+
* writes a Repeater or a Form (FS-T1). The look's values stay the look's (tokens only, `checkFree`); layout, overlap,
|
|
36671
|
+
* turn, clip and size are free.
|
|
36672
|
+
*
|
|
36673
|
+
* It is ASKED as the strict FLAT wire (FS-D17): one list of nodes, every key required, no optional key, no union, no
|
|
36674
|
+
* recursion, styles as `"<property>:<value>"` strings — 23 properties, held by `strictSchemaComplexity` — so a parse
|
|
36675
|
+
* failure cannot happen. `expandFreeWire` turns it into the free tree (`FreePage`) the judge reads; `freeToWire` writes a
|
|
36676
|
+
* tree back (fixtures, a repair's starting point); `freeWireIssue` says a judge's tree path in the wire's own words.
|
|
36677
|
+
* The page is written in ONE language: the site's. Every enum is generated from THIS request (R-H2): the material ids,
|
|
36678
|
+
* the slots, the pages. Pure. The prototype's copy is `prototypes/breaking-limits/code/flat5.mjs` (FS-D48 measured it).
|
|
36679
|
+
*/
|
|
36680
|
+
/** What a free node is. `Button` is stamped as the builder's ButtonBlock; a `Slot` is a recipe placed by name. */
|
|
36681
|
+
var FreeNodeType;
|
|
36682
|
+
(function (FreeNodeType) {
|
|
36683
|
+
FreeNodeType["Section"] = "Section";
|
|
36684
|
+
FreeNodeType["Container"] = "Container";
|
|
36685
|
+
FreeNodeType["Heading"] = "Heading";
|
|
36686
|
+
FreeNodeType["Text"] = "Text";
|
|
36687
|
+
FreeNodeType["Button"] = "Button";
|
|
36688
|
+
FreeNodeType["Image"] = "Image";
|
|
36689
|
+
FreeNodeType["Video"] = "Video";
|
|
36690
|
+
FreeNodeType["Slot"] = "Slot";
|
|
36691
|
+
})(FreeNodeType || (FreeNodeType = {}));
|
|
36692
|
+
/** The node types that carry words. */
|
|
36693
|
+
const FREE_WORD_TYPES = [FreeNodeType.Heading, FreeNodeType.Text, FreeNodeType.Button];
|
|
36694
|
+
/** The node types that hold children. */
|
|
36695
|
+
const FREE_HOLDERS = [FreeNodeType.Section, FreeNodeType.Container];
|
|
36696
|
+
/** What a free section is for — the fall back picks the ready-made section of the same place by it. */
|
|
36697
|
+
var FreePurpose;
|
|
36698
|
+
(function (FreePurpose) {
|
|
36699
|
+
FreePurpose["Opening"] = "opening";
|
|
36700
|
+
FreePurpose["Videos"] = "videos";
|
|
36701
|
+
FreePurpose["Products"] = "products";
|
|
36702
|
+
FreePurpose["Work"] = "work";
|
|
36703
|
+
FreePurpose["About"] = "about";
|
|
36704
|
+
FreePurpose["Offer"] = "offer";
|
|
36705
|
+
FreePurpose["Proof"] = "proof";
|
|
36706
|
+
FreePurpose["Process"] = "process";
|
|
36707
|
+
FreePurpose["Contact"] = "contact";
|
|
36708
|
+
FreePurpose["Closing"] = "closing";
|
|
36709
|
+
})(FreePurpose || (FreePurpose = {}));
|
|
36710
|
+
/**
|
|
36711
|
+
* The look's element styles a free node may wear, by type — a closed list (the contract has more, e.g. accordion parts,
|
|
36712
|
+
* which belong to their recipes). A word node wears one and changes what it needs on top. The spec holds each id to the
|
|
36713
|
+
* contract's `appliesTo` (`elementStylesFor`).
|
|
36714
|
+
*/
|
|
36715
|
+
const FREE_ELEMENT_STYLES = {
|
|
36716
|
+
[FreeNodeType.Section]: ['section'],
|
|
36717
|
+
[FreeNodeType.Container]: ['box', 'card', 'panel'],
|
|
36718
|
+
[FreeNodeType.Heading]: ['display', 'h1', 'h2', 'h3', 'eyebrow'],
|
|
36719
|
+
[FreeNodeType.Text]: ['lead', 'body', 'small', 'eyebrow'],
|
|
36720
|
+
[FreeNodeType.Button]: ['button-primary', 'button-secondary', 'button-ghost'],
|
|
36721
|
+
[FreeNodeType.Image]: ['media'],
|
|
36722
|
+
[FreeNodeType.Video]: ['media'],
|
|
36723
|
+
};
|
|
36724
|
+
/** The builder type each free type is stamped as (and whose element styles it may wear). */
|
|
36725
|
+
const FREE_BUILDER_TYPE = {
|
|
36726
|
+
[FreeNodeType.Section]: 'Section',
|
|
36727
|
+
[FreeNodeType.Container]: 'Container',
|
|
36728
|
+
[FreeNodeType.Heading]: 'Heading',
|
|
36729
|
+
[FreeNodeType.Text]: 'Text',
|
|
36730
|
+
[FreeNodeType.Button]: 'ButtonBlock',
|
|
36731
|
+
[FreeNodeType.Image]: 'Image',
|
|
36732
|
+
[FreeNodeType.Video]: 'Video',
|
|
36733
|
+
[FreeNodeType.Slot]: 'Container',
|
|
36734
|
+
};
|
|
36735
|
+
/** The one role a free node may carry: the heading a visitor reads first. */
|
|
36736
|
+
const FREE_LEAD_ROLE = 'lead';
|
|
36737
|
+
/** How a page treats its pictures — ONE word, recorded and shown (R-H8: information, never a gate). */
|
|
36738
|
+
var FreePictures;
|
|
36739
|
+
(function (FreePictures) {
|
|
36740
|
+
FreePictures["UniformGrid"] = "uniform-grid";
|
|
36741
|
+
FreePictures["EqualSquares"] = "equal-squares";
|
|
36742
|
+
FreePictures["OneFormat"] = "one-format";
|
|
36743
|
+
FreePictures["SingleLarge"] = "single-large";
|
|
36744
|
+
FreePictures["FullBleed"] = "full-bleed";
|
|
36745
|
+
FreePictures["Mixed"] = "mixed";
|
|
36746
|
+
FreePictures["None"] = "none";
|
|
36747
|
+
})(FreePictures || (FreePictures = {}));
|
|
36748
|
+
/** The product's breakpoints a free style layer is written at (`style-compiler/responsive.ts`): the wire asks two. */
|
|
36749
|
+
var FreeLayer;
|
|
36750
|
+
(function (FreeLayer) {
|
|
36751
|
+
FreeLayer["Phone"] = "mobile";
|
|
36752
|
+
FreeLayer["Tablet"] = "tablet";
|
|
36753
|
+
})(FreeLayer || (FreeLayer = {}));
|
|
36754
|
+
/** Layers a phone in portrait reaches (a `mobile` layer reaches `small` by the cascade). */
|
|
36755
|
+
const FREE_PHONE_LAYERS = ['mobile', 'small'];
|
|
36756
|
+
/** What triggers a free node's ONE move. */
|
|
36757
|
+
var FreeTrigger;
|
|
36758
|
+
(function (FreeTrigger) {
|
|
36759
|
+
FreeTrigger["Enter"] = "viewportEnter";
|
|
36760
|
+
FreeTrigger["Scroll"] = "scrollProgress";
|
|
36761
|
+
})(FreeTrigger || (FreeTrigger = {}));
|
|
36762
|
+
/**
|
|
36763
|
+
* The moves a free node may make — the product's own action words (actions-core `ELEMENT_ACTION_DESCRIPTORS`), each with
|
|
36764
|
+
* the one parameter the wire may set. A hover is a style state, never a move.
|
|
36765
|
+
*/
|
|
36766
|
+
const FREE_MOVES = {
|
|
36767
|
+
[FreeTrigger.Enter]: {
|
|
36768
|
+
fadeIn: {},
|
|
36769
|
+
moveUp: {},
|
|
36770
|
+
blurIn: {},
|
|
36771
|
+
zoomOut: {},
|
|
36772
|
+
clipReveal: { param: 'from', values: ['start', 'end', 'top', 'bottom', 'centre'] },
|
|
36773
|
+
revealText: { param: 'by', values: ['line', 'word'] },
|
|
36774
|
+
countUp: {},
|
|
36775
|
+
},
|
|
36776
|
+
[FreeTrigger.Scroll]: {
|
|
36777
|
+
parallax: { param: 'depth', values: ['back', 'front'] },
|
|
36778
|
+
},
|
|
36779
|
+
};
|
|
36780
|
+
/** The wire's node keys, in the order a model writes them. Every one is required. */
|
|
36781
|
+
const FREE_WIRE_NODE_KEYS = [
|
|
36782
|
+
'id', 'parent', 'type', 'purpose', 'style', 'level', 'role', 'text', 'src', 'href', 'slot', 'opts', 'base', 'phone', 'tablet', 'hover', 'motion',
|
|
36783
|
+
];
|
|
36784
|
+
const SEP = ':';
|
|
36785
|
+
const NONE = 'none';
|
|
36786
|
+
const ENTER = 'enter';
|
|
36787
|
+
const SCROLL = 'scroll';
|
|
36788
|
+
const TRIGGER_WORD = { [FreeTrigger.Enter]: ENTER, [FreeTrigger.Scroll]: SCROLL };
|
|
36789
|
+
/** Every move word the wire offers: `none`, `enter:<action>[:<value>]`, `scroll:parallax:<depth>`. */
|
|
36790
|
+
function freeMoveWords() {
|
|
36791
|
+
const out = [NONE];
|
|
36792
|
+
for (const trigger of Object.values(FreeTrigger)) {
|
|
36793
|
+
for (const [action, spec] of Object.entries(FREE_MOVES[trigger])) {
|
|
36794
|
+
if (spec.values?.length)
|
|
36795
|
+
for (const v of spec.values)
|
|
36796
|
+
out.push([TRIGGER_WORD[trigger], action, v].join(SEP));
|
|
36797
|
+
else
|
|
36798
|
+
out.push([TRIGGER_WORD[trigger], action].join(SEP));
|
|
36799
|
+
}
|
|
36800
|
+
}
|
|
36801
|
+
return out;
|
|
36802
|
+
}
|
|
36803
|
+
const FREE_STYLE_WORDS = [...new Set(Object.values(FREE_ELEMENT_STYLES).flat())];
|
|
36804
|
+
const text = (d) => ({ ...jsonText(), description: d });
|
|
36805
|
+
const oneOf = (values, d) => ({ ...jsonOneOf(values), description: d });
|
|
36806
|
+
const strings = (d) => ({ ...jsonListOf(jsonText()), description: d });
|
|
36807
|
+
const closed = (properties, d) => jsonClosedObject(properties, Object.keys(properties), d);
|
|
36808
|
+
/** The strict format of ONE free page (FS-D17): 23 properties, 0 optional, 0 unions. */
|
|
36809
|
+
function freeWireJsonSchema(options = {}) {
|
|
36810
|
+
const lang = options.language ?? 'the site\'s language';
|
|
36811
|
+
const node = closed({
|
|
36812
|
+
id: text('unique kebab-case id'),
|
|
36813
|
+
parent: text("the id of the Section or Container it sits in; '' for a Section (the top of the page). A parent is written before its children; siblings in reading order"),
|
|
36814
|
+
type: oneOf(Object.values(FreeNodeType), 'what the node is'),
|
|
36815
|
+
purpose: oneOf(['', ...Object.values(FreePurpose)], "a Section: what it is for; '' for every other node"),
|
|
36816
|
+
style: oneOf(['', ...FREE_STYLE_WORDS], "the look's element style it wears (a Heading, Text and Button always wear one); '' for none"),
|
|
36817
|
+
level: { ...jsonInteger(), description: 'a Heading: 1–4 (exactly one 1 on the page); 0 for other nodes' },
|
|
36818
|
+
role: oneOf(['', FREE_LEAD_ROLE], "'lead' on the heading a visitor reads first (in the first section); '' otherwise"),
|
|
36819
|
+
text: text(`the words (Heading, Text, Button), in ${lang}; '' for none`),
|
|
36820
|
+
src: oneOf(['', ...(options.material ?? [])], "an Image / Video: an id from the material; '' for none"),
|
|
36821
|
+
href: text("a Button: a page route of the site or '#<section id>'; '' for none"),
|
|
36822
|
+
slot: oneOf(['', ...(options.slots ?? [])], "a Slot: the part that stands here, placed and never built; '' for none"),
|
|
36823
|
+
opts: strings("a list Slot: how its items are shown, '<ingredient>:<word>'; [] for none"),
|
|
36824
|
+
base: strings("styles at every width, each '<property>:<value>' (camelCase, one plain value; a size relative to the width is cqi, never vw); [] for none"),
|
|
36825
|
+
phone: strings("the phone layer (≤ 767px), '<property>:<value>'; [] for none"),
|
|
36826
|
+
tablet: strings("the tablet layer (≤ 991px), '<property>:<value>'; [] for none"),
|
|
36827
|
+
hover: strings("on hover, '<property>:<value>' — transform, opacity or a colour token only; [] for none"),
|
|
36828
|
+
motion: oneOf(freeMoveWords(), 'its ONE entrance or scroll move, or none'),
|
|
36829
|
+
});
|
|
36830
|
+
return closed({
|
|
36831
|
+
read: closed({
|
|
36832
|
+
idea: text("one line: the page's idea"),
|
|
36833
|
+
why: text('one line: why it suits this owner'),
|
|
36834
|
+
followed: text(`ONE line the owner can read, in ${lang}: which of THEIR words this page followed, quoting them as written`),
|
|
36835
|
+
}),
|
|
36836
|
+
pictures: oneOf(Object.values(FreePictures), 'how the page treats its pictures, one word'),
|
|
36837
|
+
nodes: jsonListOf(node),
|
|
36838
|
+
}, 'one free page, flat');
|
|
36839
|
+
}
|
|
36840
|
+
const str = (v) => (typeof v === 'string' ? v : '');
|
|
36841
|
+
const list = (v) => (Array.isArray(v) ? v.filter((x) => typeof x === 'string') : []);
|
|
36842
|
+
const nodeAt = (i, id) => `nodes[${i}]${id ? ` ("${id}")` : ''}`;
|
|
36843
|
+
/** `["fontSize:4rem", …]` → a style map, split at each line's FIRST colon; a line with none is a fault. */
|
|
36844
|
+
function styleOf(lines, at, faults) {
|
|
36845
|
+
const out = {};
|
|
36846
|
+
list(lines).forEach((line, k) => {
|
|
36847
|
+
const i = line.indexOf(SEP);
|
|
36848
|
+
if (i <= 0)
|
|
36849
|
+
faults.push({ path: `${at}[${k}]`, message: `"${line}" — write each style as <property>:<value>` });
|
|
36850
|
+
else
|
|
36851
|
+
out[line.slice(0, i).trim()] = line.slice(i + 1).trim();
|
|
36852
|
+
});
|
|
36853
|
+
return out;
|
|
36854
|
+
}
|
|
36855
|
+
/** `enter:clipReveal:start` → a move; `none`, or a word the format does not hold, → none. */
|
|
36856
|
+
function freeMoveOf(word) {
|
|
36857
|
+
const [where, action, value] = String(word ?? '').split(SEP);
|
|
36858
|
+
const trigger = Object.keys(TRIGGER_WORD).find(t => TRIGGER_WORD[t] === where);
|
|
36859
|
+
const spec = trigger ? FREE_MOVES[trigger][action] : undefined;
|
|
36860
|
+
if (!trigger || !spec)
|
|
36861
|
+
return null;
|
|
36862
|
+
return { trigger, action, ...(spec.param && value ? { params: { [spec.param]: value } } : {}) };
|
|
36863
|
+
}
|
|
36864
|
+
/** A move → its wire word. */
|
|
36865
|
+
function freeMoveWord(move) {
|
|
36866
|
+
if (!move)
|
|
36867
|
+
return NONE;
|
|
36868
|
+
const value = Object.values(move.params ?? {})[0];
|
|
36869
|
+
return [TRIGGER_WORD[move.trigger], move.action, ...(value ? [value] : [])].join(SEP);
|
|
36870
|
+
}
|
|
36871
|
+
/**
|
|
36872
|
+
* The wire → the free tree. A node whose parent is not written before it, a top node that is not a Section, a child of a
|
|
36873
|
+
* node that holds none, a repeated id — each is a FAULT and the node is left out: never guessed, never repaired here.
|
|
36874
|
+
*/
|
|
36875
|
+
function expandFreeWire(wire) {
|
|
36876
|
+
const faults = [];
|
|
36877
|
+
const w = isPlainObject(wire) ? wire : {};
|
|
36878
|
+
const read = isPlainObject(w['read']) ? w['read'] : {};
|
|
36879
|
+
const sections = [];
|
|
36880
|
+
const made = new Map();
|
|
36881
|
+
const pathOf = new Map();
|
|
36882
|
+
const paths = {};
|
|
36883
|
+
(Array.isArray(w['nodes']) ? w['nodes'] : []).forEach((raw, i) => {
|
|
36884
|
+
if (!isPlainObject(raw)) {
|
|
36885
|
+
faults.push({ path: `nodes[${i}]`, message: 'not a node' });
|
|
36886
|
+
return;
|
|
36887
|
+
}
|
|
36888
|
+
const id = str(raw['id']);
|
|
36889
|
+
const at = nodeAt(i, id);
|
|
36890
|
+
const type = str(raw['type']);
|
|
36891
|
+
if (!Object.values(FreeNodeType).includes(type)) {
|
|
36892
|
+
faults.push({ path: at, message: `"${type}" is not a node type — ${Object.values(FreeNodeType).join(', ')}` });
|
|
36893
|
+
return;
|
|
36894
|
+
}
|
|
36895
|
+
if (!id || made.has(id)) {
|
|
36896
|
+
faults.push({ path: at, message: id ? `the id "${id}" is used twice` : 'every node needs its own id' });
|
|
36897
|
+
return;
|
|
36898
|
+
}
|
|
36899
|
+
const node = { id, type, styleProps: styleOf(raw['base'], `${at}.base`, faults) };
|
|
36900
|
+
if (type === FreeNodeType.Section)
|
|
36901
|
+
node.purpose = str(raw['purpose']);
|
|
36902
|
+
if (str(raw['style']))
|
|
36903
|
+
node.elementStyle = str(raw['style']);
|
|
36904
|
+
if (type === FreeNodeType.Heading)
|
|
36905
|
+
node.level = typeof raw['level'] === 'number' ? raw['level'] : 0;
|
|
36906
|
+
if (str(raw['role']))
|
|
36907
|
+
node.role = str(raw['role']);
|
|
36908
|
+
if (FREE_WORD_TYPES.includes(type))
|
|
36909
|
+
node.text = str(raw['text']);
|
|
36910
|
+
if (str(raw['src']))
|
|
36911
|
+
node.src = str(raw['src']);
|
|
36912
|
+
if (type === FreeNodeType.Button)
|
|
36913
|
+
node.href = str(raw['href']);
|
|
36914
|
+
if (type === FreeNodeType.Slot) {
|
|
36915
|
+
node.slot = str(raw['slot']);
|
|
36916
|
+
node.opts = list(raw['opts']);
|
|
36917
|
+
}
|
|
36918
|
+
const responsive = {};
|
|
36919
|
+
for (const [key, layer] of [['phone', FreeLayer.Phone], ['tablet', FreeLayer.Tablet]]) {
|
|
36920
|
+
const style = styleOf(raw[key], `${at}.${key}`, faults);
|
|
36921
|
+
if (Object.keys(style).length)
|
|
36922
|
+
responsive[layer] = style;
|
|
36923
|
+
}
|
|
36924
|
+
if (Object.keys(responsive).length)
|
|
36925
|
+
node.responsive = responsive;
|
|
36926
|
+
const hover = styleOf(raw['hover'], `${at}.hover`, faults);
|
|
36927
|
+
if (Object.keys(hover).length)
|
|
36928
|
+
node.hover = hover;
|
|
36929
|
+
const motion = str(raw['motion']);
|
|
36930
|
+
const move = freeMoveOf(motion);
|
|
36931
|
+
if (move)
|
|
36932
|
+
node.move = move;
|
|
36933
|
+
else if (motion && motion !== NONE)
|
|
36934
|
+
faults.push({ path: `${at}.motion`, message: `"${motion}" is not a move — ${freeMoveWords().join(', ')}` });
|
|
36935
|
+
const parentId = str(raw['parent']);
|
|
36936
|
+
if (!parentId) {
|
|
36937
|
+
if (type !== FreeNodeType.Section) {
|
|
36938
|
+
faults.push({ path: at, message: 'only a Section sits at the top of the page — give it a parent' });
|
|
36939
|
+
return;
|
|
36940
|
+
}
|
|
36941
|
+
pathOf.set(node, `sections[${sections.length}]`);
|
|
36942
|
+
sections.push(node);
|
|
36943
|
+
}
|
|
36944
|
+
else {
|
|
36945
|
+
const parent = made.get(parentId);
|
|
36946
|
+
if (!parent) {
|
|
36947
|
+
faults.push({ path: at, message: `its parent "${parentId}" is not written before it` });
|
|
36948
|
+
return;
|
|
36949
|
+
}
|
|
36950
|
+
if (!FREE_HOLDERS.includes(parent.type)) {
|
|
36951
|
+
faults.push({ path: at, message: `a ${parent.type} holds no children` });
|
|
36952
|
+
return;
|
|
36953
|
+
}
|
|
36954
|
+
if (type === FreeNodeType.Section) {
|
|
36955
|
+
faults.push({ path: at, message: 'a Section sits at the top of the page only — use a Container inside' });
|
|
36956
|
+
return;
|
|
36957
|
+
}
|
|
36958
|
+
(parent.children ??= []).push(node);
|
|
36959
|
+
pathOf.set(node, `${pathOf.get(parent)}.children[${parent.children.length - 1}]`);
|
|
36960
|
+
}
|
|
36961
|
+
made.set(id, node);
|
|
36962
|
+
paths[pathOf.get(node)] = i;
|
|
36963
|
+
});
|
|
36964
|
+
const page = {
|
|
36965
|
+
read: { idea: str(read['idea']), why: str(read['why']), followed: str(read['followed']) },
|
|
36966
|
+
pictures: str(w['pictures']),
|
|
36967
|
+
sections,
|
|
36968
|
+
};
|
|
36969
|
+
return { page, paths, faults };
|
|
36970
|
+
}
|
|
36971
|
+
function walkFree(sections) {
|
|
36972
|
+
const out = [];
|
|
36973
|
+
const visit = (node, path, section, up) => {
|
|
36974
|
+
out.push({ node, path, section, up });
|
|
36975
|
+
(node.children ?? []).forEach((c, i) => visit(c, `${path}.children[${i}]`, section, [...up, node]));
|
|
36976
|
+
};
|
|
36977
|
+
sections.forEach((s, i) => visit(s, `sections[${i}]`, i, []));
|
|
36978
|
+
return out;
|
|
36979
|
+
}
|
|
36980
|
+
const lines = (style) => Object.entries(style ?? {}).map(([k, v]) => `${k}${SEP}${v}`);
|
|
36981
|
+
/** The free tree → the wire (a ready-made place is left out: it is not the model's). */
|
|
36982
|
+
function freeToWire(page) {
|
|
36983
|
+
const nodes = walkFree(page.sections.filter(s => !s.readyMade)).map(({ node: n, up }) => ({
|
|
36984
|
+
id: n.id, parent: up.length ? up[up.length - 1].id : '', type: n.type, purpose: n.purpose ?? '', style: n.elementStyle ?? '',
|
|
36985
|
+
level: n.type === FreeNodeType.Heading ? n.level ?? 0 : 0, role: n.role ?? '', text: n.text ?? '', src: n.src ?? '', href: n.href ?? '',
|
|
36986
|
+
slot: n.slot ?? '', opts: [...(n.opts ?? [])], base: lines(n.styleProps), phone: lines(n.responsive?.[FreeLayer.Phone]),
|
|
36987
|
+
tablet: lines(n.responsive?.[FreeLayer.Tablet]), hover: lines(n.hover), motion: freeMoveWord(n.move),
|
|
36988
|
+
}));
|
|
36989
|
+
return { read: { ...page.read }, pictures: page.pictures, nodes };
|
|
36990
|
+
}
|
|
36991
|
+
/** A tree key → the wire key it came from. */
|
|
36992
|
+
const WIRE_KEY = [
|
|
36993
|
+
[`responsive.${FreeLayer.Phone}`, 'phone'],
|
|
36994
|
+
[`responsive.${FreeLayer.Tablet}`, 'tablet'],
|
|
36995
|
+
['responsive', 'phone'],
|
|
36996
|
+
['styleProps', 'base'],
|
|
36997
|
+
['hover', 'hover'],
|
|
36998
|
+
['move', 'motion'],
|
|
36999
|
+
['elementStyle', 'style'],
|
|
37000
|
+
['text', 'text'],
|
|
37001
|
+
['opts', 'opts'],
|
|
37002
|
+
];
|
|
37003
|
+
/**
|
|
37004
|
+
* A judge's path into the tree (`sections[0].children[1].styleProps.fontSize`) said against the wire
|
|
37005
|
+
* (`nodes[2] ("shop-title").base.fontSize`) — a repair names wire paths. A path that names no node stays as written.
|
|
37006
|
+
*/
|
|
37007
|
+
function freeWirePath(path, paths, wire) {
|
|
37008
|
+
const m = /^(sections\[\d+\](?:\.children\[\d+\])*)(?:\.(.*))?$/.exec(path);
|
|
37009
|
+
if (!m || paths[m[1]] === undefined)
|
|
37010
|
+
return path;
|
|
37011
|
+
const i = paths[m[1]];
|
|
37012
|
+
const rest = m[2] ?? '';
|
|
37013
|
+
const hit = WIRE_KEY.find(([k]) => rest === k || rest.startsWith(`${k}.`));
|
|
37014
|
+
const where = hit ? `.${hit[1]}${rest.length > hit[0].length ? rest.slice(hit[0].length) : ''}` : rest ? `.${rest}` : '';
|
|
37015
|
+
return `${nodeAt(i, wire.nodes?.[i]?.id ?? '')}${where}`;
|
|
37016
|
+
}
|
|
37017
|
+
/** A repair's edits remove a node: what sat inside it goes too, so no orphan is left. */
|
|
37018
|
+
function withoutFreeOrphans(wire) {
|
|
37019
|
+
const ids = new Set();
|
|
37020
|
+
const nodes = (wire.nodes ?? []).filter(n => {
|
|
37021
|
+
if (n?.parent && !ids.has(n.parent))
|
|
37022
|
+
return false;
|
|
37023
|
+
if (n?.id)
|
|
37024
|
+
ids.add(n.id);
|
|
37025
|
+
return true;
|
|
37026
|
+
});
|
|
37027
|
+
return { ...wire, nodes };
|
|
37028
|
+
}
|
|
37029
|
+
|
|
37030
|
+
/**
|
|
37031
|
+
* THE FREE PAGE'S JUDGE (award plan §11.4 gates 1 + 2, FS3): every reason a free page may not be stamped, path first,
|
|
37032
|
+
* in words the model can act on in its one repair. It judges SAFETY, LAW and TRUTH — never taste (R-H18): what is the
|
|
37033
|
+
* look's stays a token (R-H1), a phone layer exists where a phone needs one (R-H4), no fact is invented (R-H6, the ONE
|
|
37034
|
+
* `factIssues`), only what exists is named (R-H2), the words read on their ground (R-H12), and the answer says which of
|
|
37035
|
+
* the owner's words it followed (R-H17). A place the fall back gave to a ready-made section (`readyMade`) is the plan's,
|
|
37036
|
+
* not the model's: it is skipped, and the page rules that section would answer are relaxed. Pure.
|
|
37037
|
+
*/
|
|
37038
|
+
var FreeIssueCode;
|
|
37039
|
+
(function (FreeIssueCode) {
|
|
37040
|
+
/** The page's structure: section count, ids, nesting, h1, lead, a closing action, a phone layout. */
|
|
37041
|
+
FreeIssueCode["Structure"] = "structure";
|
|
37042
|
+
/** A word node's words or element style. */
|
|
37043
|
+
FreeIssueCode["Words"] = "words";
|
|
37044
|
+
/** A style: a property outside the list, a value that is not one plain value, a side that is not start / end. */
|
|
37045
|
+
FreeIssueCode["Style"] = "style";
|
|
37046
|
+
/** A value the look owns written as something other than its token. */
|
|
37047
|
+
FreeIssueCode["Token"] = "token";
|
|
37048
|
+
/** A node a phone cannot hold as written, with no phone layer. */
|
|
37049
|
+
FreeIssueCode["Phone"] = "phone";
|
|
37050
|
+
/** A move: not the product's, two on a node, on the wrong node. */
|
|
37051
|
+
FreeIssueCode["Motion"] = "motion";
|
|
37052
|
+
/** A fact the owner never gave, a material id, a slot or a link that does not exist. */
|
|
37053
|
+
FreeIssueCode["Content"] = "content";
|
|
37054
|
+
/** Words that do not read on their ground (AA). */
|
|
37055
|
+
FreeIssueCode["Contrast"] = "contrast";
|
|
37056
|
+
/** The followed line is missing or quotes none of the owner's words. */
|
|
37057
|
+
FreeIssueCode["Prompt"] = "prompt";
|
|
37058
|
+
})(FreeIssueCode || (FreeIssueCode = {}));
|
|
37059
|
+
/** A free page is this many sections. */
|
|
37060
|
+
const FREE_SECTIONS = { min: 4, max: 9 };
|
|
37061
|
+
/** Above this, a node needs its own phone layer. */
|
|
37062
|
+
const FREE_PHONE_LIMITS = { width: 340, fontSize: 44, turn: 8 };
|
|
37063
|
+
/** WCAG AA: words, and large words (display, h1, h2). */
|
|
37064
|
+
const FREE_CONTRAST = { text: 4.5, large: 3 };
|
|
37065
|
+
const LARGE_STYLES = ['display', 'h1', 'h2'];
|
|
37066
|
+
/** The style properties whose value is the LOOK's: a token of this type, or one of the listed plain words. */
|
|
37067
|
+
const FREE_TOKEN_PROPS = {
|
|
37068
|
+
color: 'color', backgroundColor: 'color', borderColor: 'color', outlineColor: 'color', textDecorationColor: 'color',
|
|
37069
|
+
fontFamily: 'font', borderRadius: 'radius', boxShadow: 'shadow', transitionDuration: 'duration', transitionTimingFunction: 'easing',
|
|
37070
|
+
};
|
|
37071
|
+
const TOKEN_PLAIN = {
|
|
37072
|
+
color: ['transparent', 'currentColor', 'inherit'], font: ['inherit'], radius: ['0', '0px', '50%'], shadow: ['none'], duration: [], easing: [],
|
|
37073
|
+
};
|
|
37074
|
+
/** A colour token may be either of these token types. */
|
|
37075
|
+
const COLOUR_TYPES = ['color', 'paint'];
|
|
37076
|
+
/** The free properties: geometry, arrangement, type scale and rhythm, clipping, blending. */
|
|
37077
|
+
const FREE_STYLE_PROPS = [
|
|
37078
|
+
'display', 'position', 'top', 'bottom', 'insetInlineStart', 'insetInlineEnd', 'zIndex', 'order',
|
|
37079
|
+
'width', 'minWidth', 'maxWidth', 'height', 'minHeight', 'maxHeight', 'aspectRatio', 'overflow',
|
|
37080
|
+
'margin', 'marginTop', 'marginBottom', 'marginInlineStart', 'marginInlineEnd', 'marginInline', 'marginBlock',
|
|
37081
|
+
'padding', 'paddingTop', 'paddingBottom', 'paddingInlineStart', 'paddingInlineEnd', 'paddingInline', 'paddingBlock',
|
|
37082
|
+
'gridTemplateColumns', 'gridTemplateRows', 'gridColumn', 'gridRow', 'gap', 'rowGap', 'columnGap',
|
|
37083
|
+
'flexDirection', 'flexWrap', 'flex', 'alignItems', 'alignContent', 'justifyContent', 'alignSelf', 'justifySelf', 'placeItems', 'placeSelf',
|
|
37084
|
+
'fontSize', 'fontWeight', 'lineHeight', 'letterSpacing', 'textTransform', 'textAlign', 'fontStyle', 'textWrap', 'whiteSpace',
|
|
37085
|
+
'translateX', 'translateY', 'rotate', 'scaleX', 'scaleY', 'transformOrigin',
|
|
37086
|
+
'clipPath', 'opacity', 'mixBlendMode', 'objectFit', 'objectPosition', 'borderWidth', 'borderStyle', 'filter', 'backdropFilter',
|
|
37087
|
+
];
|
|
37088
|
+
/** A hover changes position, scale, turn, opacity or a colour token — never layout (Emil: transform / opacity only). */
|
|
37089
|
+
const FREE_HOVER_PROPS = ['translateX', 'translateY', 'scaleX', 'scaleY', 'rotate', 'opacity', 'color', 'backgroundColor', 'borderColor', 'boxShadow'];
|
|
37090
|
+
const PHYSICAL = /^(left|right|marginLeft|marginRight|paddingLeft|paddingRight|borderLeft.*|borderRight.*|insetLeft|insetRight)$/;
|
|
37091
|
+
const UNSAFE = /[;{}<>\\]|!important|url\s*\(|expression|@import|javascript:/i;
|
|
37092
|
+
const LITERAL_COLOUR = /#[0-9a-f]{3,8}\b|\b(rgb|rgba|hsl|hsla|oklch|oklab|lab|lch|hwb)\s*\(/i;
|
|
37093
|
+
const NAMED_COLOUR = /\b(white|black|red|blue|green|yellow|orange|purple|pink|gray|grey|gold|navy|teal|beige|ivory|cream)\b/i;
|
|
37094
|
+
const TOKEN_REF = /var\(\s*--iox-([a-z0-9-]+)\s*(?:,[^)]*)?\)/g;
|
|
37095
|
+
const ONE_TOKEN = /^var\(--iox-([a-z0-9-]+)\)$/;
|
|
37096
|
+
const COLOUR_MIX = /^color-mix\(in (oklab|srgb), var\(--iox-[a-z0-9-]+\) \d{1,3}%, transparent\)$/;
|
|
37097
|
+
const ANCHOR = /^#[a-z][\w-]*$/;
|
|
37098
|
+
/** FS-T5: a size relative to the WINDOW's width (vw and its kin) — on the canvas, a transformed frame, the window is not
|
|
37099
|
+
* the page. A size relative to the width is `cqi` (the page's / section's inline size), and only `cqi`. */
|
|
37100
|
+
const WINDOW_WIDTH_UNIT = /(-?\d*\.?\d+)(?:[dsl]?vw|[dsl]?vi|[dsl]?vmin|[dsl]?vmax)(?![a-z])/i;
|
|
37101
|
+
const OTHER_CQ_UNIT = /(-?\d*\.?\d+)(?:cqw|cqh|cqb|cqmin|cqmax)(?![a-z])/i;
|
|
37102
|
+
const A_NUMBER = /^\D{0,3}\d[\d,.]*\D{0,3}$/;
|
|
37103
|
+
/** The ground a page paints when no node does. */
|
|
37104
|
+
const PAGE_GROUND = 'page-bg';
|
|
37105
|
+
const tokensIn = (v) => [...v.matchAll(TOKEN_REF)].map(m => m[1]);
|
|
37106
|
+
const oneToken = (v) => ONE_TOKEN.exec(String(v ?? '').trim())?.[1];
|
|
37107
|
+
const px = (v) => { const m = /^(-?[\d.]+)px$/.exec(String(v ?? '').trim()); return m ? Number(m[1]) : null; };
|
|
37108
|
+
const columnsOf = (v) => {
|
|
37109
|
+
const s = String(v ?? '').trim();
|
|
37110
|
+
const rep = /repeat\(\s*(\d+)/.exec(s);
|
|
37111
|
+
return rep ? Number(rep[1]) : s.split(/\s+(?![^(]*\))/).filter(Boolean).length;
|
|
37112
|
+
};
|
|
37113
|
+
const hasPhoneLayer = (n) => FREE_PHONE_LAYERS.some(bp => Object.keys(n.responsive?.[bp] ?? {}).length > 0);
|
|
37114
|
+
/** One style map against the rules: a known property, one clean value, the look's token where the look owns it. */
|
|
37115
|
+
function freeStyleIssues(style, path, ctx) {
|
|
37116
|
+
const out = [];
|
|
37117
|
+
const types = new Map(ctx.tokens.map(t => [t.name, t.type]));
|
|
37118
|
+
const say = (code, prop, message) => out.push({ code, path: `${path}.${prop}`, message });
|
|
37119
|
+
for (const [prop, raw] of Object.entries(style ?? {})) {
|
|
37120
|
+
const v = String(raw).trim();
|
|
37121
|
+
const kind = FREE_TOKEN_PROPS[prop];
|
|
37122
|
+
if (PHYSICAL.test(prop)) {
|
|
37123
|
+
say(FreeIssueCode.Style, prop, 'write sides as start / end (insetInlineStart, marginInlineEnd …) — the site also runs right to left');
|
|
37124
|
+
continue;
|
|
37125
|
+
}
|
|
37126
|
+
if (!kind && !FREE_STYLE_PROPS.includes(prop)) {
|
|
37127
|
+
say(FreeIssueCode.Style, prop, 'not a style property this language has');
|
|
37128
|
+
continue;
|
|
37129
|
+
}
|
|
37130
|
+
if (!v || UNSAFE.test(v)) {
|
|
37131
|
+
say(FreeIssueCode.Style, prop, 'a value is one plain value — no url(), no ; { } !important');
|
|
37132
|
+
continue;
|
|
37133
|
+
}
|
|
37134
|
+
if (prop === 'textAlign' && /^(left|right)$/.test(v)) {
|
|
37135
|
+
say(FreeIssueCode.Style, prop, 'start | end | center');
|
|
37136
|
+
continue;
|
|
37137
|
+
}
|
|
37138
|
+
const win = WINDOW_WIDTH_UNIT.exec(v);
|
|
37139
|
+
if (win) {
|
|
37140
|
+
say(FreeIssueCode.Style, prop, `"${win[0]}" follows the window, not the page — a size relative to the width is cqi: ${win[1]}cqi`);
|
|
37141
|
+
continue;
|
|
37142
|
+
}
|
|
37143
|
+
const cq = OTHER_CQ_UNIT.exec(v);
|
|
37144
|
+
if (cq) {
|
|
37145
|
+
say(FreeIssueCode.Style, prop, `"${cq[0]}" — a size relative to the width is cqi only: ${cq[1]}cqi`);
|
|
37146
|
+
continue;
|
|
37147
|
+
}
|
|
37148
|
+
if (LITERAL_COLOUR.test(v) || (kind === 'color' && NAMED_COLOUR.test(v))) {
|
|
37149
|
+
say(FreeIssueCode.Token, prop, 'a literal colour — colours are the look\'s tokens: var(--iox-<colour token>)');
|
|
37150
|
+
continue;
|
|
37151
|
+
}
|
|
37152
|
+
if (!kind)
|
|
37153
|
+
continue;
|
|
37154
|
+
const named = tokensIn(v);
|
|
37155
|
+
const plain = TOKEN_PLAIN[kind].includes(v);
|
|
37156
|
+
const mixed = kind === 'color' && COLOUR_MIX.test(v);
|
|
37157
|
+
if (!plain && !mixed && !(named.length === 1 && v === `var(--iox-${named[0]})`)) {
|
|
37158
|
+
const words = TOKEN_PLAIN[kind].length ? ` or ${TOKEN_PLAIN[kind].join(' / ')}` : '';
|
|
37159
|
+
say(FreeIssueCode.Token, prop, `the look owns this — var(--iox-<${kind} token>)${words}${kind === 'color' ? ', or color-mix(in oklab, var(--iox-…) N%, transparent)' : ''}`);
|
|
37160
|
+
continue;
|
|
37161
|
+
}
|
|
37162
|
+
for (const name of named) {
|
|
37163
|
+
const type = types.get(name);
|
|
37164
|
+
const fits = kind === 'color' ? COLOUR_TYPES.includes(type ?? '') : type === kind;
|
|
37165
|
+
if (!fits)
|
|
37166
|
+
say(FreeIssueCode.Token, prop, `--iox-${name} is ${type ? `a ${type} token` : 'not a token of this look'} — a ${kind} token belongs here`);
|
|
37167
|
+
}
|
|
37168
|
+
}
|
|
37169
|
+
return out;
|
|
37170
|
+
}
|
|
37171
|
+
/** Every reason a free page may not be stamped (gate 1), contrast included (gate 2's tree half). */
|
|
37172
|
+
function checkFree(page, ctx) {
|
|
37173
|
+
return judgeFree(page, ctx, false);
|
|
37174
|
+
}
|
|
37175
|
+
/**
|
|
37176
|
+
* FS-D19 Basic: ONE free signature section on a page otherwise made of the plan's ready-made sections. The answer is a
|
|
37177
|
+
* free page holding one Section; it is judged in its place (`at`) among the plan's sections — so the page rules hold
|
|
37178
|
+
* for the page as the visitor sees it (a ready-made opening carries the h1 and the lead, a ready-made close the action;
|
|
37179
|
+
* the section count is the plan's) — and every issue is said against the answer (`sections[0]…`), for its one repair.
|
|
37180
|
+
*/
|
|
37181
|
+
function checkFreeSection(answer, ctx, place) {
|
|
37182
|
+
const sections = Array.isArray(answer?.sections) ? answer.sections : [];
|
|
37183
|
+
if (sections.length !== 1 || place.at < 0 || place.at >= place.plan.length) {
|
|
37184
|
+
return [{ code: FreeIssueCode.Structure, path: 'sections', message: `a signature section is ONE Section (this answer has ${sections.length})` }];
|
|
37185
|
+
}
|
|
37186
|
+
const page = freeSignaturePage(answer, place.plan, place.at);
|
|
37187
|
+
const here = `sections[${place.at}]`;
|
|
37188
|
+
return judgeFree(page, ctx, true).map(i => ({ ...i, path: i.path === here || i.path.startsWith(`${here}.`) ? `sections[0]${i.path.slice(here.length)}` : i.path }));
|
|
37189
|
+
}
|
|
37190
|
+
/** The page a signature section stands in: the plan's ready-made sections, the free one at `at` in place of that one. */
|
|
37191
|
+
function freeSignaturePage(answer, plan, at) {
|
|
37192
|
+
return {
|
|
37193
|
+
...answer,
|
|
37194
|
+
sections: plan.map((p, i) => (i === at ? answer.sections[0] : { id: `ready-${i}`, type: FreeNodeType.Section, styleProps: {}, readyMade: { at: i, pattern: p.pattern } })),
|
|
37195
|
+
};
|
|
37196
|
+
}
|
|
37197
|
+
function judgeFree(page, ctx, signature) {
|
|
37198
|
+
const issues = [];
|
|
37199
|
+
const say = (code, path, message) => issues.push({ code, path, message });
|
|
37200
|
+
const sections = Array.isArray(page?.sections) ? page.sections : [];
|
|
37201
|
+
if (!signature && (sections.length < FREE_SECTIONS.min || sections.length > FREE_SECTIONS.max))
|
|
37202
|
+
say(FreeIssueCode.Structure, 'sections', `a page is ${FREE_SECTIONS.min} to ${FREE_SECTIONS.max} sections (this one has ${sections.length})`);
|
|
37203
|
+
const ready = (i) => !!sections[i]?.readyMade;
|
|
37204
|
+
const walked = walkFree(sections).filter(w => !ready(w.section));
|
|
37205
|
+
const ids = new Set(walkFree(sections).map(w => w.node.id));
|
|
37206
|
+
const seen = new Set();
|
|
37207
|
+
const texts = [];
|
|
37208
|
+
let h1 = 0;
|
|
37209
|
+
for (const { node, path, up } of walked) {
|
|
37210
|
+
if (!Object.values(FreeNodeType).includes(node.type)) {
|
|
37211
|
+
say(FreeIssueCode.Structure, path, `"${node.type}" is not a node type — ${Object.values(FreeNodeType).join(', ')}`);
|
|
37212
|
+
continue;
|
|
37213
|
+
}
|
|
37214
|
+
if (!node.id || seen.has(node.id))
|
|
37215
|
+
say(FreeIssueCode.Structure, path, node.id ? `the id "${node.id}" is used twice` : 'every node needs its own id');
|
|
37216
|
+
seen.add(node.id);
|
|
37217
|
+
if ((node.type === FreeNodeType.Section) !== (up.length === 0))
|
|
37218
|
+
say(FreeIssueCode.Structure, path, up.length ? 'a Section sits at the top of the page only — use a Container inside' : 'the top of the page holds Sections only');
|
|
37219
|
+
if (node.type === FreeNodeType.Section && !Object.values(FreePurpose).includes(node.purpose))
|
|
37220
|
+
say(FreeIssueCode.Structure, path, `a section says what it is for — purpose: ${Object.values(FreePurpose).join(' | ')}`);
|
|
37221
|
+
if (node.children?.length && !FREE_HOLDERS.includes(node.type))
|
|
37222
|
+
say(FreeIssueCode.Structure, path, `a ${node.type} holds no children`);
|
|
37223
|
+
const styles = FREE_ELEMENT_STYLES[node.type] ?? [];
|
|
37224
|
+
if (node.elementStyle && !styles.includes(node.elementStyle))
|
|
37225
|
+
say(FreeIssueCode.Words, `${path}.elementStyle`, styles.length ? `"${node.elementStyle}" is not a style a ${node.type} wears — ${styles.join(', ')}` : `a ${node.type} wears no element style`);
|
|
37226
|
+
if (FREE_WORD_TYPES.includes(node.type)) {
|
|
37227
|
+
if (!String(node.text ?? '').trim())
|
|
37228
|
+
say(FreeIssueCode.Words, `${path}.text`, 'its words are missing');
|
|
37229
|
+
else
|
|
37230
|
+
texts.push({ path: `${path}.text`, text: String(node.text) });
|
|
37231
|
+
if (!node.elementStyle)
|
|
37232
|
+
say(FreeIssueCode.Words, `${path}.elementStyle`, `a ${node.type} wears one of the look's element styles (${styles.join(', ')}) and changes what it needs on top`);
|
|
37233
|
+
if (node.type === FreeNodeType.Heading) {
|
|
37234
|
+
if (!Number.isInteger(node.level) || node.level < 1 || node.level > 4)
|
|
37235
|
+
say(FreeIssueCode.Words, `${path}.level`, 'a Heading is level 1 to 4');
|
|
37236
|
+
if (node.level === 1)
|
|
37237
|
+
h1++;
|
|
37238
|
+
}
|
|
37239
|
+
if (node.type === FreeNodeType.Button && !ctx.pages.includes(node.href ?? '') && !(ANCHOR.test(node.href ?? '') && ids.has(node.href.slice(1)))) {
|
|
37240
|
+
say(FreeIssueCode.Content, `${path}.href`, `a button goes to a page of this site (${ctx.pages.join(', ')}) or to a section of this page (#id)`);
|
|
37241
|
+
}
|
|
37242
|
+
}
|
|
37243
|
+
if (node.role && (node.role !== FREE_LEAD_ROLE || node.type !== FreeNodeType.Heading))
|
|
37244
|
+
say(FreeIssueCode.Structure, `${path}.role`, 'role "lead" is for the heading a visitor reads first');
|
|
37245
|
+
if (node.type === FreeNodeType.Image || node.type === FreeNodeType.Video) {
|
|
37246
|
+
const m = ctx.material[node.src ?? ''];
|
|
37247
|
+
if (!m)
|
|
37248
|
+
say(FreeIssueCode.Content, `${path}.src`, `"${node.src ?? ''}" is not in the material — use an id from the list`);
|
|
37249
|
+
else if ((node.type === FreeNodeType.Video) !== (m.kind === 'video'))
|
|
37250
|
+
say(FreeIssueCode.Content, `${path}.src`, `"${node.src}" is a${m.kind === 'image' ? 'n image' : ' video'} — ${node.type === FreeNodeType.Video ? 'a Video plays a video' : 'an Image shows a picture'}`);
|
|
37251
|
+
}
|
|
37252
|
+
if (node.type === FreeNodeType.Slot) {
|
|
37253
|
+
const offer = ctx.slots?.[node.slot ?? ''];
|
|
37254
|
+
if (!offer)
|
|
37255
|
+
say(FreeIssueCode.Content, `${path}.slot`, `"${node.slot ?? ''}" is not a part this page may place — ${Object.keys(ctx.slots ?? {}).join(', ') || 'none'}`);
|
|
37256
|
+
else
|
|
37257
|
+
for (const [k, o] of (node.opts ?? []).entries())
|
|
37258
|
+
if (!(offer.opts ?? []).includes(o))
|
|
37259
|
+
say(FreeIssueCode.Content, `${path}.opts[${k}]`, `"${o}" is not how this part may show — ${(offer.opts ?? []).join(', ') || 'no options'}`);
|
|
37260
|
+
}
|
|
37261
|
+
else if (node.slot || node.opts?.length)
|
|
37262
|
+
say(FreeIssueCode.Structure, path, 'only a Slot places a part');
|
|
37263
|
+
// styles, layer by layer
|
|
37264
|
+
issues.push(...freeStyleIssues(node.styleProps, `${path}.styleProps`, ctx));
|
|
37265
|
+
for (const [bp, style] of Object.entries(node.responsive ?? {})) {
|
|
37266
|
+
if (!Object.values(FreeLayer).includes(bp)) {
|
|
37267
|
+
say(FreeIssueCode.Style, `${path}.responsive.${bp}`, `not a width — ${Object.values(FreeLayer).join(', ')}`);
|
|
37268
|
+
continue;
|
|
37269
|
+
}
|
|
37270
|
+
issues.push(...freeStyleIssues(style, `${path}.responsive.${bp}`, ctx));
|
|
37271
|
+
}
|
|
37272
|
+
for (const prop of Object.keys(node.hover ?? {}))
|
|
37273
|
+
if (!FREE_HOVER_PROPS.includes(prop))
|
|
37274
|
+
say(FreeIssueCode.Style, `${path}.hover.${prop}`, `a hover changes position, scale, turn, opacity or a colour token only (${FREE_HOVER_PROPS.join(', ')}) — never layout`);
|
|
37275
|
+
issues.push(...freeStyleIssues(Object.fromEntries(Object.entries(node.hover ?? {}).filter(([p]) => FREE_HOVER_PROPS.includes(p))), `${path}.hover`, ctx));
|
|
37276
|
+
// the one move
|
|
37277
|
+
if (node.move) {
|
|
37278
|
+
const spec = FREE_MOVES[node.move.trigger]?.[node.move.action];
|
|
37279
|
+
if (!spec)
|
|
37280
|
+
say(FreeIssueCode.Motion, `${path}.move`, `under ${node.move.trigger} one of: ${Object.keys(FREE_MOVES[node.move.trigger] ?? {}).join(', ')}`);
|
|
37281
|
+
else {
|
|
37282
|
+
const value = spec.param ? node.move.params?.[spec.param] : undefined;
|
|
37283
|
+
if (spec.param && value !== undefined && !spec.values?.includes(value))
|
|
37284
|
+
say(FreeIssueCode.Motion, `${path}.move`, `${spec.param} is one of ${spec.values?.join(', ')}`);
|
|
37285
|
+
if (node.move.action === 'revealText' && node.type !== FreeNodeType.Heading && node.type !== FreeNodeType.Text)
|
|
37286
|
+
say(FreeIssueCode.Motion, `${path}.move`, 'revealText lights words — on a Heading or a Text');
|
|
37287
|
+
if (node.move.action === 'countUp' && !A_NUMBER.test(String(node.text ?? '').trim()))
|
|
37288
|
+
say(FreeIssueCode.Motion, `${path}.move`, 'countUp counts a number — on a Heading or Text whose words ARE a number the owner gave');
|
|
37289
|
+
if (node.move.trigger === FreeTrigger.Scroll && up.length === 0)
|
|
37290
|
+
say(FreeIssueCode.Motion, `${path}.move`, 'a whole section never travels with the scroll — move a layer inside it');
|
|
37291
|
+
}
|
|
37292
|
+
}
|
|
37293
|
+
// the phone: anything a 390px screen cannot hold as written needs its own layer
|
|
37294
|
+
const base = node.styleProps ?? {};
|
|
37295
|
+
const needs = [];
|
|
37296
|
+
if (base['gridTemplateColumns'] && columnsOf(base['gridTemplateColumns']) >= 2)
|
|
37297
|
+
needs.push('its columns');
|
|
37298
|
+
if (base['position'] === 'absolute')
|
|
37299
|
+
needs.push('its absolute place');
|
|
37300
|
+
if ((px(base['width']) ?? 0) > FREE_PHONE_LIMITS.width || (px(base['minWidth']) ?? 0) > FREE_PHONE_LIMITS.width)
|
|
37301
|
+
needs.push('its fixed width');
|
|
37302
|
+
if ((px(base['fontSize']) ?? 0) > FREE_PHONE_LIMITS.fontSize)
|
|
37303
|
+
needs.push('its type size (or write it as clamp(min, cqi, max))');
|
|
37304
|
+
if (base['rotate'] && FREE_WORD_TYPES.includes(node.type) && Math.abs(parseFloat(base['rotate'])) > FREE_PHONE_LIMITS.turn)
|
|
37305
|
+
needs.push('its turn');
|
|
37306
|
+
if (needs.length && !hasPhoneLayer(node))
|
|
37307
|
+
say(FreeIssueCode.Phone, `${path}.responsive`, `needs a phone layer for ${needs.join(', ')}`);
|
|
37308
|
+
}
|
|
37309
|
+
// facts: the ONE judge, numbers included (R-H6)
|
|
37310
|
+
for (const i of factIssues(texts, { avoidWords: ctx.avoidWords ?? [], facts: ctx.facts, known: ctx.known, numbers: true, quotes: true }))
|
|
37311
|
+
say(FreeIssueCode.Content, i.path, i.message);
|
|
37312
|
+
// the page
|
|
37313
|
+
const openingReady = ready(0);
|
|
37314
|
+
if (openingReady ? h1 !== 0 : h1 !== 1)
|
|
37315
|
+
say(FreeIssueCode.Structure, 'sections', openingReady ? 'the opening carries the page\'s level-1 heading — use level 2 or lower' : `a page has exactly one Heading of level 1 (this one has ${h1})`);
|
|
37316
|
+
if (sections[0] && !openingReady && !walkFree([sections[0]]).some(w => w.node.role === FREE_LEAD_ROLE))
|
|
37317
|
+
say(FreeIssueCode.Structure, 'sections[0]', 'the first section names its lead — role "lead" on the heading a visitor reads first');
|
|
37318
|
+
sections.forEach((s, i) => {
|
|
37319
|
+
if (!ready(i) && !walkFree([s]).some(w => hasPhoneLayer(w.node)))
|
|
37320
|
+
say(FreeIssueCode.Phone, `sections[${i}]`, 'a phone layout is required — at least one node of every section carries a phone layer');
|
|
37321
|
+
});
|
|
37322
|
+
const last = sections.length - 1;
|
|
37323
|
+
if (last >= 0 && !ready(last) && !walkFree([sections[last]]).some(w => w.node.type === FreeNodeType.Button))
|
|
37324
|
+
say(FreeIssueCode.Structure, `sections[${last}]`, 'the page ends on something to do — a Button in the last section');
|
|
37325
|
+
const hasVideos = Object.values(ctx.material).some(m => m.kind === 'video');
|
|
37326
|
+
if (ctx.home && hasVideos && !sections.some(s => s.readyMade) && !walked.some(w => w.node.type === FreeNodeType.Video))
|
|
37327
|
+
say(FreeIssueCode.Content, 'sections', 'this business has videos — the home page plays at least one (a Video node)');
|
|
37328
|
+
if (!Object.values(FreePictures).includes(page?.pictures))
|
|
37329
|
+
say(FreeIssueCode.Structure, 'pictures', `one word: ${Object.values(FreePictures).join(', ')}`);
|
|
37330
|
+
issues.push(...followedIssues(page, ctx));
|
|
37331
|
+
issues.push(...freeContrastIssues(page, ctx));
|
|
37332
|
+
return issues;
|
|
37333
|
+
}
|
|
37334
|
+
/**
|
|
37335
|
+
* THE OWNER'S PROMPT LEADS (§11.4a, R-H17): the followed line is there, and — when the reading took words from the prompt
|
|
37336
|
+
* — it quotes at least one AS WRITTEN. Never a judgement of taste.
|
|
37337
|
+
*/
|
|
37338
|
+
function followedIssues(page, ctx) {
|
|
37339
|
+
const line = String(page?.read?.followed ?? '').trim();
|
|
37340
|
+
if (!line)
|
|
37341
|
+
return [{ code: FreeIssueCode.Prompt, path: 'read.followed', message: 'say in one line the owner can read which of their words this page followed' }];
|
|
37342
|
+
const said = (ctx.said ?? []).map(w => String(w).trim()).filter(Boolean);
|
|
37343
|
+
const lower = line.toLowerCase();
|
|
37344
|
+
if (said.length && !said.some(w => lower.includes(w.toLowerCase()))) {
|
|
37345
|
+
return [{ code: FreeIssueCode.Prompt, path: 'read.followed', message: `the line names none of the owner's own words — quote at least one as they wrote it (${said.slice(0, 6).join(', ')})` }];
|
|
37346
|
+
}
|
|
37347
|
+
return [];
|
|
37348
|
+
}
|
|
37349
|
+
/** The token a node's words are painted in: its own colour, else its element style's; `inherit` reads up the tree. */
|
|
37350
|
+
function inkOf(node, up) {
|
|
37351
|
+
for (const n of [node, ...[...up].reverse()]) {
|
|
37352
|
+
const v = n.styleProps?.['color'] ?? elementStyleById(n.elementStyle)?.base['color'];
|
|
37353
|
+
if (v === undefined || v === 'inherit' || v === 'currentColor')
|
|
37354
|
+
continue;
|
|
37355
|
+
return oneToken(v);
|
|
37356
|
+
}
|
|
37357
|
+
return 'text';
|
|
37358
|
+
}
|
|
37359
|
+
/**
|
|
37360
|
+
* The tokens a node's words may sit on, nearest first: its own ground, then each ancestor's, then the page's. `null` in
|
|
37361
|
+
* the list is a ground that is no single token (a colour-mix): nothing past it can be judged from tokens.
|
|
37362
|
+
*/
|
|
37363
|
+
function groundsOf(node, up) {
|
|
37364
|
+
const out = [];
|
|
37365
|
+
for (const n of [node, ...[...up].reverse()]) {
|
|
37366
|
+
const v = n.styleProps?.['backgroundColor'] ?? elementStyleById(n.elementStyle)?.base['backgroundColor'];
|
|
37367
|
+
if (v === undefined || v === 'transparent')
|
|
37368
|
+
continue;
|
|
37369
|
+
out.push(oneToken(v) ?? null);
|
|
37370
|
+
}
|
|
37371
|
+
return [...out, PAGE_GROUND];
|
|
37372
|
+
}
|
|
37373
|
+
/** A resolved ground that paints nothing (`transparent`, an alpha of 0) lets the one behind it show. */
|
|
37374
|
+
const CLEAR = /^(transparent|rgba?\([^)]*,\s*0(\.0+)?\s*\)|#[0-9a-f]{6}00)$/i;
|
|
37375
|
+
/** The hex the words sit on in one mode, or null when it cannot be told from tokens (left to the real pixels). */
|
|
37376
|
+
function groundHex(grounds, values) {
|
|
37377
|
+
for (const token of grounds) {
|
|
37378
|
+
if (token === null)
|
|
37379
|
+
return null;
|
|
37380
|
+
const value = String(values[token] ?? '').trim();
|
|
37381
|
+
if (CLEAR.test(value))
|
|
37382
|
+
continue;
|
|
37383
|
+
return parseHexColor(value) ? { token, hex: value } : null;
|
|
37384
|
+
}
|
|
37385
|
+
return null;
|
|
37386
|
+
}
|
|
37387
|
+
/**
|
|
37388
|
+
* THE TREE PAIR CHECK (R-H12, gate 2's tree half — `auditDesignContrast` judges the look, not a tree): each Heading's and
|
|
37389
|
+
* Text's ink token against the ground token of the nearest painted node, resolved in every mode the site shows, AA
|
|
37390
|
+
* (4.5, 3 for display / h1 / h2). A pair that is not two hex tokens (a colour-mix, a picture behind) is left to the
|
|
37391
|
+
* real-pixel check. A Button paints its own pair through its element style, which the look's audit already covers.
|
|
37392
|
+
*/
|
|
37393
|
+
function freeContrastIssues(page, ctx) {
|
|
37394
|
+
const out = [];
|
|
37395
|
+
const resolved = (ctx.modes?.length ? ctx.modes : ['light']).map(mode => ({ mode, values: resolveTokenValues(ctx.tokens, mode) }));
|
|
37396
|
+
for (const { node, path, up, section } of walkFree(page?.sections ?? [])) {
|
|
37397
|
+
if (page.sections[section]?.readyMade)
|
|
37398
|
+
continue;
|
|
37399
|
+
if (node.type !== FreeNodeType.Heading && node.type !== FreeNodeType.Text)
|
|
37400
|
+
continue;
|
|
37401
|
+
const ink = inkOf(node, up);
|
|
37402
|
+
if (!ink)
|
|
37403
|
+
continue;
|
|
37404
|
+
const grounds = groundsOf(node, up);
|
|
37405
|
+
const need = LARGE_STYLES.includes(node.elementStyle ?? '') ? FREE_CONTRAST.large : FREE_CONTRAST.text;
|
|
37406
|
+
for (const { mode, values } of resolved) {
|
|
37407
|
+
const a = values[ink];
|
|
37408
|
+
const ground = groundHex(grounds, values);
|
|
37409
|
+
if (!a || !ground || !parseHexColor(a))
|
|
37410
|
+
continue;
|
|
37411
|
+
const ratio = wcagContrastRatio(a, ground.hex);
|
|
37412
|
+
if (ratio < need) {
|
|
37413
|
+
out.push({ code: FreeIssueCode.Contrast, path: `${path}.styleProps.color`, message: `--iox-${ink} on --iox-${ground.token} is ${ratio.toFixed(1)}:1 in ${mode} (needs ${need}) — another colour token for the words or the ground` });
|
|
37414
|
+
break;
|
|
37415
|
+
}
|
|
37416
|
+
}
|
|
37417
|
+
}
|
|
37418
|
+
return out;
|
|
37419
|
+
}
|
|
37420
|
+
|
|
37421
|
+
/**
|
|
37422
|
+
* WHAT THE OWNER'S PROMPT RULED OUT, AS A READY-MADE SECTION CAN BREAK IT (award plan FS-D47, R-H20). The reading keeps
|
|
37423
|
+
* the owner's refused and asked words as they wrote them (§11.4a); a ready-made section can only break the few of them
|
|
37424
|
+
* that a pattern decides by its parts — pictures, a video, motion. Those are read here, in English and Hebrew, from the
|
|
37425
|
+
* reading's own lists (never guessed from taste words), and judged against a plan section's pattern as it would be
|
|
37426
|
+
* stamped (its `without` parts left out). The fall back picks only among sections that honour them; when it cannot, the
|
|
37427
|
+
* followed line SAYS which of the owner's words the page no longer follows. Pure.
|
|
37428
|
+
*/
|
|
37429
|
+
var PromptLimit;
|
|
37430
|
+
(function (PromptLimit) {
|
|
37431
|
+
/** "no pictures", "only the names", "mostly words". */
|
|
37432
|
+
PromptLimit["NoPictures"] = "no-pictures";
|
|
37433
|
+
PromptLimit["NoVideo"] = "no-video";
|
|
37434
|
+
/** "nothing moving", "no animation". */
|
|
37435
|
+
PromptLimit["NoMotion"] = "no-motion";
|
|
37436
|
+
})(PromptLimit || (PromptLimit = {}));
|
|
37437
|
+
/** A refused entry that IS one of these words rules the thing out ("pictures"; never "stock photos", which refuses stock). */
|
|
37438
|
+
const REFUSED_WORDS = {
|
|
37439
|
+
[PromptLimit.NoPictures]: ['pictures', 'photos', 'photographs', 'images', 'תמונות', 'צילומים'],
|
|
37440
|
+
[PromptLimit.NoVideo]: ['video', 'videos', 'film', 'films', 'וידאו', 'סרטון', 'סרטונים'],
|
|
37441
|
+
[PromptLimit.NoMotion]: ['motion', 'animation', 'animations', 'movement', 'תנועה', 'אנימציה', 'אנימציות'],
|
|
37442
|
+
};
|
|
37443
|
+
/** A phrase that rules the thing out wherever the reading kept it (asked, said or refused). */
|
|
37444
|
+
const RULING_PHRASES = {
|
|
37445
|
+
[PromptLimit.NoPictures]: ['no pictures', 'no photos', 'no images', 'without pictures', 'without photos', 'mostly words', 'only words', 'just words', 'בלי תמונות', 'ללא תמונות', 'רק מילים', 'בלי צילומים'],
|
|
37446
|
+
[PromptLimit.NoVideo]: ['no video', 'no videos', 'without video', 'בלי וידאו', 'בלי סרטונים', 'ללא וידאו', 'ללא סרטונים'],
|
|
37447
|
+
[PromptLimit.NoMotion]: ['no motion', 'no animation', 'no animations', 'nothing moving', 'without motion', 'בלי תנועה', 'בלי אנימציה', 'בלי אנימציות', 'ללא תנועה'],
|
|
37448
|
+
};
|
|
37449
|
+
const plain = (s) => String(s ?? '').normalize('NFKC').toLowerCase().replace(/^(any|no|בלי|ללא)\s+/, '').trim();
|
|
37450
|
+
/** What the owner's words rule out that a ready-made section could break. */
|
|
37451
|
+
function promptLimitsOf(reading) {
|
|
37452
|
+
const refused = (reading?.refused ?? []).map(plain);
|
|
37453
|
+
const all = [...(reading?.refused ?? []), ...(reading?.asked ?? []), ...(reading?.said ?? [])].map(s => String(s ?? ''));
|
|
37454
|
+
return Object.values(PromptLimit).filter(limit => refused.some(r => REFUSED_WORDS[limit].includes(r))
|
|
37455
|
+
|| RULING_PHRASES[limit].some(phrase => all.some(text => wordPattern(phrase).test(text.normalize('NFKC').toLowerCase()))));
|
|
37456
|
+
}
|
|
37457
|
+
const PICTURE_TYPES = ['Image', 'Gallery'];
|
|
37458
|
+
const CARD_RECIPE = 'card';
|
|
37459
|
+
const CARD_MEDIA = 'media';
|
|
37460
|
+
const IMAGE_BIND = 'image';
|
|
37461
|
+
function shows(node, without, out) {
|
|
37462
|
+
if (node.optional && without.has(node.optional))
|
|
37463
|
+
return;
|
|
37464
|
+
// a picture node, or a recipe that draws one: a card keeps its media part unless switched off, a bound image
|
|
37465
|
+
if (PICTURE_TYPES.includes(node.t) || (node.recipe === CARD_RECIPE && node.parts?.[CARD_MEDIA] !== false) || node.binds?.[IMAGE_BIND])
|
|
37466
|
+
out.add(PromptLimit.NoPictures);
|
|
37467
|
+
if (node.t === 'Video')
|
|
37468
|
+
out.add(PromptLimit.NoVideo);
|
|
37469
|
+
if (node.tracks?.length)
|
|
37470
|
+
out.add(PromptLimit.NoMotion);
|
|
37471
|
+
for (const child of node.c ?? [])
|
|
37472
|
+
shows(child, without, out);
|
|
37473
|
+
}
|
|
37474
|
+
/** The owner's limits a plan section would break, stamped as planned (an unknown pattern breaks none it can be judged on). */
|
|
37475
|
+
function sectionBreaks(section, limits) {
|
|
37476
|
+
const pattern = patternById(section.pattern);
|
|
37477
|
+
if (!pattern || !limits.length)
|
|
37478
|
+
return [];
|
|
37479
|
+
const found = new Set();
|
|
37480
|
+
if (pattern.scene || pattern.film)
|
|
37481
|
+
found.add(PromptLimit.NoMotion);
|
|
37482
|
+
shows(pattern.node, new Set(section.without ?? []), found);
|
|
37483
|
+
return limits.filter(l => found.has(l));
|
|
37484
|
+
}
|
|
37485
|
+
/** One sentence per limit broken, in the site's language: n sections are ready-made and do what the owner ruled out. */
|
|
37486
|
+
const UNFOLLOWED = {
|
|
37487
|
+
en: {
|
|
37488
|
+
[PromptLimit.NoPictures]: n => `${n === 1 ? 'One section is' : `${n} sections are`} ready-made and ${n === 1 ? 'shows' : 'show'} pictures, which you asked to leave out.`,
|
|
37489
|
+
[PromptLimit.NoVideo]: n => `${n === 1 ? 'One section is' : `${n} sections are`} ready-made and ${n === 1 ? 'plays a video' : 'play videos'}, which you asked to leave out.`,
|
|
37490
|
+
[PromptLimit.NoMotion]: n => `${n === 1 ? 'One section is' : `${n} sections are`} ready-made and ${n === 1 ? 'moves' : 'move'} as the page scrolls, which you asked to leave out.`,
|
|
37491
|
+
},
|
|
37492
|
+
he: {
|
|
37493
|
+
[PromptLimit.NoPictures]: n => `${n === 1 ? 'חלק אחד מוכן מראש ומציג' : `${n} חלקים מוכנים מראש ומציגים`} תמונות, אף שביקשת בלי תמונות.`,
|
|
37494
|
+
[PromptLimit.NoVideo]: n => `${n === 1 ? 'חלק אחד מוכן מראש ומציג סרטון' : `${n} חלקים מוכנים מראש ומציגים סרטונים`}, אף שביקשת בלי סרטונים.`,
|
|
37495
|
+
[PromptLimit.NoMotion]: n => `${n === 1 ? 'חלק אחד מוכן מראש וזז' : `${n} חלקים מוכנים מראש וזזים`} עם הגלילה, אף שביקשת בלי תנועה.`,
|
|
37496
|
+
},
|
|
37497
|
+
};
|
|
37498
|
+
/** The followed line after a fall back: the model's line, then what the page no longer follows (never a claim kept). */
|
|
37499
|
+
function followedAfter(line, broken, language) {
|
|
37500
|
+
const words = UNFOLLOWED[language === 'he' ? 'he' : 'en'];
|
|
37501
|
+
const said = Object.values(PromptLimit).filter(l => (broken.get(l) ?? 0) > 0).map(l => words[l](broken.get(l)));
|
|
37502
|
+
return [String(line ?? '').trim(), ...said].filter(Boolean).join(' ');
|
|
37503
|
+
}
|
|
37504
|
+
|
|
37505
|
+
/**
|
|
37506
|
+
* THE FREE PAGE'S SILENT FALL BACK (award plan §11.4 gate 6, R-H7): a free section that still breaks a rule after the
|
|
37507
|
+
* one repair is given to the plan's ready-made section for its place — through the ONE `fallBackBySection` (never a copy
|
|
37508
|
+
* of its rules: the opening and the close always swap, a middle section takes the best fit by list, form and words or is
|
|
37509
|
+
* dropped, a ready-made section that repeats a kept one is never a fit, and a page that still fails falls back whole).
|
|
37510
|
+
* This file only ADAPTS: a free section is read as the layout language's section (its words as layers, a list slot as
|
|
37511
|
+
* its gallery source, a form slot as a form) so the fit is scored the same way, and the judge it hands over re-runs
|
|
37512
|
+
* `checkFree` on the free page the swaps leave. Pure.
|
|
37513
|
+
*
|
|
37514
|
+
* FS-D47 / R-H20: given the owner's limits (`promptLimitsOf` the reading), the ready-made section is chosen against them
|
|
37515
|
+
* and the followed line is rewritten when one had to be used anyway.
|
|
37516
|
+
*/
|
|
37517
|
+
/** A free judge's issue code, in the layout language's codes (the fall back reads only paths and messages). */
|
|
37518
|
+
const FREE_TO_LAYOUT_CODE = {
|
|
37519
|
+
[FreeIssueCode.Structure]: LayoutIssueCode.Structure,
|
|
37520
|
+
[FreeIssueCode.Words]: LayoutIssueCode.Content,
|
|
37521
|
+
[FreeIssueCode.Style]: LayoutIssueCode.Look,
|
|
37522
|
+
[FreeIssueCode.Token]: LayoutIssueCode.Look,
|
|
37523
|
+
[FreeIssueCode.Phone]: LayoutIssueCode.Structure,
|
|
37524
|
+
[FreeIssueCode.Motion]: LayoutIssueCode.Motion,
|
|
37525
|
+
[FreeIssueCode.Content]: LayoutIssueCode.Content,
|
|
37526
|
+
[FreeIssueCode.Contrast]: LayoutIssueCode.Reading,
|
|
37527
|
+
[FreeIssueCode.Prompt]: LayoutIssueCode.Content,
|
|
37528
|
+
};
|
|
37529
|
+
const asLayoutIssue = (i) => ({ code: FREE_TO_LAYOUT_CODE[i.code], path: i.path, message: i.message });
|
|
37530
|
+
const WORD_LAYER = {
|
|
37531
|
+
[FreeNodeType.Heading]: LayoutLayerKind.Heading,
|
|
37532
|
+
[FreeNodeType.Text]: LayoutLayerKind.Text,
|
|
37533
|
+
[FreeNodeType.Button]: LayoutLayerKind.Button,
|
|
37534
|
+
};
|
|
37535
|
+
const AT = { col: [1, 1], row: [1, 1] };
|
|
37536
|
+
/** One free node as the layer the fall back's fit reads (words, a list's source, a form), or none. */
|
|
37537
|
+
function layerOf(node) {
|
|
37538
|
+
const word = WORD_LAYER[node.type];
|
|
37539
|
+
if (word)
|
|
37540
|
+
return { kind: word, text: node.text ?? '', ...AT };
|
|
37541
|
+
if (node.type === FreeNodeType.Image)
|
|
37542
|
+
return { kind: LayoutLayerKind.Photo, photo: { id: node.src ?? '' }, ...AT };
|
|
37543
|
+
if (node.type !== FreeNodeType.Slot)
|
|
37544
|
+
return null;
|
|
37545
|
+
const [kind, ref] = String(node.slot ?? '').split(':');
|
|
37546
|
+
if (kind === 'list')
|
|
37547
|
+
return { kind: LayoutLayerKind.Gallery, gallery: { slides: [], source: ref }, ...AT };
|
|
37548
|
+
if (kind === 'form')
|
|
37549
|
+
return { kind: LayoutLayerKind.Form, form: { preset: ref }, ...AT };
|
|
37550
|
+
return null;
|
|
37551
|
+
}
|
|
37552
|
+
/** A free section read as a layout section (for the fit only — never stamped). */
|
|
37553
|
+
function freeSectionAsLayout(section) {
|
|
37554
|
+
const layers = walkFree([section]).map(w => layerOf(w.node)).filter((l) => !!l);
|
|
37555
|
+
return { id: section.id, screens: 1, rows: 1, layers, ...(section.readyMade ? { readyMade: section.readyMade } : {}) };
|
|
37556
|
+
}
|
|
37557
|
+
/**
|
|
37558
|
+
* Give each free section the issues name to the plan's ready-made section, then judge once more. `plan` is the page's
|
|
37559
|
+
* ready-made sections (`PagePlan.sections`), in order; `issues` what `checkFree` still finds after the one repair.
|
|
37560
|
+
* With the owner's limits (FS-D47), the fall back first chooses only among sections that honour them — a middle place
|
|
37561
|
+
* nothing honest fits is dropped where the page's minimums allow; only when that fails is the closest section used, and
|
|
37562
|
+
* the followed line then says which of the owner's words the page no longer follows.
|
|
37563
|
+
*/
|
|
37564
|
+
function fallBackFree(page, plan, issues, ctx, prompt) {
|
|
37565
|
+
const limits = prompt?.limits ?? [];
|
|
37566
|
+
const lastAt = plan.length - 1;
|
|
37567
|
+
const honest = plan.map((_, i) => i).filter(i => i === 0 || i === lastAt || !sectionBreaks(plan[i], limits).length);
|
|
37568
|
+
const first = limits.length && honest.length < plan.length ? fallBackOn(page, plan, honest, issues, ctx) : null;
|
|
37569
|
+
const done = first && !first.lastResort ? first : fallBackOn(page, plan, plan.map((_, i) => i), issues, ctx);
|
|
37570
|
+
if (done.lastResort || !limits.length)
|
|
37571
|
+
return done;
|
|
37572
|
+
const broken = new Map();
|
|
37573
|
+
for (const s of done.page.sections) {
|
|
37574
|
+
if (s.readyMade)
|
|
37575
|
+
for (const l of sectionBreaks(plan[s.readyMade.at], limits))
|
|
37576
|
+
broken.set(l, (broken.get(l) ?? 0) + 1);
|
|
37577
|
+
}
|
|
37578
|
+
if (!broken.size)
|
|
37579
|
+
return done;
|
|
37580
|
+
return {
|
|
37581
|
+
...done,
|
|
37582
|
+
page: { ...done.page, read: { ...done.page.read, followed: followedAfter(done.page.read.followed, broken, prompt?.language) } },
|
|
37583
|
+
unfollowed: Object.fromEntries(broken),
|
|
37584
|
+
};
|
|
37585
|
+
}
|
|
37586
|
+
/** The ONE fall back over the plan sections `use` (by their index in `plan`); ready-made places name the FULL plan. */
|
|
37587
|
+
function fallBackOn(page, plan, use, issues, ctx) {
|
|
37588
|
+
const byId = new Map(page.sections.map(s => [s.id, s]));
|
|
37589
|
+
const real = (at) => use[at] ?? at;
|
|
37590
|
+
const toFree = (layout) => ({
|
|
37591
|
+
...page,
|
|
37592
|
+
sections: layout.sections.map(s => {
|
|
37593
|
+
const was = byId.get(s.id);
|
|
37594
|
+
return s.readyMade && !was.readyMade
|
|
37595
|
+
? { id: s.id, type: FreeNodeType.Section, styleProps: {}, readyMade: { at: real(s.readyMade.at), pattern: s.readyMade.pattern } }
|
|
37596
|
+
: was;
|
|
37597
|
+
}),
|
|
37598
|
+
});
|
|
37599
|
+
// A place already ready-made names the FULL plan; the fall back reads it against the plan it is given.
|
|
37600
|
+
const asGiven = (section) => {
|
|
37601
|
+
const layout = freeSectionAsLayout(section);
|
|
37602
|
+
return layout.readyMade ? { ...layout, readyMade: { ...layout.readyMade, at: use.indexOf(layout.readyMade.at) } } : layout;
|
|
37603
|
+
};
|
|
37604
|
+
let last = [...issues];
|
|
37605
|
+
const judged = fallBackBySection({ dial: 'distinct', sections: page.sections.map(asGiven) }, use.map(i => plan[i]), issues.map(asLayoutIssue), layout => {
|
|
37606
|
+
last = checkFree(toFree(layout), ctx);
|
|
37607
|
+
return { page: layout, issues: last.map(asLayoutIssue) };
|
|
37608
|
+
});
|
|
37609
|
+
return {
|
|
37610
|
+
page: toFree(judged.page),
|
|
37611
|
+
swaps: judged.swaps.map(w => (w.readyMade ? { ...w, readyMade: { ...w.readyMade, at: real(w.readyMade.at) } } : w)),
|
|
37612
|
+
left: judged.left.length ? last : [],
|
|
37613
|
+
...(judged.lastResort ? { lastResort: judged.lastResort } : {}),
|
|
37614
|
+
};
|
|
37615
|
+
}
|
|
37616
|
+
|
|
36633
37617
|
/**
|
|
36634
37618
|
* Where the composed pages' photos come from (M8-G2-D10 — the Plan step's Pictures line: "Your 4 photos go first · 8 from
|
|
36635
37619
|
* your photo library · 0 empty boxes"): every distinct photo id the plan's composed layouts name, by source. Pure.
|
|
@@ -37842,5 +38826,5 @@ function siteGlobalsOf(globals) {
|
|
|
37842
38826
|
* Generated bundle index. Do not edit.
|
|
37843
38827
|
*/
|
|
37844
38828
|
|
|
37845
|
-
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_LOOK, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_COMPOSED_PAGE_LEAN_TOKENS, AI_MODEL_STEPS, 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_RUNS_AS, 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, BASELINE_WORDS_HE, 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, FallbackOpeningKept, FilmUnplaced, FindingGrouping, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, FooterRole, 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_COLUMN_MENDED, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_OFFERED_AWARD, 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_FRAME_STYLE_KEYS, LIST_INGREDIENTS, LIST_ITEM_MIN_PX, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, LIST_SAY_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, ListPartChange, ListPartOutcome, ListSayCode, ListWordRefusal, 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_FINDING_WORDS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PAGE_MOVED_ASIDE, 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, START_QUOTE_STEPS, START_QUOTE_TOKENS, 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, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, TYPE_LED_KEPT, TYPE_LED_OPTIONAL_PARTS, TYPE_LED_SWAPS, TypeLedChangeKind, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiModelStep, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, bentoFill, bentoFillsParams, 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, carrySection, checkAdditions, checkBody, checkCarry, checkFooter, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, chooseTypeLedOpening, columnIssues, composablePage, composeContextOf, composeLayout, composeListFrame, 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, distinctFallbackSections, distinctFooter, distinctHeader, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, emptyPictures, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fallbackFingerprintOf, fallbackFingerprintOfPlanPage, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, 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, keepListParts, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, 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, listBelowPro, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listIngredientWords, listMeaning, listMixFromWords, listMixOfFrame, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listSaidSentence, listSentence, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRef, listWordRefs, listWordRefusal, listWordTier, 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, openingHarnessWord, openingIsTypeLed, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords$1 as openingWords, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, picturelessTypes, 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, readyMadeToken, 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, siteFactLabel, siteGlobalsOf, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typeLedLayoutSection, typeLedOpeningSection, typeLedOpeningWays, typeLedRound, typeLedSection, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, wornOpenings, writtenTexts };
|
|
38829
|
+
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_LOOK, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_COMPOSED_PAGE_LEAN_TOKENS, AI_MODEL_STEPS, 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_RUNS_AS, 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, BASELINE_WORDS_HE, 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, FREE_BUILDER_TYPE, FREE_CONTRAST, FREE_ELEMENT_STYLES, FREE_HOLDERS, FREE_HOVER_PROPS, FREE_LEAD_ROLE, FREE_MOVES, FREE_PHONE_LAYERS, FREE_PHONE_LIMITS, FREE_SECTIONS, FREE_STYLE_PROPS, FREE_TOKEN_PROPS, FREE_TO_LAYOUT_CODE, FREE_WIRE_NODE_KEYS, FREE_WORD_TYPES, FallbackOpeningKept, FilmUnplaced, FindingGrouping, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, FooterRole, FreeIssueCode, FreeLayer, FreeNodeType, FreePictures, FreePurpose, FreeTrigger, 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_COLUMN_MENDED, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_OFFERED_AWARD, 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_FRAME_STYLE_KEYS, LIST_INGREDIENTS, LIST_ITEM_MIN_PX, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, LIST_SAY_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, ListPartChange, ListPartOutcome, ListSayCode, ListWordRefusal, 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, PromptLimit, 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_FINDING_WORDS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PAGE_MOVED_ASIDE, 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, START_QUOTE_STEPS, START_QUOTE_TOKENS, 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, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, TYPE_LED_KEPT, TYPE_LED_OPTIONAL_PARTS, TYPE_LED_SWAPS, TypeLedChangeKind, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiModelStep, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, bentoFill, bentoFillsParams, 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, carrySection, checkAdditions, checkBody, checkCarry, checkFooter, checkFree, checkFreeSection, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, chooseTypeLedOpening, columnIssues, composablePage, composeContextOf, composeLayout, composeListFrame, 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, distinctFallbackSections, distinctFooter, distinctHeader, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, emptyPictures, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandFreeWire, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fallBackFree, fallbackFingerprintOf, fallbackFingerprintOfPlanPage, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, followedAfter, followedIssues, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, freeContrastIssues, freeMoveOf, freeMoveWord, freeMoveWords, freeSectionAsLayout, freeSignaturePage, freeStyleIssues, freeToWire, freeWireJsonSchema, freeWirePath, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, 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, keepListParts, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, 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, listBelowPro, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listIngredientWords, listMeaning, listMixFromWords, listMixOfFrame, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listSaidSentence, listSentence, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRef, listWordRefs, listWordRefusal, listWordTier, 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, openingHarnessWord, openingIsTypeLed, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords$1 as openingWords, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, picturelessTypes, 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, promptLimitsOf, publishRefusal, publishVerdict, quietMoveEntrance, quotesIn, readHeader, readOpening, readyMadeColumn, readyMadeToken, 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, sectionBreaks, 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, siteFactLabel, siteGlobalsOf, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typeLedLayoutSection, typeLedOpeningSection, typeLedOpeningWays, typeLedRound, typeLedSection, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkFree, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, withoutFreeOrphans, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, wornOpenings, writtenTexts };
|
|
37846
38830
|
//# sourceMappingURL=vectoriox-iox-ui-generation-core.mjs.map
|