@vectoriox/iox-ui 5.196.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.
Files changed (39) hide show
  1. package/composite-core/index.d.ts +3 -0
  2. package/data-core/index.d.ts +101 -2
  3. package/design-core/index.d.ts +24 -3
  4. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +15 -8
  5. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  6. package/fesm2022/vectoriox-iox-ui-data-core.mjs +192 -2
  7. package/fesm2022/vectoriox-iox-ui-data-core.mjs.map +1 -1
  8. package/fesm2022/vectoriox-iox-ui-design-core.mjs +41 -3
  9. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  10. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +445 -135
  11. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  12. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +3 -1
  13. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  14. package/fesm2022/vectoriox-iox-ui.mjs +30 -0
  15. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  16. package/generation-core/index.d.ts +170 -18
  17. package/harness-core/index.d.ts +1 -1
  18. package/package.json +1 -1
  19. package/src/composite-core/slider-runtime.ts +16 -8
  20. package/src/data-core/placeholder-rows.ts +220 -0
  21. package/src/data-core/public-api.ts +2 -1
  22. package/src/design-core/header-behaviour.ts +10 -2
  23. package/src/design-core/node-links.ts +34 -0
  24. package/src/generation-core/audit-site.ts +10 -1
  25. package/src/generation-core/audit-words.ts +5 -0
  26. package/src/generation-core/check-free.ts +21 -3
  27. package/src/generation-core/compose-site.ts +32 -9
  28. package/src/generation-core/free-opening.ts +57 -0
  29. package/src/generation-core/header-mix.ts +84 -4
  30. package/src/generation-core/item-fill.ts +42 -0
  31. package/src/generation-core/nav-shape.ts +45 -16
  32. package/src/generation-core/node-baselines.generated.ts +1 -0
  33. package/src/generation-core/opening-mix.ts +10 -0
  34. package/src/generation-core/public-api.ts +2 -0
  35. package/src/generation-core/site-build-run.ts +4 -0
  36. package/src/generation-core/stock-search.ts +106 -18
  37. package/src/generation-core/type-led.ts +19 -4
  38. package/src/harness-core/run-compose-context.ts +3 -1
  39. package/styles/iox-design.css +5 -4
@@ -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.) */
@@ -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
- export { DataSourceSortDir, HOME_PAGE_LIVE_STATUS, RESERVED_ALIAS_PREFIX, SORT_PARAM, buildDataSourceFilter, buildRelatedFilter, collectReferencedAliases, computeRelative, dataSourcePlanToRequest, excludeSelf, getByPath, hasHomeConflict, homePageOf, isReservedAlias, matchRouteParams, normalizeCollectionResult, planDataSource, referencedDataSources, referencedDataSourcesDeep, resolveDerivedInto, resolveRelativeInto, resolveRepeaterItems, resolveSiblings, resolveSingleItemId, sortParamValue, variableAliases, variableItemsFrom };
393
- export type { BuildRelatedFilterOptions, DataSourceDomain, DataSourceEndpoints, DataSourceMode, DataSourcePlan, DataSourceQueryFilter, DataSourceRequest, DataSourceRequestSpec, DataSourceRouteFilter, DataSourceSort, DataSourceSpec, HomePageAnswer, HomePageCandidate, RelativeInputs, RelativeSourceKind, RelativeSourceSpec, ResolveSiblingsOptions, RouteContext, SiblingsResult };
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 };
@@ -18895,8 +18895,16 @@ declare function headerGivesBack(ground: unknown, openingMedia: unknown): boolea
18895
18895
  /** The Page scrolled state's attribute (main entry `SCROLLED_ATTRIBUTE`; spelled here — design-core reads no Angular
18896
18896
  * entry; held equal by the scrolled spec). */
18897
18897
  declare const HEADER_SCROLLED_ATTRIBUTE = "data-iox-scrolled";
