@vectoriox/iox-ui 5.128.1 → 5.129.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/composite-core/index.d.ts +130 -2
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +328 -141
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-forms-core.mjs +21 -1
- package/fesm2022/vectoriox-iox-ui-forms-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +557 -59
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +20 -0
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/forms-core/index.d.ts +16 -1
- package/generation-core/index.d.ts +173 -13
- package/package.json +1 -1
- package/src/composite-core/consent.ts +235 -0
- package/src/composite-core/public-api.ts +1 -0
- package/src/forms-core/form-presets.ts +28 -0
- package/src/generation-core/audit-site.ts +167 -17
- package/src/generation-core/compose-site.ts +190 -8
- package/src/generation-core/legal.ts +213 -0
- package/src/generation-core/public-api.ts +1 -0
- package/src/generation-core/site-spec.generated.ts +41 -8
- package/src/generation-core/site-tree.ts +5 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, elementStyleById, ownedTraitsOf, applyElementStyle, parseHexColor, rgbToOklab, textWidthEm, elementStyleFace, resolveDesignChoices, LinkType, MenuTrait, menuDialogProps, MenuButtonKind, menuButtonOf, menuButtonProps, menuFormOf, MenuForm, MenuPhoneForm, menuHoverOf, menuRevealOf, flavorPackById, SPEC_AXES, EntranceParam, staggerDelay, presetChoices, setColorScheme, ColorScheme, stylePresetOfChoices, presetModes, STYLE_PRESETS, COLOR_SCHEMES, colorSchemeClass, COLOR_SCHEME_TRAIT, DEFAULT_MENU_LOOK, ANIMATE_IDS, auditDesignContrast, parseCssColour, compositeOver, wcagContrastRatio, relativeLuminance, toHexColor, resolveTokenValues, designTokenRows } from '@vectoriox/iox-ui/design-core';
|
|
2
|
-
import { formPresetById, FormPresetId, FormAfterSend, FORM_AFTER_SEND_TRAIT, FORM_ACTIONS_ROLE, channelOpensNewTab, FORM_CHANNEL_ROLE,
|
|
2
|
+
import { formPresetById, ControlType, FIELD_NODE_TYPE, FORM_NODE_TYPE, FormPresetId, FormAfterSend, FORM_AFTER_SEND_TRAIT, FORM_ACTIONS_ROLE, channelOpensNewTab, FORM_CHANNEL_ROLE, presetFormActions, planFormPresetIds, collectFormSpec, isChannelFilled } from '@vectoriox/iox-ui/forms-core';
|
|
3
3
|
import { normalizeFrameSequence, filmScreensFor, FILM_PREPARED_PICTURES, FrameExtension } from '@vectoriox/iox-ui/media-core';
|
|
4
4
|
import { SEO_DESCRIPTION_MAX, SEO_TITLE_MAX } from '@vectoriox/iox-ui/seo-core';
|
|
5
5
|
import { VARIANT_NAME_SEPARATOR, CheckoutGateCode, labelIn } from '@vectoriox/iox-ui/commerce-core';
|
|
6
|
-
import { ShopRole, AccountRole, pickTabsAutoBinds, pickAccordionAutoBinds, NO_ELEMENT_STYLE, CardPart, SLIDER_PLACEMENT_TRAIT, SliderPlacement, syncSliderParts, SliderRole, CardLayout, buildCardRecipe, findByRole, CardRole, buildMarqueeRecipe, SceneRole, segmentedOptions, ITEM_OPEN_STATE, CARD_LAYOUTS, CARD_PARTS, BADGE_TONES, buildSegmentedRecipe, AccordionRole, buildAccordionRecipe, ACCORDION_WORDS, accordionItems, accordionQuestionOf, accordionAnswerOf, ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, buildTabsRecipe, TABS_WORDS, tabsTriggers, tabLabelNodeOf, TABS_LABEL_BIND_PROP, tabsPanels, tabPanelTextOf, TABS_TEXT_BIND_PROP, tabPanelImageOf, tabsListOf, tabsPanelsOf, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, ShopRecipe, ShopBindTarget, SHOP_RECIPES, bindShopPart, ACCOUNT_RECIPES, AccountRecipe, buildCarouselRecipe, SLIDE_TYPE, buildLightboxRecipe, LIGHTBOX_LABEL, SLIDE_TO_ROW, setHeaderBehaviour } from '@vectoriox/iox-ui/composite-core';
|
|
6
|
+
import { ShopRole, AccountRole, pickTabsAutoBinds, pickAccordionAutoBinds, NO_ELEMENT_STYLE, CardPart, SLIDER_PLACEMENT_TRAIT, SliderPlacement, syncSliderParts, SliderRole, CardLayout, buildCardRecipe, findByRole, CardRole, buildMarqueeRecipe, SceneRole, segmentedOptions, ITEM_OPEN_STATE, CARD_LAYOUTS, CARD_PARTS, BADGE_TONES, buildSegmentedRecipe, AccordionRole, buildAccordionRecipe, ACCORDION_WORDS, accordionItems, accordionQuestionOf, accordionAnswerOf, ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, buildTabsRecipe, TABS_WORDS, tabsTriggers, tabLabelNodeOf, TABS_LABEL_BIND_PROP, tabsPanels, tabPanelTextOf, TABS_TEXT_BIND_PROP, tabPanelImageOf, tabsListOf, tabsPanelsOf, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, ShopRecipe, ShopBindTarget, SHOP_RECIPES, bindShopPart, ACCOUNT_RECIPES, AccountRecipe, buildCarouselRecipe, SLIDE_TYPE, buildLightboxRecipe, LIGHTBOX_LABEL, SLIDE_TO_ROW, setHeaderBehaviour, buildConsentRecipe, ConsentActionType } from '@vectoriox/iox-ui/composite-core';
|
|
7
|
+
import { ConsentCategory } from '@vectoriox/iox-ui/consent-core';
|
|
7
8
|
import { ParallaxDepth, parallaxShift, rangeDistance, ScrollRange, normalizeParallaxPhone, parallaxRest, rangeProgress, parallaxOffset } from '@vectoriox/iox-ui/scene-core';
|
|
8
9
|
import { ELEMENT_ACTION_DESCRIPTORS, resolveActionAvailability } from '@vectoriox/iox-ui/actions-core';
|
|
9
10
|
|
|
@@ -9209,10 +9210,6 @@ const SPEC_SITE_LAYOUT = {
|
|
|
9209
9210
|
"phase": "AW2",
|
|
9210
9211
|
"drawnAs": "none"
|
|
9211
9212
|
},
|
|
9212
|
-
"reopen.footer": {
|
|
9213
|
-
"phase": "AW1",
|
|
9214
|
-
"drawnAs": "settings"
|
|
9215
|
-
},
|
|
9216
9213
|
"reopen.pill": {
|
|
9217
9214
|
"phase": "AW2",
|
|
9218
9215
|
"drawnAs": "settings"
|
|
@@ -9394,12 +9391,12 @@ const SPEC_SITE_LAYOUT = {
|
|
|
9394
9391
|
"how": "the site is in Hebrew"
|
|
9395
9392
|
},
|
|
9396
9393
|
"israel": {
|
|
9397
|
-
"read": "
|
|
9398
|
-
"how": "the studio's country is Israel (a
|
|
9394
|
+
"read": "built",
|
|
9395
|
+
"how": "the studio's country is Israel (Shop ▸ Settings ▸ country; a shekel studio starts in Israel)"
|
|
9399
9396
|
},
|
|
9400
9397
|
"eu-business": {
|
|
9401
|
-
"read": "
|
|
9402
|
-
"how": "the
|
|
9398
|
+
"read": "built",
|
|
9399
|
+
"how": "the studio's country asks for an imprint (`imprintCountries`: the EU, the EEA and Switzerland)"
|
|
9403
9400
|
},
|
|
9404
9401
|
"us-business": {
|
|
9405
9402
|
"read": "deferred",
|
|
@@ -9576,6 +9573,43 @@ const SPEC_SITE_LAYOUT = {
|
|
|
9576
9573
|
"en": "By sending, you agree to the {terms} and {privacy}.",
|
|
9577
9574
|
"he": "בשליחה, את/ה מסכים/ה ל{terms} ול{privacy}."
|
|
9578
9575
|
},
|
|
9576
|
+
"formLinePrivacy": {
|
|
9577
|
+
"en": "By sending, you agree to the {privacy}.",
|
|
9578
|
+
"he": "בשליחה, את/ה מסכים/ה ל{privacy}."
|
|
9579
|
+
},
|
|
9580
|
+
"imprintCountries": [
|
|
9581
|
+
"AT",
|
|
9582
|
+
"BE",
|
|
9583
|
+
"BG",
|
|
9584
|
+
"HR",
|
|
9585
|
+
"CY",
|
|
9586
|
+
"CZ",
|
|
9587
|
+
"DK",
|
|
9588
|
+
"EE",
|
|
9589
|
+
"FI",
|
|
9590
|
+
"FR",
|
|
9591
|
+
"DE",
|
|
9592
|
+
"GR",
|
|
9593
|
+
"HU",
|
|
9594
|
+
"IE",
|
|
9595
|
+
"IT",
|
|
9596
|
+
"LV",
|
|
9597
|
+
"LT",
|
|
9598
|
+
"LU",
|
|
9599
|
+
"MT",
|
|
9600
|
+
"NL",
|
|
9601
|
+
"PL",
|
|
9602
|
+
"PT",
|
|
9603
|
+
"RO",
|
|
9604
|
+
"SK",
|
|
9605
|
+
"SI",
|
|
9606
|
+
"ES",
|
|
9607
|
+
"SE",
|
|
9608
|
+
"IS",
|
|
9609
|
+
"LI",
|
|
9610
|
+
"NO",
|
|
9611
|
+
"CH"
|
|
9612
|
+
],
|
|
9579
9613
|
"rules": {
|
|
9580
9614
|
"neverWritesPolicy": true,
|
|
9581
9615
|
"editedPageKept": true,
|
|
@@ -17104,7 +17138,7 @@ function writtenTexts(plan) {
|
|
|
17104
17138
|
});
|
|
17105
17139
|
return out;
|
|
17106
17140
|
}
|
|
17107
|
-
const HEBREW$
|
|
17141
|
+
const HEBREW$2 = /[-]/;
|
|
17108
17142
|
/** Hebrew joins up to two one-letter words (and, the, in, to, from, that, as) to the next: "והטוב" holds "טוב". The
|
|
17109
17143
|
* ONE rule — the intake's keyword match (harness-core) uses it too. */
|
|
17110
17144
|
const HEBREW_PREFIXES = '[והבלמשכ]{0,2}';
|
|
@@ -17113,7 +17147,7 @@ const normalise = (s) => s.normalize('NFKC').toLowerCase();
|
|
|
17113
17147
|
/** A word (or phrase) as a whole-word pattern; Hebrew allows its one-letter prefixes. */
|
|
17114
17148
|
function wordPattern(word) {
|
|
17115
17149
|
const w = escape(normalise(word.trim())).replace(/\s+/g, '\\s+');
|
|
17116
|
-
const prefix = HEBREW$
|
|
17150
|
+
const prefix = HEBREW$2.test(word) ? HEBREW_PREFIXES : '';
|
|
17117
17151
|
return new RegExp(`(?<![\\p{L}\\p{N}])${prefix}${w}(?![\\p{L}\\p{N}])`, 'u');
|
|
17118
17152
|
}
|
|
17119
17153
|
const PRICE_SHAPE = { kind: 'price', pattern: /(?:[$€£₪]\s?\d[\d,.]*|\d[\d,.]*\s?(?:[$€£₪]|ש"ח|NIS|USD|EUR|GBP))/gu, key: (m) => m.replace(/[^\d]/g, '') };
|
|
@@ -18316,14 +18350,14 @@ const BAR_ITEMS_MIN = 3;
|
|
|
18316
18350
|
const BAR_ITEMS_MAX = 5;
|
|
18317
18351
|
class NavShapeError extends Error {
|
|
18318
18352
|
}
|
|
18319
|
-
const CONTAINER = 'Container';
|
|
18353
|
+
const CONTAINER$1 = 'Container';
|
|
18320
18354
|
const DIALOG$1 = 'Dialog';
|
|
18321
|
-
const LINK = 'Link';
|
|
18355
|
+
const LINK$1 = 'Link';
|
|
18322
18356
|
const LINKED = 'LinkedContainer';
|
|
18323
18357
|
const BUTTON = 'ButtonBlock';
|
|
18324
18358
|
const ICON$1 = 'Icon';
|
|
18325
18359
|
const TEXT$1 = 'Text';
|
|
18326
|
-
const HEADING = 'Heading';
|
|
18360
|
+
const HEADING$1 = 'Heading';
|
|
18327
18361
|
const NAV_STYLE = 'nav';
|
|
18328
18362
|
const DISPLAY = 'display';
|
|
18329
18363
|
const NONE$2 = 'none';
|
|
@@ -18402,7 +18436,7 @@ function findAll(nodes, role) {
|
|
|
18402
18436
|
function findNavRoot(globals, navId) {
|
|
18403
18437
|
if (navId)
|
|
18404
18438
|
return globals.find(g => g.id === navId) ?? null;
|
|
18405
|
-
return globals.find(g => g.role === NavRole.Root) ?? globals.find(g => g.elementStyle === NAV_STYLE && g.type === CONTAINER) ?? null;
|
|
18439
|
+
return globals.find(g => g.role === NavRole.Root) ?? globals.find(g => g.elementStyle === NAV_STYLE && g.type === CONTAINER$1) ?? null;
|
|
18406
18440
|
}
|
|
18407
18441
|
/** The shape a site's globals are in now, or null when there is no Navigation bar. */
|
|
18408
18442
|
function navShapeOf(globals) {
|
|
@@ -18426,10 +18460,10 @@ function navShapeBreakpoint(globals) {
|
|
|
18426
18460
|
const prop = (n, name) => n.props?.[name];
|
|
18427
18461
|
const isPageLink = (n) => prop(n, 'linkType') === LinkType.Page && typeof prop(n, 'pageRoute') === 'string';
|
|
18428
18462
|
function textOf$3(n) {
|
|
18429
|
-
if (n.type === LINK)
|
|
18463
|
+
if (n.type === LINK$1)
|
|
18430
18464
|
return String(prop(n, 'label') ?? '');
|
|
18431
18465
|
let words = '';
|
|
18432
|
-
walkSerialized(n.children ?? [], c => { if (!words && (c.type === TEXT$1 || c.type === HEADING))
|
|
18466
|
+
walkSerialized(n.children ?? [], c => { if (!words && (c.type === TEXT$1 || c.type === HEADING$1))
|
|
18433
18467
|
words = String(prop(c, 'content') ?? ''); });
|
|
18434
18468
|
return words;
|
|
18435
18469
|
}
|
|
@@ -18460,7 +18494,7 @@ function collectHeaderLinks(root) {
|
|
|
18460
18494
|
const visit = (n) => {
|
|
18461
18495
|
if (n.type === DIALOG$1)
|
|
18462
18496
|
return;
|
|
18463
|
-
if (n.type === LINK)
|
|
18497
|
+
if (n.type === LINK$1)
|
|
18464
18498
|
out.push(n);
|
|
18465
18499
|
(n.children ?? []).forEach(visit);
|
|
18466
18500
|
};
|
|
@@ -18589,19 +18623,19 @@ function menuButton(kit, drawerId, at) {
|
|
|
18589
18623
|
return btn;
|
|
18590
18624
|
}
|
|
18591
18625
|
function pageLink$1(kit, suffix, page, role, lay = {}) {
|
|
18592
|
-
return part$1(kit, suffix, LINK, { label: page.label, linkType: LinkType.Page, pageRoute: page.route }, 'link', role, lay);
|
|
18626
|
+
return part$1(kit, suffix, LINK$1, { label: page.label, linkType: LinkType.Page, pageRoute: page.route }, 'link', role, lay);
|
|
18593
18627
|
}
|
|
18594
18628
|
function drawer(kit, root, pages, at) {
|
|
18595
18629
|
const dr = part$1(kit, 'drawer', DIALOG$1, {
|
|
18596
18630
|
placement: 'end', closeOnBackdrop: true, showCloseButton: false, ariaLabel: NAV_SHAPE_COPY.menu, closeAbove: at,
|
|
18597
18631
|
}, 'dialog', NavRole.Drawer, { width: '86vw', maxWidth: '360px', display: 'flex', flexDirection: 'column', gap: '20px' });
|
|
18598
18632
|
const brandWords = textOf$3(find([root], NavRole.Brand) ?? root) || NAV_PART_LABELS[NavRole.Root];
|
|
18599
|
-
const head = part$1(kit, 'drawer-head', CONTAINER, {}, 'box', NavRole.DrawerHead, { display: 'flex', justifyContent: 'space-between', alignItems: 'center', gap: '12px' });
|
|
18633
|
+
const head = part$1(kit, 'drawer-head', CONTAINER$1, {}, 'box', NavRole.DrawerHead, { display: 'flex', justifyContent: 'space-between', alignItems: 'center', gap: '12px' });
|
|
18600
18634
|
const close = part$1(kit, 'drawer-close', BUTTON, { tag: 'button', ariaLabel: NAV_SHAPE_COPY.closeMenu }, 'button-ghost', NavRole.DrawerClose, { ...MENU_BUTTON_LAY });
|
|
18601
18635
|
close.children = [iconNode(kit, 'drawer-close-icon', CLOSE_ICON)];
|
|
18602
18636
|
close.interactions = [clickTo(kit, 'drawer-close', NavDialogAction.Close, dr.id)];
|
|
18603
|
-
head.children = [part$1(kit, 'drawer-brand', HEADING, { content: brandWords, level: 'h3' }, 'h3'), close];
|
|
18604
|
-
const list = part$1(kit, 'drawer-links', CONTAINER, {}, 'box', NavRole.DrawerLinks, { display: 'flex', flexDirection: 'column', gap: '4px' });
|
|
18637
|
+
head.children = [part$1(kit, 'drawer-brand', HEADING$1, { content: brandWords, level: 'h3' }, 'h3'), close];
|
|
18638
|
+
const list = part$1(kit, 'drawer-links', CONTAINER$1, {}, 'box', NavRole.DrawerLinks, { display: 'flex', flexDirection: 'column', gap: '4px' });
|
|
18605
18639
|
// Board 1: every page, Home first, at lead size (on each Link: a Link's own baseline font size would
|
|
18606
18640
|
// beat one inherited from the list). Only the CURRENT page is underlined — the shared CSS keys that on
|
|
18607
18641
|
// the list's role (iox-design.css), so no Link holds a literal over its element style.
|
|
@@ -18708,7 +18742,7 @@ function barPages(root, pages, count) {
|
|
|
18708
18742
|
function bar(kit, root, pages, shape, count, drawerId, at) {
|
|
18709
18743
|
// The node IS fixed (not only its element style): the builder canvas forces a node's own `position`
|
|
18710
18744
|
// with !important, so a stored `static` default would pin the bar into the flow there.
|
|
18711
|
-
const b = part$1(kit, 'bar', CONTAINER, { htmlTag: 'nav' }, 'bottom-bar', NavRole.Bar, { position: 'fixed', justifyContent: 'space-around', alignItems: 'stretch', gap: '4px', padding: '6px 8px', width: 'auto' });
|
|
18745
|
+
const b = part$1(kit, 'bar', CONTAINER$1, { htmlTag: 'nav' }, 'bottom-bar', NavRole.Bar, { position: 'fixed', justifyContent: 'space-around', alignItems: 'stretch', gap: '4px', padding: '6px 8px', width: 'auto' });
|
|
18712
18746
|
phoneOnly(b, at, 'flex');
|
|
18713
18747
|
const itemCount = shape === NavShape.Both ? count - 1 : count;
|
|
18714
18748
|
b.children = barPages(root, pages, itemCount).map((p, i) => barItem(kit, i, p));
|
|
@@ -18939,12 +18973,12 @@ function adoptRoles(root) {
|
|
|
18939
18973
|
for (const c of kids) {
|
|
18940
18974
|
if (c === brand || c.role)
|
|
18941
18975
|
continue;
|
|
18942
|
-
if (c.type === CONTAINER && (c.children ?? []).some(k => k.type === LINK)) {
|
|
18976
|
+
if (c.type === CONTAINER$1 && (c.children ?? []).some(k => k.type === LINK$1)) {
|
|
18943
18977
|
c.role = NavRole.Links;
|
|
18944
18978
|
for (const k of c.children ?? []) {
|
|
18945
18979
|
if (k.role)
|
|
18946
18980
|
continue;
|
|
18947
|
-
if (k.type === LINK)
|
|
18981
|
+
if (k.type === LINK$1)
|
|
18948
18982
|
k.role = NavRole.Link;
|
|
18949
18983
|
else if (k.type === BUTTON)
|
|
18950
18984
|
k.role = NavRole.Cta;
|
|
@@ -19272,7 +19306,7 @@ const cell = (side, c) => ({
|
|
|
19272
19306
|
/** A page as a plain link (a pinned page; a half of the pages either side of the name). */
|
|
19273
19307
|
const pageLink = (p, role) => ({ t: 'Link', es: 'link', text: p.name, href: p.route, ...(role ? { role } : {}) });
|
|
19274
19308
|
/** What a header asks for, in the order it shows them. */
|
|
19275
|
-
function actionsOf(mix, ctx) {
|
|
19309
|
+
function actionsOf$1(mix, ctx) {
|
|
19276
19310
|
switch (mix.action) {
|
|
19277
19311
|
case HeaderAction.Button: return [part('button')];
|
|
19278
19312
|
case HeaderAction.Link: return [part('quiet')];
|
|
@@ -19288,7 +19322,7 @@ function pinnedPagesOf(ctx) {
|
|
|
19288
19322
|
/** A header's pieces once the menu takes its pages: the pinned pages and the actions, each kept in the bar. */
|
|
19289
19323
|
function keptInBar(mix, ctx) {
|
|
19290
19324
|
const pins = mix.pages === HeaderPages.MenuPinned ? pinnedPagesOf(ctx) : [];
|
|
19291
|
-
const acts = actionsOf(mix, ctx);
|
|
19325
|
+
const acts = actionsOf$1(mix, ctx);
|
|
19292
19326
|
const pinned = pins.length ? { ...part('pinned'), c: pins.map(p => pageLink(p)) } : null;
|
|
19293
19327
|
const actions = acts.length ? { ...part('links'), role: NavRole.Actions, c: acts } : null;
|
|
19294
19328
|
return { pinned, actions };
|
|
@@ -19302,14 +19336,14 @@ function bodyOf(mix, ctx) {
|
|
|
19302
19336
|
switch (mix.arrange) {
|
|
19303
19337
|
case HeaderArrange.Centred:
|
|
19304
19338
|
return { lay: { display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '14px' }, resp: { mobile: { flexDirection: 'row', justifyContent: 'space-between' } },
|
|
19305
|
-
c: [brand, links(actionsOf(mix, ctx), { justifyContent: 'center' })] };
|
|
19339
|
+
c: [brand, links(actionsOf$1(mix, ctx), { justifyContent: 'center' })] };
|
|
19306
19340
|
case HeaderArrange.Between: {
|
|
19307
19341
|
const half = Math.ceil(ctx.pages.length / 2);
|
|
19308
19342
|
const row = (pages, more) => ({ ...part('links'), c: [...pages.map(p => pageLink(p, NavRole.Link)), ...more] });
|
|
19309
|
-
return { lay: flex, c: [cell('start', [row(ctx.pages.slice(0, half), [])]), brand, cell('end', [row(ctx.pages.slice(half), actionsOf(mix, ctx))])] };
|
|
19343
|
+
return { lay: flex, c: [cell('start', [row(ctx.pages.slice(0, half), [])]), brand, cell('end', [row(ctx.pages.slice(half), actionsOf$1(mix, ctx))])] };
|
|
19310
19344
|
}
|
|
19311
19345
|
default:
|
|
19312
|
-
return { lay: { display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', alignItems: 'center', gap: GAP }, c: [brand, links(actionsOf(mix, ctx))] };
|
|
19346
|
+
return { lay: { display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', alignItems: 'center', gap: GAP }, c: [brand, links(actionsOf$1(mix, ctx))] };
|
|
19313
19347
|
}
|
|
19314
19348
|
}
|
|
19315
19349
|
// Behind a menu: the links row stays (hidden at every width — the drawer lists its pages, and an author who brings the
|
|
@@ -20570,6 +20604,159 @@ function filmOfPlan(plan) {
|
|
|
20570
20604
|
return sequence && screens !== null ? { sequence, heightVh: Math.round((screens + 1) * 100) } : null;
|
|
20571
20605
|
}
|
|
20572
20606
|
|
|
20607
|
+
/**
|
|
20608
|
+
* THE LEGAL PAGES (award-ingredients-plan §4.3, AW1; consent plan C5) — read from ONE table, the contract's
|
|
20609
|
+
* `site.layout.legal` (layout.mjs `LEGAL`): which legal page KINDS a site needs follows from facts the site and the
|
|
20610
|
+
* studio hold (a form asks for personal details, a tracker is connected, the site sells, books or signs people up, it is
|
|
20611
|
+
* in Hebrew, the studio's country), never from a model. A kind is stamped by `composeSite` as an EMPTY, flagged page —
|
|
20612
|
+
* a title and a placeholder whose label says what belongs there — and the Publishable gate blocks while it is still the
|
|
20613
|
+
* placeholder. IOX never writes a word of policy (D-C7). Pure.
|
|
20614
|
+
*/
|
|
20615
|
+
const L$2 = SPEC_SITE_LAYOUT.legal;
|
|
20616
|
+
/** The kinds, by the table's ids (held equal to it by legal.spec). */
|
|
20617
|
+
var LegalKind;
|
|
20618
|
+
(function (LegalKind) {
|
|
20619
|
+
LegalKind["Privacy"] = "privacy";
|
|
20620
|
+
LegalKind["Cookies"] = "cookies";
|
|
20621
|
+
LegalKind["Accessibility"] = "accessibility";
|
|
20622
|
+
LegalKind["Terms"] = "terms";
|
|
20623
|
+
LegalKind["TermsOfSale"] = "terms-of-sale";
|
|
20624
|
+
LegalKind["Returns"] = "returns";
|
|
20625
|
+
LegalKind["Shipping"] = "shipping";
|
|
20626
|
+
LegalKind["Imprint"] = "imprint";
|
|
20627
|
+
LegalKind["DoNotSell"] = "do-not-sell";
|
|
20628
|
+
})(LegalKind || (LegalKind = {}));
|
|
20629
|
+
/** The facts that decide a kind, by the table's ids. */
|
|
20630
|
+
var LegalFact;
|
|
20631
|
+
(function (LegalFact) {
|
|
20632
|
+
LegalFact["PersonalDataForm"] = "personal-data-form";
|
|
20633
|
+
LegalFact["Tracker"] = "tracker";
|
|
20634
|
+
LegalFact["Sells"] = "sells";
|
|
20635
|
+
LegalFact["PhysicalGoods"] = "physical-goods";
|
|
20636
|
+
LegalFact["Books"] = "books";
|
|
20637
|
+
LegalFact["Signups"] = "signups";
|
|
20638
|
+
LegalFact["Hebrew"] = "hebrew";
|
|
20639
|
+
LegalFact["Israel"] = "israel";
|
|
20640
|
+
LegalFact["EuBusiness"] = "eu-business";
|
|
20641
|
+
LegalFact["UsBusiness"] = "us-business";
|
|
20642
|
+
})(LegalFact || (LegalFact = {}));
|
|
20643
|
+
/** Whether a kind holds Publish while it is the placeholder: yes · through the checkout gate · never. */
|
|
20644
|
+
var LegalBlocks;
|
|
20645
|
+
(function (LegalBlocks) {
|
|
20646
|
+
LegalBlocks["Yes"] = "yes";
|
|
20647
|
+
LegalBlocks["Commerce"] = "commerce";
|
|
20648
|
+
LegalBlocks["No"] = "no";
|
|
20649
|
+
})(LegalBlocks || (LegalBlocks = {}));
|
|
20650
|
+
/** Every kind, in the table's order. */
|
|
20651
|
+
const LEGAL_KINDS = L$2.kinds;
|
|
20652
|
+
/** A deferred kind is never stamped (`do-not-sell`, US only). */
|
|
20653
|
+
const DEFERRED = 'deferred';
|
|
20654
|
+
/** Where a page says which legal kind it is: `pageSettings.legal` (free-form, saved with the page). */
|
|
20655
|
+
const LEGAL_PAGE_SETTING = 'legal';
|
|
20656
|
+
/** The role of the legal line beside a form and of a footer's legal row. */
|
|
20657
|
+
const FORM_LEGAL_ROLE = 'form.legal';
|
|
20658
|
+
const FOOTER_LEGAL_ROLE = 'footer.legal';
|
|
20659
|
+
/** ISO 3166-1 alpha-2 for Israel — the accessibility statement's country (Israel's equal-rights regulations, 2013). */
|
|
20660
|
+
const ISRAEL = 'IL';
|
|
20661
|
+
/** The countries whose businesses publish an imprint (the table's `imprintCountries`). */
|
|
20662
|
+
const IMPRINT_COUNTRIES = new Set(L$2.imprintCountries);
|
|
20663
|
+
function isLegalKind(value) {
|
|
20664
|
+
return typeof value === 'string' && LEGAL_KINDS.some(k => k.id === value);
|
|
20665
|
+
}
|
|
20666
|
+
function legalKindRow(kind) {
|
|
20667
|
+
const row = LEGAL_KINDS.find(k => k.id === kind);
|
|
20668
|
+
if (!row)
|
|
20669
|
+
throw new Error(`no legal kind "${kind}"`);
|
|
20670
|
+
return row;
|
|
20671
|
+
}
|
|
20672
|
+
const pick = (words, lang) => (lang === 'he' ? words.he : words.en);
|
|
20673
|
+
/** A kind's page title in the site's language. */
|
|
20674
|
+
function legalTitle(kind, lang) {
|
|
20675
|
+
return pick(legalKindRow(kind).title, lang);
|
|
20676
|
+
}
|
|
20677
|
+
/** What belongs on the page, in the site's language — the placeholder it shows until the owner writes it. */
|
|
20678
|
+
function legalLabel(kind, lang) {
|
|
20679
|
+
return pick(legalKindRow(kind).label, lang);
|
|
20680
|
+
}
|
|
20681
|
+
/** True when a kind holds Publish while it is the placeholder (yes, or with the checkout's own). */
|
|
20682
|
+
function legalKindBlocks(kind) {
|
|
20683
|
+
return legalKindRow(kind).blocks !== LegalBlocks.No;
|
|
20684
|
+
}
|
|
20685
|
+
/** The kind a page says it is (`pageSettings.legal`), or null. */
|
|
20686
|
+
function legalKindOfPage(page) {
|
|
20687
|
+
const kind = page?.pageSettings?.[LEGAL_PAGE_SETTING];
|
|
20688
|
+
return isLegalKind(kind) ? kind : null;
|
|
20689
|
+
}
|
|
20690
|
+
/** The kinds a site with these facts needs, in the table's order (deferred kinds never). */
|
|
20691
|
+
function legalKindsFor(facts) {
|
|
20692
|
+
return LEGAL_KINDS.filter(k => k.phase !== DEFERRED && k.when.some(f => facts[f] === true)).map(k => k.id);
|
|
20693
|
+
}
|
|
20694
|
+
/** The form controls that ask for a personal detail (a name, an email, a phone, words about the person). */
|
|
20695
|
+
const PERSONAL_CONTROLS = new Set([ControlType.Email, ControlType.Tel, ControlType.Text, ControlType.Textarea]);
|
|
20696
|
+
/** True when a Form node asks for a personal detail. */
|
|
20697
|
+
function formAsksPersonalData(form) {
|
|
20698
|
+
let personal = false;
|
|
20699
|
+
walkSerialized(form.children ?? [], f => {
|
|
20700
|
+
if (f.type === FIELD_NODE_TYPE && PERSONAL_CONTROLS.has(String(f.props['control'] ?? ControlType.Text)))
|
|
20701
|
+
personal = true;
|
|
20702
|
+
});
|
|
20703
|
+
return personal;
|
|
20704
|
+
}
|
|
20705
|
+
/** The forms-core presets whose forms are a booking or a sign-up (a Form's `formId` starts with its preset's id). */
|
|
20706
|
+
const BOOKING_PRESET = 'booking';
|
|
20707
|
+
const SIGNUP_PRESETS = new Set(['newsletter']);
|
|
20708
|
+
const presetOf = (form) => String(form.props['formId'] ?? '').split('-')[0];
|
|
20709
|
+
/** The facts the site's own nodes answer: a personal-data form, a booking form, a sign-up form. */
|
|
20710
|
+
function formLegalFacts(nodes) {
|
|
20711
|
+
const facts = {};
|
|
20712
|
+
walkSerialized(nodes, n => {
|
|
20713
|
+
if (n.type !== FORM_NODE_TYPE)
|
|
20714
|
+
return;
|
|
20715
|
+
if (formAsksPersonalData(n))
|
|
20716
|
+
facts[LegalFact.PersonalDataForm] = true;
|
|
20717
|
+
if (presetOf(n) === BOOKING_PRESET)
|
|
20718
|
+
facts[LegalFact.Books] = true;
|
|
20719
|
+
if (SIGNUP_PRESETS.has(presetOf(n)))
|
|
20720
|
+
facts[LegalFact.Signups] = true;
|
|
20721
|
+
});
|
|
20722
|
+
return facts;
|
|
20723
|
+
}
|
|
20724
|
+
/** The studio's country as facts: Israel, or a country that asks for an imprint. Unknown = neither. */
|
|
20725
|
+
function countryLegalFacts(country) {
|
|
20726
|
+
const c = String(country ?? '').trim().toUpperCase();
|
|
20727
|
+
return { [LegalFact.Israel]: c === ISRAEL, [LegalFact.EuBusiness]: IMPRINT_COUNTRIES.has(c) };
|
|
20728
|
+
}
|
|
20729
|
+
/** The route a stamped kind takes: `/<kind>`, else `/legal/<kind>`, else numbered — never one already taken. */
|
|
20730
|
+
function legalRoute(kind, taken) {
|
|
20731
|
+
const tries = [`/${kind}`, `/legal/${kind}`];
|
|
20732
|
+
for (const route of tries)
|
|
20733
|
+
if (!taken.has(route))
|
|
20734
|
+
return route;
|
|
20735
|
+
for (let n = 2;; n++)
|
|
20736
|
+
if (!taken.has(`/legal/${kind}-${n}`))
|
|
20737
|
+
return `/legal/${kind}-${n}`;
|
|
20738
|
+
}
|
|
20739
|
+
const LINE_KEY = /\{(terms|privacy)\}/g;
|
|
20740
|
+
/**
|
|
20741
|
+
* The legal line beside a form (AW-D15) in the site's language, as words and links: "By sending, you agree to the
|
|
20742
|
+
* {terms} and {privacy}." — the privacy-only line when the site has no terms page. Spaces stay with the words, so the
|
|
20743
|
+
* pieces read as one sentence when drawn inline.
|
|
20744
|
+
*/
|
|
20745
|
+
function legalFormLine(lang, withTerms) {
|
|
20746
|
+
const template = pick((withTerms ? L$2.formLine : L$2.formLinePrivacy), lang);
|
|
20747
|
+
const parts = [];
|
|
20748
|
+
let at = 0;
|
|
20749
|
+
for (const m of template.matchAll(LINE_KEY)) {
|
|
20750
|
+
if (m.index > at)
|
|
20751
|
+
parts.push({ text: template.slice(at, m.index) });
|
|
20752
|
+
parts.push({ kind: m[1] });
|
|
20753
|
+
at = m.index + m[0].length;
|
|
20754
|
+
}
|
|
20755
|
+
if (at < template.length)
|
|
20756
|
+
parts.push({ text: template.slice(at) });
|
|
20757
|
+
return parts;
|
|
20758
|
+
}
|
|
20759
|
+
|
|
20573
20760
|
/**
|
|
20574
20761
|
* THE LIST TABLE (list-ingredients-plan.md; the contract's `layout.mjs` `LIST`, in the shape every mixed part shares —
|
|
20575
20762
|
* ingredients.md §2): the words of each ingredient, what each means, and which wait for a later phase and are drawn as
|
|
@@ -20666,7 +20853,7 @@ const GRID$1 = 12;
|
|
|
20666
20853
|
const COLUMN_PX$1 = LAYOUT_CHECK_VIEWPORT.width / GRID$1;
|
|
20667
20854
|
/** A line of words stands its size × this tall. */
|
|
20668
20855
|
const LAYOUT_LINE_HEIGHT = 1.2;
|
|
20669
|
-
const HEBREW = /[-]/;
|
|
20856
|
+
const HEBREW$1 = /[-]/;
|
|
20670
20857
|
/** A button's ink, as tall as its padding and one line. */
|
|
20671
20858
|
const BUTTON_PX = 56;
|
|
20672
20859
|
/** How far the screens mend lowers a section at a time, and how often it tries. */
|
|
@@ -20685,7 +20872,7 @@ const meets = (a, b) => {
|
|
|
20685
20872
|
return ov(a.col ?? [0, 0], b.col ?? [0, 0]) && ov(a.row ?? [0, 0], b.row ?? [0, 0]);
|
|
20686
20873
|
};
|
|
20687
20874
|
const textOf$2 = (l) => String(l.text ?? (l.items ?? []).join(' '));
|
|
20688
|
-
const advanceOf = (text) => (HEBREW.test(text) ? LIM$1.advance.hebrew : LIM$1.advance.latin);
|
|
20875
|
+
const advanceOf = (text) => (HEBREW$1.test(text) ? LIM$1.advance.hebrew : LIM$1.advance.latin);
|
|
20689
20876
|
/** A grid box's size in px on the laptop. */
|
|
20690
20877
|
function layoutBoxPx(col, row, s) {
|
|
20691
20878
|
const height = (s.pin ? 1 : s.screens) * LAYOUT_CHECK_VIEWPORT.height;
|
|
@@ -22258,6 +22445,9 @@ var PlaceholderKind;
|
|
|
22258
22445
|
/** L2 (`proof.stat-row`): a number the studio stands behind ("12 years", "300 clients") — a fact, its label shown
|
|
22259
22446
|
* meanwhile ("Number"), never a number written for it. */
|
|
22260
22447
|
PlaceholderKind["Stat"] = "stat";
|
|
22448
|
+
/** AW1: a stamped legal page's text — what belongs there ("Your privacy policy: …"), never a word of policy. Its page
|
|
22449
|
+
* holds Publish while it shows the label (`auditSite`, `legal-page-placeholder`, by the page's kind). */
|
|
22450
|
+
PlaceholderKind["Policy"] = "policy";
|
|
22261
22451
|
})(PlaceholderKind || (PlaceholderKind = {}));
|
|
22262
22452
|
/** The placeholders a page cannot be published with unfilled (W4's gate): a fact, a price, a number, the studio's own
|
|
22263
22453
|
* video. Copy and an empty image are the author's to rewrite, never blocking. */
|
|
@@ -22289,8 +22479,8 @@ const DANGLING_LINK_CODES = new Set([
|
|
|
22289
22479
|
ComposeIssueCode.LinkToEmail, ComposeIssueCode.LinkRemoved, ComposeIssueCode.LinkUnlinked,
|
|
22290
22480
|
]);
|
|
22291
22481
|
/** The composer's context for a site whose layouts name photos: the year, and each photo's address, words and shape. */
|
|
22292
|
-
function composeContextOf(year, photos, tier) {
|
|
22293
|
-
const tiered = tier ? { tier } : {};
|
|
22482
|
+
function composeContextOf(year, photos, tier, legal) {
|
|
22483
|
+
const tiered = { ...(tier ? { tier } : {}), ...(legal ? { legal } : {}) };
|
|
22294
22484
|
if (!photos)
|
|
22295
22485
|
return { year, ...tiered };
|
|
22296
22486
|
return {
|
|
@@ -22688,13 +22878,16 @@ function composeForm(node, pn, id, ctx) {
|
|
|
22688
22878
|
throw new ComposeError(`${id}: a preset Form takes its fields from the preset, not the pattern`);
|
|
22689
22879
|
stampPresetForm(node, presetId, id, ctx.owner);
|
|
22690
22880
|
}
|
|
22691
|
-
/** A preset's name, stable form id and children on a Form node — the ONE stamping `composeSite` and `composeLayout` share. */
|
|
22881
|
+
/** A preset's name, stable form id, after-send steps (iox-cms#84: a contact form emails the owner) and children on a Form node — the ONE stamping `composeSite` and `composeLayout` share. */
|
|
22692
22882
|
function stampPresetForm(node, presetId, id, owner) {
|
|
22693
22883
|
const preset = formPresetById(presetId);
|
|
22694
22884
|
if (!preset)
|
|
22695
22885
|
throw new ComposeError(`${id}: no form preset "${presetId}" in forms-core`);
|
|
22696
22886
|
setProp(node, 'name', preset.formName);
|
|
22697
22887
|
setProp(node, 'formId', `${preset.id}-${stableHash(`${owner}/${id}`)}`);
|
|
22888
|
+
const actions = presetFormActions(preset);
|
|
22889
|
+
if (actions)
|
|
22890
|
+
setProp(node, 'actions', actions);
|
|
22698
22891
|
node.children = presetChildren(preset, id);
|
|
22699
22892
|
}
|
|
22700
22893
|
/** A NEW Form stamped from a forms-core preset, exactly as a pattern's preset form is (premium M8: a layout's form layer). */
|
|
@@ -23640,6 +23833,10 @@ function composeSite(plan, context) {
|
|
|
23640
23833
|
}
|
|
23641
23834
|
if (planSells(plan))
|
|
23642
23835
|
globals = withStore(globals, plan.locale ?? DEFAULT_SITE_LOCALE);
|
|
23836
|
+
// AW1: the law, derived from facts and never asked — the legal pages, the banner when a tracker is connected, the
|
|
23837
|
+
// footer's legal row and the line beside every form that asks for personal details.
|
|
23838
|
+
const legal = composeLegal(plan, context.legal ?? {}, pages, globals, footer.mix.arrange, placeholders);
|
|
23839
|
+
globals = legal.globals;
|
|
23643
23840
|
return {
|
|
23644
23841
|
source: clone$1(plan.source),
|
|
23645
23842
|
business: clone$1(plan.business),
|
|
@@ -23647,14 +23844,178 @@ function composeSite(plan, context) {
|
|
|
23647
23844
|
schemas: clone$1(plan.contentTypes),
|
|
23648
23845
|
items: Object.fromEntries(plan.contentTypes.map(t => [t.name, composeItems(t, plan.source.kind === SitePlanSourceKind.Ai)])),
|
|
23649
23846
|
dataSources: plan.dataSources.map(composeDataSource),
|
|
23650
|
-
pages,
|
|
23847
|
+
pages: [...pages, ...legal.pages],
|
|
23651
23848
|
globals,
|
|
23652
|
-
routes: plan.pages.map(p => ({ key: p.key, path: p.route, isHome: p.isHome === true })),
|
|
23849
|
+
routes: [...plan.pages.map(p => ({ key: p.key, path: p.route, isHome: p.isHome === true })), ...legal.pages.map(p => ({ key: p.key, path: p.route.path, isHome: false }))],
|
|
23653
23850
|
placeholders,
|
|
23654
23851
|
issues,
|
|
23655
23852
|
shop: composeShop(plan),
|
|
23656
23853
|
};
|
|
23657
23854
|
}
|
|
23855
|
+
// ── AW1: the law (award-ingredients-plan §4) ──────────────────────────────────────────────────────────────────────
|
|
23856
|
+
const LINK = 'Link';
|
|
23857
|
+
const HEADING = 'Heading';
|
|
23858
|
+
const SECTION = 'Section';
|
|
23859
|
+
const CONTAINER = 'Container';
|
|
23860
|
+
/** Inline words: the legal line reads as one sentence, its links inside it. */
|
|
23861
|
+
const INLINE = { display: 'inline', width: 'auto', minHeight: 'auto', padding: '0px 0px 0px 0px', margin: '0px 0px 0px 0px' };
|
|
23862
|
+
/** The facts the law is decided by: the composed site's forms, what it sells, its language and the studio's country and trackers. */
|
|
23863
|
+
function legalFactsOf(plan, context, nodes) {
|
|
23864
|
+
const sells = planSells(plan);
|
|
23865
|
+
return {
|
|
23866
|
+
...formLegalFacts(nodes),
|
|
23867
|
+
[LegalFact.Tracker]: (context.trackers?.length ?? 0) > 0,
|
|
23868
|
+
[LegalFact.Sells]: sells,
|
|
23869
|
+
// The shop ships what it sells (commerce shipping, C-D9) — no product is digital yet.
|
|
23870
|
+
[LegalFact.PhysicalGoods]: sells,
|
|
23871
|
+
[LegalFact.Hebrew]: (plan.locale ?? DEFAULT_SITE_LOCALE) === SiteLocale.He,
|
|
23872
|
+
...countryLegalFacts(context.country),
|
|
23873
|
+
};
|
|
23874
|
+
}
|
|
23875
|
+
/** A stamped legal page: its title and the placeholder that says what belongs there — never a word of policy (D-C7). */
|
|
23876
|
+
function composeLegalPage(kind, key, route, plan, placeholders) {
|
|
23877
|
+
const locale = plan.locale ?? DEFAULT_SITE_LOCALE;
|
|
23878
|
+
const title = legalTitle(kind, locale);
|
|
23879
|
+
const label = legalLabel(kind, locale);
|
|
23880
|
+
const section = create(key, SECTION, {}, 'section');
|
|
23881
|
+
section.label = 'Legal page';
|
|
23882
|
+
const column = create(`${key}-0`, CONTAINER, {}, 'box');
|
|
23883
|
+
setStyleProps(column, { display: 'flex', flexDirection: 'column', gap: '18px', maxWidth: '720px', width: '100%', margin: '0px auto 0px auto' });
|
|
23884
|
+
const heading = create(`${key}-0-0`, HEADING, { content: title, level: 'h1' }, 'h1');
|
|
23885
|
+
const text = create(`${key}-0-1`, TEXT, { content: label }, 'body');
|
|
23886
|
+
column.children = [heading, text];
|
|
23887
|
+
section.children = [column];
|
|
23888
|
+
placeholders.push({ nodeId: text.id, owner: key, kind: PlaceholderKind.Policy, text: label });
|
|
23889
|
+
const page = { key, name: title, route, sections: [] };
|
|
23890
|
+
return {
|
|
23891
|
+
key, name: title, route: { path: route }, isHome: false, status: STATUS_DRAFT, locale,
|
|
23892
|
+
pageSettings: { designSystem: true, [LEGAL_PAGE_SETTING]: kind },
|
|
23893
|
+
seo: composePageSeo(page, plan), layout: [section],
|
|
23894
|
+
};
|
|
23895
|
+
}
|
|
23896
|
+
/** A link to a legal page, worn as the look's link. */
|
|
23897
|
+
function legalLink(id, kind, route, locale, base = {}) {
|
|
23898
|
+
const link = create(id, LINK, { label: legalTitle(kind, locale) }, 'link');
|
|
23899
|
+
writePageLink(link, route);
|
|
23900
|
+
setStyleProps(link, { width: 'auto', minHeight: 'auto', ...base });
|
|
23901
|
+
return link;
|
|
23902
|
+
}
|
|
23903
|
+
/** The footer's legal row (CONSENT `reopen.footer`, FOOTER `holds.legal`): every legal page, then Cookie settings. */
|
|
23904
|
+
function legalRow(routes, settings, arrange, locale) {
|
|
23905
|
+
if (!routes.size && !settings)
|
|
23906
|
+
return null;
|
|
23907
|
+
const row = create(FOOTER_LEGAL_ROLE.replace('.', '-'), CONTAINER, {}, 'box');
|
|
23908
|
+
row.role = FOOTER_LEGAL_ROLE;
|
|
23909
|
+
row.label = 'Legal';
|
|
23910
|
+
setStyleProps(row, {
|
|
23911
|
+
display: 'flex', flexWrap: 'wrap', alignItems: 'center', gap: '8px 20px', width: '100%', minHeight: 'auto',
|
|
23912
|
+
justifyContent: arrange === FooterArrange.Centred ? 'center' : 'flex-start',
|
|
23913
|
+
});
|
|
23914
|
+
row.children = [...[...routes].map(([kind, route]) => legalLink(`${row.id}-${kind}`, kind, route, locale)), ...(settings ? [settings] : [])];
|
|
23915
|
+
return row;
|
|
23916
|
+
}
|
|
23917
|
+
/** The legal line beside a form (AW-D15): the owner's words to edit, its links to the site's terms and privacy pages. */
|
|
23918
|
+
function formLegalLine(form, routes, locale) {
|
|
23919
|
+
if (!routes.has(LegalKind.Privacy))
|
|
23920
|
+
return null;
|
|
23921
|
+
const id = `${form.id}-legal`;
|
|
23922
|
+
const line = create(id, CONTAINER, {}, 'box');
|
|
23923
|
+
line.role = FORM_LEGAL_ROLE;
|
|
23924
|
+
line.label = 'Legal line';
|
|
23925
|
+
setStyleProps(line, { display: 'block', width: '100%', minHeight: 'auto' });
|
|
23926
|
+
line.children = legalFormLine(locale, routes.has(LegalKind.Terms)).map((part, i) => ('kind' in part
|
|
23927
|
+
? legalLink(`${id}-${i}`, part.kind, routes.get(part.kind), locale, INLINE)
|
|
23928
|
+
: (() => {
|
|
23929
|
+
const words = create(`${id}-${i}`, TEXT, { content: part.text, tag: 'span' }, 'small');
|
|
23930
|
+
setStyleProps(words, INLINE);
|
|
23931
|
+
return words;
|
|
23932
|
+
})()));
|
|
23933
|
+
return line;
|
|
23934
|
+
}
|
|
23935
|
+
/** Put the legal line after a form's fields and buttons — before its success and error blocks. */
|
|
23936
|
+
function withFormLine(form, line) {
|
|
23937
|
+
const kids = form.children ?? (form.children = []);
|
|
23938
|
+
const at = kids.findIndex(k => k.type === FORM_SUCCESS || k.type === FORM_ERROR);
|
|
23939
|
+
kids.splice(at >= 0 ? at : kids.length, 0, line);
|
|
23940
|
+
}
|
|
23941
|
+
/** The categories the trackers need a yes for, each once (Necessary never). */
|
|
23942
|
+
function trackerCategories(context) {
|
|
23943
|
+
const out = [];
|
|
23944
|
+
for (const t of context.trackers ?? []) {
|
|
23945
|
+
const c = t.category;
|
|
23946
|
+
if (c !== ConsentCategory.Necessary && !out.includes(c))
|
|
23947
|
+
out.push(c);
|
|
23948
|
+
}
|
|
23949
|
+
return out;
|
|
23950
|
+
}
|
|
23951
|
+
/**
|
|
23952
|
+
* AW1 (C5): the law a site's facts call for — stamped, never asked. Each legal kind the facts need (`legalKindsFor`) is
|
|
23953
|
+
* the studio's own page when it has one (linked, never stamped again), else an empty flagged page on a free route; the
|
|
23954
|
+
* cookie banner and its preferences are stamped as globals when a tracker is connected (unless the studio keeps its
|
|
23955
|
+
* own); every footer gets the legal row (+ Cookie settings), every form that asks for personal details the legal line.
|
|
23956
|
+
* Pure: new globals, the stamped pages; forms and the footer gain their nodes in place.
|
|
23957
|
+
*/
|
|
23958
|
+
function composeLegal(plan, context, pages, globals, footerArrange, placeholders) {
|
|
23959
|
+
const locale = plan.locale ?? DEFAULT_SITE_LOCALE;
|
|
23960
|
+
const nodes = [...pages.flatMap(p => p.layout), ...globals];
|
|
23961
|
+
const kinds = legalKindsFor(legalFactsOf(plan, context, nodes));
|
|
23962
|
+
const taken = new Set([...plan.pages.map(p => p.route), ...(context.takenRoutes ?? [])]);
|
|
23963
|
+
const keys = new Set(plan.pages.map(p => p.key));
|
|
23964
|
+
const routes = new Map();
|
|
23965
|
+
const stamped = [];
|
|
23966
|
+
for (const kind of kinds) {
|
|
23967
|
+
const own = context.existing?.[kind];
|
|
23968
|
+
if (own) {
|
|
23969
|
+
routes.set(kind, own);
|
|
23970
|
+
continue;
|
|
23971
|
+
}
|
|
23972
|
+
const route = legalRoute(kind, taken);
|
|
23973
|
+
taken.add(route);
|
|
23974
|
+
let key = `legal-${kind}`;
|
|
23975
|
+
for (let n = 2; keys.has(key); n++)
|
|
23976
|
+
key = `legal-${kind}-${n}`;
|
|
23977
|
+
keys.add(key);
|
|
23978
|
+
routes.set(kind, route);
|
|
23979
|
+
stamped.push(composeLegalPage(kind, key, route, plan, placeholders));
|
|
23980
|
+
}
|
|
23981
|
+
const out = [...globals];
|
|
23982
|
+
let settings = null;
|
|
23983
|
+
const categories = trackerCategories(context);
|
|
23984
|
+
if (context.trackers?.length) {
|
|
23985
|
+
const privacy = routes.get(LegalKind.Privacy);
|
|
23986
|
+
const consent = buildConsentRecipe(spec => create(spec.key, spec.type, { ...(spec.props ?? {}) }, spec.elementStyle ?? null), {
|
|
23987
|
+
lang: locale, categories, privacyRoute: privacy ?? null, privacyLabel: privacy ? legalTitle(LegalKind.Privacy, locale) : undefined,
|
|
23988
|
+
});
|
|
23989
|
+
settings = consent.settings;
|
|
23990
|
+
if (context.keptPreferences) {
|
|
23991
|
+
// The studio keeps its own banner: the footer's Cookie settings opens ITS preferences, and no second banner.
|
|
23992
|
+
for (const ix of settings.interactions ?? [])
|
|
23993
|
+
for (const a of ix.actions ?? []) {
|
|
23994
|
+
if (a.type === ConsentActionType.OpenPreferences)
|
|
23995
|
+
a.target = context.keptPreferences;
|
|
23996
|
+
}
|
|
23997
|
+
}
|
|
23998
|
+
else {
|
|
23999
|
+
for (const root of [consent.banner, consent.preferences]) {
|
|
24000
|
+
root.isGlobal = true;
|
|
24001
|
+
root.globalPosition = PatternGlobalPosition.After;
|
|
24002
|
+
out.push(root);
|
|
24003
|
+
}
|
|
24004
|
+
}
|
|
24005
|
+
}
|
|
24006
|
+
const footer = out.find(g => g.id === GlobalSlot.Footer);
|
|
24007
|
+
const row = footer ? legalRow(routes, settings, footerArrange, locale) : null;
|
|
24008
|
+
if (footer && row)
|
|
24009
|
+
(footer.children ?? (footer.children = [])).push(row);
|
|
24010
|
+
walkSerialized([...pages.flatMap(p => p.layout), ...out, ...stamped.flatMap(p => p.layout)], n => {
|
|
24011
|
+
if (n.type !== FORM || !formAsksPersonalData(n))
|
|
24012
|
+
return;
|
|
24013
|
+
const line = formLegalLine(n, routes, locale);
|
|
24014
|
+
if (line)
|
|
24015
|
+
withFormLine(n, line);
|
|
24016
|
+
});
|
|
24017
|
+
return { pages: stamped, globals: out };
|
|
24018
|
+
}
|
|
23658
24019
|
/** A plan's header (HI1): its mix as the product draws it, checked against the site, and the recipe to stamp — with what
|
|
23659
24020
|
* was mended or drawn as something else, in words. */
|
|
23660
24021
|
function planHeader(plan) {
|
|
@@ -25923,7 +26284,20 @@ var SiteFindingCode;
|
|
|
25923
26284
|
/** M7: a picture the build could not make (its review said no twice) and nothing stood in for: an empty box. */
|
|
25924
26285
|
SiteFindingCode["PictureMissing"] = "picture-missing";
|
|
25925
26286
|
SiteFindingCode["NoPrivacyPage"] = "no-privacy-page";
|
|
25926
|
-
|
|
26287
|
+
/** AW1: a legal page (privacy, cookies, terms, the accessibility statement…) still shows what belongs there — only the
|
|
26288
|
+
* owner can write it. The finding names its kind (`legal`). Generalises the privacy page's own finding. */
|
|
26289
|
+
SiteFindingCode["LegalPagePlaceholder"] = "legal-page-placeholder";
|
|
26290
|
+
/** AW1 (AW-D14): a site built with the law (`siteBuiltWithLaw`) in Israel or in Hebrew has no accessibility
|
|
26291
|
+
* statement — it blocks until one is written (Doron 2026-11-20: "block new, warn old"). */
|
|
26292
|
+
SiteFindingCode["NoAccessibilityStatement"] = "no-accessibility-statement";
|
|
26293
|
+
/** AW1: a site that existed before the law was stamped (an Israeli or Hebrew one) has no accessibility statement —
|
|
26294
|
+
* a warning only; no existing studio's publish is stopped by this rule. */
|
|
26295
|
+
SiteFindingCode["AccessibilityStatementAdvised"] = "accessibility-statement-advised";
|
|
26296
|
+
/** AW1 (R-H4): the cookie banner's Reject is weaker than its Accept — a link, another kind of element, on another row,
|
|
26297
|
+
* or only inside Preferences. Refusing must be as easy as accepting. */
|
|
26298
|
+
SiteFindingCode["ConsentRejectWeaker"] = "consent-reject-weaker";
|
|
26299
|
+
/** AW1 (R-H4): the site has a cookie banner and nothing outside it reopens the choice (Cookie settings). */
|
|
26300
|
+
SiteFindingCode["NoCookieSettings"] = "no-cookie-settings";
|
|
25927
26301
|
SiteFindingCode["LowContrast"] = "low-contrast";
|
|
25928
26302
|
SiteFindingCode["HeadingOrder"] = "heading-order";
|
|
25929
26303
|
SiteFindingCode["ImageWithoutAlt"] = "image-without-alt";
|
|
@@ -25954,7 +26328,11 @@ const FINDING_SEVERITY = {
|
|
|
25954
26328
|
[SiteFindingCode.MadePicture]: CheckSeverity.Ask,
|
|
25955
26329
|
[SiteFindingCode.PictureMissing]: CheckSeverity.Warn,
|
|
25956
26330
|
[SiteFindingCode.NoPrivacyPage]: CheckSeverity.Ask,
|
|
25957
|
-
[SiteFindingCode.
|
|
26331
|
+
[SiteFindingCode.LegalPagePlaceholder]: CheckSeverity.Block,
|
|
26332
|
+
[SiteFindingCode.NoAccessibilityStatement]: CheckSeverity.Block,
|
|
26333
|
+
[SiteFindingCode.AccessibilityStatementAdvised]: CheckSeverity.Warn,
|
|
26334
|
+
[SiteFindingCode.ConsentRejectWeaker]: CheckSeverity.Block,
|
|
26335
|
+
[SiteFindingCode.NoCookieSettings]: CheckSeverity.Warn,
|
|
25958
26336
|
[SiteFindingCode.LowContrast]: CheckSeverity.Warn,
|
|
25959
26337
|
[SiteFindingCode.HeadingOrder]: CheckSeverity.Warn,
|
|
25960
26338
|
[SiteFindingCode.ImageWithoutAlt]: CheckSeverity.Warn,
|
|
@@ -25984,7 +26362,11 @@ const CHECK_OF = {
|
|
|
25984
26362
|
[SiteFindingCode.MadePicture]: SiteCheckId.Facts,
|
|
25985
26363
|
[SiteFindingCode.PictureMissing]: SiteCheckId.Facts,
|
|
25986
26364
|
[SiteFindingCode.NoPrivacyPage]: SiteCheckId.Facts,
|
|
25987
|
-
[SiteFindingCode.
|
|
26365
|
+
[SiteFindingCode.LegalPagePlaceholder]: SiteCheckId.Facts,
|
|
26366
|
+
[SiteFindingCode.NoAccessibilityStatement]: SiteCheckId.Accessibility,
|
|
26367
|
+
[SiteFindingCode.AccessibilityStatementAdvised]: SiteCheckId.Accessibility,
|
|
26368
|
+
[SiteFindingCode.ConsentRejectWeaker]: SiteCheckId.Consent,
|
|
26369
|
+
[SiteFindingCode.NoCookieSettings]: SiteCheckId.Consent,
|
|
25988
26370
|
[SiteFindingCode.LowContrast]: SiteCheckId.Accessibility,
|
|
25989
26371
|
[SiteFindingCode.HeadingOrder]: SiteCheckId.Accessibility,
|
|
25990
26372
|
[SiteFindingCode.ImageWithoutAlt]: SiteCheckId.Accessibility,
|
|
@@ -25995,8 +26377,13 @@ const CHECK_OF = {
|
|
|
25995
26377
|
};
|
|
25996
26378
|
const LINKING_TYPES = new Set(['Link', 'Heading', 'Button', 'ButtonBlock', 'LinkedContainer', 'Image']);
|
|
25997
26379
|
const PAGE_LINK = 'page';
|
|
25998
|
-
|
|
25999
|
-
|
|
26380
|
+
/** A hand-built site's legal pages, found by a word in their name or route (a generated page says its kind). */
|
|
26381
|
+
// "מדיניות" alone is any policy (cookies, returns) — only "פרטיות" names privacy.
|
|
26382
|
+
const HAND_BUILT_LEGAL = {
|
|
26383
|
+
[LegalKind.Privacy]: /privacy|פרטיות/i,
|
|
26384
|
+
[LegalKind.Accessibility]: /accessib|נגישות/i,
|
|
26385
|
+
};
|
|
26386
|
+
const HEBREW = 'he';
|
|
26000
26387
|
const MAILER = 'mailer';
|
|
26001
26388
|
const EMAIL_DELIVERY = 'email';
|
|
26002
26389
|
const LITERAL_COLOUR = /#[0-9a-f]{3,8}\b|rgba?\(|hsla?\(/i;
|
|
@@ -26079,9 +26466,9 @@ function checkForms(ctx, snapshot, pages) {
|
|
|
26079
26466
|
if (spec?.actions.some(a => a.type === EMAIL_DELIVERY) && snapshot.connectors[MAILER] !== true) {
|
|
26080
26467
|
add(ctx, SiteFindingCode.EmailNeedsMailer, 'A form emails what visitors send, but Email is not connected — it is stored and never sent.', { ...where, nodeId: n.id });
|
|
26081
26468
|
}
|
|
26469
|
+
if (formAsksPersonalData(n))
|
|
26470
|
+
personal = true;
|
|
26082
26471
|
walkSerialized(n.children ?? [], f => {
|
|
26083
|
-
if (f.type === FIELD_NODE_TYPE && PERSONAL_CONTROLS.has(String(f.props['control'] ?? ControlType.Text)))
|
|
26084
|
-
personal = true;
|
|
26085
26472
|
if (f.role === FORM_CHANNEL_ROLE && !isChannelFilled(f.props['href'])) {
|
|
26086
26473
|
add(ctx, SiteFindingCode.EmptyChannel, 'A form\'s second way to reach you has no number or address yet — visitors do not see it until you fill it in.', { ...where, nodeId: f.id });
|
|
26087
26474
|
}
|
|
@@ -26089,15 +26476,68 @@ function checkForms(ctx, snapshot, pages) {
|
|
|
26089
26476
|
});
|
|
26090
26477
|
return personal;
|
|
26091
26478
|
}
|
|
26479
|
+
/** The actions a node's own interactions run, in order. */
|
|
26480
|
+
function actionsOf(node) {
|
|
26481
|
+
return (node.interactions ?? []).flatMap(ix => ix?.actions ?? []);
|
|
26482
|
+
}
|
|
26483
|
+
/** True when a node's own interactions run an action of `type`. */
|
|
26484
|
+
function runs(node, type) {
|
|
26485
|
+
return actionsOf(node).some(a => a?.type === type && !a.disabled);
|
|
26486
|
+
}
|
|
26487
|
+
/** Elements that read as a link, never a button: a Reject drawn as one is weaker than its Accept (R-H4). */
|
|
26488
|
+
const LINK_LIKE = new Set(['Link', 'Text']);
|
|
26489
|
+
/**
|
|
26490
|
+
* THE consent judge (AW1, CONSENT `rules` — one judge, grown here): a tracker needs a banner; a banner's Reject is never
|
|
26491
|
+
* weaker than its Accept (the same kind of element, on the same row, on the first layer — never a link, never only inside
|
|
26492
|
+
* Preferences); and something outside the banner reopens the choice (Cookie settings).
|
|
26493
|
+
*/
|
|
26092
26494
|
function checkConsent(ctx, snapshot) {
|
|
26093
|
-
|
|
26094
|
-
return;
|
|
26095
|
-
let banner = false;
|
|
26495
|
+
const banners = [];
|
|
26096
26496
|
for (const g of snapshot.globals)
|
|
26097
26497
|
walkSerialized([g], n => { if (n.type === DIALOG_TYPE && n.props['consentRole'] === true)
|
|
26098
|
-
|
|
26099
|
-
if (!
|
|
26498
|
+
banners.push(n); });
|
|
26499
|
+
if (snapshot.trackers?.length && !banners.length) {
|
|
26100
26500
|
add(ctx, SiteFindingCode.TrackerWithoutBanner, `${snapshot.trackers.join(', ')} is connected, but the site has no cookie banner — it stays off for every visitor.`);
|
|
26501
|
+
}
|
|
26502
|
+
for (const banner of banners) {
|
|
26503
|
+
const accept = [];
|
|
26504
|
+
const reject = [];
|
|
26505
|
+
walkSerialized([banner], (n, ancestors) => {
|
|
26506
|
+
const row = ancestors[ancestors.length - 1] ?? null;
|
|
26507
|
+
if (runs(n, ConsentActionType.Grant))
|
|
26508
|
+
accept.push({ node: n, row });
|
|
26509
|
+
if (runs(n, ConsentActionType.Deny))
|
|
26510
|
+
reject.push({ node: n, row });
|
|
26511
|
+
});
|
|
26512
|
+
const weaker = !reject.length || reject.every(r => LINK_LIKE.has(r.node.type)
|
|
26513
|
+
|| !accept.some(a => a.node.type === r.node.type && a.row === r.row));
|
|
26514
|
+
if (weaker) {
|
|
26515
|
+
add(ctx, SiteFindingCode.ConsentRejectWeaker, !reject.length
|
|
26516
|
+
? 'The cookie banner has no Reject beside Accept — refusing must be as easy as accepting.'
|
|
26517
|
+
: 'The cookie banner\'s Reject is weaker than its Accept — make it the same kind of button, on the same row.', { owner: 'footer', nodeId: banner.id });
|
|
26518
|
+
}
|
|
26519
|
+
}
|
|
26520
|
+
if (!banners.length)
|
|
26521
|
+
return;
|
|
26522
|
+
const inBanner = new Set();
|
|
26523
|
+
for (const b of banners)
|
|
26524
|
+
walkSerialized([b], n => inBanner.add(n.id));
|
|
26525
|
+
// The preferences dialogs the banners open are part of the choice too, not a way back to it.
|
|
26526
|
+
const prefs = new Set();
|
|
26527
|
+
for (const b of banners)
|
|
26528
|
+
walkSerialized([b], n => {
|
|
26529
|
+
for (const a of actionsOf(n))
|
|
26530
|
+
if (a.type === ConsentActionType.OpenPreferences && a.target)
|
|
26531
|
+
prefs.add(a.target);
|
|
26532
|
+
});
|
|
26533
|
+
for (const g of snapshot.globals)
|
|
26534
|
+
if (prefs.has(g.id))
|
|
26535
|
+
walkSerialized([g], n => inBanner.add(n.id));
|
|
26536
|
+
let reopens = false;
|
|
26537
|
+
eachNode(snapshot, snapshot.pages, n => { if (!inBanner.has(n.id) && runs(n, ConsentActionType.OpenPreferences))
|
|
26538
|
+
reopens = true; });
|
|
26539
|
+
if (!reopens)
|
|
26540
|
+
add(ctx, SiteFindingCode.NoCookieSettings, 'Nothing on the site reopens the cookie choice — add Cookie settings to the footer so visitors can change their mind.');
|
|
26101
26541
|
}
|
|
26102
26542
|
function checkSeo(ctx, pages) {
|
|
26103
26543
|
for (const page of pages) {
|
|
@@ -26137,16 +26577,70 @@ function checkFacts(ctx, snapshot, pages, personal) {
|
|
|
26137
26577
|
add(ctx, SiteFindingCode.MadePicture, 'A picture made with AI stands in for one of yours.', { pageId: s.pageId, nodeId: s.nodeId, owner: s.owner });
|
|
26138
26578
|
for (const s of (snapshot.missing ?? []).filter(inScope))
|
|
26139
26579
|
add(ctx, SiteFindingCode.PictureMissing, 'A picture could not be made for this spot — add one of yours.', { pageId: s.pageId, nodeId: s.nodeId, owner: s.owner });
|
|
26140
|
-
|
|
26141
|
-
|
|
26142
|
-
|
|
26143
|
-
|
|
26144
|
-
|
|
26145
|
-
|
|
26146
|
-
|
|
26580
|
+
checkLegalPages(ctx, snapshot, pages, personal);
|
|
26581
|
+
if (personal && !legalPageOf(snapshot.pages, LegalKind.Privacy)) {
|
|
26582
|
+
add(ctx, SiteFindingCode.NoPrivacyPage, 'A form asks for personal details, and the site has no privacy page saying what you do with them.');
|
|
26583
|
+
}
|
|
26584
|
+
}
|
|
26585
|
+
const isIsraeli = (snapshot) => String(snapshot.country ?? '').trim().toUpperCase() === ISRAEL;
|
|
26586
|
+
/** Israel requires an accessibility statement; a Hebrew site elsewhere is expected to carry one. */
|
|
26587
|
+
const wantsAccessibilityStatement = (snapshot) => isIsraeli(snapshot) || snapshot.locale === HEBREW;
|
|
26588
|
+
/**
|
|
26589
|
+
* "Block new, warn old" (Doron, 2026-11-20): is this a site the generator built WITH the law? Read from what is STORED,
|
|
26590
|
+
* never a date: a site-build run that carried the AW1 legal context (`legalBuilt`), or a page that says its legal kind
|
|
26591
|
+
* (`pageSettings.legal` — only AW1's composer writes it). Such a site is held until its accessibility statement is
|
|
26592
|
+
* written; a site that existed before is warned only.
|
|
26593
|
+
*/
|
|
26594
|
+
function siteBuiltWithLaw(snapshot) {
|
|
26595
|
+
return snapshot.legalBuilt === true || snapshot.pages.some(p => isLegalKind(p.legal));
|
|
26596
|
+
}
|
|
26597
|
+
/** The site's page of a legal kind: the one that says so, else (a hand-built site) one whose name or route says it. */
|
|
26598
|
+
function legalPageOf(pages, kind) {
|
|
26599
|
+
const word = HAND_BUILT_LEGAL[kind];
|
|
26600
|
+
return pages.find(p => p.legal === kind) ?? (word ? pages.find(p => !isLegalKind(p.legal) && (word.test(p.route) || word.test(p.name))) : undefined);
|
|
26601
|
+
}
|
|
26602
|
+
/** The kind a page is to the gate: what it says, else the hand-built word its name or route carries. */
|
|
26603
|
+
function legalKindOfAudited(page) {
|
|
26604
|
+
if (isLegalKind(page.legal))
|
|
26605
|
+
return page.legal;
|
|
26606
|
+
for (const [kind, word] of Object.entries(HAND_BUILT_LEGAL))
|
|
26607
|
+
if (word.test(page.route) || word.test(page.name))
|
|
26608
|
+
return kind;
|
|
26609
|
+
return null;
|
|
26610
|
+
}
|
|
26611
|
+
/**
|
|
26612
|
+
* AW1: a legal page that still shows what belongs there holds Publish — only the owner can write it (D-C7). The page
|
|
26613
|
+
* itself, and every publish a law ties to it: a page with a personal-data form needs its privacy page written, and an
|
|
26614
|
+
* Israeli site's every page needs its accessibility statement.
|
|
26615
|
+
*/
|
|
26616
|
+
function checkLegalPages(ctx, snapshot, pages, personal) {
|
|
26617
|
+
const open = (snapshot.placeholders ?? []).filter(p => !p.filled && p.pageId);
|
|
26618
|
+
const built = siteBuiltWithLaw(snapshot);
|
|
26619
|
+
const tied = [
|
|
26620
|
+
personal ? legalPageOf(snapshot.pages, LegalKind.Privacy) : undefined,
|
|
26621
|
+
built && wantsAccessibilityStatement(snapshot) ? legalPageOf(snapshot.pages, LegalKind.Accessibility) : undefined,
|
|
26622
|
+
];
|
|
26623
|
+
const judged = [...new Set([...pages, ...tied.filter((p) => !!p)])];
|
|
26624
|
+
for (const page of judged) {
|
|
26625
|
+
const kind = legalKindOfAudited(page);
|
|
26626
|
+
if (!kind || !legalKindBlocks(kind) || !open.some(p => p.pageId === page.id))
|
|
26627
|
+
continue;
|
|
26628
|
+
// Warn old: a site from before the law is never held by its accessibility statement.
|
|
26629
|
+
if (kind === LegalKind.Accessibility && !built)
|
|
26630
|
+
continue;
|
|
26631
|
+
add(ctx, SiteFindingCode.LegalPagePlaceholder, `"${page.name || legalTitle(kind, snapshot.locale)}" still says what belongs there — only you can write it.`, { pageId: page.id, legal: kind });
|
|
26147
26632
|
}
|
|
26148
26633
|
}
|
|
26149
26634
|
function checkAccessibility(ctx, snapshot, pages) {
|
|
26635
|
+
// AW1 (AW-D14): Israel requires an accessibility statement; a Hebrew site elsewhere is expected to carry one. Block
|
|
26636
|
+
// new, warn old: only a site built with the law is held (`siteBuiltWithLaw`).
|
|
26637
|
+
if (wantsAccessibilityStatement(snapshot) && !legalPageOf(snapshot.pages, LegalKind.Accessibility)) {
|
|
26638
|
+
const why = isIsraeli(snapshot) ? 'Israel requires one' : 'a Hebrew site is expected to carry one';
|
|
26639
|
+
if (siteBuiltWithLaw(snapshot))
|
|
26640
|
+
add(ctx, SiteFindingCode.NoAccessibilityStatement, `The site has no accessibility statement — ${why}. Add a page for it and write what is accessible and who to contact.`);
|
|
26641
|
+
else
|
|
26642
|
+
add(ctx, SiteFindingCode.AccessibilityStatementAdvised, `The site has no accessibility statement — ${why}. Add a page for it.`);
|
|
26643
|
+
}
|
|
26150
26644
|
for (const mode of snapshot.design?.modes ?? []) {
|
|
26151
26645
|
const failing = auditDesignContrast(snapshot.design.rows, mode).filter(f => !f.pass);
|
|
26152
26646
|
if (failing.length)
|
|
@@ -30218,9 +30712,13 @@ function siteTreeOf(studio) {
|
|
|
30218
30712
|
};
|
|
30219
30713
|
}
|
|
30220
30714
|
const layout = page.layout ?? [];
|
|
30715
|
+
// A page the build made that is not one of its plan's pages (AW1's stamped legal pages) is still the build's:
|
|
30716
|
+
// drawn from its layout, Built — or Edited, by the same fingerprints (an edited legal page is kept by Undo).
|
|
30717
|
+
const known = !!run && Array.isArray(run.edited);
|
|
30221
30718
|
return {
|
|
30222
30719
|
...base, sections: layout.map(handSection), data: handData(layout, studio, label),
|
|
30223
|
-
maker: source?.runId ? SitePageMaker.
|
|
30720
|
+
maker: !source?.runId ? SitePageMaker.Owner : known && run.edited.includes(page._id) ? SitePageMaker.Edited : SitePageMaker.Built,
|
|
30721
|
+
...(run ? { editsKnown: known, builtAt: run.finishedAt ?? null } : {}), items: null,
|
|
30224
30722
|
};
|
|
30225
30723
|
});
|
|
30226
30724
|
const nested = nestSitePages(nodes);
|
|
@@ -30268,5 +30766,5 @@ function siteGlobalsOf(globals) {
|
|
|
30268
30766
|
* Generated bundle index. Do not edit.
|
|
30269
30767
|
*/
|
|
30270
30768
|
|
|
30271
|
-
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_TOKEN, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LIST_CARD_PART, LIST_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, PublishScope, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, checkFooter, checkHeader, checkLayout, checkList, chooseScrim, composablePage, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnFooterMix, drawnHeaderMix, driftAt, driftOverlap, editedPageIds, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, frameWords, generationTierOf, headerContextOfPlan, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerTokenOf, headerTokenWords, headerWireWords, headerWords, isActiveBuild, isLayoutRule, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRtlLocale, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBinding, layoutListShapes, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, listBuiltWords, listIngredientWords, listMeaning, listNeverIsEmpty, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendLayout, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, namedFooterMix, namedHeaderMix, navPages, navShapeBreakpoint, navShapeOf, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, orientationOfRatio, ownPhotoFit, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, pricesIn, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionTokenOf, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteGlobalsOf, siteNavPages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, startComposingShare, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, tierOf, tierOffers, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
|
|
30769
|
+
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, MAX_SITE_PICTURES, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, PERSONAL_CONTROLS, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, PublishScope, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, checkFooter, checkHeader, checkLayout, checkList, chooseScrim, composablePage, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnFooterMix, drawnHeaderMix, driftAt, driftOverlap, editedPageIds, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, headerContextOfPlan, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerTokenOf, headerTokenWords, headerWireWords, headerWords, isActiveBuild, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRtlLocale, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBinding, layoutListShapes, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBuiltWords, listIngredientWords, listMeaning, listNeverIsEmpty, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendLayout, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, namedFooterMix, namedHeaderMix, navPages, navShapeBreakpoint, navShapeOf, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, orientationOfRatio, ownPhotoFit, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, pricesIn, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionTokenOf, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteGlobalsOf, siteNavPages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, startComposingShare, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, tierOf, tierOffers, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
|
|
30272
30770
|
//# sourceMappingURL=vectoriox-iox-ui-generation-core.mjs.map
|