@vectoriox/iox-ui 5.195.0 → 5.197.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/data-core/index.d.ts +101 -2
- package/design-core/index.d.ts +374 -8
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +41 -12
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-data-core.mjs +192 -2
- package/fesm2022/vectoriox-iox-ui-data-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +749 -264
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1084 -630
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +224 -3
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-identity-core.mjs +11 -5
- package/fesm2022/vectoriox-iox-ui-identity-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +100 -17
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +351 -109
- package/harness-core/index.d.ts +166 -4
- package/identity-core/index.d.ts +8 -1
- package/index.d.ts +23 -2
- package/package.json +1 -1
- package/src/composite-core/account-runtime.ts +2 -2
- package/src/composite-core/header.ts +23 -1
- package/src/composite-core/slider-runtime.ts +16 -8
- package/src/data-core/placeholder-rows.ts +220 -0
- package/src/data-core/public-api.ts +2 -1
- package/src/design-core/contrast-audit.ts +38 -0
- package/src/design-core/flavor-spec.generated.ts +275 -1
- package/src/design-core/header-behaviour.ts +180 -3
- package/src/design-core/node-classes.ts +9 -2
- package/src/design-core/node-links.ts +34 -0
- package/src/generation-core/audit-site.ts +10 -1
- package/src/generation-core/audit-words.ts +5 -0
- package/src/generation-core/check-free.ts +21 -3
- package/src/generation-core/compose-site.ts +57 -17
- package/src/generation-core/free-opening.ts +57 -0
- package/src/generation-core/header-mix.ts +245 -12
- package/src/generation-core/item-fill.ts +42 -0
- package/src/generation-core/nav-shape.ts +45 -16
- package/src/generation-core/node-baselines.generated.ts +1 -0
- package/src/generation-core/opening-mix.ts +10 -0
- package/src/generation-core/public-api.ts +2 -0
- package/src/generation-core/site-build-run.ts +4 -0
- package/src/generation-core/site-spec.generated.ts +41 -9
- package/src/generation-core/stock-search.ts +106 -18
- package/src/generation-core/type-led.ts +19 -4
- package/src/harness-core/business-types.ts +11 -0
- package/src/harness-core/harness-spec.generated.ts +213 -0
- package/src/harness-core/run-compose-context.ts +12 -4
- package/src/identity-core/site-auth-transport.ts +11 -4
- package/styles/iox-design.css +149 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementStyleTarget, HeaderBehaviour, HeaderEdge, HeaderInk } from '@vectoriox/iox-ui/design-core';
|
|
1
|
+
import { ElementStyleTarget, HeaderBehaviour, HeaderEdge, HeaderGround, HeaderInk } from '@vectoriox/iox-ui/design-core';
|
|
2
2
|
export { ROW_INDEX_ATTRIBUTE } from '@vectoriox/iox-ui/design-core';
|
|
3
3
|
import { ProductOption, CartTransport, StorefrontProduct, ShopSlot, CartView, ProductVariantView } from '@vectoriox/iox-ui/commerce-core';
|
|
4
4
|
import { SignInProvider, SiteAuthTransport, SiteSignInReturnRefusal, SiteCustomer } from '@vectoriox/iox-ui/identity-core';
|
|
@@ -1233,6 +1233,9 @@ declare class CarouselA11y {
|
|
|
1233
1233
|
private readonly words;
|
|
1234
1234
|
private readonly pause;
|
|
1235
1235
|
private readonly authorName;
|
|
1236
|
+
/** The slider element, held from the start: Swiper's `destroy(true, true)` nulls every field of the instance, `el`
|
|
1237
|
+
* included, so a re-init (a bound slider re-boots when its rows land) must never read it back (iox-ui#176). */
|
|
1238
|
+
private readonly el;
|
|
1236
1239
|
constructor(swiper: CarouselSwiper, options?: CarouselA11yOptions);
|
|
1237
1240
|
/** True while the slides move on their own: autoplay runs and nothing holds it — not focus inside, not the
|
|
1238
1241
|
* pointer over it. (Swiper's own `paused` also flips during every transition, so it is not read here.) */
|
|
@@ -1882,6 +1885,16 @@ declare function headerBehaviourOfNode(node: CompositeNode | null | undefined):
|
|
|
1882
1885
|
declare function setHeaderInk(node: CompositeNode, ink: HeaderInk | `${HeaderInk}`): boolean;
|
|
1883
1886
|
/** The header's ink as stored (Opening for a header that never chose). */
|
|
1884
1887
|
declare function headerInkOfNode(node: CompositeNode | null | undefined): HeaderInk;
|
|
1888
|
+
/**
|
|
1889
|
+
* What the header stands on (HI3 slice 1) — ONE edit for the Header studio ▸ Around the bar and the composer. A ground word
|
|
1890
|
+
* is stored; `solid` clears a stored word and writes nothing on a header that never had one (a composition with the
|
|
1891
|
+
* default ground stays byte-identical, R-H4). A header on a ground is the containing block of its ground layer and stands
|
|
1892
|
+
* above the opening it overlaps: one stored `static` becomes `relative` (what the canvas, which forces a node's own
|
|
1893
|
+
* position, draws it with). False when nothing changed.
|
|
1894
|
+
*/
|
|
1895
|
+
declare function setHeaderGround(node: CompositeNode, ground: HeaderGround | `${HeaderGround}`): boolean;
|
|
1896
|
+
/** The header's ground as stored (Solid for a header that never chose). */
|
|
1897
|
+
declare function headerGroundOfNode(node: CompositeNode | null | undefined): HeaderGround;
|
|
1885
1898
|
|
|
1886
1899
|
/**
|
|
1887
1900
|
* THE MARQUEE (premium components M6, N6 — complex-components CC5 §7e, D5, Emil 180). A linear band that moves on its
|
|
@@ -3003,5 +3016,5 @@ interface PopupFormOptions {
|
|
|
3003
3016
|
*/
|
|
3004
3017
|
declare function setPopupForm(root: CompositeNode, form: PopupForm, create?: CompositeNodeFactory, options?: PopupFormOptions): PopupFormChange;
|
|
3005
3018
|
|
|
3006
|
-
export { ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, ACCORDION_DEFAULT_ONS, ACCORDION_ICONS, ACCORDION_ICON_GLYPH, ACCORDION_NEW_ITEM_WORDS, ACCORDION_NEW_ITEM_WORDS_HE, ACCORDION_WORDS, ACCORDION_WORDS_HE, 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, BAR_INLINE_PAD, BadgeTone, CARD_LAYOUTS, CARD_LAYOUT_CUSTOM, CARD_PARTS, CARD_PARTS_OFF_AT_START, CARD_PART_ROLE, CARD_STACK_BREAKPOINT, CARD_WORDS, CARD_WORDS_HE, CAROUSEL_CONTENT_LIMIT, CAROUSEL_NAME, CAROUSEL_QUOTES, CAROUSEL_QUOTES_HE, CAROUSEL_QUOTE_LABELS, 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, DIALOG_MODAL_TRAIT, 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, LIGHTBOX_WORDS, 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, POPUP_ATTRIBUTES, POPUP_BODY_MAX_CHARS, POPUP_KIND_ARRIVAL, POPUP_KIND_MIX, POPUP_ROLES, POPUP_TITLE_MAX_WORDS, PREFERENCES_FROM_CATEGORIES, PROVIDER_ROLES, PopupAgain, PopupArrive, PopupArt, PopupAttribute, PopupForm, PopupKind, PopupRole, PopupTrait, SCOPE_ATTRIBUTE, SEGMENTED_BADGE_TONE, SEGMENTED_BADGE_WORDS, SEGMENTED_BEHAVIOUR, SEGMENTED_MAX_OPTIONS, SEGMENTED_MIN_OPTIONS, SEGMENTED_NAME, SEGMENTED_NAME_HE, SEGMENTED_NEW_OPTION_WORDS, SEGMENTED_WORDS, SEGMENTED_WORDS_HE, 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, SUPERSEDED_BAR_PADDING, 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_NEW_TAB_WORDS_HE, TABS_ORIENTATIONS, TABS_STACK_BREAKPOINT, TABS_TEXT_BIND_PROP, TABS_WORDS, TABS_WORDS_HE, 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, accordionWords, 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, buildPopupRecipe, buildPriceRecipe, buildQuantityRecipe, buildReadingBarRecipe, buildSegmentedOption, buildSegmentedRecipe, buildSignInDialogRecipe, buildSliderPart, buildSlideshowRecipe, buildTabPair, buildTabsRecipe, buildVariantPickerRecipe, canOpenAtClickedItem, cardPartsOf, cardRootOf, cardTitleOf, cardWords, carouselOf, carouselQuoteLabel, clearLayerStyles, closeAccordionItem, closestAccordion, closestAccordionItem, closestExclusive, closestExclusiveItemPart, compositeItemOf, compositeItems, compositeKindOfRole, compositeRootOf, compositeRowKeys, compositeScopeId, consentRecipeWords, detachAccordion, detectAccordionIcon, detectCardLayout, dialogIsModal, disclosureOpenByDefault, domSafeKey, exclusiveBehaviourOf, exclusiveDefaultOf, exclusiveItemLabel, exclusiveItemPartOf, exclusiveKindHasPanels, exclusiveKindOf, exclusiveLabelOf, exclusivePartAttributes, exclusiveRootAttributesOf, exclusiveRootHoldsTriggers, exclusiveRootOf, exclusiveRuntimeOf, exclusiveScopeFor, findByRole, hasLabelledRegion, hasSliderParts, headerBehaviourOfNode, headerInkOfNode, healSliderBars, 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, pickCarouselAutoBinds, pickTabsAutoBinds, popupDialogAttributes, popupFormOf, popupWords, 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, segmentedWords, serializeDomAttributes, setAccordionBehaviour, setAccordionIcon, setBadgeTone, setCardLinked, setCardPart, setHeaderBehaviour, setHeaderInk, setMarqueeSettings, setPopupForm, 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, tabsWords, variantGroupLabel, variantGroupNote, walkComposite, wantedSliderParts, writeLayerStyles, writeProp, writeStyles };
|
|
3019
|
+
export { ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, ACCORDION_DEFAULT_ONS, ACCORDION_ICONS, ACCORDION_ICON_GLYPH, ACCORDION_NEW_ITEM_WORDS, ACCORDION_NEW_ITEM_WORDS_HE, ACCORDION_WORDS, ACCORDION_WORDS_HE, 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, BAR_INLINE_PAD, BadgeTone, CARD_LAYOUTS, CARD_LAYOUT_CUSTOM, CARD_PARTS, CARD_PARTS_OFF_AT_START, CARD_PART_ROLE, CARD_STACK_BREAKPOINT, CARD_WORDS, CARD_WORDS_HE, CAROUSEL_CONTENT_LIMIT, CAROUSEL_NAME, CAROUSEL_QUOTES, CAROUSEL_QUOTES_HE, CAROUSEL_QUOTE_LABELS, 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, DIALOG_MODAL_TRAIT, 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, LIGHTBOX_WORDS, 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, POPUP_ATTRIBUTES, POPUP_BODY_MAX_CHARS, POPUP_KIND_ARRIVAL, POPUP_KIND_MIX, POPUP_ROLES, POPUP_TITLE_MAX_WORDS, PREFERENCES_FROM_CATEGORIES, PROVIDER_ROLES, PopupAgain, PopupArrive, PopupArt, PopupAttribute, PopupForm, PopupKind, PopupRole, PopupTrait, SCOPE_ATTRIBUTE, SEGMENTED_BADGE_TONE, SEGMENTED_BADGE_WORDS, SEGMENTED_BEHAVIOUR, SEGMENTED_MAX_OPTIONS, SEGMENTED_MIN_OPTIONS, SEGMENTED_NAME, SEGMENTED_NAME_HE, SEGMENTED_NEW_OPTION_WORDS, SEGMENTED_WORDS, SEGMENTED_WORDS_HE, 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, SUPERSEDED_BAR_PADDING, 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_NEW_TAB_WORDS_HE, TABS_ORIENTATIONS, TABS_STACK_BREAKPOINT, TABS_TEXT_BIND_PROP, TABS_WORDS, TABS_WORDS_HE, 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, accordionWords, 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, buildPopupRecipe, buildPriceRecipe, buildQuantityRecipe, buildReadingBarRecipe, buildSegmentedOption, buildSegmentedRecipe, buildSignInDialogRecipe, buildSliderPart, buildSlideshowRecipe, buildTabPair, buildTabsRecipe, buildVariantPickerRecipe, canOpenAtClickedItem, cardPartsOf, cardRootOf, cardTitleOf, cardWords, carouselOf, carouselQuoteLabel, clearLayerStyles, closeAccordionItem, closestAccordion, closestAccordionItem, closestExclusive, closestExclusiveItemPart, compositeItemOf, compositeItems, compositeKindOfRole, compositeRootOf, compositeRowKeys, compositeScopeId, consentRecipeWords, detachAccordion, detectAccordionIcon, detectCardLayout, dialogIsModal, disclosureOpenByDefault, domSafeKey, exclusiveBehaviourOf, exclusiveDefaultOf, exclusiveItemLabel, exclusiveItemPartOf, exclusiveKindHasPanels, exclusiveKindOf, exclusiveLabelOf, exclusivePartAttributes, exclusiveRootAttributesOf, exclusiveRootHoldsTriggers, exclusiveRootOf, exclusiveRuntimeOf, exclusiveScopeFor, findByRole, hasLabelledRegion, hasSliderParts, headerBehaviourOfNode, headerGroundOfNode, headerInkOfNode, healSliderBars, 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, pickCarouselAutoBinds, pickTabsAutoBinds, popupDialogAttributes, popupFormOf, popupWords, 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, segmentedWords, serializeDomAttributes, setAccordionBehaviour, setAccordionIcon, setBadgeTone, setCardLinked, setCardPart, setHeaderBehaviour, setHeaderGround, setHeaderInk, setMarqueeSettings, setPopupForm, 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, tabsWords, variantGroupLabel, variantGroupNote, walkComposite, wantedSliderParts, writeLayerStyles, writeProp, writeStyles };
|
|
3007
3020
|
export type { AccordionAutoBinds, AccordionBehaviour, AccordionDomIds, AccordionItemState, AccordionOptions, AccordionRuntimeOptions, AccordionScope, AccordionWords, AccountHost, AccountRecipeWords, BarSwiper, BaselineStyles, CardEditOptions, CardLayoutResult, CardLayoutState, CardOptions, CardPartChange, CardWords, CarouselA11yOptions, CarouselAutoBinds, CarouselFrom, CarouselOptions, CarouselQuote, CarouselRoleFields, 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, PopupFormChange, PopupFormOptions, PopupRecipeOptions, PopupWords, RepeatSource, SegmentedOptionWords, SegmentedOptions, ShopHost, ShopRecipeWords, SliderPartsChange, SliderWords, SlideshowOptions, TabPair, TabWords, TabsAutoBinds, TabsBehaviour, TabsItemState, TabsOptions, TabsScope, ToggleCompositeKind, WaitingOrder };
|
package/data-core/index.d.ts
CHANGED
|
@@ -389,5 +389,104 @@ declare function homePageOf<P extends HomePageCandidate>(pages: ReadonlyArray<P
|
|
|
389
389
|
/** True when more than one PUBLISHED page claims home — the live site serves the first, the owner should pick one. */
|
|
390
390
|
declare function hasHomeConflict(pages: ReadonlyArray<HomePageCandidate | null | undefined> | null | undefined): boolean;
|
|
391
391
|
|
|
392
|
-
|
|
393
|
-
|
|
392
|
+
/**
|
|
393
|
+
* Ghost cards (vectoriox/iox-ui#178, Doron 2026-11-28; board `architecture/ai/boards/ghost-cards.board.html`).
|
|
394
|
+
*
|
|
395
|
+
* A generated site keeps its sample items: every page, section and list stays, so the owner sees where things go.
|
|
396
|
+
* A sample the build could not name (it is still "Product 2") is a PLACEHOLDER ROW. The builder canvas and Preview draw
|
|
397
|
+
* it as a ghost card that asks the owner to add the first item. The live site never shows it. This file is the ONE
|
|
398
|
+
* reading of both, so the builder and the SSR engine agree:
|
|
399
|
+
*
|
|
400
|
+
* - `isNumberedPlaceholderTitle` — words and then a number (G-D1). The Publishable gate reads it as well.
|
|
401
|
+
* - `isPlaceholderRow(row, titleField)` — a row marked `isSample` whose title is such a placeholder.
|
|
402
|
+
* - `listTitleField(list)` — the field a list's card shows as its title.
|
|
403
|
+
* - `planPlaceholderHides(roots, resolved)` — what the live engine leaves out (G-D3): placeholder rows are dropped,
|
|
404
|
+
* a list with no live row is not drawn, and its top-level section hides when only its frame is left (heading,
|
|
405
|
+
* eyebrow, lead text, buttons). Pages and their nav links stay (G-D4).
|
|
406
|
+
*
|
|
407
|
+
* Pure and framework-free: no transport, no Angular.
|
|
408
|
+
*/
|
|
409
|
+
/** The stored field that marks a seeded sample item (iox-cms `SAMPLE_FIELD`). */
|
|
410
|
+
declare const SAMPLE_ROW_FIELD = "isSample";
|
|
411
|
+
/** The fields a row's title is read from when its list names none (a hand-built list, a slider without a title part). */
|
|
412
|
+
declare const PLACEHOLDER_TITLE_FALLBACK_FIELDS: readonly string[];
|
|
413
|
+
/**
|
|
414
|
+
* A title that is a numbered placeholder: words and then the item's number ("Product 2", "Room 2", "שם מעצבת השיער 1",
|
|
415
|
+
* "Sample name 3"). Read only on rows marked `isSample`, so a real item called "Studio 54" is never one.
|
|
416
|
+
*/
|
|
417
|
+
declare function isNumberedPlaceholderTitle(title: string | null | undefined): boolean;
|
|
418
|
+
/**
|
|
419
|
+
* True when a row is a sample still titled "<words> <n>" — the builder draws a ghost card for it, the live site leaves it
|
|
420
|
+
* out. `titleField` is the list's title field (`listTitleField`); without one the row's `title` / `name` / `label` is
|
|
421
|
+
* read. A row with no title to read is never a placeholder: when in doubt, show it.
|
|
422
|
+
*/
|
|
423
|
+
declare function isPlaceholderRow(row: unknown, titleField?: string | null): boolean;
|
|
424
|
+
/** The node fields the plan reads — a saved layout node (builder serializer shape) or a live ComponentNode. */
|
|
425
|
+
interface PlaceholderPlanNode {
|
|
426
|
+
id?: string;
|
|
427
|
+
type?: string;
|
|
428
|
+
role?: string;
|
|
429
|
+
props?: Record<string, unknown> | null;
|
|
430
|
+
bindings?: ReadonlyArray<{
|
|
431
|
+
prop?: string;
|
|
432
|
+
source?: string;
|
|
433
|
+
path?: string;
|
|
434
|
+
} | null | undefined> | null;
|
|
435
|
+
children?: ReadonlyArray<PlaceholderPlanNode | null | undefined> | null;
|
|
436
|
+
}
|
|
437
|
+
/** The node types that repeat a source's rows: a Repeater, and a slider whose slides repeat. */
|
|
438
|
+
declare const LIST_NODE_TYPES: ReadonlySet<string>;
|
|
439
|
+
/**
|
|
440
|
+
* The data source whose ITEMS a node repeats — a Repeater's or slider's `source` binding with no path (or a slider's
|
|
441
|
+
* `props.source`) — else `null`. A list over an array inside one item (`project.gallery`) is not a list of items.
|
|
442
|
+
*/
|
|
443
|
+
declare function listSourceOf(node: PlaceholderPlanNode | null | undefined): string | null;
|
|
444
|
+
/**
|
|
445
|
+
* The row field a list shows as its title: the bound text of its card's title part (a role ending in `title`, e.g.
|
|
446
|
+
* `card.title`), else of its first bound Heading, else `null` (then `isPlaceholderRow` falls back to title/name/label).
|
|
447
|
+
* Nested lists are not looked into.
|
|
448
|
+
*/
|
|
449
|
+
declare function listTitleField(list: PlaceholderPlanNode | null | undefined): string | null;
|
|
450
|
+
/**
|
|
451
|
+
* The node types that are only a list section's FRAME (G-D3): its heading, eyebrow, lead text, buttons, links, icons
|
|
452
|
+
* and the boxes around them. A section left with only these hides with its list. Anything else (a picture, a video, a
|
|
453
|
+
* form, a gallery, a static list, a slider that is not bound) is content of its own and keeps the section.
|
|
454
|
+
*/
|
|
455
|
+
declare const LIST_FRAME_TYPES: ReadonlySet<string>;
|
|
456
|
+
/** The words a list section's frame holds at most outside its list: an eyebrow and a lead line. A third Text is words
|
|
457
|
+
* of the section's own (board B), so it stays. */
|
|
458
|
+
declare const LIST_FRAME_MAX_TEXTS = 2;
|
|
459
|
+
/** What the live engine leaves out of a page so a visitor never meets a placeholder (G-D3). */
|
|
460
|
+
interface PlaceholderHidePlan {
|
|
461
|
+
/** Per list source alias: its rows without the placeholder rows. Only the aliases that lost a row are listed. */
|
|
462
|
+
rows: Record<string, unknown[]>;
|
|
463
|
+
/** Ids of the nodes not to draw: lists with no live row, and the top-level sections left with only their frame. */
|
|
464
|
+
hidden: Set<string>;
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* The ONE live rule (G-D3), shared by the SSR engine's renderers:
|
|
468
|
+
*
|
|
469
|
+
* 1. a list's placeholder rows are dropped (`rows`) — a mixed list shows only the owner's real items;
|
|
470
|
+
* 2. a list whose source resolved to no live row is not drawn (`hidden`);
|
|
471
|
+
* 3. the top-level root holding it hides too when everything else in it is frame (`LIST_FRAME_TYPES`, at most
|
|
472
|
+
* `LIST_FRAME_MAX_TEXTS` Texts) and no other list in it still has a live row.
|
|
473
|
+
*
|
|
474
|
+
* A source the engine did not resolve (`!(alias in resolved)`) is not judged — nothing is hidden on a guess. A page
|
|
475
|
+
* whose every section hid still renders with its header and footer, and its nav links stay (G-D4).
|
|
476
|
+
*/
|
|
477
|
+
declare function planPlaceholderHides(roots: ReadonlyArray<PlaceholderPlanNode | null | undefined> | null | undefined, resolved: Readonly<Record<string, unknown>> | null | undefined): PlaceholderHidePlan;
|
|
478
|
+
/** A page as the live engine draws it once the placeholder rule ran: the roots without the hidden nodes, and the data
|
|
479
|
+
* with each list's placeholder rows dropped. */
|
|
480
|
+
interface PlaceholderHidden<N> {
|
|
481
|
+
roots: N[];
|
|
482
|
+
resolved: Record<string, unknown>;
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* `planPlaceholderHides` applied — what the SSR engine hands BOTH its renderers (the string renderer and the component
|
|
486
|
+
* tree), so they never disagree: the hidden nodes pruned out of the tree (a copy only where something was pruned; the
|
|
487
|
+
* input is never mutated) and the list sources replaced by their live rows.
|
|
488
|
+
*/
|
|
489
|
+
declare function applyPlaceholderHides<N extends PlaceholderPlanNode>(roots: ReadonlyArray<N> | null | undefined, resolved: Readonly<Record<string, unknown>> | null | undefined): PlaceholderHidden<N>;
|
|
490
|
+
|
|
491
|
+
export { DataSourceSortDir, HOME_PAGE_LIVE_STATUS, LIST_FRAME_MAX_TEXTS, LIST_FRAME_TYPES, LIST_NODE_TYPES, PLACEHOLDER_TITLE_FALLBACK_FIELDS, RESERVED_ALIAS_PREFIX, SAMPLE_ROW_FIELD, SORT_PARAM, applyPlaceholderHides, buildDataSourceFilter, buildRelatedFilter, collectReferencedAliases, computeRelative, dataSourcePlanToRequest, excludeSelf, getByPath, hasHomeConflict, homePageOf, isNumberedPlaceholderTitle, isPlaceholderRow, isReservedAlias, listSourceOf, listTitleField, matchRouteParams, normalizeCollectionResult, planDataSource, planPlaceholderHides, referencedDataSources, referencedDataSourcesDeep, resolveDerivedInto, resolveRelativeInto, resolveRepeaterItems, resolveSiblings, resolveSingleItemId, sortParamValue, variableAliases, variableItemsFrom };
|
|
492
|
+
export type { BuildRelatedFilterOptions, DataSourceDomain, DataSourceEndpoints, DataSourceMode, DataSourcePlan, DataSourceQueryFilter, DataSourceRequest, DataSourceRequestSpec, DataSourceRouteFilter, DataSourceSort, DataSourceSpec, HomePageAnswer, HomePageCandidate, PlaceholderHidden, PlaceholderHidePlan, PlaceholderPlanNode, RelativeInputs, RelativeSourceKind, RelativeSourceSpec, ResolveSiblingsOptions, RouteContext, SiblingsResult };
|