18898
- /** An open menu inside the header (the drawer / full / panel Dialog is the header's own child — T2). */
18899
- declare const HEADER_OPEN_MENU_SELECTOR = "dialog[open]";
18898
+ /**
18899
+ * Written on the builder canvas's open Dialog stage (`app-builder-dialog`'s `div.dialog-stage`) — the canvas twin of an
18900
+ * open `<dialog>`, which the canvas does not use (vectoriox/iox-ui#181).
18901
+ */
18902
+ declare const HEADER_MENU_OPEN_ATTRIBUTE = "data-iox-menu-open";
18903
+ /**
18904
+ * An open menu inside the header (the drawer / full / panel Dialog is the header's own child — T2): a real open
18905
+ * `<dialog>` on the live site, the stage carrying `HEADER_MENU_OPEN_ATTRIBUTE` on the canvas.
18906
+ */
18907
+ declare const HEADER_OPEN_MENU_SELECTOR = ":is(dialog[open], [data-iox-menu-open])";
18900
18908
  /** The CSS custom property the header runtime writes its height in (`watchHeaderHeight`), on the scope around it. */
18901
18909
  declare const HEADER_HEIGHT_VAR = "--header-h";
18902
18910
  /**
@@ -19981,6 +19989,19 @@ declare const CANVAS_LINK_ATTRIBUTE = "data-iox-canvas";
19981
19989
  * through `pageHref` exactly as a ButtonBlock's does.
19982
19990
  */
19983
19991
  declare function headingHref(props: NodeLinkProps, pageHref?: (route: string) => string): string | null;
19992
+ /** The prop a node's route params are stored under — `routeParam:<name>`, a static value or a binding (both land there). */
19993
+ declare const ROUTE_PARAM_PREFIX = "routeParam:";
19994
+ /** A node's route params by name, from its `routeParam:<name>` props (`{ 'routeParam:slug': 'soap' }` → `{ slug: 'soap' }`). */
19995
+ declare function routeParamValues(props: Readonly<Record<string, unknown>> | null | undefined): Record<string, unknown>;
19996
+ /**
19997
+ * A page route with its `:params` filled: each from `values` (URL-encoded), an unfilled one leaving no gap
19998
+ * (`/shop/:slug/reviews` with no slug → `/shop/reviews`). The engine's `resolvePageHref` substitution, shared so the builder's
19999
+ * Preview links where the live site does — a product card read `/shop/:slug` there (vectoriox/iox-ui#176). The route's
20000
+ * leading slash is kept; the engine makes it base-relative itself.
20001
+ */
20002
+ declare function fillRouteParams(route: string, values: Readonly<Record<string, unknown>>): string;
20003
+ /** Does the route still name a `:param` (one nothing filled)? */
20004
+ declare function routeHasParams(route: string): boolean;
19984
20005
 
19985
20006
  /**
19986
20007
  * BRAND DERIVATION (flavors plan §6, F2): one colour in, an asserted accessible ramp out.
@@ -21199,5 +21220,5 @@ declare const CLOSE_WORDS: Readonly<Record<string, string>>;
21199
21220
  /** "Close" in `lang` (its base language), else English. */
21200
21221
  declare function closeWord(lang: string | null | undefined): string;
21201
21222
 
