@vectoriox/iox-ui 5.204.0 → 5.206.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/data-core/index.d.ts +13 -4
- package/design-core/index.d.ts +277 -6
- package/fesm2022/vectoriox-iox-ui-data-core.mjs +23 -4
- package/fesm2022/vectoriox-iox-ui-data-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +3065 -2673
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1313 -197
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +71 -19
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs +32 -4
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +145 -82
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +462 -41
- package/harness-core/index.d.ts +52 -12
- package/index.d.ts +44 -3
- package/package.json +1 -1
- package/scene-core/index.d.ts +16 -2
- package/src/data-core/placeholder-rows.ts +24 -3
- package/src/design-core/colour-eval.ts +22 -0
- package/src/design-core/contrast-audit.ts +96 -2
- package/src/design-core/design-token.model.ts +2 -0
- package/src/design-core/flavor-spec.generated.ts +184 -0
- package/src/design-core/font-metrics.ts +14 -1
- package/src/design-core/font-vertical.ts +80 -0
- package/src/design-core/node-links.ts +12 -0
- package/src/design-core/public-api.ts +1 -0
- package/src/design-core/style-presets.ts +20 -1
- package/src/design-core/token-css.ts +3 -1
- package/src/generation-core/ai-run.ts +31 -0
- package/src/generation-core/audit-site.ts +5 -3
- package/src/generation-core/compose-free.ts +1 -1
- package/src/generation-core/compose-layout.ts +172 -22
- package/src/generation-core/critic-calibration.ts +30 -10
- package/src/generation-core/critic-numbers.ts +259 -0
- package/src/generation-core/critic-prompt.ts +74 -6
- package/src/generation-core/critic-rubric.generated.ts +7 -7
- package/src/generation-core/critic-sheet.ts +184 -6
- package/src/generation-core/critic.ts +27 -13
- package/src/generation-core/designer-brief.ts +4 -3
- package/src/generation-core/designer-estimate.ts +3 -3
- package/src/generation-core/layout-render-check.ts +35 -2
- package/src/generation-core/nav-shape.ts +67 -8
- package/src/generation-core/opening-mix.ts +61 -17
- package/src/generation-core/public-api.ts +2 -0
- package/src/generation-core/social-links.ts +47 -8
- package/src/generation-core/stock-photos.ts +149 -14
- package/src/generation-core/stock-search.ts +108 -19
- package/src/generation-core/stock-subjects.ts +204 -0
- package/src/harness-core/business-types.ts +3 -0
- package/src/harness-core/harness-spec.generated.ts +54 -15
- package/src/harness-core/intake.ts +18 -5
- package/src/scene-core/scene.ts +34 -3
- package/styles/iox-design.css +41 -2
- package/styles/iox-forms.css +7 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { localeDirection, LocaleDirection, NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, elementStyleById, ownedTraitsOf, applyElementStyle, SPEC_AXES, QUIET_MOVE, QUIET_LEVELS, EntranceParam, staggerDelay, ScrubId, isScrubId, columnWordOf, contentWidthOf, stylePresetOfChoices, resolveDesignChoices, presetModes, STYLE_PRESETS, presetChoices, textWidthEm, elementStyleFace, toHexColor, relativeLuminance, sectionEdgeClass, SECTION_EDGE_TYPES, colorSchemeOf, planSectionShape, SectionShape as SectionShape$1, setSectionShape, sectionShapeOf as sectionShapeOf$1, setSectionEdge, resolveColourWords, resolveTokenValues, designTokenRows, parseCssColour, scrubOfChoices, parseHexColor, rgbToOklab, OpticalSize, FOOTER_MIX_PROP, SECTION_SHAPE_TRAIT, COLOR_SCHEME_TYPES, schemeOfGround, decomposeCssFunctions, FILTER_FUNCTIONS, schemeTokenResolver, wcagContrastRatio, LinkType, MenuShows, MenuTrait, menuDialogProps, menuShowsOf, MenuButtonKind, menuButtonOf, menuButtonProps, setColorScheme, LIST_MIX_PROP, ColorScheme, COLOR_SCHEMES, withSignatureMove, motionLanguageForPlan, headerInkOf, headerGroundOf, headerShapeOf, headerBrandOf, DEFAULT_MENU_LOOK, COLOR_SCHEME_TRAIT, colorSchemeClass, HeaderTrait, headerShapeFloats, HeaderShape, HeaderBrand, HeaderGround, headerGroundIsOver, headerGroundIsGlass, resolveSchemeTokenValues, menuFormOf, MenuForm, MenuPhoneForm, menuHoverOf, menuRevealOf, flavorPackById, ARRIVE_IDS, MOVE_IDS, PRELOADER_IDS, SCRUB_IDS, readDesignConfig, ANIMATE_IDS, renderedContrastFindings, auditDesignContrast, isDecorativeImage, compositeOver, HeaderBehaviour, headerBehaviourOf, headerEdgeOf, COLUMN_IDS, COLUMN_SETTING, ElementStyleState, LEAVE_SHARE } from '@vectoriox/iox-ui/design-core';
|
|
1
|
+
import { localeDirection, LocaleDirection, NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, elementStyleById, ownedTraitsOf, applyElementStyle, SPEC_AXES, QUIET_MOVE, QUIET_LEVELS, EntranceParam, staggerDelay, ScrubId, isScrubId, columnWordOf, contentWidthOf, stylePresetOfChoices, resolveDesignChoices, presetModes, STYLE_PRESETS, presetChoices, textWidthEm, elementStyleFace, toHexColor, relativeLuminance, sectionEdgeClass, SECTION_EDGE_TYPES, colorSchemeOf, planSectionShape, SectionShape as SectionShape$1, setSectionShape, sectionShapeOf as sectionShapeOf$1, setSectionEdge, resolveColourWords, resolveTokenValues, designTokenRows, parseCssColour, scrubOfChoices, parseHexColor, rgbToOklab, OpticalSize, FOOTER_MIX_PROP, SECTION_SHAPE_TRAIT, COLOR_SCHEME_TYPES, schemeOfGround, decomposeCssFunctions, FILTER_FUNCTIONS, schemeTokenResolver, wcagContrastRatio, LinkType, elementStyleDropCss, MenuShows, MenuTrait, menuDialogProps, menuShowsOf, MenuButtonKind, menuButtonOf, menuButtonProps, setColorScheme, LIST_MIX_PROP, ColorScheme, COLOR_SCHEMES, withSignatureMove, motionLanguageForPlan, headerInkOf, headerGroundOf, headerShapeOf, headerBrandOf, DEFAULT_MENU_LOOK, COLOR_SCHEME_TRAIT, colorSchemeClass, HeaderTrait, headerShapeFloats, HeaderShape, HeaderBrand, HeaderGround, headerGroundIsOver, headerGroundIsGlass, resolveSchemeTokenValues, menuFormOf, MenuForm, MenuPhoneForm, menuHoverOf, menuRevealOf, flavorPackById, ARRIVE_IDS, MOVE_IDS, PRELOADER_IDS, SCRUB_IDS, readDesignConfig, ANIMATE_IDS, renderedContrastFindings, auditDesignContrast, scrimLayerFindings, isDecorativeImage, compositeOver, HeaderBehaviour, headerBehaviourOf, headerEdgeOf, COLUMN_IDS, COLUMN_SETTING, ElementStyleState, LEAVE_SHARE } from '@vectoriox/iox-ui/design-core';
|
|
2
2
|
export { HeaderInk } from '@vectoriox/iox-ui/design-core';
|
|
3
3
|
import { SLIDER_TYPE, badgeToneOf, isAnyCompositeRoot, MarqueeRole, NO_ELEMENT_STYLE, PopupKind, PopupTrait, POPUP_KIND_MIX, PopupForm, popupWords, PopupArt, POPUP_BODY_MAX_CHARS, POPUP_TITLE_MAX_WORDS, buildPopupRecipe, findByRole, PopupRole, removeFromComposite, pickTabsAutoBinds, pickAccordionAutoBinds, ShopRole, AccountRole, CardPart, SceneRole, SLIDER_PLACEMENT_TRAIT, SliderPlacement, syncSliderParts, SliderRole, CardLayout, buildCardRecipe, CardRole, SHOP_RECIPES, ShopRecipe, bindShopPart, ShopBindTarget, MarqueeDirection, MarqueeSpeed, buildMarqueeRecipe, setMarqueeSettings, segmentedOptions, ITEM_OPEN_STATE, CARD_LAYOUTS, CARD_PARTS, BADGE_TONES, buildSegmentedRecipe, AccordionRole, buildAccordionRecipe, accordionWords, accordionItems, accordionQuestionOf, accordionAnswerOf, ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, buildTabsRecipe, tabsWords, tabsTriggers, tabLabelNodeOf, TABS_LABEL_BIND_PROP, tabsPanels, tabPanelTextOf, TABS_TEXT_BIND_PROP, tabPanelImageOf, tabsListOf, tabsPanelsOf, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, ACCOUNT_RECIPES, AccountRecipe, carouselQuoteLabel, buildCarouselRecipe, SLIDE_TYPE, buildLightboxRecipe, canOpenAtClickedItem, SLIDE_TO_ROW, CAROUSEL_QUOTE_LABELS, pickCarouselAutoBinds, buildSlideshowRecipe, LIGHTBOX_LABEL, setHeaderBehaviour, setHeaderInk, setHeaderGround, setHeaderShape, setHeaderBrand, ConsentActionType, buildConsentRecipe, PopupArrive, popupFormOf, buildReadingBarRecipe, buildDisclosureRecipe, buildCounterRecipe, TabsRole } from '@vectoriox/iox-ui/composite-core';
|
|
4
|
-
import { channelHref, ChannelKind, ControlType, FIELD_NODE_TYPE, FORM_NODE_TYPE, FormPresetId, FormAfterSend, FORM_AFTER_SEND_TRAIT, busyWord, channelWords, FORM_ACTIONS_ROLE, channelOpensNewTab,
|
|
4
|
+
import { channelHref, ChannelKind, FORM_CHANNEL_ROLE, parseChannelHref, ControlType, FIELD_NODE_TYPE, FORM_NODE_TYPE, FormPresetId, FormAfterSend, FORM_AFTER_SEND_TRAIT, busyWord, channelWords, FORM_ACTIONS_ROLE, channelOpensNewTab, formPresetById, presetFormActions, planFormPresetIds, collectFormSpec, isChannelFilled } from '@vectoriox/iox-ui/forms-core';
|
|
5
5
|
import { normalizeFrameSequence, filmScreensFor, VideoMode, VideoSource, FILM_PREPARED_PICTURES, FrameExtension } from '@vectoriox/iox-ui/media-core';
|
|
6
6
|
import { fitSeoText, SEO_TITLE_MAX, SEO_DESCRIPTION_MAX, SEO_ROBOTS_OPTIONS, SEO_ROBOTS_NOINDEX, redirectPath } from '@vectoriox/iox-ui/seo-core';
|
|
7
7
|
import { VARIANT_NAME_SEPARATOR, commerceLanguage, CommerceLanguage, CHECKOUT_GATE_RULES, labelIn, CheckoutGateCode } from '@vectoriox/iox-ui/commerce-core';
|
|
8
|
-
import { ParallaxDepth, parallaxShift, rangeDistance, ScrollRange, normalizeParallaxPhone, parallaxRest, rangeProgress, parallaxOffset, TextRevealBy, SCENE_LAND_TRIGGER, SceneRange, SceneProp, SceneRevealFrom, SceneEase, SCENE_TRACK_EASE, buildSceneRecipe, normalizeTracks } from '@vectoriox/iox-ui/scene-core';
|
|
8
|
+
import { ParallaxDepth, parallaxShift, rangeDistance, ScrollRange, normalizeParallaxPhone, parallaxRest, rangeProgress, parallaxOffset, TextRevealBy, SCENE_LAND_TRIGGER, SceneRange, SceneProp, SceneRevealFrom, SceneEase, SCENE_TRACK_EASE, mergeSceneTracks, buildSceneRecipe, normalizeTracks } from '@vectoriox/iox-ui/scene-core';
|
|
9
9
|
import { SCROLL_PROGRESS_TRIGGER, ELEMENT_ACTION_DESCRIPTORS, actionOfferedUnder, DISSOLVE_ACTION, resolveActionAvailability, POPUP_RULES, popupEnded, COUNT_UP_TRIGGERS, ENTRANCE_ACTION_TYPES, EXIT_ACTION_TYPES } from '@vectoriox/iox-ui/actions-core';
|
|
10
10
|
import { ConsentCategory } from '@vectoriox/iox-ui/consent-core';
|
|
11
11
|
import { isNumberedPlaceholderTitle } from '@vectoriox/iox-ui/data-core';
|
|
@@ -23955,7 +23955,7 @@ function layoutWireJsonSchema(options = {}) {
|
|
|
23955
23955
|
return closed$1({ ...page, sections: listOf$2(section, '4..8 sections') }, 'one composed page in the layout language');
|
|
23956
23956
|
}
|
|
23957
23957
|
const nonEmpty$3 = (v) => typeof v === 'string' && v.trim() !== '';
|
|
23958
|
-
const num = (v, fallback = 0) => (typeof v === 'number' && Number.isFinite(v) ? v : fallback);
|
|
23958
|
+
const num$1 = (v, fallback = 0) => (typeof v === 'number' && Number.isFinite(v) ? v : fallback);
|
|
23959
23959
|
const strings$1 = (v) => (Array.isArray(v) ? v.filter((x) => typeof x === 'string') : []);
|
|
23960
23960
|
function expandForm(l, preset) {
|
|
23961
23961
|
const form = { preset: preset };
|
|
@@ -23983,7 +23983,7 @@ function expandGallery(l, flags, variant) {
|
|
|
23983
23983
|
};
|
|
23984
23984
|
if (GALLERY_EFFECTS.includes(variant))
|
|
23985
23985
|
gallery.effect = variant;
|
|
23986
|
-
const perView = num(l['perView']);
|
|
23986
|
+
const perView = num$1(l['perView']);
|
|
23987
23987
|
if (perView > 0)
|
|
23988
23988
|
gallery.perView = perView;
|
|
23989
23989
|
for (const f of ['centered', 'freeMode', 'loop', 'drift', 'scroll'])
|
|
@@ -24058,12 +24058,12 @@ function listMixToWire(mix, source) {
|
|
|
24058
24058
|
return { mix: listMixWords(mix), parts: mix.parts.map(r => `${source}${PART_SEPARATOR}${r}`) };
|
|
24059
24059
|
}
|
|
24060
24060
|
function expandTrack(t) {
|
|
24061
|
-
const v = Array.isArray(t['values']) ? t['values'].map(x => num(x)) : [];
|
|
24061
|
+
const v = Array.isArray(t['values']) ? t['values'].map(x => num$1(x)) : [];
|
|
24062
24062
|
return { prop: String(t['prop']), from: v[0] ?? 0, to: v[1] ?? 0, at: [v[2] ?? 0, v[3] ?? 1], ease: String(t['ease']) };
|
|
24063
24063
|
}
|
|
24064
24064
|
function expandLayer(l, beat) {
|
|
24065
24065
|
const kind = String(l['kind']);
|
|
24066
|
-
const box = Array.isArray(l['box']) ? l['box'].map(x => num(x)) : [];
|
|
24066
|
+
const box = Array.isArray(l['box']) ? l['box'].map(x => num$1(x)) : [];
|
|
24067
24067
|
const flags = new Set(strings$1(l['flags']));
|
|
24068
24068
|
const variant = String(l['variant'] ?? NONE$3);
|
|
24069
24069
|
const out = {
|
|
@@ -24091,12 +24091,12 @@ function expandLayer(l, beat) {
|
|
|
24091
24091
|
out.color = String(l['color']);
|
|
24092
24092
|
if (nonEmpty$3(l['align']))
|
|
24093
24093
|
out.align = String(l['align']);
|
|
24094
|
-
if (num(l['z']))
|
|
24095
|
-
out.z = num(l['z']);
|
|
24094
|
+
if (num$1(l['z']))
|
|
24095
|
+
out.z = num$1(l['z']);
|
|
24096
24096
|
if (nonEmpty$3(l['bleed']) && l['bleed'] !== NONE$3)
|
|
24097
24097
|
out.bleed = String(l['bleed']);
|
|
24098
|
-
if (num(l['rotate']))
|
|
24099
|
-
out.rotate = num(l['rotate']);
|
|
24098
|
+
if (num$1(l['rotate']))
|
|
24099
|
+
out.rotate = num$1(l['rotate']);
|
|
24100
24100
|
if (nonEmpty$3(l['to']))
|
|
24101
24101
|
out.to = String(l['to']).trim();
|
|
24102
24102
|
if (flags.has('scrim'))
|
|
@@ -24118,8 +24118,8 @@ function expandLayer(l, beat) {
|
|
|
24118
24118
|
out.beat = beat;
|
|
24119
24119
|
if (nonEmpty$3(l['depth']) && l['depth'] !== NONE$3)
|
|
24120
24120
|
out.depth = String(l['depth']);
|
|
24121
|
-
if (num(l['inner']))
|
|
24122
|
-
out.inner = num(l['inner']);
|
|
24121
|
+
if (num$1(l['inner']))
|
|
24122
|
+
out.inner = num$1(l['inner']);
|
|
24123
24123
|
const motion = (Array.isArray(l['motion']) ? l['motion'] : []).filter(isPlainObject).map(expandTrack);
|
|
24124
24124
|
if (motion.length)
|
|
24125
24125
|
out.motion = motion;
|
|
@@ -24140,7 +24140,7 @@ function derivedBeats(layers) {
|
|
|
24140
24140
|
}
|
|
24141
24141
|
function expandSection(s) {
|
|
24142
24142
|
const kind = String(s['kind']);
|
|
24143
|
-
const hold = Math.max(0, Math.round(num(s['hold'])));
|
|
24143
|
+
const hold = Math.max(0, Math.round(num$1(s['hold'])));
|
|
24144
24144
|
const wired = (Array.isArray(s['layers']) ? s['layers'] : []).filter(isPlainObject);
|
|
24145
24145
|
// RD-D20: a section whose ONLY layer names a bound part, a block or a kept section IS that part — a section place.
|
|
24146
24146
|
const whole = wired.length === 1 && nonEmpty$3(wired[0]['carry']) && isSectionCarryHandle(String(wired[0]['carry']).trim())
|
|
@@ -24151,12 +24151,12 @@ function expandSection(s) {
|
|
|
24151
24151
|
const layers = wired.map((l, i) => expandLayer(l, beats[i]));
|
|
24152
24152
|
const out = {
|
|
24153
24153
|
id: String(s['id'] ?? ''),
|
|
24154
|
-
screens: num(s['screens'], 1),
|
|
24155
|
-
rows: num(s['rows'], 8),
|
|
24154
|
+
screens: num$1(s['screens'], 1),
|
|
24155
|
+
rows: num$1(s['rows'], 8),
|
|
24156
24156
|
ground: String(s['ground'] ?? 'ground'),
|
|
24157
24157
|
transition: String(s['transition'] ?? 'cut'),
|
|
24158
24158
|
layers,
|
|
24159
|
-
phone: Array.isArray(s['phone']) ? s['phone'].map(x => num(x, -1)) : [],
|
|
24159
|
+
phone: Array.isArray(s['phone']) ? s['phone'].map(x => num$1(x, -1)) : [],
|
|
24160
24160
|
};
|
|
24161
24161
|
if (kind === 'inhale')
|
|
24162
24162
|
out.kind = 'inhale';
|
|
@@ -24577,7 +24577,7 @@ const MIN_ANALYSIS_HEIGHT = 48;
|
|
|
24577
24577
|
const PHOTO_CALM_DETAIL = 0.045;
|
|
24578
24578
|
/** Light: above the luminance where black and white words have the same contrast (√(1.05 × 0.05) − 0.05). */
|
|
24579
24579
|
const PHOTO_LIGHT_LUMINANCE = 0.179;
|
|
24580
|
-
const COLOURS = 5;
|
|
24580
|
+
const COLOURS$1 = 5;
|
|
24581
24581
|
const KMEANS_ROUNDS = 12;
|
|
24582
24582
|
/** Shape by width ÷ height (the prototype's `shapeOf`). */
|
|
24583
24583
|
const SHAPE_FROM_RATIO = [
|
|
@@ -24623,7 +24623,7 @@ function downsample(rgba, width, height) {
|
|
|
24623
24623
|
/** Up to five colours by k-means over the analysed pixels, seeded from evenly spread pixels (the prototype's), most
|
|
24624
24624
|
* first; centres that land on one colour are one colour. */
|
|
24625
24625
|
function mainColours(px, n) {
|
|
24626
|
-
const k = Math.min(COLOURS, n);
|
|
24626
|
+
const k = Math.min(COLOURS$1, n);
|
|
24627
24627
|
let centres = Array.from({ length: k }, (_, i) => {
|
|
24628
24628
|
const p = Math.floor(((i + 0.5) * n) / k);
|
|
24629
24629
|
return [px[p * 3], px[p * 3 + 1], px[p * 3 + 2]];
|
|
@@ -29388,7 +29388,7 @@ function freeWireJsonSchema(options = {}) {
|
|
|
29388
29388
|
nodes: jsonListOf(node),
|
|
29389
29389
|
}, 'one free page, flat');
|
|
29390
29390
|
}
|
|
29391
|
-
const str = (v) => (typeof v === 'string' ? v : '');
|
|
29391
|
+
const str$1 = (v) => (typeof v === 'string' ? v : '');
|
|
29392
29392
|
const list$1 = (v) => (Array.isArray(v) ? v.filter((x) => typeof x === 'string') : []);
|
|
29393
29393
|
const nodeAt = (i, id) => `nodes[${i}]${id ? ` ("${id}")` : ''}`;
|
|
29394
29394
|
/** `["fontSize:4rem", …]` → a style map, split at each line's FIRST colon; a line with none is a fault. */
|
|
@@ -29436,9 +29436,9 @@ function expandFreeWire(wire) {
|
|
|
29436
29436
|
faults.push({ path: `nodes[${i}]`, message: 'not a node' });
|
|
29437
29437
|
return;
|
|
29438
29438
|
}
|
|
29439
|
-
const id = str(raw['id']);
|
|
29439
|
+
const id = str$1(raw['id']);
|
|
29440
29440
|
const at = nodeAt(i, id);
|
|
29441
|
-
const type = str(raw['type']);
|
|
29441
|
+
const type = str$1(raw['type']);
|
|
29442
29442
|
if (!Object.values(FreeNodeType).includes(type)) {
|
|
29443
29443
|
faults.push({ path: at, message: `"${type}" is not a node type — ${Object.values(FreeNodeType).join(', ')}` });
|
|
29444
29444
|
return;
|
|
@@ -29449,21 +29449,21 @@ function expandFreeWire(wire) {
|
|
|
29449
29449
|
}
|
|
29450
29450
|
const node = { id, type, styleProps: styleOf$1(raw['base'], `${at}.base`, faults) };
|
|
29451
29451
|
if (type === FreeNodeType.Section)
|
|
29452
|
-
node.purpose = str(raw['purpose']);
|
|
29453
|
-
if (str(raw['style']))
|
|
29454
|
-
node.elementStyle = str(raw['style']);
|
|
29452
|
+
node.purpose = str$1(raw['purpose']);
|
|
29453
|
+
if (str$1(raw['style']))
|
|
29454
|
+
node.elementStyle = str$1(raw['style']);
|
|
29455
29455
|
if (type === FreeNodeType.Heading)
|
|
29456
29456
|
node.level = typeof raw['level'] === 'number' ? raw['level'] : 0;
|
|
29457
|
-
if (str(raw['role']))
|
|
29458
|
-
node.role = str(raw['role']);
|
|
29457
|
+
if (str$1(raw['role']))
|
|
29458
|
+
node.role = str$1(raw['role']);
|
|
29459
29459
|
if (FREE_WORD_TYPES.includes(type))
|
|
29460
|
-
node.text = str(raw['text']);
|
|
29461
|
-
if (str(raw['src']))
|
|
29462
|
-
node.src = str(raw['src']);
|
|
29460
|
+
node.text = str$1(raw['text']);
|
|
29461
|
+
if (str$1(raw['src']))
|
|
29462
|
+
node.src = str$1(raw['src']);
|
|
29463
29463
|
if (type === FreeNodeType.Button)
|
|
29464
|
-
node.href = str(raw['href']);
|
|
29464
|
+
node.href = str$1(raw['href']);
|
|
29465
29465
|
if (type === FreeNodeType.Slot) {
|
|
29466
|
-
node.slot = str(raw['slot']);
|
|
29466
|
+
node.slot = str$1(raw['slot']);
|
|
29467
29467
|
node.opts = list$1(raw['opts']);
|
|
29468
29468
|
}
|
|
29469
29469
|
// FV2: a footer Section says its ground as a word (`ground:inverse`), never as a painted colour.
|
|
@@ -29480,13 +29480,13 @@ function expandFreeWire(wire) {
|
|
|
29480
29480
|
const hover = styleOf$1(raw['hover'], `${at}.hover`, faults);
|
|
29481
29481
|
if (Object.keys(hover).length)
|
|
29482
29482
|
node.hover = hover;
|
|
29483
|
-
const motion = str(raw['motion']);
|
|
29483
|
+
const motion = str$1(raw['motion']);
|
|
29484
29484
|
const move = freeMoveOf(motion);
|
|
29485
29485
|
if (move)
|
|
29486
29486
|
node.move = move;
|
|
29487
29487
|
else if (motion && motion !== NONE$2)
|
|
29488
29488
|
faults.push({ path: `${at}.motion`, message: `"${motion}" is not a move — ${freeMoveWords().join(', ')}` });
|
|
29489
|
-
const parentId = str(raw['parent']);
|
|
29489
|
+
const parentId = str$1(raw['parent']);
|
|
29490
29490
|
if (!parentId) {
|
|
29491
29491
|
if (type !== FreeNodeType.Section) {
|
|
29492
29492
|
faults.push({ path: at, message: 'only a Section sits at the top of the page — give it a parent' });
|
|
@@ -29516,8 +29516,8 @@ function expandFreeWire(wire) {
|
|
|
29516
29516
|
paths[pathOf.get(node)] = i;
|
|
29517
29517
|
});
|
|
29518
29518
|
const page = {
|
|
29519
|
-
read: { idea: str(read['idea']), why: str(read['why']), followed: str(read['followed']) },
|
|
29520
|
-
pictures: str(w['pictures']),
|
|
29519
|
+
read: { idea: str$1(read['idea']), why: str$1(read['why']), followed: str$1(read['followed']) },
|
|
29520
|
+
pictures: str$1(w['pictures']),
|
|
29521
29521
|
sections,
|
|
29522
29522
|
};
|
|
29523
29523
|
return { page, paths, faults };
|
|
@@ -29937,7 +29937,7 @@ const A_NUMBER = /^\D{0,3}\d[\d,.]*\D{0,3}$/;
|
|
|
29937
29937
|
const PAGE_GROUND = 'page-bg';
|
|
29938
29938
|
const tokensIn = (v) => [...v.matchAll(TOKEN_REF)].map(m => m[1]);
|
|
29939
29939
|
const oneToken = (v) => ONE_TOKEN.exec(String(v ?? '').trim())?.[1];
|
|
29940
|
-
const px = (v) => { const m = /^(-?[\d.]+)px$/.exec(String(v ?? '').trim()); return m ? Number(m[1]) : null; };
|
|
29940
|
+
const px$1 = (v) => { const m = /^(-?[\d.]+)px$/.exec(String(v ?? '').trim()); return m ? Number(m[1]) : null; };
|
|
29941
29941
|
const columnsOf$1 = (v) => {
|
|
29942
29942
|
const s = String(v ?? '').trim();
|
|
29943
29943
|
const rep = /repeat\(\s*(\d+)/.exec(s);
|
|
@@ -30052,9 +30052,9 @@ function freePhoneNeeds(node) {
|
|
|
30052
30052
|
needs.push('its columns');
|
|
30053
30053
|
if (base['position'] === 'absolute')
|
|
30054
30054
|
needs.push('its absolute place');
|
|
30055
|
-
if ((px(base['width']) ?? 0) > FREE_PHONE_LIMITS.width || (px(base['minWidth']) ?? 0) > FREE_PHONE_LIMITS.width)
|
|
30055
|
+
if ((px$1(base['width']) ?? 0) > FREE_PHONE_LIMITS.width || (px$1(base['minWidth']) ?? 0) > FREE_PHONE_LIMITS.width)
|
|
30056
30056
|
needs.push('its fixed width');
|
|
30057
|
-
if ((px(base['fontSize']) ?? 0) > FREE_PHONE_LIMITS.fontSize)
|
|
30057
|
+
if ((px$1(base['fontSize']) ?? 0) > FREE_PHONE_LIMITS.fontSize)
|
|
30058
30058
|
needs.push('its type size (or write it as clamp(min, cqi, max))');
|
|
30059
30059
|
if (base['rotate'] && FREE_WORD_TYPES.includes(node.type) && Math.abs(parseFloat(base['rotate'])) > FREE_PHONE_LIMITS.turn)
|
|
30060
30060
|
needs.push('its turn');
|
|
@@ -30750,8 +30750,9 @@ function freeFooterBrief(ctx, worn = []) {
|
|
|
30750
30750
|
* - `SITE_SOCIAL_FIELDS`, `siteSocialLinks`, `siteSocialPatch` — the Site settings record's fields, read and written;
|
|
30751
30751
|
* - `statedWhatsAppHref` — a stated WhatsApp link as the contact form's WhatsApp channel (forms-core `channelHref`);
|
|
30752
30752
|
* - `withFollowRow` — a contact section with the footer's social part ("Follow" and the links) beside its contact facts;
|
|
30753
|
-
* - `followSiteSocials` — every follow row a saved layout holds, drawn from Site settings ▸ Socials AT RENDER (iox-ui#201)
|
|
30754
|
-
* the engine and the builder both apply it, so a link changed in
|
|
30753
|
+
* - `followSiteSocials` — every follow row a saved layout holds, drawn from Site settings ▸ Socials AT RENDER (iox-ui#201),
|
|
30754
|
+
* and every form's WhatsApp channel with them (iox-ui#205): the engine and the builder both apply it, so a link changed in
|
|
30755
|
+
* Site settings reaches every site, old builds included.
|
|
30755
30756
|
*
|
|
30756
30757
|
* Pure and framework-free (iox-cms imports it).
|
|
30757
30758
|
*/
|
|
@@ -30928,16 +30929,33 @@ const ICON_PROP = 'iconClass';
|
|
|
30928
30929
|
const PH_WEIGHT = /^ph(-(thin|light|regular|bold|fill|duotone))?$/;
|
|
30929
30930
|
/** The suffix a copy's id carries — stripped to find the template's own id on the next pass. */
|
|
30930
30931
|
const NETWORK_SUFFIX = new RegExp(`-(${FOOTER_SOCIAL_NETWORKS.map(n => n.id).join('|')})$`);
|
|
30931
|
-
/**
|
|
30932
|
+
/** Where a channel (a ButtonBlock that links) writes its address. */
|
|
30933
|
+
const CHANNEL_URL_SLOT = 'href';
|
|
30934
|
+
/** A form's WhatsApp channel (iox-ui#205): role `form.channel`, its address a WhatsApp chat (forms-core `parseChannelHref`). */
|
|
30935
|
+
function isWhatsAppChannel(n) {
|
|
30936
|
+
if (n?.role !== FORM_CHANNEL_ROLE)
|
|
30937
|
+
return false;
|
|
30938
|
+
const { kind, value } = parseChannelHref(n.props?.[CHANNEL_URL_SLOT]);
|
|
30939
|
+
return kind === ChannelKind.WhatsApp && !!value;
|
|
30940
|
+
}
|
|
30941
|
+
/** A node Site settings ▸ Socials draws: a follow row, or a form's WhatsApp channel. */
|
|
30942
|
+
const isFollowed = (n) => isFollowRow(n) || isWhatsAppChannel(n);
|
|
30943
|
+
/** True when the tree holds a follow row (a stamped follow link) or a form's WhatsApp channel — a renderer reads Site
|
|
30944
|
+
* settings only then. */
|
|
30932
30945
|
function holdsFollowRow(nodes) {
|
|
30933
|
-
return (nodes ?? []).some(n => n?.role === FOLLOW_LINK_ROLE || holdsFollowRow(n?.children));
|
|
30946
|
+
return (nodes ?? []).some(n => n?.role === FOLLOW_LINK_ROLE || isWhatsAppChannel(n) || holdsFollowRow(n?.children));
|
|
30934
30947
|
}
|
|
30935
30948
|
/** Every follow row of `roots` drawn from Site settings' links (`siteSocialLinks` of the record) — see above. Pure. */
|
|
30936
30949
|
function followSiteSocials(roots, site, view) {
|
|
30937
30950
|
if (site == null || !holdsFollowRow(roots))
|
|
30938
30951
|
return roots;
|
|
30939
30952
|
const links = footerSocialLinks(site).links;
|
|
30953
|
+
const whatsApp = statedWhatsAppHref(site);
|
|
30940
30954
|
return splice(roots, n => {
|
|
30955
|
+
if (isWhatsAppChannel(n)) {
|
|
30956
|
+
const channel = followChannel(n, whatsApp, view);
|
|
30957
|
+
return channel ? [channel] : [];
|
|
30958
|
+
}
|
|
30941
30959
|
if (!isFollowRow(n))
|
|
30942
30960
|
return undefined;
|
|
30943
30961
|
const row = followRow(n, links, view);
|
|
@@ -30974,10 +30992,10 @@ function firstWithRole(n, role) {
|
|
|
30974
30992
|
const holdsLink = (n) => (n.children ?? []).some(k => k.type in FOLLOW_URL_SLOT || holdsLink(k));
|
|
30975
30993
|
/** A row: the `footer.social` block, or (a one-line footer) the bare box its stamped links sit in. */
|
|
30976
30994
|
const isFollowRow = (n) => n.role === FOLLOW_ROW_ROLE || (n.children ?? []).some(k => k.role === FOLLOW_LINK_ROLE);
|
|
30977
|
-
/** Every follow row
|
|
30995
|
+
/** Every node Site settings draws (a follow row, a WhatsApp channel) by its id — the outermost, never looked inside. */
|
|
30978
30996
|
function followRowsById(nodes, out = new Map()) {
|
|
30979
30997
|
for (const n of nodes) {
|
|
30980
|
-
if (
|
|
30998
|
+
if (isFollowed(n))
|
|
30981
30999
|
out.set(n.id, n);
|
|
30982
31000
|
else if (n.children)
|
|
30983
31001
|
followRowsById(n.children, out);
|
|
@@ -30999,7 +31017,7 @@ function keepSavedFollowRows(serialized, drawn, saved) {
|
|
|
30999
31017
|
return serialized;
|
|
31000
31018
|
const drawnRows = followRowsById(drawn);
|
|
31001
31019
|
return splice(serialized, n => {
|
|
31002
|
-
if (!
|
|
31020
|
+
if (!isFollowed(n))
|
|
31003
31021
|
return undefined;
|
|
31004
31022
|
const stored = storedRows.get(n.id);
|
|
31005
31023
|
const asDrawn = drawnRows.get(n.id);
|
|
@@ -31017,6 +31035,18 @@ function followRow(row, links, view) {
|
|
|
31017
31035
|
const next = { ...row, children: splice(row.children ?? [], n => (n.role !== FOLLOW_LINK_ROLE ? undefined : n === template ? copies : [])) };
|
|
31018
31036
|
return links.length || holdsLink(next) ? next : null;
|
|
31019
31037
|
}
|
|
31038
|
+
/**
|
|
31039
|
+
* A form's WhatsApp channel drawn: Site settings' WhatsApp as its address (any `?text=` the owner added kept), the same node
|
|
31040
|
+
* when it already is; no WhatsApp in Site settings — gone on the live site, as saved in the builder.
|
|
31041
|
+
*/
|
|
31042
|
+
function followChannel(channel, whatsApp, view) {
|
|
31043
|
+
if (!whatsApp)
|
|
31044
|
+
return view === FollowRowView.Edit ? channel : null;
|
|
31045
|
+
const current = String(channel.props?.[CHANNEL_URL_SLOT] ?? '').trim();
|
|
31046
|
+
const suffix = current.match(/[?#].*$/)?.[0] ?? '';
|
|
31047
|
+
const href = `${whatsApp}${suffix}`;
|
|
31048
|
+
return href === current ? channel : { ...channel, props: { ...channel.props, [CHANNEL_URL_SLOT]: href } };
|
|
31049
|
+
}
|
|
31020
31050
|
/** The template drawn for one network: its address (external), its words, its glyph, ids derived. */
|
|
31021
31051
|
function followLink(template, link) {
|
|
31022
31052
|
const glyph = FOOTER_SOCIAL_NETWORKS.find(n => n.id === link.network)?.icon;
|
|
@@ -31065,9 +31095,9 @@ function withGlyph(current, glyph) {
|
|
|
31065
31095
|
*/
|
|
31066
31096
|
const WRITES_WORDS = SPEC_SITE_LAYOUT.footer.rules.writesWords;
|
|
31067
31097
|
/** A Hebrew word may carry one prefix letter before its stem (ו ה ב ל מ ש כ). */
|
|
31068
|
-
const HE_PREFIX = '[והבלמשכ]?';
|
|
31098
|
+
const HE_PREFIX$1 = '[והבלמשכ]?';
|
|
31069
31099
|
const escape = (w) => w.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
31070
|
-
const WRITES_RE = new RegExp(`(?:^|[^\\p{L}])${HE_PREFIX}(?:${WRITES_WORDS.map(escape).join('|')})`, 'iu');
|
|
31100
|
+
const WRITES_RE = new RegExp(`(?:^|[^\\p{L}])${HE_PREFIX$1}(?:${WRITES_WORDS.map(escape).join('|')})`, 'iu');
|
|
31071
31101
|
/**
|
|
31072
31102
|
* AW12-D6: whether the site has a reason to write — it sells (a shop's new pieces), its kind of business closes with a
|
|
31073
31103
|
* sign-up (`typeSignUp`, harness FOOTER_SIGNUP: a hotel's seasons, a salon's offers), the owner ticked the newsletter popup,
|
|
@@ -31162,14 +31192,14 @@ function legalKindRow(kind) {
|
|
|
31162
31192
|
throw new Error(`no legal kind "${kind}"`);
|
|
31163
31193
|
return row;
|
|
31164
31194
|
}
|
|
31165
|
-
const pick = (words, lang) => (lang === 'he' ? words.he : words.en);
|
|
31195
|
+
const pick$1 = (words, lang) => (lang === 'he' ? words.he : words.en);
|
|
31166
31196
|
/** A kind's page title in the site's language. */
|
|
31167
31197
|
function legalTitle(kind, lang) {
|
|
31168
|
-
return pick(legalKindRow(kind).title, lang);
|
|
31198
|
+
return pick$1(legalKindRow(kind).title, lang);
|
|
31169
31199
|
}
|
|
31170
31200
|
/** What belongs on the page, in the site's language — the placeholder it shows until the owner writes it. */
|
|
31171
31201
|
function legalLabel(kind, lang) {
|
|
31172
|
-
return pick(legalKindRow(kind).label, lang);
|
|
31202
|
+
return pick$1(legalKindRow(kind).label, lang);
|
|
31173
31203
|
}
|
|
31174
31204
|
/** True when a kind holds Publish while it is the placeholder (yes, or with the checkout's own). */
|
|
31175
31205
|
function legalKindBlocks(kind) {
|
|
@@ -31236,7 +31266,7 @@ const LINE_KEY = /\{(terms|privacy)\}/g;
|
|
|
31236
31266
|
* pieces read as one sentence when drawn inline.
|
|
31237
31267
|
*/
|
|
31238
31268
|
function legalFormLine(lang, withTerms) {
|
|
31239
|
-
const template = pick((withTerms ? L.formLine : L.formLinePrivacy), lang);
|
|
31269
|
+
const template = pick$1((withTerms ? L.formLine : L.formLinePrivacy), lang);
|
|
31240
31270
|
const parts = [];
|
|
31241
31271
|
let at = 0;
|
|
31242
31272
|
for (const m of template.matchAll(LINE_KEY)) {
|
|
@@ -31757,7 +31787,9 @@ const MIN_PHONE_DISPLAY_PX = 36;
|
|
|
31757
31787
|
/** What the frame keeps beside a display line (its inset and a little air), per side. */
|
|
31758
31788
|
const LAPTOP_SIDE_PX = 32;
|
|
31759
31789
|
const PHONE_SIDE_PX = 24;
|
|
31760
|
-
|
|
31790
|
+
/** The element style the opening's display line wears (`title`'s). */
|
|
31791
|
+
const EDGE_STYLE = 'display';
|
|
31792
|
+
const faceOf = (ctx) => elementStyleFace(ctx.design ?? resolveDesignChoices({}), EDGE_STYLE);
|
|
31761
31793
|
const nameWords$1 = (name) => name.trim().split(/\s+/).filter(Boolean);
|
|
31762
31794
|
/** How wide the name stands, in em of the display face: the whole line, and its longest word. */
|
|
31763
31795
|
function nameEm(ctx) {
|
|
@@ -31768,6 +31800,27 @@ function nameEm(ctx) {
|
|
|
31768
31800
|
longest: Math.max(0, ...words.map(w => textWidthEm(w, face))),
|
|
31769
31801
|
};
|
|
31770
31802
|
}
|
|
31803
|
+
/** How many lines the name wraps into at `size` px across `room` px — word by word on the display face's own widths, as a
|
|
31804
|
+
* browser breaks it (`text-wrap: balance` evens the lines, never adds one). */
|
|
31805
|
+
function wordWrapper(ctx) {
|
|
31806
|
+
const face = faceOf(ctx);
|
|
31807
|
+
const widths = nameWords$1(ctx.name).map(w => textWidthEm(w, face));
|
|
31808
|
+
const space = textWidthEm(' ', face);
|
|
31809
|
+
return (size, room) => {
|
|
31810
|
+
let lines = 1;
|
|
31811
|
+
let run = 0;
|
|
31812
|
+
for (const w of widths) {
|
|
31813
|
+
const next = run ? run + (space + w) * size : w * size;
|
|
31814
|
+
if (run && next > room) {
|
|
31815
|
+
lines++;
|
|
31816
|
+
run = w * size;
|
|
31817
|
+
}
|
|
31818
|
+
else
|
|
31819
|
+
run = next;
|
|
31820
|
+
}
|
|
31821
|
+
return lines;
|
|
31822
|
+
};
|
|
31823
|
+
}
|
|
31771
31824
|
/** A display-size name fits: one line across a laptop at a size that reads, and every word across a phone (R-H6). */
|
|
31772
31825
|
function nameFits(ctx, oneLine) {
|
|
31773
31826
|
const { line, longest } = nameEm(ctx);
|
|
@@ -31806,15 +31859,18 @@ function openingDisplaySize(ctx, panel) {
|
|
|
31806
31859
|
return null;
|
|
31807
31860
|
const [tokenPhone, tokenLaptop] = [Number(token[1]), Number(token[2])];
|
|
31808
31861
|
const pad = panel ? Number(PX.exec(rows.get('space-pad') ?? '')?.[1] ?? PANEL_PAD_PX) : 0;
|
|
31809
|
-
|
|
31810
|
-
|
|
31862
|
+
const leading = Number(rows.get('leading-display')) > 0 ? Number(rows.get('leading-display')) : 1;
|
|
31863
|
+
const wrap = wordWrapper(ctx);
|
|
31864
|
+
/** The largest size that keeps the words within `lines` lines of `room` AS THEY WRAP (word by word, on the face's own
|
|
31865
|
+
* widths — pro-law: a filled-to-82% guess said three lines where its words broke into four and pushed the button
|
|
31866
|
+
* under the first screen), their longest word on one, the lines' height within `screen` px — never above the cap. */
|
|
31811
31867
|
const fitted = (room, lines, screen) => {
|
|
31812
|
-
let size = 0;
|
|
31813
|
-
|
|
31814
|
-
|
|
31815
|
-
|
|
31868
|
+
for (let size = Math.floor(Math.min(R.capBody * body, (room * FIT) / longest)); size > 0; size--) {
|
|
31869
|
+
const n = wrap(size, room * FIT);
|
|
31870
|
+
if (n <= lines && n * size * leading <= screen)
|
|
31871
|
+
return size;
|
|
31816
31872
|
}
|
|
31817
|
-
return
|
|
31873
|
+
return 0;
|
|
31818
31874
|
};
|
|
31819
31875
|
const laptop = fitted(Math.min(R.roomPx, LAPTOP_PX - 2 * LAPTOP_SIDE_PX) - 2 * pad, R.lines, R.screenShare * LAPTOP_SCREEN_H);
|
|
31820
31876
|
const phone = Math.min(laptop, fitted(PHONE_PX - 2 * PHONE_FRAME_PX - 2 * pad, R.phoneLines, R.phoneScreenShare * PHONE_SCREEN_H));
|
|
@@ -31911,6 +31967,9 @@ const OPENING_HEIGHT = '88svh';
|
|
|
31911
31967
|
const TYPE_LED_HEIGHT = 'min(64svh, 600px)';
|
|
31912
31968
|
const typeLedHeights = (mix) => mix.words === OpeningWords.Apart ? { laptop: OPENING_HEIGHT } : { laptop: TYPE_LED_HEIGHT, phone: '0px' };
|
|
31913
31969
|
const INSET_LAPTOP = '24px';
|
|
31970
|
+
/** iox-ui#196: the cue stands at the end inset (`inset-inline-end: 4%`, iox-design.css) and keeps the same inset on its
|
|
31971
|
+
* start side — every word inside the screen, at 1440 and 390, in both directions. */
|
|
31972
|
+
const OPENING_CUE_MAX_WIDTH = '92%';
|
|
31914
31973
|
const ABS_FILL = { position: 'absolute', top: '0px', left: '0px', width: '100%', height: '100%', zIndex: '0' };
|
|
31915
31974
|
const MEDIA_FILL = { ...ABS_FILL, aspectRatio: 'auto', borderRadius: '0px', objectFit: 'cover' };
|
|
31916
31975
|
const OVER = (z) => ({ position: 'relative', zIndex: String(z) });
|
|
@@ -31935,13 +31994,32 @@ const insetClip = (inset) => `inset(${inset} round var(--iox-card-radius))`;
|
|
|
31935
31994
|
const phoneFramePad = (mix) => (mix.frame === OpeningFrame.Inset || mix.frame === OpeningFrame.Shrinks ? `calc(${openingPhoneInset()} + 20px)` : FRAME_PAD);
|
|
31936
31995
|
/** A display size that keeps `em` of text within the width (`side` kept per side — px, or a CSS length), never above `cap`. */
|
|
31937
31996
|
const sizedPx = (em, side, cap) => `min(calc((100vw - ${typeof side === 'number' ? `${2 * side}px` : `2 * ${side}`}) * ${FIT} / ${Math.max(em, 1).toFixed(3)}), ${cap})`;
|
|
31997
|
+
/** The name on the edge is set tight on a laptop; a phone's line leaves room should a face still break it. */
|
|
31998
|
+
const EDGE_LINE_HEIGHT = 0.82;
|
|
31999
|
+
const EDGE_PHONE_LINE_HEIGHT = 0.9;
|
|
31938
32000
|
/**
|
|
31939
32001
|
* The name standing on the bottom edge (`words:on-edge`): ONE display line on a laptop AND on a phone (iox-ui#150) — a
|
|
31940
32002
|
* phone sizes it by the whole name across the room beside it (`phoneSide`), never by its longest word: sized by a word,
|
|
31941
|
-
* a long name wrapped to four lines at 80 px, its lines touching, and pushed the page a screen down.
|
|
31942
|
-
*
|
|
31943
|
-
|
|
31944
|
-
|
|
32003
|
+
* a long name wrapped to four lines at 80 px, its lines touching, and pushed the page a screen down.
|
|
32004
|
+
* iox-ui#206: the frame crops the name at its BASELINE — the line drops by the display face's own amount at each line
|
|
32005
|
+
* height (design-core `baselineDropEm`), so its descenders go under the edge and its letters stand whole on it. A fixed
|
|
32006
|
+
* 0.16em put Fraunces' baseline 0.11em under the edge: the store's capitals were cut through.
|
|
32007
|
+
* iox-ui#215: the drop is CSS that reads the display family's derived metric tokens (design-core `elementStyleDropCss`),
|
|
32008
|
+
* so a font changed in Design moves the line with it, in the builder and on the live site; it falls back to the face
|
|
32009
|
+
* composed with.
|
|
32010
|
+
*/
|
|
32011
|
+
function edgeTitle(line, phoneSide, ctx) {
|
|
32012
|
+
const design = ctx.design ?? resolveDesignChoices({});
|
|
32013
|
+
return title({
|
|
32014
|
+
fontSize: sizedPx(line, LAPTOP_SIDE_PX, '50svh'), lineHeight: String(EDGE_LINE_HEIGHT), margin: '0px',
|
|
32015
|
+
translateY: elementStyleDropCss(design, EDGE_STYLE, EDGE_LINE_HEIGHT),
|
|
32016
|
+
}, {
|
|
32017
|
+
resp: { mobile: {
|
|
32018
|
+
fontSize: sizedPx(line, phoneSide, '22vw'), lineHeight: String(EDGE_PHONE_LINE_HEIGHT),
|
|
32019
|
+
translateY: elementStyleDropCss(design, EDGE_STYLE, EDGE_PHONE_LINE_HEIGHT),
|
|
32020
|
+
} },
|
|
32021
|
+
});
|
|
32022
|
+
}
|
|
31945
32023
|
function frameNode(mix, children) {
|
|
31946
32024
|
const inset = mix.frame === OpeningFrame.Inset || mix.frame === OpeningFrame.Shrinks;
|
|
31947
32025
|
const height = mix.media === OpeningMedia.None ? typeLedHeights(mix) : { laptop: OPENING_HEIGHT };
|
|
@@ -32079,7 +32157,7 @@ function typeLedWordsNodes(mix, ctx) {
|
|
|
32079
32157
|
lay: { position: 'absolute', left: '0px', bottom: '0px', width: '100%', zIndex: '1', padding: `0px ${LAPTOP_SIDE_PX}px`, overflow: 'visible' },
|
|
32080
32158
|
resp: { mobile: { position: 'relative', left: 'auto', bottom: 'auto', padding: '0px', margin: `auto 0px calc(-1 * ${phoneFramePad(mix)}) 0px` } },
|
|
32081
32159
|
// The words sit inside the frame's own padding on a phone: the line is sized across what it leaves.
|
|
32082
|
-
c: [edgeTitle(line, `max(${phoneFramePad(mix)}, ${LAYOUT_INSET})
|
|
32160
|
+
c: [edgeTitle(line, `max(${phoneFramePad(mix)}, ${LAYOUT_INSET})`, ctx)],
|
|
32083
32161
|
}];
|
|
32084
32162
|
case OpeningWords.Wordmark:
|
|
32085
32163
|
case OpeningWords.Behind:
|
|
@@ -32119,7 +32197,7 @@ function wordsNodes(mix, ctx) {
|
|
|
32119
32197
|
t: 'Container', es: 'box', role: OpeningRole.Words,
|
|
32120
32198
|
lay: { position: 'absolute', left: '0px', bottom: '0px', width: '100%', zIndex: '1', padding: `0px ${LAPTOP_SIDE_PX}px`, overflow: 'visible' },
|
|
32121
32199
|
resp: { mobile: { padding: `0px ${PHONE_SIDE_PX}px` } },
|
|
32122
|
-
c: [edgeTitle(line, PHONE_SIDE_PX)],
|
|
32200
|
+
c: [edgeTitle(line, PHONE_SIDE_PX, ctx)],
|
|
32123
32201
|
}];
|
|
32124
32202
|
case OpeningWords.Wordmark:
|
|
32125
32203
|
case OpeningWords.Behind:
|
|
@@ -32190,7 +32268,9 @@ function extrasNodes(mix) {
|
|
|
32190
32268
|
});
|
|
32191
32269
|
}
|
|
32192
32270
|
if (mix.extras.includes(OpeningExtra.Cue)) {
|
|
32193
|
-
|
|
32271
|
+
// iox-ui#196: as wide as its words (a Text is 100% by default — at the end inset it started 4% off the screen), and
|
|
32272
|
+
// never wider than the room between the two insets (the shared CSS holds that for a cue saved before).
|
|
32273
|
+
out.push({ t: 'Text', es: 'eyebrow', role: OpeningRole.Cue, text: 'Scroll', textHe: 'גללו', lay: { position: 'absolute', bottom: '20px', zIndex: '2', margin: '0px', width: 'auto', maxWidth: OPENING_CUE_MAX_WIDTH } });
|
|
32194
32274
|
}
|
|
32195
32275
|
return out;
|
|
32196
32276
|
}
|
|
@@ -33278,8 +33358,8 @@ const LINK$1 = 'Link';
|
|
|
33278
33358
|
const LINKED = 'LinkedContainer';
|
|
33279
33359
|
const BUTTON = 'ButtonBlock';
|
|
33280
33360
|
const ICON$1 = 'Icon';
|
|
33281
|
-
const TEXT$
|
|
33282
|
-
const HEADING$
|
|
33361
|
+
const TEXT$2 = 'Text';
|
|
33362
|
+
const HEADING$2 = 'Heading';
|
|
33283
33363
|
const IMAGE$1 = 'Image';
|
|
33284
33364
|
const NAV_STYLE = 'nav';
|
|
33285
33365
|
const DISPLAY = 'display';
|
|
@@ -33375,6 +33455,59 @@ const MORE_ICON = 'ph-thin ph-dots-three';
|
|
|
33375
33455
|
function barIconForRoute(route) {
|
|
33376
33456
|
return ROUTE_ICONS.find(([re]) => re.test(route))?.[1] ?? FALLBACK_ICON;
|
|
33377
33457
|
}
|
|
33458
|
+
/** iox-ui#196: the narrowest phone a bar is drawn for, and its label's size (`tabbar-label-size`: the live bars measured
|
|
33459
|
+
* 11–11.7 px) — the bar's `6px 8px` padding, its 4 px gaps and an item's 2 px sides are the bar's own (`bar`,
|
|
33460
|
+
* `BAR_ITEM_LAY`). A label is measured in Poppins at 500, a wide sans of the looks, so a narrower face fits too. */
|
|
33461
|
+
const BAR_PHONE_PX = 360;
|
|
33462
|
+
const BAR_LABEL_PX = 12;
|
|
33463
|
+
const BAR_SIDES_PX = 16;
|
|
33464
|
+
const BAR_GAP_PX = 4;
|
|
33465
|
+
const BAR_ITEM_SIDES_PX = 4;
|
|
33466
|
+
const BAR_LABEL_FACE = { stack: 'Poppins', weight: 500, tracking: 0 };
|
|
33467
|
+
/** The short word a page is said by in a bar, by its address (its page name aside) — only where its name does not fit. */
|
|
33468
|
+
const BAR_SHORT_WORDS = [
|
|
33469
|
+
// first match wins — "workshops" holds both "work" and "shop"
|
|
33470
|
+
[/workshop|class|course/i, { en: 'Classes', he: 'סדנאות' }],
|
|
33471
|
+
[/menu/i, { en: 'Menu', he: 'תפריט' }],
|
|
33472
|
+
[/book|reserv/i, { en: 'Booking', he: 'הזמנה' }],
|
|
33473
|
+
[/contact/i, { en: 'Contact', he: 'צור קשר' }],
|
|
33474
|
+
[/visit|find|location|directions/i, { en: 'Visit', he: 'הגעה' }],
|
|
33475
|
+
[/about|story/i, { en: 'About', he: 'אודות' }],
|
|
33476
|
+
[/team/i, { en: 'Team', he: 'צוות' }],
|
|
33477
|
+
[/shop|store|product/i, { en: 'Shop', he: 'חנות' }],
|
|
33478
|
+
[/work|project|portfolio/i, { en: 'Work', he: 'עבודות' }],
|
|
33479
|
+
[/journal|blog|news/i, { en: 'Journal', he: 'בלוג' }],
|
|
33480
|
+
[/service|treatment/i, { en: 'Services', he: 'שירותים' }],
|
|
33481
|
+
[/room|stay/i, { en: 'Rooms', he: 'חדרים' }],
|
|
33482
|
+
[/galler/i, { en: 'Gallery', he: 'גלריה' }],
|
|
33483
|
+
[/faq|question/i, { en: 'FAQ', he: 'שאלות' }],
|
|
33484
|
+
[/pric/i, { en: 'Prices', he: 'מחירים' }],
|
|
33485
|
+
[/event/i, { en: 'Events', he: 'אירועים' }],
|
|
33486
|
+
];
|
|
33487
|
+
/** True when `words` stand on one line inside one of `items` bar items on the narrowest phone (iox-ui#196). */
|
|
33488
|
+
function barLabelFits(words, items) {
|
|
33489
|
+
const n = Math.max(1, items);
|
|
33490
|
+
const room = (BAR_PHONE_PX - BAR_SIDES_PX - BAR_GAP_PX * (n - 1)) / n - BAR_ITEM_SIDES_PX;
|
|
33491
|
+
return textWidthEm(words, BAR_LABEL_FACE) * BAR_LABEL_PX <= room;
|
|
33492
|
+
}
|
|
33493
|
+
/**
|
|
33494
|
+
* What a bar item says (iox-ui#196): the page's name where it fits its item on the narrowest phone, else the short word
|
|
33495
|
+
* its address is said by in the site's language ("Request a booking" → Booking, "יצירת קשר והגעה" → צור קשר) unless
|
|
33496
|
+
* another item already says it; a page no short word names keeps its name (the shared CSS ends it with …). The item's
|
|
33497
|
+
* layer name stays the page's name. Pure.
|
|
33498
|
+
*/
|
|
33499
|
+
function barLabels(pages, items, locale) {
|
|
33500
|
+
const lang = commerceLanguage(locale) === 'he' ? 'he' : 'en';
|
|
33501
|
+
const out = pages.map(p => p.label);
|
|
33502
|
+
pages.forEach((page, i) => {
|
|
33503
|
+
if (barLabelFits(page.label, items))
|
|
33504
|
+
return;
|
|
33505
|
+
const word = BAR_SHORT_WORDS.find(([re]) => re.test(page.route))?.[1][lang];
|
|
33506
|
+
if (word && barLabelFits(word, items) && !out.some(l => navWordKey(l, lang) === navWordKey(word, lang)))
|
|
33507
|
+
out[i] = word;
|
|
33508
|
+
});
|
|
33509
|
+
return out;
|
|
33510
|
+
}
|
|
33378
33511
|
// ── reading ─────────────────────────────────────────────────────────────────────────────────
|
|
33379
33512
|
const roleOf$1 = (n) => n?.role;
|
|
33380
33513
|
function find(nodes, role) {
|
|
@@ -33420,7 +33553,7 @@ function textOf$2(n) {
|
|
|
33420
33553
|
if (n.type === LINK$1)
|
|
33421
33554
|
return String(prop(n, 'label') ?? '');
|
|
33422
33555
|
let words = '';
|
|
33423
|
-
walkSerialized(n.children ?? [], c => { if (!words && (c.type === TEXT$
|
|
33556
|
+
walkSerialized(n.children ?? [], c => { if (!words && (c.type === TEXT$2 || c.type === HEADING$2))
|
|
33424
33557
|
words = String(prop(c, 'content') ?? ''); });
|
|
33425
33558
|
return words;
|
|
33426
33559
|
}
|
|
@@ -33564,7 +33697,7 @@ function iconNode(kit, suffix, iconClass) {
|
|
|
33564
33697
|
return part$2(kit, suffix, ICON$1, { iconClass }, null);
|
|
33565
33698
|
}
|
|
33566
33699
|
function labelText(kit, suffix, words) {
|
|
33567
|
-
return part$2(kit, suffix, TEXT$
|
|
33700
|
+
return part$2(kit, suffix, TEXT$2, { content: words, tag: 'span' }, 'button-label');
|
|
33568
33701
|
}
|
|
33569
33702
|
/** The menu button and the drawer's Close are ONE size — and the shared CSS pads the drawer like the header
|
|
33570
33703
|
* (`.iox-role-nav-drawer` re-declares dialog-pad as nav-pad) — so the Close lands where the menu button is and
|
|
@@ -33591,7 +33724,7 @@ function drawer(kit, root, pages, at, words, shows = MenuShows.Links, collection
|
|
|
33591
33724
|
const close = part$2(kit, 'drawer-close', BUTTON, { tag: 'button', ariaLabel: words.closeMenu }, 'button-ghost', NavRole.DrawerClose, { ...MENU_BUTTON_LAY });
|
|
33592
33725
|
close.children = [iconNode(kit, 'drawer-close-icon', CLOSE_ICON)];
|
|
33593
33726
|
close.interactions = [clickTo(kit, 'drawer-close', NavDialogAction.Close, dr.id)];
|
|
33594
|
-
head.children = [part$2(kit, 'drawer-brand', HEADING$
|
|
33727
|
+
head.children = [part$2(kit, 'drawer-brand', HEADING$2, { content: brandWords, level: 'h3' }, 'h3'), close];
|
|
33595
33728
|
dr.children = [head, ...menuShelf(kit, root, pages, shows, collections, words)];
|
|
33596
33729
|
const cta = find([root], NavRole.Cta);
|
|
33597
33730
|
if (cta) {
|
|
@@ -33602,7 +33735,7 @@ function drawer(kit, root, pages, at, words, shows = MenuShows.Links, collection
|
|
|
33602
33735
|
copy.styleProps = { ...copy.styleProps, alignSelf: 'stretch' };
|
|
33603
33736
|
// Board 1: the full-width drawer button centres its words — a label filling its line would sit at the start.
|
|
33604
33737
|
for (const label of copy.children ?? [])
|
|
33605
|
-
if (label.type === TEXT$
|
|
33738
|
+
if (label.type === TEXT$2)
|
|
33606
33739
|
label.styleProps = { ...label.styleProps, width: 'auto' };
|
|
33607
33740
|
dr.children.push(copy);
|
|
33608
33741
|
}
|
|
@@ -33645,7 +33778,7 @@ function shelfCard(kit, suffix, page, labelled, aspectRatio, lay) {
|
|
|
33645
33778
|
const picture = part$2(kit, `${suffix}-picture`, IMAGE$1, { src: '', alt: '' }, 'media', NavRole.DrawerPicture, { aspectRatio, height: 'auto' });
|
|
33646
33779
|
card.children = [picture];
|
|
33647
33780
|
if (labelled)
|
|
33648
|
-
card.children.push(part$2(kit, `${suffix}-label`, TEXT$
|
|
33781
|
+
card.children.push(part$2(kit, `${suffix}-label`, TEXT$2, { content: page.label, tag: 'span' }, 'eyebrow', null));
|
|
33649
33782
|
return card;
|
|
33650
33783
|
}
|
|
33651
33784
|
/**
|
|
@@ -33684,7 +33817,7 @@ function menuShelf(kit, root, pages, shows, collections, words) {
|
|
|
33684
33817
|
if (rest.length) {
|
|
33685
33818
|
const column = part$2(kit, 'drawer-more-links', CONTAINER$1, {}, 'box', NavRole.DrawerMoreLinks, { display: 'flex', flexDirection: 'column', gap: '2px', flexGrow: '1', flexShrink: '1', flexBasis: '140px', minWidth: '0px' });
|
|
33686
33819
|
column.children = [
|
|
33687
|
-
part$2(kit, 'drawer-more-caption', TEXT$
|
|
33820
|
+
part$2(kit, 'drawer-more-caption', TEXT$2, { content: words.more, tag: 'span' }, 'eyebrow', null),
|
|
33688
33821
|
...rest.map((p, i) => plain(p, count + i, { display: 'flex', alignItems: 'center', minHeight: '32px', width: 'auto' })),
|
|
33689
33822
|
];
|
|
33690
33823
|
more.children.push(column);
|
|
@@ -33750,10 +33883,10 @@ function dressMenu(kit, dr, menu, look, words) {
|
|
|
33750
33883
|
if (close)
|
|
33751
33884
|
dressButton(kit, close, 'drawer-close', look.button, true, words);
|
|
33752
33885
|
}
|
|
33753
|
-
function barItem(kit, i, page) {
|
|
33886
|
+
function barItem(kit, i, page, says) {
|
|
33754
33887
|
const item = part$2(kit, `bar-item-${i}`, LINKED, { linkType: LinkType.Page, pageRoute: page.route, target: '_self' }, 'bottom-bar-item', NavRole.BarItem, BAR_ITEM_LAY);
|
|
33755
33888
|
item.label = page.label;
|
|
33756
|
-
item.children = [iconNode(kit, `bar-item-${i}-icon`, barIconForRoute(page.route)), labelText(kit, `bar-item-${i}-label`,
|
|
33889
|
+
item.children = [iconNode(kit, `bar-item-${i}-icon`, barIconForRoute(page.route)), labelText(kit, `bar-item-${i}-label`, says)];
|
|
33757
33890
|
return item;
|
|
33758
33891
|
}
|
|
33759
33892
|
const BAR_ITEM_LAY = {
|
|
@@ -33777,13 +33910,15 @@ function withHome(root, pages, words) {
|
|
|
33777
33910
|
function barPages(root, pages, count, words) {
|
|
33778
33911
|
return withHome(root, pages, words).slice(0, count);
|
|
33779
33912
|
}
|
|
33780
|
-
function bar(kit, root, pages, shape, count, drawerId, at, words) {
|
|
33913
|
+
function bar$1(kit, root, pages, shape, count, drawerId, at, words, locale) {
|
|
33781
33914
|
// The node IS fixed (not only its element style): the builder canvas forces a node's own `position`
|
|
33782
33915
|
// with !important, so a stored `static` default would pin the bar into the flow there.
|
|
33783
33916
|
const b = part$2(kit, 'bar', CONTAINER$1, { htmlTag: 'nav' }, 'bottom-bar', NavRole.Bar, { position: 'fixed', justifyContent: 'space-around', alignItems: 'stretch', gap: '4px', padding: '6px 8px', width: 'auto' });
|
|
33784
33917
|
phoneOnly(b, at, 'flex');
|
|
33785
33918
|
const itemCount = shape === NavShape.Both ? count - 1 : count;
|
|
33786
|
-
|
|
33919
|
+
const shown = barPages(root, pages, itemCount, words);
|
|
33920
|
+
const says = barLabels(shown, shown.length + (shape === NavShape.Both && drawerId ? 1 : 0), locale);
|
|
33921
|
+
b.children = shown.map((p, i) => barItem(kit, i, p, says[i]));
|
|
33787
33922
|
if (shape === NavShape.Both && drawerId)
|
|
33788
33923
|
b.children.push(moreItem(kit, drawerId, words));
|
|
33789
33924
|
b.isGlobal = true;
|
|
@@ -33988,7 +34123,7 @@ function planNavShape(globals, shape, options = {}, navId) {
|
|
|
33988
34123
|
if (wantBar) {
|
|
33989
34124
|
const count = clampBarCount(options.barItems, shape);
|
|
33990
34125
|
if (!b)
|
|
33991
|
-
b = bar(kit, root, pages, shape, count, dr?.id ?? null, at, words);
|
|
34126
|
+
b = bar$1(kit, root, pages, shape, count, dr?.id ?? null, at, words, options.locale);
|
|
33992
34127
|
else {
|
|
33993
34128
|
moveDisplayOverride(b, at);
|
|
33994
34129
|
more = (b.children ?? []).find(c => c.role === NavRole.More) ?? null;
|
|
@@ -33999,8 +34134,10 @@ function planNavShape(globals, shape, options = {}, navId) {
|
|
|
33999
34134
|
const extra = barPages(root, pages, BAR_ITEMS_MAX, words).filter(p => !items.some(c => prop(c, 'pageRoute') === p.route));
|
|
34000
34135
|
while (items.length > want)
|
|
34001
34136
|
items.pop();
|
|
34002
|
-
while (items.length < want && extra.length)
|
|
34003
|
-
|
|
34137
|
+
while (items.length < want && extra.length) {
|
|
34138
|
+
const page = extra.shift();
|
|
34139
|
+
items.push(barItem(kit, items.length, page, barLabels([page], want + (shape === NavShape.Both ? 1 : 0), options.locale)[0]));
|
|
34140
|
+
}
|
|
34004
34141
|
}
|
|
34005
34142
|
if (shape === NavShape.Both && dr)
|
|
34006
34143
|
b.children.push(retarget(more ?? moreItem(kit, dr.id, words), dr.id));
|
|
@@ -34066,7 +34203,7 @@ function addBarItem(globals, options = {}) {
|
|
|
34066
34203
|
const words = menuWords(options.locale, sitePages.map(p => p.label));
|
|
34067
34204
|
const page = barPages(root, sitePages, BAR_ITEMS_MAX + 1, words).find(p => !linked.has(p.route))
|
|
34068
34205
|
?? { label: words.home, route: HOME_ROUTE$1 };
|
|
34069
|
-
const item = barItem(makeKit(out, root.id, options.newId), kids.length, page);
|
|
34206
|
+
const item = barItem(makeKit(out, root.id, options.newId), kids.length, page, barLabels([page], kids.length + 1, options.locale)[0]);
|
|
34070
34207
|
const more = kids.findIndex(c => c.role === NavRole.More);
|
|
34071
34208
|
if (more >= 0)
|
|
34072
34209
|
kids.splice(more, 0, item);
|
|
@@ -34408,6 +34545,8 @@ const ZERO$1 = '0px';
|
|
|
34408
34545
|
const RULE_PX = '1px';
|
|
34409
34546
|
const PHONE_GROUND_BRIGHTNESS = '0.75';
|
|
34410
34547
|
const GALLERY_BAR_TOP = '12px';
|
|
34548
|
+
/** How a list the section's rows are sized by stands in them (iox-ui#207). */
|
|
34549
|
+
const CONTENT_SIZED_ALIGN = 'start';
|
|
34411
34550
|
const STRETCH_KINDS = new Set([LayoutLayerKind.Photo, LayoutLayerKind.Shape, LayoutLayerKind.Gallery, LayoutLayerKind.Form]);
|
|
34412
34551
|
const STACKED_EFFECTS = new Set(['fade', 'cube', 'flip', 'cards']);
|
|
34413
34552
|
const SHADOW_UNDER_LIGHT = '0 1px 2px rgba(0,0,0,.55), 0 6px 34px rgba(0,0,0,.6)';
|
|
@@ -34536,18 +34675,122 @@ function isLight(colour, mode) {
|
|
|
34536
34675
|
const ground = name === LayoutColour.Ground || name === LayoutColour.Soft;
|
|
34537
34676
|
return mode === LayoutColourMode.Light ? ground : !ground;
|
|
34538
34677
|
}
|
|
34539
|
-
|
|
34678
|
+
/** The plan's equal row. */
|
|
34679
|
+
const EQUAL_ROW = 'minmax(0, 1fr)';
|
|
34680
|
+
const gridTemplate = (count) => `repeat(${count}, ${EQUAL_ROW})`;
|
|
34540
34681
|
/** The grid a section's layers are placed on: 12 columns per screen between an outer track a side (the page's column,
|
|
34541
|
-
* award §0c CW2 — `layoutGridColumns`), its rows. No inline padding: a bleed
|
|
34682
|
+
* award §0c CW2 — `layoutGridColumns`), its rows (`sectionRows`, or the plan's equal rows). No inline padding: a bleed
|
|
34683
|
+
* spans into an outer track. */
|
|
34542
34684
|
function gridLayout(rows, track) {
|
|
34543
34685
|
return {
|
|
34544
34686
|
display: 'grid',
|
|
34545
34687
|
gridTemplateColumns: layoutGridColumns(track),
|
|
34546
|
-
gridTemplateRows: gridTemplate(rows),
|
|
34688
|
+
gridTemplateRows: typeof rows === 'number' ? gridTemplate(rows) : rows,
|
|
34547
34689
|
gap: `${ZERO$1} ${LAYOUT_COLUMN_GAP}`,
|
|
34548
34690
|
padding: ZERO$1,
|
|
34549
34691
|
};
|
|
34550
34692
|
}
|
|
34693
|
+
/** The rows [first, end) the section's content-sized lists stand in, or null when it holds none. */
|
|
34694
|
+
function contentSizedBand(layers) {
|
|
34695
|
+
if (!layers.length)
|
|
34696
|
+
return null;
|
|
34697
|
+
return [Math.min(...layers.map(l => l.row[0])), Math.max(...layers.map(l => l.row[1]))];
|
|
34698
|
+
}
|
|
34699
|
+
/**
|
|
34700
|
+
* iox-ui#207: a laid section that holds a list grid is sized by its content. A list's height is its DATA's (how many
|
|
34701
|
+
* items, at the card's aspect), never the plan's: the café's four dishes ended 1105 px above the bottom of a two-screen
|
|
34702
|
+
* section, two empty screens at rest. So the rows the lists stand in are `auto` (as tall as the list), every other row
|
|
34703
|
+
* keeps its planned share of the plan's screens, and the section is as tall as its rows (`height: auto`, min-height 0):
|
|
34704
|
+
* a list of three is short, a list of twelve grows the section instead of being clipped. Null: the plan's equal rows.
|
|
34705
|
+
*/
|
|
34706
|
+
function sectionRows(rows, screens, band) {
|
|
34707
|
+
if (!band)
|
|
34708
|
+
return null;
|
|
34709
|
+
const planned = plannedRow(screens, rows);
|
|
34710
|
+
return joinTracks(Array.from({ length: rows }, (_, i) => (i + 1 >= band[0] && i + 1 < band[1] ? AUTO_ROW : planned)));
|
|
34711
|
+
}
|
|
34712
|
+
const AUTO_ROW = 'auto';
|
|
34713
|
+
/** A row's planned share of the section's screens. */
|
|
34714
|
+
const plannedRow = (screens, rows) => `calc(${screens * 100}svh / ${rows})`;
|
|
34715
|
+
/** Tracks as a `grid-template-rows` value, a run of equal tracks as one `repeat()`. */
|
|
34716
|
+
function joinTracks(tracks) {
|
|
34717
|
+
const runs = [];
|
|
34718
|
+
for (const track of tracks) {
|
|
34719
|
+
const last = runs[runs.length - 1];
|
|
34720
|
+
if (last?.track === track)
|
|
34721
|
+
last.n++;
|
|
34722
|
+
else
|
|
34723
|
+
runs.push({ track, n: 1 });
|
|
34724
|
+
}
|
|
34725
|
+
return runs.map(({ track, n }) => (n === 1 ? track : `repeat(${n}, ${track})`)).join(' ');
|
|
34726
|
+
}
|
|
34727
|
+
/** A `grid-template-rows` value as one track per row (`repeat(n, x)` expanded); null when it is not a list of tracks
|
|
34728
|
+
* this composer writes (`none`, a named area, a nested repeat). */
|
|
34729
|
+
function splitTracks(value) {
|
|
34730
|
+
const tokens = [];
|
|
34731
|
+
let depth = 0, buf = '';
|
|
34732
|
+
for (const ch of value.trim()) {
|
|
34733
|
+
if (ch === '(')
|
|
34734
|
+
depth++;
|
|
34735
|
+
if (ch === ')')
|
|
34736
|
+
depth--;
|
|
34737
|
+
if (/\s/.test(ch) && depth === 0) {
|
|
34738
|
+
if (buf)
|
|
34739
|
+
tokens.push(buf);
|
|
34740
|
+
buf = '';
|
|
34741
|
+
continue;
|
|
34742
|
+
}
|
|
34743
|
+
buf += ch;
|
|
34744
|
+
}
|
|
34745
|
+
if (buf)
|
|
34746
|
+
tokens.push(buf);
|
|
34747
|
+
const out = [];
|
|
34748
|
+
for (const t of tokens) {
|
|
34749
|
+
const rep = /^repeat\(\s*(\d+)\s*,\s*(.+)\)$/.exec(t);
|
|
34750
|
+
if (rep) {
|
|
34751
|
+
if (rep[2].includes('repeat('))
|
|
34752
|
+
return null;
|
|
34753
|
+
for (let i = 0; i < Number(rep[1]); i++)
|
|
34754
|
+
out.push(rep[2].trim());
|
|
34755
|
+
}
|
|
34756
|
+
else if (t === 'none' || t.startsWith('['))
|
|
34757
|
+
return null;
|
|
34758
|
+
else
|
|
34759
|
+
out.push(t);
|
|
34760
|
+
}
|
|
34761
|
+
return out.length ? out : null;
|
|
34762
|
+
}
|
|
34763
|
+
const GRID_ROW = /^\s*(\d+)\s*\/\s*(\d+)\s*$/;
|
|
34764
|
+
const SCREENS_HEIGHT = /^(\d+(?:\.\d+)?)svh$/;
|
|
34765
|
+
/**
|
|
34766
|
+
* iox-ui#216: the section a recomposed list frame stands in, sized for it — the half of `composeListFrame` that is not the
|
|
34767
|
+
* frame. A list re-mixed from a row slider to a grid (a Repeater, as tall as its data) needs the rows it stands in `auto`
|
|
34768
|
+
* and the section `height: auto`, exactly as `composeLayout` lays a section composed with that grid (`sectionRows`); every
|
|
34769
|
+
* other row keeps its planned share of the section's screens (an equal `1fr` row becomes `calc(<screens>svh / rows)`).
|
|
34770
|
+
* `section` is the laid section (its grid is itself or its transition body); `frameId` the frame's id. A frame that is
|
|
34771
|
+
* not content-sized, not in a grid cell, or a grid this composer did not write → the section unchanged. Pure.
|
|
34772
|
+
*/
|
|
34773
|
+
function listSectionRows(section, frameId, contentSized) {
|
|
34774
|
+
if (!contentSized)
|
|
34775
|
+
return section;
|
|
34776
|
+
const out = structuredClone(section);
|
|
34777
|
+
const grid = [out, ...(out.children ?? [])].find(n => (n.children ?? []).some(c => c.id === frameId));
|
|
34778
|
+
const frame = grid?.children?.find(c => c.id === frameId);
|
|
34779
|
+
const cell = GRID_ROW.exec(String(frame?.styleProps?.['gridRow'] ?? ''));
|
|
34780
|
+
const tracks = splitTracks(String(grid?.styleProps?.['gridTemplateRows'] ?? ''));
|
|
34781
|
+
if (!grid || !frame || !cell || !tracks)
|
|
34782
|
+
return section;
|
|
34783
|
+
const screens = SCREENS_HEIGHT.exec(String(out.styleProps?.['height'] ?? ''));
|
|
34784
|
+
const share = screens ? plannedRow(Number(screens[1]) / 100, tracks.length) : null;
|
|
34785
|
+
const [from, to] = [Number(cell[1]), Number(cell[2])];
|
|
34786
|
+
const sized = tracks.map((t, i) => (i + 1 >= from && i + 1 < to ? AUTO_ROW : t === EQUAL_ROW && share ? share : t));
|
|
34787
|
+
if (sized.some(t => t === EQUAL_ROW))
|
|
34788
|
+
return section; // a 1fr row of a section with no screens to share: leave it
|
|
34789
|
+
setStyleProps(grid, { gridTemplateRows: joinTracks(sized) });
|
|
34790
|
+
setStyleProps(out, { height: 'auto' });
|
|
34791
|
+
setStyleProps(frame, { alignSelf: CONTENT_SIZED_ALIGN });
|
|
34792
|
+
return out;
|
|
34793
|
+
}
|
|
34551
34794
|
/** The same grid on a phone: one column, in the section's `phone` order, with the M1.3 padding. */
|
|
34552
34795
|
function phoneStack(first) {
|
|
34553
34796
|
return {
|
|
@@ -34748,11 +34991,13 @@ function restingTracks(tracks) {
|
|
|
34748
34991
|
}
|
|
34749
34992
|
/** The node that sits on the grid: its cell, its stacking, its bleed and its tilt — and on a phone, its place in the stack. */
|
|
34750
34993
|
function place(node, l, lc, ctx) {
|
|
34751
|
-
|
|
34994
|
+
// iox-ui#207: a list as tall as its data stands at the top of its rows and takes no height from them — what a
|
|
34995
|
+
// recompose reads as "in flow" (`listFrameInFlow`), so a grid re-mixed to a row keeps its height in the auto rows.
|
|
34996
|
+
const stretch = STRETCH_KINDS.has(l.kind) && !lc.contentSized;
|
|
34752
34997
|
const values = {
|
|
34753
34998
|
gridColumn: gridColumnOf(l),
|
|
34754
34999
|
gridRow: `${l.row[0]} / ${l.row[1]}`,
|
|
34755
|
-
alignSelf: stretch ? 'stretch' : 'center',
|
|
35000
|
+
alignSelf: lc.contentSized ? CONTENT_SIZED_ALIGN : stretch ? 'stretch' : 'center',
|
|
34756
35001
|
zIndex: String(1 + (l.z ?? 0)),
|
|
34757
35002
|
position: 'relative',
|
|
34758
35003
|
minWidth: ZERO$1,
|
|
@@ -35188,6 +35433,11 @@ function composeList(id, l, mix, source, list, lc, ctx) {
|
|
|
35188
35433
|
}
|
|
35189
35434
|
const masonry = arrange === LayoutListArrange.Masonry || arrange === LayoutListArrange.Hang;
|
|
35190
35435
|
const item = listItem(`${id}-item`, mix, source, list, masonry, lc.path, ctx, strips);
|
|
35436
|
+
// iox-ui#207: a list laid as a Repeater (strips, a grid, a wall, a round-two arrangement) is as tall as its rows of
|
|
35437
|
+
// DATA — the section sizes the rows it stands in by it. A slider or a deck fills the cell it is given.
|
|
35438
|
+
const slides = arrange === LayoutListArrange.Row || deck || (arrange === LayoutListArrange.Fan && mix.move.includes(LayoutListMove.Drag));
|
|
35439
|
+
if (!slides)
|
|
35440
|
+
lc.contentSized = true;
|
|
35191
35441
|
if (strips)
|
|
35192
35442
|
return composeStrips(id, frame, item, mix, source, ctx, listItemRadius(mix));
|
|
35193
35443
|
// AW11-D16: drifting picture rows — the Marquee holding the list's pictures, twice.
|
|
@@ -35206,7 +35456,7 @@ function composeList(id, l, mix, source, list, lc, ctx) {
|
|
|
35206
35456
|
// LI4: the one that stands out — a deck's top card IS its standing out; strips draw their own (wider).
|
|
35207
35457
|
const shown = standout && !standWait && !deck ? standWrap(`${id}-stand`, item, standout) : item;
|
|
35208
35458
|
const fanDragged = arrange === LayoutListArrange.Fan && mix.move.includes(LayoutListMove.Drag);
|
|
35209
|
-
if (
|
|
35459
|
+
if (slides) {
|
|
35210
35460
|
const scrollPlays = mix.move.includes(LayoutListMove.Page) && !lc.held;
|
|
35211
35461
|
const played = scrollPlays || lc.held;
|
|
35212
35462
|
const drag = mix.move.includes(LayoutListMove.Drag);
|
|
@@ -35225,6 +35475,9 @@ function composeList(id, l, mix, source, list, lc, ctx) {
|
|
|
35225
35475
|
setStyleProps(slider, scrollPlays ? { width: FULL, height: FULL, minHeight: ZERO$1 } : deck ? {
|
|
35226
35476
|
// A deck fills its holder (below); the cards behind show past its edges.
|
|
35227
35477
|
width: FULL, height: FULL, minHeight: ZERO$1, display: 'flex', flexDirection: 'column', overflow: 'visible',
|
|
35478
|
+
} : lc.flow ? {
|
|
35479
|
+
// iox-ui#197: in flow there is no cell to fill — `inset: 0` in a frame of no height drew the row 0 px tall.
|
|
35480
|
+
position: 'relative', width: FULL, height: 'auto', minHeight: ZERO$1, display: 'flex', flexDirection: 'column',
|
|
35228
35481
|
} : {
|
|
35229
35482
|
position: 'absolute', top: ZERO$1, right: ZERO$1, bottom: ZERO$1, left: ZERO$1, width: FULL, height: FULL, minHeight: ZERO$1,
|
|
35230
35483
|
display: 'flex', flexDirection: 'column',
|
|
@@ -35252,7 +35505,7 @@ function composeList(id, l, mix, source, list, lc, ctx) {
|
|
|
35252
35505
|
if (node.role === SliderRole.Prev || node.role === SliderRole.Next)
|
|
35253
35506
|
node.props[LAYOUT_TOOLTIP_TRAIT] = node.props['ariaLabel'];
|
|
35254
35507
|
});
|
|
35255
|
-
frame.children = [oneWide ? deckHolder(`${id}-deck`, slider) : slider];
|
|
35508
|
+
frame.children = [oneWide ? deckHolder(`${id}-deck`, slider, !!lc.flow) : slider];
|
|
35256
35509
|
return frame;
|
|
35257
35510
|
}
|
|
35258
35511
|
// AW11: a round-two arrangement is a Repeater whose role the shared CSS draws from each row's index (D1).
|
|
@@ -35300,14 +35553,33 @@ const LIST_FRAME_PROPS = [LIST_MIX_PROP, 'colorScheme'];
|
|
|
35300
35553
|
* arrangement, role, room and classes. Pure.
|
|
35301
35554
|
*/
|
|
35302
35555
|
function composeListFrame(input, previous) {
|
|
35556
|
+
if (input.flow === undefined && previous)
|
|
35557
|
+
input = { ...input, flow: listFrameInFlow(previous) };
|
|
35303
35558
|
const composed = composeListOnly(input, previous?.id ?? input.id ?? 'list');
|
|
35304
35559
|
if (!previous)
|
|
35305
|
-
return { frame: composed.frame, gaps: composed.gaps, edits: [] };
|
|
35560
|
+
return { frame: composed.frame, gaps: composed.gaps, edits: [], contentSized: composed.contentSized };
|
|
35306
35561
|
// What the composer draws for the mix the frame wears now: anything else on the page is the owner's (#122).
|
|
35307
35562
|
const was = input.was ?? listMixOfFrame(previous, input.list);
|
|
35308
35563
|
const baseline = was ? composeListOnly({ ...input, mix: was }, previous.id).frame : null;
|
|
35309
35564
|
const kept = keepListParts(previous, baseline, composed.frame);
|
|
35310
|
-
return { frame: keepPlace(previous, { ...composed.frame, children: kept.children }), gaps: composed.gaps, edits: kept.edits };
|
|
35565
|
+
return { frame: keepPlace(previous, { ...composed.frame, children: kept.children }), gaps: composed.gaps, edits: kept.edits, contentSized: composed.contentSized };
|
|
35566
|
+
}
|
|
35567
|
+
/**
|
|
35568
|
+
* iox-ui#216: recompose the list frame `frameId` INSIDE its laid section — the frame (`composeListFrame`) and the section's
|
|
35569
|
+
* rows for it (`listSectionRows`), the one call a re-mix applies, so a row slider re-mixed to a grid gets the rows a
|
|
35570
|
+
* section composed with that grid has. `list` is null (and the section unchanged) when the section holds no such frame.
|
|
35571
|
+
*/
|
|
35572
|
+
function composeListInSection(section, frameId, input) {
|
|
35573
|
+
let previous = null;
|
|
35574
|
+
walkSerialized([section], n => { if (!previous && n.id === frameId)
|
|
35575
|
+
previous = n; });
|
|
35576
|
+
if (!previous)
|
|
35577
|
+
return { section, list: null };
|
|
35578
|
+
const list = composeListFrame(input, previous);
|
|
35579
|
+
const replaced = structuredClone(section);
|
|
35580
|
+
walkSerialized([replaced], n => { if (n.children)
|
|
35581
|
+
n.children = n.children.map(c => (c.id === frameId ? list.frame : c)); });
|
|
35582
|
+
return { section: listSectionRows(replaced, frameId, list.contentSized), list };
|
|
35311
35583
|
}
|
|
35312
35584
|
/** `composeList` for one frame under an id. */
|
|
35313
35585
|
function composeListOnly(input, id) {
|
|
@@ -35323,8 +35595,9 @@ function composeListOnly(input, id) {
|
|
|
35323
35595
|
const col = input.col ?? [1, 13];
|
|
35324
35596
|
const layer = { kind: LayoutLayerKind.Gallery, col: [col[0], col[1]], row: [1, 2], text: input.label, gallery: { slides: [], source: input.source, list: input.mix } };
|
|
35325
35597
|
const path = input.path ?? 'list';
|
|
35326
|
-
const lc = { section: { ground: input.ground }, si: 0, li: 0, path, held: !!input.held, track: 1, order: 0, phoneGap: 0, phoneAlign: 'start' };
|
|
35327
|
-
|
|
35598
|
+
const lc = { section: { ground: input.ground }, si: 0, li: 0, path, held: !!input.held, track: 1, order: 0, phoneGap: 0, phoneAlign: 'start', flow: !!input.flow };
|
|
35599
|
+
const frame = composeList(id, layer, input.mix, input.source, input.list, lc, ctx);
|
|
35600
|
+
return { frame, gaps: ctx.gaps, contentSized: !!lc.contentSized };
|
|
35328
35601
|
}
|
|
35329
35602
|
/** The props a part's field is bound to when the card SHOWS it (an image's alt and an item's page link only follow). */
|
|
35330
35603
|
const LIST_PART_PROPS = new Set(['content', 'src']);
|
|
@@ -35368,6 +35641,13 @@ function keepPlace(previous, composed) {
|
|
|
35368
35641
|
frame.children = composed.children;
|
|
35369
35642
|
return frame;
|
|
35370
35643
|
}
|
|
35644
|
+
/** A list frame on the page stands in flow when no layout placed it in a grid cell (`place` writes its `gridRow`): a free
|
|
35645
|
+
* section's slot (iox-ui#197) — or when its cell gives it no height: a list the section's rows are sized by stands at
|
|
35646
|
+
* their top (iox-ui#207, `place`). A Container's own `gridRow` is `auto`. */
|
|
35647
|
+
function listFrameInFlow(frame) {
|
|
35648
|
+
const row = frame.styleProps?.['gridRow'];
|
|
35649
|
+
return !row || row === 'auto' || frame.styleProps?.['alignSelf'] === CONTENT_SIZED_ALIGN;
|
|
35650
|
+
}
|
|
35371
35651
|
/** The page that shows one item, as a composed list frame links to it (`linkToDetail`) — so a recompose keeps the link.
|
|
35372
35652
|
* Undefined when its items link nowhere (or to an address of their own). */
|
|
35373
35653
|
function listDetailOf(frame) {
|
|
@@ -35393,9 +35673,13 @@ function listItemRadius(mix) {
|
|
|
35393
35673
|
* scoped `.swiper { width: 100% }` out-ranks a node's width class. On a phone the holder is the cell's width and the
|
|
35394
35674
|
* shared `.swiper.swiper-cards` rule (iox-design.css) makes the deck a centred card with its neighbours peeking.
|
|
35395
35675
|
*/
|
|
35396
|
-
function deckHolder(id, slider) {
|
|
35676
|
+
function deckHolder(id, slider, flow) {
|
|
35397
35677
|
const holder = create$1(id, T$1.Container, {}, NO_ELEMENT_STYLE);
|
|
35398
|
-
|
|
35678
|
+
// In flow (a free section's slot, iox-ui#197) the deck stands as tall as its cards; in a cell it fills the cell.
|
|
35679
|
+
setStyleProps(holder, flow ? {
|
|
35680
|
+
position: 'relative', width: LIST_DECK_WIDTH, maxWidth: FULL, height: 'auto', minHeight: ZERO$1, margin: '0px auto',
|
|
35681
|
+
display: 'flex', flexDirection: 'column',
|
|
35682
|
+
} : {
|
|
35399
35683
|
position: 'absolute', top: ZERO$1, right: ZERO$1, bottom: ZERO$1, left: ZERO$1, width: LIST_DECK_WIDTH, maxWidth: FULL, height: FULL,
|
|
35400
35684
|
minHeight: ZERO$1, margin: '0px auto', display: 'flex', flexDirection: 'column',
|
|
35401
35685
|
});
|
|
@@ -35692,8 +35976,10 @@ function composeLayer(l, lc, ctx) {
|
|
|
35692
35976
|
if (l.kinetic && textual)
|
|
35693
35977
|
tracks.push({ prop: 'words', keys: [[0, 0], [KINETIC_ALL_LIT, 100]] });
|
|
35694
35978
|
if (tracks.length) {
|
|
35695
|
-
|
|
35696
|
-
|
|
35979
|
+
// A step's in and out are one timeline (iox-ui#195): stamped as one track, as the editor and both renderers read it.
|
|
35980
|
+
const merged = mergeSceneTracks(tracks);
|
|
35981
|
+
outer.sceneTracks = merged;
|
|
35982
|
+
outer.scenePhoneTracks = restingTracks(merged);
|
|
35697
35983
|
gap(ctx, LayoutGapCode.PhoneRest, lc.path, 'stands at rest on a phone');
|
|
35698
35984
|
}
|
|
35699
35985
|
}
|
|
@@ -35778,6 +36064,7 @@ function composeSection$1(s, si, prevGround, ctx) {
|
|
|
35778
36064
|
const order = Array.isArray(s.phone) && s.phone.length ? s.phone : s.layers.map((_, i) => i);
|
|
35779
36065
|
const textKinds = s.layers.filter(x => LAYOUT_TEXT_KINDS.has(x.kind) || x.kind === LayoutLayerKind.Button);
|
|
35780
36066
|
const phoneAlign = textKinds.length && textKinds.every(x => x.align === 'center') ? 'center' : 'start';
|
|
36067
|
+
const contentSized = [];
|
|
35781
36068
|
const layers = s.layers.map((l, li) => {
|
|
35782
36069
|
const at = order.indexOf(li);
|
|
35783
36070
|
const prevIdx = at > 0 ? order[at - 1] : -1;
|
|
@@ -35786,8 +36073,14 @@ function composeSection$1(s, si, prevGround, ctx) {
|
|
|
35786
36073
|
section: s, si, li, path: `sections[${si}].layers[${li}]`, held, track: held ? track : 1,
|
|
35787
36074
|
order: at < 0 ? s.layers.length + li : at, phoneGap: phoneGapBefore(visiblePrev, l), phoneAlign,
|
|
35788
36075
|
};
|
|
35789
|
-
|
|
36076
|
+
const node = composeLayer(l, lc, ctx);
|
|
36077
|
+
if (lc.contentSized)
|
|
36078
|
+
contentSized.push(l);
|
|
36079
|
+
return node;
|
|
35790
36080
|
});
|
|
36081
|
+
// iox-ui#207: a section holding a list grid is as tall as what it holds (a held stage is one screen — never).
|
|
36082
|
+
const rowsByContent = held ? null : sectionRows(s.rows, s.screens, contentSizedBand(contentSized));
|
|
36083
|
+
const sized = rowsByContent ? { height: 'auto' } : {};
|
|
35791
36084
|
const root = create$1(id, T$1.Section, {}, NO_ELEMENT_STYLE);
|
|
35792
36085
|
root.label = s.id;
|
|
35793
36086
|
const paint = ground.startsWith('photo:') ? LAYOUT_COLOUR_TOKEN[LayoutColour.Ink] : groundPaint(ground);
|
|
@@ -35800,11 +36093,11 @@ function composeSection$1(s, si, prevGround, ctx) {
|
|
|
35800
36093
|
const transition = transitionOf(s, prevGround, ctx, si);
|
|
35801
36094
|
if (!held && transition) {
|
|
35802
36095
|
// The previous ground behind; the section's own ground and layers in its body, opened together.
|
|
35803
|
-
setStyleProps(root, { ...base, backgroundColor: transition.under, display: 'block', padding: ZERO$1, overflow: 'clip' });
|
|
36096
|
+
setStyleProps(root, { ...base, ...sized, backgroundColor: transition.under, display: 'block', padding: ZERO$1, overflow: 'clip' });
|
|
35804
36097
|
phone(root, { height: 'auto', backgroundColor: veilPaint(ground) });
|
|
35805
36098
|
const body = create$1(`${id}-body`, T$1.Container, {}, NO_ELEMENT_STYLE);
|
|
35806
36099
|
body.label = `${s.id} · ${s.transition}`;
|
|
35807
|
-
setStyleProps(body, { position: 'relative', width: FULL, height: FULL, minHeight: ZERO$1, backgroundColor: veilPaint(ground), ...gridLayout(s.rows, 1) });
|
|
36100
|
+
setStyleProps(body, { position: 'relative', width: FULL, height: FULL, minHeight: ZERO$1, backgroundColor: veilPaint(ground), ...gridLayout(rowsByContent ?? s.rows, 1) });
|
|
35808
36101
|
phone(body, phoneStack(si === 0));
|
|
35809
36102
|
body.interactions = [transition.clip];
|
|
35810
36103
|
body.children = layers;
|
|
@@ -35812,7 +36105,7 @@ function composeSection$1(s, si, prevGround, ctx) {
|
|
|
35812
36105
|
return root;
|
|
35813
36106
|
}
|
|
35814
36107
|
if (!held) {
|
|
35815
|
-
setStyleProps(root, { ...base, ...gridLayout(s.rows, 1), overflow: 'clip' });
|
|
36108
|
+
setStyleProps(root, { ...base, ...sized, ...gridLayout(rowsByContent ?? s.rows, 1), overflow: 'clip' });
|
|
35816
36109
|
phone(root, phoneStack(si === 0));
|
|
35817
36110
|
root.children = [...behind, ...layers];
|
|
35818
36111
|
return root;
|
|
@@ -36236,6 +36529,11 @@ const WORD_KINDS = new Set(['word', 'heading', 'text', 'label', 'number', 'list'
|
|
|
36236
36529
|
const textOf$1 = (el) => String(el.textContent ?? '').trim();
|
|
36237
36530
|
/** A layer node's class (`iox-node-<id>`) — what both renderers put on every node. */
|
|
36238
36531
|
const layoutNodeClass = (prefix, i, j) => `iox-node-${prefix}-s${i}${j === undefined ? '' : `-l${j}`}`;
|
|
36532
|
+
/** The kinds whose box is a cell they stretch over, not what they hold (a list's frame): their content is measured. */
|
|
36533
|
+
const HOLDER_KINDS = new Set(['gallery']);
|
|
36534
|
+
const union = (rects) => (rects.length ? {
|
|
36535
|
+
l: Math.min(...rects.map(r => r.l)), t: Math.min(...rects.map(r => r.t)), r: Math.max(...rects.map(r => r.r)), b: Math.max(...rects.map(r => r.b)),
|
|
36536
|
+
} : null);
|
|
36239
36537
|
/** In the browser: the reader of the nodes rendered under `root`, in the root's own coordinates. */
|
|
36240
36538
|
function layerMetricsOf(root) {
|
|
36241
36539
|
const origin = root.getBoundingClientRect();
|
|
@@ -36260,8 +36558,11 @@ function layerMetricsOf(root) {
|
|
|
36260
36558
|
words = tight && tight.width > 0 ? rel(tight) : box;
|
|
36261
36559
|
}
|
|
36262
36560
|
}
|
|
36561
|
+
const held = HOLDER_KINDS.has(kind)
|
|
36562
|
+
? union(Array.from(el.children).map(c => rel(c.getBoundingClientRect())).filter(r => r.r > r.l && r.b > r.t))
|
|
36563
|
+
: null;
|
|
36263
36564
|
return {
|
|
36264
|
-
kind, z: Number(style?.zIndex) || 0, box, words,
|
|
36565
|
+
kind, z: Number(style?.zIndex) || 0, box, words, ...(held ? { content: held } : {}),
|
|
36265
36566
|
size: parseFloat(style?.fontSize ?? '') || 16, weight: Number(style?.fontWeight) || 400, color: style?.color ?? '',
|
|
36266
36567
|
};
|
|
36267
36568
|
},
|
|
@@ -36371,7 +36672,17 @@ const RENDER_CHECK = {
|
|
|
36371
36672
|
contrastBody: 4.5,
|
|
36372
36673
|
/** The light's spread over which a part of a photo is busy. */
|
|
36373
36674
|
busy: 0.11,
|
|
36675
|
+
/** iox-ui#207: a laid section's content may end at most this share of a screen above its bottom — more reads as an
|
|
36676
|
+
* empty screen at rest (the café's dish grid ended 1105 px above its section's bottom; one line held a whole screen). */
|
|
36677
|
+
emptyBelow: 0.5,
|
|
36374
36678
|
};
|
|
36679
|
+
/** Kinds that decorate, never hold: a shape over a whole section does not make it full. */
|
|
36680
|
+
const DECORATION_KINDS = new Set(['shape']);
|
|
36681
|
+
/** Where a section's content ends, by the bottoms of its layers' words, held content or boxes; null with none measured. */
|
|
36682
|
+
function contentEnd(layers) {
|
|
36683
|
+
const ends = layers.filter(l => !DECORATION_KINDS.has(l.kind)).map(l => (l.words ?? l.content ?? l.box).b);
|
|
36684
|
+
return ends.length ? Math.max(...ends) : null;
|
|
36685
|
+
}
|
|
36375
36686
|
const ratio = (a, b) => (Math.max(a, b) + 0.05) / (Math.min(a, b) + 0.05);
|
|
36376
36687
|
/** Measured boxes (each viewport) + the pixels under the words on photos → the render issues, by path, said once each. */
|
|
36377
36688
|
function judgeLayoutRender(measured, pixels = []) {
|
|
@@ -36432,6 +36743,15 @@ function judgeLayoutRender(measured, pixels = []) {
|
|
|
36432
36743
|
}
|
|
36433
36744
|
if (on === LayoutViewport.Phone && m.scrollWidth > m.width + 1)
|
|
36434
36745
|
say('sideways', 'sections', `the page scrolls sideways on a phone (${m.scrollWidth - m.width}px too wide)`);
|
|
36746
|
+
// iox-ui#207: no resting screen of flat ground — a section (not a held stage: its runway scrolls under it) whose
|
|
36747
|
+
// content ends more than half a screen above its bottom.
|
|
36748
|
+
m.sections.forEach((sec, i) => {
|
|
36749
|
+
const end = sec.held || sec.height <= 0 ? null : contentEnd(m.layers.filter(l => l.section === i));
|
|
36750
|
+
const empty = end === null ? 0 : sec.top + sec.height - end;
|
|
36751
|
+
if (empty > RENDER_CHECK.emptyBelow * m.height) {
|
|
36752
|
+
say(`empty:${i}:${on}`, `sections[${i}]`, `sections[${i}]: its content ends ${Math.round(empty)}px (${(empty / m.height).toFixed(1)} of a screen) above its bottom on the ${on} — fewer screens or rows, or something in the empty rows`);
|
|
36753
|
+
}
|
|
36754
|
+
});
|
|
36435
36755
|
}
|
|
36436
36756
|
const layerAt = new Map(measured.flatMap(m => m.layers.map(l => [`${m.viewport}:${l.path}`, l])));
|
|
36437
36757
|
for (const px of pixels) {
|
|
@@ -36677,7 +36997,7 @@ function slotOf(n, id, ctx) {
|
|
|
36677
36997
|
const asked = (n.opts ?? []).filter(o => o && o !== FREE_OPEN_LIGHTBOX);
|
|
36678
36998
|
const words = [...LIST_SLOT_WORDS.filter(w => !asked.some(a => a.split(':')[0] === w.split(':')[0])), ...asked];
|
|
36679
36999
|
const mix = listMixFromWords(words, Object.keys(list.roles));
|
|
36680
|
-
const frame = composeListFrame({ id: `${id}-list`, mix, source: slot.ref, list, locale, label: n.purpose ?? slot.ref, path: n.id, ...(ctx.o.motion ? { motion: ctx.o.motion } : {}) }).frame;
|
|
37000
|
+
const frame = composeListFrame({ id: `${id}-list`, mix, source: slot.ref, list, locale, label: n.purpose ?? slot.ref, path: n.id, flow: true, ...(ctx.o.motion ? { motion: ctx.o.motion } : {}) }).frame;
|
|
36681
37001
|
if (!(n.opts ?? []).includes(FREE_OPEN_LIGHTBOX))
|
|
36682
37002
|
return [frame];
|
|
36683
37003
|
const image = list.roles[IMAGE_ROLE];
|
|
@@ -36857,7 +37177,7 @@ const FIELD_GROUP = 'FieldGroup';
|
|
|
36857
37177
|
/** The second channel beside Send (premium N2): the quieter button. */
|
|
36858
37178
|
const CHANNEL_STYLE = 'button-secondary';
|
|
36859
37179
|
const LABEL_TAG = 'span';
|
|
36860
|
-
const TEXT = 'Text';
|
|
37180
|
+
const TEXT$1 = 'Text';
|
|
36861
37181
|
/** A button's label reads the button's own type and ink (contract element style, W1.1 Q6). */
|
|
36862
37182
|
const BUTTON_LABEL_STYLE = 'button-label';
|
|
36863
37183
|
const ITEM_VALUE_PATH = '$';
|
|
@@ -37217,7 +37537,7 @@ function presetChildren(preset, id, locale, whatsApp = '') {
|
|
|
37217
37537
|
const submit = create(`${id}-${n}`, SUBMIT_BUTTON, { label: preset.submitLabel, loadingLabel: busyWord(locale) });
|
|
37218
37538
|
const blocks = [[FORM_SUCCESS, preset.successText], [FORM_ERROR, preset.errorText]].map(([type, words], i) => {
|
|
37219
37539
|
const block = create(`${id}-${n + 1 + i}`, type);
|
|
37220
|
-
block.children = [create(`${id}-${n + 1 + i}-0`, TEXT, { content: words })];
|
|
37540
|
+
block.children = [create(`${id}-${n + 1 + i}-0`, TEXT$1, { content: words })];
|
|
37221
37541
|
return block;
|
|
37222
37542
|
});
|
|
37223
37543
|
const channel = formChannel(preset, locale, whatsApp);
|
|
@@ -37247,7 +37567,7 @@ function actionsRow(submit, channel, id, whatsApp = '') {
|
|
|
37247
37567
|
const href = channel.kind === ChannelKind.WhatsApp ? whatsApp : '';
|
|
37248
37568
|
const button = create(`${id}-channel`, BUTTON_BLOCK, { tag: 'a', linkType: LinkType.External, href, target: channelOpensNewTab(channel.kind) ? '_blank' : '_self' }, CHANNEL_STYLE);
|
|
37249
37569
|
button.role = FORM_CHANNEL_ROLE;
|
|
37250
|
-
button.children = [create(`${id}-channel-0`, TEXT, { content: channel.label }, BUTTON_LABEL_STYLE)];
|
|
37570
|
+
button.children = [create(`${id}-channel-0`, TEXT$1, { content: channel.label }, BUTTON_LABEL_STYLE)];
|
|
37251
37571
|
row.children = [submit, button];
|
|
37252
37572
|
return row;
|
|
37253
37573
|
}
|
|
@@ -37379,7 +37699,7 @@ function composeNode(given, id, repeater, ctx) {
|
|
|
37379
37699
|
}
|
|
37380
37700
|
if (words.value !== undefined) {
|
|
37381
37701
|
if (type === BUTTON_BLOCK) {
|
|
37382
|
-
node.children = [create(`${id}-label`, TEXT, { content: words.value, tag: LABEL_TAG }, BUTTON_LABEL_STYLE)];
|
|
37702
|
+
node.children = [create(`${id}-label`, TEXT$1, { content: words.value, tag: LABEL_TAG }, BUTTON_LABEL_STYLE)];
|
|
37383
37703
|
}
|
|
37384
37704
|
else {
|
|
37385
37705
|
const prop = TEXT_PROP[type];
|
|
@@ -37687,7 +38007,7 @@ function copyPlaceholders(card, ctx) {
|
|
|
37687
38007
|
ctx.placeholders.push({ nodeId: part.id, owner: ctx.owner, kind: PlaceholderKind.Copy, text: String(part.props?.['content'] ?? '') });
|
|
37688
38008
|
}
|
|
37689
38009
|
const badge = findByRole(card, CardRole.Badge);
|
|
37690
|
-
const words = badge?.children?.find(c => c.type === TEXT);
|
|
38010
|
+
const words = badge?.children?.find(c => c.type === TEXT$1);
|
|
37691
38011
|
if (words)
|
|
37692
38012
|
ctx.placeholders.push({ nodeId: words.id, owner: ctx.owner, kind: PlaceholderKind.Copy, text: String(words.props?.['content'] ?? '') });
|
|
37693
38013
|
}
|
|
@@ -38816,7 +39136,7 @@ function withPopup(plan, globals, issues) {
|
|
|
38816
39136
|
}
|
|
38817
39137
|
// ── AW1: the law (award-ingredients-plan §4) ──────────────────────────────────────────────────────────────────────
|
|
38818
39138
|
const LINK = 'Link';
|
|
38819
|
-
const HEADING = 'Heading';
|
|
39139
|
+
const HEADING$1 = 'Heading';
|
|
38820
39140
|
const SECTION = 'Section';
|
|
38821
39141
|
const CONTAINER = 'Container';
|
|
38822
39142
|
/** Inline words: the legal line reads as one sentence, its links inside it. */
|
|
@@ -38844,8 +39164,8 @@ function composeLegalPage(kind, key, route, plan, placeholders) {
|
|
|
38844
39164
|
section.label = 'Legal page';
|
|
38845
39165
|
const column = create(`${key}-0`, CONTAINER, {}, 'box');
|
|
38846
39166
|
setStyleProps(column, { display: 'flex', flexDirection: 'column', gap: '18px', maxWidth: '720px', width: '100%', margin: '0px auto 0px auto' });
|
|
38847
|
-
const heading = create(`${key}-0-0`, HEADING, { content: title, level: 'h1' }, 'h1');
|
|
38848
|
-
const text = create(`${key}-0-1`, TEXT, { content: label }, 'body');
|
|
39167
|
+
const heading = create(`${key}-0-0`, HEADING$1, { content: title, level: 'h1' }, 'h1');
|
|
39168
|
+
const text = create(`${key}-0-1`, TEXT$1, { content: label }, 'body');
|
|
38849
39169
|
column.children = [heading, text];
|
|
38850
39170
|
section.children = [column];
|
|
38851
39171
|
placeholders.push({ nodeId: text.id, owner: key, kind: PlaceholderKind.Policy, text: label });
|
|
@@ -38897,7 +39217,7 @@ function formLegalLine(form, routes, locale) {
|
|
|
38897
39217
|
line.children = legalFormLine(locale, routes.has(LegalKind.Terms)).map((part, i) => ('kind' in part
|
|
38898
39218
|
? legalLink(`${id}-${i}`, part.kind, routes.get(part.kind), locale, { ...INLINE, ...LEGAL_SENTENCE_TYPE })
|
|
38899
39219
|
: (() => {
|
|
38900
|
-
const words = create(`${id}-${i}`, TEXT, { content: part.text, tag: 'span' }, 'small');
|
|
39220
|
+
const words = create(`${id}-${i}`, TEXT$1, { content: part.text, tag: 'span' }, 'small');
|
|
38901
39221
|
setStyleProps(words, INLINE);
|
|
38902
39222
|
return words;
|
|
38903
39223
|
})()));
|
|
@@ -39600,7 +39920,7 @@ const STOP_WORDS = new Set([
|
|
|
39600
39920
|
'tell', 'story', 'item', 'service', 'project',
|
|
39601
39921
|
]);
|
|
39602
39922
|
const MIN_WORD = 3;
|
|
39603
|
-
const HTML_TAG = /<[^>]*>/g;
|
|
39923
|
+
const HTML_TAG$1 = /<[^>]*>/g;
|
|
39604
39924
|
const WORD_SPLIT = /[^\p{L}\p{N}]+/u;
|
|
39605
39925
|
/** Nominal ratios (width / height) of an orientation when the manifest gives no size. */
|
|
39606
39926
|
const ORIENTATION_RATIO = {
|
|
@@ -39637,7 +39957,7 @@ function stockWords(...texts) {
|
|
|
39637
39957
|
for (const text of texts) {
|
|
39638
39958
|
if (typeof text !== 'string')
|
|
39639
39959
|
continue;
|
|
39640
|
-
for (const raw of text.replace(HTML_TAG, ' ').split(WORD_SPLIT)) {
|
|
39960
|
+
for (const raw of text.replace(HTML_TAG$1, ' ').split(WORD_SPLIT)) {
|
|
39641
39961
|
const w = stockWord(raw);
|
|
39642
39962
|
if (w.length >= MIN_WORD && !STOP_WORDS.has(w) && !/^\d+$/.test(w))
|
|
39643
39963
|
out.add(w);
|
|
@@ -39716,6 +40036,209 @@ function scoreStockPhoto(photo, need, imagery = []) {
|
|
|
39716
40036
|
return subjectPoints + shapePoints + WORD_POINTS * Math.min(MAX_WORD_MATCHES, matched) + IMAGERY_POINTS * Math.min(MAX_IMAGERY_MATCHES, imageryMatched);
|
|
39717
40037
|
}
|
|
39718
40038
|
|
|
40039
|
+
/**
|
|
40040
|
+
* What a stock photo is ABOUT, against what its place is about (iox-cms#130) — the closed tables the relevance check
|
|
40041
|
+
* (`stockRelevance`, stock-search.ts) and the query (`stockSearchFocus`) read. Pure data and word helpers, English (the
|
|
40042
|
+
* provider's tags) with a small Hebrew table for the place's own words (a Hebrew site's heading says "החלקה", the photo's
|
|
40043
|
+
* tags say "manicure").
|
|
40044
|
+
*
|
|
40045
|
+
* - PARTS of a business (`STOCK_FACETS`): a salon does hair, nails, make-up; a hotel has rooms, a table, a pool. A place
|
|
40046
|
+
* whose own words name a part takes a photo of THAT part — the "straightening" card never a manicure.
|
|
40047
|
+
* - Words that say a photo is about SOMETHING ELSE (`STOCK_UNRELATED_WORDS`): a laptop on a café's table, a cruise ship in
|
|
40048
|
+
* the bay, a drain in a basin. Off-subject unless the place or the business names it.
|
|
40049
|
+
* - Places on the map (`STOCK_PLACE_NAMES`): a photo tagged "china, sanya" shows somewhere else. Off-subject unless the
|
|
40050
|
+
* place's words name one of them (a Haifa hotel keeps a photo tagged "haifa").
|
|
40051
|
+
* - Scenery words (`STOCK_GENERIC_WORDS`): "bay", "sea", "view" — never what a query asks alone (Pixabay answers "hotel
|
|
40052
|
+
* view" with resort towers).
|
|
40053
|
+
*/
|
|
40054
|
+
/** Words that only say where a photo looks — never a query's focus, never enough to tie a photo to a place. */
|
|
40055
|
+
const STOCK_GENERIC_WORDS = new Set([
|
|
40056
|
+
'view', 'landscape', 'scenery', 'scenic', 'panorama', 'horizon', 'beach', 'sea', 'ocean', 'bay', 'coast', 'coastline', 'shore',
|
|
40057
|
+
'sky', 'sunset', 'sunrise', 'cloud', 'city', 'town', 'mountain', 'hill', 'forest', 'nature', 'water', 'lake', 'river', 'island',
|
|
40058
|
+
'outdoor', 'outside', 'travel', 'holiday', 'vacation', 'tourism', 'summer', 'morning', 'evening', 'night', 'below', 'above',
|
|
40059
|
+
].map(stockWord));
|
|
40060
|
+
/**
|
|
40061
|
+
* The parts of a business a photo shows (English, compared as `stockWord`s). A word of five letters or more counts in its
|
|
40062
|
+
* longer forms (`straighten` → `straightening`). Keys are stable ids, never shown.
|
|
40063
|
+
*/
|
|
40064
|
+
const STOCK_FACETS = {
|
|
40065
|
+
hair: [
|
|
40066
|
+
'hair', 'haircut', 'hairdresser', 'hairdressing', 'hairstyle', 'hairstylist', 'straighten', 'straightening', 'straightener',
|
|
40067
|
+
'keratin', 'blowout', 'blowdry', 'barber', 'barbershop', 'shampoo', 'comb', 'scissors', 'curl', 'curly', 'braid', 'highlights',
|
|
40068
|
+
'balayage', 'clipper', 'beard',
|
|
40069
|
+
],
|
|
40070
|
+
nails: ['manicure', 'manicurist', 'pedicure', 'nail', 'fingernail', 'toenail'],
|
|
40071
|
+
makeup: ['makeup', 'lipstick', 'mascara', 'eyeshadow', 'eyeliner', 'foundation', 'blush'],
|
|
40072
|
+
brows: ['eyelash', 'lash', 'eyebrow', 'brow'],
|
|
40073
|
+
skin: ['facial', 'skincare', 'peel', 'serum'],
|
|
40074
|
+
massage: ['massage', 'masseur', 'masseuse'],
|
|
40075
|
+
sleep: ['bedroom', 'bed', 'suite', 'pillow', 'bedding', 'duvet', 'headboard', 'mattress', 'linen'],
|
|
40076
|
+
meal: ['breakfast', 'brunch', 'dinner', 'lunch', 'meal', 'dining', 'buffet'],
|
|
40077
|
+
coffee: ['coffee', 'espresso', 'cappuccino', 'latte', 'barista'],
|
|
40078
|
+
baking: ['bread', 'pastry', 'croissant', 'cake', 'cookie', 'muffin', 'baguette', 'dough', 'patisserie'],
|
|
40079
|
+
pool: ['pool', 'swimming', 'jacuzzi'],
|
|
40080
|
+
};
|
|
40081
|
+
/**
|
|
40082
|
+
* Words that say a photo shows something no place of a small business asked for — a device on the table, a vehicle in the
|
|
40083
|
+
* frame, plumbing, a skyline. Off-subject unless the place's words or the business's own vocabulary name it.
|
|
40084
|
+
*/
|
|
40085
|
+
const STOCK_UNRELATED_WORDS = new Set([
|
|
40086
|
+
// devices
|
|
40087
|
+
'laptop', 'computer', 'keyboard', 'smartphone', 'iphone', 'phone', 'mobile', 'tablet', 'ipad', 'monitor', 'screen', 'macbook',
|
|
40088
|
+
// vehicles and their places
|
|
40089
|
+
'cruise', 'cruiser', 'ship', 'cruiseship', 'ferry', 'tanker', 'airplane', 'aeroplane', 'aircraft', 'airport', 'plane', 'train',
|
|
40090
|
+
'railway', 'truck', 'bus', 'car', 'vehicle', 'traffic', 'motorcycle', 'highway',
|
|
40091
|
+
// plumbing
|
|
40092
|
+
'sink', 'drain', 'faucet', 'tap', 'plughole', 'washbasin', 'basin', 'toilet', 'plumbing',
|
|
40093
|
+
// a skyline, not a house
|
|
40094
|
+
'skyscraper', 'highrise', 'skyline', 'cityscape', 'downtown', 'metropolis', 'tower',
|
|
40095
|
+
].map(stockWord));
|
|
40096
|
+
/** Places on the map a stock photo is tagged with (compared as plain phrases: `new york`, `tel aviv`). */
|
|
40097
|
+
const STOCK_PLACE_NAMES = [
|
|
40098
|
+
// countries
|
|
40099
|
+
'afghanistan', 'albania', 'algeria', 'argentina', 'armenia', 'australia', 'austria', 'azerbaijan', 'bahamas', 'bangladesh',
|
|
40100
|
+
'belgium', 'bolivia', 'bosnia', 'brazil', 'bulgaria', 'cambodia', 'cameroon', 'canada', 'chile', 'china', 'colombia', 'costa rica',
|
|
40101
|
+
'croatia', 'cuba', 'cyprus', 'czech', 'czechia', 'denmark', 'dominican republic', 'ecuador', 'egypt', 'england', 'estonia',
|
|
40102
|
+
'ethiopia', 'fiji', 'finland', 'france', 'georgia', 'germany', 'ghana', 'greece', 'guatemala', 'hungary', 'iceland', 'india',
|
|
40103
|
+
'indonesia', 'iran', 'iraq', 'ireland', 'israel', 'italy', 'jamaica', 'japan', 'jordan', 'kazakhstan', 'kenya', 'korea', 'laos',
|
|
40104
|
+
'latvia', 'lebanon', 'lithuania', 'luxembourg', 'madagascar', 'malaysia', 'maldives', 'malta', 'mauritius', 'mexico', 'mongolia',
|
|
40105
|
+
'montenegro', 'morocco', 'myanmar', 'namibia', 'nepal', 'netherlands', 'holland', 'new zealand', 'nigeria', 'norway', 'oman',
|
|
40106
|
+
'pakistan', 'panama', 'peru', 'philippines', 'poland', 'portugal', 'qatar', 'romania', 'russia', 'saudi arabia', 'scotland',
|
|
40107
|
+
'serbia', 'seychelles', 'singapore', 'slovakia', 'slovenia', 'south africa', 'spain', 'sri lanka', 'sweden', 'switzerland',
|
|
40108
|
+
'syria', 'taiwan', 'tanzania', 'thailand', 'tunisia', 'ukraine', 'united arab emirates', 'uae', 'united kingdom', 'uk',
|
|
40109
|
+
'united states', 'usa', 'america', 'uruguay', 'uzbekistan', 'venezuela', 'vietnam', 'wales', 'zambia', 'zimbabwe',
|
|
40110
|
+
// regions and islands a photo is tagged by
|
|
40111
|
+
'bali', 'hainan', 'hawaii', 'tuscany', 'provence', 'andalusia', 'sicily', 'sardinia', 'corsica', 'crete', 'santorini', 'mykonos',
|
|
40112
|
+
'ibiza', 'mallorca', 'majorca', 'tenerife', 'canary islands', 'madeira', 'phuket', 'zanzibar', 'caribbean', 'patagonia', 'bavaria',
|
|
40113
|
+
'alps', 'dolomites', 'amalfi', 'cinque terre', 'lake como', 'galilee', 'golan', 'negev', 'phoenix island',
|
|
40114
|
+
// cities
|
|
40115
|
+
'sanya', 'beijing', 'shanghai', 'hong kong', 'macau', 'tokyo', 'kyoto', 'osaka', 'seoul', 'bangkok', 'hanoi', 'saigon',
|
|
40116
|
+
'ho chi minh', 'kuala lumpur', 'manila', 'jakarta', 'dubai', 'abu dhabi', 'doha', 'istanbul', 'athens', 'rome',
|
|
40117
|
+
'venice', 'florence', 'milan', 'naples', 'paris', 'marseille', 'lyon', 'london', 'edinburgh', 'dublin', 'amsterdam',
|
|
40118
|
+
'brussels', 'berlin', 'munich', 'hamburg', 'vienna', 'prague', 'budapest', 'warsaw', 'krakow', 'copenhagen', 'stockholm', 'oslo',
|
|
40119
|
+
'helsinki', 'lisbon', 'porto', 'madrid', 'barcelona', 'seville', 'valencia', 'zurich', 'geneva', 'moscow', 'new york', 'manhattan',
|
|
40120
|
+
'brooklyn', 'chicago', 'los angeles', 'san francisco', 'las vegas', 'miami', 'boston', 'seattle', 'toronto', 'vancouver',
|
|
40121
|
+
'montreal', 'mexico city', 'cancun', 'havana', 'rio de janeiro', 'buenos aires', 'lima', 'cairo', 'marrakech', 'cape town',
|
|
40122
|
+
'sydney', 'melbourne', 'auckland', 'mumbai', 'delhi', 'jerusalem', 'tel aviv', 'haifa', 'eilat', 'jaffa', 'nazareth',
|
|
40123
|
+
'akko', 'tiberias', 'caesarea', 'netanya', 'herzliya', 'beersheba',
|
|
40124
|
+
];
|
|
40125
|
+
/** The same, as a set of plain phrases. */
|
|
40126
|
+
const PLACE_NAMES = new Set(STOCK_PLACE_NAMES);
|
|
40127
|
+
/** The longest place name, in words. */
|
|
40128
|
+
const PLACE_MAX_WORDS = Math.max(...STOCK_PLACE_NAMES.map(p => p.split(' ').length));
|
|
40129
|
+
/**
|
|
40130
|
+
* A Hebrew site's own words for the parts and subjects above, as the English word a provider's tags carry (a heading
|
|
40131
|
+
* "החלקת קרטין" is about `hair`). Compared whole after a one- or two-letter prefix (ה, ו, ב, ל, מ, ש, כ) is taken off;
|
|
40132
|
+
* a two-word phrase first ("ארוחת בוקר" is breakfast, "ארוחת ערב" dinner).
|
|
40133
|
+
*/
|
|
40134
|
+
const STOCK_SUBJECTS_HE = {
|
|
40135
|
+
'ארוחת בוקר': 'breakfast', 'ארוחות בוקר': 'breakfast', 'ארוחת ערב': 'dinner', 'ארוחת צהריים': 'lunch', 'חדר שינה': 'bedroom',
|
|
40136
|
+
'שיער': 'hair', 'תספורת': 'haircut', 'תספורות': 'haircut', 'החלקה': 'straightening', 'החלקת': 'straightening', 'החלקות': 'straightening',
|
|
40137
|
+
'קרטין': 'keratin', 'תסרוקת': 'hairstyle', 'תסרוקות': 'hairstyle', 'גוונים': 'highlights',
|
|
40138
|
+
'מניקור': 'manicure', 'פדיקור': 'pedicure', 'ציפורניים': 'nail', 'ציפורן': 'nail', 'לק': 'manicure', 'איפור': 'makeup',
|
|
40139
|
+
'ריסים': 'eyelash', 'גבות': 'eyebrow', 'עיסוי': 'massage', 'עיסויים': 'massage', 'טיפולי פנים': 'facial', 'טיפול פנים': 'facial',
|
|
40140
|
+
'בראנץ': 'brunch', 'בראנץ׳': 'brunch', 'קפה': 'coffee', 'אספרסו': 'espresso', 'לחם': 'bread', 'מאפים': 'pastry', 'מאפה': 'pastry',
|
|
40141
|
+
'עוגה': 'cake', 'עוגות': 'cake', 'קרואסון': 'croissant', 'סוויטה': 'suite', 'סוויטות': 'suite', 'מיטה': 'bed', 'בריכה': 'pool',
|
|
40142
|
+
'ג׳קוזי': 'jacuzzi', "ג'קוזי": 'jacuzzi', 'גג': 'rooftop', 'מרפסת': 'terrace', 'גינה': 'garden', 'חצר': 'courtyard',
|
|
40143
|
+
};
|
|
40144
|
+
const HE_PREFIX = /^[הובלמשכ]/;
|
|
40145
|
+
const HE_LETTERS = /[-]/;
|
|
40146
|
+
const HTML_TAG = /<[^>]*>/g;
|
|
40147
|
+
const TOKEN_SPLIT = /[^\p{L}\p{N}'׳]+/u;
|
|
40148
|
+
/** A facet word this long counts in its longer forms. */
|
|
40149
|
+
const FACET_STEM_MIN = 5;
|
|
40150
|
+
/** A Hebrew word's English subject, trying it whole, then without one and two prefix letters. */
|
|
40151
|
+
function hebrewSubject(word) {
|
|
40152
|
+
let w = word;
|
|
40153
|
+
for (let i = 0; i < 3 && w.length >= 2; i++) {
|
|
40154
|
+
const hit = STOCK_SUBJECTS_HE[w];
|
|
40155
|
+
if (hit)
|
|
40156
|
+
return hit;
|
|
40157
|
+
if (!HE_PREFIX.test(w))
|
|
40158
|
+
return undefined;
|
|
40159
|
+
w = w.slice(1);
|
|
40160
|
+
}
|
|
40161
|
+
return undefined;
|
|
40162
|
+
}
|
|
40163
|
+
/** The English subject words a Hebrew text names (phrases first), in order, as `stockWord`s. */
|
|
40164
|
+
function stockSubjectsHe(...texts) {
|
|
40165
|
+
const out = [];
|
|
40166
|
+
for (const text of texts) {
|
|
40167
|
+
if (typeof text !== 'string' || !HE_LETTERS.test(text))
|
|
40168
|
+
continue;
|
|
40169
|
+
const tokens = text.replace(HTML_TAG, ' ').split(TOKEN_SPLIT).filter(Boolean);
|
|
40170
|
+
for (let i = 0; i < tokens.length; i++) {
|
|
40171
|
+
const pair = i + 1 < tokens.length ? hebrewSubject(`${tokens[i]} ${tokens[i + 1]}`) ?? phraseWithPrefix(tokens[i], tokens[i + 1]) : undefined;
|
|
40172
|
+
if (pair) {
|
|
40173
|
+
out.push(stockWord(pair));
|
|
40174
|
+
i++;
|
|
40175
|
+
continue;
|
|
40176
|
+
}
|
|
40177
|
+
const one = hebrewSubject(tokens[i]);
|
|
40178
|
+
if (one)
|
|
40179
|
+
out.push(stockWord(one));
|
|
40180
|
+
}
|
|
40181
|
+
}
|
|
40182
|
+
return [...new Set(out)];
|
|
40183
|
+
}
|
|
40184
|
+
/** A two-word phrase whose first word wears a prefix ("וארוחת בוקר"). */
|
|
40185
|
+
function phraseWithPrefix(first, second) {
|
|
40186
|
+
let w = first;
|
|
40187
|
+
for (let i = 0; i < 2 && HE_PREFIX.test(w); i++) {
|
|
40188
|
+
w = w.slice(1);
|
|
40189
|
+
const hit = STOCK_SUBJECTS_HE[`${w} ${second}`];
|
|
40190
|
+
if (hit)
|
|
40191
|
+
return hit;
|
|
40192
|
+
}
|
|
40193
|
+
return undefined;
|
|
40194
|
+
}
|
|
40195
|
+
/**
|
|
40196
|
+
* The words a place's OWN text says (the heading beside a picture, a sample item's name): its meaningful words in order,
|
|
40197
|
+
* then — a Hebrew text — the English subjects it names (`STOCK_SUBJECTS_HE`). What the place's part and query are read from.
|
|
40198
|
+
*/
|
|
40199
|
+
function stockNearWords(...texts) {
|
|
40200
|
+
return [...new Set([...stockWords(...texts), ...stockSubjectsHe(...texts)])];
|
|
40201
|
+
}
|
|
40202
|
+
/** Per facet, its words as compared. */
|
|
40203
|
+
const FACET_WORDS = Object.entries(STOCK_FACETS).map(([id, words]) => [id, new Set(words.map(stockWord))]);
|
|
40204
|
+
/** Does `word` name a word of `words` — whole, or a longer form of one of `FACET_STEM_MIN` letters or more? */
|
|
40205
|
+
function namesFacetWord(word, words) {
|
|
40206
|
+
if (words.has(word))
|
|
40207
|
+
return true;
|
|
40208
|
+
for (const w of words)
|
|
40209
|
+
if (w.length >= FACET_STEM_MIN && word.length > w.length && word.startsWith(w))
|
|
40210
|
+
return true;
|
|
40211
|
+
return false;
|
|
40212
|
+
}
|
|
40213
|
+
/** The parts of a business some words name (`STOCK_FACETS` ids), in the table's order. */
|
|
40214
|
+
function stockFacetsOf(words) {
|
|
40215
|
+
return FACET_WORDS.filter(([, set]) => words.some(w => namesFacetWord(w, set))).map(([id]) => id);
|
|
40216
|
+
}
|
|
40217
|
+
/** Every facet word (as asked: the table's spelling), by its compared form — a closed vocabulary a query may carry. */
|
|
40218
|
+
const STOCK_FACET_VOCABULARY = new Map(Object.values(STOCK_FACETS).flat().map(w => [stockWord(w), w]));
|
|
40219
|
+
/** A photo's tags as plain phrases (accents gone, lower case, single spaces) — what a place name is looked for in. */
|
|
40220
|
+
function stockTagPhrases(tags) {
|
|
40221
|
+
return tags.map(t => String(t ?? '').normalize('NFD').replace(/\p{M}+/gu, '').toLowerCase().replace(/[^\p{L}\p{N}]+/gu, ' ').trim()).filter(Boolean);
|
|
40222
|
+
}
|
|
40223
|
+
/** The places on the map some phrases name (each a `STOCK_PLACE_NAMES` entry), each once. */
|
|
40224
|
+
function stockPlaceNamesIn(phrases) {
|
|
40225
|
+
const out = new Set();
|
|
40226
|
+
for (const phrase of phrases) {
|
|
40227
|
+
const words = phrase.split(' ');
|
|
40228
|
+
for (let i = 0; i < words.length; i++) {
|
|
40229
|
+
for (let n = Math.min(PLACE_MAX_WORDS, words.length - i); n >= 1; n--) {
|
|
40230
|
+
const name = words.slice(i, i + n).join(' ');
|
|
40231
|
+
if (PLACE_NAMES.has(name)) {
|
|
40232
|
+
out.add(name);
|
|
40233
|
+
i += n - 1;
|
|
40234
|
+
break;
|
|
40235
|
+
}
|
|
40236
|
+
}
|
|
40237
|
+
}
|
|
40238
|
+
}
|
|
40239
|
+
return [...out];
|
|
40240
|
+
}
|
|
40241
|
+
|
|
39719
40242
|
/** LS-D4: the most searches one build asks — the type's base query first, then the places' own. */
|
|
39720
40243
|
const STOCK_MAX_SEARCHES = 4;
|
|
39721
40244
|
/**
|
|
@@ -39768,17 +40291,17 @@ const STOCK_TRADE_WORDS = {
|
|
|
39768
40291
|
vet: ['cat', 'puppy', 'kitten', 'veterinarian', 'paw', 'animal'],
|
|
39769
40292
|
restaurant: ['dining', 'dinner', 'dish', 'meal', 'plate', 'cuisine', 'cooking', 'gourmet', 'table'],
|
|
39770
40293
|
'cafe-bakery': ['espresso', 'cappuccino', 'latte', 'barista', 'croissant', 'pastry', 'cake', 'bread', 'muffin', 'dessert', 'breakfast', 'brunch', 'cookie'],
|
|
39771
|
-
'bar-winery': ['beer', 'whiskey', 'whisky', 'vineyard', 'grape', 'barrel', 'pub', 'bartender', 'glass'],
|
|
40294
|
+
'bar-winery': ['beer', 'whiskey', 'whisky', 'vineyard', 'grape', 'barrel', 'pub', 'bartender', 'glass', 'tap', 'draft'],
|
|
39772
40295
|
boutique: ['dress', 'apparel', 'garment', 'outfit', 'shoe', 'handbag', 'textile', 'wardrobe'],
|
|
39773
40296
|
florist: ['rose', 'tulip', 'blossom', 'floral', 'peony', 'orchid', 'succulent', 'greenery', 'vase'],
|
|
39774
40297
|
'home-goods': ['sofa', 'chair', 'table', 'lamp', 'interior', 'cushion', 'armchair', 'shelf', 'vase'],
|
|
39775
|
-
consultant: ['meeting', 'business', 'planning', 'presentation', 'chart', 'office', 'desk', 'teamwork'],
|
|
39776
|
-
coach: ['meeting', 'conversation', 'notebook', 'goal', 'growth', 'motivation'],
|
|
40298
|
+
consultant: ['meeting', 'business', 'planning', 'presentation', 'chart', 'office', 'desk', 'teamwork', 'laptop', 'computer'],
|
|
40299
|
+
coach: ['meeting', 'conversation', 'notebook', 'goal', 'growth', 'motivation', 'laptop'],
|
|
39777
40300
|
'law-accounting': ['justice', 'court', 'judge', 'gavel', 'contract', 'notary', 'tax', 'finance', 'paperwork', 'document', 'signature', 'desk', 'agreement'],
|
|
39778
40301
|
nonprofit: ['donation', 'solidarity', 'fundraising', 'charity'],
|
|
39779
40302
|
'venue-events': ['banquet', 'ballroom', 'celebration', 'reception', 'ceremony', 'catering', 'party'],
|
|
39780
40303
|
'hotel-bnb': ['bedroom', 'bed', 'suite', 'resort', 'hospitality', 'lobby', 'pillow', 'accommodation', 'villa', 'inn', 'hostel'],
|
|
39781
|
-
classes: ['classroom', 'education', 'learning', 'student', 'study', 'piano', 'guitar', 'blackboard'],
|
|
40304
|
+
classes: ['classroom', 'education', 'learning', 'student', 'study', 'piano', 'guitar', 'blackboard', 'laptop', 'computer'],
|
|
39782
40305
|
};
|
|
39783
40306
|
/**
|
|
39784
40307
|
* iox-ui#175 — words that name a KIND of business by its place (compared as `stockWord`s). For a type whose vocabulary
|
|
@@ -39859,19 +40382,33 @@ function stockSearchTerm(type) {
|
|
|
39859
40382
|
}
|
|
39860
40383
|
/** Per subject, its vocabulary as compared (`stockWord`) → as asked (the vocabulary's own spelling). */
|
|
39861
40384
|
const SUBJECT_VOCABULARY = new Map(Object.values(StockSubject).map(subject => [subject, new Map(STOCK_SUBJECT_WORDS[subject].map(w => [stockWord(w), w]))]));
|
|
40385
|
+
/** Every subject word, as compared → as asked. */
|
|
40386
|
+
const ALL_SUBJECT_VOCABULARY = new Map([...SUBJECT_VOCABULARY.values()].flatMap(m => [...m]));
|
|
40387
|
+
/** The words a place's OWN text says: a section's text beside the picture (`near`), an item's name (`near`, else `subject`). */
|
|
40388
|
+
function stockPlaceNear(slot) {
|
|
40389
|
+
return slot.near?.length ? slot.near : slot.subject ?? [];
|
|
40390
|
+
}
|
|
39862
40391
|
/**
|
|
39863
|
-
* The one subject word a place adds to its query:
|
|
39864
|
-
*
|
|
39865
|
-
*
|
|
40392
|
+
* The one subject word a place adds to its query (iox-cms#130: the place's own subject, never scenery). First, the place's
|
|
40393
|
+
* OWN words in the order written (the heading beside it, an item's name — "Breakfast on the roof, the bay below" asks
|
|
40394
|
+
* `breakfast`): the first that is a closed subject word (`STOCK_SUBJECT_WORDS`, a part of a business `STOCK_FACETS`, the
|
|
40395
|
+
* type's imagery). Else, among the words around the place and the type's imagery line, the first that names a subject its
|
|
40396
|
+
* intent takes, its best subject first. Never a scenery word (`STOCK_GENERIC_WORDS` — "hotel view" is answered with resort
|
|
40397
|
+
* towers), never another trade's place, never the type's own word. None: the base query.
|
|
39866
40398
|
*/
|
|
39867
40399
|
function stockSearchFocus(slot, type, term) {
|
|
39868
40400
|
// iox-ui#175: another trade's place word is never the subject ("Boutique law firm" → never "law boutique").
|
|
39869
40401
|
const vocabulary = 'label' in type ? stockFitFor(type).vocabulary : new Set();
|
|
39870
|
-
const words = [...(slot.kind === 'item' ? slot.subject ?? [] : []), ...slot.words, ...stockWords(type.imagery)].filter(w => !foreignTrade(w, vocabulary));
|
|
39871
40402
|
const asked = new Set(term.split(' ').map(stockWord));
|
|
40403
|
+
const open = (w) => !asked.has(w) && !STOCK_GENERIC_WORDS.has(w) && !foreignTrade(w, vocabulary);
|
|
40404
|
+
const imagery = stockWords(type.imagery).filter(w => !IMAGERY_NOISE.has(w));
|
|
40405
|
+
const own = stockPlaceNear(slot).find(w => open(w) && (ALL_SUBJECT_VOCABULARY.has(w) || STOCK_FACET_VOCABULARY.has(w) || imagery.includes(w)));
|
|
40406
|
+
if (own)
|
|
40407
|
+
return ALL_SUBJECT_VOCABULARY.get(own) ?? STOCK_FACET_VOCABULARY.get(own) ?? own;
|
|
40408
|
+
const words = [...(slot.kind === 'item' ? slot.subject ?? [] : []), ...slot.words, ...stockWords(type.imagery)].filter(open);
|
|
39872
40409
|
for (const subject of STOCK_INTENT_SUBJECTS[slot.intent] ?? []) {
|
|
39873
40410
|
const vocabulary = SUBJECT_VOCABULARY.get(subject);
|
|
39874
|
-
const hit = words.find(w => vocabulary.has(w)
|
|
40411
|
+
const hit = words.find(w => vocabulary.has(w));
|
|
39875
40412
|
if (hit)
|
|
39876
40413
|
return vocabulary.get(hit);
|
|
39877
40414
|
}
|
|
@@ -39915,23 +40452,80 @@ function photoPhrases(photo) {
|
|
|
39915
40452
|
const tags = photo.tags?.length ? photo.tags : String(photo.alt ?? '').split(',');
|
|
39916
40453
|
return [...tags, photo.review?.notes ?? ''].map(t => ` ${plain(String(t ?? '')).replace(/[^\p{L}\p{N}]+/gu, ' ').trim()} `);
|
|
39917
40454
|
}
|
|
39918
|
-
/**
|
|
39919
|
-
|
|
39920
|
-
|
|
39921
|
-
|
|
39922
|
-
|
|
39923
|
-
|
|
39924
|
-
|
|
39925
|
-
|
|
40455
|
+
/** Why a photo may not stand in a place (`stockRelevance`). */
|
|
40456
|
+
var StockOffSubject;
|
|
40457
|
+
(function (StockOffSubject) {
|
|
40458
|
+
/** A never-word or phrase: crime, ruin, a joke, the trade's fears. */
|
|
40459
|
+
StockOffSubject["Never"] = "never";
|
|
40460
|
+
/** It shows somewhere else on the map ("china, sanya" for a hotel in Haifa). */
|
|
40461
|
+
StockOffSubject["Elsewhere"] = "elsewhere";
|
|
40462
|
+
/** It shows something no word of the place or the business names: a laptop, a cruise ship, a drain. */
|
|
40463
|
+
StockOffSubject["Unrelated"] = "unrelated";
|
|
40464
|
+
/** It shows another part of the business than the place names: a manicure under "straightening". */
|
|
40465
|
+
StockOffSubject["OtherPart"] = "other-part";
|
|
40466
|
+
/** It does not name the business (twice in an opening). */
|
|
40467
|
+
StockOffSubject["NotTheBusiness"] = "not-the-business";
|
|
40468
|
+
})(StockOffSubject || (StockOffSubject = {}));
|
|
40469
|
+
/**
|
|
40470
|
+
* THE relevance of a stock photo to a place (iox-cms#130; iox-cms#123, iox-ui#175) — pure and deterministic, no model.
|
|
40471
|
+
* In order, a photo is off-subject when:
|
|
40472
|
+
* 1. any word is a never-word or phrase of the site (`fit.never`, `STOCK_NEVER_PHRASES`);
|
|
40473
|
+
* 2. (unreviewed, type known) it names a place on the map (`STOCK_PLACE_NAMES`) and the place's words name none of them;
|
|
40474
|
+
* 3. (unreviewed, type known) it carries a word that shows something else (`STOCK_UNRELATED_WORDS`) that neither the place's
|
|
40475
|
+
* words nor the business's vocabulary name;
|
|
40476
|
+
* 4. the place's own words name a part of the business (`STOCK_FACETS`: hair, nails, a meal, a bed…) and the photo names
|
|
40477
|
+
* other parts but none of those — an approved library photo too: it was seen for its type, never for this place;
|
|
40478
|
+
* 5. (unreviewed, type known) it does not name the business `STOCK_OPENING_TYPE_WORDS` times in an opening,
|
|
40479
|
+
* `STOCK_PLACE_TYPE_WORDS` times elsewhere (iox-ui#175).
|
|
40480
|
+
* No type known (`STOCK_FIT_ANY`): the never-words only. The counts are reported for reading a choice; the ranking among the
|
|
40481
|
+
* photos that fit stays `scoreStockPhoto` (which already counts the place's words).
|
|
40482
|
+
*/
|
|
40483
|
+
function stockRelevance(photo, place, fit = STOCK_FIT_ANY) {
|
|
39926
40484
|
const words = stockPhotoWords(photo);
|
|
39927
|
-
|
|
39928
|
-
|
|
40485
|
+
const near = new Set(stockPlaceNear(place));
|
|
40486
|
+
const counts = { business: businessWordsOf(words, place, fit), near: words.filter(w => near.has(w)).length };
|
|
40487
|
+
const off = (why, offWords) => ({ off: why, offWords, ...counts });
|
|
40488
|
+
const never = words.filter(w => fit.never.has(w));
|
|
40489
|
+
if (never.length)
|
|
40490
|
+
return off(StockOffSubject.Never, never);
|
|
39929
40491
|
const phrases = photoPhrases(photo);
|
|
39930
|
-
|
|
39931
|
-
|
|
39932
|
-
|
|
39933
|
-
|
|
39934
|
-
|
|
40492
|
+
const neverPhrases = STOCK_NEVER_PHRASES.filter(phrase => phrases.some(p => p.includes(` ${phrase} `)));
|
|
40493
|
+
if (neverPhrases.length)
|
|
40494
|
+
return off(StockOffSubject.Never, neverPhrases);
|
|
40495
|
+
if (!fit.vocabulary.size)
|
|
40496
|
+
return { off: null, offWords: [], ...counts };
|
|
40497
|
+
const reviewed = photo.review?.verdict === StockReviewVerdict.Approved;
|
|
40498
|
+
const said = new Set([...(place.words ?? []), ...near, ...(place.subject ?? [])]);
|
|
40499
|
+
if (!reviewed) {
|
|
40500
|
+
const places = stockPlaceNamesIn(stockTagPhrases(photo.tags?.length ? photo.tags : String(photo.alt ?? '').split(',')));
|
|
40501
|
+
if (places.length && !places.some(name => namedBy(name, said)))
|
|
40502
|
+
return off(StockOffSubject.Elsewhere, places);
|
|
40503
|
+
const unrelated = words.filter(w => STOCK_UNRELATED_WORDS.has(w) && !said.has(w) && !fit.vocabulary.has(w));
|
|
40504
|
+
if (unrelated.length)
|
|
40505
|
+
return off(StockOffSubject.Unrelated, unrelated);
|
|
40506
|
+
}
|
|
40507
|
+
const parts = stockFacetsOf([...near]);
|
|
40508
|
+
const shown = parts.length ? stockFacetsOf(words) : [];
|
|
40509
|
+
if (shown.length && !shown.some(f => parts.includes(f)))
|
|
40510
|
+
return off(StockOffSubject.OtherPart, shown);
|
|
40511
|
+
if (!reviewed && counts.business < (OPENING_INTENTS.has(place.intent) ? STOCK_OPENING_TYPE_WORDS : STOCK_PLACE_TYPE_WORDS)) {
|
|
40512
|
+
return off(StockOffSubject.NotTheBusiness, []);
|
|
40513
|
+
}
|
|
40514
|
+
return { off: null, offWords: [], ...counts };
|
|
40515
|
+
}
|
|
40516
|
+
/**
|
|
40517
|
+
* Whether a photo may stand in a place on a site held to `fit` — `stockRelevance` finds nothing off-subject: no never-word
|
|
40518
|
+
* or phrase; an unreviewed photo shows the business (its vocabulary twice in an opening, once elsewhere — an item's own
|
|
40519
|
+
* name counts there, iox-ui#175), no other place on the map and nothing unrelated (iox-cms#130); and no photo shows another
|
|
40520
|
+
* part of the business than the place names. No type known (`STOCK_FIT_ANY`): the never-words only.
|
|
40521
|
+
*/
|
|
40522
|
+
function stockPhotoFits(photo, slot, fit = STOCK_FIT_ANY) {
|
|
40523
|
+
return stockRelevance(photo, slot, fit).off === null;
|
|
40524
|
+
}
|
|
40525
|
+
/** A place on the map the place's words name (every word of it; a name too short to compare — `uk` — never). */
|
|
40526
|
+
function namedBy(name, said) {
|
|
40527
|
+
const words = stockWords(name);
|
|
40528
|
+
return words.length > 0 && words.every(w => said.has(w));
|
|
39935
40529
|
}
|
|
39936
40530
|
/** How many distinct words of a photo name the business (the opening: its vocabulary; elsewhere an item's name too). */
|
|
39937
40531
|
function businessWordsOf(words, slot, fit) {
|
|
@@ -39970,9 +40564,9 @@ function planStockSearch(type, targets, max = STOCK_MAX_SEARCHES) {
|
|
|
39970
40564
|
* never a person (testimonials, the team — nor a sample item of a type that lists people, iox-ui#172: `stockMayFill`),
|
|
39971
40565
|
* never anywhere when the business type says `stock: false` — and, since I2.1
|
|
39972
40566
|
* (Doron, 2026-10-28), in the picture of a MARKED sample item (a product, a service, a dish) of a type that may show
|
|
39973
|
-
* stock. Which photo goes where is chosen by what the slot is about (`stock-match.ts`). Its alt text is
|
|
39974
|
-
* the
|
|
39975
|
-
* requires one — is placed in the footer. Pure: the build step does the copying.
|
|
40567
|
+
* stock. Which photo goes where is chosen by what the slot is about (`stock-match.ts`, `stockRelevance`). Its alt text is
|
|
40568
|
+
* the place's own words (`stockPhotoAlt`, iox-cms#130 — never the provider's tags), and the credit line its licence
|
|
40569
|
+
* requires — when it requires one — is placed in the footer. Pure: the build step does the copying.
|
|
39976
40570
|
*/
|
|
39977
40571
|
/** Where a stock photo comes from (the library's provider). */
|
|
39978
40572
|
var StockProviderId;
|
|
@@ -40038,6 +40632,10 @@ function ownPhotosFor(photos, subject, words) {
|
|
|
40038
40632
|
* The owner's photos come before any stock or sample picture. A composed section's empty picture takes them in order and
|
|
40039
40633
|
* never repeats one. A sample item takes only one that shows it (`ownPhotoFit`), never twice in one type's samples; an
|
|
40040
40634
|
* item none fits keeps its sample picture or goes on to the library (`rest`) — never an unrelated photo under its name.
|
|
40635
|
+
*
|
|
40636
|
+
* iox-cms#133 (Pro ceramics, 2026-11-29: "Handled Cup" kept the placeholder art between two real photos): a type's samples
|
|
40637
|
+
* share its photos by ONE assignment (`matchOwnPhotos`) — the most samples that a photo fits get one, then the best fits —
|
|
40638
|
+
* never first come, first served, where an early sample took the only photo a later one could wear.
|
|
40041
40639
|
*/
|
|
40042
40640
|
function planOwnPhotos(slots, photos) {
|
|
40043
40641
|
const own = photos.map(ownPhotoOf).filter(p => !!p.url);
|
|
@@ -40045,7 +40643,7 @@ function planOwnPhotos(slots, photos) {
|
|
|
40045
40643
|
return { placements: [], rest: [...slots] };
|
|
40046
40644
|
const placements = [];
|
|
40047
40645
|
const rest = [];
|
|
40048
|
-
const
|
|
40646
|
+
const matched = matchOwnPhotos(slots.filter((s) => s.kind === StockSlotKind.Item), own);
|
|
40049
40647
|
let next = 0;
|
|
40050
40648
|
for (const slot of slots) {
|
|
40051
40649
|
if (slot.kind === StockSlotKind.Section) {
|
|
@@ -40055,18 +40653,102 @@ function planOwnPhotos(slots, photos) {
|
|
|
40055
40653
|
rest.push(slot);
|
|
40056
40654
|
continue;
|
|
40057
40655
|
}
|
|
40058
|
-
const
|
|
40059
|
-
|
|
40060
|
-
if (!best) {
|
|
40656
|
+
const photo = matched.get(slot);
|
|
40657
|
+
if (!photo) {
|
|
40061
40658
|
rest.push(slot);
|
|
40062
40659
|
continue;
|
|
40063
40660
|
}
|
|
40064
|
-
|
|
40065
|
-
shown.set(slot.contentType, group);
|
|
40066
|
-
placements.push({ item: { contentType: slot.contentType, index: slot.index, field: slot.field }, url: best.url });
|
|
40661
|
+
placements.push({ item: { contentType: slot.contentType, index: slot.index, field: slot.field }, url: photo.url });
|
|
40067
40662
|
}
|
|
40068
40663
|
return { placements, rest };
|
|
40069
40664
|
}
|
|
40665
|
+
/** Per content type (a list shows its samples together, so a photo stands under one of them only): which of the owner's
|
|
40666
|
+
* photos each sample wears — the assignment that dresses the most samples, then fits them best (`bestAssignment`). */
|
|
40667
|
+
function matchOwnPhotos(slots, own) {
|
|
40668
|
+
const byType = new Map();
|
|
40669
|
+
for (const slot of slots)
|
|
40670
|
+
byType.set(slot.contentType, [...(byType.get(slot.contentType) ?? []), slot]);
|
|
40671
|
+
const out = new Map();
|
|
40672
|
+
for (const group of byType.values()) {
|
|
40673
|
+
const fits = group.map(slot => own.map(photo => ownPhotoFit(photo, slot.subject ?? [], slot.words)));
|
|
40674
|
+
bestAssignment(fits).forEach((column, row) => { if (column >= 0)
|
|
40675
|
+
out.set(group[row], own[column]); });
|
|
40676
|
+
}
|
|
40677
|
+
return out;
|
|
40678
|
+
}
|
|
40679
|
+
/** Above any total fit: a sample dressed always outweighs a better fit elsewhere. */
|
|
40680
|
+
const ASSIGN_FILLED = 1e6;
|
|
40681
|
+
/** Tie-breaks far below a fit point (fits are whole numbers): the earlier sample, then the owner's earlier photo. */
|
|
40682
|
+
const ASSIGN_ROW_TIE = 1e-3;
|
|
40683
|
+
const ASSIGN_COLUMN_TIE = 1e-6;
|
|
40684
|
+
/**
|
|
40685
|
+
* Rows (samples) to distinct columns (photos) by their scores (`ownPhotoFit`; 0 = does not fit): the most rows on a column
|
|
40686
|
+
* that fits, then the highest total score; a tie goes to the earlier row, then the earlier column. The row's column, or -1.
|
|
40687
|
+
* Kuhn–Munkres (the Hungarian method) on a square matrix padded with "takes nothing" columns, O(n²·m) — a type holds a
|
|
40688
|
+
* handful of samples and the owner a handful of photos. Exported for its spec.
|
|
40689
|
+
*/
|
|
40690
|
+
function bestAssignment(scores) {
|
|
40691
|
+
const n = scores.length;
|
|
40692
|
+
if (!n)
|
|
40693
|
+
return [];
|
|
40694
|
+
const columns = Math.max(0, ...scores.map(r => r.length));
|
|
40695
|
+
const m = columns + n;
|
|
40696
|
+
const weight = (i, j) => {
|
|
40697
|
+
const fit = j < columns ? scores[i][j] ?? 0 : 0;
|
|
40698
|
+
return fit > 0 ? ASSIGN_FILLED + fit - ASSIGN_ROW_TIE * i - ASSIGN_COLUMN_TIE * j : 0;
|
|
40699
|
+
};
|
|
40700
|
+
// Minimum cost = maximum weight; 1-based potentials as in the classic formulation (row 0 / column 0 are the sentinels).
|
|
40701
|
+
const u = new Array(n + 1).fill(0);
|
|
40702
|
+
const v = new Array(m + 1).fill(0);
|
|
40703
|
+
const p = new Array(m + 1).fill(0);
|
|
40704
|
+
const way = new Array(m + 1).fill(0);
|
|
40705
|
+
for (let i = 1; i <= n; i++) {
|
|
40706
|
+
p[0] = i;
|
|
40707
|
+
let j0 = 0;
|
|
40708
|
+
const minv = new Array(m + 1).fill(Infinity);
|
|
40709
|
+
const used = new Array(m + 1).fill(false);
|
|
40710
|
+
do {
|
|
40711
|
+
used[j0] = true;
|
|
40712
|
+
const i0 = p[j0];
|
|
40713
|
+
let delta = Infinity;
|
|
40714
|
+
let j1 = 0;
|
|
40715
|
+
for (let j = 1; j <= m; j++) {
|
|
40716
|
+
if (used[j])
|
|
40717
|
+
continue;
|
|
40718
|
+
const cur = -weight(i0 - 1, j - 1) - u[i0] - v[j];
|
|
40719
|
+
if (cur < minv[j]) {
|
|
40720
|
+
minv[j] = cur;
|
|
40721
|
+
way[j] = j0;
|
|
40722
|
+
}
|
|
40723
|
+
if (minv[j] < delta) {
|
|
40724
|
+
delta = minv[j];
|
|
40725
|
+
j1 = j;
|
|
40726
|
+
}
|
|
40727
|
+
}
|
|
40728
|
+
for (let j = 0; j <= m; j++) {
|
|
40729
|
+
if (used[j]) {
|
|
40730
|
+
u[p[j]] += delta;
|
|
40731
|
+
v[j] -= delta;
|
|
40732
|
+
}
|
|
40733
|
+
else
|
|
40734
|
+
minv[j] -= delta;
|
|
40735
|
+
}
|
|
40736
|
+
j0 = j1;
|
|
40737
|
+
} while (p[j0] !== 0);
|
|
40738
|
+
do {
|
|
40739
|
+
const j1 = way[j0];
|
|
40740
|
+
p[j0] = p[j1];
|
|
40741
|
+
j0 = j1;
|
|
40742
|
+
} while (j0);
|
|
40743
|
+
}
|
|
40744
|
+
const out = new Array(n).fill(-1);
|
|
40745
|
+
for (let j = 1; j <= columns; j++) {
|
|
40746
|
+
const row = p[j] - 1;
|
|
40747
|
+
if (row >= 0 && (scores[row][j - 1] ?? 0) > 0)
|
|
40748
|
+
out[row] = j - 1;
|
|
40749
|
+
}
|
|
40750
|
+
return out;
|
|
40751
|
+
}
|
|
40070
40752
|
/**
|
|
40071
40753
|
* Each marked sample's gallery shows the owner's photos that fit the item (`ownPhotoFit`) instead of bundled samples; an
|
|
40072
40754
|
* item none fits keeps its samples.
|
|
@@ -40100,11 +40782,55 @@ function itemWords(type, item) {
|
|
|
40100
40782
|
const title = item[roleField(type, ContentRole.Title) ?? ''];
|
|
40101
40783
|
return { subject: stockWords(title), words: stockWords(type.label, type.name, title, item[roleField(type, ContentRole.Summary) ?? '']) };
|
|
40102
40784
|
}
|
|
40785
|
+
/** The longest alt a stock photo is given (a screen reader's sentence, not a paragraph). */
|
|
40786
|
+
const STOCK_ALT_MAX = 125;
|
|
40787
|
+
/** Text as an alt carries it: markup gone, one line, cut at a word to `STOCK_ALT_MAX`. */
|
|
40788
|
+
function altText(value) {
|
|
40789
|
+
if (typeof value !== 'string')
|
|
40790
|
+
return '';
|
|
40791
|
+
const text = value.replace(/<[^>]*>/g, ' ').replace(/ /g, ' ').replace(/\s+/g, ' ').trim();
|
|
40792
|
+
if (text.length <= STOCK_ALT_MAX)
|
|
40793
|
+
return text;
|
|
40794
|
+
const cut = text.slice(0, STOCK_ALT_MAX + 1);
|
|
40795
|
+
const space = cut.lastIndexOf(' ');
|
|
40796
|
+
return (space > STOCK_ALT_MAX / 2 ? cut.slice(0, space) : cut.slice(0, STOCK_ALT_MAX)).replace(/[\s,;:–—-]+$/u, '');
|
|
40797
|
+
}
|
|
40798
|
+
/** A place's words as written, for its alt: an item's name; a section picture's heading beside it (`caption`). */
|
|
40799
|
+
function captionOf(row, skip) {
|
|
40800
|
+
if (!row)
|
|
40801
|
+
return '';
|
|
40802
|
+
let heading = '';
|
|
40803
|
+
let text = '';
|
|
40804
|
+
walkSerialized([row], n => {
|
|
40805
|
+
if (n.id === skip || typeof n.props['content'] !== 'string')
|
|
40806
|
+
return;
|
|
40807
|
+
if (n.type === HEADING && !heading)
|
|
40808
|
+
heading = altText(n.props['content']);
|
|
40809
|
+
else if (n.type === TEXT && !text)
|
|
40810
|
+
text = altText(n.props['content']);
|
|
40811
|
+
});
|
|
40812
|
+
return heading || text;
|
|
40813
|
+
}
|
|
40814
|
+
/**
|
|
40815
|
+
* The alt of a stock photo in a place (iox-cms#130): the place's OWN words, in the site's language — a sample item's name,
|
|
40816
|
+
* the heading (else the text) beside a section's picture, else the first thing its section says. Never the provider's tags
|
|
40817
|
+
* (a tag list read aloud is noise, and an English one on a Hebrew site). Nothing written there: '' (a picture that only
|
|
40818
|
+
* sets the mood, which a screen reader passes).
|
|
40819
|
+
*/
|
|
40820
|
+
function stockPhotoAlt(target) {
|
|
40821
|
+
const caption = altText(target.caption);
|
|
40822
|
+
if (caption)
|
|
40823
|
+
return caption;
|
|
40824
|
+
const about = 'about' in target ? target.about ?? '' : '';
|
|
40825
|
+
return altText(about.split(' — ')[0].replace(/…$/, ''));
|
|
40826
|
+
}
|
|
40103
40827
|
/** Where a photo may not appear twice: one page; one content type's samples (a list shows them together). */
|
|
40104
40828
|
function stockGroupOf(target) {
|
|
40105
40829
|
return target.kind === StockSlotKind.Section ? `page:${target.owner}` : `items:${target.contentType}`;
|
|
40106
40830
|
}
|
|
40107
40831
|
const TEXT_PROPS = ['content', 'label'];
|
|
40832
|
+
const HEADING = 'Heading';
|
|
40833
|
+
const TEXT = 'Text';
|
|
40108
40834
|
/** The words of a subtree's text (Headings, Text, Links), the given node left out. */
|
|
40109
40835
|
function textOf(nodes, skip) {
|
|
40110
40836
|
const out = [];
|
|
@@ -40185,10 +40911,13 @@ function stockSlots(plan, composed) {
|
|
|
40185
40911
|
if (n.type !== 'Image' || !empty.has(n.id) || n.bindings.length)
|
|
40186
40912
|
return;
|
|
40187
40913
|
const row = ancestors[ancestors.length - 1];
|
|
40914
|
+
const beside = row ? textOf([row], n.id) : [];
|
|
40915
|
+
const caption = captionOf(row, n.id);
|
|
40188
40916
|
out.push({
|
|
40189
40917
|
kind: StockSlotKind.Section, nodeId: n.id, owner: page.key, ...read, intent, about,
|
|
40190
40918
|
aspect: aspectRatioOf(n.styleProps['aspectRatio']),
|
|
40191
|
-
words: stockWords(...
|
|
40919
|
+
words: stockWords(...beside, ...sectionWords),
|
|
40920
|
+
near: stockNearWords(...beside), ...(caption ? { caption } : {}),
|
|
40192
40921
|
});
|
|
40193
40922
|
});
|
|
40194
40923
|
});
|
|
@@ -40212,6 +40941,7 @@ function stockItemSlots(plan, composed) {
|
|
|
40212
40941
|
out.push({
|
|
40213
40942
|
kind: StockSlotKind.Item, contentType: ShopResource.Products, index, field: SHOP_IMAGE_FIELD, intent: StockIntent.Product, aspect: STOCK_ITEM_ASPECT,
|
|
40214
40943
|
words: stockWords(product.title, product.category, product.description), subject: stockWords(product.title),
|
|
40944
|
+
near: stockNearWords(product.title), ...(altText(product.title) ? { caption: altText(product.title) } : {}),
|
|
40215
40945
|
});
|
|
40216
40946
|
});
|
|
40217
40947
|
for (const type of plan.contentTypes) {
|
|
@@ -40223,8 +40953,10 @@ function stockItemSlots(plan, composed) {
|
|
|
40223
40953
|
if (!item.isSample || parseSampleImageRef(item[field]) === null)
|
|
40224
40954
|
return;
|
|
40225
40955
|
const { subject, words } = itemWords(type, item);
|
|
40956
|
+
const title = item[roleField(type, ContentRole.Title) ?? ''];
|
|
40226
40957
|
out.push({
|
|
40227
40958
|
kind: StockSlotKind.Item, contentType: type.name, index, field, intent: StockIntent.Product, aspect: STOCK_ITEM_ASPECT, words, subject,
|
|
40959
|
+
near: stockNearWords(title), ...(altText(title) ? { caption: altText(title) } : {}),
|
|
40228
40960
|
...(person ? { person: true } : {}),
|
|
40229
40961
|
});
|
|
40230
40962
|
});
|
|
@@ -40290,7 +41022,8 @@ function planStockPhotos(slots, photos, stockAllowed, opts = {}) {
|
|
|
40290
41022
|
used.add(best.key);
|
|
40291
41023
|
here.add(best.key);
|
|
40292
41024
|
shownIn.set(group, here);
|
|
40293
|
-
|
|
41025
|
+
// iox-cms#130: the photo as placed HERE carries this place's alt — the provider's words stay on `credit.title`.
|
|
41026
|
+
placed.set(i, { ...slot, photo: { ...best, alt: stockPhotoAlt(slot) } });
|
|
40294
41027
|
}
|
|
40295
41028
|
return slots.map((_, i) => placed.get(i)).filter((p) => !!p);
|
|
40296
41029
|
}
|
|
@@ -40298,7 +41031,7 @@ function planStockPhotos(slots, photos, stockAllowed, opts = {}) {
|
|
|
40298
41031
|
function stockCopyKey(photo) {
|
|
40299
41032
|
return `media/stock/${photo.key.replace(/[^a-zA-Z0-9._-]+/g, '-')}`;
|
|
40300
41033
|
}
|
|
40301
|
-
/** Put the studio's copy of each photo into its slot (src + the
|
|
41034
|
+
/** Put the studio's copy of each photo into its slot (src + its alt: the place's words, `stockPhotoAlt`). Returns the nodes changed. */
|
|
40302
41035
|
function applyStockPhotos(trees, placed) {
|
|
40303
41036
|
const byId = new Map(placed.map(p => [p.nodeId, p]));
|
|
40304
41037
|
let changed = 0;
|
|
@@ -44769,6 +45502,17 @@ var AiStep;
|
|
|
44769
45502
|
AiStep["AssistPicture"] = "assistPicture";
|
|
44770
45503
|
/** AI Assist, Files box ▸ Generate: the look at a made picture — the same call as `CheckPictures`. */
|
|
44771
45504
|
AiStep["AssistPictureReview"] = "assistPictureReview";
|
|
45505
|
+
/**
|
|
45506
|
+
* The AI designer (ai-designer-plan AD4, Pro behind `features.designer`): the three concepts the owner picks from
|
|
45507
|
+
* (§2a′, `designerConceptsSchema`) — words and a planned Home; their sketches are rendered, not asked.
|
|
45508
|
+
*/
|
|
45509
|
+
AiStep["DesignConcepts"] = "designConcepts";
|
|
45510
|
+
/** The designer: the ten lines of art direction, once per site after the pick (§2a, `designerDirectionSchema`). */
|
|
45511
|
+
AiStep["DesignDirection"] = "designDirection";
|
|
45512
|
+
/** The designer: one round's builder operations on a page (§2b, §2e — `DESIGN_TOOL_SCHEMAS`). */
|
|
45513
|
+
AiStep["DesignRevise"] = "designRevise";
|
|
45514
|
+
/** The designer: one round's critique against the reference (§2d, `criticAnswerSchema`). */
|
|
45515
|
+
AiStep["DesignCritique"] = "designCritique";
|
|
44772
45516
|
})(AiStep || (AiStep = {}));
|
|
44773
45517
|
const AI_STEPS = Object.values(AiStep);
|
|
44774
45518
|
/**
|
|
@@ -44799,6 +45543,10 @@ const AI_STEP_LABELS = {
|
|
|
44799
45543
|
[AiStep.AssistRead]: 'Read your photos',
|
|
44800
45544
|
[AiStep.AssistPicture]: 'Make a picture',
|
|
44801
45545
|
[AiStep.AssistPictureReview]: 'Check the picture',
|
|
45546
|
+
[AiStep.DesignConcepts]: 'Sketch three directions',
|
|
45547
|
+
[AiStep.DesignDirection]: 'Set the art direction',
|
|
45548
|
+
[AiStep.DesignRevise]: 'Design a round',
|
|
45549
|
+
[AiStep.DesignCritique]: 'Critique a round',
|
|
44802
45550
|
};
|
|
44803
45551
|
/** What a model must be able to do for a step to run on it. */
|
|
44804
45552
|
var AiCapability;
|
|
@@ -44820,6 +45568,10 @@ const AI_STEP_NEEDS = {
|
|
|
44820
45568
|
[AiStep.AssistRead]: [AiCapability.StructuredOutput, AiCapability.ImageInput],
|
|
44821
45569
|
[AiStep.AssistPicture]: [AiCapability.ImageOutput],
|
|
44822
45570
|
[AiStep.AssistPictureReview]: [AiCapability.StructuredOutput, AiCapability.ImageInput],
|
|
45571
|
+
[AiStep.DesignConcepts]: [AiCapability.StructuredOutput, AiCapability.ImageInput],
|
|
45572
|
+
[AiStep.DesignDirection]: [AiCapability.StructuredOutput, AiCapability.ImageInput],
|
|
45573
|
+
[AiStep.DesignRevise]: [AiCapability.StructuredOutput, AiCapability.ImageInput],
|
|
45574
|
+
[AiStep.DesignCritique]: [AiCapability.StructuredOutput, AiCapability.ImageInput],
|
|
44823
45575
|
};
|
|
44824
45576
|
/**
|
|
44825
45577
|
* The steps a model answers in the plan's parts, one request per part (vectoriox/iox-cms#47 — the whole plan's format
|
|
@@ -44891,6 +45643,13 @@ const AI_STEP_TYPICAL_TOKENS = {
|
|
|
44891
45643
|
// Files box ▸ Generate: the very calls of the two picture steps, so the very counts.
|
|
44892
45644
|
[AiStep.AssistPicture]: PICTURE_TOKENS,
|
|
44893
45645
|
[AiStep.AssistPictureReview]: PICTURE_REVIEW_TOKENS,
|
|
45646
|
+
// The designer (ai-designer-plan §6b, estimates until AD3 measures a round): a concept writes words and a planned Home
|
|
45647
|
+
// (no pictures out); the direction reads the references' cards and writes ten lines; a revise reads the brief and the
|
|
45648
|
+
// page as compact ops and writes ops; a critique reads ≈ 20 pictures, the reference's from the cache from round 2.
|
|
45649
|
+
[AiStep.DesignConcepts]: { input: 14_000, output: 6_000, cacheWrite: 0, cacheRead: 0 },
|
|
45650
|
+
[AiStep.DesignDirection]: { input: 12_000, output: 2_000, cacheWrite: 0, cacheRead: 0 },
|
|
45651
|
+
[AiStep.DesignRevise]: { input: 14_000, output: 10_000, cacheWrite: 0, cacheRead: 15_000 },
|
|
45652
|
+
[AiStep.DesignCritique]: { input: 35_500, output: 4_000, cacheWrite: 0, cacheRead: 35_000 },
|
|
44894
45653
|
};
|
|
44895
45654
|
/** 1 credit = 1 US cent of what the AI actually cost (decision D4). */
|
|
44896
45655
|
const CREDITS_PER_USD = 100;
|
|
@@ -45049,6 +45808,11 @@ const AI_STEP_FEATURE = {
|
|
|
45049
45808
|
[AiStep.AssistRead]: AiFeature.Assist,
|
|
45050
45809
|
[AiStep.AssistPicture]: AiFeature.Assist,
|
|
45051
45810
|
[AiStep.AssistPictureReview]: AiFeature.Assist,
|
|
45811
|
+
// The designer is site generation; whether a studio has it is the plan's `designer` switch (PlanFeature.Designer).
|
|
45812
|
+
[AiStep.DesignConcepts]: AiFeature.SiteGeneration,
|
|
45813
|
+
[AiStep.DesignDirection]: AiFeature.SiteGeneration,
|
|
45814
|
+
[AiStep.DesignRevise]: AiFeature.SiteGeneration,
|
|
45815
|
+
[AiStep.DesignCritique]: AiFeature.SiteGeneration,
|
|
45052
45816
|
};
|
|
45053
45817
|
var AiLimit;
|
|
45054
45818
|
(function (AiLimit) {
|
|
@@ -46716,8 +47480,10 @@ function checkAccessibility(ctx, snapshot, pages) {
|
|
|
46716
47480
|
}
|
|
46717
47481
|
const rendered = renderedTrees(snapshot);
|
|
46718
47482
|
for (const mode of snapshot.design?.modes ?? []) {
|
|
46719
|
-
// AD0 A6: only the pairs the site's pages render — the sweep judges every pairing the look COULD make.
|
|
46720
|
-
|
|
47483
|
+
// AD0 A6: only the pairs the site's pages render — the sweep judges every pairing the look COULD make. iox-ui#211:
|
|
47484
|
+
// and what stands over a scrim layer, over the scrim.
|
|
47485
|
+
const rows = snapshot.design.rows;
|
|
47486
|
+
const failing = renderedContrastFindings([...auditDesignContrast(rows, mode), ...scrimLayerFindings(rows, mode)], rendered).filter(f => !f.pass);
|
|
46721
47487
|
if (failing.length)
|
|
46722
47488
|
add(ctx, SiteFindingCode.LowContrast, { variant: mode, count: failing.length });
|
|
46723
47489
|
}
|
|
@@ -50402,20 +51168,20 @@ function designOpsOfLook(look) {
|
|
|
50402
51168
|
// re-run npm run gen:critic-rubric. The tester's rubric, ported for the AI designer's critic (ai-designer-plan §2d).
|
|
50403
51169
|
/* eslint-disable */
|
|
50404
51170
|
/** Where the rubric came from, and a hash of its section (a changed rubric is a new hash). */
|
|
50405
|
-
const CRITIC_RUBRIC_SOURCE = { file: 'team/reference-score.md', section: '§2', hash: "
|
|
51171
|
+
const CRITIC_RUBRIC_SOURCE = { file: 'team/reference-score.md', section: '§2', hash: "08ab197d4bfd" };
|
|
50406
51172
|
/** The eight dimensions in the rubric's order: the key the critic answers under, the name, what is compared. */
|
|
50407
51173
|
const CRITIC_RUBRIC_DIMENSIONS = [
|
|
50408
|
-
{ n: 1, key: "colour", name: "Colour", compares: "ground colour, how much accent and where, dark bands vs grey-black, palette harmony. Numbers: dominant colours, ΔE to the nearest target palette, contrast" },
|
|
51174
|
+
{ n: 1, key: "colour", name: "Colour", compares: "ground colour, how much accent and where, dark bands vs grey-black, palette harmony. A Scene's ground (a dark runway, a film's night) is judged at the Scene views with its picture, never as a band on the whole-page still. Numbers: dominant colours, ΔE to the nearest target palette, contrast" },
|
|
50409
51175
|
{ n: 2, key: "type", name: "Type", compares: "the display face's character, hero size ÷ body size, weights, tracking, uppercase use. Numbers: hero px, ratio, families" },
|
|
50410
51176
|
{ n: 3, key: "composition", name: "Composition", compares: "column width, whitespace rhythm, asymmetry and overlap, section variety (two sections in a row on one skeleton = a fault). Numbers: content width, section padding, distinct skeletons per page" },
|
|
50411
|
-
{ n: 4, key: "imagery", name: "Imagery", compares: "share of the screen that is picture, full-bleed use, crops, on-subject
|
|
50412
|
-
{ n: 5, key: "header", name: "Header", compares: "
|
|
51177
|
+
{ n: 4, key: "imagery", name: "Imagery", compares: "share of the screen that is picture, full-bleed use, crops, on-subject (an empty picture frame is a Polish bug, not scored here again). Numbers: picture area % per screen" },
|
|
51178
|
+
{ n: 5, key: "header", name: "Header", compares: "how well it is made: its craft, legibility, the menu (shelves, full screen), its behaviour on scroll, how it sits on the opening picture. Judged at its own level: a shape or a scroll behaviour different from the targets' is not a fault (a slim bar beside a floating pill, solid beside transparent), say it as a change, never a lower score. A header defect (the name against the edge, a button over the bar's edge, no menu control on the phone) is scored here, once" },
|
|
50413
51179
|
{ n: 6, key: "footer", name: "Footer", compares: "layout, richness (newsletter, social, facts), ground, legal row" },
|
|
50414
|
-
{ n: 7, key: "motion", name: "Motion & feel", compares: "scroll scenes, reveals, hover, page transitions, smoothness on the phone" },
|
|
50415
|
-
{ n: 8, key: "polish", name: "Polish (UI bugs)", compares: "overlaps, clipped text, misalignment, broken 390 layout, contrast fails, placeholder text, empty boxes. Each bug −1. Any bug a visitor would call broken caps the whole score at 5. Every bug becomes a GitHub issue" },
|
|
51180
|
+
{ n: 7, key: "motion", name: "Motion & feel", compares: "scroll scenes, reveals, hover, page transitions, smoothness on the phone. Stills cannot show motion: judge it from the Scene views and from the motion rows, the card's and ours, measured the same way on both live pages (smooth scroll, sticky, animations running, transitions declared). Motion a target has is a fault only when ours has nothing in its place" },
|
|
51181
|
+
{ n: 8, key: "polish", name: "Polish (UI bugs)", compares: "overlaps, clipped text, misalignment, broken 390 layout, contrast fails, placeholder text, empty boxes. A bug is a fault in the build, counted here once and never again in 1–7; a design choice (spacing, rhythm, palette) is scored in its own dimension, not here, and a header defect is scored under Header, not again here. Content faults (a placeholder, a mislabelled picture, a list repeated) are the gate's to fix: they are listed together as ONE bug. Marks only the phone shows (a focus ring, a few px off) are listed together as ONE bug, never broken. A still capture's blank Scene runway, an unplayed reveal or a menu caught mid-fade is not a bug. Each bug −1. Any bug a visitor would call broken caps the whole score at 5. Every bug becomes a GitHub issue" },
|
|
50416
51182
|
];
|
|
50417
51183
|
/** The headline rule, in the rubric's words. */
|
|
50418
|
-
const CRITIC_RUBRIC_HEADLINE = "Headline = the mean of 1–7, capped by 8. Every score has one sentence of evidence: \"hotelaurelia does X; ours does Y\", with the two crops side by side.";
|
|
51184
|
+
const CRITIC_RUBRIC_HEADLINE = "Headline = the mean of 1–7, capped by 8. Every score has one sentence of evidence: \"hotelaurelia does X; ours does Y\", with the two crops side by side. The scale: 9–10 the reference's own level (a target reference scores 8–10, §3.1); 8 it stands beside the reference; 6 a careful template; 5 competent and plain; 3 unfinished. A capability a target has and ours lacks lowers a score only where a visitor would feel the page is poorer for it; a different choice made with the same care scores the same. The card's numbers describe the target's level, not a target to reach: a size, a height, a share or a count is never better for being nearer the target's (a footer 850px tall is not worse for being shorter than 1,270px); ours is read from its own numbers, measured the same way. The scale does not soften: a page that is plain, careless or unfinished scores 3–6 however different it is, and a page is never raised for being unlike the targets.";
|
|
50419
51185
|
/** The polish row's numbers: what each bug costs, and the cap a bug a visitor would call broken puts on the page. */
|
|
50420
51186
|
const CRITIC_RUBRIC_POLISH = { bugPenalty: 1, brokenCap: 5 };
|
|
50421
51187
|
|
|
@@ -50464,18 +51230,22 @@ var CriticIssueCode;
|
|
|
50464
51230
|
CriticIssueCode["Shape"] = "shape";
|
|
50465
51231
|
/** A score outside 0–10 or not in half points. */
|
|
50466
51232
|
CriticIssueCode["Range"] = "range";
|
|
50467
|
-
/** Evidence that is not one line read off the sheet
|
|
51233
|
+
/** Evidence that is not one line read off the sheet: no number where the rubric measures in numbers, else not ours. */
|
|
50468
51234
|
CriticIssueCode["Evidence"] = "evidence";
|
|
50469
51235
|
/** Not 1–3 changes, or none aimed at the lowest score. */
|
|
50470
51236
|
CriticIssueCode["Changes"] = "changes";
|
|
50471
|
-
/** A polish score above what its bugs leave. */
|
|
50472
|
-
CriticIssueCode["Polish"] = "polish";
|
|
50473
51237
|
/** A brief that asks for resemblance (AD-D18): the reference's name, "copy", "look like". */
|
|
50474
51238
|
CriticIssueCode["Likeness"] = "likeness";
|
|
50475
51239
|
})(CriticIssueCode || (CriticIssueCode = {}));
|
|
50476
51240
|
/** A measurement: a number (a size, a position, a share) or a hex colour. */
|
|
50477
51241
|
const MEASURED = /\d/;
|
|
50478
|
-
|
|
51242
|
+
/** The comparison named: the line says what OURS does (the critic answers in English, as its instructions are). */
|
|
51243
|
+
const COMPARED = /\bours?\b/i;
|
|
51244
|
+
/** The dimensions the rubric measures in numbers (their row says "Numbers: …"): their evidence must hold one. The rest —
|
|
51245
|
+
* the header, the footer, motion, polish — are read as behaviour; a line naming ours (or a number) is evidence. */
|
|
51246
|
+
const MEASURED_DIMENSIONS = new Set(CRITIC_RUBRIC_DIMENSIONS.filter(d => /\bNumbers:/.test(d.compares)).map(d => d.key));
|
|
51247
|
+
/** Asking for likeness. "copy" alone is text (the hero copy, body copy) — only copying a thing is likeness. */
|
|
51248
|
+
const LIKENESS_WORDS = /\b(cop(?:y|ies|ying) (?:it|its|them|their|the|this|that)\b|mimic|replicate|imitate|clone|look(?:s|ing)? like|same as|just like)/i;
|
|
50479
51249
|
const MIN_NAME_PART = 4;
|
|
50480
51250
|
/** The words of a reference's name a brief may not say (`graya-institute` → graya, institute). */
|
|
50481
51251
|
const nameParts = (reference) => reference.toLowerCase().split(/[^a-z0-9]+/).filter(p => p.length >= MIN_NAME_PART);
|
|
@@ -50499,7 +51269,8 @@ function criticAnswerIssues(answer, ctx) {
|
|
|
50499
51269
|
if (v < CRITIC_SCORE.min || v > CRITIC_SCORE.max || !Number.isInteger(v / CRITIC_SCORE.step))
|
|
50500
51270
|
say(CriticIssueCode.Range, `${path}.score`, `0–10 in half points, not ${v}`);
|
|
50501
51271
|
const evidence = s['evidence'].trim();
|
|
50502
|
-
|
|
51272
|
+
const read = MEASURED.test(evidence) || (!MEASURED_DIMENSIONS.has(d) && COMPARED.test(evidence));
|
|
51273
|
+
if (!evidence || /\n/.test(evidence) || !read) {
|
|
50503
51274
|
say(CriticIssueCode.Evidence, `${path}.evidence`, 'one line read off the sheet — a position, a size or a colour, the reference\'s and ours');
|
|
50504
51275
|
}
|
|
50505
51276
|
}
|
|
@@ -50508,10 +51279,6 @@ function criticAnswerIssues(answer, ctx) {
|
|
|
50508
51279
|
if (!isPlainObject(b) || typeof b['what'] !== 'string' || typeof b['broken'] !== 'boolean')
|
|
50509
51280
|
say(CriticIssueCode.Shape, `bugs[${i}]`, 'a bug is { what, broken }');
|
|
50510
51281
|
});
|
|
50511
|
-
const polish = scores[CriticDimension.Polish]?.score;
|
|
50512
|
-
const allowed = CRITIC_SCORE.max - CRITIC_RUBRIC_POLISH.bugPenalty * bugs.length;
|
|
50513
|
-
if (typeof polish === 'number' && polish > allowed)
|
|
50514
|
-
say(CriticIssueCode.Polish, `scores.${CriticDimension.Polish}.score`, `${bugs.length} bug(s) leave at most ${allowed}`);
|
|
50515
51282
|
const changes = answer['changes'];
|
|
50516
51283
|
if (changes.length < CRITIC_CHANGES.min || changes.length > CRITIC_CHANGES.max)
|
|
50517
51284
|
say(CriticIssueCode.Changes, 'changes', `${CRITIC_CHANGES.min}–${CRITIC_CHANGES.max} changes, not ${changes.length}`);
|
|
@@ -50531,22 +51298,164 @@ function criticAnswerIssues(answer, ctx) {
|
|
|
50531
51298
|
if (out.length)
|
|
50532
51299
|
return out;
|
|
50533
51300
|
const lowest = lowestDimensions(answer);
|
|
50534
|
-
|
|
51301
|
+
// Every bug travels to the revise step on its own line (`roundBrief`), so a listed bug is a change aimed at polish.
|
|
51302
|
+
const aimed = new Set(changes.map(c => c.dimension));
|
|
51303
|
+
if (bugs.length)
|
|
51304
|
+
aimed.add(CriticDimension.Polish);
|
|
51305
|
+
if (!lowest.some(d => aimed.has(d))) {
|
|
50535
51306
|
say(CriticIssueCode.Changes, 'changes', `no change is aimed at the lowest score (${lowest.join(', ')})`);
|
|
50536
51307
|
}
|
|
50537
51308
|
return out;
|
|
50538
51309
|
}
|
|
50539
|
-
/** The dimensions holding the lowest score (ties together). */
|
|
51310
|
+
/** The dimensions holding the lowest score (ties together), polish as the rubric's arithmetic leaves it. */
|
|
50540
51311
|
function lowestDimensions(answer) {
|
|
50541
|
-
const
|
|
50542
|
-
|
|
51312
|
+
const score = (d) => (d === CriticDimension.Polish ? polishOf(answer) : answer.scores[d].score);
|
|
51313
|
+
const low = Math.min(...CRITIC_DIMENSIONS.map(score));
|
|
51314
|
+
return CRITIC_DIMENSIONS.filter(d => score(d) === low);
|
|
51315
|
+
}
|
|
51316
|
+
/** Polish by the rubric's arithmetic: the critic's score, never above what its bugs leave (each costs
|
|
51317
|
+
* `CRITIC_RUBRIC_POLISH.bugPenalty`), never below 0. The model's count is not refused for a slip of arithmetic — the
|
|
51318
|
+
* file does the sum (AD3 calibration: 6 of 48 answers were refused for a polish above it). */
|
|
51319
|
+
function polishOf(answer) {
|
|
51320
|
+
const allowed = CRITIC_SCORE.max - CRITIC_RUBRIC_POLISH.bugPenalty * answer.bugs.length;
|
|
51321
|
+
return Math.max(CRITIC_SCORE.min, Math.min(answer.scores[CriticDimension.Polish].score, allowed));
|
|
50543
51322
|
}
|
|
50544
51323
|
/** What a critique comes to, by the rubric's rule (`CRITIC_RUBRIC_HEADLINE`): the mean of 1–7, capped by a broken bug. */
|
|
50545
51324
|
function criticVerdict(answer) {
|
|
50546
51325
|
const designMean = CRITIC_DESIGN_DIMENSIONS.reduce((sum, d) => sum + answer.scores[d].score, 0) / CRITIC_DESIGN_DIMENSIONS.length;
|
|
50547
51326
|
const broken = answer.bugs.filter(b => b.broken).length;
|
|
50548
51327
|
const capped = broken > 0 && designMean > CRITIC_RUBRIC_POLISH.brokenCap;
|
|
50549
|
-
return { designMean, polish: answer
|
|
51328
|
+
return { designMean, polish: polishOf(answer), broken, headline: capped ? CRITIC_RUBRIC_POLISH.brokenCap : designMean, capped };
|
|
51329
|
+
}
|
|
51330
|
+
|
|
51331
|
+
const obj = (v) => (v && typeof v === 'object' && !Array.isArray(v) ? v : undefined);
|
|
51332
|
+
const num = (v) => (typeof v === 'number' && Number.isFinite(v) ? v : undefined);
|
|
51333
|
+
const str = (v) => (typeof v === 'string' && v.trim() ? v : undefined);
|
|
51334
|
+
const bool = (v) => (typeof v === 'boolean' ? v : undefined);
|
|
51335
|
+
const strs = (v) => (Array.isArray(v) ? v.filter((x) => typeof x === 'string') : undefined);
|
|
51336
|
+
const nums = (v) => (Array.isArray(v) ? v.filter((x) => typeof x === 'number' && Number.isFinite(x)) : undefined);
|
|
51337
|
+
/** The keys of `o` that `read` gives a value for; undefined when none. */
|
|
51338
|
+
function pick(raw, read) {
|
|
51339
|
+
const o = obj(raw);
|
|
51340
|
+
if (!o)
|
|
51341
|
+
return undefined;
|
|
51342
|
+
const out = {};
|
|
51343
|
+
for (const k of Object.keys(read)) {
|
|
51344
|
+
const v = read[k](o[k]);
|
|
51345
|
+
if (v !== undefined)
|
|
51346
|
+
out[k] = v;
|
|
51347
|
+
}
|
|
51348
|
+
return Object.keys(out).length ? out : undefined;
|
|
51349
|
+
}
|
|
51350
|
+
const COLOURS = { top: strs, meanSat: num, meanLum: num };
|
|
51351
|
+
const TYPE = {
|
|
51352
|
+
heroPx: num, heroText: str, heroFam: str, heroWeight: (v) => str(v) ?? (num(v) !== undefined ? String(v) : undefined), largestPx: num,
|
|
51353
|
+
largestFam: str, bodyPx: num, families: strs, headingFaces: strs, upperSharePct: num,
|
|
51354
|
+
};
|
|
51355
|
+
const LAYOUT = { paraWidthMedian: num, textLeftP10: num, contentSpan: num, docHeight: num, screens: num };
|
|
51356
|
+
const SECTIONS = { count: num, distinctSkeletons: num, consecutiveRepeats: num, padTopMedian: num };
|
|
51357
|
+
const HEADER = { pos: str, top: num, h: num, bg: str, backdrop: str, visibleLinks: num };
|
|
51358
|
+
const FOOTER = { h: num, bg: str, bgImage: bool, links: num, columnsApprox: num, hasForm: bool, social: strs, legal: bool, largestTextPx: num };
|
|
51359
|
+
/**
|
|
51360
|
+
* The card's numbers out of one width's measures (a visit's `metrics.json`, a round's `measures.<width>.visit`): each part
|
|
51361
|
+
* kept only when it has its type — a measure that failed (`{ error }`) or was never taken is left out, never read as 0.
|
|
51362
|
+
*/
|
|
51363
|
+
function visitNumbersOf(raw) {
|
|
51364
|
+
return pick(raw, {
|
|
51365
|
+
colourFirst: v => pick(v, COLOURS),
|
|
51366
|
+
colourFull: v => pick(v, COLOURS),
|
|
51367
|
+
colourFooter: v => pick(v, COLOURS),
|
|
51368
|
+
typeLayoutFirst: v => pick(v, { type: t => pick(t, TYPE) }),
|
|
51369
|
+
typeLayout: v => pick(v, {
|
|
51370
|
+
type: t => pick(t, TYPE), layout: l => pick(l, LAYOUT), sections: s => pick(s, SECTIONS),
|
|
51371
|
+
}),
|
|
51372
|
+
firstPictureAreaPct: num,
|
|
51373
|
+
pictureAreaByScreen: v => { const a = nums(v); return a?.length ? a : undefined; },
|
|
51374
|
+
pictureAreaMean: num,
|
|
51375
|
+
headerAtLoad: v => pick(v, HEADER),
|
|
51376
|
+
headerScrolledUp: v => pick(v, HEADER),
|
|
51377
|
+
footer: v => pick(v, FOOTER),
|
|
51378
|
+
overflow: v => pick(v, { docW: num, vw: num }),
|
|
51379
|
+
});
|
|
51380
|
+
}
|
|
51381
|
+
/** The rows the numbers fill, in the card's order. Motion (row 7) is `motionLine`'s, beside these. */
|
|
51382
|
+
const CARD_NUMBER_ROWS = [
|
|
51383
|
+
CriticDimension.Colour, CriticDimension.Type, CriticDimension.Composition, CriticDimension.Imagery,
|
|
51384
|
+
CriticDimension.Header, CriticDimension.Footer, CriticDimension.Polish,
|
|
51385
|
+
];
|
|
51386
|
+
const px = (v) => `${Math.round(v)}px`;
|
|
51387
|
+
/** The row's parts that were measured, joined; a part is a string, or a falsy guard (`0` from an empty list's length). */
|
|
51388
|
+
const parts = (...p) => p.filter((x) => typeof x === 'string' && x !== '').join('; ');
|
|
51389
|
+
/** How much of the hero's words the row quotes (enough to see what was counted as the hero — a clock, a label). */
|
|
51390
|
+
const CARD_HERO_TEXT_MAX = 32;
|
|
51391
|
+
function colourRow(n) {
|
|
51392
|
+
const mean = n.colourFull ?? n.colourFirst;
|
|
51393
|
+
return parts(n.colourFirst?.top?.length && `first screen ${n.colourFirst.top.slice(0, 5).join(', ')}`, n.colourFull?.top?.length && `whole page ${n.colourFull.top.slice(0, 5).join(', ')}`, mean && mean.meanSat !== undefined && mean.meanLum !== undefined && `mean saturation ${mean.meanSat}, luminance ${mean.meanLum}`, n.colourFooter?.top?.length && `footer ${n.colourFooter.top.slice(0, 3).join(', ')}`);
|
|
51394
|
+
}
|
|
51395
|
+
function typeRow(n) {
|
|
51396
|
+
const hero = n.typeLayoutFirst?.type;
|
|
51397
|
+
const page = n.typeLayout?.type;
|
|
51398
|
+
const text = hero?.heroText?.replace(/\s+/g, ' ').trim();
|
|
51399
|
+
return parts(hero?.heroPx !== undefined && `first-screen largest ${px(hero.heroPx)}${hero.heroFam ? ` ${hero.heroFam}` : ''}${hero.heroWeight ? ` ${hero.heroWeight}` : ''}`
|
|
51400
|
+
+ `${text ? ` ("${text.length > CARD_HERO_TEXT_MAX ? `${text.slice(0, CARD_HERO_TEXT_MAX)}…` : text}")` : ''}`, page?.largestPx !== undefined && `largest text ${px(page.largestPx)}${page.largestFam ? ` (${page.largestFam})` : ''}`, page?.bodyPx !== undefined && `body ${px(page.bodyPx)}`, hero?.heroPx !== undefined && !!page?.bodyPx && `hero ÷ body ${(hero.heroPx / page.bodyPx).toFixed(1)}`, page?.families?.length && `families by characters: ${page.families.join(' · ')}`, page?.headingFaces?.length && `heading faces: ${page.headingFaces.join(' · ')}`, page?.upperSharePct !== undefined && `caps share ${page.upperSharePct}%`);
|
|
51401
|
+
}
|
|
51402
|
+
function compositionRow(n) {
|
|
51403
|
+
const l = n.typeLayout?.layout;
|
|
51404
|
+
const s = n.typeLayout?.sections;
|
|
51405
|
+
return parts(l?.docHeight !== undefined && `page ${px(l.docHeight)}${l.screens !== undefined ? ` = ${l.screens} screens` : ''}`, l?.contentSpan !== undefined && `text span ${px(l.contentSpan)}${l.textLeftP10 !== undefined ? ` from x=${Math.round(l.textLeftP10)}` : ''}`, l?.paraWidthMedian !== undefined && `paragraph width median ${px(l.paraWidthMedian)}`, s?.count !== undefined && `${s.count} blocks${s.distinctSkeletons !== undefined ? `, ${s.distinctSkeletons} distinct skeletons` : ''}`
|
|
51406
|
+
+ `${s.consecutiveRepeats !== undefined ? `, ${s.consecutiveRepeats} back-to-back repeats` : ''}`, s?.padTopMedian !== undefined && `first text sits ${px(s.padTopMedian)} into a block (median)`);
|
|
51407
|
+
}
|
|
51408
|
+
function imageryRow(n) {
|
|
51409
|
+
return parts(n.firstPictureAreaPct !== undefined && `picture area: first screen ${n.firstPictureAreaPct}%`, n.pictureAreaMean !== undefined && `mean per screen ${n.pictureAreaMean}%${n.pictureAreaByScreen?.length ? ` (per screen ${n.pictureAreaByScreen.join('/')})` : ''}`);
|
|
51410
|
+
}
|
|
51411
|
+
const bar = (h, scrolled) => [
|
|
51412
|
+
h.pos, scrolled && h.top !== undefined ? `top ${Math.round(h.top)}` : '', h.h !== undefined ? px(h.h) : '', h.bg ? `bg ${h.bg}` : '',
|
|
51413
|
+
h.backdrop && h.backdrop !== 'none' ? h.backdrop : '', !scrolled && h.visibleLinks !== undefined ? `links ${h.visibleLinks}` : '',
|
|
51414
|
+
].filter(Boolean).join(' ');
|
|
51415
|
+
function headerRow(n) {
|
|
51416
|
+
return parts(n.headerAtLoad && bar(n.headerAtLoad, false) && `at load: ${bar(n.headerAtLoad, false)}`, n.headerScrolledUp && bar(n.headerScrolledUp, true) && `after down→up: ${bar(n.headerScrolledUp, true)}`);
|
|
51417
|
+
}
|
|
51418
|
+
/** A footer measured 0 px tall is a measure that missed (an empty `<footer>` landmark), never a fact: the row is left out. */
|
|
51419
|
+
function footerRow(n) {
|
|
51420
|
+
const f = n.footer;
|
|
51421
|
+
if (!f || !(f.h > 0))
|
|
51422
|
+
return '';
|
|
51423
|
+
return [
|
|
51424
|
+
px(f.h), f.bg ? `bg ${f.bg}${f.bgImage ? ' +image' : ''}` : '', f.links !== undefined ? `links ${f.links}` : '',
|
|
51425
|
+
f.columnsApprox !== undefined ? `cols~${f.columnsApprox}` : '', f.hasForm !== undefined ? `form ${f.hasForm}` : '',
|
|
51426
|
+
f.social ? `social [${f.social.join(',')}]` : '', f.legal !== undefined ? `legal ${f.legal}` : '',
|
|
51427
|
+
f.largestTextPx !== undefined ? `biggest ${px(f.largestTextPx)}` : '',
|
|
51428
|
+
].filter(Boolean).join(' ');
|
|
51429
|
+
}
|
|
51430
|
+
function polishRow(n) {
|
|
51431
|
+
const o = n.overflow;
|
|
51432
|
+
if (o?.docW === undefined || o.vw === undefined)
|
|
51433
|
+
return '';
|
|
51434
|
+
return o.docW > o.vw ? `sideways overflow ${Math.round(o.docW)}px > ${Math.round(o.vw)}px` : 'sideways overflow: none';
|
|
51435
|
+
}
|
|
51436
|
+
const ROW_FORMATS = {
|
|
51437
|
+
[CriticDimension.Colour]: colourRow,
|
|
51438
|
+
[CriticDimension.Type]: typeRow,
|
|
51439
|
+
[CriticDimension.Composition]: compositionRow,
|
|
51440
|
+
[CriticDimension.Imagery]: imageryRow,
|
|
51441
|
+
[CriticDimension.Header]: headerRow,
|
|
51442
|
+
[CriticDimension.Footer]: footerRow,
|
|
51443
|
+
[CriticDimension.Polish]: polishRow,
|
|
51444
|
+
};
|
|
51445
|
+
/**
|
|
51446
|
+
* ONE width's numbers in the reference card's words, row by row (`CARD_NUMBER_ROWS`) — the same function for the
|
|
51447
|
+
* reference's visit and our round, so the critic compares numbers with numbers. Only what was measured is printed.
|
|
51448
|
+
*/
|
|
51449
|
+
function cardNumbers(n) {
|
|
51450
|
+
const out = {};
|
|
51451
|
+
if (!n)
|
|
51452
|
+
return out;
|
|
51453
|
+
for (const row of CARD_NUMBER_ROWS) {
|
|
51454
|
+
const line = ROW_FORMATS[row]?.(n);
|
|
51455
|
+
if (line)
|
|
51456
|
+
out[row] = line;
|
|
51457
|
+
}
|
|
51458
|
+
return out;
|
|
50550
51459
|
}
|
|
50551
51460
|
|
|
50552
51461
|
/**
|
|
@@ -50587,6 +51496,18 @@ var CaptureView;
|
|
|
50587
51496
|
CaptureView["Full"] = "full";
|
|
50588
51497
|
})(CaptureView || (CaptureView = {}));
|
|
50589
51498
|
const CAPTURE_VIEW_ORDER = Object.values(CaptureView);
|
|
51499
|
+
/**
|
|
51500
|
+
* A motion measure in the reference card's words (`team/reference-cards/*.md`, row 7's numbers):
|
|
51501
|
+
* `lenis true gsap false swiper false videos 3 canvas 0 sticky 0 anims 21 transitions 33`, then `scenes N` when known.
|
|
51502
|
+
* A count the measure did not take is left out, never printed as 0.
|
|
51503
|
+
*/
|
|
51504
|
+
function motionLine(m) {
|
|
51505
|
+
const parts = [
|
|
51506
|
+
['lenis', m.lenis], ['gsap', m.gsap], ['swiper', m.swiper], ['videos', m.videos], ['canvas', m.canvases],
|
|
51507
|
+
['sticky', m.stickyEls], ['anims', m.animationsRunning], ['transitions', m.transitionsDeclared], ['scenes', m.scenes],
|
|
51508
|
+
];
|
|
51509
|
+
return parts.filter(([, v]) => typeof v === 'boolean' || (typeof v === 'number' && Number.isFinite(v))).map(([k, v]) => `${k} ${v}`).join(' ');
|
|
51510
|
+
}
|
|
50590
51511
|
/**
|
|
50591
51512
|
* Image tokens a vision model reads for a picture of w × h (ai-cost-plan, ai-designer-plan §6b): ⌈w/28⌉ × ⌈h/28⌉,
|
|
50592
51513
|
* capped — a bigger picture is scaled down to the cap.
|
|
@@ -50596,6 +51517,47 @@ const VISION_TOKEN_CAP = 4_784;
|
|
|
50596
51517
|
function visionImageTokens(w, h) {
|
|
50597
51518
|
return Math.min(Math.ceil(w / VISION_TOKEN_TILE) * Math.ceil(h / VISION_TOKEN_TILE), VISION_TOKEN_CAP);
|
|
50598
51519
|
}
|
|
51520
|
+
/** The views the sheet shows of ours even when the reference has none: the Scene stops, where motion is judged. */
|
|
51521
|
+
const OURS_ALONE_VIEWS = [CaptureView.Scene25, CaptureView.Scene50, CaptureView.Scene90];
|
|
51522
|
+
/** The motion counts out of a measure's raw object (iox-render `MOTION`), each kept only when it has its type. */
|
|
51523
|
+
function captureMotionOf(raw) {
|
|
51524
|
+
if (!raw || typeof raw !== 'object')
|
|
51525
|
+
return undefined;
|
|
51526
|
+
const r = raw;
|
|
51527
|
+
const out = {};
|
|
51528
|
+
for (const k of ['lenis', 'gsap', 'swiper'])
|
|
51529
|
+
if (typeof r[k] === 'boolean')
|
|
51530
|
+
out[k] = r[k];
|
|
51531
|
+
for (const k of ['videos', 'canvases', 'stickyEls', 'animationsRunning', 'transitionsDeclared', 'scenes']) {
|
|
51532
|
+
if (typeof r[k] === 'number' && Number.isFinite(r[k]))
|
|
51533
|
+
out[k] = r[k];
|
|
51534
|
+
}
|
|
51535
|
+
return Object.keys(out).length ? out : undefined;
|
|
51536
|
+
}
|
|
51537
|
+
/**
|
|
51538
|
+
* The measures the sheet uses, from one width's `metrics.json` of a visit (iox-render `visit.mjs`, the reference captures
|
|
51539
|
+
* and the tester's): the header at load, the polish findings boxed on the whole page, what moves, the card's numbers
|
|
51540
|
+
* (AD-D29). A malformed box is skipped; nothing found is `{}`.
|
|
51541
|
+
*/
|
|
51542
|
+
function visitMetricsOf(metrics) {
|
|
51543
|
+
const m = metrics;
|
|
51544
|
+
const out = {};
|
|
51545
|
+
const h = m?.headerAtLoad;
|
|
51546
|
+
if (h && [h.left, h.top, h.w, h.h].every(Number.isFinite) && h.h > 0)
|
|
51547
|
+
out.header = { x: h.left, y: h.top, w: h.w, h: h.h };
|
|
51548
|
+
const flagged = (m?.polish ?? [])
|
|
51549
|
+
.filter(p => Array.isArray(p.box) && p.box.length === 4 && p.box.every(Number.isFinite))
|
|
51550
|
+
.map(p => ({ view: CaptureView.Full, box: { x: p.box[0], y: p.box[1], w: p.box[2], h: p.box[3] }, why: `${p.kind}: "${String(p.text ?? '').slice(0, 60)}"` }));
|
|
51551
|
+
if (flagged.length)
|
|
51552
|
+
out.flagged = flagged;
|
|
51553
|
+
const motion = captureMotionOf(m?.motion);
|
|
51554
|
+
if (motion)
|
|
51555
|
+
out.motion = motion;
|
|
51556
|
+
const numbers = visitNumbersOf(m);
|
|
51557
|
+
if (numbers)
|
|
51558
|
+
out.numbers = numbers;
|
|
51559
|
+
return out;
|
|
51560
|
+
}
|
|
50599
51561
|
const CRITIC_CROP_RECIPES = [
|
|
50600
51562
|
{ width: CaptureWidth.Laptop, view: CaptureView.First, box: { x: 0, y: 0, w: 1, h: 0.16 }, why: 'the header on the opening' },
|
|
50601
51563
|
{ width: CaptureWidth.Laptop, view: CaptureView.First, box: { x: 0, y: 0.16, w: 0.6, h: 0.6 }, why: 'the opening\'s words' },
|
|
@@ -50623,11 +51585,69 @@ function zoomOf(box) {
|
|
|
50623
51585
|
return Math.max(1, Math.min(CRITIC_CROP_MAX_ZOOM, Math.floor(fill * 4) / 4));
|
|
50624
51586
|
}
|
|
50625
51587
|
/**
|
|
50626
|
-
* The
|
|
51588
|
+
* The most pictures one sheet sends (the lead, 2026-12-01, after AD3's first live call): the Claude API holds every picture
|
|
51589
|
+
* of a request with more than 20 to 2000 px a side, which leaves a full-page overview ≈ 290 px wide. At ≤ 20 a picture may
|
|
51590
|
+
* be 8000 px a side, so the full page stays readable.
|
|
51591
|
+
*/
|
|
51592
|
+
const CRITIC_SHEET_MAX_IMAGES = 20;
|
|
51593
|
+
/**
|
|
51594
|
+
* The order views leave a sheet that is over the limit: first the phone views the sheet already shows another way — the
|
|
51595
|
+
* opening and the footer (the phone crops enlarge them), then the rest of the phone's screens, which the laptop's views
|
|
51596
|
+
* and the phone's full page cover — then the menu open, phone and laptop. The full pages and the laptop's own screens stay.
|
|
51597
|
+
*/
|
|
51598
|
+
const CRITIC_SHEET_DROP_ORDER = [
|
|
51599
|
+
...[CaptureView.First, CaptureView.Footer, CaptureView.HeaderScrolled, CaptureView.Down1, CaptureView.Down2, CaptureView.List,
|
|
51600
|
+
CaptureView.Scene25, CaptureView.Scene50, CaptureView.Scene90, CaptureView.Reduced].map(v => [CaptureWidth.Phone, v]),
|
|
51601
|
+
[CaptureWidth.Phone, CaptureView.HeaderOpen],
|
|
51602
|
+
[CaptureWidth.Laptop, CaptureView.HeaderOpen],
|
|
51603
|
+
// the laptop Scene's ends; its middle (50 %) stays as long as any crop beyond the fewest can go
|
|
51604
|
+
[CaptureWidth.Laptop, CaptureView.Scene25],
|
|
51605
|
+
[CaptureWidth.Laptop, CaptureView.Scene90],
|
|
51606
|
+
];
|
|
51607
|
+
/** The pairs no sheet drops, however full: the laptop's opening and both full pages. */
|
|
51608
|
+
const SHEET_KEEPS = [
|
|
51609
|
+
[CaptureWidth.Laptop, CaptureView.First], [CaptureWidth.Laptop, CaptureView.Full], [CaptureWidth.Phone, CaptureView.Full],
|
|
51610
|
+
];
|
|
51611
|
+
/** The pictures a sheet sends: ours of every pair and crop, and the reference's where it has one. */
|
|
51612
|
+
function sheetImageCount(sheet) {
|
|
51613
|
+
return sheet.pairs.reduce((n, p) => n + (p.reference ? 2 : 1), 0) + sheet.crops.reduce((n, c) => n + (c.reference ? 2 : 1), 0);
|
|
51614
|
+
}
|
|
51615
|
+
/**
|
|
51616
|
+
* Bring a sheet to at most `max` pictures: the views in `CRITIC_SHEET_DROP_ORDER`, one at a time; then the crops from the
|
|
51617
|
+
* last down to the fewest (`CRITIC_CROPS.min`); then, only if still over, the remaining pairs from the last, never the
|
|
51618
|
+
* opening or a full page. Every step is recorded in `dropped`.
|
|
51619
|
+
*/
|
|
51620
|
+
function fitSheet(pairs, crops, max) {
|
|
51621
|
+
const dropped = [];
|
|
51622
|
+
const over = () => sheetImageCount({ pairs, crops }) > max;
|
|
51623
|
+
const dropPair = (width, view) => {
|
|
51624
|
+
const i = pairs.findIndex(p => p.width === width && p.view === view);
|
|
51625
|
+
if (i < 0)
|
|
51626
|
+
return;
|
|
51627
|
+
pairs.splice(i, 1);
|
|
51628
|
+
dropped.push(`${width}/${view}`);
|
|
51629
|
+
};
|
|
51630
|
+
for (const [width, view] of CRITIC_SHEET_DROP_ORDER) {
|
|
51631
|
+
if (!over())
|
|
51632
|
+
return dropped;
|
|
51633
|
+
dropPair(width, view);
|
|
51634
|
+
}
|
|
51635
|
+
while (over() && crops.length > CRITIC_CROPS.min)
|
|
51636
|
+
dropped.push(`crop: ${crops.pop().why}`);
|
|
51637
|
+
const kept = (p) => SHEET_KEEPS.some(([w, v]) => p.width === w && p.view === v);
|
|
51638
|
+
for (let i = pairs.length - 1; i >= 0 && over(); i--)
|
|
51639
|
+
if (!kept(pairs[i]))
|
|
51640
|
+
dropPair(pairs[i].width, pairs[i].view);
|
|
51641
|
+
return dropped;
|
|
51642
|
+
}
|
|
51643
|
+
/**
|
|
51644
|
+
* The sheet for one page against one reference: every view both sides have, laptop first, in `CAPTURE_VIEW_ORDER` — and
|
|
51645
|
+
* ours alone at a Scene stop the reference lacks (`OURS_ALONE_VIEWS`); then
|
|
50627
51646
|
* the crops — ours' flagged boxes first (distinct findings, at most `CRITIC_FLAGGED_CROPS`), then the recipes on both
|
|
50628
51647
|
* sides, up to the most (the recipes alone give the fewest). The header recipe uses the measured header box when ours has one.
|
|
51648
|
+
* Then the sheet is brought to `maxImages` pictures (`CRITIC_SHEET_MAX_IMAGES`; `fitSheet`'s order).
|
|
50629
51649
|
*/
|
|
50630
|
-
function planCritiqueSheet(ours, reference) {
|
|
51650
|
+
function planCritiqueSheet(ours, reference, maxImages = CRITIC_SHEET_MAX_IMAGES) {
|
|
50631
51651
|
const pairs = [];
|
|
50632
51652
|
const missing = [];
|
|
50633
51653
|
for (const width of Object.values(CaptureWidth)) {
|
|
@@ -50636,6 +51656,8 @@ function planCritiqueSheet(ours, reference) {
|
|
|
50636
51656
|
const r = shotOf(reference, width, view);
|
|
50637
51657
|
if (o && r)
|
|
50638
51658
|
pairs.push({ width, view, reference: r, ours: o });
|
|
51659
|
+
else if (o && OURS_ALONE_VIEWS.includes(view))
|
|
51660
|
+
pairs.push({ width, view, ours: o });
|
|
50639
51661
|
else if (o || r)
|
|
50640
51662
|
missing.push(`${width}/${view}: no ${o ? 'reference' : 'page'} shot`);
|
|
50641
51663
|
}
|
|
@@ -50665,11 +51687,33 @@ function planCritiqueSheet(ours, reference) {
|
|
|
50665
51687
|
: fraction(o, recipe.box));
|
|
50666
51688
|
crops.push({ width: recipe.width, view: recipe.view, why: recipe.why, ours: { ref: o.ref, box }, reference: { ref: r.ref, box: clip(r, fraction(r, recipe.box)) }, zoom: zoomOf(box) });
|
|
50667
51689
|
}
|
|
50668
|
-
const
|
|
51690
|
+
const motion = [];
|
|
51691
|
+
for (const width of Object.values(CaptureWidth)) {
|
|
51692
|
+
const o = ours.metrics?.[width]?.motion;
|
|
51693
|
+
const r = reference.metrics?.[width]?.motion;
|
|
51694
|
+
const line = (m) => (m ? motionLine(m) : '');
|
|
51695
|
+
if (line(o) || line(r))
|
|
51696
|
+
motion.push({ width, ...(line(r) ? { reference: line(r) } : {}), ...(line(o) ? { ours: line(o) } : {}) });
|
|
51697
|
+
}
|
|
51698
|
+
const numbers = [];
|
|
51699
|
+
// re-read on the way in (idempotent): a capture source may hand its measures over as they were written
|
|
51700
|
+
const rowsOf = (set) => Object.fromEntries(Object.values(CaptureWidth).map(w => [w, cardNumbers(visitNumbersOf(set.metrics?.[w]?.numbers))]));
|
|
51701
|
+
const ourRows = rowsOf(ours);
|
|
51702
|
+
const theirRows = rowsOf(reference);
|
|
51703
|
+
for (const dimension of CARD_NUMBER_ROWS) {
|
|
51704
|
+
for (const width of Object.values(CaptureWidth)) {
|
|
51705
|
+
const o = ourRows[width][dimension];
|
|
51706
|
+
const r = theirRows[width][dimension];
|
|
51707
|
+
if (o || r)
|
|
51708
|
+
numbers.push({ dimension, width, ...(r ? { reference: r } : {}), ...(o ? { ours: o } : {}) });
|
|
51709
|
+
}
|
|
51710
|
+
}
|
|
51711
|
+
const dropped = fitSheet(pairs, crops, maxImages);
|
|
51712
|
+
const referenceImageTokens = pairs.reduce((n, p) => n + (p.reference ? visionImageTokens(p.reference.w, p.reference.h) : 0), 0);
|
|
50669
51713
|
const pairTokens = referenceImageTokens + pairs.reduce((n, p) => n + visionImageTokens(p.ours.w, p.ours.h), 0);
|
|
50670
51714
|
const cropTokens = crops.reduce((n, c) => n + visionImageTokens(c.ours.box.w * c.zoom, c.ours.box.h * c.zoom)
|
|
50671
51715
|
+ (c.reference ? visionImageTokens(c.reference.box.w * c.zoom, c.reference.box.h * c.zoom) : 0), 0);
|
|
50672
|
-
return { pairs, crops, missing, imageTokens: pairTokens + cropTokens, referenceImageTokens };
|
|
51716
|
+
return { pairs, crops, motion, numbers, missing, dropped, imageTokens: pairTokens + cropTokens, referenceImageTokens };
|
|
50673
51717
|
}
|
|
50674
51718
|
|
|
50675
51719
|
/** One item of the round's turn: words, a shot, or a zoomed crop of a shot (the host cuts and enlarges it). `cache` marks
|
|
@@ -50693,11 +51737,44 @@ var CriticSheetLayout;
|
|
|
50693
51737
|
CriticSheetLayout["Cached"] = "cached";
|
|
50694
51738
|
CriticSheetLayout["Paired"] = "paired";
|
|
50695
51739
|
})(CriticSheetLayout || (CriticSheetLayout = {}));
|
|
51740
|
+
/** AD-D29 (2): the card's numbers describe the reference's level, never a target (the AD3 Opus answers marked every hotel
|
|
51741
|
+
* footer down for being ≈ 850px beside the reference's ≈ 1,270px). Part of `CRITIC_LEVEL_RULE`. */
|
|
51742
|
+
const CRITIC_CARD_LEVEL_WORDS = 'The card\'s numbers describe the reference\'s level, not a target: a size, a height, a share or '
|
|
51743
|
+
+ 'a count is never better for being nearer the reference\'s — a footer 850px tall is not worse for being shorter than the '
|
|
51744
|
+
+ 'reference\'s 1,270px. Judge what ours does with its own numbers.';
|
|
50696
51745
|
/** AD-D18, in the words the critic reads. */
|
|
50697
51746
|
const CRITIC_LEVEL_RULE = 'Score the LEVEL, never the likeness. Ask "is this page as good as the reference?", never "does it look '
|
|
50698
51747
|
+ 'like it?". Resemblance earns nothing: a page that borrows the reference\'s arrangement scores no higher than a different page made '
|
|
50699
51748
|
+ 'with the same care, and a page unlike the reference can score 10. The reference and its card show the standard to reach — its '
|
|
50700
|
-
+ 'precision, its restraint, its finish — not a design to copy.'
|
|
51749
|
+
+ 'precision, its restraint, its finish — not a design to copy. A capability the reference has and ours lacks lowers a score only '
|
|
51750
|
+
+ 'where a visitor would feel the page is poorer for it; a different choice made with the same care scores the same (a slim bar '
|
|
51751
|
+
+ 'beside a floating pill, a solid header beside a transparent one — say it as a change, never a lower score). This never '
|
|
51752
|
+
+ 'softens the scale: a page that is plain, careless or unfinished scores 3–6 however different it is, and nothing is raised '
|
|
51753
|
+
+ 'for being unlike the reference. ' + CRITIC_CARD_LEVEL_WORDS;
|
|
51754
|
+
/** What a still sheet cannot show (AD3 calibration: a third of the critic's bugs, and every 5.0 cap on a proof page, were
|
|
51755
|
+
* a Scene's scroll runway or an unplayed reveal on the whole-page view, or a menu caught mid-fade). */
|
|
51756
|
+
const CRITIC_STILL_RULE = 'THE SHOTS ARE STILL. The whole-page view is taken in one frame: a Scene pins its picture while '
|
|
51757
|
+
+ 'the visitor scrolls through a tall runway, and a reveal waits for the visitor to reach it — on that view both show as a tall '
|
|
51758
|
+
+ 'empty band. That band is not a bug and not a fault of composition: judge the Scene and the reveals under motion, from the '
|
|
51759
|
+
+ 'Scene views when the sheet has them. A band is a bug only when a screen-sized view, taken while scrolling like a visitor (the '
|
|
51760
|
+
+ 'first screen, the header after scrolling, the footer, a list), shows it empty too. Likewise a view that shows two states at '
|
|
51761
|
+
+ 'once (a menu half over the page, a logo drawn twice) was caught mid-transition: say so under motion, never mark it broken. '
|
|
51762
|
+
+ 'The same holds for COLOUR: a Scene\'s ground — a dark runway, a film\'s night — seen on the whole-page view is judged at the '
|
|
51763
|
+
+ 'Scene views, where the visitor sees it with its picture, never as a band of colour on its own (AD-D29).';
|
|
51764
|
+
/** What a bug is, so one fault is scored once (AD3 calibration: the critic listed ≈ 3× the tester's bugs). */
|
|
51765
|
+
const CRITIC_BUG_RULE = 'A BUG is a fault in the build a visitor would notice: words over words, a cut-off line, an empty '
|
|
51766
|
+
+ 'frame where a picture belongs, a dead button, a contrast fail, placeholder text. A design choice — spacing, rhythm, an '
|
|
51767
|
+
+ 'off palette, a weak picture — is not a bug: it is scored in its own dimension, once. Never list one fault twice, and never '
|
|
51768
|
+
+ 'list it as a bug AND lower a design dimension for it: a header defect (the name against the edge, a button over the bar\'s '
|
|
51769
|
+
+ 'edge) lowers Header and is not listed again. Content faults — a placeholder, a mislabelled picture, a list repeated — are '
|
|
51770
|
+
+ 'the gate\'s to fix: list them together as ONE bug. Marks only the phone shows — a focus ring, a few px off — are listed '
|
|
51771
|
+
+ 'together as ONE bug, never broken.';
|
|
51772
|
+
/** How motion is judged when the shots are still (AD-D27; the AD3 calibration on 5.205.0: motion −0.92 below the tester, the
|
|
51773
|
+
* reference card listing its motion while ours was read off stills). */
|
|
51774
|
+
const CRITIC_MOTION_RULE = 'MOTION is judged from the Scene views and from THE MOTION rows: what moves on each live page, '
|
|
51775
|
+
+ 'counted the same way on both at the first screen (the card\'s Motion row prints the same counts — lenis is smooth scroll, '
|
|
51776
|
+
+ 'sticky the pinned elements, anims the animations running, transitions the controls that ease). Compare those rows, not '
|
|
51777
|
+
+ 'what a still cannot show: motion the reference has is a fault only when ours has nothing in its place.';
|
|
50701
51778
|
const WIDTH_WORDS = { [CaptureWidth.Laptop]: 'Laptop 1440', [CaptureWidth.Phone]: 'Phone 390' };
|
|
50702
51779
|
const VIEW_WORDS = {
|
|
50703
51780
|
[CaptureView.First]: 'the first screen',
|
|
@@ -50713,7 +51790,27 @@ const VIEW_WORDS = {
|
|
|
50713
51790
|
[CaptureView.Footer]: 'the footer',
|
|
50714
51791
|
[CaptureView.Full]: 'the whole page, scaled down',
|
|
50715
51792
|
};
|
|
51793
|
+
/** The label of a view the reference has no shot of (a Scene stop): ours is judged for motion on its own. */
|
|
51794
|
+
const OURS_ALONE_WORDS = 'ours alone (the reference has no such view) — judge our motion: the Scene as the visitor scrolls';
|
|
50716
51795
|
const where = (width, view) => `${WIDTH_WORDS[width]} · ${VIEW_WORDS[view]}`;
|
|
51796
|
+
/** THE MOTION rows (AD-D27): each width, the reference's count then ours, in the card's words; a side not measured says so. */
|
|
51797
|
+
function motionText(motion, reference) {
|
|
51798
|
+
return [
|
|
51799
|
+
'THE MOTION, counted the same way on both live pages at the first screen (the stills cannot show it):',
|
|
51800
|
+
...motion.map(m => `${WIDTH_WORDS[m.width]} — ${reference}: ${m.reference ?? 'not measured'}; ours: ${m.ours ?? 'not measured'}`),
|
|
51801
|
+
].join('\n');
|
|
51802
|
+
}
|
|
51803
|
+
/** The rubric's name of a dimension (`Imagery`), for the numbers' rows. */
|
|
51804
|
+
const DIMENSION_WORDS = (d) => CRITIC_RUBRIC_DIMENSIONS.find(r => r.key === d)?.name ?? d;
|
|
51805
|
+
/** THE NUMBERS (AD-D29): row by row, each width, the reference's numbers then ours, in the card's words; a side not
|
|
51806
|
+
* measured says so. */
|
|
51807
|
+
function numbersText(numbers, reference) {
|
|
51808
|
+
return [
|
|
51809
|
+
'THE NUMBERS, row by row as the reference\'s card prints them, measured the same way on both live pages (read sizes and '
|
|
51810
|
+
+ 'shares here, never off a scaled-down picture; the reference\'s numbers show its level, not a target):',
|
|
51811
|
+
...numbers.map(n => `${DIMENSION_WORDS(n.dimension)} · ${WIDTH_WORDS[n.width]} — ${reference}: ${n.reference ?? 'not measured'}; ours: ${n.ours ?? 'not measured'}`),
|
|
51812
|
+
].join('\n');
|
|
51813
|
+
}
|
|
50717
51814
|
/** The rubric as the critic reads it: each dimension with what it compares, then the headline and the polish rule. */
|
|
50718
51815
|
function criticRubricText() {
|
|
50719
51816
|
return [
|
|
@@ -50735,10 +51832,13 @@ function criticSystem() {
|
|
|
50735
51832
|
},
|
|
50736
51833
|
{ text: CRITIC_LEVEL_RULE },
|
|
50737
51834
|
{ text: criticRubricText() },
|
|
51835
|
+
{ text: `${CRITIC_STILL_RULE}\n${CRITIC_MOTION_RULE}\n${CRITIC_BUG_RULE}` },
|
|
50738
51836
|
{
|
|
50739
51837
|
text: [
|
|
50740
51838
|
'EVIDENCE: one line per dimension, read off the sheet as a position, a size or a colour — "<reference> sets the hero at '
|
|
50741
|
-
+ '≈ 100px on paper #FFFFFC; ours sets it at 64px on #F3F0EA". A line with no measurement is refused.'
|
|
51839
|
+
+ '≈ 100px on paper #FFFFFC; ours sets it at 64px on #F3F0EA". A line with no measurement is refused. Where THE '
|
|
51840
|
+
+ 'NUMBERS give a size or a share, take it from there: the pictures are scaled down, and a size read off them runs '
|
|
51841
|
+
+ 'small.',
|
|
50742
51842
|
`CHANGES: ${CRITIC_CHANGES.min}–${CRITIC_CHANGES.max}, the ones that move the LOWEST score most, at least one aimed at it. Write `
|
|
50743
51843
|
+ 'each as a brief for the designer, in our own terms (what to change, where, by how much). Never name the reference in a '
|
|
50744
51844
|
+ 'brief, and never ask to copy it or make it look like it.',
|
|
@@ -50761,16 +51861,20 @@ function criticRoundContent(input, sheet, layout = CriticSheetLayout.Cached) {
|
|
|
50761
51861
|
if (layout === CriticSheetLayout.Cached) {
|
|
50762
51862
|
out.push(text(`THE REFERENCE, ${input.reference}, view by view:`));
|
|
50763
51863
|
for (const p of sheet.pairs)
|
|
50764
|
-
|
|
51864
|
+
if (p.reference)
|
|
51865
|
+
out.push(text(`${where(p.width, p.view)} — the reference:`), shot(p.reference));
|
|
50765
51866
|
out[out.length - 1] = { ...out[out.length - 1], cache: true };
|
|
50766
51867
|
out.push(page, text('OUR PAGE, the same views:'));
|
|
50767
51868
|
for (const p of sheet.pairs)
|
|
50768
|
-
out.push(text(`${where(p.width, p.view)} — ours:`), shot(p.ours));
|
|
51869
|
+
out.push(text(`${where(p.width, p.view)} — ${p.reference ? 'ours' : OURS_ALONE_WORDS}:`), shot(p.ours));
|
|
50769
51870
|
}
|
|
50770
51871
|
else {
|
|
50771
51872
|
out.unshift(page);
|
|
50772
|
-
for (const p of sheet.pairs)
|
|
50773
|
-
|
|
51873
|
+
for (const p of sheet.pairs) {
|
|
51874
|
+
if (p.reference)
|
|
51875
|
+
out.push(text(`${where(p.width, p.view)} — the reference:`), shot(p.reference));
|
|
51876
|
+
out.push(text(`${where(p.width, p.view)} — ${p.reference ? 'ours' : OURS_ALONE_WORDS}:`), shot(p.ours));
|
|
51877
|
+
}
|
|
50774
51878
|
}
|
|
50775
51879
|
sheet.crops.forEach((c, i) => {
|
|
50776
51880
|
const head = `Crop ${i + 1}, ${c.why} (${where(c.width, c.view)}, ×${c.zoom})`;
|
|
@@ -50778,6 +51882,10 @@ function criticRoundContent(input, sheet, layout = CriticSheetLayout.Cached) {
|
|
|
50778
51882
|
out.push(text(`${head} — the reference:`), { kind: CriticContentKind.Crop, ref: c.reference.ref, box: c.reference.box, zoom: c.zoom });
|
|
50779
51883
|
out.push(text(`${head} — ours:`), { kind: CriticContentKind.Crop, ref: c.ours.ref, box: c.ours.box, zoom: c.zoom });
|
|
50780
51884
|
});
|
|
51885
|
+
if (sheet.numbers?.length)
|
|
51886
|
+
out.push(text(numbersText(sheet.numbers, input.reference)));
|
|
51887
|
+
if (sheet.motion?.length)
|
|
51888
|
+
out.push(text(motionText(sheet.motion, input.reference)));
|
|
50781
51889
|
if (input.measures?.length)
|
|
50782
51890
|
out.push(text(`THE MEASURES (ours):\n${input.measures.join('\n')}`));
|
|
50783
51891
|
if (input.gateFindings?.length)
|
|
@@ -50802,6 +51910,9 @@ function criticRoundContent(input, sheet, layout = CriticSheetLayout.Cached) {
|
|
|
50802
51910
|
const CALIBRATION_MAX_ERROR = 0.5;
|
|
50803
51911
|
/** AD-D3: how close the cheaper critic must stay to the dearer one for a round to switch to it. */
|
|
50804
51912
|
const CRITIC_SWITCH_WITHIN = 0.3;
|
|
51913
|
+
/** R-H22 (AD-D28): on the mean over the copy/distinct pairs, the copy may score at most this much above the distinct pages —
|
|
51914
|
+
* one half point on one dimension moves a design mean by 0.07, so a strict ≤ failed on a tie the tester scored alike. */
|
|
51915
|
+
const R_H22_TOLERANCE = 0.25;
|
|
50805
51916
|
var CalibrationKind;
|
|
50806
51917
|
(function (CalibrationKind) {
|
|
50807
51918
|
/** A page of the designer-loop proof (law, hotel). */
|
|
@@ -50836,7 +51947,8 @@ function rowOf(page, recorded, options) {
|
|
|
50836
51947
|
return { ...base, issues, criticMean: null, error: null, dimensionErrors: {}, criticHeadline: null, costUsd };
|
|
50837
51948
|
const answer = recorded.answer;
|
|
50838
51949
|
const verdict = criticVerdict(answer);
|
|
50839
|
-
const
|
|
51950
|
+
const scoreOf = (d) => (d === CriticDimension.Polish ? polishOf(answer) : answer.scores[d].score);
|
|
51951
|
+
const dimensionErrors = Object.fromEntries(CRITIC_DIMENSIONS.map(d => [d, scoreOf(d) - page.tester[d]]));
|
|
50840
51952
|
return { ...base, issues, criticMean: verdict.designMean, error: verdict.designMean - testerMean, dimensionErrors, criticHeadline: verdict.headline, costUsd };
|
|
50841
51953
|
}
|
|
50842
51954
|
function modelOf(model, pages, answers, options) {
|
|
@@ -50876,12 +51988,15 @@ function calibrationReport(pages, answers, options) {
|
|
|
50876
51988
|
const meanDifference = both.length === pages.length ? mean(both) : null;
|
|
50877
51989
|
agreement = { ...options.compare, meanDifference, within: meanDifference !== null && meanDifference <= CRITIC_SWITCH_WITHIN };
|
|
50878
51990
|
}
|
|
50879
|
-
const
|
|
50880
|
-
|
|
50881
|
-
const
|
|
50882
|
-
const
|
|
50883
|
-
|
|
50884
|
-
|
|
51991
|
+
const probes = options.likenessProbes ?? [];
|
|
51992
|
+
const likeness = probes.length ? models.map(m => {
|
|
51993
|
+
const designMean = (id) => m.rows.find(r => r.pageId === id)?.criticMean ?? null;
|
|
51994
|
+
const pairs = probes.map(probe => ({ ...probe, copyMean: designMean(probe.copy), distinctMean: designMean(probe.distinct) }));
|
|
51995
|
+
const answered = pairs.every(p => p.copyMean !== null && p.distinctMean !== null);
|
|
51996
|
+
const copyMean = answered ? mean(pairs.map(p => p.copyMean)) : null;
|
|
51997
|
+
const distinctMean = answered ? mean(pairs.map(p => p.distinctMean)) : null;
|
|
51998
|
+
return { model: m.model, pairs, copyMean, distinctMean, passes: copyMean !== null && distinctMean !== null && copyMean <= distinctMean + R_H22_TOLERANCE };
|
|
51999
|
+
}) : [];
|
|
50885
52000
|
return { models, agreement, likeness };
|
|
50886
52001
|
}
|
|
50887
52002
|
|
|
@@ -52334,8 +53449,8 @@ function designerStopDecision(rounds, role, outOfCredits = false) {
|
|
|
52334
53449
|
*/
|
|
52335
53450
|
/** §6b: one critique (≈ 20 pictures, the reference's cached) and one revise (the page as compact ops), per round. */
|
|
52336
53451
|
const DESIGNER_ROUND_TOKENS = {
|
|
52337
|
-
critique:
|
|
52338
|
-
revise:
|
|
53452
|
+
critique: AI_STEP_TYPICAL_TOKENS[AiStep.DesignCritique],
|
|
53453
|
+
revise: AI_STEP_TYPICAL_TOKENS[AiStep.DesignRevise],
|
|
52339
53454
|
};
|
|
52340
53455
|
/** §6c: the rounds a page takes at today's proof rates, with the batch A/B fixes and the seeded lessons. */
|
|
52341
53456
|
const DESIGNER_ROUNDS_EXPECTED = {
|
|
@@ -52602,8 +53717,9 @@ function roundBrief(input) {
|
|
|
52602
53717
|
const score = critique.scores[c.dimension]?.score;
|
|
52603
53718
|
lines.push(`${i + 1}. [${c.dimension}${typeof score === 'number' ? ` ${score}` : ''}] ${c.brief}`);
|
|
52604
53719
|
});
|
|
52605
|
-
const lowest =
|
|
52606
|
-
|
|
53720
|
+
const lowest = lowestDimensions(critique)[0];
|
|
53721
|
+
const lowScore = lowest === CriticDimension.Polish ? polishOf(critique) : critique.scores[lowest].score;
|
|
53722
|
+
lines.push(`Lowest: ${lowest} ${lowScore} — ${critique.scores[lowest].evidence}`);
|
|
52607
53723
|
for (const bug of critique.bugs.filter(b => !b.broken))
|
|
52608
53724
|
lines.push(`Bug: ${bug.what}`);
|
|
52609
53725
|
lines.push('Every round:');
|
|
@@ -52628,5 +53744,5 @@ function roundBrief(input) {
|
|
|
52628
53744
|
* Generated bundle index. Do not edit.
|
|
52629
53745
|
*/
|
|
52630
53746
|
|
|
52631
|
-
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_PICTURE_MAKERS, 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, AiPictureMaker, 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, BodyPace, BodyRepairCode, BodySeam, BodySectionWord, BodyTexture, BorrowKind, BuildNoticeCode, BuildStep, CALIBRATION_MAX_ERROR, CAPTURE_VIEWPORTS, CAPTURE_VIEW_ORDER, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, COLOUR_TOKEN$1 as COLOUR_TOKEN, COMPOSITION, CONCEPT_MIN_DISTANCE, CONCEPT_SECTIONS, CONTENT_ROLE_MEANINGS, COPY_OUT, COUNT_ACTION, CREDITS_PER_USD, CRITIC_CHANGES, CRITIC_CROPS, CRITIC_CROP_MAX_ZOOM, CRITIC_CROP_RECIPES, CRITIC_DESIGN_DIMENSIONS, CRITIC_DIMENSIONS, CRITIC_FLAGGED_CROPS, CRITIC_LEVEL_RULE, CRITIC_OUTPUT_NAME, CRITIC_RUBRIC_DIMENSIONS, CRITIC_RUBRIC_HEADLINE, CRITIC_RUBRIC_POLISH, CRITIC_RUBRIC_SOURCE, CRITIC_SCORE, CRITIC_SWITCH_WITHIN, CalibrationKind, CaptureView, CaptureWidth, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ColourAccent, ColourAction, ColourBands, ColourDark, ColourGround, ColourIngredient, ColourMixError, ColourPictures, ColourRepairCode, ColourRhythm, ColourSource, ColourWash, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, CriticContentKind, CriticDimension, CriticIssueCode, CriticSheetLayout, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, DESIGNER_CAP_OVER_ESTIMATE, DESIGNER_CONCEPTS, DESIGNER_CONCEPTS_OUTPUT_NAME, DESIGNER_CONCEPT_ROUNDS, DESIGNER_DIRECTION_OUTPUT_NAME, DESIGNER_DONE, DESIGNER_FLAT_ROUNDS, DESIGNER_FLAT_STEP, DESIGNER_LESSONS, DESIGNER_LESSONS_SEED, DESIGNER_LESSONS_SOURCE, DESIGNER_MORE_CONCEPTS, DESIGNER_ROUNDS_EXPECTED, DESIGNER_ROUND_CAPS, DESIGNER_ROUND_RULES, DESIGNER_ROUND_TOKENS, DESIGN_ACTION_KEY_ORDER, DESIGN_ACT_VALUES, DESIGN_BASE_LAYER, DESIGN_END_INDEX, DESIGN_ENTRANCE_TRIGGERS, DESIGN_FONTS_CHOICE, DESIGN_LAYERS, DESIGN_NODE_KEY_ORDER, DESIGN_NONE, DESIGN_NO_STYLE, DESIGN_PAGE_PARENT, DESIGN_PARAM_PREFIX, DESIGN_PICTURE_PROPS, DESIGN_POINTER_STATES, DESIGN_RECIPES, DESIGN_ROW_KEY_ORDER, DESIGN_SAID_PROPS, DESIGN_STATES, DESIGN_TOOL_SCHEMAS, DESIGN_TRACK_KEY_ORDER, DESIGN_TRIGGER_META, DESIGN_TRIGGER_ON_STATE, DESIGN_WIDTHS, DESIGN_WORD_PROPS, DIRECTION_NAMED_PARTS, DIRECTION_PICTURE_FAMILIES, DOM_HEADER_BAR_MAX_PX, DOM_INHALE_MAX_PX, DOM_SIGNATURES, DOM_STRUCTURE_VERSION, DRAWER_BEAT_MS, DRAWER_KINDS, DRAWER_LETTER_MS, DRAWER_LINE_MS, DRAWER_SPINE, DRAWER_STEPS, DesignDocIndex, DesignIssueCode, DesignMeta, DesignRecipe, DesignTool, DesignTurn, DesignerDirectionIssueCode, DesignerPageRole, DesignerQuoteRow, DesignerSpendStop, DesignerStop, DirectionIssueCode, DirectionTypeRole, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOLLOW_LINK_ROLE, FOLLOW_ROW_FAMILY, FOLLOW_ROW_ROLE, FOLLOW_TARGET, FOOTER_FRAMED_STYLES, FOOTER_GROUND_SCHEME, FOOTER_INSET_STYLES, FOOTER_LEGAL_ROLE, FOOTER_ROW_HOLDS, FOOTER_SOCIAL_NETWORKS, FOOTER_TOKEN, FORM_LEGAL_ROLE, FREEDOM_COPY_DISTANCE, FREEDOM_REPEAT_DISTANCE, FREE_BUILDER_TYPE, FREE_CONTRAST, FREE_ELEMENT_STYLES, FREE_FOOTER_CENTRED, FREE_FOOTER_NO_PART, FREE_FOOTER_PAGE_ROW, FREE_FORM_PRESET, FREE_HOLDERS, FREE_HOVER_PROPS, FREE_LEAD_ROLE, FREE_MOVES, FREE_OPENING_BOXES, FREE_OPEN_LIGHTBOX, FREE_PHONE_LAYERS, FREE_PHONE_LIMITS, FREE_SECTIONS, FREE_SLOT_SEPARATOR, FREE_STYLE_PROPS, FREE_TOKEN_PROPS, FREE_TO_LAYOUT_CODE, FREE_WIRE_NODE_KEYS, FREE_WORD_TYPES, FallbackOpeningKept, FilmUnplaced, FindingGrouping, FollowRowView, FooterArrange, FooterBefore, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterNameStyle, FooterPhone, FooterRepairCode, FooterRole, FreeFooterPart, FreeIssueCode, FreeLayer, FreeNodeType, FreePictures, FreePurpose, FreeSlotKind, FreeTrigger, FreedomIssueCode, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_BAR_PX, HEADER_REST_FRAMES, HEADER_TOKEN, HEADER_VEIL, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPORT_NAV_MAX, IMPRINT_COUNTRIES, ISRAEL, ITEM_PAGE_ONLY_ROLES, ImportPattern, JOINED_HEADER_PADDING, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAID_CONTACT_FAMILY, LAID_FIRST_FAMILY, LAID_PLAIN_FAMILY, 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_ENTRANCE_TRIGGERS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, LAYOUT_NEAR_MISS, 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_SETTLE_PASSES, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGACY_BODY_INGREDIENTS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LESSON_ALL_KINDS, LESSON_MIN_MOVE, LESSON_WEIGHT, 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, LessonIssueCode, LessonSource, LessonStatus, ListPartChange, ListPartOutcome, ListSayCode, ListWordRefusal, LookEditKind, MAX_SITE_PICTURES, MENU_SHELF_RULES, MIN_REFERENCE_SECTIONS, MOTION_ENTRANCE_TRIGGERS, MOTION_PICTURE_TYPES, MOTION_POINTER_TRIGGERS, MOTION_TRIGGERS, MOTION_UI_TYPES, MOVING_OPENING_MEDIA, MenuSide, MotionRule, MoveOp, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_DISSOLVE, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningGround, 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_HOVER_MAX_MS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_SETTLE_MAX_MS, PICTURE_TEXT_CONTRAST, PICTURE_TOKENS_UNKNOWN_MAKER, 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, POPUP_GLOBAL_ID, POPUP_LINK_WORD, POPUP_WIRE_INGREDIENTS, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PatternScrolls, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PicturesRefused, PlaceOp, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PopupMixError, PopupRefusal, PreflightRefusalCode, PriceBindTarget, PromptLimit, PublishRefusalCode, PublishScope, READING_SHAPES, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, RoundRuleId, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRIM_WORDS_PAD, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SETTLE_ACTION, 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_SOCIAL_FIELDS, 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_FIT_ANY, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MAX_SEARCHES, STOCK_MIN_KEPT, STOCK_NEVER_PHRASES, STOCK_NEVER_WORDS, STOCK_OPENING_TYPE_WORDS, STOCK_PLACE_TYPE_WORDS, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STOCK_TRADE_NEVER_WORDS, STOCK_TRADE_PLACE_WORDS, STOCK_TRADE_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STRUCTURE_WEIGHTS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionShape, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, SocialLinkRefusal, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, StructureReader, StructureSignature, TEMPLATE_TYPE_WORDS, TYPE_LED_KEPT, TYPE_LED_OPTIONAL_PARTS, TYPE_LED_SWAPS, TypeLedChangeKind, UI_MOTION_MAX_MS, VISION_TOKEN_CAP, VISION_TOKEN_TILE, WORDS_AREA_DEFAULT_SHARE, WordsEdge, YIELD_MIN_COLUMNS, YIELD_MIN_ROW_SHARE, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiModelStep, aiRefusalNext, aiStepParts, applyDesignOps, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, archetypeRank, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, baseOrder, beforeOf, bentoFill, bentoFillsParams, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWithColourBands, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, boxSides, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calibrationReport, calmParts, calmUnder, canonicalDesignNode, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, carrySection, checkAdditions, checkBody, checkCarry, checkColour, checkFooter, checkFree, checkFreeFooter, checkFreeSection, checkHeader, checkLayout, checkList, checkOpening, checkPopup, chooseOpeningWay, chooseScrim, chooseTypeLedOpening, colourAccentMax, colourCheckOf, colourDesignWords, colourGroundsMax, colourMeaning, colourMix, colourMixFromWords, colourMixOfPlan, colourMixWords, colourReferences, colourRhythmIssues, colourTokenOf, colourWireWords, colourWordDrawn, colourWordOffered, colourWordTier, colourWordWaits, colourWords, columnIssues, composablePage, composeContextOf, composeFreePage, composeFreeSection, composeLayout, composeListAccordion, composeListFrame, composeListLightbox, composeListTabs, composeNavHeader, composeOpening, composePopup, composePresetForm, composeQuoteCarousel, composeReferenceFooter, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composesPage, composingShare, compositionBorrows, compositionSwaps, conceptsDistinct, conceptsIssues, contactFactsOf, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, criticAnswerIssues, criticAnswerSchema, criticRoundContent, criticRubricText, criticSystem, criticVerdict, critiqueCostUsd, cssMs, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, designDocIssues, designForPlan, designFreedomIssues, designMotionIssues, designOpIssues, designOpsOfLayout, designOpsOfLook, designSceneTracks, designSideName, designToolSchema, designTraitSlots, designerConceptsSchema, designerDirectionIssues, designerDirectionSchema, designerLessonsIssues, designerQuote, designerRoundCredits, designerRoundScore, designerSpendGate, designerStopDecision, dissolveInteraction, distinctFallbackSections, distinctFooter, distinctHeader, domSectionShapeOf, drawerRamp, drawerRestX, drawerStepCount, drawerSteps, drawerWidth, drawersTiming, drawnBodyMix, drawnColourMix, drawnFooterMix, drawnHeaderMix, drawnMenuShows, drawnOpeningMix, dressMenuPictures, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, emptyPictures, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandFreeFooter, expandFreeWire, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, expectedRounds, factIssues, failedBuildStep, fallBackBySection, fallBackFree, fallbackFingerprintOf, fallbackFingerprintOfPlanPage, fieldToWire, fieldsOf, figuresNotIn, fillContactFacts, filledItemNumbers, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, followSiteSocials, followedAfter, followedIssues, footerCallLine, footerCallWord, footerClosingRefusal, footerFaceOf, footerMeaning, footerMix, footerMixFromFree, footerMixFromWords, footerMixOfPlan, footerMixWords, footerNameFits, footerPart, footerPartNode, footerPattern, footerPatternIdOf, footerReferences, footerSignsUp, footerSocialLinks, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWordOffered, footerWordTier, footerWords, formAsksPersonalData, formLegalFacts, frameWords, freeContrastIssues, freeControlsOf, freeFooterBrief, freeFooterContextOf, freeFooterFaceOf, freeFooterGrounds, freeFooterOrMix, freeFooterPartMeaning, freeFooterSlotOffers, freeMoveOf, freeMoveWord, freeMoveWords, freeNodeId, freeNodeStyleIssues, freeOpeningOffer, freePhoneNeeds, freeSchemeOf, freeSectionAsLayout, freeSectionOwner, freeSignaturePage, freeSlotIssues, freeSlotLine, freeSlotOf, freeSlotOffers, freeSlotWord, freeStampedId, freeStyleIssues, freeStyleToSlots, freeStyleWithoutSlot, freeToWire, freeWireJsonSchema, freeWirePath, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerGroundWhenUnreadable, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerReadableOfSite, headerReadsAtRest, headerRecipe, headerReferences, headerRestInks, headerRestTokenOf, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerVeilAt, headerWireWords, headerWordDrawn, headerWords, holdsFollowRow, holdsStatedSocial, importRedirects, importSlug, importedPicturesOf, isActiveBuild, isAdditionKey, isDesignRecipe, isDrawers, isFilledItem, isFreeBox, isHandPageKey, isImportPlan, isLayoutRule, isLegalKind, isNonEmptyString, isPeopleContentType, isPerItemPage, isPictureWorld, isPlainObject, isPopupNode, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, itemFillApplies, joinPageHeader, joinSameGround, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, keepListParts, keepSavedFollowRows, layerMetricsOf, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutCounterDepth, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNearMiss, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutSectionKindsOffered, layoutShapeHasPurpose, layoutSignatureOffered, layoutSignaturesOffered, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, lessonLine, lessonRank, lessonsForPrompt, 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, listedContentType, lookHasGlass, lowestDimensions, luminanceOf, measureFree, measureLayout, measuredCategories, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuCardPicture, menuCollectionsOfPlan, menuLookOf, menuWords, modelCanDo, moreConceptsOffer, motionIssueCounts, motionIssueKey, moveBarItem, moveEntrance, nameStyleOf, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, neighbourFaults, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingDisplaySize, openingFromSection, openingGallery, openingGalleryIdOf, openingHarnessWord, openingIsTypeLed, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingPictureSrc, openingRecipe, openingReferences, openingTokenOf, openingTokenParts, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords$1 as openingWords, opensFullUnderFloat, opensOnPicture, orderPlaces, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, ownerSocialLink, paceIssues, paddingKeepingClear, pageBuildSource, pageKindOf, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternPartSlots, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneOf, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, pictureMakerOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureSlotPage, pictureTargets, pictureTokensFor, pictureTryFits, picturedOpeningWays, picturelessTypes, picturesRefusedOf, pinnedPagesOf, pixelsUnder, placeFilm, placedDesignNode, placeholderContentTypes, plainCarryText, planCritiqueSheet, planDesignChoices, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFooterContext, planFromTemplate, planHasShopSource, planHeader, planImport, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planStockSearch, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, planWrites, plannedStructure, plateYields, popupKeptNotices, popupMeaning, popupMixFromWords, popupMixOfPlan, popupTokenOf, popupWireWords, presetColourMix, previousRoute, pricesIn, proHeader, promptLimitsOf, publishRefusal, publishVerdict, quietMoveEntrance, quoteItemOf, quoteListOf, quotesIn, readHeader, readOpening, readyMadeColumn, readyMadeToken, recipeListBinds, recipeOptionValue, recognisedSocialLinks, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, referenceFooterLayout, refitBuiltPage, refitPage, refreshSectionStamps, refusesStock, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, roleField, roughTokens, roundBrief, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBreaks, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionPictureFamily, sectionPictured, sectionShapeOf, sectionSkeleton, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceRepeats, sequenceShare, sequenceTokenOf, setStyleProps, settleLayoutPage, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteFactLabel, siteGlobalsOf, siteMeasures, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteSocialLinks, siteSocialPatch, siteTreeOf, siteTreeOfPlan, skeletonOf, slotBudget, socialLinkOf, socialLinksByNetwork, socialLinksList, socialLinksPart, splitCssValue, splitFreeFooter, splitSide, stampFooterMix, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, statedWhatsAppHref, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFitFor, stockFits, stockGroupOf, stockItemSlots, stockKept, stockMayFill, stockPhotoFits, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSearchFocus, stockSearchQuery, stockSearchTerm, stockSlotFamily, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, structureDistance, structureOfDom, structureOfFingerprint, structureOfLayoutPage, structureOfReading, structureOfReference, structureOfTree, swapOf, swapParts, tierOf, tierOffers, toneOf, typeLedGroundFor, typeLedGrounds, typeLedNotices, typeLedOpeningSection, typeLedOpeningWays, typeLedPlateColour, typeLedPlates, typeLedRound, typeLedSection, typeLedYield, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, visionImageTokens, walkFree, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withConsentBanner, withDerivedSources, withDistinctFooter, withDistinctHeader, withFollowRow, withHeaderWord, withListWord, withOpeningWord, withShownList, withTypeOpening, withTypeSignUp, withoutFreeOrphans, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, wornOpenings, writtenTexts };
|
|
53747
|
+
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_PICTURE_MAKERS, 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, AiPictureMaker, 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, BodyPace, BodyRepairCode, BodySeam, BodySectionWord, BodyTexture, BorrowKind, BuildNoticeCode, BuildStep, CALIBRATION_MAX_ERROR, CAPTURE_VIEWPORTS, CAPTURE_VIEW_ORDER, CARD_HERO_TEXT_MAX, CARD_NUMBER_ROWS, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, COLOUR_TOKEN$1 as COLOUR_TOKEN, COMPOSITION, CONCEPT_MIN_DISTANCE, CONCEPT_SECTIONS, CONTENT_ROLE_MEANINGS, COPY_OUT, COUNT_ACTION, CREDITS_PER_USD, CRITIC_BUG_RULE, CRITIC_CARD_LEVEL_WORDS, CRITIC_CHANGES, CRITIC_CROPS, CRITIC_CROP_MAX_ZOOM, CRITIC_CROP_RECIPES, CRITIC_DESIGN_DIMENSIONS, CRITIC_DIMENSIONS, CRITIC_FLAGGED_CROPS, CRITIC_LEVEL_RULE, CRITIC_MOTION_RULE, CRITIC_OUTPUT_NAME, CRITIC_RUBRIC_DIMENSIONS, CRITIC_RUBRIC_HEADLINE, CRITIC_RUBRIC_POLISH, CRITIC_RUBRIC_SOURCE, CRITIC_SCORE, CRITIC_SHEET_DROP_ORDER, CRITIC_SHEET_MAX_IMAGES, CRITIC_STILL_RULE, CRITIC_SWITCH_WITHIN, CalibrationKind, CaptureView, CaptureWidth, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ColourAccent, ColourAction, ColourBands, ColourDark, ColourGround, ColourIngredient, ColourMixError, ColourPictures, ColourRepairCode, ColourRhythm, ColourSource, ColourWash, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, CriticContentKind, CriticDimension, CriticIssueCode, CriticSheetLayout, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, DESIGNER_CAP_OVER_ESTIMATE, DESIGNER_CONCEPTS, DESIGNER_CONCEPTS_OUTPUT_NAME, DESIGNER_CONCEPT_ROUNDS, DESIGNER_DIRECTION_OUTPUT_NAME, DESIGNER_DONE, DESIGNER_FLAT_ROUNDS, DESIGNER_FLAT_STEP, DESIGNER_LESSONS, DESIGNER_LESSONS_SEED, DESIGNER_LESSONS_SOURCE, DESIGNER_MORE_CONCEPTS, DESIGNER_ROUNDS_EXPECTED, DESIGNER_ROUND_CAPS, DESIGNER_ROUND_RULES, DESIGNER_ROUND_TOKENS, DESIGN_ACTION_KEY_ORDER, DESIGN_ACT_VALUES, DESIGN_BASE_LAYER, DESIGN_END_INDEX, DESIGN_ENTRANCE_TRIGGERS, DESIGN_FONTS_CHOICE, DESIGN_LAYERS, DESIGN_NODE_KEY_ORDER, DESIGN_NONE, DESIGN_NO_STYLE, DESIGN_PAGE_PARENT, DESIGN_PARAM_PREFIX, DESIGN_PICTURE_PROPS, DESIGN_POINTER_STATES, DESIGN_RECIPES, DESIGN_ROW_KEY_ORDER, DESIGN_SAID_PROPS, DESIGN_STATES, DESIGN_TOOL_SCHEMAS, DESIGN_TRACK_KEY_ORDER, DESIGN_TRIGGER_META, DESIGN_TRIGGER_ON_STATE, DESIGN_WIDTHS, DESIGN_WORD_PROPS, DIRECTION_NAMED_PARTS, DIRECTION_PICTURE_FAMILIES, DOM_HEADER_BAR_MAX_PX, DOM_INHALE_MAX_PX, DOM_SIGNATURES, DOM_STRUCTURE_VERSION, DRAWER_BEAT_MS, DRAWER_KINDS, DRAWER_LETTER_MS, DRAWER_LINE_MS, DRAWER_SPINE, DRAWER_STEPS, DesignDocIndex, DesignIssueCode, DesignMeta, DesignRecipe, DesignTool, DesignTurn, DesignerDirectionIssueCode, DesignerPageRole, DesignerQuoteRow, DesignerSpendStop, DesignerStop, DirectionIssueCode, DirectionTypeRole, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOLLOW_LINK_ROLE, FOLLOW_ROW_FAMILY, FOLLOW_ROW_ROLE, FOLLOW_TARGET, FOOTER_FRAMED_STYLES, FOOTER_GROUND_SCHEME, FOOTER_INSET_STYLES, FOOTER_LEGAL_ROLE, FOOTER_ROW_HOLDS, FOOTER_SOCIAL_NETWORKS, FOOTER_TOKEN, FORM_LEGAL_ROLE, FREEDOM_COPY_DISTANCE, FREEDOM_REPEAT_DISTANCE, FREE_BUILDER_TYPE, FREE_CONTRAST, FREE_ELEMENT_STYLES, FREE_FOOTER_CENTRED, FREE_FOOTER_NO_PART, FREE_FOOTER_PAGE_ROW, FREE_FORM_PRESET, FREE_HOLDERS, FREE_HOVER_PROPS, FREE_LEAD_ROLE, FREE_MOVES, FREE_OPENING_BOXES, FREE_OPEN_LIGHTBOX, FREE_PHONE_LAYERS, FREE_PHONE_LIMITS, FREE_SECTIONS, FREE_SLOT_SEPARATOR, FREE_STYLE_PROPS, FREE_TOKEN_PROPS, FREE_TO_LAYOUT_CODE, FREE_WIRE_NODE_KEYS, FREE_WORD_TYPES, FallbackOpeningKept, FilmUnplaced, FindingGrouping, FollowRowView, FooterArrange, FooterBefore, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterNameStyle, FooterPhone, FooterRepairCode, FooterRole, FreeFooterPart, FreeIssueCode, FreeLayer, FreeNodeType, FreePictures, FreePurpose, FreeSlotKind, FreeTrigger, FreedomIssueCode, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_BAR_PX, HEADER_REST_FRAMES, HEADER_TOKEN, HEADER_VEIL, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPORT_NAV_MAX, IMPRINT_COUNTRIES, ISRAEL, ITEM_PAGE_ONLY_ROLES, ImportPattern, JOINED_HEADER_PADDING, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAID_CONTACT_FAMILY, LAID_FIRST_FAMILY, LAID_PLAIN_FAMILY, 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_ENTRANCE_TRIGGERS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, LAYOUT_NEAR_MISS, 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_SETTLE_PASSES, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGACY_BODY_INGREDIENTS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LESSON_ALL_KINDS, LESSON_MIN_MOVE, LESSON_WEIGHT, 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, LessonIssueCode, LessonSource, LessonStatus, ListPartChange, ListPartOutcome, ListSayCode, ListWordRefusal, LookEditKind, MAX_SITE_PICTURES, MENU_SHELF_RULES, MIN_REFERENCE_SECTIONS, MOTION_ENTRANCE_TRIGGERS, MOTION_PICTURE_TYPES, MOTION_POINTER_TRIGGERS, MOTION_TRIGGERS, MOTION_UI_TYPES, MOVING_OPENING_MEDIA, MenuSide, MotionRule, MoveOp, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_CUE_MAX_WIDTH, OPENING_DISSOLVE, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OURS_ALONE_VIEWS, OURS_ALONE_WORDS, OpeningExtra, OpeningFrame, OpeningGround, 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_HOVER_MAX_MS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_SETTLE_MAX_MS, PICTURE_TEXT_CONTRAST, PICTURE_TOKENS_UNKNOWN_MAKER, 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, POPUP_GLOBAL_ID, POPUP_LINK_WORD, POPUP_WIRE_INGREDIENTS, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PatternScrolls, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PicturesRefused, PlaceOp, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PopupMixError, PopupRefusal, PreflightRefusalCode, PriceBindTarget, PromptLimit, PublishRefusalCode, PublishScope, READING_SHAPES, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, R_H22_TOLERANCE, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, RoundRuleId, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRIM_WORDS_PAD, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SETTLE_ACTION, 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_SOCIAL_FIELDS, 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_ALT_MAX, STOCK_FACETS, STOCK_FACET_VOCABULARY, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_FIT_ANY, STOCK_GENERIC_WORDS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MAX_SEARCHES, STOCK_MIN_KEPT, STOCK_NEVER_PHRASES, STOCK_NEVER_WORDS, STOCK_OPENING_TYPE_WORDS, STOCK_PLACE_NAMES, STOCK_PLACE_TYPE_WORDS, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECTS_HE, STOCK_SUBJECT_WORDS, STOCK_TRADE_NEVER_WORDS, STOCK_TRADE_PLACE_WORDS, STOCK_TRADE_WORDS, STOCK_UNRELATED_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STRUCTURE_WEIGHTS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionShape, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, SocialLinkRefusal, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOffSubject, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, StructureReader, StructureSignature, TEMPLATE_TYPE_WORDS, TYPE_LED_KEPT, TYPE_LED_OPTIONAL_PARTS, TYPE_LED_SWAPS, TypeLedChangeKind, UI_MOTION_MAX_MS, VISION_TOKEN_CAP, VISION_TOKEN_TILE, WORDS_AREA_DEFAULT_SHARE, WordsEdge, YIELD_MIN_COLUMNS, YIELD_MIN_ROW_SHARE, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiModelStep, aiRefusalNext, aiStepParts, applyDesignOps, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, archetypeRank, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, barLabelFits, barLabels, baseOrder, beforeOf, bentoFill, bentoFillsParams, bestAssignment, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWithColourBands, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, boxSides, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calibrationReport, calmParts, calmUnder, canonicalDesignNode, canonicalNodeJson, canonicalValue, captureMotionOf, cardNumbers, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, carrySection, checkAdditions, checkBody, checkCarry, checkColour, checkFooter, checkFree, checkFreeFooter, checkFreeSection, checkHeader, checkLayout, checkList, checkOpening, checkPopup, chooseOpeningWay, chooseScrim, chooseTypeLedOpening, colourAccentMax, colourCheckOf, colourDesignWords, colourGroundsMax, colourMeaning, colourMix, colourMixFromWords, colourMixOfPlan, colourMixWords, colourReferences, colourRhythmIssues, colourTokenOf, colourWireWords, colourWordDrawn, colourWordOffered, colourWordTier, colourWordWaits, colourWords, columnIssues, composablePage, composeContextOf, composeFreePage, composeFreeSection, composeLayout, composeListAccordion, composeListFrame, composeListInSection, composeListLightbox, composeListTabs, composeNavHeader, composeOpening, composePopup, composePresetForm, composeQuoteCarousel, composeReferenceFooter, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composesPage, composingShare, compositionBorrows, compositionSwaps, conceptsDistinct, conceptsIssues, contactFactsOf, contentSizedBand, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, criticAnswerIssues, criticAnswerSchema, criticRoundContent, criticRubricText, criticSystem, criticVerdict, critiqueCostUsd, cssMs, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, designDocIssues, designForPlan, designFreedomIssues, designMotionIssues, designOpIssues, designOpsOfLayout, designOpsOfLook, designSceneTracks, designSideName, designToolSchema, designTraitSlots, designerConceptsSchema, designerDirectionIssues, designerDirectionSchema, designerLessonsIssues, designerQuote, designerRoundCredits, designerRoundScore, designerSpendGate, designerStopDecision, dissolveInteraction, distinctFallbackSections, distinctFooter, distinctHeader, domSectionShapeOf, drawerRamp, drawerRestX, drawerStepCount, drawerSteps, drawerWidth, drawersTiming, drawnBodyMix, drawnColourMix, drawnFooterMix, drawnHeaderMix, drawnMenuShows, drawnOpeningMix, dressMenuPictures, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, emptyPictures, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandFreeFooter, expandFreeWire, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, expectedRounds, factIssues, failedBuildStep, fallBackBySection, fallBackFree, fallbackFingerprintOf, fallbackFingerprintOfPlanPage, fieldToWire, fieldsOf, figuresNotIn, fillContactFacts, filledItemNumbers, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, followSiteSocials, followedAfter, followedIssues, footerCallLine, footerCallWord, footerClosingRefusal, footerFaceOf, footerMeaning, footerMix, footerMixFromFree, footerMixFromWords, footerMixOfPlan, footerMixWords, footerNameFits, footerPart, footerPartNode, footerPattern, footerPatternIdOf, footerReferences, footerSignsUp, footerSocialLinks, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWordOffered, footerWordTier, footerWords, formAsksPersonalData, formLegalFacts, frameWords, freeContrastIssues, freeControlsOf, freeFooterBrief, freeFooterContextOf, freeFooterFaceOf, freeFooterGrounds, freeFooterOrMix, freeFooterPartMeaning, freeFooterSlotOffers, freeMoveOf, freeMoveWord, freeMoveWords, freeNodeId, freeNodeStyleIssues, freeOpeningOffer, freePhoneNeeds, freeSchemeOf, freeSectionAsLayout, freeSectionOwner, freeSignaturePage, freeSlotIssues, freeSlotLine, freeSlotOf, freeSlotOffers, freeSlotWord, freeStampedId, freeStyleIssues, freeStyleToSlots, freeStyleWithoutSlot, freeToWire, freeWireJsonSchema, freeWirePath, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerGroundWhenUnreadable, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerReadableOfSite, headerReadsAtRest, headerRecipe, headerReferences, headerRestInks, headerRestTokenOf, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerVeilAt, headerWireWords, headerWordDrawn, headerWords, holdsFollowRow, holdsStatedSocial, importRedirects, importSlug, importedPicturesOf, isActiveBuild, isAdditionKey, isDesignRecipe, isDrawers, isFilledItem, isFreeBox, isHandPageKey, isImportPlan, isLayoutRule, isLegalKind, isNonEmptyString, isPeopleContentType, isPerItemPage, isPictureWorld, isPlainObject, isPopupNode, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, itemFillApplies, joinPageHeader, joinSameGround, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, keepListParts, keepSavedFollowRows, layerMetricsOf, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutCounterDepth, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNearMiss, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutSectionKindsOffered, layoutShapeHasPurpose, layoutSignatureOffered, layoutSignaturesOffered, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, lessonLine, lessonRank, lessonsForPrompt, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listFrameInFlow, listIngredientWords, listMeaning, listMixFromWords, listMixOfFrame, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listSaidSentence, listSectionRows, listSentence, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRef, listWordRefs, listWordRefusal, listWordTier, listWords, listedContentType, lookHasGlass, lowestDimensions, luminanceOf, measureFree, measureLayout, measuredCategories, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuCardPicture, menuCollectionsOfPlan, menuLookOf, menuWords, modelCanDo, moreConceptsOffer, motionIssueCounts, motionIssueKey, motionLine, motionText, moveBarItem, moveEntrance, nameStyleOf, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, neighbourFaults, nestSitePages, nextSourceOf, nodeBindPaths, numbersText, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingDisplaySize, openingFromSection, openingGallery, openingGalleryIdOf, openingHarnessWord, openingIsTypeLed, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingPictureSrc, openingRecipe, openingReferences, openingTokenOf, openingTokenParts, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords$1 as openingWords, opensFullUnderFloat, opensOnPicture, orderPlaces, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, ownerSocialLink, paceIssues, paddingKeepingClear, pageBuildSource, pageKindOf, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternPartSlots, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneOf, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, pictureMakerOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureSlotPage, pictureTargets, pictureTokensFor, pictureTryFits, picturedOpeningWays, picturelessTypes, picturesRefusedOf, pinnedPagesOf, pixelsUnder, placeFilm, placedDesignNode, placeholderContentTypes, plainCarryText, planCritiqueSheet, planDesignChoices, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFooterContext, planFromTemplate, planHasShopSource, planHeader, planImport, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planStockSearch, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, planWrites, plannedStructure, plateYields, polishOf, popupKeptNotices, popupMeaning, popupMixFromWords, popupMixOfPlan, popupTokenOf, popupWireWords, presetColourMix, previousRoute, pricesIn, proHeader, promptLimitsOf, publishRefusal, publishVerdict, quietMoveEntrance, quoteItemOf, quoteListOf, quotesIn, readHeader, readOpening, readyMadeColumn, readyMadeToken, recipeListBinds, recipeOptionValue, recognisedSocialLinks, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, referenceFooterLayout, refitBuiltPage, refitPage, refreshSectionStamps, refusesStock, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, roleField, roughTokens, roundBrief, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBreaks, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionPictureFamily, sectionPictured, sectionRows, sectionShapeOf, sectionSkeleton, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceRepeats, sequenceShare, sequenceTokenOf, setStyleProps, settleLayoutPage, shapeKeys, sheetImageCount, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteFactLabel, siteGlobalsOf, siteMeasures, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteSocialLinks, siteSocialPatch, siteTreeOf, siteTreeOfPlan, skeletonOf, slotBudget, socialLinkOf, socialLinksByNetwork, socialLinksList, socialLinksPart, splitCssValue, splitFreeFooter, splitSide, stampFooterMix, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, statedWhatsAppHref, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFacetsOf, stockFitFor, stockFits, stockGroupOf, stockItemSlots, stockKept, stockMayFill, stockNearWords, stockPhotoAlt, stockPhotoFits, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockPlaceNamesIn, stockPlaceNear, stockRelevance, stockSearchFocus, stockSearchQuery, stockSearchTerm, stockSlotFamily, stockSlots, stockSubjectsHe, stockTagPhrases, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, structureDistance, structureOfDom, structureOfFingerprint, structureOfLayoutPage, structureOfReading, structureOfReference, structureOfTree, swapOf, swapParts, tierOf, tierOffers, toneOf, typeLedGroundFor, typeLedGrounds, typeLedNotices, typeLedOpeningSection, typeLedOpeningWays, typeLedPlateColour, typeLedPlates, typeLedRound, typeLedSection, typeLedYield, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, visionImageTokens, visitMetricsOf, visitNumbersOf, walkFree, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withConsentBanner, withDerivedSources, withDistinctFooter, withDistinctHeader, withFollowRow, withHeaderWord, withListWord, withOpeningWord, withShownList, withTypeOpening, withTypeSignUp, withoutFreeOrphans, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, wornOpenings, writtenTexts };
|
|
52632
53748
|
//# sourceMappingURL=vectoriox-iox-ui-generation-core.mjs.map
|