@vectoriox/iox-ui 5.141.0 → 5.142.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/design-core/index.d.ts +171 -2
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +358 -172
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1205 -591
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +49 -18
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +69 -4
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +464 -144
- package/harness-core/index.d.ts +18 -18
- package/index.d.ts +71 -2
- package/package.json +1 -1
- package/src/design-core/flavor-spec.generated.ts +141 -0
- package/src/design-core/ink-on-ground.ts +36 -0
- package/src/design-core/list-classes.ts +37 -0
- package/src/design-core/node-classes.ts +3 -2
- package/src/design-core/public-api.ts +2 -0
- package/src/generation-core/check-layout.ts +4 -1
- package/src/generation-core/check-list.ts +144 -5
- package/src/generation-core/compose-layout.ts +164 -19
- package/src/generation-core/compose-site.ts +8 -2
- package/src/generation-core/layout-fingerprint.ts +5 -1
- package/src/generation-core/layout-language.ts +5 -0
- package/src/generation-core/layout-wire.ts +64 -24
- package/src/generation-core/list-panel.ts +122 -0
- package/src/generation-core/list-space.ts +54 -1
- package/src/generation-core/list-table.ts +101 -0
- package/src/generation-core/node-baselines.generated.ts +3 -1
- package/src/generation-core/public-api.ts +1 -0
- package/src/generation-core/serialized-node.ts +2 -0
- package/src/generation-core/site-plan.model.ts +6 -0
- package/src/generation-core/site-spec.generated.ts +188 -70
- package/src/generation-core/validate-site-plan.ts +8 -4
- package/src/harness-core/harness-spec.generated.ts +49 -18
- package/styles/iox-design.css +376 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, elementStyleById, ownedTraitsOf, applyElementStyle, SPEC_AXES, QUIET_MOVE, QUIET_LEVELS, EntranceParam, staggerDelay, ScrubId, stylePresetOfChoices, resolveDesignChoices, presetModes, STYLE_PRESETS, presetChoices, textWidthEm, elementStyleFace, toHexColor, relativeLuminance, sectionEdgeClass, SECTION_EDGE_TYPES, colorSchemeOf, planSectionShape, SectionShape, setSectionShape, sectionShapeOf, setSectionEdge, resolveTokenValues, designTokenRows, parseCssColour, scrubOfChoices, parseHexColor, rgbToOklab, LinkType, MenuTrait, menuDialogProps, MenuButtonKind, menuButtonOf, menuButtonProps, HeaderTrait, menuFormOf, MenuForm, MenuPhoneForm, menuHoverOf, menuRevealOf, flavorPackById, ARRIVE_IDS, MOVE_IDS, PRELOADER_IDS, SCRUB_IDS, setColorScheme, ColorScheme, COLOR_SCHEMES, motionLanguageForPlan, headerInkOf, DEFAULT_MENU_LOOK, COLOR_SCHEME_TRAIT, colorSchemeClass, readDesignConfig, ANIMATE_IDS, auditDesignContrast, compositeOver, wcagContrastRatio,
|
|
1
|
+
import { NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, elementStyleById, ownedTraitsOf, applyElementStyle, SPEC_AXES, QUIET_MOVE, QUIET_LEVELS, EntranceParam, staggerDelay, ScrubId, stylePresetOfChoices, resolveDesignChoices, presetModes, STYLE_PRESETS, presetChoices, textWidthEm, elementStyleFace, toHexColor, relativeLuminance, sectionEdgeClass, SECTION_EDGE_TYPES, colorSchemeOf, planSectionShape, SectionShape, setSectionShape, sectionShapeOf, setSectionEdge, resolveTokenValues, designTokenRows, parseCssColour, scrubOfChoices, parseHexColor, rgbToOklab, LinkType, MenuTrait, menuDialogProps, MenuButtonKind, menuButtonOf, menuButtonProps, HeaderTrait, menuFormOf, MenuForm, MenuPhoneForm, menuHoverOf, menuRevealOf, flavorPackById, ARRIVE_IDS, MOVE_IDS, PRELOADER_IDS, SCRUB_IDS, isScrubId, setColorScheme, LIST_MIX_PROP, ColorScheme, COLOR_SCHEMES, motionLanguageForPlan, headerInkOf, DEFAULT_MENU_LOOK, COLOR_SCHEME_TRAIT, colorSchemeClass, readDesignConfig, ANIMATE_IDS, auditDesignContrast, compositeOver, wcagContrastRatio, HeaderBehaviour, headerBehaviourOf, headerEdgeOf } from '@vectoriox/iox-ui/design-core';
|
|
2
2
|
export { HeaderInk } from '@vectoriox/iox-ui/design-core';
|
|
3
|
-
import { SLIDER_TYPE, badgeToneOf, isAnyCompositeRoot, MarqueeRole, NO_ELEMENT_STYLE, ShopRole, AccountRole, pickTabsAutoBinds, pickAccordionAutoBinds, CardPart, SLIDER_PLACEMENT_TRAIT, SliderPlacement, syncSliderParts, SliderRole, CardLayout, buildCardRecipe, findByRole, CardRole, SHOP_RECIPES, ShopRecipe, bindShopPart, ShopBindTarget, 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, ACCOUNT_RECIPES, AccountRecipe, buildCarouselRecipe, SLIDE_TYPE, buildSlideshowRecipe, buildLightboxRecipe, LIGHTBOX_LABEL, SLIDE_TO_ROW, setHeaderBehaviour, setHeaderInk, buildConsentRecipe, ConsentActionType } from '@vectoriox/iox-ui/composite-core';
|
|
3
|
+
import { SLIDER_TYPE, badgeToneOf, isAnyCompositeRoot, MarqueeRole, NO_ELEMENT_STYLE, ShopRole, AccountRole, pickTabsAutoBinds, pickAccordionAutoBinds, CardPart, SLIDER_PLACEMENT_TRAIT, SliderPlacement, syncSliderParts, SliderRole, CardLayout, buildCardRecipe, findByRole, CardRole, SHOP_RECIPES, ShopRecipe, bindShopPart, ShopBindTarget, MarqueeDirection, MarqueeSpeed, buildMarqueeRecipe, setMarqueeSettings, 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, ACCOUNT_RECIPES, AccountRecipe, buildCarouselRecipe, SLIDE_TYPE, buildSlideshowRecipe, buildLightboxRecipe, LIGHTBOX_LABEL, SLIDE_TO_ROW, setHeaderBehaviour, setHeaderInk, buildConsentRecipe, ConsentActionType } from '@vectoriox/iox-ui/composite-core';
|
|
4
4
|
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';
|
|
5
5
|
import { normalizeFrameSequence, filmScreensFor, FILM_PREPARED_PICTURES, FrameExtension } from '@vectoriox/iox-ui/media-core';
|
|
6
6
|
import { SEO_DESCRIPTION_MAX, SEO_TITLE_MAX } from '@vectoriox/iox-ui/seo-core';
|
|
@@ -109,7 +109,8 @@ const SPEC_SITE_PLAN_SHAPE = {
|
|
|
109
109
|
"icon?": "string — a field: an icon name",
|
|
110
110
|
"quote?": "string — a field: someone's words",
|
|
111
111
|
"person?": "string — a field: who said or made it",
|
|
112
|
-
"link?": "string — a field: where the item leads (a route or an address)"
|
|
112
|
+
"link?": "string — a field: where the item leads (a route or an address)",
|
|
113
|
+
"colour?": "string — a field: its own colour, a hex (a colour block's ground)"
|
|
113
114
|
},
|
|
114
115
|
"field": {
|
|
115
116
|
"name": "string — unique in the type",
|
|
@@ -215,6 +216,7 @@ const SPEC_SITE_ROLES = {
|
|
|
215
216
|
"quote": "someone's words — a testimonial or a story's line, shown in quotation marks",
|
|
216
217
|
"person": "who said or made it — a name (their role or place goes in meta)",
|
|
217
218
|
"link": "where the item leads — its own page or an address; the card's arrow goes there",
|
|
219
|
+
"colour": "its own colour (a hex) — the ground of its block; the words on it are chosen to read",
|
|
218
220
|
"price": "its price — the shop's own field, shown through the money pipe in the studio currency",
|
|
219
221
|
"compareAt": "its earlier price, struck through beside the price (the shop's own field)"
|
|
220
222
|
};
|
|
@@ -7450,71 +7452,90 @@ const SPEC_SITE_LAYOUT = {
|
|
|
7450
7452
|
"hover.tilt": "the card's ground turns, its content settles smaller",
|
|
7451
7453
|
"arrive.clip-up": "each card opens from its bottom edge, its content rising inside"
|
|
7452
7454
|
},
|
|
7453
|
-
"waits": {
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
"item.
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
|
|
7462
|
-
"
|
|
7463
|
-
|
|
7464
|
-
|
|
7465
|
-
|
|
7466
|
-
"
|
|
7467
|
-
|
|
7468
|
-
|
|
7469
|
-
|
|
7470
|
-
"
|
|
7471
|
-
|
|
7472
|
-
|
|
7473
|
-
|
|
7474
|
-
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
|
|
7480
|
-
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
|
|
7487
|
-
|
|
7488
|
-
|
|
7489
|
-
|
|
7490
|
-
|
|
7491
|
-
|
|
7492
|
-
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
|
|
7496
|
-
|
|
7497
|
-
|
|
7498
|
-
|
|
7499
|
-
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
"
|
|
7507
|
-
|
|
7508
|
-
|
|
7509
|
-
|
|
7510
|
-
|
|
7511
|
-
|
|
7512
|
-
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7455
|
+
"waits": {},
|
|
7456
|
+
"belowPro": {
|
|
7457
|
+
"item.title-on-photo": "photo",
|
|
7458
|
+
"item.packshot": "card",
|
|
7459
|
+
"item.colour-block": "card",
|
|
7460
|
+
"item.numbered": "card",
|
|
7461
|
+
"arrange.hang": "masonry",
|
|
7462
|
+
"arrange.bento": "grid",
|
|
7463
|
+
"arrange.rows": "grid",
|
|
7464
|
+
"arrange.stage": "grid",
|
|
7465
|
+
"arrange.fan": "row",
|
|
7466
|
+
"arrange.tilted": "grid",
|
|
7467
|
+
"move.rows": "auto",
|
|
7468
|
+
"hover.swap": "zoom",
|
|
7469
|
+
"hover.unveil": "zoom",
|
|
7470
|
+
"hover.fill": null,
|
|
7471
|
+
"hover.tilt": "rise",
|
|
7472
|
+
"arrive.clip-up": "one-by-one"
|
|
7473
|
+
},
|
|
7474
|
+
"rhythms": {
|
|
7475
|
+
"hang": [
|
|
7476
|
+
{
|
|
7477
|
+
"span": 5,
|
|
7478
|
+
"drop": 0,
|
|
7479
|
+
"ratio": "4 / 5"
|
|
7480
|
+
},
|
|
7481
|
+
{
|
|
7482
|
+
"span": 4,
|
|
7483
|
+
"drop": 48,
|
|
7484
|
+
"ratio": "1 / 1"
|
|
7485
|
+
},
|
|
7486
|
+
{
|
|
7487
|
+
"span": 3,
|
|
7488
|
+
"drop": 16,
|
|
7489
|
+
"ratio": "3 / 4"
|
|
7490
|
+
},
|
|
7491
|
+
{
|
|
7492
|
+
"span": 3,
|
|
7493
|
+
"start": 2,
|
|
7494
|
+
"drop": 8,
|
|
7495
|
+
"ratio": "1 / 1"
|
|
7496
|
+
},
|
|
7497
|
+
{
|
|
7498
|
+
"span": 4,
|
|
7499
|
+
"drop": 0,
|
|
7500
|
+
"ratio": "3 / 4"
|
|
7501
|
+
},
|
|
7502
|
+
{
|
|
7503
|
+
"span": 4,
|
|
7504
|
+
"drop": 30,
|
|
7505
|
+
"ratio": "4 / 5"
|
|
7506
|
+
}
|
|
7507
|
+
],
|
|
7508
|
+
"bento": [
|
|
7509
|
+
3,
|
|
7510
|
+
5,
|
|
7511
|
+
7
|
|
7512
|
+
],
|
|
7513
|
+
"tilt": [
|
|
7514
|
+
-1,
|
|
7515
|
+
0.6,
|
|
7516
|
+
-0.4,
|
|
7517
|
+
1
|
|
7518
|
+
],
|
|
7519
|
+
"tiltMaxDeg": 4,
|
|
7520
|
+
"fanRadius": 1.7,
|
|
7521
|
+
"hoverTiltDeg": 2.5,
|
|
7522
|
+
"hoverSettle": 0.97,
|
|
7523
|
+
"clipUpRise": 22,
|
|
7524
|
+
"numberBehindInk": 0.1,
|
|
7525
|
+
"colourRamp": [
|
|
7526
|
+
{
|
|
7527
|
+
"ground": "accent",
|
|
7528
|
+
"ink": "accent-ink"
|
|
7529
|
+
},
|
|
7530
|
+
{
|
|
7531
|
+
"ground": "surface-2",
|
|
7532
|
+
"ink": "text"
|
|
7533
|
+
},
|
|
7534
|
+
{
|
|
7535
|
+
"ground": "inverse-bg",
|
|
7536
|
+
"ink": "inverse-text"
|
|
7537
|
+
}
|
|
7538
|
+
]
|
|
7518
7539
|
},
|
|
7519
7540
|
"tiers": {
|
|
7520
7541
|
"item.photo": "all",
|
|
@@ -7552,6 +7573,7 @@ const SPEC_SITE_LAYOUT = {
|
|
|
7552
7573
|
"rules.onlyRow": "all",
|
|
7553
7574
|
"rules.moving": "all",
|
|
7554
7575
|
"rules.neverSwipe": "all",
|
|
7576
|
+
"rules.alone": "all",
|
|
7555
7577
|
"item.title-on-photo": "pro",
|
|
7556
7578
|
"item.packshot": "pro",
|
|
7557
7579
|
"item.colour-block": "pro",
|
|
@@ -7567,7 +7589,19 @@ const SPEC_SITE_LAYOUT = {
|
|
|
7567
7589
|
"hover.unveil": "pro",
|
|
7568
7590
|
"hover.fill": "pro",
|
|
7569
7591
|
"hover.tilt": "pro",
|
|
7570
|
-
"arrive.clip-up": "pro"
|
|
7592
|
+
"arrive.clip-up": "pro",
|
|
7593
|
+
"rules.counts": "pro",
|
|
7594
|
+
"rules.bento": "pro",
|
|
7595
|
+
"rules.fanDragFrom": "pro",
|
|
7596
|
+
"rules.leaning": "pro",
|
|
7597
|
+
"rules.pictured": "pro",
|
|
7598
|
+
"rules.secondPicture": "pro",
|
|
7599
|
+
"rules.still": "pro",
|
|
7600
|
+
"rules.titleOnPhotoWords": "pro",
|
|
7601
|
+
"rules.rowsStandout": "pro",
|
|
7602
|
+
"rules.notFirstScreen": "pro",
|
|
7603
|
+
"rules.onlyPictures": "pro",
|
|
7604
|
+
"rules.middle": "pro"
|
|
7571
7605
|
},
|
|
7572
7606
|
"defaults": {
|
|
7573
7607
|
"item": "card",
|
|
@@ -7766,7 +7800,8 @@ const SPEC_SITE_LAYOUT = {
|
|
|
7766
7800
|
"middle"
|
|
7767
7801
|
],
|
|
7768
7802
|
"move": [
|
|
7769
|
-
"page"
|
|
7803
|
+
"page",
|
|
7804
|
+
"rows"
|
|
7770
7805
|
]
|
|
7771
7806
|
},
|
|
7772
7807
|
"moving": [
|
|
@@ -7775,8 +7810,91 @@ const SPEC_SITE_LAYOUT = {
|
|
|
7775
7810
|
],
|
|
7776
7811
|
"neverSwipe": [
|
|
7777
7812
|
"grid",
|
|
7778
|
-
"masonry"
|
|
7779
|
-
|
|
7813
|
+
"masonry",
|
|
7814
|
+
"hang",
|
|
7815
|
+
"bento",
|
|
7816
|
+
"rows",
|
|
7817
|
+
"tilted"
|
|
7818
|
+
],
|
|
7819
|
+
"alone": [
|
|
7820
|
+
"page",
|
|
7821
|
+
"rows"
|
|
7822
|
+
],
|
|
7823
|
+
"counts": {
|
|
7824
|
+
"hang": [
|
|
7825
|
+
5,
|
|
7826
|
+
12
|
|
7827
|
+
],
|
|
7828
|
+
"stage": [
|
|
7829
|
+
3,
|
|
7830
|
+
10
|
|
7831
|
+
],
|
|
7832
|
+
"fan": [
|
|
7833
|
+
3,
|
|
7834
|
+
9
|
|
7835
|
+
],
|
|
7836
|
+
"tilted": [
|
|
7837
|
+
3,
|
|
7838
|
+
9
|
|
7839
|
+
],
|
|
7840
|
+
"rows": [
|
|
7841
|
+
3,
|
|
7842
|
+
12
|
|
7843
|
+
]
|
|
7844
|
+
},
|
|
7845
|
+
"bento": [
|
|
7846
|
+
3,
|
|
7847
|
+
5,
|
|
7848
|
+
7
|
|
7849
|
+
],
|
|
7850
|
+
"fanDragFrom": 5,
|
|
7851
|
+
"leaning": [
|
|
7852
|
+
"fan",
|
|
7853
|
+
"tilted"
|
|
7854
|
+
],
|
|
7855
|
+
"pictured": {
|
|
7856
|
+
"arrange": [
|
|
7857
|
+
"hang",
|
|
7858
|
+
"stage"
|
|
7859
|
+
],
|
|
7860
|
+
"item": [
|
|
7861
|
+
"title-on-photo",
|
|
7862
|
+
"packshot"
|
|
7863
|
+
],
|
|
7864
|
+
"hover": [
|
|
7865
|
+
"fill"
|
|
7866
|
+
]
|
|
7867
|
+
},
|
|
7868
|
+
"secondPicture": {
|
|
7869
|
+
"hover": [
|
|
7870
|
+
"swap",
|
|
7871
|
+
"unveil"
|
|
7872
|
+
]
|
|
7873
|
+
},
|
|
7874
|
+
"still": {
|
|
7875
|
+
"hover": [
|
|
7876
|
+
"tilt"
|
|
7877
|
+
]
|
|
7878
|
+
},
|
|
7879
|
+
"titleOnPhotoWords": 6,
|
|
7880
|
+
"middle": [
|
|
7881
|
+
"row",
|
|
7882
|
+
"fan"
|
|
7883
|
+
],
|
|
7884
|
+
"rowsStandout": {
|
|
7885
|
+
"who": "pointed",
|
|
7886
|
+
"how": "brighter"
|
|
7887
|
+
},
|
|
7888
|
+
"notFirstScreen": {
|
|
7889
|
+
"arrive": [
|
|
7890
|
+
"clip-up"
|
|
7891
|
+
]
|
|
7892
|
+
},
|
|
7893
|
+
"onlyPictures": {
|
|
7894
|
+
"move": [
|
|
7895
|
+
"rows"
|
|
7896
|
+
]
|
|
7897
|
+
}
|
|
7780
7898
|
}
|
|
7781
7899
|
},
|
|
7782
7900
|
"header": {
|
|
@@ -11845,7 +11963,8 @@ const NODE_BASELINES = {
|
|
|
11845
11963
|
"marqueeFade",
|
|
11846
11964
|
"marqueePauseOnHover",
|
|
11847
11965
|
"seam",
|
|
11848
|
-
"sectionShape"
|
|
11966
|
+
"sectionShape",
|
|
11967
|
+
"listMix"
|
|
11849
11968
|
],
|
|
11850
11969
|
"styleTraits": [
|
|
11851
11970
|
"position",
|
|
@@ -14390,6 +14509,7 @@ const NODE_BASELINES = {
|
|
|
14390
14509
|
"__effectsLabel",
|
|
14391
14510
|
"effect",
|
|
14392
14511
|
"speed",
|
|
14512
|
+
"creativePreset",
|
|
14393
14513
|
"scrollPlays",
|
|
14394
14514
|
"__navLabel",
|
|
14395
14515
|
"controlsPlacement",
|
|
@@ -16734,6 +16854,9 @@ var ContentFieldControl;
|
|
|
16734
16854
|
ContentFieldControl["List"] = "list";
|
|
16735
16855
|
ContentFieldControl["Number"] = "number";
|
|
16736
16856
|
ContentFieldControl["Switch"] = "switch";
|
|
16857
|
+
/** AW11-D10: the item's own colour (a colour block's ground) — the admin's colour picker; a hex is drawn, a token or
|
|
16858
|
+
* a gradient leaves the look's ramp in place. */
|
|
16859
|
+
ContentFieldControl["Colour"] = "colorPicker";
|
|
16737
16860
|
})(ContentFieldControl || (ContentFieldControl = {}));
|
|
16738
16861
|
/** How a field is stored. The schema editor's and the item editor's own list: anything else renders no input. */
|
|
16739
16862
|
var ContentFieldType;
|
|
@@ -16752,6 +16875,7 @@ const FIELD_TYPE_OF_CONTROL = {
|
|
|
16752
16875
|
[ContentFieldControl.List]: ContentFieldType.Array,
|
|
16753
16876
|
[ContentFieldControl.Number]: ContentFieldType.Number,
|
|
16754
16877
|
[ContentFieldControl.Switch]: ContentFieldType.Boolean,
|
|
16878
|
+
[ContentFieldControl.Colour]: ContentFieldType.String,
|
|
16755
16879
|
};
|
|
16756
16880
|
/** The part a field plays (contract `site.roles`, AI plan L0-3): what a pattern binds instead of a field name, so one
|
|
16757
16881
|
* card grid shows projects, services or a menu. `title` is required on every type. */
|
|
@@ -16773,6 +16897,8 @@ var ContentRole;
|
|
|
16773
16897
|
ContentRole["Person"] = "person";
|
|
16774
16898
|
/** LI0: where the item leads — its own page or an address. */
|
|
16775
16899
|
ContentRole["Link"] = "link";
|
|
16900
|
+
/** AW11-D10: its own colour (a hex) — a colour block's ground; the ink on it is chosen when the page is drawn. */
|
|
16901
|
+
ContentRole["Colour"] = "colour";
|
|
16776
16902
|
/** Commerce C-D21: the shop's own price — played only by the shop's fields (`SHOP_ROLES`), never a content type's. */
|
|
16777
16903
|
ContentRole["Price"] = "price";
|
|
16778
16904
|
/** Commerce C-D21: the shop's earlier price, struck through. */
|
|
@@ -19583,6 +19709,61 @@ function listBuiltWords(k) {
|
|
|
19583
19709
|
function listMeaning(k, word) {
|
|
19584
19710
|
return MEANINGS$2[`${k}.${word}`] ?? word;
|
|
19585
19711
|
}
|
|
19712
|
+
// ── AW11 (award-ingredients-plan.md §7.1f, board award-lists): the award tier, the rhythms, what each word needs ─────
|
|
19713
|
+
/** AW-D23: a word every plan wears (`all`) or the award tier's alone (`pro`). */
|
|
19714
|
+
function listWordTier(k, word) {
|
|
19715
|
+
return LIST_TABLE.tiers[`${k}.${word}`] === 'pro' ? 'pro' : 'all';
|
|
19716
|
+
}
|
|
19717
|
+
/** May a build at `tier` wear this word? (`award` wears every word; anything else the `all` ones.) */
|
|
19718
|
+
function listWordOffered(k, word, tier) {
|
|
19719
|
+
return listWordTier(k, word) === 'all' || tier === 'award';
|
|
19720
|
+
}
|
|
19721
|
+
/** The word a round-two word is drawn as below the award tier (null: left out), from the contract's `belowPro`. */
|
|
19722
|
+
function listBelowPro(k, word) {
|
|
19723
|
+
const stand = LIST_TABLE.belowPro[`${k}.${word}`];
|
|
19724
|
+
return stand === undefined ? undefined : stand;
|
|
19725
|
+
}
|
|
19726
|
+
/** The numbers the round-two arrangements are drawn with (the contract's `rhythms`, AW11-D3) — never the model's. */
|
|
19727
|
+
const LIST_RHYTHMS = LIST_TABLE.rhythms;
|
|
19728
|
+
/** The rules `checkList` holds, typed (the contract's `rules`). */
|
|
19729
|
+
const LIST_RULES = LIST_TABLE.rules;
|
|
19730
|
+
/** The largest bento fill a list of `items` can show without a hole (3, 5 or 7), or null under the smallest. */
|
|
19731
|
+
function bentoFill(items) {
|
|
19732
|
+
const fills = LIST_RULES.bento.filter(n => n <= items);
|
|
19733
|
+
return fills.length ? fills[fills.length - 1] : null;
|
|
19734
|
+
}
|
|
19735
|
+
/** Why a list cannot carry a word (R-H-AW11-7 — ONE table for the wire, the judge and Bindings ▸ List). */
|
|
19736
|
+
var ListWordRefusal;
|
|
19737
|
+
(function (ListWordRefusal) {
|
|
19738
|
+
/** The award tier's word, on a plan below it (AW-D23). */
|
|
19739
|
+
ListWordRefusal["ProOnly"] = "pro-only";
|
|
19740
|
+
/** The word shows a picture in every item, and the list has none. */
|
|
19741
|
+
ListWordRefusal["NoPictures"] = "no-pictures";
|
|
19742
|
+
/** The word shows a second picture (the gallery role), and the list has none (AW11-D12). */
|
|
19743
|
+
ListWordRefusal["NoSecondPicture"] = "no-second-picture";
|
|
19744
|
+
/** The business type's lists never take it (L-D12, AW11-D7). */
|
|
19745
|
+
ListWordRefusal["Never"] = "never";
|
|
19746
|
+
})(ListWordRefusal || (ListWordRefusal = {}));
|
|
19747
|
+
const inRule = (rule, k, w) => !!rule[k]?.includes(w);
|
|
19748
|
+
/**
|
|
19749
|
+
* Can this list carry this word — and if not, why (R-H-AW11-7)? The ONE answer the wire's offer, `checkList` and
|
|
19750
|
+
* Bindings ▸ List read: a word the list's data cannot carry is never offered, never picked. `shape` null: nothing is
|
|
19751
|
+
* known of the list (any word its tier allows). `tier` absent: no tier is judged (the judge's own tier step, the owner's
|
|
19752
|
+
* builder).
|
|
19753
|
+
*/
|
|
19754
|
+
function listWordRefusal(k, word, shape, tier, never) {
|
|
19755
|
+
if (tier !== undefined && tier !== null && !listWordOffered(k, word, tier))
|
|
19756
|
+
return ListWordRefusal.ProOnly;
|
|
19757
|
+
if (never && ((k === 'arrange' && never.arranges.includes(word)) || (k === 'move' && never.moves.includes(word))))
|
|
19758
|
+
return ListWordRefusal.Never;
|
|
19759
|
+
if (!shape)
|
|
19760
|
+
return null;
|
|
19761
|
+
if (inRule(LIST_RULES.pictured, k, word) && !shape.roles.includes('image'))
|
|
19762
|
+
return ListWordRefusal.NoPictures;
|
|
19763
|
+
if (inRule(LIST_RULES.secondPicture, k, word) && !shape.roles.includes('gallery'))
|
|
19764
|
+
return ListWordRefusal.NoSecondPicture;
|
|
19765
|
+
return null;
|
|
19766
|
+
}
|
|
19586
19767
|
|
|
19587
19768
|
/**
|
|
19588
19769
|
* THE LIST JUDGE (list-ingredients-plan.md §6, LI2; the demo's `checkMix`): one function for any mix of the seven
|
|
@@ -19592,6 +19773,9 @@ function listMeaning(k, word) {
|
|
|
19592
19773
|
*/
|
|
19593
19774
|
const R = SPEC_SITE_LAYOUT.list.rules;
|
|
19594
19775
|
const IMAGE$1 = 'image';
|
|
19776
|
+
const AWARD$1 = 'award';
|
|
19777
|
+
/** What a name set on its picture may show beside the picture: the name and a short detail (AW11-D8). */
|
|
19778
|
+
const TITLE_ON_PHOTO_PARTS$1 = new Set(['title', 'meta', 'date']);
|
|
19595
19779
|
const inList$1 = (values, v) => typeof v === 'string' && values.includes(v);
|
|
19596
19780
|
const enumValues = (e) => Object.values(e);
|
|
19597
19781
|
/** The words a refusal names: the DRAWN ones only — a refusal is the model's next turn, and a waiting word is never offered. */
|
|
@@ -19605,7 +19789,7 @@ const listNeverIsEmpty = (never) => !never || (!never.arranges.length && !never.
|
|
|
19605
19789
|
* Judge one list section's mix against the list it shows (`shape`, from `layoutListShapes`; null when the source is no
|
|
19606
19790
|
* list — the source check says that). `layer` is the layer's path (`sections[1].layers[0]`).
|
|
19607
19791
|
*/
|
|
19608
|
-
function checkList(mix, shape, layer, never) {
|
|
19792
|
+
function checkList(mix, shape, layer, never, options = {}) {
|
|
19609
19793
|
const at = `${layer}.gallery.list`;
|
|
19610
19794
|
const refused = [];
|
|
19611
19795
|
const refuse = (code, path, message) => refused.push({ code, path, message });
|
|
@@ -19658,6 +19842,29 @@ function checkList(mix, shape, layer, never) {
|
|
|
19658
19842
|
const drawn = next[k].map(w => { const stand = waiting(k, w); return stand === undefined ? w : stand; }).filter((w) => !!w);
|
|
19659
19843
|
next[k] = [...new Set(drawn)];
|
|
19660
19844
|
}
|
|
19845
|
+
// AW-D23: a round-two word on a site built below the award tier is drawn as its stand-in (the contract's belowPro).
|
|
19846
|
+
if (options.tier !== undefined && options.tier !== null && options.tier !== AWARD$1) {
|
|
19847
|
+
const below = (k, fallback) => {
|
|
19848
|
+
const stand = listBelowPro(k, next[k]);
|
|
19849
|
+
if (stand === undefined)
|
|
19850
|
+
return;
|
|
19851
|
+
repair(`${k} "${next[k]}" comes with the award plan: "${stand ?? fallback}" instead`);
|
|
19852
|
+
next[k] = stand ?? fallback;
|
|
19853
|
+
};
|
|
19854
|
+
below('item', LayoutListItem.Card);
|
|
19855
|
+
below('arrange', LayoutListArrange.Grid);
|
|
19856
|
+
below('arrive', LayoutListArrive.Together);
|
|
19857
|
+
for (const k of ['move', 'hover']) {
|
|
19858
|
+
const kept = next[k].flatMap(w => {
|
|
19859
|
+
const stand = listBelowPro(k, w);
|
|
19860
|
+
if (stand === undefined)
|
|
19861
|
+
return [w];
|
|
19862
|
+
repair(`${k} "${w}" comes with the award plan: ${stand ? `"${stand}" instead` : 'left out'}`);
|
|
19863
|
+
return stand ? [stand] : [];
|
|
19864
|
+
});
|
|
19865
|
+
next[k] = [...new Set(kept)];
|
|
19866
|
+
}
|
|
19867
|
+
}
|
|
19661
19868
|
const roles = shape.roles;
|
|
19662
19869
|
const pictured = roles.includes(IMAGE$1);
|
|
19663
19870
|
// What the items show: only what the list holds, each once.
|
|
@@ -19678,6 +19885,29 @@ function checkList(mix, shape, layer, never) {
|
|
|
19678
19885
|
next.parts = [IMAGE$1];
|
|
19679
19886
|
}
|
|
19680
19887
|
}
|
|
19888
|
+
// AW11: round-two items — each needs what it shows (one table: listWordRefusal).
|
|
19889
|
+
const itemRefusal = listWordRefusal('item', next.item, shape);
|
|
19890
|
+
if (itemRefusal === ListWordRefusal.NoPictures) {
|
|
19891
|
+
repair(`"${shape.alias}" has no pictures — ${listMeaning('item', next.item)} needs one: its items are cards`);
|
|
19892
|
+
next.item = LayoutListItem.Card;
|
|
19893
|
+
}
|
|
19894
|
+
if (next.item === LayoutListItem.TitleOnPhoto && (shape.titleWords ?? 0) > LIST_RULES.titleOnPhotoWords) {
|
|
19895
|
+
repair(`"${shape.alias}" has names of ${shape.titleWords} words — more than ${LIST_RULES.titleOnPhotoWords} would cover the picture: its items are cards`);
|
|
19896
|
+
next.item = LayoutListItem.Card;
|
|
19897
|
+
}
|
|
19898
|
+
if (next.item === LayoutListItem.Packshot && shape.plainPictures === false) {
|
|
19899
|
+
repair(`"${shape.alias}"'s pictures do not stand on a plain ground — a packshot needs one: its items are cards`);
|
|
19900
|
+
next.item = LayoutListItem.Card;
|
|
19901
|
+
}
|
|
19902
|
+
if (next.item === LayoutListItem.TitleOnPhoto) {
|
|
19903
|
+
const words = next.parts.filter(p => p === IMAGE$1 || TITLE_ON_PHOTO_PARTS$1.has(p));
|
|
19904
|
+
if (words.length !== next.parts.length) {
|
|
19905
|
+
repair('a name on its picture shows the picture, the name and a short detail only');
|
|
19906
|
+
next.parts = words;
|
|
19907
|
+
}
|
|
19908
|
+
if (!next.parts.includes(IMAGE$1))
|
|
19909
|
+
next.parts = [IMAGE$1, ...next.parts];
|
|
19910
|
+
}
|
|
19681
19911
|
// The arrangement first: what follows is judged against the one the list ends with.
|
|
19682
19912
|
if (next.arrange === LayoutListArrange.Strips && !pictured) {
|
|
19683
19913
|
repair('strips need a picture in every item — a still grid instead');
|
|
@@ -19693,6 +19923,36 @@ function checkList(mix, shape, layer, never) {
|
|
|
19693
19923
|
repair(`${why} — ${say(LayoutListArrange.Row)}`);
|
|
19694
19924
|
next.arrange = LayoutListArrange.Row;
|
|
19695
19925
|
}
|
|
19926
|
+
// AW11: round-two arrangements — pictures where they need them, the counts they are drawn at.
|
|
19927
|
+
const arrangeRefusal = listWordRefusal('arrange', next.arrange, shape);
|
|
19928
|
+
if (arrangeRefusal === ListWordRefusal.NoPictures) {
|
|
19929
|
+
return [{ code: LayoutIssueCode.Content, path: `${at}.arrange`, message: `${say(next.arrange)} needs a picture in every item — "${shape.alias}" has none; arrange it another way` }];
|
|
19930
|
+
}
|
|
19931
|
+
const count = LIST_RULES.counts[next.arrange];
|
|
19932
|
+
if (count && shape.items !== null) {
|
|
19933
|
+
const [fewest, most] = count;
|
|
19934
|
+
if (shape.items < fewest) {
|
|
19935
|
+
const instead = next.arrange === LayoutListArrange.Hang ? LayoutListArrange.Masonry : LayoutListArrange.Grid;
|
|
19936
|
+
repair(`${say(next.arrange)} needs ${fewest} items — "${shape.alias}" has ${shape.items}: ${say(instead)}`);
|
|
19937
|
+
next.arrange = instead;
|
|
19938
|
+
}
|
|
19939
|
+
else if (shape.items > most) {
|
|
19940
|
+
repair(`${say(next.arrange)} shows the first ${most} of "${shape.alias}"'s ${shape.items}, then the link to all of them`);
|
|
19941
|
+
}
|
|
19942
|
+
}
|
|
19943
|
+
if (next.arrange === LayoutListArrange.Bento && shape.items !== null) {
|
|
19944
|
+
const fill = bentoFill(shape.items);
|
|
19945
|
+
if (fill === null) {
|
|
19946
|
+
repair(`a bento needs ${LIST_RULES.bento[0]} items — ${say(LayoutListArrange.Grid)}`);
|
|
19947
|
+
next.arrange = LayoutListArrange.Grid;
|
|
19948
|
+
}
|
|
19949
|
+
else if (fill < shape.items) {
|
|
19950
|
+
repair(`a bento fits ${LIST_RULES.bento.join(', ')} — "${shape.alias}" has ${shape.items}, so it shows ${fill} and the link to all of them`);
|
|
19951
|
+
}
|
|
19952
|
+
}
|
|
19953
|
+
const tiltedText = next.arrange === LayoutListArrange.Tilted && next.item !== LayoutListItem.Photo ? shape.long.filter(role => next.parts.includes(role)) : [];
|
|
19954
|
+
if (tiltedText.length)
|
|
19955
|
+
repair(`its ${tiltedText.join(' and ')} run long — a turned card shows their first lines`);
|
|
19696
19956
|
const longShown = shape.long.filter(role => next.parts.includes(role));
|
|
19697
19957
|
if (longShown.length && next.arrange === LayoutListArrange.Grid) {
|
|
19698
19958
|
repair(`its ${longShown.join(' and ')} run long — a grid would cut them: ${say(LayoutListArrange.Masonry)}`);
|
|
@@ -19720,7 +19980,7 @@ function checkList(mix, shape, layer, never) {
|
|
|
19720
19980
|
delete next.standout;
|
|
19721
19981
|
}
|
|
19722
19982
|
else {
|
|
19723
|
-
if (has$1(R.onlyRow.who, next.standout.who) && !row) {
|
|
19983
|
+
if (has$1(R.onlyRow.who, next.standout.who) && !row && !has$1(LIST_RULES.middle ?? [], arrange)) {
|
|
19724
19984
|
repair(`"${next.standout.who}" is a row's — the first stands out`);
|
|
19725
19985
|
next.standout.who = LayoutListWho.First;
|
|
19726
19986
|
}
|
|
@@ -19730,13 +19990,29 @@ function checkList(mix, shape, layer, never) {
|
|
|
19730
19990
|
}
|
|
19731
19991
|
}
|
|
19732
19992
|
}
|
|
19993
|
+
if (arrange === LayoutListArrange.Rows && next.standout && (next.standout.who !== LIST_RULES.rowsStandout.who || next.standout.how !== LIST_RULES.rowsStandout.how)) {
|
|
19994
|
+
repair('numbered rows stand out one way: the one pointed at, the rest dimmed');
|
|
19995
|
+
next.standout = { who: LIST_RULES.rowsStandout.who, how: LIST_RULES.rowsStandout.how };
|
|
19996
|
+
}
|
|
19733
19997
|
// How the visitor moves through them — never a way the business's lists never move (L-D12).
|
|
19734
19998
|
const banned = never ? next.move.filter(m => has$1(never.moves, m)) : [];
|
|
19735
19999
|
if (banned.length) {
|
|
19736
20000
|
repair(`${why} — no ${banned.join(', ')}`);
|
|
19737
20001
|
next.move = next.move.filter(m => !banned.includes(m));
|
|
19738
20002
|
}
|
|
19739
|
-
|
|
20003
|
+
// AW11: a fan moves only by being dragged, and only with enough cards to drag.
|
|
20004
|
+
if (arrange === LayoutListArrange.Fan && next.move.length) {
|
|
20005
|
+
const dragged = next.move.includes(LayoutListMove.Drag) && (shape.items === null || shape.items >= LIST_RULES.fanDragFrom);
|
|
20006
|
+
const dropped = next.move.filter(m => m !== LayoutListMove.Drag || !dragged);
|
|
20007
|
+
if (dropped.length)
|
|
20008
|
+
repair(dragged || !next.move.includes(LayoutListMove.Drag) ? `a fan is only dragged — no ${dropped.join(', ')}` : `a fan of fewer than ${LIST_RULES.fanDragFrom} cards stays still`);
|
|
20009
|
+
next.move = dragged ? [LayoutListMove.Drag] : [];
|
|
20010
|
+
}
|
|
20011
|
+
if (next.move.includes(LayoutListMove.Rows) && !pictured) {
|
|
20012
|
+
repair(`"${shape.alias}" has no pictures — no drifting rows`);
|
|
20013
|
+
next.move = next.move.filter(m => m !== LayoutListMove.Rows);
|
|
20014
|
+
}
|
|
20015
|
+
const moving = has$1(R.moving, arrange) || (arrange === LayoutListArrange.Fan && next.move.length > 0);
|
|
19740
20016
|
if (!moving && next.move.length) {
|
|
19741
20017
|
repair(`${say(arrange)} does not move — no ${next.move.join(', ')}`);
|
|
19742
20018
|
next.move = [];
|
|
@@ -19751,6 +20027,15 @@ function checkList(mix, shape, layer, never) {
|
|
|
19751
20027
|
repair('the page\'s scroll carries the row alone');
|
|
19752
20028
|
next.move = [LayoutListMove.Page];
|
|
19753
20029
|
}
|
|
20030
|
+
if (next.move.includes(LayoutListMove.Rows) && next.move.length > 1) {
|
|
20031
|
+
repair('drifting rows move by themselves alone');
|
|
20032
|
+
next.move = [LayoutListMove.Rows];
|
|
20033
|
+
}
|
|
20034
|
+
if (next.move.includes(LayoutListMove.Rows) && next.item !== LayoutListItem.Photo) {
|
|
20035
|
+
repair('drifting rows hold pictures only');
|
|
20036
|
+
next.item = LayoutListItem.Photo;
|
|
20037
|
+
next.parts = [IMAGE$1];
|
|
20038
|
+
}
|
|
19754
20039
|
if (!next.move.length) {
|
|
19755
20040
|
repair(`${say(arrange)} — the visitor drags it`);
|
|
19756
20041
|
next.move = [LayoutListMove.Drag];
|
|
@@ -19761,19 +20046,47 @@ function checkList(mix, shape, layer, never) {
|
|
|
19761
20046
|
repair(`"${stripHovers.join(', ')}" is a strip's`);
|
|
19762
20047
|
next.hover = next.hover.filter(h => !has$1(R.onlyStrips.hover, h));
|
|
19763
20048
|
}
|
|
20049
|
+
// AW11: hover words that need what the list may not have (one table), and the hover tilt — a still card's.
|
|
20050
|
+
const unread = next.hover.filter(h => listWordRefusal('hover', h, shape) !== null && listWordRefusal('hover', h, shape) !== ListWordRefusal.ProOnly);
|
|
20051
|
+
if (unread.length) {
|
|
20052
|
+
repair(unread.map(h => listWordRefusal('hover', h, shape) === ListWordRefusal.NoSecondPicture
|
|
20053
|
+
? `"${h}" needs a second picture — "${shape.alias}" has one per item`
|
|
20054
|
+
: `"${h}" needs a picture — "${shape.alias}" has none`).join('; '));
|
|
20055
|
+
next.hover = next.hover.filter(h => !unread.includes(h));
|
|
20056
|
+
}
|
|
20057
|
+
if (next.hover.includes(LayoutListHover.Tilt) && (moving || next.item !== LayoutListItem.Card && next.item !== LayoutListItem.Packshot && next.item !== LayoutListItem.ColourBlock && next.item !== LayoutListItem.Numbered)) {
|
|
20058
|
+
repair(moving ? `${say(arrange)} moves — its card rises instead of turning` : 'only a card turns its ground — it rises instead');
|
|
20059
|
+
next.hover = [...new Set(next.hover.map(h => (h === LayoutListHover.Tilt ? LayoutListHover.Rise : h)))];
|
|
20060
|
+
}
|
|
19764
20061
|
if (new Set(next.hover).size !== next.hover.length)
|
|
19765
20062
|
next.hover = [...new Set(next.hover)];
|
|
20063
|
+
// AW11-D15: what is seen at once is there at once — no clip-up in the first screen.
|
|
20064
|
+
if (options.firstScreen && has$1(LIST_RULES.notFirstScreen.arrive ?? [], next.arrive)) {
|
|
20065
|
+
repair(`the first screen shows its items at once — "${next.arrive}" plays further down the page`);
|
|
20066
|
+
next.arrive = LayoutListArrive.Together;
|
|
20067
|
+
}
|
|
19766
20068
|
// A phone.
|
|
19767
20069
|
if (has$1(R.neverSwipe, arrange) && next.phone === LayoutListPhone.Swipe) {
|
|
19768
20070
|
repair(`${say(arrange)} does not swipe on a phone — it stacks`);
|
|
19769
20071
|
next.phone = LayoutListPhone.Stack;
|
|
19770
20072
|
}
|
|
20073
|
+
// AW11-D6: a stage is a row of cards you swipe on a phone; a fan swipes or stacks.
|
|
20074
|
+
if (arrange === LayoutListArrange.Stage && next.phone !== LayoutListPhone.Swipe) {
|
|
20075
|
+
repair('a stage is a row of cards you swipe on a phone');
|
|
20076
|
+
next.phone = LayoutListPhone.Swipe;
|
|
20077
|
+
}
|
|
20078
|
+
if (arrange === LayoutListArrange.Fan && next.phone === LayoutListPhone.TwoUp) {
|
|
20079
|
+
repair('a fan is a row you swipe on a phone');
|
|
20080
|
+
next.phone = LayoutListPhone.Swipe;
|
|
20081
|
+
}
|
|
19771
20082
|
return said.map(message => ({ code: LayoutIssueCode.Structure, path: at, message, mend: { kind: LayoutMendKind.List, layer, mix: next } }));
|
|
19772
20083
|
}
|
|
19773
|
-
/** Two list sections of one page never share an arrangement (list-ingredients §7)
|
|
20084
|
+
/** Two list sections of one page never share an arrangement (list-ingredients §7), and never two lean (AW11-D7): the
|
|
20085
|
+
* later ones are the model's. */
|
|
19774
20086
|
function pageListIssues(page) {
|
|
19775
20087
|
const issues = [];
|
|
19776
20088
|
const seen = new Map();
|
|
20089
|
+
let leaning = null;
|
|
19777
20090
|
(page?.sections ?? []).forEach((s, si) => (s.layers ?? []).forEach((l, li) => {
|
|
19778
20091
|
const mix = l.kind === LayoutLayerKind.Gallery ? l.gallery?.list : undefined;
|
|
19779
20092
|
if (!mix || typeof mix.arrange !== 'string')
|
|
@@ -19782,8 +20095,12 @@ function pageListIssues(page) {
|
|
|
19782
20095
|
const first = seen.get(mix.arrange);
|
|
19783
20096
|
if (first)
|
|
19784
20097
|
issues.push({ code: LayoutIssueCode.Sameness, path, message: `${first} is already ${say(mix.arrange)} — arrange this list another way` });
|
|
20098
|
+
else if (leaning && has$1(LIST_RULES.leaning, mix.arrange))
|
|
20099
|
+
issues.push({ code: LayoutIssueCode.Sameness, path, message: `${leaning} already leans — one leaning list a page; arrange this one straight` });
|
|
19785
20100
|
else
|
|
19786
20101
|
seen.set(mix.arrange, `sections[${si}]`);
|
|
20102
|
+
if (!leaning && has$1(LIST_RULES.leaning, mix.arrange))
|
|
20103
|
+
leaning = `sections[${si}]`;
|
|
19787
20104
|
}));
|
|
19788
20105
|
return issues;
|
|
19789
20106
|
}
|
|
@@ -20179,6 +20496,46 @@ function layoutListPair(s, li, side, heading) {
|
|
|
20179
20496
|
next.phone = [...first, ...was.filter(i => !first.includes(i)), ...next.layers.map((_, i) => i).filter(i => !first.includes(i) && !was.includes(i))];
|
|
20180
20497
|
return next;
|
|
20181
20498
|
}
|
|
20499
|
+
/** The box a turned item is measured on (a card a third of the laptop's row). */
|
|
20500
|
+
const TURNED_ITEM = { width: 360, height: 480 };
|
|
20501
|
+
/** A card's own lift under the mouse (the look's card-lift is at most this), added where an item may rise. */
|
|
20502
|
+
const LIFT_ROOM = 8;
|
|
20503
|
+
const deg = (d) => (d * Math.PI) / 180;
|
|
20504
|
+
const up4 = (px) => Math.ceil(px / 4) * 4;
|
|
20505
|
+
/** How far a box's corner passes its own edge, turned by `d` degrees about its middle. */
|
|
20506
|
+
function turnRoom(d) {
|
|
20507
|
+
const t = deg(Math.abs(d));
|
|
20508
|
+
const { width: w, height: h } = TURNED_ITEM;
|
|
20509
|
+
return { block: (w / 2) * Math.sin(t) + (h / 2) * (1 - Math.cos(t)), inline: (h / 2) * Math.sin(t) + (w / 2) * (1 - Math.cos(t)) };
|
|
20510
|
+
}
|
|
20511
|
+
/**
|
|
20512
|
+
* The room a list mix keeps (AW11, R-H-AW11-2) — from the contract's rhythms, never a guess: a gallery wall's items hang
|
|
20513
|
+
* by margins (real room, inside the list), so it keeps only the lift of a picture under the mouse; a tilted list turns
|
|
20514
|
+
* its items up to `tiltMaxDeg`; a hover tilt turns a card's ground by `hoverTiltDeg`. A fan holds its arc in its own
|
|
20515
|
+
* height (the shared CSS), so it needs none here. Pure.
|
|
20516
|
+
*/
|
|
20517
|
+
function listOverhang(mix) {
|
|
20518
|
+
let blockStart = 0;
|
|
20519
|
+
let blockEnd = 0;
|
|
20520
|
+
let inline = 0;
|
|
20521
|
+
if (mix.arrange === LayoutListArrange.Hang) {
|
|
20522
|
+
blockStart = LIFT_ROOM;
|
|
20523
|
+
blockEnd = LIFT_ROOM;
|
|
20524
|
+
}
|
|
20525
|
+
if (mix.arrange === LayoutListArrange.Tilted) {
|
|
20526
|
+
const room = turnRoom(LIST_RHYTHMS.tiltMaxDeg);
|
|
20527
|
+
blockStart = Math.max(blockStart, room.block + LIFT_ROOM);
|
|
20528
|
+
blockEnd = Math.max(blockEnd, room.block);
|
|
20529
|
+
inline = Math.max(inline, room.inline);
|
|
20530
|
+
}
|
|
20531
|
+
if ((mix.hover ?? []).includes(LayoutListHover.Tilt)) {
|
|
20532
|
+
const room = turnRoom(LIST_RHYTHMS.hoverTiltDeg);
|
|
20533
|
+
blockStart = Math.max(blockStart, room.block);
|
|
20534
|
+
blockEnd = Math.max(blockEnd, room.block);
|
|
20535
|
+
inline = Math.max(inline, room.inline);
|
|
20536
|
+
}
|
|
20537
|
+
return { blockStart: up4(blockStart), blockEnd: up4(blockEnd), inline: up4(inline) };
|
|
20538
|
+
}
|
|
20182
20539
|
|
|
20183
20540
|
/**
|
|
20184
20541
|
* THE BODY (award-ingredients-plan §3.4, AW6; board award-body): how a site's sections meet (the seam), how their grounds
|
|
@@ -20241,10 +20598,10 @@ class BodyMixError extends Error {
|
|
|
20241
20598
|
}
|
|
20242
20599
|
const HEBREW$3 = 'he';
|
|
20243
20600
|
const INGREDIENTS$3 = B.ingredients;
|
|
20244
|
-
const MANY$
|
|
20601
|
+
const MANY$3 = new Set(B.many);
|
|
20245
20602
|
const WAITS$3 = B.waits;
|
|
20246
20603
|
const ORDER$1 = Object.values(BodyIngredient);
|
|
20247
|
-
const isMany$1 = (k) => MANY$
|
|
20604
|
+
const isMany$1 = (k) => MANY$3.has(k);
|
|
20248
20605
|
const listOf$2 = (v) => (v === undefined ? [] : Array.isArray(v) ? [...v] : [v]);
|
|
20249
20606
|
const ordered$1 = (k, words) => bodyWords(k).filter(w => words.includes(w));
|
|
20250
20607
|
/** The words an ingredient may take, in the table's order. */
|
|
@@ -21115,7 +21472,7 @@ function examineLayout(page, ctx, carried, given) {
|
|
|
21115
21472
|
if (g.list) {
|
|
21116
21473
|
if (g.source === undefined)
|
|
21117
21474
|
add(LayoutIssueCode.Content, `${lp}.gallery.source`, 'a list section names the list it shows');
|
|
21118
|
-
issues.push(...checkList(g.list, ctx.listShapes?.find(x => x.alias === g.source) ?? null, lp, ctx.listNever));
|
|
21475
|
+
issues.push(...checkList(g.list, ctx.listShapes?.find(x => x.alias === g.source) ?? null, lp, ctx.listNever, { tier: ctx.tier, firstScreen: i === 0 }));
|
|
21119
21476
|
}
|
|
21120
21477
|
if (!g.scroll)
|
|
21121
21478
|
swappable++;
|
|
@@ -21935,7 +22292,7 @@ class FooterMixError extends Error {
|
|
|
21935
22292
|
}
|
|
21936
22293
|
const INGREDIENTS$2 = F.ingredients;
|
|
21937
22294
|
const MEANINGS$1 = F.meanings;
|
|
21938
|
-
const MANY$
|
|
22295
|
+
const MANY$2 = F.many;
|
|
21939
22296
|
const WAITS$2 = F.waits;
|
|
21940
22297
|
/** The footer pattern a plan names when it names none the table knows (the Studio footer). */
|
|
21941
22298
|
const DEFAULT_FOOTER_PATTERN = 'footer.three-column';
|
|
@@ -21967,12 +22324,12 @@ function footerMix(partial = {}) {
|
|
|
21967
22324
|
if (!INGREDIENTS$2[k])
|
|
21968
22325
|
throw new FooterMixError(`no footer ingredient "${k}"`);
|
|
21969
22326
|
const words = typeof v === 'string' ? [v] : v;
|
|
21970
|
-
if (MANY$
|
|
21971
|
-
throw new FooterMixError(`a footer's ${k} is ${MANY$
|
|
22327
|
+
if (MANY$2.includes(k) !== (typeof v !== 'string'))
|
|
22328
|
+
throw new FooterMixError(`a footer's ${k} is ${MANY$2.includes(k) ? 'a list of words' : 'one word'}`);
|
|
21972
22329
|
for (const w of words)
|
|
21973
22330
|
if (!INGREDIENTS$2[k].includes(w))
|
|
21974
22331
|
throw new FooterMixError(`a footer's ${k} cannot be "${w}" (${footerWords(k).join(' · ')})`);
|
|
21975
|
-
mix[k] = MANY$
|
|
22332
|
+
mix[k] = MANY$2.includes(k) ? inOrder(k, words) : words[0];
|
|
21976
22333
|
}
|
|
21977
22334
|
return mix;
|
|
21978
22335
|
}
|
|
@@ -21991,7 +22348,7 @@ function footerPatternIdOf(mix) {
|
|
|
21991
22348
|
}
|
|
21992
22349
|
/** A mix on the wire: ONE list of `<ingredient>:<word>` words (the list wire's encoding), `holds` once per block. */
|
|
21993
22350
|
function footerMixWords(mix) {
|
|
21994
|
-
return Object.values(FooterIngredient).flatMap(k => (MANY$
|
|
22351
|
+
return Object.values(FooterIngredient).flatMap(k => (MANY$2.includes(k) ? mix[k] : [mix[k]]).map(w => `${k}:${w}`));
|
|
21995
22352
|
}
|
|
21996
22353
|
/** Every `<ingredient>:<word>` the wire may carry: the drawn words only. */
|
|
21997
22354
|
function footerWireWords() {
|
|
@@ -22023,7 +22380,7 @@ function footerMixFromWords(words) {
|
|
|
22023
22380
|
const [k, w] = String(pair).split(':');
|
|
22024
22381
|
if (!INGREDIENTS$2[k] || !w)
|
|
22025
22382
|
throw new FooterMixError(`"${pair}" is no footer word (<ingredient>:<word>)`);
|
|
22026
|
-
if (MANY$
|
|
22383
|
+
if (MANY$2.includes(k))
|
|
22027
22384
|
(partial[k] ??= []).push(w);
|
|
22028
22385
|
else if (partial[k] !== undefined && partial[k] !== w)
|
|
22029
22386
|
throw new FooterMixError(`a footer has one ${k} ("${partial[k]}" and "${w}")`);
|
|
@@ -23560,10 +23917,10 @@ var OpeningRole;
|
|
|
23560
23917
|
const OPENING_MIX_PROP = 'openingMix';
|
|
23561
23918
|
const HEBREW$1 = 'he';
|
|
23562
23919
|
const INGREDIENTS = O.ingredients;
|
|
23563
|
-
const MANY = new Set(O.many);
|
|
23920
|
+
const MANY$1 = new Set(O.many);
|
|
23564
23921
|
const WAITS = O.waits;
|
|
23565
23922
|
const ORDER = Object.values(OpeningIngredient);
|
|
23566
|
-
const isMany = (k) => MANY.has(k);
|
|
23923
|
+
const isMany = (k) => MANY$1.has(k);
|
|
23567
23924
|
/** The words an ingredient may take, in the table's order. */
|
|
23568
23925
|
function openingWords$1(ingredient) {
|
|
23569
23926
|
return INGREDIENTS[ingredient] ?? [];
|
|
@@ -24341,7 +24698,8 @@ function validateContentTypes(c, list) {
|
|
|
24341
24698
|
c.unique(names, j => `${path}.fields[${j}].name`, 'field');
|
|
24342
24699
|
const fieldSet = new Set(names.filter((n) => !!n));
|
|
24343
24700
|
const fieldTypes = new Map(fields.filter(isPlainObject).map(f => [f['name'], f['type']]));
|
|
24344
|
-
const
|
|
24701
|
+
const fieldControls = new Map(fields.filter(isPlainObject).map(f => [f['name'], f['controller']]));
|
|
24702
|
+
const roles = validateRoles(c, raw['roles'], `${path}.roles`, name, fieldSet, fieldTypes, fieldControls);
|
|
24345
24703
|
const seed = raw['seed'];
|
|
24346
24704
|
if (seed !== undefined) {
|
|
24347
24705
|
if (!isPlainObject(seed))
|
|
@@ -24381,8 +24739,9 @@ function validateContentTypes(c, list) {
|
|
|
24381
24739
|
return types;
|
|
24382
24740
|
}
|
|
24383
24741
|
const describeField = (f) => ({ name: String(f['name']), type: typeof f['type'] === 'string' ? f['type'] : undefined, controller: typeof f['controller'] === 'string' ? f['controller'] : undefined });
|
|
24384
|
-
/** A content type's roles (L0-3): known roles only, each played by a field of the type; `title` always; `gallery` a list
|
|
24385
|
-
|
|
24742
|
+
/** A content type's roles (L0-3): known roles only, each played by a field of the type; `title` always; `gallery` a list;
|
|
24743
|
+
* `colour` (AW11-D10) a colour-picker field — any other field would paint a block from words. */
|
|
24744
|
+
function validateRoles(c, roles, path, typeName, fields, fieldTypes, fieldControls) {
|
|
24386
24745
|
if (!isPlainObject(roles)) {
|
|
24387
24746
|
c.add(SitePlanIssueCode.Shape, path, 'must be an object (which field plays each role)');
|
|
24388
24747
|
return {};
|
|
@@ -24401,6 +24760,10 @@ function validateRoles(c, roles, path, typeName, fields, fieldTypes) {
|
|
|
24401
24760
|
c.add(SitePlanIssueCode.UnknownRole, `${path}.${role}`, `"${field}" is not a list field — a gallery is a list of pictures`);
|
|
24402
24761
|
continue;
|
|
24403
24762
|
}
|
|
24763
|
+
if (role === ContentRole.Colour && fieldControls.get(field) !== ContentFieldControl.Colour) {
|
|
24764
|
+
c.add(SitePlanIssueCode.UnknownRole, `${path}.${role}`, `"${field}" is not a colour field — a colour block's ground is a picked colour`);
|
|
24765
|
+
continue;
|
|
24766
|
+
}
|
|
24404
24767
|
out[role] = field;
|
|
24405
24768
|
}
|
|
24406
24769
|
for (const role of REQUIRED_CONTENT_ROLES)
|
|
@@ -25282,6 +25645,471 @@ function legalFormLine(lang, withTerms) {
|
|
|
25282
25645
|
return parts;
|
|
25283
25646
|
}
|
|
25284
25647
|
|
|
25648
|
+
/**
|
|
25649
|
+
* The LAYOUT WIRE (premium M8 gate 2, M8-G2-D2): the strict format a model writes ONE composed page in. Every key is
|
|
25650
|
+
* required — "none" is `''`, `0`, `[]` or `'none'` — so the request stays at 37 properties, no optional key and no
|
|
25651
|
+
* union (`strictSchemaComplexity`, held by iox-cms strict-schemas.spec). `expandLayoutWire` turns it into the layout
|
|
25652
|
+
* language (`LayoutSection[]`, what `checkLayout` judges and `composeLayout` stamps); `layoutToWire` writes a layout back
|
|
25653
|
+
* (the three proof sites, a repair's starting point). What the wire leaves out is derived, never asked: a layer's beat
|
|
25654
|
+
* (the order it is written), the look, the pace and ease, the nav, the site's name and language.
|
|
25655
|
+
*/
|
|
25656
|
+
const V = SPEC_SITE_LAYOUT.vocab;
|
|
25657
|
+
const GALLERY_EFFECTS = V.galleryEffects;
|
|
25658
|
+
const FORM_PRESETS = V.formPresets;
|
|
25659
|
+
const BUTTON_VARIANTS = V.buttonVariants;
|
|
25660
|
+
const NONE$1 = 'none';
|
|
25661
|
+
const CLIP = 'clipReveal';
|
|
25662
|
+
const CLIP_SIDE = `${CLIP}-`;
|
|
25663
|
+
/** A gallery the wire marks `autoplay` turns every 5 s — what the proof sites' autoplaying galleries do. */
|
|
25664
|
+
const LAYOUT_WIRE_AUTOPLAY_MS = 5000;
|
|
25665
|
+
const CHIP_SLOTS = Array.from(new Set(Object.values(V.formChips).flat()));
|
|
25666
|
+
const SLOT_NAMES = [...V.formSlots, ...CHIP_SLOTS];
|
|
25667
|
+
const ENTER_ON_WIRE = V.enters.flatMap((e) => (e === CLIP ? V.sides.map((s) => `${CLIP_SIDE}${s}`) : [e]));
|
|
25668
|
+
const VARIANT_ON_WIRE = [NONE$1, ...V.buttonVariants, ...V.galleryEffects, ...V.formPresets];
|
|
25669
|
+
/**
|
|
25670
|
+
* List ingredients (list-ingredients-plan.md §2, LI1): a list section's mix travels as ONE list of `<ingredient>:<word>`
|
|
25671
|
+
* words (`arrange:strips`, `hover:dim`) and its parts as `<list>.<role>` (`stories.quote`) — two properties, so the
|
|
25672
|
+
* request stays inside the 40 the budget allows, and the parts enum is generated from the plan's own lists: a model
|
|
25673
|
+
* cannot name a part its list does not have (R-H2).
|
|
25674
|
+
*/
|
|
25675
|
+
var LayoutMixIngredient;
|
|
25676
|
+
(function (LayoutMixIngredient) {
|
|
25677
|
+
LayoutMixIngredient["Item"] = "item";
|
|
25678
|
+
LayoutMixIngredient["Arrange"] = "arrange";
|
|
25679
|
+
LayoutMixIngredient["Who"] = "who";
|
|
25680
|
+
LayoutMixIngredient["How"] = "how";
|
|
25681
|
+
LayoutMixIngredient["Move"] = "move";
|
|
25682
|
+
LayoutMixIngredient["Hover"] = "hover";
|
|
25683
|
+
LayoutMixIngredient["Arrive"] = "arrive";
|
|
25684
|
+
LayoutMixIngredient["Phone"] = "phone";
|
|
25685
|
+
})(LayoutMixIngredient || (LayoutMixIngredient = {}));
|
|
25686
|
+
const MIX_SEPARATOR = ':';
|
|
25687
|
+
const BASIC = 'basic';
|
|
25688
|
+
const AWARD = 'award';
|
|
25689
|
+
const PART_SEPARATOR = '.';
|
|
25690
|
+
/** Every word a stored mix may hold, ingredient by ingredient (a waiting word too: a stored answer still reads). */
|
|
25691
|
+
const LAYOUT_MIX_WORDS = LIST_INGREDIENTS.flatMap(k => listIngredientWords(k).map(w => `${k}${MIX_SEPARATOR}${w}`));
|
|
25692
|
+
/** The words the wire OFFERS a site below the award tier — the built ones only (ingredients.md §3.3: a waiting word would
|
|
25693
|
+
* put its stand-in on every site that asked for it), less the award tier's (AW-D23, AW11). */
|
|
25694
|
+
const LAYOUT_MIX_OFFERED = LIST_INGREDIENTS.flatMap(k => listBuiltWords(k).filter(w => listWordOffered(k, w, BASIC)).map(w => `${k}${MIX_SEPARATOR}${w}`));
|
|
25695
|
+
/** AW11: every built word, the award tier's included — what the wire offers an award site before the lists are read. */
|
|
25696
|
+
const LAYOUT_MIX_OFFERED_AWARD = LIST_INGREDIENTS.flatMap(k => listBuiltWords(k).map(w => `${k}${MIX_SEPARATOR}${w}`));
|
|
25697
|
+
/** AW10: the entrance and the switch a look that never scrubs is not offered. */
|
|
25698
|
+
const LETTERS = 'letters';
|
|
25699
|
+
const SCRUB_FLAG = 'scrub';
|
|
25700
|
+
/** The entrances the wire offers under the look's scrub (AW10 H3). */
|
|
25701
|
+
function layoutEntersOffered(scrub) {
|
|
25702
|
+
return ENTER_ON_WIRE.filter(e => e !== LETTERS || scrubOffered(scrub));
|
|
25703
|
+
}
|
|
25704
|
+
/** The switches the wire offers under the look's scrub (AW10 H3). */
|
|
25705
|
+
function layoutFlagsOffered(scrub) {
|
|
25706
|
+
return V.flags.filter(f => f !== SCRUB_FLAG || scrubOffered(scrub));
|
|
25707
|
+
}
|
|
25708
|
+
const scrubOffered = (scrub) => !!scrub && scrub !== ScrubId.Never && isScrubId(scrub);
|
|
25709
|
+
/** A handle the wire places as a whole SECTION (RD-D20): a bound part, a block or a kept section. */
|
|
25710
|
+
const SECTION_HANDLE = /^(?:bind|block|keep):/;
|
|
25711
|
+
/** Is `handle` one a section places whole (`bind:`/`block:`/`keep:`), never a layer's words or photo? */
|
|
25712
|
+
function isSectionCarryHandle(handle) {
|
|
25713
|
+
return SECTION_HANDLE.test(handle);
|
|
25714
|
+
}
|
|
25715
|
+
/**
|
|
25716
|
+
* The mix words offered to a business whose lists never do `never` (L-D12): the built words less the forbidden ones —
|
|
25717
|
+
* and since AW11, the award tier's only to an award site, and a word NO list of the plan can carry (a second picture, a
|
|
25718
|
+
* picture at all) never (R-H-AW11-7: the one table, `listWordRefusal`; `checkList` judges each list).
|
|
25719
|
+
*/
|
|
25720
|
+
function layoutMixOffered(never, options = {}) {
|
|
25721
|
+
const banned = new Set([...(never?.arranges ?? []).map(w => `arrange${MIX_SEPARATOR}${w}`), ...(never?.moves ?? []).map(w => `move${MIX_SEPARATOR}${w}`)]);
|
|
25722
|
+
const offered = options.tier === AWARD ? LAYOUT_MIX_OFFERED_AWARD : LAYOUT_MIX_OFFERED;
|
|
25723
|
+
const lists = options.lists;
|
|
25724
|
+
return offered.filter(w => {
|
|
25725
|
+
if (banned.has(w))
|
|
25726
|
+
return false;
|
|
25727
|
+
if (!lists?.length)
|
|
25728
|
+
return true;
|
|
25729
|
+
const [k, word] = w.split(MIX_SEPARATOR);
|
|
25730
|
+
return lists.some(l => listWordRefusal(k, word, l) === null);
|
|
25731
|
+
});
|
|
25732
|
+
}
|
|
25733
|
+
const mixHint = (offered) => LIST_INGREDIENTS.map(k => {
|
|
25734
|
+
const words = offered.filter(w => w.startsWith(`${k}${MIX_SEPARATOR}`)).map(w => w.slice(k.length + MIX_SEPARATOR.length));
|
|
25735
|
+
return `${k}:${words.join('|')}${LIST_TABLE.many.includes(k) ? ' (any)' : ''}`;
|
|
25736
|
+
}).join(' · ');
|
|
25737
|
+
/** `<list>.<role>` for every role of every list — what a list section's `parts` may name. */
|
|
25738
|
+
function layoutWirePartWords(lists) {
|
|
25739
|
+
return lists.flatMap(l => l.roles.map(r => `${l.alias}${PART_SEPARATOR}${r}`));
|
|
25740
|
+
}
|
|
25741
|
+
const text$1 = (d) => ({ ...jsonText(), description: d });
|
|
25742
|
+
const integer = (d) => ({ ...jsonInteger(), description: d });
|
|
25743
|
+
const oneOf$1 = (values, d) => ({ ...jsonOneOf(values), description: d });
|
|
25744
|
+
const listOf = (items, d) => ({ ...jsonListOf(items), description: d });
|
|
25745
|
+
const closed = (properties, d) => jsonClosedObject(properties, Object.keys(properties), d);
|
|
25746
|
+
/** The strict format for one composed page — with the list ingredients when `options.lists` is given. */
|
|
25747
|
+
function layoutWireJsonSchema(options = {}) {
|
|
25748
|
+
const partWords = options.lists ? layoutWirePartWords(options.lists) : [];
|
|
25749
|
+
// A list (round one) keeps today's offer exactly: the plan's lists narrow only what the award tier adds.
|
|
25750
|
+
const mixOffered = options.tier === AWARD ? layoutMixOffered(options.never, { tier: AWARD, lists: options.lists }) : layoutMixOffered(options.never);
|
|
25751
|
+
const lists = options.lists
|
|
25752
|
+
? {
|
|
25753
|
+
mix: listOf(jsonOneOf(mixOffered), `gallery showing a list (source): how its items are shown, one word per choice — ${mixHint(mixOffered)}; [] for none`),
|
|
25754
|
+
parts: listOf(jsonOneOf(partWords.length ? partWords : [NONE$1]), "gallery showing a list as cards: the list's fields each card shows, <list>.<role>, the source's own; [] for none"),
|
|
25755
|
+
}
|
|
25756
|
+
: {};
|
|
25757
|
+
const carried = options.carry
|
|
25758
|
+
? {
|
|
25759
|
+
carry: oneOf$1([NONE$1, ...options.carry], "a redesign: the owner's part this layer shows, by handle — its words, photo or form as they are (write no text of your own then); a section's ONLY layer naming a bind:/block:/keep: handle makes the whole section that part; 'none' for a layer of your own"),
|
|
25760
|
+
}
|
|
25761
|
+
: {};
|
|
25762
|
+
const layer = closed({
|
|
25763
|
+
kind: oneOf$1(V.kinds, 'what the layer is'),
|
|
25764
|
+
role: oneOf$1(V.roles, 'lead: the ONE thing the eye finds first in its section · support: follows it · decoration: only fades · static: never moves'),
|
|
25765
|
+
text: text$1("the words (word, heading, text, label, number, button); '' for none; a fact you were not given is {fact:<key>}"),
|
|
25766
|
+
items: listOf(jsonText(), 'list items · marquee phrases · one caption per gallery photo; [] for none'),
|
|
25767
|
+
photos: listOf(jsonText(), 'photo: one photo id · gallery: its slides, in order; ids from the photos you are given; [] for none'),
|
|
25768
|
+
source: text$1("gallery: the alias of a list data source whose items it shows instead of photos; '' for none"),
|
|
25769
|
+
box: listOf(jsonInteger(), '[colStart, colEnd, rowStart, rowEnd]: grid lines 1..13 (1..12×hold+1 sideways) and 1..rows+1'),
|
|
25770
|
+
size: oneOf$1([NONE$1, ...V.sizes], "type size; 'screen' = as wide as its columns, a word, never a sentence"),
|
|
25771
|
+
color: oneOf$1(V.colours, "the look's colour by name"),
|
|
25772
|
+
align: oneOf$1(V.aligns, 'text alignment'),
|
|
25773
|
+
z: integer('0..9 stacking'),
|
|
25774
|
+
bleed: oneOf$1(V.bleeds, 'runs off the screen at that edge'),
|
|
25775
|
+
rotate: integer("degrees, within the look's limit"),
|
|
25776
|
+
to: text$1("button: a section id of this page or a page route ('/contact'); '' for none"),
|
|
25777
|
+
variant: oneOf$1(VARIANT_ON_WIRE, 'button: primary | secondary | ghost · gallery: its effect · form: its preset · none'),
|
|
25778
|
+
enter: oneOf$1(layoutEntersOffered(options.scrub), scrubOffered(options.scrub)
|
|
25779
|
+
? 'plays once as it arrives (time); clipReveal opens from that side; letters: a line of words rises letter by letter (a display line)'
|
|
25780
|
+
: 'plays once as it arrives (time); clipReveal opens from that side'),
|
|
25781
|
+
depth: oneOf$1([NONE$1, ...V.depths], 'the parallax trio (not in held sections)'),
|
|
25782
|
+
inner: integer('0..3: how far a photo drifts inside its frame'),
|
|
25783
|
+
flags: listOf(jsonOneOf(layoutFlagsOffered(options.scrub)), `switches: scrim (a shadow under words on a photo) · kinetic (lit word by word, held only) · contain · gallery: centered, freeMode, loop, drift, scroll (held only: the scroll turns it), autoplay${scrubOffered(options.scrub) ? ` · scrub (its entrance follows the scroll instead of playing once — ${options.scrub === ScrubId.Words ? 'a mask rise or letters only' : 'any entrance'}; never in the first section)` : ''}; [] for none`),
|
|
25784
|
+
perView: { type: 'number', description: 'gallery slides per view; 0 for none' },
|
|
25785
|
+
slots: listOf(closed({ slot: oneOf$1(SLOT_NAMES, 'which words'), text: text$1('the words, in the business\'s language') }), "form: its title, intro, submit, successTitle, successText, channel, and one entry per chip (needs · budget · guests); [] for none"),
|
|
25786
|
+
motion: listOf(closed({
|
|
25787
|
+
prop: oneOf$1(V.trackProps, 'what moves'),
|
|
25788
|
+
ease: oneOf$1(V.eases, 'how'),
|
|
25789
|
+
values: listOf({ type: 'number' }, '[from, to, at0, at1]: values and the part of the hold it plays over (0..1)'),
|
|
25790
|
+
}), 'held sections only: tracks the scroll plays; [] for none'),
|
|
25791
|
+
...lists,
|
|
25792
|
+
...carried,
|
|
25793
|
+
});
|
|
25794
|
+
const section = closed({
|
|
25795
|
+
id: text$1('a short slug, unique on the page'),
|
|
25796
|
+
kind: oneOf$1(V.sectionKinds, 'content · inhale (a breath: ≤ 2 small layers, no photo) · signature (exactly ONE)'),
|
|
25797
|
+
screens: integer('1..5 screen heights'),
|
|
25798
|
+
hold: integer('0 flows · 1 held (the page stops while its layers move) · 2..4 held and carried sideways that many screens'),
|
|
25799
|
+
ground: text$1("a colour name, or photo:<id>"),
|
|
25800
|
+
rows: integer('4..16 grid rows'),
|
|
25801
|
+
transition: oneOf$1(V.transitions, 'how it arrives over the section before'),
|
|
25802
|
+
phone: listOf(jsonInteger(), "every layer's index exactly once, in a phone's reading order"),
|
|
25803
|
+
layers: listOf(layer, 'the layers'),
|
|
25804
|
+
});
|
|
25805
|
+
return closed({ sections: listOf(section, '4..8 sections') }, 'one composed page in the layout language');
|
|
25806
|
+
}
|
|
25807
|
+
const nonEmpty$2 = (v) => typeof v === 'string' && v.trim() !== '';
|
|
25808
|
+
const num = (v, fallback = 0) => (typeof v === 'number' && Number.isFinite(v) ? v : fallback);
|
|
25809
|
+
const strings = (v) => (Array.isArray(v) ? v.filter((x) => typeof x === 'string') : []);
|
|
25810
|
+
function expandForm(l, preset) {
|
|
25811
|
+
const form = { preset: preset };
|
|
25812
|
+
const options = {};
|
|
25813
|
+
for (const s of Array.isArray(l['slots']) ? l['slots'] : []) {
|
|
25814
|
+
if (!isPlainObject(s) || !nonEmpty$2(s['text']))
|
|
25815
|
+
continue;
|
|
25816
|
+
const slot = String(s['slot']);
|
|
25817
|
+
const words = String(s['text']).trim();
|
|
25818
|
+
if (CHIP_SLOTS.includes(slot))
|
|
25819
|
+
(options[slot] ??= []).push(words);
|
|
25820
|
+
else if (slot === 'channel')
|
|
25821
|
+
form.channel = { label: words };
|
|
25822
|
+
else if (slot === 'title' || slot === 'intro' || slot === 'submit' || slot === 'successTitle' || slot === 'successText')
|
|
25823
|
+
form[slot] = words;
|
|
25824
|
+
}
|
|
25825
|
+
if (Object.keys(options).length)
|
|
25826
|
+
form.options = options;
|
|
25827
|
+
return form;
|
|
25828
|
+
}
|
|
25829
|
+
function expandGallery(l, flags, variant) {
|
|
25830
|
+
const captions = strings(l['items']);
|
|
25831
|
+
const gallery = {
|
|
25832
|
+
slides: strings(l['photos']).map((id, i) => ({ photo: { id }, ...(nonEmpty$2(captions[i]) ? { caption: captions[i] } : {}) })),
|
|
25833
|
+
};
|
|
25834
|
+
if (GALLERY_EFFECTS.includes(variant))
|
|
25835
|
+
gallery.effect = variant;
|
|
25836
|
+
const perView = num(l['perView']);
|
|
25837
|
+
if (perView > 0)
|
|
25838
|
+
gallery.perView = perView;
|
|
25839
|
+
for (const f of ['centered', 'freeMode', 'loop', 'drift', 'scroll'])
|
|
25840
|
+
if (flags.has(f))
|
|
25841
|
+
gallery[f] = true;
|
|
25842
|
+
if (flags.has('autoplay'))
|
|
25843
|
+
gallery.autoplay = LAYOUT_WIRE_AUTOPLAY_MS;
|
|
25844
|
+
if (nonEmpty$2(l['source']))
|
|
25845
|
+
gallery.source = String(l['source']).trim();
|
|
25846
|
+
const list = expandListMix(l, gallery);
|
|
25847
|
+
if (list)
|
|
25848
|
+
gallery.list = list;
|
|
25849
|
+
return gallery;
|
|
25850
|
+
}
|
|
25851
|
+
/** `mix` + `parts` → a list mix, or null when the wire names no mix. Words are kept as written (`checkList` judges them);
|
|
25852
|
+
* parts of another list than the gallery's are left out, and the first part names the list when `source` is empty. */
|
|
25853
|
+
function expandListMix(l, gallery) {
|
|
25854
|
+
const words = strings(l['mix']);
|
|
25855
|
+
if (!words.length)
|
|
25856
|
+
return null;
|
|
25857
|
+
const parts = strings(l['parts']).filter(p => p !== NONE$1).map(p => {
|
|
25858
|
+
const at = p.lastIndexOf(PART_SEPARATOR);
|
|
25859
|
+
return at > 0 ? { list: p.slice(0, at), role: p.slice(at + 1) } : null;
|
|
25860
|
+
}).filter((p) => !!p);
|
|
25861
|
+
if (!gallery.source && parts[0])
|
|
25862
|
+
gallery.source = parts[0].list;
|
|
25863
|
+
return listMixFromWords(words, parts.filter(p => p.list === gallery.source).map(p => p.role));
|
|
25864
|
+
}
|
|
25865
|
+
/**
|
|
25866
|
+
* `<ingredient>:<word>` words (the wire's `mix`, or what a composed list's frame stores — design-core `LIST_MIX_PROP`)
|
|
25867
|
+
* and the roles each item shows → a list mix, or null when there are no words. Words are kept as written (`checkList`
|
|
25868
|
+
* judges them); what is not named takes the wire's defaults. Bindings ▸ List reads a list back through this.
|
|
25869
|
+
*/
|
|
25870
|
+
function listMixFromWords(words, parts = []) {
|
|
25871
|
+
if (!words.length)
|
|
25872
|
+
return null;
|
|
25873
|
+
const picked = new Map();
|
|
25874
|
+
for (const w of words) {
|
|
25875
|
+
const at = w.indexOf(MIX_SEPARATOR);
|
|
25876
|
+
if (at > 0)
|
|
25877
|
+
(picked.get(w.slice(0, at)) ?? picked.set(w.slice(0, at), []).get(w.slice(0, at))).push(w.slice(at + 1));
|
|
25878
|
+
}
|
|
25879
|
+
const one = (k) => picked.get(k)?.[0];
|
|
25880
|
+
const own = [...parts];
|
|
25881
|
+
const arrange = (one(LayoutMixIngredient.Arrange) ?? LayoutListArrange.Row);
|
|
25882
|
+
const who = one(LayoutMixIngredient.Who);
|
|
25883
|
+
const how = one(LayoutMixIngredient.How);
|
|
25884
|
+
return {
|
|
25885
|
+
item: (one(LayoutMixIngredient.Item) ?? (own.length ? LayoutListItem.Card : LayoutListItem.Photo)),
|
|
25886
|
+
parts: Array.from(new Set(own)),
|
|
25887
|
+
arrange,
|
|
25888
|
+
...(who && who !== LayoutListWho.None ? { standout: { who: who, ...(how ? { how: how } : {}) } } : {}),
|
|
25889
|
+
move: Array.from(new Set(picked.get(LayoutMixIngredient.Move) ?? [])),
|
|
25890
|
+
hover: Array.from(new Set(picked.get(LayoutMixIngredient.Hover) ?? [])),
|
|
25891
|
+
arrive: (one(LayoutMixIngredient.Arrive) ?? LayoutListArrive.Together),
|
|
25892
|
+
phone: (one(LayoutMixIngredient.Phone) ?? (arrange === LayoutListArrange.Row ? LayoutListPhone.Swipe : LayoutListPhone.Stack)),
|
|
25893
|
+
};
|
|
25894
|
+
}
|
|
25895
|
+
/** A list mix's words, `<ingredient>:<word>` — the wire's `mix`, and what a composed list's frame stores (AW11,
|
|
25896
|
+
* design-core `LIST_MIX_PROP`) for Bindings ▸ List and the shared CSS. */
|
|
25897
|
+
function listMixWords(mix) {
|
|
25898
|
+
const w = (k, v) => `${k}${MIX_SEPARATOR}${v}`;
|
|
25899
|
+
return [
|
|
25900
|
+
w(LayoutMixIngredient.Item, mix.item), w(LayoutMixIngredient.Arrange, mix.arrange),
|
|
25901
|
+
...(mix.standout ? [w(LayoutMixIngredient.Who, mix.standout.who), ...(mix.standout.how ? [w(LayoutMixIngredient.How, mix.standout.how)] : [])] : []),
|
|
25902
|
+
...mix.move.map(m => w(LayoutMixIngredient.Move, m)), ...mix.hover.map(h => w(LayoutMixIngredient.Hover, h)),
|
|
25903
|
+
w(LayoutMixIngredient.Arrive, mix.arrive), w(LayoutMixIngredient.Phone, mix.phone),
|
|
25904
|
+
];
|
|
25905
|
+
}
|
|
25906
|
+
/** A list mix → the wire's `mix` words and `parts`. */
|
|
25907
|
+
function listMixToWire(mix, source) {
|
|
25908
|
+
return { mix: listMixWords(mix), parts: mix.parts.map(r => `${source}${PART_SEPARATOR}${r}`) };
|
|
25909
|
+
}
|
|
25910
|
+
function expandTrack(t) {
|
|
25911
|
+
const v = Array.isArray(t['values']) ? t['values'].map(x => num(x)) : [];
|
|
25912
|
+
return { prop: String(t['prop']), from: v[0] ?? 0, to: v[1] ?? 0, at: [v[2] ?? 0, v[3] ?? 1], ease: String(t['ease']) };
|
|
25913
|
+
}
|
|
25914
|
+
function expandLayer(l, beat) {
|
|
25915
|
+
const kind = String(l['kind']);
|
|
25916
|
+
const box = Array.isArray(l['box']) ? l['box'].map(x => num(x)) : [];
|
|
25917
|
+
const flags = new Set(strings(l['flags']));
|
|
25918
|
+
const variant = String(l['variant'] ?? NONE$1);
|
|
25919
|
+
const out = {
|
|
25920
|
+
kind: kind,
|
|
25921
|
+
role: String(l['role']),
|
|
25922
|
+
col: [box[0] ?? 1, box[1] ?? 2],
|
|
25923
|
+
row: [box[2] ?? 1, box[3] ?? 2],
|
|
25924
|
+
};
|
|
25925
|
+
if (nonEmpty$2(l['text']))
|
|
25926
|
+
out.text = String(l['text']);
|
|
25927
|
+
const items = strings(l['items']);
|
|
25928
|
+
if (items.length && kind !== 'gallery')
|
|
25929
|
+
out.items = items;
|
|
25930
|
+
if (kind === 'photo' && strings(l['photos'])[0])
|
|
25931
|
+
out.photo = { id: strings(l['photos'])[0] };
|
|
25932
|
+
if (kind === 'gallery')
|
|
25933
|
+
out.gallery = expandGallery(l, flags, variant);
|
|
25934
|
+
if (kind === 'form')
|
|
25935
|
+
out.form = expandForm(l, FORM_PRESETS.includes(variant) ? variant : 'contact');
|
|
25936
|
+
if (kind === 'button' && BUTTON_VARIANTS.includes(variant))
|
|
25937
|
+
out.variant = variant;
|
|
25938
|
+
if (nonEmpty$2(l['size']) && l['size'] !== NONE$1)
|
|
25939
|
+
out.size = String(l['size']);
|
|
25940
|
+
if (nonEmpty$2(l['color']))
|
|
25941
|
+
out.color = String(l['color']);
|
|
25942
|
+
if (nonEmpty$2(l['align']))
|
|
25943
|
+
out.align = String(l['align']);
|
|
25944
|
+
if (num(l['z']))
|
|
25945
|
+
out.z = num(l['z']);
|
|
25946
|
+
if (nonEmpty$2(l['bleed']) && l['bleed'] !== NONE$1)
|
|
25947
|
+
out.bleed = String(l['bleed']);
|
|
25948
|
+
if (num(l['rotate']))
|
|
25949
|
+
out.rotate = num(l['rotate']);
|
|
25950
|
+
if (nonEmpty$2(l['to']))
|
|
25951
|
+
out.to = String(l['to']).trim();
|
|
25952
|
+
if (flags.has('scrim'))
|
|
25953
|
+
out.scrim = true;
|
|
25954
|
+
if (flags.has('kinetic'))
|
|
25955
|
+
out.kinetic = true;
|
|
25956
|
+
if (flags.has('contain'))
|
|
25957
|
+
out.fit = 'contain';
|
|
25958
|
+
if (flags.has(SCRUB_FLAG))
|
|
25959
|
+
out.scrub = true;
|
|
25960
|
+
const enter = String(l['enter'] ?? NONE$1);
|
|
25961
|
+
if (enter.startsWith(CLIP_SIDE)) {
|
|
25962
|
+
out.enter = CLIP;
|
|
25963
|
+
out.from = enter.slice(CLIP_SIDE.length);
|
|
25964
|
+
}
|
|
25965
|
+
else if (enter !== NONE$1)
|
|
25966
|
+
out.enter = enter;
|
|
25967
|
+
if (out.enter)
|
|
25968
|
+
out.beat = beat;
|
|
25969
|
+
if (nonEmpty$2(l['depth']) && l['depth'] !== NONE$1)
|
|
25970
|
+
out.depth = String(l['depth']);
|
|
25971
|
+
if (num(l['inner']))
|
|
25972
|
+
out.inner = num(l['inner']);
|
|
25973
|
+
const motion = (Array.isArray(l['motion']) ? l['motion'] : []).filter(isPlainObject).map(expandTrack);
|
|
25974
|
+
if (motion.length)
|
|
25975
|
+
out.motion = motion;
|
|
25976
|
+
if (nonEmpty$2(l['carry']) && l['carry'] !== NONE$1)
|
|
25977
|
+
out.carry = String(l['carry']).trim();
|
|
25978
|
+
return out;
|
|
25979
|
+
}
|
|
25980
|
+
/**
|
|
25981
|
+
* A section's beats, never asked: the lead enters first; every other entering layer takes the next beat in the order it
|
|
25982
|
+
* was written, held at the stagger's last (Emil's shrinking stagger reads the beat and stops shrinking at the sixth; the
|
|
25983
|
+
* prototype wrote it on fewer than half the layers). ONE rule
|
|
25984
|
+
* for the wire's expansion and for a page a repair edited (`applyLayoutEdits`).
|
|
25985
|
+
*/
|
|
25986
|
+
function derivedBeats(layers) {
|
|
25987
|
+
const last = LAYOUT_BEAT_DELAY.length - 1;
|
|
25988
|
+
let beat = 0;
|
|
25989
|
+
return layers.map(l => (l.role === 'lead' ? 0 : String(l.enter ?? NONE$1) !== NONE$1 ? Math.min(++beat, last) : 0));
|
|
25990
|
+
}
|
|
25991
|
+
function expandSection(s) {
|
|
25992
|
+
const kind = String(s['kind']);
|
|
25993
|
+
const hold = Math.max(0, Math.round(num(s['hold'])));
|
|
25994
|
+
const wired = (Array.isArray(s['layers']) ? s['layers'] : []).filter(isPlainObject);
|
|
25995
|
+
// RD-D20: a section whose ONLY layer names a bound part, a block or a kept section IS that part — a section place.
|
|
25996
|
+
const whole = wired.length === 1 && nonEmpty$2(wired[0]['carry']) && isSectionCarryHandle(String(wired[0]['carry']).trim())
|
|
25997
|
+
? String(wired[0]['carry']).trim() : null;
|
|
25998
|
+
if (whole)
|
|
25999
|
+
return { id: String(s['id'] ?? ''), screens: 1, rows: 1, layers: [], phone: [], carry: whole };
|
|
26000
|
+
const beats = derivedBeats(wired);
|
|
26001
|
+
const layers = wired.map((l, i) => expandLayer(l, beats[i]));
|
|
26002
|
+
const out = {
|
|
26003
|
+
id: String(s['id'] ?? ''),
|
|
26004
|
+
screens: num(s['screens'], 1),
|
|
26005
|
+
rows: num(s['rows'], 8),
|
|
26006
|
+
ground: String(s['ground'] ?? 'ground'),
|
|
26007
|
+
transition: String(s['transition'] ?? 'cut'),
|
|
26008
|
+
layers,
|
|
26009
|
+
phone: Array.isArray(s['phone']) ? s['phone'].map(x => num(x, -1)) : [],
|
|
26010
|
+
};
|
|
26011
|
+
if (kind === 'inhale')
|
|
26012
|
+
out.kind = 'inhale';
|
|
26013
|
+
if (kind === 'signature')
|
|
26014
|
+
out.signature = true;
|
|
26015
|
+
if (hold >= 1)
|
|
26016
|
+
out.pin = true;
|
|
26017
|
+
if (hold >= 2)
|
|
26018
|
+
out.track = hold;
|
|
26019
|
+
return out;
|
|
26020
|
+
}
|
|
26021
|
+
/**
|
|
26022
|
+
* The wire → a layout page. Refuses (issues with a path) only what it cannot read at all — a missing `sections`, a
|
|
26023
|
+
* section or layer that is not an object; everything a model can get wrong in a well-formed answer is `checkLayout`'s.
|
|
26024
|
+
*/
|
|
26025
|
+
function expandLayoutWire(wire, dial) {
|
|
26026
|
+
const issues = [];
|
|
26027
|
+
const add = (path, message) => issues.push({ code: LayoutIssueCode.Shape, path, message });
|
|
26028
|
+
if (!isPlainObject(wire) || !Array.isArray(wire['sections'])) {
|
|
26029
|
+
add('sections', 'the answer has no sections');
|
|
26030
|
+
return { page: null, issues };
|
|
26031
|
+
}
|
|
26032
|
+
wire['sections'].forEach((s, i) => {
|
|
26033
|
+
if (!isPlainObject(s))
|
|
26034
|
+
add(`sections[${i}]`, 'not an object');
|
|
26035
|
+
else if (!Array.isArray(s['layers']))
|
|
26036
|
+
add(`sections[${i}].layers`, 'no layers');
|
|
26037
|
+
else
|
|
26038
|
+
s['layers'].forEach((l, j) => { if (!isPlainObject(l))
|
|
26039
|
+
add(`sections[${i}].layers[${j}]`, 'not an object'); });
|
|
26040
|
+
});
|
|
26041
|
+
if (issues.length)
|
|
26042
|
+
return { page: null, issues };
|
|
26043
|
+
return { page: { dial, sections: wire['sections'].map(expandSection) }, issues: [] };
|
|
26044
|
+
}
|
|
26045
|
+
function layerToWire(l) {
|
|
26046
|
+
const g = l.gallery;
|
|
26047
|
+
const f = l.form;
|
|
26048
|
+
const flags = [
|
|
26049
|
+
l.scrim && 'scrim', l.kinetic && 'kinetic', l.fit === 'contain' && 'contain',
|
|
26050
|
+
g?.centered && 'centered', g?.freeMode && 'freeMode', g?.loop && 'loop', g?.drift && 'drift', g?.scroll && 'scroll', g?.autoplay ? 'autoplay' : null,
|
|
26051
|
+
l.scrub && SCRUB_FLAG,
|
|
26052
|
+
].filter((x) => !!x);
|
|
26053
|
+
const slots = f
|
|
26054
|
+
? [
|
|
26055
|
+
...['title', 'intro', 'submit', 'successTitle', 'successText'].filter(k => nonEmpty$2(f[k])).map(k => ({ slot: k, text: String(f[k]) })),
|
|
26056
|
+
...(f.channel?.label ? [{ slot: 'channel', text: f.channel.label }] : []),
|
|
26057
|
+
...Object.entries(f.options ?? {}).flatMap(([slot, words]) => (words ?? []).map(t => ({ slot, text: t }))),
|
|
26058
|
+
]
|
|
26059
|
+
: [];
|
|
26060
|
+
return {
|
|
26061
|
+
kind: l.kind,
|
|
26062
|
+
role: l.role ?? 'support',
|
|
26063
|
+
text: l.text ?? '',
|
|
26064
|
+
items: g ? g.slides.map(s => s.caption ?? '') : l.items ?? [],
|
|
26065
|
+
photos: g ? g.slides.map(s => s.photo?.id ?? '') : l.photo ? [l.photo.id] : [],
|
|
26066
|
+
source: g?.source ?? '',
|
|
26067
|
+
box: [...(l.col ?? [1, 2]), ...(l.row ?? [1, 2])],
|
|
26068
|
+
size: l.size ?? NONE$1,
|
|
26069
|
+
color: l.color ?? 'ink',
|
|
26070
|
+
align: l.align ?? 'start',
|
|
26071
|
+
z: l.z ?? 0,
|
|
26072
|
+
bleed: l.bleed ?? NONE$1,
|
|
26073
|
+
rotate: l.rotate ?? 0,
|
|
26074
|
+
to: l.to ?? '',
|
|
26075
|
+
variant: l.variant ?? g?.effect ?? f?.preset ?? NONE$1,
|
|
26076
|
+
enter: l.enter === CLIP ? `${CLIP_SIDE}${l.from ?? 'bottom'}` : l.enter ?? NONE$1,
|
|
26077
|
+
depth: l.depth ?? NONE$1,
|
|
26078
|
+
inner: l.inner ?? 0,
|
|
26079
|
+
flags,
|
|
26080
|
+
perView: typeof g?.perView === 'number' ? g.perView : 0,
|
|
26081
|
+
slots,
|
|
26082
|
+
motion: (l.motion ?? []).map(t => ({ prop: t.prop, ease: t.ease ?? 'out', values: [t.from, t.to, ...(t.at ?? [0, 1])] })),
|
|
26083
|
+
...(g?.list ? listMixToWire(g.list, g.source ?? '') : {}),
|
|
26084
|
+
...(l.carry ? { carry: l.carry } : {}),
|
|
26085
|
+
};
|
|
26086
|
+
}
|
|
26087
|
+
/** A section place (RD-D20) on the wire: ONE layer naming its handle — what `expandSection` reads back as the place. */
|
|
26088
|
+
function carryPlaceToWire(s) {
|
|
26089
|
+
const layer = {
|
|
26090
|
+
kind: 'text', role: 'lead', text: '', items: [], photos: [], source: '', box: [1, 13, 1, 2], size: NONE$1, color: 'ink', align: 'start',
|
|
26091
|
+
z: 0, bleed: NONE$1, rotate: 0, to: '', variant: NONE$1, enter: NONE$1, depth: NONE$1, inner: 0, flags: [], perView: 0, slots: [], motion: [],
|
|
26092
|
+
carry: s.carry,
|
|
26093
|
+
};
|
|
26094
|
+
return { id: s.id, kind: 'content', screens: 1, hold: 0, ground: 'ground', rows: 4, transition: 'cut', phone: [0], layers: [layer] };
|
|
26095
|
+
}
|
|
26096
|
+
/** A layout page (or a saved CL2.1 site's sections) → the wire. */
|
|
26097
|
+
function layoutToWire(page) {
|
|
26098
|
+
return {
|
|
26099
|
+
sections: page.sections.map(s => (s.carry ? carryPlaceToWire(s) : {
|
|
26100
|
+
id: s.id,
|
|
26101
|
+
kind: s.signature ? 'signature' : s.kind ?? 'content',
|
|
26102
|
+
screens: s.screens,
|
|
26103
|
+
hold: s.pin ? s.track ?? 1 : 0,
|
|
26104
|
+
ground: s.ground ?? 'ground',
|
|
26105
|
+
rows: s.rows,
|
|
26106
|
+
transition: s.transition ?? 'cut',
|
|
26107
|
+
phone: s.phone ?? [],
|
|
26108
|
+
layers: s.layers.map(layerToWire),
|
|
26109
|
+
})),
|
|
26110
|
+
};
|
|
26111
|
+
}
|
|
26112
|
+
|
|
25285
26113
|
/**
|
|
25286
26114
|
* THE layout composer (premium components M8, gate 1): a page written in the layout language (`layout-language.ts`) in,
|
|
25287
26115
|
* ordinary builder nodes out — the same `createSerializedNode` every composed page is made of, so the builder reloads it
|
|
@@ -25351,7 +26179,32 @@ var LayoutListRole;
|
|
|
25351
26179
|
LayoutListRole["StripsSwipe"] = "list.strips-swipe";
|
|
25352
26180
|
LayoutListRole["StripItem"] = "list.strip-item";
|
|
25353
26181
|
LayoutListRole["Item"] = "list.item";
|
|
26182
|
+
// AW11 (board award-lists): the round-two arrangements — a Repeater's role, drawn by iox-design.css from each row's
|
|
26183
|
+
// index (no runtime), each with its phone variant.
|
|
26184
|
+
LayoutListRole["Hang"] = "list.hang";
|
|
26185
|
+
LayoutListRole["HangTwo"] = "list.hang-two";
|
|
26186
|
+
LayoutListRole["Bento"] = "list.bento";
|
|
26187
|
+
LayoutListRole["Rows"] = "list.rows";
|
|
26188
|
+
LayoutListRole["Stage"] = "list.stage";
|
|
26189
|
+
LayoutListRole["Fan"] = "list.fan";
|
|
26190
|
+
LayoutListRole["FanStack"] = "list.fan-stack";
|
|
26191
|
+
LayoutListRole["Tilted"] = "list.tilted";
|
|
26192
|
+
LayoutListRole["TiltedTwo"] = "list.tilted-two";
|
|
26193
|
+
/** AW11-D16: a band of drifting picture rows (two Marquees), its rows' Repeaters. */
|
|
26194
|
+
LayoutListRole["DriftRows"] = "list.drift";
|
|
26195
|
+
LayoutListRole["DriftRow"] = "list.drift-row";
|
|
26196
|
+
/** AW11-D12: an item's second picture (swap, unveil), over the first inside its frame. */
|
|
26197
|
+
LayoutListRole["Second"] = "list.second";
|
|
25354
26198
|
})(LayoutListRole || (LayoutListRole = {}));
|
|
26199
|
+
/** A round-two arrangement's Repeater role, by the phone the mix asks for (AW11). */
|
|
26200
|
+
const ARRANGE_ROLE = {
|
|
26201
|
+
hang: { stack: LayoutListRole.Hang, swipe: LayoutListRole.Hang, 'two-up': LayoutListRole.HangTwo },
|
|
26202
|
+
bento: { stack: LayoutListRole.Bento, swipe: LayoutListRole.Bento, 'two-up': LayoutListRole.Bento },
|
|
26203
|
+
rows: { stack: LayoutListRole.Rows, swipe: LayoutListRole.Rows, 'two-up': LayoutListRole.Rows },
|
|
26204
|
+
stage: { stack: LayoutListRole.Stage, swipe: LayoutListRole.Stage, 'two-up': LayoutListRole.Stage },
|
|
26205
|
+
fan: { stack: LayoutListRole.FanStack, swipe: LayoutListRole.Fan, 'two-up': LayoutListRole.Fan },
|
|
26206
|
+
tilted: { stack: LayoutListRole.Tilted, swipe: LayoutListRole.Tilted, 'two-up': LayoutListRole.TiltedTwo },
|
|
26207
|
+
};
|
|
25355
26208
|
/** A strips list's Repeater role by the phone the mix asks for. */
|
|
25356
26209
|
const STRIPS_ROLE = {
|
|
25357
26210
|
stack: LayoutListRole.Strips, 'two-up': LayoutListRole.StripsTwo, swipe: LayoutListRole.StripsSwipe,
|
|
@@ -25949,11 +26802,14 @@ function listArriveInteraction(nodeId, arrive, ctx) {
|
|
|
25949
26802
|
const stagger = Math.round(LIST_STAGGER * ctx.pace.gap);
|
|
25950
26803
|
const action = arrive === LayoutListArrive.Together ? { type: 'fadeIn', params: {} }
|
|
25951
26804
|
: arrive === LayoutListArrive.SlideIn ? { type: ctx.rtl ? 'moveRight' : 'moveLeft', params: { distance: LIST_SLIDE_DISTANCE, stagger, cap: LIST_STAGGER_CAP } }
|
|
25952
|
-
:
|
|
26805
|
+
// AW11-D15: each card opens from its bottom edge — the ONE keyframe map's clipReveal, with the shrinking stagger.
|
|
26806
|
+
: arrive === LayoutListArrive.ClipUp ? { type: 'clipReveal', params: { from: LayoutSide.Bottom, stagger, cap: LIST_STAGGER_CAP } }
|
|
26807
|
+
: { type: 'moveUp', params: { distance: LAYOUT_RISE[LayoutRole.Support], stagger, cap: LIST_STAGGER_CAP } };
|
|
26808
|
+
const clip = arrive === LayoutListArrive.ClipUp;
|
|
25953
26809
|
return {
|
|
25954
26810
|
id: `${nodeId}-enter`,
|
|
25955
26811
|
trigger: 'viewportEnter',
|
|
25956
|
-
actions: [{ type: action.type, target: 'self', duration, delay: 0, easing: ctx.ease, once: true, ...(Object.keys(action.params).length ? { params: action.params } : {}) }],
|
|
26812
|
+
actions: [{ type: action.type, target: 'self', duration: clip ? Math.round(duration * CLIP_DURATION) : duration, delay: 0, easing: ctx.ease, once: true, ...(Object.keys(action.params).length ? { params: action.params } : {}) }],
|
|
25957
26813
|
};
|
|
25958
26814
|
}
|
|
25959
26815
|
/** An item's link to its own page: the page's route, its param filled from the row's field. */
|
|
@@ -26061,6 +26917,15 @@ function composeList(id, l, mix, source, list, lc, ctx) {
|
|
|
26061
26917
|
const scheme = layoutBandScheme(lc.section.ground);
|
|
26062
26918
|
if (scheme)
|
|
26063
26919
|
setColorScheme(frame, scheme);
|
|
26920
|
+
// AW11: the mix rides on the frame (design-core LIST_MIX_PROP) — the shared CSS draws its item and hover words from
|
|
26921
|
+
// the classes it becomes, and Bindings ▸ List reads it back.
|
|
26922
|
+
frame.props[LIST_MIX_PROP] = listMixWords(mix).join(' ');
|
|
26923
|
+
// AW11 rule 2 (never cut): what leans, hangs or turns keeps its room inside the frame — its section clips.
|
|
26924
|
+
const room = listOverhang(mix);
|
|
26925
|
+
if (room.blockStart || room.blockEnd || room.inline) {
|
|
26926
|
+
setStyleProps(frame, { padding: `${room.blockStart}px ${room.inline}px ${room.blockEnd}px ${room.inline}px` });
|
|
26927
|
+
phone(frame, { padding: `${Math.round(room.blockStart / 2)}px ${Math.round(room.inline / 2)}px ${Math.round(room.blockEnd / 2)}px ${Math.round(room.inline / 2)}px` });
|
|
26928
|
+
}
|
|
26064
26929
|
// A word the product does not draw yet (the contract's list table): drawn as its stand-in, and said.
|
|
26065
26930
|
let arrange = mix.arrange;
|
|
26066
26931
|
const arrangeWait = listWait('arrange', arrange);
|
|
@@ -26075,23 +26940,29 @@ function composeList(id, l, mix, source, list, lc, ctx) {
|
|
|
26075
26940
|
if (standout && standWait) {
|
|
26076
26941
|
gap(ctx, LayoutGapCode.ListLater, `${lc.path}.gallery.list.standout`, `standing out (${standout.who}${standout.how ? ` · ${standout.how}` : ''}) is drawn in ${standWait.phase}`);
|
|
26077
26942
|
}
|
|
26078
|
-
const masonry = arrange === LayoutListArrange.Masonry;
|
|
26079
|
-
const item = mix.
|
|
26080
|
-
? listCard(`${id}-item`, mix, source, list, masonry, lc.path, ctx, strips ? CardLayout.Overlay : CardLayout.Top)
|
|
26081
|
-
: listPhoto(`${id}-item`, source, list, masonry);
|
|
26943
|
+
const masonry = arrange === LayoutListArrange.Masonry || arrange === LayoutListArrange.Hang;
|
|
26944
|
+
const item = listItem(`${id}-item`, mix, source, list, masonry, lc.path, ctx, strips);
|
|
26082
26945
|
if (strips)
|
|
26083
26946
|
return composeStrips(id, frame, item, mix, source, ctx, listItemRadius(mix));
|
|
26947
|
+
// AW11-D16: drifting picture rows — the Marquee holding the list's pictures, twice.
|
|
26948
|
+
if (mix.move.includes(LayoutListMove.Rows) && arrange === LayoutListArrange.Row && !lc.held)
|
|
26949
|
+
return composeDriftRows(id, frame, item, source, l);
|
|
26084
26950
|
item.interactions = [...item.interactions, listArriveInteraction(item.id, mix.arrive, ctx)];
|
|
26951
|
+
if (mix.arrive === LayoutListArrive.ClipUp)
|
|
26952
|
+
riseInside(item, ctx);
|
|
26085
26953
|
// LI4: the one that stands out — a deck's top card IS its standing out; strips draw their own (wider).
|
|
26086
26954
|
const shown = standout && !standWait && !deck ? standWrap(`${id}-stand`, item, standout) : item;
|
|
26087
|
-
|
|
26955
|
+
const fanDragged = arrange === LayoutListArrange.Fan && mix.move.includes(LayoutListMove.Drag);
|
|
26956
|
+
if (arrange === LayoutListArrange.Row || deck || fanDragged) {
|
|
26088
26957
|
const scrollPlays = mix.move.includes(LayoutListMove.Page) && !lc.held;
|
|
26089
26958
|
const played = scrollPlays || lc.held;
|
|
26090
26959
|
const drag = mix.move.includes(LayoutListMove.Drag);
|
|
26091
26960
|
const slider = create$1(`${id}-slider`, T.Slider, {
|
|
26092
26961
|
// A deck (LI4) is Swiper's cards: one card on top, the rest waiting behind, dragged away or stepped.
|
|
26093
|
-
|
|
26094
|
-
|
|
26962
|
+
// AW11-D1: a fan you drag is Swiper's creative effect, set by the ONE planSwiperOptions (`creativePreset: fan`).
|
|
26963
|
+
dir: ctx.rtl ? 'rtl' : 'ltr', effect: deck ? 'cards' : fanDragged ? 'creative' : 'slide', slidesPerView: deck || fanDragged ? 1 : 'auto',
|
|
26964
|
+
spaceBetween: deck || fanDragged ? 0 : SLIDE_GAP, ...(fanDragged ? { creativePreset: SLIDER_FAN_PRESET } : {}),
|
|
26965
|
+
centeredSlides: !deck && !fanDragged && standout?.who === LayoutListWho.Middle, loop: 'off', freeMode: !deck && !fanDragged && drag && !played, grabCursor: drag && !played,
|
|
26095
26966
|
speed: deck ? Math.round(ctx.pace.support * LIST_DECK_TURN) : GALLERY_SPEED, enableParallax: false, enableAutoplay: mix.move.includes(LayoutListMove.Auto) && !played,
|
|
26096
26967
|
autoplayDelay: LIST_AUTOPLAY_MS, autoplayDisableOnInteraction: true, enableKeyboard: true, scrollPlays,
|
|
26097
26968
|
enableCaption: false, enableCount: false, enableNavigation: mix.move.includes(LayoutListMove.Arrows) && !played,
|
|
@@ -26108,17 +26979,18 @@ function composeList(id, l, mix, source, list, lc, ctx) {
|
|
|
26108
26979
|
phone(slider, scrollPlays || deck ? { height: 'auto' } : { position: 'relative', height: 'auto' });
|
|
26109
26980
|
// A row keeps its own slide width on a phone (most of the screen, the next item peeking): the slider's phone
|
|
26110
26981
|
// default is one slide the full width, unless the phone layer names its slides per view. A deck stays a deck.
|
|
26111
|
-
if (!deck)
|
|
26982
|
+
if (!deck && !fanDragged)
|
|
26112
26983
|
slider.responsive[LAYOUT_PHONE_BREAKPOINT].inputs = { slidesPerView: 'auto' };
|
|
26113
26984
|
if (mix.phone !== LayoutListPhone.Swipe)
|
|
26114
26985
|
gap(ctx, LayoutGapCode.ListLater, `${lc.path}.gallery.list.phone`, `a ${arrange} stays one you swipe on a phone (${mix.phone} is a grid's)`);
|
|
26115
26986
|
const slide = create$1(`${id}-slide`, T.Slide, { caption: '' }, NO_ELEMENT_STYLE);
|
|
26116
|
-
|
|
26987
|
+
const oneWide = deck || fanDragged;
|
|
26988
|
+
setStyleProps(slide, { width: oneWide ? FULL : LIST_ROW_SLIDE, height: FULL, display: 'flex', aspectRatio: 'auto' });
|
|
26117
26989
|
// LI7: a deck's peeking cards and Swiper's shading over them wear the item's corner (the shared CSS rounds the
|
|
26118
26990
|
// shading to the slide's), and a picture's card the look's shadow.
|
|
26119
|
-
if (
|
|
26991
|
+
if (oneWide)
|
|
26120
26992
|
setStyleProps(slide, { borderRadius: listItemRadius(mix), ...(mix.item !== LayoutListItem.Card ? { boxShadow: LIST_PHOTO_SHADOW } : {}) });
|
|
26121
|
-
if (!
|
|
26993
|
+
if (!oneWide)
|
|
26122
26994
|
phone(slide, { width: LIST_ROW_SLIDE_PHONE });
|
|
26123
26995
|
slide.children = [shown];
|
|
26124
26996
|
slider.children = [slide];
|
|
@@ -26127,7 +26999,18 @@ function composeList(id, l, mix, source, list, lc, ctx) {
|
|
|
26127
26999
|
if (node.role === SliderRole.Prev || node.role === SliderRole.Next)
|
|
26128
27000
|
node.props[LAYOUT_TOOLTIP_TRAIT] = node.props['ariaLabel'];
|
|
26129
27001
|
});
|
|
26130
|
-
frame.children = [
|
|
27002
|
+
frame.children = [oneWide ? deckHolder(`${id}-deck`, slider) : slider];
|
|
27003
|
+
return frame;
|
|
27004
|
+
}
|
|
27005
|
+
// AW11: a round-two arrangement is a Repeater whose role the shared CSS draws from each row's index (D1).
|
|
27006
|
+
const roundTwo = ARRANGE_ROLE[arrange];
|
|
27007
|
+
if (roundTwo) {
|
|
27008
|
+
const items = create$1(`${id}-items`, 'Repeater', {}, 'box');
|
|
27009
|
+
items.role = roundTwo[mix.phone];
|
|
27010
|
+
items.bindings.push({ prop: 'source', source, path: '' });
|
|
27011
|
+
setStyleProps(items, { display: 'block', width: FULL });
|
|
27012
|
+
items.children = [shown];
|
|
27013
|
+
frame.children = [items];
|
|
26131
27014
|
return frame;
|
|
26132
27015
|
}
|
|
26133
27016
|
const items = create$1(`${id}-items`, 'Repeater', {}, 'box');
|
|
@@ -26209,6 +27092,95 @@ function composeStrips(id, frame, item, mix, source, ctx, radius) {
|
|
|
26209
27092
|
frame.children = [items];
|
|
26210
27093
|
return frame;
|
|
26211
27094
|
}
|
|
27095
|
+
// ── AW11 (board award-lists): the round-two items, the second picture, the clip-up's inside, the drifting rows ──────
|
|
27096
|
+
/** The fan's Swiper preset (AW11-D1): planSwiperOptions draws a dragged fan from it — the ONE slider planner. */
|
|
27097
|
+
const SLIDER_FAN_PRESET = 'fan';
|
|
27098
|
+
/** A colour block's ground and ink, set per row from its own colour (AW11-D10) — `style:` bindings the renderers apply
|
|
27099
|
+
* through iox-ui `boundStyleOf`, the shared CSS's fallback the look's ramp. */
|
|
27100
|
+
const ITEM_GROUND = 'style:--list-item-ground';
|
|
27101
|
+
const ITEM_INK = 'style:--list-item-ink';
|
|
27102
|
+
const GROUND_PIPE = 'aaGround';
|
|
27103
|
+
const INK_PIPE = 'inkOnGround';
|
|
27104
|
+
/** The parts a name set on its picture keeps (AW11-D8). */
|
|
27105
|
+
const TITLE_ON_PHOTO_PARTS = new Set(['image', 'title', 'meta', 'date']);
|
|
27106
|
+
/**
|
|
27107
|
+
* One list item by the mix's item word: a picture, a card (Card v2 — the palette's recipe), a card whose name is set on
|
|
27108
|
+
* its picture (the Overlay layout, title + a short detail), or a card the shared CSS dresses by the frame's mix classes
|
|
27109
|
+
* (a packshot's even tile, a colour block's own ground, a numeral). Hover words that need a second picture get it here.
|
|
27110
|
+
*/
|
|
27111
|
+
function listItem(id, mix, source, list, masonry, path, ctx, strips) {
|
|
27112
|
+
if (mix.item === LayoutListItem.Photo)
|
|
27113
|
+
return listPhoto(id, source, list, masonry);
|
|
27114
|
+
const onPhoto = mix.item === LayoutListItem.TitleOnPhoto;
|
|
27115
|
+
const shown = onPhoto ? { ...mix, parts: mix.parts.filter(p => TITLE_ON_PHOTO_PARTS.has(p)) } : mix;
|
|
27116
|
+
const card = listCard(id, shown, source, list, masonry && !onPhoto, path, ctx, strips || onPhoto ? CardLayout.Overlay : CardLayout.Top);
|
|
27117
|
+
if (mix.hover.some(h => h === LayoutListHover.Swap || h === LayoutListHover.Unveil))
|
|
27118
|
+
secondPicture(card, source, list);
|
|
27119
|
+
if (mix.item === LayoutListItem.ColourBlock && list.roles['colour']) {
|
|
27120
|
+
card.bindings.push({ prop: ITEM_GROUND, source, path: list.roles['colour'], pipes: [{ name: GROUND_PIPE }] });
|
|
27121
|
+
card.bindings.push({ prop: ITEM_INK, source, path: list.roles['colour'], pipes: [{ name: INK_PIPE }] });
|
|
27122
|
+
}
|
|
27123
|
+
return card;
|
|
27124
|
+
}
|
|
27125
|
+
/** The item's second picture (swap, unveil — AW11-D12): the gallery's second, over the first inside its frame. The first
|
|
27126
|
+
* stays drawn under it, so a second still loading shows the first, never a hole. */
|
|
27127
|
+
function secondPicture(card, source, list) {
|
|
27128
|
+
const gallery = list.roles['gallery'];
|
|
27129
|
+
const media = findByRole(card, CardRole.Media);
|
|
27130
|
+
if (!gallery || !media)
|
|
27131
|
+
return;
|
|
27132
|
+
const second = create$1(`${card.id}-second`, T.Image, { src: '', alt: '' }, NO_ELEMENT_STYLE);
|
|
27133
|
+
second.role = LayoutListRole.Second;
|
|
27134
|
+
setStyleProps(second, { position: 'absolute', top: ZERO$1, right: ZERO$1, bottom: ZERO$1, left: ZERO$1, width: FULL, height: FULL, maxWidth: 'none', objectFit: 'cover' });
|
|
27135
|
+
second.bindings.push({ prop: 'src', source, path: `${gallery}.1` });
|
|
27136
|
+
if (list.roles['title'])
|
|
27137
|
+
second.bindings.push({ prop: 'alt', source, path: list.roles['title'] });
|
|
27138
|
+
setStyleProps(media, { position: 'relative', overflow: 'hidden' });
|
|
27139
|
+
media.children = [...(media.children ?? []), second];
|
|
27140
|
+
}
|
|
27141
|
+
/** The clip-up's inside (AW11-D15): the card's words rise the contract's distance as the card opens from its bottom edge. */
|
|
27142
|
+
function riseInside(item, ctx) {
|
|
27143
|
+
const content = findByRole(item, CardRole.Content);
|
|
27144
|
+
if (!content)
|
|
27145
|
+
return;
|
|
27146
|
+
const stagger = Math.round(LIST_STAGGER * ctx.pace.gap);
|
|
27147
|
+
content.interactions = [...content.interactions, {
|
|
27148
|
+
id: `${content.id}-enter`,
|
|
27149
|
+
trigger: 'viewportEnter',
|
|
27150
|
+
actions: [{ type: 'moveUp', target: 'self', duration: ctx.pace.support, delay: Math.round(ctx.pace.support / 3), easing: ctx.ease, once: true,
|
|
27151
|
+
params: { distance: LIST_RHYTHMS.clipUpRise, stagger, cap: LIST_STAGGER_CAP } }],
|
|
27152
|
+
}];
|
|
27153
|
+
}
|
|
27154
|
+
/**
|
|
27155
|
+
* Drifting picture rows (AW11-D16): two Marquees (the M6 recipe — a pause control first, still under reduced motion and a
|
|
27156
|
+
* look whose motion is Off, the ends faded), each holding the list's pictures, at different speeds and opposite ways.
|
|
27157
|
+
*/
|
|
27158
|
+
function composeDriftRows(id, frame, item, source, l) {
|
|
27159
|
+
frame.role = LayoutListRole.DriftRows;
|
|
27160
|
+
const rows = [
|
|
27161
|
+
{ speed: MarqueeSpeed.Normal, direction: MarqueeDirection.Start },
|
|
27162
|
+
{ speed: MarqueeSpeed.Slow, direction: MarqueeDirection.End },
|
|
27163
|
+
].map((how, k) => {
|
|
27164
|
+
const band = buildMarqueeRecipe(partFactory(`${id}-row${k + 1}`), { words: [] });
|
|
27165
|
+
setMarqueeSettings(band, { ...how, fade: true });
|
|
27166
|
+
const track = findByRole(band, MarqueeRole.Track);
|
|
27167
|
+
const items = create$1(`${id}-row${k + 1}-items`, 'Repeater', {}, 'box');
|
|
27168
|
+
items.role = LayoutListRole.DriftRow;
|
|
27169
|
+
items.bindings.push({ prop: 'source', source, path: '' });
|
|
27170
|
+
setStyleProps(items, { display: 'block', width: 'auto' });
|
|
27171
|
+
const copy = structuredClone(item);
|
|
27172
|
+
walkSerialized([copy], n => { n.id = n.id.replace(`${id}-item`, `${id}-row${k + 1}-item`); });
|
|
27173
|
+
items.children = [copy];
|
|
27174
|
+
if (track)
|
|
27175
|
+
track.children = [items];
|
|
27176
|
+
if (l.text)
|
|
27177
|
+
band.props['ariaLabel'] = l.text;
|
|
27178
|
+
return band;
|
|
27179
|
+
});
|
|
27180
|
+
setStyleProps(frame, { display: 'flex', flexDirection: 'column', gap: LIST_GAP });
|
|
27181
|
+
frame.children = rows;
|
|
27182
|
+
return frame;
|
|
27183
|
+
}
|
|
26212
27184
|
/** Recipe parts stamped with this composer's ids (`<id>-<key>`). */
|
|
26213
27185
|
function partFactory(id) {
|
|
26214
27186
|
return spec => create$1(`${id}-${spec.key}`, spec.type, { ...(spec.props ?? {}) }, spec.elementStyle ?? null);
|
|
@@ -26908,7 +27880,7 @@ function stableHash(text) {
|
|
|
26908
27880
|
return h.toString(36).padStart(7, '0').slice(-6);
|
|
26909
27881
|
}
|
|
26910
27882
|
const create = (id, type, props = {}, elementStyle) => createSerializedNode(id, type, props, elementStyle, COMPOSED);
|
|
26911
|
-
function nonEmpty$
|
|
27883
|
+
function nonEmpty$1(v) {
|
|
26912
27884
|
return typeof v === 'string' && v.trim() !== '';
|
|
26913
27885
|
}
|
|
26914
27886
|
/** A pattern's own words with the compose-time variables filled: `{year}`, `{business.name}`. */
|
|
@@ -26924,16 +27896,16 @@ function ownWords(pn, locale) {
|
|
|
26924
27896
|
function chooseText(pn, ctx) {
|
|
26925
27897
|
const fact = pn.ph && FACT_KEYS.includes(pn.ph) ? pn.ph : null;
|
|
26926
27898
|
const slotValue = pn.slot ? ctx.section?.slots?.[pn.slot] : undefined;
|
|
26927
|
-
if (nonEmpty$
|
|
27899
|
+
if (nonEmpty$1(slotValue))
|
|
26928
27900
|
return { value: slotValue };
|
|
26929
27901
|
if (pn.fromBusiness) {
|
|
26930
27902
|
const v = ctx.plan.business[pn.fromBusiness];
|
|
26931
|
-
if (nonEmpty$
|
|
27903
|
+
if (nonEmpty$1(v))
|
|
26932
27904
|
return { value: v };
|
|
26933
27905
|
}
|
|
26934
27906
|
if (fact) {
|
|
26935
27907
|
const given = ctx.plan.business.facts?.[fact];
|
|
26936
|
-
return nonEmpty$
|
|
27908
|
+
return nonEmpty$1(given) ? { value: given } : { value: SITE_FACT_LABELS[fact], placeholder: { kind: PlaceholderKind.Fact, fact } };
|
|
26937
27909
|
}
|
|
26938
27910
|
const own = pn.text === undefined ? undefined : fillVariables(ownWords(pn, ctx.plan.locale), ctx);
|
|
26939
27911
|
if (pn.ph === PatternPlaceholder.Copy)
|
|
@@ -27039,7 +28011,7 @@ function layoutGalleryLists(plan) {
|
|
|
27039
28011
|
/** The words a list's roles are called in the brief — what a visitor would see, never the field name. */
|
|
27040
28012
|
const LIST_ROLE_WORDS = {
|
|
27041
28013
|
title: 'name', summary: 'summary', image: 'picture', meta: 'detail', date: 'date', gallery: 'pictures',
|
|
27042
|
-
logo: 'mark', icon: 'icon', quote: 'quote', person: 'person', link: 'link', price: 'price', compareAt: 'earlier price',
|
|
28014
|
+
logo: 'mark', icon: 'icon', quote: 'quote', person: 'person', link: 'link', colour: 'colour', price: 'price', compareAt: 'earlier price',
|
|
27043
28015
|
};
|
|
27044
28016
|
/** A text role whose planned samples run past this many words (median) is called long: a small card would cut it. */
|
|
27045
28017
|
const LIST_LONG_WORDS = 20;
|
|
@@ -27061,7 +28033,13 @@ function layoutListShapes(plan) {
|
|
|
27061
28033
|
});
|
|
27062
28034
|
// A shop list holds the plan's sample products (the build writes them unless the shop has its own).
|
|
27063
28035
|
const count = d.type === PlanDataSourceType.Shop ? plan.shop?.products?.length : type?.seed?.count;
|
|
27064
|
-
|
|
28036
|
+
// AW11: how long the planned names run (a long one is not set on its picture).
|
|
28037
|
+
const titleField = roleField(type, ContentRole.Title);
|
|
28038
|
+
const titles = titleField ? (perItem[titleField] ?? []).filter(s => typeof s === 'string') : [];
|
|
28039
|
+
return {
|
|
28040
|
+
alias: d.alias, label: type?.label ?? d.alias, items: typeof count === 'number' && count > 0 ? count : null, roles: played, long,
|
|
28041
|
+
...(titles.length ? { titleWords: median(titles.map(wordCount)) } : {}),
|
|
28042
|
+
};
|
|
27065
28043
|
});
|
|
27066
28044
|
}
|
|
27067
28045
|
/**
|
|
@@ -28067,12 +29045,12 @@ function fitSeo(text, max) {
|
|
|
28067
29045
|
*/
|
|
28068
29046
|
function composePageSeo(page, plan) {
|
|
28069
29047
|
const name = plan.business.name.trim();
|
|
28070
|
-
const tagline = nonEmpty$
|
|
28071
|
-
const city = nonEmpty$
|
|
29048
|
+
const tagline = nonEmpty$1(plan.business.tagline) ? plan.business.tagline.trim() : '';
|
|
29049
|
+
const city = nonEmpty$1(plan.business.facts?.city) ? plan.business.facts.city.trim() : '';
|
|
28072
29050
|
const perItem = !!page.routeSource;
|
|
28073
|
-
const title = nonEmpty$
|
|
29051
|
+
const title = nonEmpty$1(page.seo?.title) ? page.seo.title
|
|
28074
29052
|
: perItem ? undefined : fitSeo(page.isHome ? (tagline ? `${name}${SEO_LINE}${tagline}` : name) : `${page.name}${SEO_JOIN}${name}`, SEO_TITLE_MAX);
|
|
28075
|
-
const description = nonEmpty$
|
|
29053
|
+
const description = nonEmpty$1(page.seo?.description) ? page.seo.description
|
|
28076
29054
|
: perItem ? undefined : fitSeo(tagline || `${page.name}${SEO_LINE}${name}${city ? `, ${city}` : ''}.`, SEO_DESCRIPTION_MAX);
|
|
28077
29055
|
return { ...(title ? { title } : {}), ...(description ? { description } : {}) };
|
|
28078
29056
|
}
|
|
@@ -28193,7 +29171,7 @@ function composeLayoutPage(page, layout, plan, context, design, placeholders, re
|
|
|
28193
29171
|
const missing = [];
|
|
28194
29172
|
node.props[prop] = value.replace(FACT_TOKEN, (_, key) => {
|
|
28195
29173
|
const given = facts[key];
|
|
28196
|
-
if (nonEmpty$
|
|
29174
|
+
if (nonEmpty$1(given))
|
|
28197
29175
|
return given.trim();
|
|
28198
29176
|
missing.push(key);
|
|
28199
29177
|
return SITE_FACT_LABELS[key] ?? key;
|
|
@@ -28232,7 +29210,7 @@ function composeSite(plan, context) {
|
|
|
28232
29210
|
const issues = [];
|
|
28233
29211
|
const routes = new Set(plan.pages.map(p => p.route));
|
|
28234
29212
|
const relatives = new Map(plan.dataSources.map(d => [d.alias, d.type === PlanDataSourceType.Relative ? { type: d.type, of: d.of, op: d.op } : { type: d.type }]));
|
|
28235
|
-
const email = nonEmpty$
|
|
29213
|
+
const email = nonEmpty$1(plan.business.facts?.email) ? plan.business.facts.email.trim() : null;
|
|
28236
29214
|
const base = { plan, placeholders, issues, routes, year: context.year, email, navPage: null };
|
|
28237
29215
|
// AW-D23 / MB-D6: a lower plan wears its own words of the look's motion language (a Pro Feel arrives on today's
|
|
28238
29216
|
// curve, a Pro move fades) — in the tokens the build applies AND the entrances it stamps.
|
|
@@ -28567,11 +29545,11 @@ function navHeaderContext(input) {
|
|
|
28567
29545
|
return headerContextOfPlan(navHeaderPlan(input), input.shop ?? null);
|
|
28568
29546
|
}
|
|
28569
29547
|
function composeNavHeader(input, options) {
|
|
28570
|
-
if (!nonEmpty$
|
|
29548
|
+
if (!nonEmpty$1(options?.id))
|
|
28571
29549
|
throw new ComposeError('composeNavHeader needs the header id');
|
|
28572
29550
|
const plan = navHeaderPlan(input);
|
|
28573
29551
|
const pages = plan.pages;
|
|
28574
|
-
const email = nonEmpty$
|
|
29552
|
+
const email = nonEmpty$1(input.business.facts?.email) ? input.business.facts.email.trim() : null;
|
|
28575
29553
|
const issues = [];
|
|
28576
29554
|
// HI1: ONE recipe with composeSite — the mix drawn as the product draws it, checked against this studio, arranged.
|
|
28577
29555
|
const context = headerContextOfPlan(plan, input.shop ?? null);
|
|
@@ -28611,7 +29589,7 @@ const PRICING_PATTERN = 'pricing.tiers';
|
|
|
28611
29589
|
* words, unlinked, for the author to link. Pure.
|
|
28612
29590
|
*/
|
|
28613
29591
|
function composeSection(patternId, input, options) {
|
|
28614
|
-
if (!nonEmpty$
|
|
29592
|
+
if (!nonEmpty$1(options?.id))
|
|
28615
29593
|
throw new ComposeError('composeSection needs the section id');
|
|
28616
29594
|
const pattern = patternById(patternId);
|
|
28617
29595
|
if (!pattern)
|
|
@@ -28621,7 +29599,7 @@ function composeSection(patternId, input, options) {
|
|
|
28621
29599
|
const business = input.business ?? { name: '' };
|
|
28622
29600
|
const pages = navPagePlans(input.pages ?? []);
|
|
28623
29601
|
const plan = { business, pages, dataSources: [], contentTypes: [] };
|
|
28624
|
-
const email = nonEmpty$
|
|
29602
|
+
const email = nonEmpty$1(business.facts?.email) ? business.facts.email.trim() : null;
|
|
28625
29603
|
const placeholders = [];
|
|
28626
29604
|
const issues = [];
|
|
28627
29605
|
const ctx = {
|
|
@@ -28761,7 +29739,7 @@ function openingContextOf(input) {
|
|
|
28761
29739
|
* written for them. The root stores the mix (OB-5). Pure.
|
|
28762
29740
|
*/
|
|
28763
29741
|
function composeOpening(input, options) {
|
|
28764
|
-
if (!nonEmpty$
|
|
29742
|
+
if (!nonEmpty$1(options?.id))
|
|
28765
29743
|
throw new ComposeError('composeOpening needs the section id');
|
|
28766
29744
|
const business = input.business ?? { name: '' };
|
|
28767
29745
|
const context = openingContextOf(input);
|
|
@@ -28769,7 +29747,7 @@ function composeOpening(input, options) {
|
|
|
28769
29747
|
const checked = input.asAsked ? { mix: drawn, repairs: [] } : checkOpening(drawn, context);
|
|
28770
29748
|
const pages = navPagePlans(input.pages ?? []);
|
|
28771
29749
|
const plan = { business, pages, dataSources: [], contentTypes: [], locale: input.locale };
|
|
28772
|
-
const email = nonEmpty$
|
|
29750
|
+
const email = nonEmpty$1(business.facts?.email) ? business.facts.email.trim() : null;
|
|
28773
29751
|
const placeholders = [];
|
|
28774
29752
|
const issues = [];
|
|
28775
29753
|
for (const said of [...gaps.map(g => `the opening's ${g.ingredient} "${g.word}" is drawn as ${g.drawnAs ? `"${g.drawnAs}"` : 'nothing'} until ${g.phase}`), ...checked.repairs.map(r => r.said)]) {
|
|
@@ -29766,8 +30744,8 @@ class PlanWireShapeError extends Error {
|
|
|
29766
30744
|
}
|
|
29767
30745
|
// ── The format ─────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
29768
30746
|
const unique = (values) => [...new Set(values)];
|
|
29769
|
-
const NONE
|
|
29770
|
-
const orNone = (values) => jsonOneOf([NONE
|
|
30747
|
+
const NONE = '';
|
|
30748
|
+
const orNone = (values) => jsonOneOf([NONE, ...values]);
|
|
29771
30749
|
const closedOrText = (values) => (values.length ? jsonOneOf(values) : jsonText());
|
|
29772
30750
|
const shaped = (entry, properties) => jsonShapedObject(PLAN_WIRE_SHAPE[entry], properties, `wire ${entry}`);
|
|
29773
30751
|
/** The patterns a page section may use (every non-global one but a film's, which `placeFilm` places), in library order. */
|
|
@@ -29880,7 +30858,7 @@ function planWirePartJsonSchema(part, options = {}) {
|
|
|
29880
30858
|
return jsonShapedObject(planWirePartShape(part, options), Object.fromEntries(PLAN_PART_KEYS[part].map(k => [k, PLAN_TOP_SCHEMAS[k](options)])), `wire plan ${part}`);
|
|
29881
30859
|
}
|
|
29882
30860
|
/** A value standing for "absent": `''` (or nothing at all). */
|
|
29883
|
-
const isNone = (v) => v === undefined || v === NONE
|
|
30861
|
+
const isNone = (v) => v === undefined || v === NONE;
|
|
29884
30862
|
const optional = (name, v, none = isNone) => (none(v) ? {} : { [name]: v });
|
|
29885
30863
|
const emptyList = (v) => v === undefined || (Array.isArray(v) && v.length === 0);
|
|
29886
30864
|
/** `[{ <keyName>, <valueName> }]` → `{ key: value }`; anything else is left for the gate to refuse. */
|
|
@@ -30009,7 +30987,7 @@ function expandPlanWire(parts, context) {
|
|
|
30009
30987
|
...rest,
|
|
30010
30988
|
...expandWireGlobals(globals),
|
|
30011
30989
|
...(sells === undefined ? {} : { shop: sells }),
|
|
30012
|
-
...(isPlainObject(direction) && direction['idea'] === NONE
|
|
30990
|
+
...(isPlainObject(direction) && direction['idea'] === NONE ? {} : direction === undefined ? {} : { direction }),
|
|
30013
30991
|
version: SITE_PLAN_VERSION,
|
|
30014
30992
|
source: { ...context.source },
|
|
30015
30993
|
business: expandWireBusiness(business, context.facts),
|
|
@@ -30057,7 +31035,7 @@ function expandWireGlobals(globals) {
|
|
|
30057
31035
|
}
|
|
30058
31036
|
// ── The plan → the wire ────────────────────────────────────────────────────────────────────────────────────────────
|
|
30059
31037
|
function fieldToWire(field) {
|
|
30060
|
-
return { name: field.name, controller: field.controller, required: field.required ?? false, note: field.note ?? NONE
|
|
31038
|
+
return { name: field.name, controller: field.controller, required: field.required ?? false, note: field.note ?? NONE };
|
|
30061
31039
|
}
|
|
30062
31040
|
function contentTypeToWire(type, options = {}) {
|
|
30063
31041
|
const played = type.roles;
|
|
@@ -30069,37 +31047,37 @@ function contentTypeToWire(type, options = {}) {
|
|
|
30069
31047
|
};
|
|
30070
31048
|
}
|
|
30071
31049
|
function dataSourceToWire(source) {
|
|
30072
|
-
const blank = { alias: source.alias, type: source.type, mode: NONE
|
|
31050
|
+
const blank = { alias: source.alias, type: source.type, mode: NONE, contentType: NONE, limit: 0, filterField: NONE, routeParam: NONE, of: NONE, op: NONE, within: NONE };
|
|
30073
31051
|
if (source.type === PlanDataSourceType.Relative)
|
|
30074
31052
|
return { ...blank, of: source.of, op: source.op, within: source.within };
|
|
30075
31053
|
if (source.type === PlanDataSourceType.Shop) {
|
|
30076
31054
|
return {
|
|
30077
31055
|
...blank, mode: source.mode, contentType: source.resource, limit: source.limit ?? 0,
|
|
30078
|
-
filterField: source.filterByRouteParam?.field ?? NONE
|
|
31056
|
+
filterField: source.filterByRouteParam?.field ?? NONE, routeParam: source.filterByRouteParam?.routeParam ?? NONE,
|
|
30079
31057
|
};
|
|
30080
31058
|
}
|
|
30081
31059
|
return {
|
|
30082
31060
|
...blank, mode: source.mode, contentType: source.contentType, limit: source.limit ?? 0,
|
|
30083
|
-
filterField: source.filterByRouteParam?.field ?? NONE
|
|
31061
|
+
filterField: source.filterByRouteParam?.field ?? NONE, routeParam: source.filterByRouteParam?.routeParam ?? NONE,
|
|
30084
31062
|
};
|
|
30085
31063
|
}
|
|
30086
31064
|
function sectionToWire(section) {
|
|
30087
31065
|
return {
|
|
30088
31066
|
pattern: section.pattern, slots: mapToList(section.slots, 'slot', 'text'), links: mapToList(section.links, 'slot', 'route'),
|
|
30089
|
-
binding: section.binding ?? NONE
|
|
31067
|
+
binding: section.binding ?? NONE, without: [...(section.without ?? [])], form: section.form ?? NONE, enter: section.enter ?? NONE,
|
|
30090
31068
|
};
|
|
30091
31069
|
}
|
|
30092
31070
|
function pageToWire(page, options = {}) {
|
|
30093
31071
|
return {
|
|
30094
|
-
key: page.key, name: page.name, route: page.route, inNav: page.inNav ?? false, archetype: page.archetype ?? NONE
|
|
30095
|
-
template: page.template ?? NONE
|
|
30096
|
-
seo: { title: page.seo?.title ?? NONE
|
|
31072
|
+
key: page.key, name: page.name, route: page.route, inNav: page.inNav ?? false, archetype: page.archetype ?? NONE, need: page.need ?? NONE,
|
|
31073
|
+
template: page.template ?? NONE, routeSource: page.routeSource ?? NONE,
|
|
31074
|
+
seo: { title: page.seo?.title ?? NONE, description: page.seo?.description ?? NONE },
|
|
30097
31075
|
...(options.children === false ? {} : { sections: page.sections.map(sectionToWire) }),
|
|
30098
31076
|
compose: page.compose ?? false,
|
|
30099
31077
|
};
|
|
30100
31078
|
}
|
|
30101
31079
|
const PLAN_TO_WIRE = {
|
|
30102
|
-
business: plan => ({ name: plan.business.name, tagline: plan.business.tagline ?? NONE
|
|
31080
|
+
business: plan => ({ name: plan.business.name, tagline: plan.business.tagline ?? NONE }),
|
|
30103
31081
|
contentTypes: plan => plan.contentTypes.map(type => contentTypeToWire(type)),
|
|
30104
31082
|
dataSources: plan => plan.dataSources.map(dataSourceToWire),
|
|
30105
31083
|
pages: plan => plan.pages.map(page => pageToWire(page)),
|
|
@@ -30109,7 +31087,7 @@ const PLAN_TO_WIRE = {
|
|
|
30109
31087
|
// AW6: the award tier's wire writes the body ([] = none); every other tier's has no such key (its plan wears none).
|
|
30110
31088
|
...(isAward(options) ? { [BODY_WIRE_KEY]: [...(plan.mixes?.body ?? [])] } : {}),
|
|
30111
31089
|
}),
|
|
30112
|
-
direction: plan => ({ idea: plan.direction?.idea ?? NONE
|
|
31090
|
+
direction: plan => ({ idea: plan.direction?.idea ?? NONE, cliche: plan.direction?.cliche ?? NONE, flip: plan.direction?.flip ?? NONE, rules: [...(plan.direction?.rules ?? [])] }),
|
|
30113
31091
|
shop: plan => (plan.shop?.products ?? []).map(p => ({ name: p.name, category: p.category, description: p.description, options: p.options.map(o => ({ name: o.name, values: [...o.values] })) })),
|
|
30114
31092
|
};
|
|
30115
31093
|
/** One part of the plan on the wire: what that part's request (asked at `options`' tier) would have answered. */
|
|
@@ -30207,7 +31185,7 @@ function additionSourcesOf(typeName) {
|
|
|
30207
31185
|
];
|
|
30208
31186
|
}
|
|
30209
31187
|
const list = (value) => (Array.isArray(value) ? value : []);
|
|
30210
|
-
const text
|
|
31188
|
+
const text = (value) => (typeof value === 'string' ? value : '');
|
|
30211
31189
|
/** Does the Pages answer ask for content (so the Content request is asked). */
|
|
30212
31190
|
function additionsNeedContent(pagesAnswer) {
|
|
30213
31191
|
return isPlainObject(pagesAnswer) && (list(pagesAnswer['newTypes']).length > 0 || list(pagesAnswer['newItems']).length > 0);
|
|
@@ -30219,21 +31197,21 @@ function additionsNeedContent(pagesAnswer) {
|
|
|
30219
31197
|
function expandAdditions(pagesAnswer, contentAnswer) {
|
|
30220
31198
|
const pages = isPlainObject(pagesAnswer) ? pagesAnswer : {};
|
|
30221
31199
|
const content = isPlainObject(contentAnswer) ? contentAnswer : {};
|
|
30222
|
-
const newTypes = list(pages['newTypes']).filter(isPlainObject).map(t => ({ name: text
|
|
31200
|
+
const newTypes = list(pages['newTypes']).filter(isPlainObject).map(t => ({ name: text(t['name']), label: text(t['label']) }));
|
|
30223
31201
|
return {
|
|
30224
31202
|
pages: list(pages['pages']).filter(isPlainObject).map(wire => {
|
|
30225
31203
|
const { origin, reason, ...page } = wire;
|
|
30226
|
-
return { page: expandWirePage(page), origin: origin, reason: text
|
|
31204
|
+
return { page: expandWirePage(page), origin: origin, reason: text(reason) };
|
|
30227
31205
|
}),
|
|
30228
31206
|
contentTypes: list(content['contentTypes']).map(t => expandWireContentType(t)),
|
|
30229
31207
|
dataSources: newTypes.filter(t => t.name).flatMap(t => additionSourcesOf(t.name)),
|
|
30230
31208
|
items: list(content['items']).filter(isPlainObject).map(item => ({
|
|
30231
|
-
contentType: text
|
|
30232
|
-
values: Object.fromEntries(list(item['values']).filter(isPlainObject).map(v => [text
|
|
31209
|
+
contentType: text(item['contentType']),
|
|
31210
|
+
values: Object.fromEntries(list(item['values']).filter(isPlainObject).map(v => [text(v['field']), v['value']])),
|
|
30233
31211
|
})),
|
|
30234
31212
|
asks: {
|
|
30235
31213
|
newTypes,
|
|
30236
|
-
newItems: list(pages['newItems']).filter(isPlainObject).map(n => ({ contentType: text
|
|
31214
|
+
newItems: list(pages['newItems']).filter(isPlainObject).map(n => ({ contentType: text(n['contentType']), count: Number(n['count']) || 0 })),
|
|
30237
31215
|
},
|
|
30238
31216
|
};
|
|
30239
31217
|
}
|
|
@@ -31241,7 +32219,7 @@ const NO_INDEX = -1;
|
|
|
31241
32219
|
/** A new page or content type on the wire: its children are edits of their own. */
|
|
31242
32220
|
const CHILDLESS = { children: false };
|
|
31243
32221
|
/** A list holding exactly one object: none → absent, one → it (expanded), more → the list (the gate refuses it). */
|
|
31244
|
-
const oneOf
|
|
32222
|
+
const oneOf = (schema, expand, toWire, what) => ({
|
|
31245
32223
|
text: `${what}[] — exactly one when the op takes it`,
|
|
31246
32224
|
none: [],
|
|
31247
32225
|
schema: () => jsonListOf(schema()),
|
|
@@ -31265,12 +32243,12 @@ const EDIT_WIRE = {
|
|
|
31265
32243
|
binding: textKey('setSectionData: the list source the section repeats'),
|
|
31266
32244
|
contentType: textKey('addField: a content type of the plan'),
|
|
31267
32245
|
newPage: {
|
|
31268
|
-
...oneOf
|
|
32246
|
+
...oneOf(() => wirePageJsonSchema(CHILDLESS), v => expandWirePage(v, CHILDLESS), p => pageToWire(p, CHILDLESS), 'page'),
|
|
31269
32247
|
text: 'page[] — exactly one when the op takes it, WITHOUT sections: each is an addSection after it',
|
|
31270
32248
|
},
|
|
31271
|
-
newSection: oneOf
|
|
32249
|
+
newSection: oneOf(wireSectionJsonSchema, expandWireSection, sectionToWire, 'section'),
|
|
31272
32250
|
newContentType: {
|
|
31273
|
-
...oneOf
|
|
32251
|
+
...oneOf(() => wireContentTypeJsonSchema(CHILDLESS), v => expandWireContentType(v, CHILDLESS), t => contentTypeToWire(t, CHILDLESS), 'contentType'),
|
|
31274
32252
|
text: "contentType[] — exactly one when the op takes it, WITHOUT fields: each is an addField after it (the samples' values stay in its seed)",
|
|
31275
32253
|
},
|
|
31276
32254
|
dataSources: {
|
|
@@ -31279,7 +32257,7 @@ const EDIT_WIRE = {
|
|
|
31279
32257
|
expand: v => (Array.isArray(v) ? v.map(expandWireDataSource) : v),
|
|
31280
32258
|
toWire: (v) => v.map(dataSourceToWire),
|
|
31281
32259
|
},
|
|
31282
|
-
newField: oneOf
|
|
32260
|
+
newField: oneOf(wireFieldJsonSchema, expandWireField, fieldToWire, 'field'),
|
|
31283
32261
|
sample: { text: "string | string[] — addField: the samples' value for it", none: '', schema: () => jsonAnyOf([jsonText(), jsonListOf(jsonText())]) },
|
|
31284
32262
|
};
|
|
31285
32263
|
/** Each op's keys (`PLAN_EDIT_SHAPE`) → the wire key that carries it. */
|
|
@@ -31616,14 +32594,14 @@ function routeMatches(pattern, path) {
|
|
|
31616
32594
|
const b = String(path ?? '').split(/[?#]/)[0].split('/').filter(Boolean);
|
|
31617
32595
|
return a.length === b.length && a.every((seg, i) => seg.startsWith(':') || seg === b[i]);
|
|
31618
32596
|
}
|
|
31619
|
-
const nonEmpty
|
|
32597
|
+
const nonEmpty = (v) => typeof v === 'string' && v.trim() !== '';
|
|
31620
32598
|
/** A stored SEO field (a string, or `{ override, binding, auto }`) has a value, or may be derived. */
|
|
31621
32599
|
function seoField(raw, derivable) {
|
|
31622
|
-
if (nonEmpty
|
|
32600
|
+
if (nonEmpty(raw))
|
|
31623
32601
|
return true;
|
|
31624
32602
|
if (raw && typeof raw === 'object') {
|
|
31625
32603
|
const v = raw;
|
|
31626
|
-
if (nonEmpty
|
|
32604
|
+
if (nonEmpty(v.override) || v.binding)
|
|
31627
32605
|
return true;
|
|
31628
32606
|
if (v.auto === false)
|
|
31629
32607
|
return false;
|
|
@@ -31635,7 +32613,7 @@ function hasContent(layout, type) {
|
|
|
31635
32613
|
walkSerialized(layout, n => {
|
|
31636
32614
|
if (n.type !== type || found)
|
|
31637
32615
|
return;
|
|
31638
|
-
found = nonEmpty
|
|
32616
|
+
found = nonEmpty(n.props['content']) || n.bindings.some(b => b.prop === 'content');
|
|
31639
32617
|
});
|
|
31640
32618
|
return found;
|
|
31641
32619
|
}
|
|
@@ -31664,7 +32642,7 @@ function checkForms(ctx, snapshot, pages) {
|
|
|
31664
32642
|
if (n.type !== FORM_NODE_TYPE)
|
|
31665
32643
|
return;
|
|
31666
32644
|
const spec = collectFormSpec(n);
|
|
31667
|
-
if (!spec || !nonEmpty
|
|
32645
|
+
if (!spec || !nonEmpty(spec.formId))
|
|
31668
32646
|
add(ctx, SiteFindingCode.FormWithoutId, 'A form has no id, so what visitors send is never stored.', { ...where, nodeId: n.id });
|
|
31669
32647
|
if (spec?.actions.some(a => a.type === EMAIL_DELIVERY) && snapshot.connectors[MAILER] !== true) {
|
|
31670
32648
|
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 });
|
|
@@ -31870,14 +32848,14 @@ function checkAccessibility(ctx, snapshot, pages) {
|
|
|
31870
32848
|
eachNode(snapshot, pages, (n, where) => {
|
|
31871
32849
|
if (n.type !== 'Image')
|
|
31872
32850
|
return;
|
|
31873
|
-
if (!nonEmpty
|
|
32851
|
+
if (!nonEmpty(n.props['src']) && !n.bindings.some(b => b.prop === 'src')) {
|
|
31874
32852
|
if (!said.has(n.id))
|
|
31875
32853
|
add(ctx, SiteFindingCode.PictureMissing, 'A box on this page waits for a picture — add one of yours.', { ...where, nodeId: n.id });
|
|
31876
32854
|
return;
|
|
31877
32855
|
}
|
|
31878
32856
|
const decorative = n.props['alt'] === '' && n.props['decorative'] === true;
|
|
31879
32857
|
const bound = n.bindings.some(b => b.prop === 'alt');
|
|
31880
|
-
if (!decorative && !bound && !nonEmpty
|
|
32858
|
+
if (!decorative && !bound && !nonEmpty(n.props['alt']))
|
|
31881
32859
|
add(ctx, SiteFindingCode.ImageWithoutAlt, 'A picture has no description for people who cannot see it.', { ...where, nodeId: n.id });
|
|
31882
32860
|
});
|
|
31883
32861
|
}
|
|
@@ -32918,440 +33896,6 @@ function luminanceOf(colour) {
|
|
|
32918
33896
|
return c ? relativeLuminance(c) : null;
|
|
32919
33897
|
}
|
|
32920
33898
|
|
|
32921
|
-
/**
|
|
32922
|
-
* The LAYOUT WIRE (premium M8 gate 2, M8-G2-D2): the strict format a model writes ONE composed page in. Every key is
|
|
32923
|
-
* required — "none" is `''`, `0`, `[]` or `'none'` — so the request stays at 37 properties, no optional key and no
|
|
32924
|
-
* union (`strictSchemaComplexity`, held by iox-cms strict-schemas.spec). `expandLayoutWire` turns it into the layout
|
|
32925
|
-
* language (`LayoutSection[]`, what `checkLayout` judges and `composeLayout` stamps); `layoutToWire` writes a layout back
|
|
32926
|
-
* (the three proof sites, a repair's starting point). What the wire leaves out is derived, never asked: a layer's beat
|
|
32927
|
-
* (the order it is written), the look, the pace and ease, the nav, the site's name and language.
|
|
32928
|
-
*/
|
|
32929
|
-
const V = SPEC_SITE_LAYOUT.vocab;
|
|
32930
|
-
const GALLERY_EFFECTS = V.galleryEffects;
|
|
32931
|
-
const FORM_PRESETS = V.formPresets;
|
|
32932
|
-
const BUTTON_VARIANTS = V.buttonVariants;
|
|
32933
|
-
const NONE = 'none';
|
|
32934
|
-
const CLIP = 'clipReveal';
|
|
32935
|
-
const CLIP_SIDE = `${CLIP}-`;
|
|
32936
|
-
/** A gallery the wire marks `autoplay` turns every 5 s — what the proof sites' autoplaying galleries do. */
|
|
32937
|
-
const LAYOUT_WIRE_AUTOPLAY_MS = 5000;
|
|
32938
|
-
const CHIP_SLOTS = Array.from(new Set(Object.values(V.formChips).flat()));
|
|
32939
|
-
const SLOT_NAMES = [...V.formSlots, ...CHIP_SLOTS];
|
|
32940
|
-
const ENTER_ON_WIRE = V.enters.flatMap((e) => (e === CLIP ? V.sides.map((s) => `${CLIP_SIDE}${s}`) : [e]));
|
|
32941
|
-
const VARIANT_ON_WIRE = [NONE, ...V.buttonVariants, ...V.galleryEffects, ...V.formPresets];
|
|
32942
|
-
/**
|
|
32943
|
-
* List ingredients (list-ingredients-plan.md §2, LI1): a list section's mix travels as ONE list of `<ingredient>:<word>`
|
|
32944
|
-
* words (`arrange:strips`, `hover:dim`) and its parts as `<list>.<role>` (`stories.quote`) — two properties, so the
|
|
32945
|
-
* request stays inside the 40 the budget allows, and the parts enum is generated from the plan's own lists: a model
|
|
32946
|
-
* cannot name a part its list does not have (R-H2).
|
|
32947
|
-
*/
|
|
32948
|
-
var LayoutMixIngredient;
|
|
32949
|
-
(function (LayoutMixIngredient) {
|
|
32950
|
-
LayoutMixIngredient["Item"] = "item";
|
|
32951
|
-
LayoutMixIngredient["Arrange"] = "arrange";
|
|
32952
|
-
LayoutMixIngredient["Who"] = "who";
|
|
32953
|
-
LayoutMixIngredient["How"] = "how";
|
|
32954
|
-
LayoutMixIngredient["Move"] = "move";
|
|
32955
|
-
LayoutMixIngredient["Hover"] = "hover";
|
|
32956
|
-
LayoutMixIngredient["Arrive"] = "arrive";
|
|
32957
|
-
LayoutMixIngredient["Phone"] = "phone";
|
|
32958
|
-
})(LayoutMixIngredient || (LayoutMixIngredient = {}));
|
|
32959
|
-
const MIX_SEPARATOR = ':';
|
|
32960
|
-
const PART_SEPARATOR = '.';
|
|
32961
|
-
/** Every word a stored mix may hold, ingredient by ingredient (a waiting word too: a stored answer still reads). */
|
|
32962
|
-
const LAYOUT_MIX_WORDS = LIST_INGREDIENTS.flatMap(k => listIngredientWords(k).map(w => `${k}${MIX_SEPARATOR}${w}`));
|
|
32963
|
-
/** The words the wire OFFERS — the built ones only (ingredients.md §3.3): a waiting word would put its stand-in on every
|
|
32964
|
-
* site that asked for it. */
|
|
32965
|
-
const LAYOUT_MIX_OFFERED = LIST_INGREDIENTS.flatMap(k => listBuiltWords(k).map(w => `${k}${MIX_SEPARATOR}${w}`));
|
|
32966
|
-
/** AW10: the entrance and the switch a look that never scrubs is not offered. */
|
|
32967
|
-
const LETTERS = 'letters';
|
|
32968
|
-
const SCRUB_FLAG = 'scrub';
|
|
32969
|
-
/** The entrances the wire offers under the look's scrub (AW10 H3). */
|
|
32970
|
-
function layoutEntersOffered(scrub) {
|
|
32971
|
-
return ENTER_ON_WIRE.filter(e => e !== LETTERS || scrubOffered(scrub));
|
|
32972
|
-
}
|
|
32973
|
-
/** The switches the wire offers under the look's scrub (AW10 H3). */
|
|
32974
|
-
function layoutFlagsOffered(scrub) {
|
|
32975
|
-
return V.flags.filter(f => f !== SCRUB_FLAG || scrubOffered(scrub));
|
|
32976
|
-
}
|
|
32977
|
-
const scrubOffered = (scrub) => !!scrub && scrub !== ScrubId.Never && isScrubId(scrub);
|
|
32978
|
-
/** A handle the wire places as a whole SECTION (RD-D20): a bound part, a block or a kept section. */
|
|
32979
|
-
const SECTION_HANDLE = /^(?:bind|block|keep):/;
|
|
32980
|
-
/** Is `handle` one a section places whole (`bind:`/`block:`/`keep:`), never a layer's words or photo? */
|
|
32981
|
-
function isSectionCarryHandle(handle) {
|
|
32982
|
-
return SECTION_HANDLE.test(handle);
|
|
32983
|
-
}
|
|
32984
|
-
/** The mix words offered to a business whose lists never do `never` (L-D12): the built words less the forbidden ones. */
|
|
32985
|
-
function layoutMixOffered(never) {
|
|
32986
|
-
const banned = new Set([...(never?.arranges ?? []).map(w => `arrange${MIX_SEPARATOR}${w}`), ...(never?.moves ?? []).map(w => `move${MIX_SEPARATOR}${w}`)]);
|
|
32987
|
-
return LAYOUT_MIX_OFFERED.filter(w => !banned.has(w));
|
|
32988
|
-
}
|
|
32989
|
-
const mixHint = (offered) => LIST_INGREDIENTS.map(k => {
|
|
32990
|
-
const words = offered.filter(w => w.startsWith(`${k}${MIX_SEPARATOR}`)).map(w => w.slice(k.length + MIX_SEPARATOR.length));
|
|
32991
|
-
return `${k}:${words.join('|')}${LIST_TABLE.many.includes(k) ? ' (any)' : ''}`;
|
|
32992
|
-
}).join(' · ');
|
|
32993
|
-
/** `<list>.<role>` for every role of every list — what a list section's `parts` may name. */
|
|
32994
|
-
function layoutWirePartWords(lists) {
|
|
32995
|
-
return lists.flatMap(l => l.roles.map(r => `${l.alias}${PART_SEPARATOR}${r}`));
|
|
32996
|
-
}
|
|
32997
|
-
const text = (d) => ({ ...jsonText(), description: d });
|
|
32998
|
-
const integer = (d) => ({ ...jsonInteger(), description: d });
|
|
32999
|
-
const oneOf = (values, d) => ({ ...jsonOneOf(values), description: d });
|
|
33000
|
-
const listOf = (items, d) => ({ ...jsonListOf(items), description: d });
|
|
33001
|
-
const closed = (properties, d) => jsonClosedObject(properties, Object.keys(properties), d);
|
|
33002
|
-
/** The strict format for one composed page — with the list ingredients when `options.lists` is given. */
|
|
33003
|
-
function layoutWireJsonSchema(options = {}) {
|
|
33004
|
-
const partWords = options.lists ? layoutWirePartWords(options.lists) : [];
|
|
33005
|
-
const lists = options.lists
|
|
33006
|
-
? {
|
|
33007
|
-
mix: listOf(jsonOneOf(layoutMixOffered(options.never)), `gallery showing a list (source): how its items are shown, one word per choice — ${mixHint(layoutMixOffered(options.never))}; [] for none`),
|
|
33008
|
-
parts: listOf(jsonOneOf(partWords.length ? partWords : [NONE]), "gallery showing a list as cards: the list's fields each card shows, <list>.<role>, the source's own; [] for none"),
|
|
33009
|
-
}
|
|
33010
|
-
: {};
|
|
33011
|
-
const carried = options.carry
|
|
33012
|
-
? {
|
|
33013
|
-
carry: oneOf([NONE, ...options.carry], "a redesign: the owner's part this layer shows, by handle — its words, photo or form as they are (write no text of your own then); a section's ONLY layer naming a bind:/block:/keep: handle makes the whole section that part; 'none' for a layer of your own"),
|
|
33014
|
-
}
|
|
33015
|
-
: {};
|
|
33016
|
-
const layer = closed({
|
|
33017
|
-
kind: oneOf(V.kinds, 'what the layer is'),
|
|
33018
|
-
role: oneOf(V.roles, 'lead: the ONE thing the eye finds first in its section · support: follows it · decoration: only fades · static: never moves'),
|
|
33019
|
-
text: text("the words (word, heading, text, label, number, button); '' for none; a fact you were not given is {fact:<key>}"),
|
|
33020
|
-
items: listOf(jsonText(), 'list items · marquee phrases · one caption per gallery photo; [] for none'),
|
|
33021
|
-
photos: listOf(jsonText(), 'photo: one photo id · gallery: its slides, in order; ids from the photos you are given; [] for none'),
|
|
33022
|
-
source: text("gallery: the alias of a list data source whose items it shows instead of photos; '' for none"),
|
|
33023
|
-
box: listOf(jsonInteger(), '[colStart, colEnd, rowStart, rowEnd]: grid lines 1..13 (1..12×hold+1 sideways) and 1..rows+1'),
|
|
33024
|
-
size: oneOf([NONE, ...V.sizes], "type size; 'screen' = as wide as its columns, a word, never a sentence"),
|
|
33025
|
-
color: oneOf(V.colours, "the look's colour by name"),
|
|
33026
|
-
align: oneOf(V.aligns, 'text alignment'),
|
|
33027
|
-
z: integer('0..9 stacking'),
|
|
33028
|
-
bleed: oneOf(V.bleeds, 'runs off the screen at that edge'),
|
|
33029
|
-
rotate: integer("degrees, within the look's limit"),
|
|
33030
|
-
to: text("button: a section id of this page or a page route ('/contact'); '' for none"),
|
|
33031
|
-
variant: oneOf(VARIANT_ON_WIRE, 'button: primary | secondary | ghost · gallery: its effect · form: its preset · none'),
|
|
33032
|
-
enter: oneOf(layoutEntersOffered(options.scrub), scrubOffered(options.scrub)
|
|
33033
|
-
? 'plays once as it arrives (time); clipReveal opens from that side; letters: a line of words rises letter by letter (a display line)'
|
|
33034
|
-
: 'plays once as it arrives (time); clipReveal opens from that side'),
|
|
33035
|
-
depth: oneOf([NONE, ...V.depths], 'the parallax trio (not in held sections)'),
|
|
33036
|
-
inner: integer('0..3: how far a photo drifts inside its frame'),
|
|
33037
|
-
flags: listOf(jsonOneOf(layoutFlagsOffered(options.scrub)), `switches: scrim (a shadow under words on a photo) · kinetic (lit word by word, held only) · contain · gallery: centered, freeMode, loop, drift, scroll (held only: the scroll turns it), autoplay${scrubOffered(options.scrub) ? ` · scrub (its entrance follows the scroll instead of playing once — ${options.scrub === ScrubId.Words ? 'a mask rise or letters only' : 'any entrance'}; never in the first section)` : ''}; [] for none`),
|
|
33038
|
-
perView: { type: 'number', description: 'gallery slides per view; 0 for none' },
|
|
33039
|
-
slots: listOf(closed({ slot: oneOf(SLOT_NAMES, 'which words'), text: text('the words, in the business\'s language') }), "form: its title, intro, submit, successTitle, successText, channel, and one entry per chip (needs · budget · guests); [] for none"),
|
|
33040
|
-
motion: listOf(closed({
|
|
33041
|
-
prop: oneOf(V.trackProps, 'what moves'),
|
|
33042
|
-
ease: oneOf(V.eases, 'how'),
|
|
33043
|
-
values: listOf({ type: 'number' }, '[from, to, at0, at1]: values and the part of the hold it plays over (0..1)'),
|
|
33044
|
-
}), 'held sections only: tracks the scroll plays; [] for none'),
|
|
33045
|
-
...lists,
|
|
33046
|
-
...carried,
|
|
33047
|
-
});
|
|
33048
|
-
const section = closed({
|
|
33049
|
-
id: text('a short slug, unique on the page'),
|
|
33050
|
-
kind: oneOf(V.sectionKinds, 'content · inhale (a breath: ≤ 2 small layers, no photo) · signature (exactly ONE)'),
|
|
33051
|
-
screens: integer('1..5 screen heights'),
|
|
33052
|
-
hold: integer('0 flows · 1 held (the page stops while its layers move) · 2..4 held and carried sideways that many screens'),
|
|
33053
|
-
ground: text("a colour name, or photo:<id>"),
|
|
33054
|
-
rows: integer('4..16 grid rows'),
|
|
33055
|
-
transition: oneOf(V.transitions, 'how it arrives over the section before'),
|
|
33056
|
-
phone: listOf(jsonInteger(), "every layer's index exactly once, in a phone's reading order"),
|
|
33057
|
-
layers: listOf(layer, 'the layers'),
|
|
33058
|
-
});
|
|
33059
|
-
return closed({ sections: listOf(section, '4..8 sections') }, 'one composed page in the layout language');
|
|
33060
|
-
}
|
|
33061
|
-
const nonEmpty = (v) => typeof v === 'string' && v.trim() !== '';
|
|
33062
|
-
const num = (v, fallback = 0) => (typeof v === 'number' && Number.isFinite(v) ? v : fallback);
|
|
33063
|
-
const strings = (v) => (Array.isArray(v) ? v.filter((x) => typeof x === 'string') : []);
|
|
33064
|
-
function expandForm(l, preset) {
|
|
33065
|
-
const form = { preset: preset };
|
|
33066
|
-
const options = {};
|
|
33067
|
-
for (const s of Array.isArray(l['slots']) ? l['slots'] : []) {
|
|
33068
|
-
if (!isPlainObject(s) || !nonEmpty(s['text']))
|
|
33069
|
-
continue;
|
|
33070
|
-
const slot = String(s['slot']);
|
|
33071
|
-
const words = String(s['text']).trim();
|
|
33072
|
-
if (CHIP_SLOTS.includes(slot))
|
|
33073
|
-
(options[slot] ??= []).push(words);
|
|
33074
|
-
else if (slot === 'channel')
|
|
33075
|
-
form.channel = { label: words };
|
|
33076
|
-
else if (slot === 'title' || slot === 'intro' || slot === 'submit' || slot === 'successTitle' || slot === 'successText')
|
|
33077
|
-
form[slot] = words;
|
|
33078
|
-
}
|
|
33079
|
-
if (Object.keys(options).length)
|
|
33080
|
-
form.options = options;
|
|
33081
|
-
return form;
|
|
33082
|
-
}
|
|
33083
|
-
function expandGallery(l, flags, variant) {
|
|
33084
|
-
const captions = strings(l['items']);
|
|
33085
|
-
const gallery = {
|
|
33086
|
-
slides: strings(l['photos']).map((id, i) => ({ photo: { id }, ...(nonEmpty(captions[i]) ? { caption: captions[i] } : {}) })),
|
|
33087
|
-
};
|
|
33088
|
-
if (GALLERY_EFFECTS.includes(variant))
|
|
33089
|
-
gallery.effect = variant;
|
|
33090
|
-
const perView = num(l['perView']);
|
|
33091
|
-
if (perView > 0)
|
|
33092
|
-
gallery.perView = perView;
|
|
33093
|
-
for (const f of ['centered', 'freeMode', 'loop', 'drift', 'scroll'])
|
|
33094
|
-
if (flags.has(f))
|
|
33095
|
-
gallery[f] = true;
|
|
33096
|
-
if (flags.has('autoplay'))
|
|
33097
|
-
gallery.autoplay = LAYOUT_WIRE_AUTOPLAY_MS;
|
|
33098
|
-
if (nonEmpty(l['source']))
|
|
33099
|
-
gallery.source = String(l['source']).trim();
|
|
33100
|
-
const list = expandListMix(l, gallery);
|
|
33101
|
-
if (list)
|
|
33102
|
-
gallery.list = list;
|
|
33103
|
-
return gallery;
|
|
33104
|
-
}
|
|
33105
|
-
/** `mix` + `parts` → a list mix, or null when the wire names no mix. Words are kept as written (`checkList` judges them);
|
|
33106
|
-
* parts of another list than the gallery's are left out, and the first part names the list when `source` is empty. */
|
|
33107
|
-
function expandListMix(l, gallery) {
|
|
33108
|
-
const words = strings(l['mix']);
|
|
33109
|
-
if (!words.length)
|
|
33110
|
-
return null;
|
|
33111
|
-
const picked = new Map();
|
|
33112
|
-
for (const w of words) {
|
|
33113
|
-
const at = w.indexOf(MIX_SEPARATOR);
|
|
33114
|
-
if (at > 0)
|
|
33115
|
-
(picked.get(w.slice(0, at)) ?? picked.set(w.slice(0, at), []).get(w.slice(0, at))).push(w.slice(at + 1));
|
|
33116
|
-
}
|
|
33117
|
-
const one = (k) => picked.get(k)?.[0];
|
|
33118
|
-
const parts = strings(l['parts']).filter(p => p !== NONE).map(p => {
|
|
33119
|
-
const at = p.lastIndexOf(PART_SEPARATOR);
|
|
33120
|
-
return at > 0 ? { list: p.slice(0, at), role: p.slice(at + 1) } : null;
|
|
33121
|
-
}).filter((p) => !!p);
|
|
33122
|
-
if (!gallery.source && parts[0])
|
|
33123
|
-
gallery.source = parts[0].list;
|
|
33124
|
-
const own = parts.filter(p => p.list === gallery.source).map(p => p.role);
|
|
33125
|
-
const arrange = (one(LayoutMixIngredient.Arrange) ?? LayoutListArrange.Row);
|
|
33126
|
-
const who = one(LayoutMixIngredient.Who);
|
|
33127
|
-
const how = one(LayoutMixIngredient.How);
|
|
33128
|
-
return {
|
|
33129
|
-
item: (one(LayoutMixIngredient.Item) ?? (own.length ? LayoutListItem.Card : LayoutListItem.Photo)),
|
|
33130
|
-
parts: Array.from(new Set(own)),
|
|
33131
|
-
arrange,
|
|
33132
|
-
...(who && who !== LayoutListWho.None ? { standout: { who: who, ...(how ? { how: how } : {}) } } : {}),
|
|
33133
|
-
move: Array.from(new Set(picked.get(LayoutMixIngredient.Move) ?? [])),
|
|
33134
|
-
hover: Array.from(new Set(picked.get(LayoutMixIngredient.Hover) ?? [])),
|
|
33135
|
-
arrive: (one(LayoutMixIngredient.Arrive) ?? LayoutListArrive.Together),
|
|
33136
|
-
phone: (one(LayoutMixIngredient.Phone) ?? (arrange === LayoutListArrange.Row ? LayoutListPhone.Swipe : LayoutListPhone.Stack)),
|
|
33137
|
-
};
|
|
33138
|
-
}
|
|
33139
|
-
/** A list mix → the wire's `mix` words and `parts`. */
|
|
33140
|
-
function listMixToWire(mix, source) {
|
|
33141
|
-
const w = (k, v) => `${k}${MIX_SEPARATOR}${v}`;
|
|
33142
|
-
return {
|
|
33143
|
-
mix: [
|
|
33144
|
-
w(LayoutMixIngredient.Item, mix.item), w(LayoutMixIngredient.Arrange, mix.arrange),
|
|
33145
|
-
...(mix.standout ? [w(LayoutMixIngredient.Who, mix.standout.who), ...(mix.standout.how ? [w(LayoutMixIngredient.How, mix.standout.how)] : [])] : []),
|
|
33146
|
-
...mix.move.map(m => w(LayoutMixIngredient.Move, m)), ...mix.hover.map(h => w(LayoutMixIngredient.Hover, h)),
|
|
33147
|
-
w(LayoutMixIngredient.Arrive, mix.arrive), w(LayoutMixIngredient.Phone, mix.phone),
|
|
33148
|
-
],
|
|
33149
|
-
parts: mix.parts.map(r => `${source}${PART_SEPARATOR}${r}`),
|
|
33150
|
-
};
|
|
33151
|
-
}
|
|
33152
|
-
function expandTrack(t) {
|
|
33153
|
-
const v = Array.isArray(t['values']) ? t['values'].map(x => num(x)) : [];
|
|
33154
|
-
return { prop: String(t['prop']), from: v[0] ?? 0, to: v[1] ?? 0, at: [v[2] ?? 0, v[3] ?? 1], ease: String(t['ease']) };
|
|
33155
|
-
}
|
|
33156
|
-
function expandLayer(l, beat) {
|
|
33157
|
-
const kind = String(l['kind']);
|
|
33158
|
-
const box = Array.isArray(l['box']) ? l['box'].map(x => num(x)) : [];
|
|
33159
|
-
const flags = new Set(strings(l['flags']));
|
|
33160
|
-
const variant = String(l['variant'] ?? NONE);
|
|
33161
|
-
const out = {
|
|
33162
|
-
kind: kind,
|
|
33163
|
-
role: String(l['role']),
|
|
33164
|
-
col: [box[0] ?? 1, box[1] ?? 2],
|
|
33165
|
-
row: [box[2] ?? 1, box[3] ?? 2],
|
|
33166
|
-
};
|
|
33167
|
-
if (nonEmpty(l['text']))
|
|
33168
|
-
out.text = String(l['text']);
|
|
33169
|
-
const items = strings(l['items']);
|
|
33170
|
-
if (items.length && kind !== 'gallery')
|
|
33171
|
-
out.items = items;
|
|
33172
|
-
if (kind === 'photo' && strings(l['photos'])[0])
|
|
33173
|
-
out.photo = { id: strings(l['photos'])[0] };
|
|
33174
|
-
if (kind === 'gallery')
|
|
33175
|
-
out.gallery = expandGallery(l, flags, variant);
|
|
33176
|
-
if (kind === 'form')
|
|
33177
|
-
out.form = expandForm(l, FORM_PRESETS.includes(variant) ? variant : 'contact');
|
|
33178
|
-
if (kind === 'button' && BUTTON_VARIANTS.includes(variant))
|
|
33179
|
-
out.variant = variant;
|
|
33180
|
-
if (nonEmpty(l['size']) && l['size'] !== NONE)
|
|
33181
|
-
out.size = String(l['size']);
|
|
33182
|
-
if (nonEmpty(l['color']))
|
|
33183
|
-
out.color = String(l['color']);
|
|
33184
|
-
if (nonEmpty(l['align']))
|
|
33185
|
-
out.align = String(l['align']);
|
|
33186
|
-
if (num(l['z']))
|
|
33187
|
-
out.z = num(l['z']);
|
|
33188
|
-
if (nonEmpty(l['bleed']) && l['bleed'] !== NONE)
|
|
33189
|
-
out.bleed = String(l['bleed']);
|
|
33190
|
-
if (num(l['rotate']))
|
|
33191
|
-
out.rotate = num(l['rotate']);
|
|
33192
|
-
if (nonEmpty(l['to']))
|
|
33193
|
-
out.to = String(l['to']).trim();
|
|
33194
|
-
if (flags.has('scrim'))
|
|
33195
|
-
out.scrim = true;
|
|
33196
|
-
if (flags.has('kinetic'))
|
|
33197
|
-
out.kinetic = true;
|
|
33198
|
-
if (flags.has('contain'))
|
|
33199
|
-
out.fit = 'contain';
|
|
33200
|
-
if (flags.has(SCRUB_FLAG))
|
|
33201
|
-
out.scrub = true;
|
|
33202
|
-
const enter = String(l['enter'] ?? NONE);
|
|
33203
|
-
if (enter.startsWith(CLIP_SIDE)) {
|
|
33204
|
-
out.enter = CLIP;
|
|
33205
|
-
out.from = enter.slice(CLIP_SIDE.length);
|
|
33206
|
-
}
|
|
33207
|
-
else if (enter !== NONE)
|
|
33208
|
-
out.enter = enter;
|
|
33209
|
-
if (out.enter)
|
|
33210
|
-
out.beat = beat;
|
|
33211
|
-
if (nonEmpty(l['depth']) && l['depth'] !== NONE)
|
|
33212
|
-
out.depth = String(l['depth']);
|
|
33213
|
-
if (num(l['inner']))
|
|
33214
|
-
out.inner = num(l['inner']);
|
|
33215
|
-
const motion = (Array.isArray(l['motion']) ? l['motion'] : []).filter(isPlainObject).map(expandTrack);
|
|
33216
|
-
if (motion.length)
|
|
33217
|
-
out.motion = motion;
|
|
33218
|
-
if (nonEmpty(l['carry']) && l['carry'] !== NONE)
|
|
33219
|
-
out.carry = String(l['carry']).trim();
|
|
33220
|
-
return out;
|
|
33221
|
-
}
|
|
33222
|
-
/**
|
|
33223
|
-
* A section's beats, never asked: the lead enters first; every other entering layer takes the next beat in the order it
|
|
33224
|
-
* was written, held at the stagger's last (Emil's shrinking stagger reads the beat and stops shrinking at the sixth; the
|
|
33225
|
-
* prototype wrote it on fewer than half the layers). ONE rule
|
|
33226
|
-
* for the wire's expansion and for a page a repair edited (`applyLayoutEdits`).
|
|
33227
|
-
*/
|
|
33228
|
-
function derivedBeats(layers) {
|
|
33229
|
-
const last = LAYOUT_BEAT_DELAY.length - 1;
|
|
33230
|
-
let beat = 0;
|
|
33231
|
-
return layers.map(l => (l.role === 'lead' ? 0 : String(l.enter ?? NONE) !== NONE ? Math.min(++beat, last) : 0));
|
|
33232
|
-
}
|
|
33233
|
-
function expandSection(s) {
|
|
33234
|
-
const kind = String(s['kind']);
|
|
33235
|
-
const hold = Math.max(0, Math.round(num(s['hold'])));
|
|
33236
|
-
const wired = (Array.isArray(s['layers']) ? s['layers'] : []).filter(isPlainObject);
|
|
33237
|
-
// RD-D20: a section whose ONLY layer names a bound part, a block or a kept section IS that part — a section place.
|
|
33238
|
-
const whole = wired.length === 1 && nonEmpty(wired[0]['carry']) && isSectionCarryHandle(String(wired[0]['carry']).trim())
|
|
33239
|
-
? String(wired[0]['carry']).trim() : null;
|
|
33240
|
-
if (whole)
|
|
33241
|
-
return { id: String(s['id'] ?? ''), screens: 1, rows: 1, layers: [], phone: [], carry: whole };
|
|
33242
|
-
const beats = derivedBeats(wired);
|
|
33243
|
-
const layers = wired.map((l, i) => expandLayer(l, beats[i]));
|
|
33244
|
-
const out = {
|
|
33245
|
-
id: String(s['id'] ?? ''),
|
|
33246
|
-
screens: num(s['screens'], 1),
|
|
33247
|
-
rows: num(s['rows'], 8),
|
|
33248
|
-
ground: String(s['ground'] ?? 'ground'),
|
|
33249
|
-
transition: String(s['transition'] ?? 'cut'),
|
|
33250
|
-
layers,
|
|
33251
|
-
phone: Array.isArray(s['phone']) ? s['phone'].map(x => num(x, -1)) : [],
|
|
33252
|
-
};
|
|
33253
|
-
if (kind === 'inhale')
|
|
33254
|
-
out.kind = 'inhale';
|
|
33255
|
-
if (kind === 'signature')
|
|
33256
|
-
out.signature = true;
|
|
33257
|
-
if (hold >= 1)
|
|
33258
|
-
out.pin = true;
|
|
33259
|
-
if (hold >= 2)
|
|
33260
|
-
out.track = hold;
|
|
33261
|
-
return out;
|
|
33262
|
-
}
|
|
33263
|
-
/**
|
|
33264
|
-
* The wire → a layout page. Refuses (issues with a path) only what it cannot read at all — a missing `sections`, a
|
|
33265
|
-
* section or layer that is not an object; everything a model can get wrong in a well-formed answer is `checkLayout`'s.
|
|
33266
|
-
*/
|
|
33267
|
-
function expandLayoutWire(wire, dial) {
|
|
33268
|
-
const issues = [];
|
|
33269
|
-
const add = (path, message) => issues.push({ code: LayoutIssueCode.Shape, path, message });
|
|
33270
|
-
if (!isPlainObject(wire) || !Array.isArray(wire['sections'])) {
|
|
33271
|
-
add('sections', 'the answer has no sections');
|
|
33272
|
-
return { page: null, issues };
|
|
33273
|
-
}
|
|
33274
|
-
wire['sections'].forEach((s, i) => {
|
|
33275
|
-
if (!isPlainObject(s))
|
|
33276
|
-
add(`sections[${i}]`, 'not an object');
|
|
33277
|
-
else if (!Array.isArray(s['layers']))
|
|
33278
|
-
add(`sections[${i}].layers`, 'no layers');
|
|
33279
|
-
else
|
|
33280
|
-
s['layers'].forEach((l, j) => { if (!isPlainObject(l))
|
|
33281
|
-
add(`sections[${i}].layers[${j}]`, 'not an object'); });
|
|
33282
|
-
});
|
|
33283
|
-
if (issues.length)
|
|
33284
|
-
return { page: null, issues };
|
|
33285
|
-
return { page: { dial, sections: wire['sections'].map(expandSection) }, issues: [] };
|
|
33286
|
-
}
|
|
33287
|
-
function layerToWire(l) {
|
|
33288
|
-
const g = l.gallery;
|
|
33289
|
-
const f = l.form;
|
|
33290
|
-
const flags = [
|
|
33291
|
-
l.scrim && 'scrim', l.kinetic && 'kinetic', l.fit === 'contain' && 'contain',
|
|
33292
|
-
g?.centered && 'centered', g?.freeMode && 'freeMode', g?.loop && 'loop', g?.drift && 'drift', g?.scroll && 'scroll', g?.autoplay ? 'autoplay' : null,
|
|
33293
|
-
l.scrub && SCRUB_FLAG,
|
|
33294
|
-
].filter((x) => !!x);
|
|
33295
|
-
const slots = f
|
|
33296
|
-
? [
|
|
33297
|
-
...['title', 'intro', 'submit', 'successTitle', 'successText'].filter(k => nonEmpty(f[k])).map(k => ({ slot: k, text: String(f[k]) })),
|
|
33298
|
-
...(f.channel?.label ? [{ slot: 'channel', text: f.channel.label }] : []),
|
|
33299
|
-
...Object.entries(f.options ?? {}).flatMap(([slot, words]) => (words ?? []).map(t => ({ slot, text: t }))),
|
|
33300
|
-
]
|
|
33301
|
-
: [];
|
|
33302
|
-
return {
|
|
33303
|
-
kind: l.kind,
|
|
33304
|
-
role: l.role ?? 'support',
|
|
33305
|
-
text: l.text ?? '',
|
|
33306
|
-
items: g ? g.slides.map(s => s.caption ?? '') : l.items ?? [],
|
|
33307
|
-
photos: g ? g.slides.map(s => s.photo?.id ?? '') : l.photo ? [l.photo.id] : [],
|
|
33308
|
-
source: g?.source ?? '',
|
|
33309
|
-
box: [...(l.col ?? [1, 2]), ...(l.row ?? [1, 2])],
|
|
33310
|
-
size: l.size ?? NONE,
|
|
33311
|
-
color: l.color ?? 'ink',
|
|
33312
|
-
align: l.align ?? 'start',
|
|
33313
|
-
z: l.z ?? 0,
|
|
33314
|
-
bleed: l.bleed ?? NONE,
|
|
33315
|
-
rotate: l.rotate ?? 0,
|
|
33316
|
-
to: l.to ?? '',
|
|
33317
|
-
variant: l.variant ?? g?.effect ?? f?.preset ?? NONE,
|
|
33318
|
-
enter: l.enter === CLIP ? `${CLIP_SIDE}${l.from ?? 'bottom'}` : l.enter ?? NONE,
|
|
33319
|
-
depth: l.depth ?? NONE,
|
|
33320
|
-
inner: l.inner ?? 0,
|
|
33321
|
-
flags,
|
|
33322
|
-
perView: typeof g?.perView === 'number' ? g.perView : 0,
|
|
33323
|
-
slots,
|
|
33324
|
-
motion: (l.motion ?? []).map(t => ({ prop: t.prop, ease: t.ease ?? 'out', values: [t.from, t.to, ...(t.at ?? [0, 1])] })),
|
|
33325
|
-
...(g?.list ? listMixToWire(g.list, g.source ?? '') : {}),
|
|
33326
|
-
...(l.carry ? { carry: l.carry } : {}),
|
|
33327
|
-
};
|
|
33328
|
-
}
|
|
33329
|
-
/** A section place (RD-D20) on the wire: ONE layer naming its handle — what `expandSection` reads back as the place. */
|
|
33330
|
-
function carryPlaceToWire(s) {
|
|
33331
|
-
const layer = {
|
|
33332
|
-
kind: 'text', role: 'lead', text: '', items: [], photos: [], source: '', box: [1, 13, 1, 2], size: NONE, color: 'ink', align: 'start',
|
|
33333
|
-
z: 0, bleed: NONE, rotate: 0, to: '', variant: NONE, enter: NONE, depth: NONE, inner: 0, flags: [], perView: 0, slots: [], motion: [],
|
|
33334
|
-
carry: s.carry,
|
|
33335
|
-
};
|
|
33336
|
-
return { id: s.id, kind: 'content', screens: 1, hold: 0, ground: 'ground', rows: 4, transition: 'cut', phone: [0], layers: [layer] };
|
|
33337
|
-
}
|
|
33338
|
-
/** A layout page (or a saved CL2.1 site's sections) → the wire. */
|
|
33339
|
-
function layoutToWire(page) {
|
|
33340
|
-
return {
|
|
33341
|
-
sections: page.sections.map(s => (s.carry ? carryPlaceToWire(s) : {
|
|
33342
|
-
id: s.id,
|
|
33343
|
-
kind: s.signature ? 'signature' : s.kind ?? 'content',
|
|
33344
|
-
screens: s.screens,
|
|
33345
|
-
hold: s.pin ? s.track ?? 1 : 0,
|
|
33346
|
-
ground: s.ground ?? 'ground',
|
|
33347
|
-
rows: s.rows,
|
|
33348
|
-
transition: s.transition ?? 'cut',
|
|
33349
|
-
phone: s.phone ?? [],
|
|
33350
|
-
layers: s.layers.map(layerToWire),
|
|
33351
|
-
})),
|
|
33352
|
-
};
|
|
33353
|
-
}
|
|
33354
|
-
|
|
33355
33899
|
/**
|
|
33356
33900
|
* The render check of a composed page (M8-G2-D8), split where it can run. `measureLayout` runs in a BROWSER (the owner's,
|
|
33357
33901
|
* on the Plan step — iox-cms has none): it reads the rendered boxes of the composed page's layers. `wordsOverPhotos` names
|
|
@@ -33765,6 +34309,73 @@ function planLayoutPhotos(plan) {
|
|
|
33765
34309
|
return { [LayoutPhotoSource.Own]: [...out.own], [LayoutPhotoSource.Stock]: [...out.stock], [LayoutPhotoSource.Box]: [...out.box] };
|
|
33766
34310
|
}
|
|
33767
34311
|
|
|
34312
|
+
const MANY = new Set(LIST_TABLE.many);
|
|
34313
|
+
const HOVER = 'hover';
|
|
34314
|
+
/** The word(s) a mix wears for an ingredient. */
|
|
34315
|
+
function listMixValue(mix, k) {
|
|
34316
|
+
switch (k) {
|
|
34317
|
+
case 'who': return mix.standout?.who ?? LayoutListWho.None;
|
|
34318
|
+
case 'how': return mix.standout?.how ?? String(LIST_TABLE.defaults['how']);
|
|
34319
|
+
case 'move': return mix.move;
|
|
34320
|
+
case 'hover': return mix.hover;
|
|
34321
|
+
default: return mix[k];
|
|
34322
|
+
}
|
|
34323
|
+
}
|
|
34324
|
+
/** The group's rows for a list — every ingredient the product draws, in the table's order. */
|
|
34325
|
+
function listPanelRows(mix, ctx) {
|
|
34326
|
+
return LIST_INGREDIENTS.map(k => ({
|
|
34327
|
+
ingredient: k,
|
|
34328
|
+
many: MANY.has(k),
|
|
34329
|
+
value: listMixValue(mix, k),
|
|
34330
|
+
words: listBuiltWords(k).map(word => ({
|
|
34331
|
+
word,
|
|
34332
|
+
meaning: listMeaning(k, word),
|
|
34333
|
+
pro: listWordTier(k, word) === 'pro',
|
|
34334
|
+
mouse: k === HOVER,
|
|
34335
|
+
refusal: listWordRefusal(k, word, ctx.shape, ctx.tier, ctx.never),
|
|
34336
|
+
})),
|
|
34337
|
+
}));
|
|
34338
|
+
}
|
|
34339
|
+
/** The mix with one ingredient set (a single word) or toggled (a word of a `many` ingredient). Pure. */
|
|
34340
|
+
function withListWord(mix, k, word) {
|
|
34341
|
+
const next = structuredClone(mix);
|
|
34342
|
+
if (k === 'move' || k === 'hover') {
|
|
34343
|
+
const list = next[k];
|
|
34344
|
+
next[k] = list.includes(word) ? list.filter(w => w !== word) : [...list, word];
|
|
34345
|
+
}
|
|
34346
|
+
else if (k === 'who') {
|
|
34347
|
+
if (word === LayoutListWho.None)
|
|
34348
|
+
delete next.standout;
|
|
34349
|
+
else
|
|
34350
|
+
next.standout = { who: word, ...(next.standout?.how ? { how: next.standout.how } : {}) };
|
|
34351
|
+
}
|
|
34352
|
+
else if (k === 'how') {
|
|
34353
|
+
next.standout = { who: next.standout?.who ?? LayoutListWho.First, how: word };
|
|
34354
|
+
}
|
|
34355
|
+
else {
|
|
34356
|
+
next[k] = word;
|
|
34357
|
+
}
|
|
34358
|
+
return next;
|
|
34359
|
+
}
|
|
34360
|
+
/**
|
|
34361
|
+
* The owner picks a word: refused outright when the word cannot be picked here (the row shows why), else the new mix
|
|
34362
|
+
* judged by the ONE `checkList` — its mends applied and said, its refusals returned (the list stays as it was). Pure.
|
|
34363
|
+
*/
|
|
34364
|
+
function pickListWord(mix, k, word, ctx) {
|
|
34365
|
+
const refusal = listWordRefusal(k, word, ctx.shape, ctx.tier, ctx.never);
|
|
34366
|
+
const adding = !(k === 'move' || k === 'hover') || !mix[k].includes(word);
|
|
34367
|
+
if (refusal && adding) {
|
|
34368
|
+
return { mix, said: [], refused: [{ code: LayoutIssueCode.Value, path: `list.${k}`, message: `${k} "${word}": ${refusal}` }] };
|
|
34369
|
+
}
|
|
34370
|
+
const next = withListWord(mix, k, word);
|
|
34371
|
+
const issues = checkList(next, ctx.shape, 'list', ctx.never, { tier: ctx.tier });
|
|
34372
|
+
const refused = issues.filter(i => !i.mend);
|
|
34373
|
+
if (refused.length)
|
|
34374
|
+
return { mix, said: [], refused };
|
|
34375
|
+
const mend = issues.map(i => i.mend).find(m => m?.kind === LayoutMendKind.List);
|
|
34376
|
+
return { mix: mend?.kind === LayoutMendKind.List ? mend.mix : next, said: issues.map(i => i.message), refused: [] };
|
|
34377
|
+
}
|
|
34378
|
+
|
|
33768
34379
|
/**
|
|
33769
34380
|
* THE CROSS-SITE FINGERPRINT (premium components M8 gate 2, M8-G2-D7; the prototype's `fingerprint` + `sameness`,
|
|
33770
34381
|
* `code/cl2.mjs`): what makes two composed pages read as the same — how the page opens, the sequence of its sections, the
|
|
@@ -33827,7 +34438,10 @@ const LAYOUT_LIST_TOKEN = 'list';
|
|
|
33827
34438
|
function listTokenOf(mix) {
|
|
33828
34439
|
const who = mix.standout && mix.standout.who !== LayoutListWho.None ? `${mix.standout.who}${mix.standout.how ? `-${mix.standout.how}` : ''}` : 'none';
|
|
33829
34440
|
const moves = Array.isArray(mix.move) && mix.move.length ? [...new Set(mix.move)].sort().join('+') : 'still';
|
|
33830
|
-
|
|
34441
|
+
// AW11-D18: a round-two item (a name on its picture, a packshot, a colour block, a numeral) is seen at once too — it
|
|
34442
|
+
// joins the token; a round-one item adds nothing, so every fingerprint stored before AW11 reads as it did.
|
|
34443
|
+
const item = typeof mix.item === 'string' && listWordTier('item', mix.item) === 'pro' ? `/${mix.item}` : '';
|
|
34444
|
+
return `${LAYOUT_LIST_TOKEN}:${mix.arrange}/${who}/${moves}${item}`;
|
|
33831
34445
|
}
|
|
33832
34446
|
/** A section's token in the sequence: a list section's mix, else its kind (`sequenceTokenOf`). */
|
|
33833
34447
|
function sectionTokenOf(s) {
|
|
@@ -34979,5 +35593,5 @@ function siteGlobalsOf(globals) {
|
|
|
34979
35593
|
* Generated bundle index. Do not edit.
|
|
34980
35594
|
*/
|
|
34981
35595
|
|
|
34982
|
-
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADDITION_CAPS, ADDITION_ITEMS_KEY, ADDITION_ITEM_SOURCE_SUFFIX, ADDITION_KEY_PREFIX, ADDITION_SLUG, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyRepairCode, BodyRhythm, BodySeam, BodySectionWord, BodyTexture, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_OWNED_PROPS, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_DECK_MAX_PX, LIST_DECK_SHARE, LIST_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, LIST_WORDS_BESIDE_RULE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListSide, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutScrubRefusal, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, MAX_SITE_PICTURES, MOTION_TRIGGERS, MOVING_OPENING_MEDIA, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningIngredient, OpeningMedia, OpeningMixError, OpeningMotion, OpeningRepairCode, OpeningRole, OpeningWords, PAGE_ARCHETYPES, PERSONAL_CONTROLS, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, PublishScope, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, checkAdditions, checkBody, checkCarry, checkFooter, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, composablePage, composeContextOf, composeLayout, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, groundToneOf, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBuiltWords, listIngredientWords, listMeaning, listNeverIsEmpty, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords$1 as openingWords, orientationOfRatio, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, previousRoute, pricesIn, publishRefusal, publishVerdict, quietMoveEntrance, readHeader, readOpening, readyMadeColumn, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, rhythmIssues, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteGlobalsOf, siteNavPages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withOpeningWord, withShownList, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
|
|
35596
|
+
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADDITION_CAPS, ADDITION_ITEMS_KEY, ADDITION_ITEM_SOURCE_SUFFIX, ADDITION_KEY_PREFIX, ADDITION_SLUG, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyRepairCode, BodyRhythm, BodySeam, BodySectionWord, BodyTexture, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_OFFERED_AWARD, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_OWNED_PROPS, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_DECK_MAX_PX, LIST_DECK_SHARE, LIST_INGREDIENTS, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, 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, ListWordRefusal, MAX_SITE_PICTURES, MOTION_TRIGGERS, MOVING_OPENING_MEDIA, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningIngredient, OpeningMedia, OpeningMixError, OpeningMotion, OpeningRepairCode, OpeningRole, OpeningWords, PAGE_ARCHETYPES, PERSONAL_CONTROLS, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, PublishScope, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, bentoFill, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, checkAdditions, checkBody, checkCarry, checkFooter, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, composablePage, composeContextOf, composeLayout, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, groundToneOf, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBelowPro, listBuiltWords, listIngredientWords, listMeaning, listMixFromWords, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRefusal, listWordTier, listWords, luminanceOf, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords$1 as openingWords, orientationOfRatio, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, previousRoute, pricesIn, publishRefusal, publishVerdict, quietMoveEntrance, readHeader, readOpening, readyMadeColumn, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, rhythmIssues, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteGlobalsOf, siteNavPages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
|
|
34983
35597
|
//# sourceMappingURL=vectoriox-iox-ui-generation-core.mjs.map
|