21202
- export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, ARRIVE_IDS, AdoptOutcome, AdoptSkipReason, BACKDROP_FUNCTIONS, BAR_ATTRIBUTE, BAR_CROWDED_AT, BAR_NAME_ATTRIBUTE, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, BRAND_CROWDED_NAME_LONGER_AT, BRAND_CROWDED_NAME_LONGEST_AT, BRAND_CROWDED_NAME_LONG_AT, BRAND_CROWDED_WORD_LONGER_AT, BRAND_CROWDED_WORD_LONGEST_AT, BRAND_CROWDED_WORD_LONG_AT, BRAND_NAME_ATTRIBUTE, BRAND_NAME_LONGER_AT, BRAND_NAME_LONGEST_AT, BRAND_NAME_LONG_AT, BRAND_ROLE, BRAND_WORD_LONGER_AT, BRAND_WORD_LONGEST_AT, BRAND_WORD_LONG_AT, BUTTON_VARIANT_TO_STYLE, BarRoom, BrandNameLength, CANVAS_LINK_ATTRIBUTE, CARD_EDGES, CARD_LINK_CLASS, CASELESS_LANGUAGES, CASELESS_SCRIPT_OVERRIDES, CLOSE_WORDS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, COLUMN_ATTRIBUTE, COLUMN_IDS, COLUMN_SETTING, COMPOSED_HEADER, CONTENT_CAP_TOKEN, CONTENT_WIDTH_TOKEN, CONTRAST_AUDIT_MEMORY, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, DEFAULT_GROUND_INKS, 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, FILTER_FUNCTIONS, FLAVOR_SPEC_VERSION, FLOATING_BACKDROPS, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FOOTER_CLASS_PREFIX, FOOTER_MIRRORED_CLASS, FOOTER_MIX_PROP, FieldClass, FontUploadError, GLASS_GROUNDS, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, GROUND_INK_MIN, HEADER_AT_REST_SELECTOR, HEADER_GIVES_BACK_SELECTOR, HEADER_HEIGHT_VAR, HEADER_OPEN_MENU_SELECTOR, HEADER_SCROLLED_ATTRIBUTE, HEADER_THEME_COLOR_TOKEN, HELD_CONTRAST, HeaderAttribute, HeaderBehaviour, HeaderEdge, HeaderGround, HeaderInk, HeaderTrait, INHERITED_TEXT, LEAVE_IDS, LEAVE_SHARE, LINK_WEIGHT_STEP, LIST_CLASS_PREFIX, LIST_MIRRORED_CLASS, LIST_MIX_PROP, LinkType, LocaleDirection, MARK_STYLES, MAX_FONT_FILE_BYTES, MENU_ATTRIBUTES, MENU_PHONE_MAX_WIDTH, MIRRORED_EDGES, MOOD_IDS, MOOD_LABELS, MOTION_LANGUAGE_PRESET_IDS, MOVE_IDS, MenuAttribute, MenuButtonKind, MenuForm, MenuHover, MenuPhoneForm, MenuReveal, MenuTrait, MotionWordTier, NAV_ROLE, NEW_COLUMN, NEW_NODE_STYLE_DEFAULTS, OPENING_ATTRIBUTE, OPENING_FOLLOWER_GROUND_CLAUSES, OPENING_FOLLOWER_ROLE, OPENING_MEDIA_ATTRIBUTE, OPENING_SETTING, OVER_GROUNDS, OpeningMediaKind, OpticalSize, OwnedTraitLink, PALETTE_PRESETS, PHONE_BAR_CONTROL_ROLES, PRELOADER_CAP_MS, PRELOADER_ENTER_EASE, PRELOADER_EXIT_EASE, PRELOADER_EXIT_IDS, PRELOADER_EXIT_MAX_MS, PRELOADER_IDS, PRELOADER_LETTERS_MAX, PRELOADER_LEVELS, PRELOADER_MIN_SHOW_MS, PRE_COLUMN, 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, RTL_LANGUAGES, SCHEME_INK, SCROLL_IDS, SCRUB_IDS, SCRUB_LEVELS, SEAM_CLASS_PREFIX, SEAM_MIRRORED_CLASS, SECTION_CARD_CLASS, SECTION_CARD_STYLES, SECTION_CARD_SUPERSEDED, SECTION_EDGES, SECTION_EDGE_TRAIT, SECTION_EDGE_TYPES, SECTION_FULL_STYLES, SECTION_SHAPE_TRAIT, 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, SUPERSEDED_TOKEN_VALUES, SWISS_FLAVOR, ScrubId, SectionEdge, SectionShape, TEXT_LINK_STYLES, 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, WIDE_CONTENT_CAP, WIDE_CONTENT_WIDTH, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, brandNameAttributes, brandNameLength, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, closeWord, colorSchemeClass, colorSchemeOf, colourTabChecks, columnSelector, columnWordOf, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, contentCapOf, contentWidthOf, cssString, decomposeCssFunctions, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designApplySnapshot, designBaseline, designConfigEntries, designModeOf, designMotionOf, designPreloaderOf, designRevertConfig, designTokenRepairs, designTokenRows, drawsScript, edgeFitsShape, elementStyleById, elementStyleClass, elementStyleFace, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, ensureAlpha, ensureContrast, entranceDelay, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, floatingGroundFindings, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, footerMixClasses, footerMixWordsOf, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, graphemes, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerFirm, headerGivesBack, headerGroundIsGlass, headerGroundIsOver, headerGroundOf, headerInkOf, headerStaysAtTop, headingHref, inSrgbGamut, inkOnGround, isArriveId, isCaselessLocale, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFirstVisit, isFontWeightRange, isFooterMixClass, isListMixClass, isMoveId, isPreloaderKind, isRetiredFlavorId, isScrubId, isSectionDesignClass, languageOf, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, listMixClasses, listMixWordsOf, localeDirection, matchFontWeight, menuButtonAttributes, menuButtonOf, menuButtonProps, menuDialogAttributes, menuDialogProps, menuFormOf, menuFormSwitchesOnPhone, menuHoverOf, menuPhoneOf, menuRevealOf, missingDesignRows, missingFontRoles, motionCurve, motionLanguageForPlan, motionLanguageOf, motionWordTier, navBarAttributes, nodeDesignClasses, nodeIsRtl, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, openingFollowerSelector, openingMediaAttributes, openingMediaOf, ownedTraitStatus, ownedTraitsOf, packDesignChoices, pageColumn, pageOpeningScheme, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, phoneBarControls, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planPreloader, planSectionShape, planSwissMigration, popAllowed, preTintAccentGrounds, preloaderExitMotion, preloaderExitOf, preloaderGraphemes, preloaderLeaveAt, preloaderOfChoices, preloaderPercent, preloaderWords, presetChoices, presetModes, presetMotionLanguage, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, repeatedRowIndex, resolveDesignChoices, resolveDesignMotion, resolveMotionLanguageChoices, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, sameDesignChoices, schemeOfClasses, schemeTokenResolver, schemeUnderBar, scriptsForLocale, scrubOfChoices, sectionDesignClasses, sectionEdgeClass, sectionEdgeOf, sectionIsRtl, sectionShapeOf, setColorScheme, setSectionEdge, setSectionShape, siteColumnOf, 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 };
21223
+ export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, ARRIVE_IDS, AdoptOutcome, AdoptSkipReason, BACKDROP_FUNCTIONS, BAR_ATTRIBUTE, BAR_CROWDED_AT, BAR_NAME_ATTRIBUTE, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, BRAND_CROWDED_NAME_LONGER_AT, BRAND_CROWDED_NAME_LONGEST_AT, BRAND_CROWDED_NAME_LONG_AT, BRAND_CROWDED_WORD_LONGER_AT, BRAND_CROWDED_WORD_LONGEST_AT, BRAND_CROWDED_WORD_LONG_AT, BRAND_NAME_ATTRIBUTE, BRAND_NAME_LONGER_AT, BRAND_NAME_LONGEST_AT, BRAND_NAME_LONG_AT, BRAND_ROLE, BRAND_WORD_LONGER_AT, BRAND_WORD_LONGEST_AT, BRAND_WORD_LONG_AT, BUTTON_VARIANT_TO_STYLE, BarRoom, BrandNameLength, CANVAS_LINK_ATTRIBUTE, CARD_EDGES, CARD_LINK_CLASS, CASELESS_LANGUAGES, CASELESS_SCRIPT_OVERRIDES, CLOSE_WORDS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, COLUMN_ATTRIBUTE, COLUMN_IDS, COLUMN_SETTING, COMPOSED_HEADER, CONTENT_CAP_TOKEN, CONTENT_WIDTH_TOKEN, CONTRAST_AUDIT_MEMORY, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, DEFAULT_GROUND_INKS, 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, FILTER_FUNCTIONS, FLAVOR_SPEC_VERSION, FLOATING_BACKDROPS, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FOOTER_CLASS_PREFIX, FOOTER_MIRRORED_CLASS, FOOTER_MIX_PROP, FieldClass, FontUploadError, GLASS_GROUNDS, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, GROUND_INK_MIN, HEADER_AT_REST_SELECTOR, HEADER_GIVES_BACK_SELECTOR, HEADER_HEIGHT_VAR, HEADER_MENU_OPEN_ATTRIBUTE, HEADER_OPEN_MENU_SELECTOR, HEADER_SCROLLED_ATTRIBUTE, HEADER_THEME_COLOR_TOKEN, HELD_CONTRAST, HeaderAttribute, HeaderBehaviour, HeaderEdge, HeaderGround, HeaderInk, HeaderTrait, INHERITED_TEXT, LEAVE_IDS, LEAVE_SHARE, LINK_WEIGHT_STEP, LIST_CLASS_PREFIX, LIST_MIRRORED_CLASS, LIST_MIX_PROP, LinkType, LocaleDirection, MARK_STYLES, MAX_FONT_FILE_BYTES, MENU_ATTRIBUTES, MENU_PHONE_MAX_WIDTH, MIRRORED_EDGES, MOOD_IDS, MOOD_LABELS, MOTION_LANGUAGE_PRESET_IDS, MOVE_IDS, MenuAttribute, MenuButtonKind, MenuForm, MenuHover, MenuPhoneForm, MenuReveal, MenuTrait, MotionWordTier, NAV_ROLE, NEW_COLUMN, NEW_NODE_STYLE_DEFAULTS, OPENING_ATTRIBUTE, OPENING_FOLLOWER_GROUND_CLAUSES, OPENING_FOLLOWER_ROLE, OPENING_MEDIA_ATTRIBUTE, OPENING_SETTING, OVER_GROUNDS, OpeningMediaKind, OpticalSize, OwnedTraitLink, PALETTE_PRESETS, PHONE_BAR_CONTROL_ROLES, PRELOADER_CAP_MS, PRELOADER_ENTER_EASE, PRELOADER_EXIT_EASE, PRELOADER_EXIT_IDS, PRELOADER_EXIT_MAX_MS, PRELOADER_IDS, PRELOADER_LETTERS_MAX, PRELOADER_LEVELS, PRELOADER_MIN_SHOW_MS, PRE_COLUMN, 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, ROUTE_PARAM_PREFIX, ROW_INDEX_ATTRIBUTE, RTL_LANGUAGES, SCHEME_INK, SCROLL_IDS, SCRUB_IDS, SCRUB_LEVELS, SEAM_CLASS_PREFIX, SEAM_MIRRORED_CLASS, SECTION_CARD_CLASS, SECTION_CARD_STYLES, SECTION_CARD_SUPERSEDED, SECTION_EDGES, SECTION_EDGE_TRAIT, SECTION_EDGE_TYPES, SECTION_FULL_STYLES, SECTION_SHAPE_TRAIT, 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, SUPERSEDED_TOKEN_VALUES, SWISS_FLAVOR, ScrubId, SectionEdge, SectionShape, TEXT_LINK_STYLES, 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, WIDE_CONTENT_CAP, WIDE_CONTENT_WIDTH, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, brandNameAttributes, brandNameLength, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, closeWord, colorSchemeClass, colorSchemeOf, colourTabChecks, columnSelector, columnWordOf, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, contentCapOf, contentWidthOf, cssString, decomposeCssFunctions, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designApplySnapshot, designBaseline, designConfigEntries, designModeOf, designMotionOf, designPreloaderOf, designRevertConfig, designTokenRepairs, designTokenRows, drawsScript, edgeFitsShape, elementStyleById, elementStyleClass, elementStyleFace, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, ensureAlpha, ensureContrast, entranceDelay, fillRouteParams, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, floatingGroundFindings, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, footerMixClasses, footerMixWordsOf, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, graphemes, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerFirm, headerGivesBack, headerGroundIsGlass, headerGroundIsOver, headerGroundOf, headerInkOf, headerStaysAtTop, headingHref, inSrgbGamut, inkOnGround, isArriveId, isCaselessLocale, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFirstVisit, isFontWeightRange, isFooterMixClass, isListMixClass, isMoveId, isPreloaderKind, isRetiredFlavorId, isScrubId, isSectionDesignClass, languageOf, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, listMixClasses, listMixWordsOf, localeDirection, matchFontWeight, menuButtonAttributes, menuButtonOf, menuButtonProps, menuDialogAttributes, menuDialogProps, menuFormOf, menuFormSwitchesOnPhone, menuHoverOf, menuPhoneOf, menuRevealOf, missingDesignRows, missingFontRoles, motionCurve, motionLanguageForPlan, motionLanguageOf, motionWordTier, navBarAttributes, nodeDesignClasses, nodeIsRtl, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, openingFollowerSelector, openingMediaAttributes, openingMediaOf, ownedTraitStatus, ownedTraitsOf, packDesignChoices, pageColumn, pageOpeningScheme, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, phoneBarControls, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planPreloader, planSectionShape, planSwissMigration, popAllowed, preTintAccentGrounds, preloaderExitMotion, preloaderExitOf, preloaderGraphemes, preloaderLeaveAt, preloaderOfChoices, preloaderPercent, preloaderWords, presetChoices, presetModes, presetMotionLanguage, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, repeatedRowIndex, resolveDesignChoices, resolveDesignMotion, resolveMotionLanguageChoices, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, routeHasParams, routeParamValues, sameDesignChoices, schemeOfClasses, schemeTokenResolver, schemeUnderBar, scriptsForLocale, scrubOfChoices, sectionDesignClasses, sectionEdgeClass, sectionEdgeOf, sectionIsRtl, sectionShapeOf, setColorScheme, setSectionEdge, setSectionShape, siteColumnOf, 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 };
21203
21224
  export type { AccentBackgrounds, AccentGround, AccentTokenName, AdoptContext, AdoptReport, AdoptableNode, AdoptedNode, AnimateId, ApplyElementStyleResult, ArriveId, BarNode, BetweenId, ButtonBlockLinkProps, ColourCheck, ColourFlavor, ColumnId, ContrastFinding, CssFunctionControl, DensityId, DesignApplyOptions, DesignChoices, DesignClassSource, DesignConfigEntry, DesignMode, DesignMotion, DesignRevertSnapshot, DesignTokenGroup, DesignTokenLike, DesignTokenRow, DesignTokenTier, DesignTokenType, DirectionSource, 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, GroundBand, GroundInks, HeaderMoment, InkedGround, KeptEdit, LeaveId, LinearSpring, MenuLook, MenuTraitReader, MissingFontRole, MoodId, MotionId, MotionLanguage, MotionWordKind, MoveId, NodeLinkProps, OkLab, OpeningMediaNode, OwnedTrait, OwnedTraitStatus, PalettePreset, PreloaderExitMotion, PreloaderInput, PreloaderPlan, PresetMode, PresetMotionLanguage, ResolvedMode, Rgb, Rgba, SchemeId, ScriptId, ScrollId, SectionEdgeSource, SeedBaseline, SeedExpectation, ShapeId, SkippedNode, StaggerSpec, StoredDesign, StoredDesignTokenRow, StylePreset, SupersededStyleValue, SwissMigration, SwitchElementStyleResult, ThemeColorOptions, ThemeColors, TimedAction, TintId, TintLevel, TokenCssBlocks, TokenCssOptions, TypeFace };
