@vectoriox/iox-ui 5.134.0 → 5.136.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/composite-core/index.d.ts +15 -2
- package/design-core/index.d.ts +153 -9
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs +6 -36
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +28 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +241 -48
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1291 -126
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +7 -3
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/generation-core/index.d.ts +485 -61
- package/harness-core/index.d.ts +4 -2
- package/package.json +1 -1
- package/src/assist-core/page-sections.ts +4 -31
- package/src/composite-core/slider.ts +35 -0
- package/src/design-core/design-settings.ts +16 -3
- package/src/design-core/design-token.model.ts +3 -0
- package/src/design-core/flavor-spec.generated.ts +98 -25
- package/src/design-core/motion-language.ts +12 -9
- package/src/design-core/preloader.ts +129 -0
- package/src/design-core/public-api.ts +1 -0
- package/src/design-core/style-presets.ts +3 -1
- package/src/generation-core/carry.ts +37 -0
- package/src/generation-core/compose-site.ts +222 -9
- package/src/generation-core/node-baselines.generated.ts +2 -1
- package/src/generation-core/opening-edit.ts +240 -0
- package/src/generation-core/opening-mix.ts +639 -0
- package/src/generation-core/patterns.ts +3 -0
- package/src/generation-core/plan-wire.ts +26 -4
- package/src/generation-core/public-api.ts +2 -0
- package/src/generation-core/site-build-run.ts +70 -1
- package/src/generation-core/site-plan.model.ts +3 -1
- package/src/generation-core/site-spec.generated.ts +137 -56
- package/src/generation-core/validate-site-plan.ts +5 -3
- package/src/harness-core/starting-design.ts +8 -4
- package/styles/iox-design.css +32 -0
|
@@ -1066,6 +1066,19 @@ interface CarouselOptions {
|
|
|
1066
1066
|
* control parts — the pause control first, Previous · Next, the dots. ONE recipe for the composer and the builder.
|
|
1067
1067
|
*/
|
|
1068
1068
|
declare function buildCarouselRecipe(create: CompositeNodeFactory, options?: CarouselOptions): CompositeNode;
|
|
1069
|
+
interface SlideshowOptions {
|
|
1070
|
+
/** The slideshow's accessible name (a `region` landmark). */
|
|
1071
|
+
name?: string;
|
|
1072
|
+
/** How many pictures (empty — the studio's own go in). */
|
|
1073
|
+
count?: number;
|
|
1074
|
+
}
|
|
1075
|
+
/**
|
|
1076
|
+
* The slideshow (award-ingredients AW8, `media.slideshow`): pictures cross-fading on their own — a named Slider with a
|
|
1077
|
+
* fade, autoplay and its control parts over the pictures: the pause control (WCAG 2.2.2 — always there while it
|
|
1078
|
+
* rotates, `syncSliderParts`) and the dots; no arrows. One empty picture per slide. ONE recipe for the composer and the
|
|
1079
|
+
* builder, beside the carousel's.
|
|
1080
|
+
*/
|
|
1081
|
+
declare function buildSlideshowRecipe(create: CompositeNodeFactory, options?: SlideshowOptions): CompositeNode;
|
|
1069
1082
|
/** The slide a lightbox opens at for the clicked row (clamped to the slides there are). */
|
|
1070
1083
|
declare function slideIndexForRow(rowIndex: number, slideCount: number): number;
|
|
1071
1084
|
|
|
@@ -2622,5 +2635,5 @@ interface ConsentRecipe {
|
|
|
2622
2635
|
/** The three roots. Pure over the factory: the builder and the composer get the same tree. */
|
|
2623
2636
|
declare function buildConsentRecipe(create: CompositeNodeFactory, options?: ConsentRecipeOptions): ConsentRecipe;
|
|
2624
2637
|
|
|
2625
|
-
export { ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, ACCORDION_DEFAULT_ONS, ACCORDION_ICONS, ACCORDION_ICON_GLYPH, ACCORDION_NEW_ITEM_WORDS, ACCORDION_WORDS, ACCOUNT_GLOBAL_RECIPES, ACCOUNT_HIDDEN_ATTRIBUTE, ACCOUNT_LABELS, ACCOUNT_LIVE_CLASS, ACCOUNT_RECIPES, ACCOUNT_RECIPE_WORDS, ACCOUNT_ROLES, ACTIVATE_ON_ATTRIBUTE, ADDED_HOLD_MS, AccordionClass, AccordionDefaultOn, AccordionEditRefusal, AccordionIcon, AccordionKeyAction, AccordionRole, AccordionRuntime, AccountActionType, AccountRecipe, AccountRole, AccountRuntime, BADGE_TONES, BADGE_TONE_ICONS, BadgeTone, CARD_LAYOUTS, CARD_LAYOUT_CUSTOM, CARD_PARTS, CARD_PARTS_OFF_AT_START, CARD_PART_ROLE, CARD_STACK_BREAKPOINT, CARD_WORDS, CAROUSEL_QUOTES, CART_EMPTY_ATTRIBUTE, CART_LINE_ATTRIBUTE, CART_TITLE_COUNT_ATTRIBUTE, CART_WAITING_ATTRIBUTE, CHIP_ICON, CHIP_STYLE, COLOUR_OPTION_NAMES, COMPOSITE_ATTRIBUTE, COMPOSITE_KIND_ROLES, COMPOSITE_ROLE_SPECS, CONSENT_CHOICE_CATEGORIES, CONSENT_LABELS, CONSENT_ROLES, COUNTER_COUNT, COUNTER_ENTRANCE, COUNTER_SAMPLE_WORDS, CardLayout, CardPart, CardRole, CarouselA11y, CompositeBehaviourTrait, CompositeItemAction, CompositeKind, ConsentActionType, ConsentRole, DEFAULT_ON_ATTRIBUTE, DISCLOSURE_ITEM_KEY, DISCLOSURE_WORDS, DisclosureRole, EXCLUSIVE_KIND_ROLES, ExclusiveRuntime, ITEM_KEY_ATTRIBUTE, ITEM_OFF_EVENT, ITEM_ON_EVENT, ITEM_OPEN_STATE, LIGHTBOX_ARROWS_HIDE_AT, LIGHTBOX_LABEL, MARQUEE_DEFAULTS, MARQUEE_DEFAULT_SPEED_PX, MARQUEE_KEYFRAMES, MARQUEE_MAX_COPIES, MARQUEE_MIN_LOOP_S, MARQUEE_NODE_ATTRIBUTES, MARQUEE_NOSCRIPT_CSS, MARQUEE_PAUSE_GLYPH, MARQUEE_PLAY_GLYPH, MARQUEE_SAMPLE_WORDS, MARQUEE_SPEED_FACTOR, MARQUEE_WORDS, MULTIPLE_ATTRIBUTE, MarqueeAttribute, MarqueeDirection, MarqueeRole, MarqueeRuntime, MarqueeSpeed, MarqueeStyle, MarqueeTrait, NAMED_SWATCHES, NO_ELEMENT_STYLE, ON_ATTRIBUTE, ON_STATE, ORIENTATION_ATTRIBUTE, PILL_LABEL_STYLE, PREFERENCES_FROM_CATEGORIES, PROVIDER_ROLES, SCOPE_ATTRIBUTE, SEGMENTED_BADGE_TONE, SEGMENTED_BADGE_WORDS, SEGMENTED_BEHAVIOUR, SEGMENTED_MAX_OPTIONS, SEGMENTED_MIN_OPTIONS, SEGMENTED_NAME, SEGMENTED_NEW_OPTION_WORDS, SEGMENTED_WORDS, SHOP_ADDED_ATTRIBUTE, SHOP_BINDS, SHOP_CHIP_MAX, SHOP_CLONE_ATTRIBUTE, SHOP_GLOBAL_RECIPES, SHOP_HIDDEN_ATTRIBUTE, SHOP_LABELS, SHOP_LIVE_CLASS, SHOP_RECIPES, SHOP_RECIPE_WORDS, SHOP_REST_WORDS_ATTRIBUTE, SHOP_ROLES, SHOP_SELECT_CLASS, SHOP_UNUSED_ATTRIBUTE, SIGNED_IN_ATTRIBUTE, SIGN_IN_STEP_ATTRIBUTE, SLIDER_BAR_ORDER, SLIDER_NAME_TRAIT, SLIDER_PART_GLYPH, SLIDER_PART_ROLES, SLIDER_PLACEMENT_TRAIT, SLIDER_PLAY_GLYPH, SLIDER_SCROLL_PLAYS_TRAIT, SLIDER_SWAPPING_ATTRIBUTE, SLIDER_TEXT_ATTRIBUTE, SLIDER_TYPE, SLIDER_WORDS, SLIDE_CAPTION_TRAIT, SLIDE_TO_ROW, SLIDE_TYPE, SWIPER_THEME_COLOR, SceneRole, SegmentedEditRefusal, SegmentedRole, SegmentedTrait, ShopActionType, ShopBindTarget, ShopPickerKind, ShopRecipe, ShopRole, ShopRuntime, SignInFieldName, SignInStep, SliderFlag, SliderPlacement, SliderRole, StructureEdit, StructureRefusal, TABS_ACTIVATE_ONS, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, TABS_LABEL_BIND_PROP, TABS_NEW_TAB_WORDS, TABS_ORIENTATIONS, TABS_STACK_BREAKPOINT, TABS_TEXT_BIND_PROP, TABS_WORDS, TabsActivateOn, TabsBehaviourTrait, TabsEditRefusal, TabsOrientation, TabsRole, UNTIL_FOUND, acceptsRefusal, accordionAnswerOf, accordionBehaviour, accordionDomIds, accordionFocusIndex, accordionHeadingLevel, accordionItemAttributes, accordionItemLabel, accordionItemOf, accordionItemState, accordionItems, accordionKeyAction, accordionPanelAttributes, accordionPanelOf, accordionPartStyle, accordionQuestionOf, accordionRegionAttributes, accordionRemovalRefusal, accordionRootAttributes, accordionRootOf, accordionRootOfItem, accordionRuntimeOf, accordionScope, accordionToContent, accordionToManual, accordionTrackAttributes, accordionTriggerAttributes, accordionTriggerOf, accountRecipeWords, accountRuntimeOf, accountSelector, addAccordionItem, addSegmentedOption, addTabPair, applyCardLayout, attachAccordionAt, attachAccordions, attachAccount, attachCarouselA11y, attachCompositeAt, attachExclusiveAt, attachMarquees, attachShop, attachSliderBar, badgeStyleId, badgeToneOf, bindShopPart, buildAccordionItem, buildAccordionRecipe, buildAccountEntryRecipe, buildAccountMenuRecipe, buildAddToCartRecipe, buildBadge, buildBuyNowRecipe, buildCardRecipe, buildCarouselRecipe, buildCartButtonRecipe, buildCartDrawerRecipe, buildChip, buildCompositeIcon, buildConsentRecipe, buildCounterRecipe, buildDisclosureRecipe, buildLightboxRecipe, buildMarqueeRecipe, buildPriceRecipe, buildQuantityRecipe, buildReadingBarRecipe, buildSegmentedOption, buildSegmentedRecipe, buildSignInDialogRecipe, buildSliderPart, buildTabPair, buildTabsRecipe, buildVariantPickerRecipe, canOpenAtClickedItem, cardPartsOf, cardRootOf, cardTitleOf, carouselOf, clearLayerStyles, closeAccordionItem, closestAccordion, closestAccordionItem, closestExclusive, closestExclusiveItemPart, compositeItemOf, compositeItems, compositeKindOfRole, compositeRootOf, compositeRowKeys, compositeScopeId, consentRecipeWords, detachAccordion, detectAccordionIcon, detectCardLayout, disclosureOpenByDefault, domSafeKey, exclusiveBehaviourOf, exclusiveDefaultOf, exclusiveItemLabel, exclusiveItemPartOf, exclusiveKindHasPanels, exclusiveKindOf, exclusiveLabelOf, exclusivePartAttributes, exclusiveRootAttributesOf, exclusiveRootHoldsTriggers, exclusiveRootOf, exclusiveRuntimeOf, exclusiveScopeFor, findByRole, hasLabelledRegion, hasSliderParts, headerBehaviourOfNode, initialAccordionOpen, isAccordionFromContent, isAccordionItemOn, isAccordionPart, isAccordionRoot, isAccountRole, isAnyCompositeRoot, isCardLinked, isCardRoot, isCompositeItem, isCompositeItemOn, isCompositePanel, isCompositeRoot, isCompositeTrigger, isDisclosurePart, isDisclosureRoot, isExclusiveItemOn, isExclusiveItemPart, isExclusiveKind, isExclusiveList, isExclusivePanel, isExclusivePanels, isExclusiveRoot, isExclusiveTrigger, isExclusiveTriggerDisabled, isLockedPart, isMarqueeRoot, isPartOfExclusiveScope, isPillNode, isSegmentedPart, isSegmentedRoot, isShopRole, isSlider, isSliderPart, isTabsFromContent, isTabsPart, isTabsRoot, isToggleKind, itemOpenTriggerIds, lightboxSliderOf, lookMarqueeSpeed, makeCompositePart, manualTabKeys, marqueeCopyCount, marqueeLoopSeconds, marqueePartElement, marqueePauseAttributes, marqueePauseGlyph, marqueeRootAttributes, marqueeRootOf, marqueeSettings, marqueeWords, migrateSliderControls, moveAccordionItem, moveSegmentedOption, moveTabPair, needsSliderMigration, nextAccordionState, nextItemKey, nextSegmentedKey, nextTabKey, onAccordionItemState, onCompositeItemState, onExclusiveItemState, openAccordionItem, parentInComposite, pickAccordionAutoBinds, pickTabsAutoBinds, readLayerStyle, readProp, readStyle, removeFromComposite, removeSegmentedOption, removeTabPair, renameAccordionItem, renameSegmentedOption, renameTab, repeatSourceOf, rowIndexOf, rowItemKey, rowSourceOf, runAccountAction, runCompositeItemAction, runShopAction, sameRepeatSource, segmentedAddRefusal, segmentedBadgeOf, segmentedDefaultOn, segmentedItemTriggerIds, segmentedKeyAction, segmentedKeys, segmentedLabel, segmentedOptionAttributes, segmentedOptionKey, segmentedOptionLabel, segmentedOptionLabelNodeOf, segmentedOptions, segmentedPartAttributes, segmentedRemovalRefusal, segmentedRootAttributes, segmentedRootAttributesOf, segmentedScopeFor, serializeDomAttributes, setAccordionBehaviour, setAccordionIcon, setBadgeTone, setCardLinked, setCardPart, setHeaderBehaviour, setMarqueeSettings, setSegmentedBadge, setSegmentedBehaviour, setSliderFlag, setSliderPlacement, setTabsBehaviour, shopPickerKind, shopRecipeWords, shopRuntimeOf, shopSelector, shouldScrollToItem, slideIndexForRow, sliderCaptionOf, sliderCountText, sliderLiveRegion, sliderPart, sliderPartElement, sliderPauseAttributes, sliderPauseGlyph, sliderPlacementOf, sliderSlides, sliderWords, splitSliderChildren, structureRefusal, swatchFill, syncSliderParts, tabLabel, tabLabelNodeOf, tabListAttributes, tabPanelAttributes, tabPanelImageOf, tabPanelOf, tabPanelTextOf, tabPartKey, tabTriggerAttributes, tabTriggerOf, tabsBehaviour, tabsItemState, tabsItemTriggerIds, tabsKeyAction, tabsLabel, tabsListOf, tabsPanels, tabsPanelsOf, tabsPartAttributes, tabsPartnerOf, tabsRemovalRefusal, tabsRootAttributes, tabsScope, tabsScopeFor, tabsToContent, tabsToManual, tabsTriggers, variantGroupLabel, variantGroupNote, walkComposite, wantedSliderParts, writeLayerStyles, writeProp, writeStyles };
|
|
2626
|
-
export type { AccordionAutoBinds, AccordionBehaviour, AccordionDomIds, AccordionItemState, AccordionOptions, AccordionRuntimeOptions, AccordionScope, AccordionWords, AccountHost, AccountRecipeWords, BarSwiper, BaselineStyles, CardEditOptions, CardLayoutResult, CardLayoutState, CardOptions, CardPartChange, CardWords, CarouselA11yOptions, CarouselOptions, CarouselQuote, CarouselSwiper, CompositeBinding, CompositeKindRoles, CompositeLayer, CompositeNode, CompositeNodeFactory, CompositeNodeSpec, CompositeRoleSpec, CompositeRuntime, CompositeTrait, ConsentRecipe, ConsentRecipeOptions, ConsentRecipeWords, ContentFieldLike, CounterWords, DisclosureOptions, DisclosureWords, DomAttributes, ExclusiveCompositeKind, ExclusiveKindRoles, ExclusiveRuntimeOptions, ExclusiveScope, LegacySliderLook, LightboxOptions, MarqueeRecipeOptions, MarqueeRuntimeOptions, MarqueeSettings, MarqueeWords, PillOptions, RepeatSource, SegmentedOptionWords, SegmentedOptions, ShopHost, ShopRecipeWords, SliderPartsChange, SliderWords, TabPair, TabWords, TabsAutoBinds, TabsBehaviour, TabsItemState, TabsOptions, TabsScope, ToggleCompositeKind, WaitingOrder };
|
|
2638
|
+
export { ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, ACCORDION_DEFAULT_ONS, ACCORDION_ICONS, ACCORDION_ICON_GLYPH, ACCORDION_NEW_ITEM_WORDS, ACCORDION_WORDS, ACCOUNT_GLOBAL_RECIPES, ACCOUNT_HIDDEN_ATTRIBUTE, ACCOUNT_LABELS, ACCOUNT_LIVE_CLASS, ACCOUNT_RECIPES, ACCOUNT_RECIPE_WORDS, ACCOUNT_ROLES, ACTIVATE_ON_ATTRIBUTE, ADDED_HOLD_MS, AccordionClass, AccordionDefaultOn, AccordionEditRefusal, AccordionIcon, AccordionKeyAction, AccordionRole, AccordionRuntime, AccountActionType, AccountRecipe, AccountRole, AccountRuntime, BADGE_TONES, BADGE_TONE_ICONS, BadgeTone, CARD_LAYOUTS, CARD_LAYOUT_CUSTOM, CARD_PARTS, CARD_PARTS_OFF_AT_START, CARD_PART_ROLE, CARD_STACK_BREAKPOINT, CARD_WORDS, CAROUSEL_QUOTES, CART_EMPTY_ATTRIBUTE, CART_LINE_ATTRIBUTE, CART_TITLE_COUNT_ATTRIBUTE, CART_WAITING_ATTRIBUTE, CHIP_ICON, CHIP_STYLE, COLOUR_OPTION_NAMES, COMPOSITE_ATTRIBUTE, COMPOSITE_KIND_ROLES, COMPOSITE_ROLE_SPECS, CONSENT_CHOICE_CATEGORIES, CONSENT_LABELS, CONSENT_ROLES, COUNTER_COUNT, COUNTER_ENTRANCE, COUNTER_SAMPLE_WORDS, CardLayout, CardPart, CardRole, CarouselA11y, CompositeBehaviourTrait, CompositeItemAction, CompositeKind, ConsentActionType, ConsentRole, DEFAULT_ON_ATTRIBUTE, DISCLOSURE_ITEM_KEY, DISCLOSURE_WORDS, DisclosureRole, EXCLUSIVE_KIND_ROLES, ExclusiveRuntime, ITEM_KEY_ATTRIBUTE, ITEM_OFF_EVENT, ITEM_ON_EVENT, ITEM_OPEN_STATE, LIGHTBOX_ARROWS_HIDE_AT, LIGHTBOX_LABEL, MARQUEE_DEFAULTS, MARQUEE_DEFAULT_SPEED_PX, MARQUEE_KEYFRAMES, MARQUEE_MAX_COPIES, MARQUEE_MIN_LOOP_S, MARQUEE_NODE_ATTRIBUTES, MARQUEE_NOSCRIPT_CSS, MARQUEE_PAUSE_GLYPH, MARQUEE_PLAY_GLYPH, MARQUEE_SAMPLE_WORDS, MARQUEE_SPEED_FACTOR, MARQUEE_WORDS, MULTIPLE_ATTRIBUTE, MarqueeAttribute, MarqueeDirection, MarqueeRole, MarqueeRuntime, MarqueeSpeed, MarqueeStyle, MarqueeTrait, NAMED_SWATCHES, NO_ELEMENT_STYLE, ON_ATTRIBUTE, ON_STATE, ORIENTATION_ATTRIBUTE, PILL_LABEL_STYLE, PREFERENCES_FROM_CATEGORIES, PROVIDER_ROLES, SCOPE_ATTRIBUTE, SEGMENTED_BADGE_TONE, SEGMENTED_BADGE_WORDS, SEGMENTED_BEHAVIOUR, SEGMENTED_MAX_OPTIONS, SEGMENTED_MIN_OPTIONS, SEGMENTED_NAME, SEGMENTED_NEW_OPTION_WORDS, SEGMENTED_WORDS, SHOP_ADDED_ATTRIBUTE, SHOP_BINDS, SHOP_CHIP_MAX, SHOP_CLONE_ATTRIBUTE, SHOP_GLOBAL_RECIPES, SHOP_HIDDEN_ATTRIBUTE, SHOP_LABELS, SHOP_LIVE_CLASS, SHOP_RECIPES, SHOP_RECIPE_WORDS, SHOP_REST_WORDS_ATTRIBUTE, SHOP_ROLES, SHOP_SELECT_CLASS, SHOP_UNUSED_ATTRIBUTE, SIGNED_IN_ATTRIBUTE, SIGN_IN_STEP_ATTRIBUTE, SLIDER_BAR_ORDER, SLIDER_NAME_TRAIT, SLIDER_PART_GLYPH, SLIDER_PART_ROLES, SLIDER_PLACEMENT_TRAIT, SLIDER_PLAY_GLYPH, SLIDER_SCROLL_PLAYS_TRAIT, SLIDER_SWAPPING_ATTRIBUTE, SLIDER_TEXT_ATTRIBUTE, SLIDER_TYPE, SLIDER_WORDS, SLIDE_CAPTION_TRAIT, SLIDE_TO_ROW, SLIDE_TYPE, SWIPER_THEME_COLOR, SceneRole, SegmentedEditRefusal, SegmentedRole, SegmentedTrait, ShopActionType, ShopBindTarget, ShopPickerKind, ShopRecipe, ShopRole, ShopRuntime, SignInFieldName, SignInStep, SliderFlag, SliderPlacement, SliderRole, StructureEdit, StructureRefusal, TABS_ACTIVATE_ONS, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, TABS_LABEL_BIND_PROP, TABS_NEW_TAB_WORDS, TABS_ORIENTATIONS, TABS_STACK_BREAKPOINT, TABS_TEXT_BIND_PROP, TABS_WORDS, TabsActivateOn, TabsBehaviourTrait, TabsEditRefusal, TabsOrientation, TabsRole, UNTIL_FOUND, acceptsRefusal, accordionAnswerOf, accordionBehaviour, accordionDomIds, accordionFocusIndex, accordionHeadingLevel, accordionItemAttributes, accordionItemLabel, accordionItemOf, accordionItemState, accordionItems, accordionKeyAction, accordionPanelAttributes, accordionPanelOf, accordionPartStyle, accordionQuestionOf, accordionRegionAttributes, accordionRemovalRefusal, accordionRootAttributes, accordionRootOf, accordionRootOfItem, accordionRuntimeOf, accordionScope, accordionToContent, accordionToManual, accordionTrackAttributes, accordionTriggerAttributes, accordionTriggerOf, accountRecipeWords, accountRuntimeOf, accountSelector, addAccordionItem, addSegmentedOption, addTabPair, applyCardLayout, attachAccordionAt, attachAccordions, attachAccount, attachCarouselA11y, attachCompositeAt, attachExclusiveAt, attachMarquees, attachShop, attachSliderBar, badgeStyleId, badgeToneOf, bindShopPart, buildAccordionItem, buildAccordionRecipe, buildAccountEntryRecipe, buildAccountMenuRecipe, buildAddToCartRecipe, buildBadge, buildBuyNowRecipe, buildCardRecipe, buildCarouselRecipe, buildCartButtonRecipe, buildCartDrawerRecipe, buildChip, buildCompositeIcon, buildConsentRecipe, buildCounterRecipe, buildDisclosureRecipe, buildLightboxRecipe, buildMarqueeRecipe, buildPriceRecipe, buildQuantityRecipe, buildReadingBarRecipe, buildSegmentedOption, buildSegmentedRecipe, buildSignInDialogRecipe, buildSliderPart, buildSlideshowRecipe, buildTabPair, buildTabsRecipe, buildVariantPickerRecipe, canOpenAtClickedItem, cardPartsOf, cardRootOf, cardTitleOf, carouselOf, clearLayerStyles, closeAccordionItem, closestAccordion, closestAccordionItem, closestExclusive, closestExclusiveItemPart, compositeItemOf, compositeItems, compositeKindOfRole, compositeRootOf, compositeRowKeys, compositeScopeId, consentRecipeWords, detachAccordion, detectAccordionIcon, detectCardLayout, disclosureOpenByDefault, domSafeKey, exclusiveBehaviourOf, exclusiveDefaultOf, exclusiveItemLabel, exclusiveItemPartOf, exclusiveKindHasPanels, exclusiveKindOf, exclusiveLabelOf, exclusivePartAttributes, exclusiveRootAttributesOf, exclusiveRootHoldsTriggers, exclusiveRootOf, exclusiveRuntimeOf, exclusiveScopeFor, findByRole, hasLabelledRegion, hasSliderParts, headerBehaviourOfNode, initialAccordionOpen, isAccordionFromContent, isAccordionItemOn, isAccordionPart, isAccordionRoot, isAccountRole, isAnyCompositeRoot, isCardLinked, isCardRoot, isCompositeItem, isCompositeItemOn, isCompositePanel, isCompositeRoot, isCompositeTrigger, isDisclosurePart, isDisclosureRoot, isExclusiveItemOn, isExclusiveItemPart, isExclusiveKind, isExclusiveList, isExclusivePanel, isExclusivePanels, isExclusiveRoot, isExclusiveTrigger, isExclusiveTriggerDisabled, isLockedPart, isMarqueeRoot, isPartOfExclusiveScope, isPillNode, isSegmentedPart, isSegmentedRoot, isShopRole, isSlider, isSliderPart, isTabsFromContent, isTabsPart, isTabsRoot, isToggleKind, itemOpenTriggerIds, lightboxSliderOf, lookMarqueeSpeed, makeCompositePart, manualTabKeys, marqueeCopyCount, marqueeLoopSeconds, marqueePartElement, marqueePauseAttributes, marqueePauseGlyph, marqueeRootAttributes, marqueeRootOf, marqueeSettings, marqueeWords, migrateSliderControls, moveAccordionItem, moveSegmentedOption, moveTabPair, needsSliderMigration, nextAccordionState, nextItemKey, nextSegmentedKey, nextTabKey, onAccordionItemState, onCompositeItemState, onExclusiveItemState, openAccordionItem, parentInComposite, pickAccordionAutoBinds, pickTabsAutoBinds, readLayerStyle, readProp, readStyle, removeFromComposite, removeSegmentedOption, removeTabPair, renameAccordionItem, renameSegmentedOption, renameTab, repeatSourceOf, rowIndexOf, rowItemKey, rowSourceOf, runAccountAction, runCompositeItemAction, runShopAction, sameRepeatSource, segmentedAddRefusal, segmentedBadgeOf, segmentedDefaultOn, segmentedItemTriggerIds, segmentedKeyAction, segmentedKeys, segmentedLabel, segmentedOptionAttributes, segmentedOptionKey, segmentedOptionLabel, segmentedOptionLabelNodeOf, segmentedOptions, segmentedPartAttributes, segmentedRemovalRefusal, segmentedRootAttributes, segmentedRootAttributesOf, segmentedScopeFor, serializeDomAttributes, setAccordionBehaviour, setAccordionIcon, setBadgeTone, setCardLinked, setCardPart, setHeaderBehaviour, setMarqueeSettings, setSegmentedBadge, setSegmentedBehaviour, setSliderFlag, setSliderPlacement, setTabsBehaviour, shopPickerKind, shopRecipeWords, shopRuntimeOf, shopSelector, shouldScrollToItem, slideIndexForRow, sliderCaptionOf, sliderCountText, sliderLiveRegion, sliderPart, sliderPartElement, sliderPauseAttributes, sliderPauseGlyph, sliderPlacementOf, sliderSlides, sliderWords, splitSliderChildren, structureRefusal, swatchFill, syncSliderParts, tabLabel, tabLabelNodeOf, tabListAttributes, tabPanelAttributes, tabPanelImageOf, tabPanelOf, tabPanelTextOf, tabPartKey, tabTriggerAttributes, tabTriggerOf, tabsBehaviour, tabsItemState, tabsItemTriggerIds, tabsKeyAction, tabsLabel, tabsListOf, tabsPanels, tabsPanelsOf, tabsPartAttributes, tabsPartnerOf, tabsRemovalRefusal, tabsRootAttributes, tabsScope, tabsScopeFor, tabsToContent, tabsToManual, tabsTriggers, variantGroupLabel, variantGroupNote, walkComposite, wantedSliderParts, writeLayerStyles, writeProp, writeStyles };
|
|
2639
|
+
export type { AccordionAutoBinds, AccordionBehaviour, AccordionDomIds, AccordionItemState, AccordionOptions, AccordionRuntimeOptions, AccordionScope, AccordionWords, AccountHost, AccountRecipeWords, BarSwiper, BaselineStyles, CardEditOptions, CardLayoutResult, CardLayoutState, CardOptions, CardPartChange, CardWords, CarouselA11yOptions, CarouselOptions, CarouselQuote, CarouselSwiper, CompositeBinding, CompositeKindRoles, CompositeLayer, CompositeNode, CompositeNodeFactory, CompositeNodeSpec, CompositeRoleSpec, CompositeRuntime, CompositeTrait, ConsentRecipe, ConsentRecipeOptions, ConsentRecipeWords, ContentFieldLike, CounterWords, DisclosureOptions, DisclosureWords, DomAttributes, ExclusiveCompositeKind, ExclusiveKindRoles, ExclusiveRuntimeOptions, ExclusiveScope, LegacySliderLook, LightboxOptions, MarqueeRecipeOptions, MarqueeRuntimeOptions, MarqueeSettings, MarqueeWords, PillOptions, RepeatSource, SegmentedOptionWords, SegmentedOptions, ShopHost, ShopRecipeWords, SliderPartsChange, SliderWords, SlideshowOptions, TabPair, TabWords, TabsAutoBinds, TabsBehaviour, TabsItemState, TabsOptions, TabsScope, ToggleCompositeKind, WaitingOrder };
|
package/design-core/index.d.ts
CHANGED
|
@@ -1828,6 +1828,8 @@ declare const SPEC_MOTION_LANGUAGE: {
|
|
|
1828
1828
|
readonly pop: "cubic-bezier(0.34, 1.56, 0.64, 1)";
|
|
1829
1829
|
readonly exit: "cubic-bezier(0.25, 1, 0.5, 1)";
|
|
1830
1830
|
};
|
|
1831
|
+
readonly preloader: readonly ["none", "mark", "counter", "letters"];
|
|
1832
|
+
readonly preloaderExit: readonly ["none", "fade", "sweep", "window", "lift"];
|
|
1831
1833
|
readonly tiers: {
|
|
1832
1834
|
readonly arrive: {
|
|
1833
1835
|
readonly enter: "all";
|
|
@@ -1861,6 +1863,12 @@ declare const SPEC_MOTION_LANGUAGE: {
|
|
|
1861
1863
|
readonly interstitial: "pro";
|
|
1862
1864
|
readonly controls: "pro";
|
|
1863
1865
|
};
|
|
1866
|
+
readonly preloader: {
|
|
1867
|
+
readonly none: "all";
|
|
1868
|
+
readonly mark: "pro";
|
|
1869
|
+
readonly counter: "pro";
|
|
1870
|
+
readonly letters: "pro";
|
|
1871
|
+
};
|
|
1864
1872
|
};
|
|
1865
1873
|
readonly meanings: {
|
|
1866
1874
|
readonly "arrive.enter": "today's arrival curve (a quick start, a long soft landing)";
|
|
@@ -1885,121 +1893,169 @@ declare const SPEC_MOTION_LANGUAGE: {
|
|
|
1885
1893
|
readonly arrive: "quart-out";
|
|
1886
1894
|
readonly leave: "quart-out";
|
|
1887
1895
|
readonly move: "rise";
|
|
1896
|
+
readonly preloader: "none";
|
|
1897
|
+
readonly preloaderExit: "none";
|
|
1888
1898
|
};
|
|
1889
1899
|
readonly "swiss-grid": {
|
|
1890
1900
|
readonly arrive: "quart-out";
|
|
1891
1901
|
readonly leave: "quart-out";
|
|
1892
1902
|
readonly move: "clip";
|
|
1903
|
+
readonly preloader: "none";
|
|
1904
|
+
readonly preloaderExit: "none";
|
|
1893
1905
|
};
|
|
1894
1906
|
readonly "trusted-advisor": {
|
|
1895
1907
|
readonly arrive: "quart-out";
|
|
1896
1908
|
readonly leave: "quart-out";
|
|
1897
1909
|
readonly move: "rise";
|
|
1910
|
+
readonly preloader: "none";
|
|
1911
|
+
readonly preloaderExit: "none";
|
|
1898
1912
|
};
|
|
1899
1913
|
readonly "fresh-practice": {
|
|
1900
1914
|
readonly arrive: "expo-out";
|
|
1901
1915
|
readonly leave: "quart-out";
|
|
1902
1916
|
readonly move: "fade";
|
|
1917
|
+
readonly preloader: "none";
|
|
1918
|
+
readonly preloaderExit: "none";
|
|
1903
1919
|
};
|
|
1904
1920
|
readonly "gallery-minimal": {
|
|
1905
1921
|
readonly arrive: "expo-out";
|
|
1906
1922
|
readonly leave: "quart-out";
|
|
1907
1923
|
readonly move: "fade";
|
|
1924
|
+
readonly preloader: "none";
|
|
1925
|
+
readonly preloaderExit: "none";
|
|
1908
1926
|
};
|
|
1909
1927
|
readonly "warm-editorial": {
|
|
1910
1928
|
readonly arrive: "quart-out";
|
|
1911
1929
|
readonly leave: "quart-out";
|
|
1912
1930
|
readonly move: "mask-rise";
|
|
1931
|
+
readonly preloader: "none";
|
|
1932
|
+
readonly preloaderExit: "none";
|
|
1913
1933
|
};
|
|
1914
1934
|
readonly "soft-spa": {
|
|
1915
1935
|
readonly arrive: "expo-out";
|
|
1916
1936
|
readonly leave: "quart-out";
|
|
1917
1937
|
readonly move: "blur-in";
|
|
1938
|
+
readonly preloader: "none";
|
|
1939
|
+
readonly preloaderExit: "none";
|
|
1918
1940
|
};
|
|
1919
1941
|
readonly "quiet-luxury": {
|
|
1920
1942
|
readonly arrive: "expo-out";
|
|
1921
1943
|
readonly leave: "expo-out";
|
|
1922
1944
|
readonly move: "fade";
|
|
1945
|
+
readonly preloader: "none";
|
|
1946
|
+
readonly preloaderExit: "none";
|
|
1923
1947
|
};
|
|
1924
1948
|
readonly "after-dark": {
|
|
1925
1949
|
readonly arrive: "expo-out";
|
|
1926
1950
|
readonly leave: "quart-out";
|
|
1927
1951
|
readonly move: "mask-rise";
|
|
1952
|
+
readonly preloader: "mark";
|
|
1953
|
+
readonly preloaderExit: "lift";
|
|
1928
1954
|
};
|
|
1929
1955
|
readonly "ink-studio": {
|
|
1930
1956
|
readonly arrive: "quart-out";
|
|
1931
1957
|
readonly leave: "quart-out";
|
|
1932
1958
|
readonly move: "mask-rise";
|
|
1959
|
+
readonly preloader: "none";
|
|
1960
|
+
readonly preloaderExit: "none";
|
|
1933
1961
|
};
|
|
1934
1962
|
readonly "night-gallery": {
|
|
1935
1963
|
readonly arrive: "expo-out";
|
|
1936
1964
|
readonly leave: "quart-out";
|
|
1937
1965
|
readonly move: "blur-in";
|
|
1966
|
+
readonly preloader: "none";
|
|
1967
|
+
readonly preloaderExit: "none";
|
|
1938
1968
|
};
|
|
1939
1969
|
readonly "tech-studio": {
|
|
1940
1970
|
readonly arrive: "quart-out";
|
|
1941
1971
|
readonly leave: "quart-out";
|
|
1942
1972
|
readonly move: "words-lit";
|
|
1973
|
+
readonly preloader: "counter";
|
|
1974
|
+
readonly preloaderExit: "window";
|
|
1943
1975
|
};
|
|
1944
1976
|
readonly "morning-glass": {
|
|
1945
1977
|
readonly arrive: "expo-out";
|
|
1946
1978
|
readonly leave: "quart-out";
|
|
1947
1979
|
readonly move: "blur-in";
|
|
1980
|
+
readonly preloader: "none";
|
|
1981
|
+
readonly preloaderExit: "none";
|
|
1948
1982
|
};
|
|
1949
1983
|
readonly "holiday-light": {
|
|
1950
1984
|
readonly arrive: "spring";
|
|
1951
1985
|
readonly leave: "quart-out";
|
|
1952
1986
|
readonly move: "rise";
|
|
1987
|
+
readonly preloader: "none";
|
|
1988
|
+
readonly preloaderExit: "none";
|
|
1953
1989
|
};
|
|
1954
1990
|
readonly "frosted-portfolio": {
|
|
1955
1991
|
readonly arrive: "expo-out";
|
|
1956
1992
|
readonly leave: "quart-out";
|
|
1957
1993
|
readonly move: "blur-in";
|
|
1994
|
+
readonly preloader: "none";
|
|
1995
|
+
readonly preloaderExit: "none";
|
|
1958
1996
|
};
|
|
1959
1997
|
readonly "coral-studio": {
|
|
1960
1998
|
readonly arrive: "pop";
|
|
1961
1999
|
readonly leave: "quart-out";
|
|
1962
2000
|
readonly move: "rise";
|
|
2001
|
+
readonly preloader: "none";
|
|
2002
|
+
readonly preloaderExit: "none";
|
|
1963
2003
|
};
|
|
1964
2004
|
readonly "corner-cafe": {
|
|
1965
2005
|
readonly arrive: "spring";
|
|
1966
2006
|
readonly leave: "quart-out";
|
|
1967
2007
|
readonly move: "rise";
|
|
2008
|
+
readonly preloader: "mark";
|
|
2009
|
+
readonly preloaderExit: "fade";
|
|
1968
2010
|
};
|
|
1969
2011
|
readonly "kind-community": {
|
|
1970
2012
|
readonly arrive: "quart-out";
|
|
1971
2013
|
readonly leave: "quart-out";
|
|
1972
2014
|
readonly move: "rise";
|
|
2015
|
+
readonly preloader: "none";
|
|
2016
|
+
readonly preloaderExit: "none";
|
|
1973
2017
|
};
|
|
1974
2018
|
readonly "little-ones": {
|
|
1975
2019
|
readonly arrive: "pop";
|
|
1976
2020
|
readonly leave: "quart-out";
|
|
1977
2021
|
readonly move: "rise";
|
|
2022
|
+
readonly preloader: "none";
|
|
2023
|
+
readonly preloaderExit: "none";
|
|
1978
2024
|
};
|
|
1979
2025
|
readonly "garden-party": {
|
|
1980
2026
|
readonly arrive: "spring";
|
|
1981
2027
|
readonly leave: "quart-out";
|
|
1982
2028
|
readonly move: "rise";
|
|
2029
|
+
readonly preloader: "none";
|
|
2030
|
+
readonly preloaderExit: "none";
|
|
1983
2031
|
};
|
|
1984
2032
|
readonly "bold-maker": {
|
|
1985
2033
|
readonly arrive: "pop";
|
|
1986
2034
|
readonly leave: "quart-out";
|
|
1987
2035
|
readonly move: "mask-rise";
|
|
2036
|
+
readonly preloader: "counter";
|
|
2037
|
+
readonly preloaderExit: "sweep";
|
|
1988
2038
|
};
|
|
1989
2039
|
readonly festival: {
|
|
1990
2040
|
readonly arrive: "pop";
|
|
1991
2041
|
readonly leave: "quart-out";
|
|
1992
2042
|
readonly move: "rise";
|
|
2043
|
+
readonly preloader: "letters";
|
|
2044
|
+
readonly preloaderExit: "fade";
|
|
1993
2045
|
};
|
|
1994
2046
|
readonly zine: {
|
|
1995
2047
|
readonly arrive: "quart-out";
|
|
1996
2048
|
readonly leave: "quart-out";
|
|
1997
2049
|
readonly move: "clip";
|
|
2050
|
+
readonly preloader: "letters";
|
|
2051
|
+
readonly preloaderExit: "sweep";
|
|
1998
2052
|
};
|
|
1999
2053
|
readonly "fresh-market": {
|
|
2000
2054
|
readonly arrive: "spring";
|
|
2001
2055
|
readonly leave: "quart-out";
|
|
2002
2056
|
readonly move: "rise";
|
|
2057
|
+
readonly preloader: "none";
|
|
2058
|
+
readonly preloaderExit: "none";
|
|
2003
2059
|
};
|
|
2004
2060
|
};
|
|
2005
2061
|
readonly leaveFor: {
|
|
@@ -2021,12 +2077,15 @@ declare const SPEC_MOTION_LANGUAGE: {
|
|
|
2021
2077
|
readonly arrive: "enter";
|
|
2022
2078
|
readonly move: "fade";
|
|
2023
2079
|
readonly cover: "fade";
|
|
2080
|
+
readonly preloader: "none";
|
|
2024
2081
|
};
|
|
2025
2082
|
readonly coverMaxMs: {
|
|
2026
2083
|
readonly cover: 400;
|
|
2027
2084
|
readonly hold: 120;
|
|
2028
2085
|
readonly uncover: 500;
|
|
2029
2086
|
};
|
|
2087
|
+
readonly preloaderCapMs: 1500;
|
|
2088
|
+
readonly preloaderLevels: readonly ["lively", "expressive"];
|
|
2030
2089
|
readonly reduced: {
|
|
2031
2090
|
readonly enter: "fade";
|
|
2032
2091
|
readonly enterMaxMs: 200;
|
|
@@ -17491,6 +17550,9 @@ interface DesignChoices {
|
|
|
17491
17550
|
/** Design ▸ Motion ▸ Headings arrive: the look's ONE heading move. Absent = each level's own heading entrance
|
|
17492
17551
|
* (MB-D8 — what a page built before AW3 was stamped with). A `MoveId`. */
|
|
17493
17552
|
headings?: string;
|
|
17553
|
+
/** Design ▸ Motion ▸ First visit (AW5): the preloader a visitor's first page of a session opens with — a
|
|
17554
|
+
* `PreloaderKind`. Absent = none (a row stored before AW5). Its exit is the look's, never stored. */
|
|
17555
|
+
preloader?: string;
|
|
17494
17556
|
}
|
|
17495
17557
|
interface FlavorSpecToken {
|
|
17496
17558
|
readonly name: string;
|
|
@@ -19152,6 +19214,8 @@ declare enum DesignConfigKey {
|
|
|
19152
19214
|
Between = "between",
|
|
19153
19215
|
Feel = "feel",
|
|
19154
19216
|
Headings = "headings",
|
|
19217
|
+
/** AW5: the first-visit preloader (a `PreloaderKind`); absent = none. */
|
|
19218
|
+
Preloader = "preloader",
|
|
19155
19219
|
Revert = "revert"
|
|
19156
19220
|
}
|
|
19157
19221
|
/** A stored design, resolved: `choices` is ALWAYS complete and valid (pack defaults fill the gaps). */
|
|
@@ -19175,8 +19239,9 @@ declare function isRetiredFlavorId(id: string | null | undefined): boolean;
|
|
|
19175
19239
|
* the pack's own default (an unknown pair → the pack's first, a bad seed → the pack's seed).
|
|
19176
19240
|
*/
|
|
19177
19241
|
declare function resolveDesignChoices(partial: Partial<DesignChoices> | null | undefined): DesignChoices;
|
|
19178
|
-
/** The look's motion language as stored: a known Feel / Headings word
|
|
19179
|
-
|
|
19242
|
+
/** The look's motion language as stored: a known Feel / Headings word (AW3) or first-visit preloader (AW5) is kept,
|
|
19243
|
+
* anything else is absent. */
|
|
19244
|
+
declare function resolveMotionLanguageChoices(partial: Readonly<Partial<Record<'feel' | 'headings' | 'preloader', unknown>>> | null | undefined): Pick<DesignChoices, 'feel' | 'headings' | 'preloader'>;
|
|
19180
19245
|
/** The look's motion, completed: an absent or unknown choice reads `PRE_MOTION` — what the site already does. */
|
|
19181
19246
|
declare function resolveDesignMotion(partial: Readonly<Partial<Record<keyof DesignMotion, unknown>>> | null | undefined): DesignMotion;
|
|
19182
19247
|
/** The pack's own defaults for `flavorId` — what picking a card means before anything is tuned. */
|
|
@@ -19401,13 +19466,17 @@ interface MotionLanguage {
|
|
|
19401
19466
|
}
|
|
19402
19467
|
declare const isArriveId: (v: unknown) => v is ArriveId;
|
|
19403
19468
|
declare const isMoveId: (v: unknown) => v is MoveId;
|
|
19404
|
-
/** The families a word's tier is asked of: the arrive / leave curves, the heading move, the cover between pages (AW4)
|
|
19405
|
-
|
|
19406
|
-
|
|
19469
|
+
/** The families a word's tier is asked of: the arrive / leave curves, the heading move, the cover between pages (AW4),
|
|
19470
|
+
* the first-visit preloader (AW5). */
|
|
19471
|
+
type MotionWordKind = 'arrive' | 'leave' | 'move' | 'cover' | 'preloader';
|
|
19472
|
+
/** A style preset's own language (its Feel, Headings arrive and first-visit preloader with its exit) — undefined for an
|
|
19473
|
+
* unknown id. */
|
|
19407
19474
|
declare function presetMotionLanguage(presetId: string | null | undefined): {
|
|
19408
19475
|
arrive: ArriveId;
|
|
19409
19476
|
leave: LeaveId;
|
|
19410
19477
|
move: MoveId;
|
|
19478
|
+
preloader: string;
|
|
19479
|
+
preloaderExit: string;
|
|
19411
19480
|
} | undefined;
|
|
19412
19481
|
/** The tier of a word: `pro` words (expo-out, spring, pop, blur in, the covers…) are offered on Pro and Studio only (MB-D6). */
|
|
19413
19482
|
declare function motionWordTier(kind: MotionWordKind, word: string): MotionWordTier;
|
|
@@ -19422,11 +19491,12 @@ declare function motionLanguageOf(choices: Pick<DesignChoices, 'feel' | 'heading
|
|
|
19422
19491
|
declare function motionCurve(word: ArriveId | LeaveId, tokenValue?: (name: string) => string | undefined): string;
|
|
19423
19492
|
/**
|
|
19424
19493
|
* What a lower plan wears of a language (AW-D23, MB-D6): a Pro word is drawn as the plan's own (the contract's
|
|
19425
|
-
* `planFallback`) — Feel today's arrival, a Pro move a fade, a Pro cover (AW4) a fade between pages
|
|
19426
|
-
* look is CHOSEN (a Look pick, a build); a built site keeps its words.
|
|
19494
|
+
* `planFallback`) — Feel today's arrival, a Pro move a fade, a Pro cover (AW4) a fade between pages, a preloader (AW5)
|
|
19495
|
+
* none. Applied where a look is CHOSEN (a Look pick, a build); a built site keeps its words.
|
|
19427
19496
|
*/
|
|
19428
19497
|
declare function motionLanguageForPlan<T extends Pick<DesignChoices, 'feel' | 'headings'> & {
|
|
19429
19498
|
between?: DesignChoices['between'];
|
|
19499
|
+
preloader?: DesignChoices['preloader'];
|
|
19430
19500
|
}>(choices: T, pro: boolean): T;
|
|
19431
19501
|
/** The reduced-motion floor (AW-D6): an entrance is a fade this long at most — gentler, never zero. */
|
|
19432
19502
|
declare const REDUCED_ENTRANCE_MAX_MS: number;
|
|
@@ -19442,5 +19512,79 @@ declare const LEAVE_SHARE: number;
|
|
|
19442
19512
|
/** Every preset id the contract gives a language to — all 24 (build-spec refuses one without). */
|
|
19443
19513
|
declare const MOTION_LANGUAGE_PRESET_IDS: ReadonlyArray<string>;
|
|
19444
19514
|
|
|
19445
|
-
|
|
19446
|
-
|
|
19515
|
+
/** What opens the first visit (`design.preloader`). */
|
|
19516
|
+
declare enum PreloaderKind {
|
|
19517
|
+
None = "none",
|
|
19518
|
+
/** The header's brand — its logo, else the business name in the display face. */
|
|
19519
|
+
Mark = "mark",
|
|
19520
|
+
/** A 0 → 100 count of the first screen's real loading (pictures + fonts), in the display face. */
|
|
19521
|
+
Counter = "counter",
|
|
19522
|
+
/** The opening heading's first words, letter by letter. */
|
|
19523
|
+
Letters = "letters"
|
|
19524
|
+
}
|
|
19525
|
+
/** How it leaves — the look's own, never a separate choice (PL-D3). */
|
|
19526
|
+
declare enum PreloaderExit {
|
|
19527
|
+
None = "none",
|
|
19528
|
+
Fade = "fade",
|
|
19529
|
+
/** An accent panel leaves upward. */
|
|
19530
|
+
Sweep = "sweep",
|
|
19531
|
+
/** A frame grows from the centre. */
|
|
19532
|
+
Window = "window",
|
|
19533
|
+
/** The whole layer rises away. */
|
|
19534
|
+
Lift = "lift"
|
|
19535
|
+
}
|
|
19536
|
+
declare const PRELOADER_IDS: ReadonlyArray<string>;
|
|
19537
|
+
declare const PRELOADER_EXIT_IDS: ReadonlyArray<string>;
|
|
19538
|
+
/** AW-D7: a preloader leaves at the first screen's readiness or this many ms, whichever first. */
|
|
19539
|
+
declare const PRELOADER_CAP_MS: number;
|
|
19540
|
+
/** The How animated levels a preloader is offered on. */
|
|
19541
|
+
declare const PRELOADER_LEVELS: ReadonlyArray<string>;
|
|
19542
|
+
/** A preloader's exit takes at most this long (Emil: exits are short; ≤ the covers' uncover). */
|
|
19543
|
+
declare const PRELOADER_EXIT_MAX_MS = 500;
|
|
19544
|
+
/** Letters shows the opening heading only while it is this short (PL-D2); a longer one shows the business name. */
|
|
19545
|
+
declare const PRELOADER_LETTERS_MAX = 24;
|
|
19546
|
+
declare const isPreloaderKind: (v: unknown) => v is `${PreloaderKind}`;
|
|
19547
|
+
/** What the runtime draws: the kind, the look's exit, and its cap. */
|
|
19548
|
+
interface PreloaderPlan {
|
|
19549
|
+
readonly kind: Exclude<PreloaderKind, PreloaderKind.None>;
|
|
19550
|
+
readonly exit: Exclude<PreloaderExit, PreloaderExit.None>;
|
|
19551
|
+
readonly capMs: number;
|
|
19552
|
+
}
|
|
19553
|
+
/** Everything the decision needs; each renderer fills what only it can see. */
|
|
19554
|
+
interface PreloaderInput {
|
|
19555
|
+
/** The look's choice (`design.preloader`); absent = none. */
|
|
19556
|
+
readonly preloader: string | null | undefined;
|
|
19557
|
+
/** The look's How animated (`design.animate`). */
|
|
19558
|
+
readonly animate: string | null | undefined;
|
|
19559
|
+
/** The style preset the look came from — its exit (`MOTION.presets`); absent or exit-less → Fade. */
|
|
19560
|
+
readonly presetId?: string | null;
|
|
19561
|
+
/** The studio's plan carries the Pro words (`GenerationTier.Award`). A built site keeps its word (AW-D23): pass true
|
|
19562
|
+
* for a stored design — the clamp happens where a look is CHOSEN (`motionLanguageForPlan`). */
|
|
19563
|
+
readonly pro: boolean;
|
|
19564
|
+
/** The visitor asked for reduced motion. */
|
|
19565
|
+
readonly reducedMotion: boolean;
|
|
19566
|
+
/** This is the session's first page in this tab, not reached from another page of the site (`isFirstVisit`). */
|
|
19567
|
+
readonly firstVisit: boolean;
|
|
19568
|
+
}
|
|
19569
|
+
/** The ONE decision: what opens this visit, or null for nothing (the page is simply there). */
|
|
19570
|
+
declare function planPreloader(input: PreloaderInput): PreloaderPlan | null;
|
|
19571
|
+
/** The look's exit (PL-D3): the preset's own, else a fade. */
|
|
19572
|
+
declare function preloaderExitOf(presetId: string | null | undefined): PreloaderPlan['exit'];
|
|
19573
|
+
/** When it leaves (PL-D4): at the page's readiness, never past the cap; a reading not yet known waits for the cap. */
|
|
19574
|
+
declare function preloaderLeaveAt(readyMs: number | null | undefined, capMs?: number): number;
|
|
19575
|
+
/**
|
|
19576
|
+
* PL-D5: a first visit is the session's first page in this tab AND not reached from another page of the same site
|
|
19577
|
+
* (a new tab opened from the site, a reload after Back). `seen` = the tab's session memory; `referrer` and `origin`
|
|
19578
|
+
* as the browser reports them.
|
|
19579
|
+
*/
|
|
19580
|
+
declare function isFirstVisit(seen: boolean, referrer: string | null | undefined, origin: string | null | undefined): boolean;
|
|
19581
|
+
/**
|
|
19582
|
+
* The counter's number (PL-D2): real loading only — `loaded` of `total` first-screen resources, a whole percent that
|
|
19583
|
+
* never goes back; nothing to load reads 100. Never a timer.
|
|
19584
|
+
*/
|
|
19585
|
+
declare function preloaderPercent(loaded: number, total: number, previous?: number): number;
|
|
19586
|
+
/** PL-D2: what Letters spells — the opening heading while it is short enough, else the business name. */
|
|
19587
|
+
declare function preloaderWords(heading: string | null | undefined, businessName: string | null | undefined): string;
|
|
19588
|
+
|
|
19589
|
+
export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, ARRIVE_IDS, AdoptOutcome, AdoptSkipReason, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, BRAND_NAME_ATTRIBUTE, BRAND_NAME_LONGER_AT, BRAND_NAME_LONG_AT, BRAND_ROLE, BUTTON_VARIANT_TO_STYLE, BrandNameLength, CANVAS_LINK_ATTRIBUTE, CARD_LINK_CLASS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, COMPOSED_HEADER, CONTRAST_AUDIT_MEMORY, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, DEFAULT_MENU_LOOK, DESIGN_TOKEN_GROUPS, DESIGN_TOKEN_TIERS, DESIGN_TOKEN_TYPES, DesignConfigKey, ELEMENT_STYLES, ELEMENT_STYLE_MARKER_CLASS, ELEMENT_STYLE_STATES, EMPTY_IMAGE_ATTRIBUTE, EMPTY_IMAGE_SRC, ElementStyleState, EntranceParam, FIELD_INVALID_CLASS, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FieldClass, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, HEADER_THEME_COLOR_TOKEN, HELD_CONTRAST, HeaderAttribute, HeaderBehaviour, HeaderEdge, HeaderTrait, INHERITED_TEXT, LEAVE_IDS, LEAVE_SHARE, LinkType, MARK_STYLES, MAX_FONT_FILE_BYTES, MENU_ATTRIBUTES, MENU_PHONE_MAX_WIDTH, MOOD_IDS, MOOD_LABELS, MOTION_LANGUAGE_PRESET_IDS, MOVE_IDS, MenuAttribute, MenuButtonKind, MenuForm, MenuHover, MenuPhoneForm, MenuReveal, MenuTrait, MotionWordTier, NEW_NODE_STYLE_DEFAULTS, OPENING_ATTRIBUTE, OPENING_FOLLOWER_ROLE, OPENING_SETTING, OwnedTraitLink, PALETTE_PRESETS, PRELOADER_CAP_MS, PRELOADER_EXIT_IDS, PRELOADER_EXIT_MAX_MS, PRELOADER_IDS, PRELOADER_LETTERS_MAX, PRELOADER_LEVELS, PRE_DS2_FLAVOR_DEFAULTS, PRE_MOTION, PRE_TINT_DEFAULT, PreloaderExit, PreloaderKind, QUIET_LEVELS, QUIET_MOVE, REDUCED_DESIGN_MOTION, REDUCED_ENTRANCE_MAX_MS, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, ROW_INDEX_ATTRIBUTE, SCHEME_INK, SCROLL_IDS, SPEC_A11Y, SPEC_AXES, SPEC_BUTTON_VARIANT_TO_STYLE, SPEC_CONTRAST, SPEC_CONTRAST_AUDIT, SPEC_DEFAULT_ELEMENT_STYLE, SPEC_ELEMENT_STYLES, SPEC_FIELD_CLASS_BASELINE, SPEC_FLAVORS, SPEC_FLAVOR_PACKS, SPEC_FLOATING_BASELINE, SPEC_FONTS, SPEC_FONT_METRICS, SPEC_FONT_ROLES, SPEC_INK_SCOPES, SPEC_LEGACY_ALIASES, SPEC_MOODS, SPEC_MOTION_LANGUAGE, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SCHEME_INK, SPEC_SCRIPTS, SPEC_SPRINGS, SPEC_STYLE_PRESETS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, SPRING_CURVE_TOKEN, STAGGER_MAX_ITEMS, STAGGER_SHRINK, STYLE_PRESETS, SUPERSEDED_STYLE_VALUES, SWISS_FLAVOR, THEME_COLOR_TOKEN, TINT_FULL_CHROMA, TINT_IDS, TINT_LEVELS, TINT_OWN_HUE_CHROMA, TINT_TURN_CHROMA, USER_TOKEN_SOURCE, WCAG_AA_TEXT, WCAG_AA_UI, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, brandNameAttributes, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designApplySnapshot, designBaseline, designConfigEntries, designModeOf, designMotionOf, designRevertConfig, designTokenRepairs, designTokenRows, drawsScript, elementStyleById, elementStyleClass, elementStyleFace, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, ensureAlpha, ensureContrast, entranceDelay, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerStaysAtTop, headingHref, inSrgbGamut, isArriveId, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFirstVisit, isFontWeightRange, isMoveId, isPreloaderKind, isRetiredFlavorId, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, matchFontWeight, menuButtonAttributes, menuButtonOf, menuButtonProps, menuDialogAttributes, menuDialogProps, menuFormOf, menuFormSwitchesOnPhone, menuHoverOf, menuPhoneOf, menuRevealOf, missingDesignRows, missingFontRoles, motionCurve, motionLanguageForPlan, motionLanguageOf, motionWordTier, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, openingFollowerSelector, ownedTraitStatus, ownedTraitsOf, packDesignChoices, pageOpeningScheme, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planPreloader, planSwissMigration, popAllowed, preTintAccentGrounds, preloaderExitOf, preloaderLeaveAt, preloaderPercent, preloaderWords, presetChoices, presetModes, presetMotionLanguage, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, repeatedRowIndex, resolveDesignChoices, resolveDesignMotion, resolveMotionLanguageChoices, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, sameDesignChoices, scriptsForLocale, setColorScheme, specTokenNames, splitTopLevel, springToLinear, stackNamesFamily, staggerDelay, styleKeyToKebab, stylePresetById, stylePresetOfChoices, switchElementStyle, syncNodeDesignClasses, textWidthEm, themeColors, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, withSchemeInk, withoutScriptPartners, writeFieldError, writeOwnedTrait };
|
|
19590
|
+
export type { AccentBackgrounds, AccentGround, AccentTokenName, AdoptContext, AdoptReport, AdoptableNode, AdoptedNode, AnimateId, ApplyElementStyleResult, ArriveId, BetweenId, ButtonBlockLinkProps, ColourCheck, ColourFlavor, ContrastFinding, DensityId, DesignApplyOptions, DesignChoices, DesignClassSource, DesignConfigEntry, DesignMode, DesignMotion, DesignRevertSnapshot, DesignTokenGroup, DesignTokenLike, DesignTokenRow, DesignTokenTier, DesignTokenType, ElementStyle, ElementStyleTarget, ElementStyleTraitLike, FlavorColours, FlavorPack, FlavorPackV2, FlavorPalette, FlavorRevertPlan, FlavorRevertSnapshot, FlavorRevertWrite, FlavorSeedOptions, FlavorSeedPlan, FlavorSpecToken, FlavorTintConfig, FlavorTokenDef, FontDescriptor, FontFamilyGroup, FontFamilyRemoval, FontFamilyToken, FontFormat, FontPair, FontRoleToken, FontStyle, FontWeight, FontWeightRange, FontsForTokensOptions, KeptEdit, LeaveId, LinearSpring, MenuLook, MenuTraitReader, MissingFontRole, MoodId, MotionId, MotionLanguage, MotionWordKind, MoveId, NodeLinkProps, OkLab, OwnedTrait, OwnedTraitStatus, PalettePreset, PreloaderInput, PreloaderPlan, PresetMode, ResolvedMode, Rgb, Rgba, SchemeId, ScriptId, ScrollId, SeedBaseline, SeedExpectation, ShapeId, SkippedNode, StaggerSpec, StoredDesign, StoredDesignTokenRow, StylePreset, SupersededStyleValue, SwissMigration, SwitchElementStyleResult, ThemeColorOptions, ThemeColors, TimedAction, TintId, TintLevel, TokenCssBlocks, TokenCssOptions, TypeFace };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AiStep, STRICT_SCHEMA_BUDGET, strictSchemaComplexity, jsonText, jsonListOf, jsonOneOf, jsonClosedObject, jsonAnyOf, PlanWordIssueCode, factIssues, walkSerialized, AdjustKind, AdjustAxis, adjustStepOf, ADJUST_STEPS, NODE_BASELINES, adjustStyleProps, ADJUST_AXIS_LABELS, adjustStepLabel, patternById,
|
|
1
|
+
import { AiStep, STRICT_SCHEMA_BUDGET, strictSchemaComplexity, jsonText, jsonListOf, jsonOneOf, jsonClosedObject, jsonAnyOf, PlanWordIssueCode, factIssues, walkSerialized, AdjustKind, AdjustAxis, adjustStepOf, ADJUST_STEPS, NODE_BASELINES, adjustStyleProps, ADJUST_AXIS_LABELS, adjustStepLabel, patternById, carryInto, composeSection } from '@vectoriox/iox-ui/generation-core';
|
|
2
2
|
import { elementStylesFor, colorSchemeOf, ColorScheme, COLOR_SCHEME_TYPES, elementStyleById, COLOR_SCHEMES, NEW_NODE_STYLE_DEFAULTS, setColorScheme, switchElementStyle, flavorPackById, parseHexColor, resolveDesignChoices, SPEC_AXES, stylePresetOfChoices, BETWEEN_IDS, ANIMATE_IDS, SCROLL_IDS, TINT_IDS, STYLE_PRESETS, stylePresetById, presetChoices, designTokenRows, auditDesignContrast } from '@vectoriox/iox-ui/design-core';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1049,7 +1049,7 @@ function suggestPhotoType(schemas, sentence = '') {
|
|
|
1049
1049
|
const named = candidates.find(s => [s.name, s.metaData?.label ?? ''].some(n => nameWords(n).some(w => said.has(singular(w)))));
|
|
1050
1050
|
return (named ?? candidates[0])?.name ?? null;
|
|
1051
1051
|
}
|
|
1052
|
-
const labelOf$
|
|
1052
|
+
const labelOf$1 = (schema, key) => key ? (schema.schemaObject.properties[key]?.label || key) : null;
|
|
1053
1053
|
/** S3's brief: the type's writable fields (`f.<key>`), the groups (`p<n>`), the picture fields, siblings as voice. */
|
|
1054
1054
|
function summarizePhotos(schema, ctx) {
|
|
1055
1055
|
const fields = assistFields(schema);
|
|
@@ -1076,7 +1076,7 @@ function summarizePhotos(schema, ctx) {
|
|
|
1076
1076
|
...(f.options ? { options: f.options } : {}), ...(f.locales ? { multiLang: true } : {}),
|
|
1077
1077
|
})),
|
|
1078
1078
|
titleHandle: title && isWritable(title) ? title.handle : null,
|
|
1079
|
-
pictures: { main: labelOf$
|
|
1079
|
+
pictures: { main: labelOf$1(schema, slots.main), gallery: labelOf$1(schema, slots.gallery) },
|
|
1080
1080
|
},
|
|
1081
1081
|
around: { siblings: item.brief.around.siblings },
|
|
1082
1082
|
owner: ctx.owner ?? null,
|
|
@@ -1811,41 +1811,11 @@ function swapBlocker(root) {
|
|
|
1811
1811
|
});
|
|
1812
1812
|
return blocker;
|
|
1813
1813
|
}
|
|
1814
|
-
const labelOf$1 = (button) => (button.children ?? []).find(c => c.type === 'Text');
|
|
1815
1814
|
/** The owner's words and pictures, placed into the new section part for part (kind by kind, in order); how many found no
|
|
1816
|
-
* place. WHAT is carried is generation-core's carry rule (`
|
|
1815
|
+
* place. WHAT is carried and HOW is generation-core's ONE carry rule (`carryInto` — the harvest's classifier, today's
|
|
1816
|
+
* kinds only), shared with the Opening studio's "Make this an opening". */
|
|
1817
1817
|
function carryOver(from, to) {
|
|
1818
|
-
|
|
1819
|
-
const fresh = swapParts(to);
|
|
1820
|
-
let notPlaced = 0;
|
|
1821
|
-
for (const kind of SWAP_CARRY_KINDS) {
|
|
1822
|
-
old[kind].forEach((source, i) => {
|
|
1823
|
-
const target = fresh[kind][i];
|
|
1824
|
-
if (!target) {
|
|
1825
|
-
const hasContent = kind === CarryKind.Image ? !!source.props['src'] : true;
|
|
1826
|
-
if (hasContent)
|
|
1827
|
-
notPlaced++;
|
|
1828
|
-
return;
|
|
1829
|
-
}
|
|
1830
|
-
if (kind === CarryKind.Image) {
|
|
1831
|
-
if (!source.props['src'])
|
|
1832
|
-
return;
|
|
1833
|
-
target.props = { ...target.props, src: source.props['src'], alt: source.props['alt'] ?? target.props['alt'] };
|
|
1834
|
-
}
|
|
1835
|
-
else if (kind === CarryKind.Button) {
|
|
1836
|
-
const words = labelOf$1(source);
|
|
1837
|
-
const into = labelOf$1(target);
|
|
1838
|
-
if (words && into)
|
|
1839
|
-
into.props = { ...into.props, content: words.props['content'] };
|
|
1840
|
-
const link = Object.fromEntries(BUTTON_LINK_PROPS.filter(k => k in source.props).map(k => [k, source.props[k]]));
|
|
1841
|
-
target.props = { ...target.props, ...link };
|
|
1842
|
-
}
|
|
1843
|
-
else {
|
|
1844
|
-
target.props = { ...target.props, content: source.props['content'] };
|
|
1845
|
-
}
|
|
1846
|
-
});
|
|
1847
|
-
}
|
|
1848
|
-
return notPlaced;
|
|
1818
|
+
return carryInto(from, to).length;
|
|
1849
1819
|
}
|
|
1850
1820
|
/** A stable id no node of the page holds (nor any of its parts' derived ids, `<id>-0-1`). */
|
|
1851
1821
|
function stableIds(layout) {
|