@@ -3053,6 +3053,7 @@ class CarouselA11y {
3053
3053
  this.hovering = false;
3054
3054
  this.cleanups = [];
3055
3055
  const el = swiper.el;
3056
+ this.el = el;
3056
3057
  this.words = options.words ?? sliderWords(el.ownerDocument?.documentElement?.getAttribute('lang'));
3057
3058
  this.pause = sliderPartElement(el, SliderRole.Pause);
3058
3059
  this.authorName = authorNameOf(this.pause);
@@ -3099,7 +3100,9 @@ class CarouselA11y {
3099
3100
  }
3100
3101
  destroy() {
3101
3102
  this.cleanups.splice(0).forEach(fn => fn());
3102
- delete this.swiper.el[RUNTIME_KEY$1];
3103
+ const host = this.el;
3104
+ if (host[RUNTIME_KEY$1] === this)
3105
+ delete host[RUNTIME_KEY$1];
3103
3106
  }
3104
3107
  listen(target, type, fn) {
3105
3108
  target.addEventListener(type, fn);
@@ -3113,7 +3116,7 @@ class CarouselA11y {
3113
3116
  }
3114
3117
  onFocusOut(e) {
3115
3118
  const next = e.relatedTarget;
3116
- if (next && this.swiper.el.contains(next))
3119
+ if (next && this.el.contains(next))
3117
3120
  return;
3118
3121
  this.focusInside = false;
3119
3122
  if (!this.stoppedByVisitor && this.swiper.autoplay?.running && this.swiper.autoplay.paused)
@@ -3196,12 +3199,14 @@ function sliderCountText(index, total) {
3196
3199
  * Returns the stop; a slider with neither part gets a no-op.
3197
3200
  */
3198
3201
  function attachSliderBar(swiper) {
3199
- (swiper.el[BAR_RUNTIME_KEY])?.();
3200
- const caption = sliderPartElement(swiper.el, SliderRole.Caption);
3201
- const count = sliderPartElement(swiper.el, SliderRole.Count);
3202
+ // Held now: a destroyed Swiper's fields are nulled, and the previous boot's stop runs after it (iox-ui#176).
3203
+ const el = swiper.el;
3204
+ (el[BAR_RUNTIME_KEY])?.();
3205
+ const caption = sliderPartElement(el, SliderRole.Caption);
3206
+ const count = sliderPartElement(el, SliderRole.Count);
3202
3207
  if (!caption && !count)
3203
3208
  return () => { };
3204
- const view = swiper.el.ownerDocument?.defaultView;
3209
+ const view = el.ownerDocument?.defaultView;
3205
3210
  const raf = (fn) => (view?.requestAnimationFrame ? view.requestAnimationFrame(() => view.requestAnimationFrame(fn)) : setTimeout(fn, 32));
3206
3211
  let first = true;
3207
3212
  const sync = () => {
@@ -3230,9 +3235,11 @@ function attachSliderBar(swiper) {
3230
3235
  const stop = () => {
3231
3236
  swiper.off('slideChange', sync);
3232
3237
  swiper.off('slidesLengthChange', sync);
3233
- delete swiper.el[BAR_RUNTIME_KEY];
3238
+ const host = el;
3239
+ if (host[BAR_RUNTIME_KEY] === stop)
3240
+ delete host[BAR_RUNTIME_KEY];
3234
3241
  };
3235
- swiper.el[BAR_RUNTIME_KEY] = stop;
3242
+ el[BAR_RUNTIME_KEY] = stop;
3236
3243
  return stop;
3237
3244
  }
3238
3245