@vectoriox/iox-ui 5.167.0 → 5.169.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.
@@ -489,6 +489,8 @@ declare enum ArrivalTrigger {
489
489
  Scroll = "scroll",
490
490
  Time = "time",
491
491
  ScrollOrTime = "scrollOrTime",
492
+ /** PU2b: a laptop's mouse leaves through the top of the window, after `seconds` on the page. */
493
+ Leaving = "leaving",
492
494
  Never = "never"
493
495
  }
494
496
  interface ArrivalPlan {
@@ -510,6 +512,9 @@ interface ArrivalProgress {
510
512
  pageHeight: number;
511
513
  /** Seconds the tab was visible since the turn started. */
512
514
  visibleSeconds: number;
515
+ /** PU2b: the visible seconds at the visitor's LATEST exit through the top of the window (a fine pointer's), or none.
516
+ * An exit before the planned seconds does not count; the next one after them does. */
517
+ leftTopAtSeconds?: number | null;
513
518
  }
514
519
  interface ArrivalEnv {
515
520
  /** `(hover: hover) and (pointer: fine)` — a laptop's mouse. */
@@ -517,9 +522,10 @@ interface ArrivalEnv {
517
522
  }
518
523
  /**
519
524
  * A popup's arrival from its traits (PU-D5): its kind's defaults where a trait is unset; `time` never under 3 s; `leaving`
520
- * — until PU2b draws it — and on a phone always, arrives by time (`phoneLeavingSeconds`); `button` never arrives by itself.
525
+ * reads a laptop's mouse leaving through the top after `leavingAfterSeconds` (PU2b) — anything without a fine pointer has
526
+ * no honest leaving signal and gets the time instead (`phoneLeavingSeconds`); `button` never arrives by itself.
521
527
  */
522
- declare function planPopupArrival(get: (name: string) => unknown, _env: ArrivalEnv): ArrivalPlan;
528
+ declare function planPopupArrival(get: (name: string) => unknown, env: ArrivalEnv): ArrivalPlan;
523
529
  /** AW2 / PU-D17: the consent banner's arrival — `load` at once, `delay` on the first real scroll or after 6 s. */
524
530
  declare function planConsentArrival(arrive: 'load' | 'delay' | string | null | undefined): ArrivalPlan;
525
531
  /** True once the planned arrival has happened. */
@@ -1025,6 +1025,20 @@ interface VariantSlot extends ProductVariantView {
1025
1025
  * the engine seeds during SSR (so the raw HTML already shows the price). `choice` defaults to the first sellable one.
1026
1026
  */
1027
1027
  declare function variantSlotOf(product: StorefrontProduct | null | undefined, choice?: VariantChoice | null, quantity?: number): VariantSlot | null;
1028
+ /**
1029
+ * What a LIST shows for a product (vectoriox/iox-ui#142): a product with options keeps its prices on its variants (its
1030
+ * own `pricing.price` is empty, or stale), so a card reads the lowest price on sale — `from` when the variants' prices
1031
+ * differ ("From ₪89.00"), and the earlier price only when there is one price. Null for a product with no options (its
1032
+ * stored price is what it sells at) or one with no priced variant.
1033
+ */
1034
+ interface ProductListPrice {
1035
+ price: Money;
1036
+ /** Only when every variant on sale has the one price, and the cheapest's earlier price is above it. */
1037
+ compareAt: Money | null;
1038
+ /** The variants on sale have more than one price. */
1039
+ from: boolean;
1040
+ }
1041
+ declare function productListPrice(product: StorefrontProduct | null | undefined): ProductListPrice | null;
1028
1042
 
1029
1043
  /**
1030
1044
  * The quantity a buyer may ask for — the stepper on a product page and on every cart line (commerce plan §3i). Whole
@@ -1209,11 +1223,26 @@ declare enum ShopWord {
1209
1223
  Subtotal = "subtotal",
1210
1224
  VatNote = "vatNote",
1211
1225
  CheckOut = "checkOut",
1212
- KeepShopping = "keepShopping"
1226
+ KeepShopping = "keepShopping",
1227
+ /** A list card's price for a product whose options differ in price (vectoriox/iox-ui#142). */
1228
+ PriceFrom = "priceFrom"
1213
1229
  }
1214
1230
  /** `{name}` / `{n}` / `{amount}` are filled by `shopWord`. */
1215
1231
  declare const SHOP_WORDS: Readonly<Record<ShopWord, CommerceLabel>>;
1216
1232
  declare function shopWord(word: ShopWord, lang: string | null | undefined, fill?: Readonly<Record<string, string | number>>): string;
1233
+ /** The stored price paths of a product a list binds (generation-core `SHOP_ROLES` `price` / `compareAt`). */
1234
+ declare enum ProductPricePath {
1235
+ Price = "pricing.price",
1236
+ CompareAt = "pricing.compareat"
1237
+ }
1238
+ /**
1239
+ * vectoriox/iox-ui#142 — a product's PRICE PATH read on a list card, for a product whose options carry the prices: the
1240
+ * `money` pipe asks it with the row the binding read and the path it read, so every list a studio already holds (bound
1241
+ * `pricing.price | money` to its row) shows "From ₪89.00" with no rebuild. `undefined` when it does not apply — not a
1242
+ * product with options, not a price path, no priced variant — and the pipe formats the stored value as before.
1243
+ * `currency` is used only when the product names none (the pipe's argument, else the studio's).
1244
+ */
1245
+ declare function listPriceField(row: unknown, path: string | null | undefined, locale?: string | null, currency?: string | null): string | undefined;
1217
1246
  /** Board 10's tall speckled vase: Glaze (Sand · Ash · Charcoal — Charcoal sold out) × Size (24 · 32 · 40 cm — 40 sold
1218
1247
  * out), ₪240 against ₪280. Major units, as the storefront serves them. */
1219
1248
  declare const SAMPLE_PRODUCT: StorefrontProduct;
@@ -1777,5 +1806,5 @@ declare const looksLikeEmail: (value: unknown) => boolean;
1777
1806
  /** A phone a person can be called on: 7–15 digits once spaces, dashes, brackets and a leading + are dropped. */
1778
1807
  declare const looksLikePhone: (value: unknown) => boolean;
1779
1808
 
1780
- export { ABANDONED_AFTER_MS, Availability, BuyerPaymentStage, CART_COOKIE_PREFIX, CART_ISSUE_LABELS, CART_TRANSPORT_ERROR_LABELS, CHECKOUT_FORM_STEPS, CHECKOUT_GATE_RULES, CHECKOUT_PATH, CHECKOUT_STEPS, CHECKOUT_STEP_LABELS, CHECKOUT_WORDS, COUPON_CODE_MAX, COUPON_CODE_MIN, COUPON_REFUSAL_LABELS, CURRENCY_CODES, CURRENCY_EXPONENTS, CartIssueCode, CartTransportError, CartTransportErrorCode, CheckoutAskedField, CheckoutFieldMode, CheckoutGateArea, CheckoutGateCode, CheckoutSlot, CheckoutStep, CheckoutWord, CommerceLanguage, CouponKind, CouponProblem, CouponRefusal, CurrencyCode, DEFAULT_JOURNEY_DAYS, DEFAULT_MONEY_LOCALE, DEFAULT_REMINDER_SETTINGS, DEFAULT_VARIANT_NAME, DeliveryFit, FINAL_ORDER_STATES, FUNNEL_STAGES, FunnelStage, JOURNEY_PERIODS_DAYS, JourneyEventKind, LegalPage, MAX_CART_AMOUNT, MAX_CART_LINES, MAX_LINE_QUANTITY, MAX_VAT_PERCENT, MIN_LINE_QUANTITY, MoneyError, MoneyErrorCode, NO_CART_TRANSPORT, ORDER_FRAME_PARAM, ORDER_FRAME_VALUE, ORDER_PATH, ORDER_STATE_LABELS, ORDER_STOCK_HOLD, ORDER_TRANSITIONS, OrderActor, OrderEvent, OrderRefusal, OrderSnapshotRefusal, OrderState, PAYMENT_FIELD_LABELS, PAYMENT_METHODS, PAYMENT_RETURNED, PAYMENT_VERDICT_LABELS, PaymentAttemptStatus, PaymentChannel, PaymentField, PaymentMethodKind, PaymentMismatch, PaymentProvider, PaymentResultStatus, PaymentVerdictKind, QuantityStep, RECOVERY_PATH, RECOVERY_WORDS, REMINDER_LATE_MS, REMINDER_SEQUENCE, REMINDER_STEPS, REMINDER_SUBJECT_WORDS, REMINDER_WORDS_MAX, RecoveryWord, ReminderOutcome, ReminderSkip, ReminderStep, ReminderStop, SAMPLE_CART_LINE, SAMPLE_PRODUCT, SAMPLE_STUDIO, SAMPLE_SWATCHES, SHIPPING_KINDS, SHOP_SLOTS, SHOP_WORDS, SITE_REFUSALS, STOCK_EFFECTS, STOCK_RESERVATION_MINUTES, STOREFRONT_COMPUTED_FIELDS, STOREFRONT_FIELDS, ShippingField, ShippingMethodKind, ShopSlot, ShopWord, SiteCommerceRoute, SiteOrderAction, SiteRefusalCode, StockEffect, StockHold, StorefrontCollection, UNSUBSCRIBE_PATH, VARIANT_NAME_SEPARATOR, VAT_PERCENT_MAX_DECIMALS, addMoney, addressLine, availableShippingMethods, biggestDrop, buyerMayPay, buyerPaymentStage, canBuy, canStep, cartCookieName, cartEndpointPath, cartIssueWords, cartLineId, cartOf, cartTransportErrorFor, cartViewOf, catalogKey, checkoutGate, checkoutHref, checkoutWord, chooseValue, clampQuantity, commerceLanguage, couponDiscount, couponOfferWords, couponProblems, couponRefusalWords, currencyExponent, currentCheckoutStep, defaultChoice, emptyCartView, fieldAsked, fieldRequired, findVariant, formatMoney, formatMoneyValue, freeShippingRemaining, funnelOf, furthestStep, includedVat, isAbandoned, isCouponCode, isCurrencyCode, isMoney, isOrderFrameReturn, isPaymentMethodKind, isPaymentReturnedMessage, isShippingMethodKind, isStorefrontField, isStorefrontProduct, isVatPercent, labelIn, looksLikeEmail, looksLikePhone, majorToMinor, marketingAllowed, maskEmail, mergeCarts, migrateMajorPrice, minorToMajor, money, nextOrderState, nextReminder, normalizeCouponCode, openingOrderState, optionValueStates, orderFrameReturnHref, orderHref, orderSnapshot, paymentChannelOf, paymentInstructions, paymentMethodConnected, paymentMethodProblems, paymentMethodReady, paymentReturnedMessage, paymentVerdict, percentOf, priceCart, productCurrency, productInScope, productOptions, productVariants, quantityBounds, quoteShipping, recoveryHref, recoveryWord, reminderNumber, reminderSettingsOf, reservationDue, reservationExpiresAt, reusableAttempt, sellableQuantity, shippingMethodProblems, shippingMethodReady, shippingNeedsAddress, shopWord, simulatedCartTransport, siteCartView, siteCommercePath, siteOrderActionPath, siteRefusalsOf, stepQuantity, stockEffect, stoppedAt, storefrontBindPaths, storefrontCatalog, storefrontMoney, subtractMoney, timesMoney, unsubscribeHref, usablePaymentMethods, variantChoiceOf, variantSlotOf, variantWords };
1781
- export type { AddToCartRequest, AppliedCoupon, BusinessIdentity, Cart, CartIssue, CartLine, CartTransport, CartView, CartViewLine, CatalogEntry, CheckoutFieldModes, CheckoutGateFacts, CheckoutGateRefusal, CheckoutGateResult, CommerceLabel, ConsentDecision, Coupon, CouponCheck, FunnelRow, Money, OptionState, OptionValueState, OrderBuyer, OrderMove, OrderSnapshot, OrderSnapshotLine, OrderSnapshotResult, OrderTransition, PaidCard, PaymentAttempt, PaymentMethodConfig, PaymentResult, PaymentVerdict, PaymentVerdictInput, PostalAddress, PricedCart, PricedLine, PricingChoice, ProductOption, ProductVariantView, QuantityBounds, ReminderFacts, ReminderPlan, ReminderSettings, ReminderTiming, ReminderWords, ShippingCart, ShippingGoods, ShippingMethod, ShippingQuote, SimulatedCartTransport, SiteBuyerOrder, SiteCartView, SiteCheckoutContact, SiteCheckoutOptions, SiteCheckoutView, SiteLegalLink, SiteOrderPayment, SitePayAnswer, SitePaymentOption, SitePaymentRedirect, SitePlacedOrder, SiteRefusal, SiteShippingMethod, SiteShippingOption, SiteUnsubscribeState, StorefrontFieldSpec, StorefrontProduct, StorefrontVariant, StudioCommerce, VariantChoice, VariantSlot };
1809
+ export { ABANDONED_AFTER_MS, Availability, BuyerPaymentStage, CART_COOKIE_PREFIX, CART_ISSUE_LABELS, CART_TRANSPORT_ERROR_LABELS, CHECKOUT_FORM_STEPS, CHECKOUT_GATE_RULES, CHECKOUT_PATH, CHECKOUT_STEPS, CHECKOUT_STEP_LABELS, CHECKOUT_WORDS, COUPON_CODE_MAX, COUPON_CODE_MIN, COUPON_REFUSAL_LABELS, CURRENCY_CODES, CURRENCY_EXPONENTS, CartIssueCode, CartTransportError, CartTransportErrorCode, CheckoutAskedField, CheckoutFieldMode, CheckoutGateArea, CheckoutGateCode, CheckoutSlot, CheckoutStep, CheckoutWord, CommerceLanguage, CouponKind, CouponProblem, CouponRefusal, CurrencyCode, DEFAULT_JOURNEY_DAYS, DEFAULT_MONEY_LOCALE, DEFAULT_REMINDER_SETTINGS, DEFAULT_VARIANT_NAME, DeliveryFit, FINAL_ORDER_STATES, FUNNEL_STAGES, FunnelStage, JOURNEY_PERIODS_DAYS, JourneyEventKind, LegalPage, MAX_CART_AMOUNT, MAX_CART_LINES, MAX_LINE_QUANTITY, MAX_VAT_PERCENT, MIN_LINE_QUANTITY, MoneyError, MoneyErrorCode, NO_CART_TRANSPORT, ORDER_FRAME_PARAM, ORDER_FRAME_VALUE, ORDER_PATH, ORDER_STATE_LABELS, ORDER_STOCK_HOLD, ORDER_TRANSITIONS, OrderActor, OrderEvent, OrderRefusal, OrderSnapshotRefusal, OrderState, PAYMENT_FIELD_LABELS, PAYMENT_METHODS, PAYMENT_RETURNED, PAYMENT_VERDICT_LABELS, PaymentAttemptStatus, PaymentChannel, PaymentField, PaymentMethodKind, PaymentMismatch, PaymentProvider, PaymentResultStatus, PaymentVerdictKind, ProductPricePath, QuantityStep, RECOVERY_PATH, RECOVERY_WORDS, REMINDER_LATE_MS, REMINDER_SEQUENCE, REMINDER_STEPS, REMINDER_SUBJECT_WORDS, REMINDER_WORDS_MAX, RecoveryWord, ReminderOutcome, ReminderSkip, ReminderStep, ReminderStop, SAMPLE_CART_LINE, SAMPLE_PRODUCT, SAMPLE_STUDIO, SAMPLE_SWATCHES, SHIPPING_KINDS, SHOP_SLOTS, SHOP_WORDS, SITE_REFUSALS, STOCK_EFFECTS, STOCK_RESERVATION_MINUTES, STOREFRONT_COMPUTED_FIELDS, STOREFRONT_FIELDS, ShippingField, ShippingMethodKind, ShopSlot, ShopWord, SiteCommerceRoute, SiteOrderAction, SiteRefusalCode, StockEffect, StockHold, StorefrontCollection, UNSUBSCRIBE_PATH, VARIANT_NAME_SEPARATOR, VAT_PERCENT_MAX_DECIMALS, addMoney, addressLine, availableShippingMethods, biggestDrop, buyerMayPay, buyerPaymentStage, canBuy, canStep, cartCookieName, cartEndpointPath, cartIssueWords, cartLineId, cartOf, cartTransportErrorFor, cartViewOf, catalogKey, checkoutGate, checkoutHref, checkoutWord, chooseValue, clampQuantity, commerceLanguage, couponDiscount, couponOfferWords, couponProblems, couponRefusalWords, currencyExponent, currentCheckoutStep, defaultChoice, emptyCartView, fieldAsked, fieldRequired, findVariant, formatMoney, formatMoneyValue, freeShippingRemaining, funnelOf, furthestStep, includedVat, isAbandoned, isCouponCode, isCurrencyCode, isMoney, isOrderFrameReturn, isPaymentMethodKind, isPaymentReturnedMessage, isShippingMethodKind, isStorefrontField, isStorefrontProduct, isVatPercent, labelIn, listPriceField, looksLikeEmail, looksLikePhone, majorToMinor, marketingAllowed, maskEmail, mergeCarts, migrateMajorPrice, minorToMajor, money, nextOrderState, nextReminder, normalizeCouponCode, openingOrderState, optionValueStates, orderFrameReturnHref, orderHref, orderSnapshot, paymentChannelOf, paymentInstructions, paymentMethodConnected, paymentMethodProblems, paymentMethodReady, paymentReturnedMessage, paymentVerdict, percentOf, priceCart, productCurrency, productInScope, productListPrice, productOptions, productVariants, quantityBounds, quoteShipping, recoveryHref, recoveryWord, reminderNumber, reminderSettingsOf, reservationDue, reservationExpiresAt, reusableAttempt, sellableQuantity, shippingMethodProblems, shippingMethodReady, shippingNeedsAddress, shopWord, simulatedCartTransport, siteCartView, siteCommercePath, siteOrderActionPath, siteRefusalsOf, stepQuantity, stockEffect, stoppedAt, storefrontBindPaths, storefrontCatalog, storefrontMoney, subtractMoney, timesMoney, unsubscribeHref, usablePaymentMethods, variantChoiceOf, variantSlotOf, variantWords };
1810
+ export type { AddToCartRequest, AppliedCoupon, BusinessIdentity, Cart, CartIssue, CartLine, CartTransport, CartView, CartViewLine, CatalogEntry, CheckoutFieldModes, CheckoutGateFacts, CheckoutGateRefusal, CheckoutGateResult, CommerceLabel, ConsentDecision, Coupon, CouponCheck, FunnelRow, Money, OptionState, OptionValueState, OrderBuyer, OrderMove, OrderSnapshot, OrderSnapshotLine, OrderSnapshotResult, OrderTransition, PaidCard, PaymentAttempt, PaymentMethodConfig, PaymentResult, PaymentVerdict, PaymentVerdictInput, PostalAddress, PricedCart, PricedLine, PricingChoice, ProductListPrice, ProductOption, ProductVariantView, QuantityBounds, ReminderFacts, ReminderPlan, ReminderSettings, ReminderTiming, ReminderWords, ShippingCart, ShippingGoods, ShippingMethod, ShippingQuote, SimulatedCartTransport, SiteBuyerOrder, SiteCartView, SiteCheckoutContact, SiteCheckoutOptions, SiteCheckoutView, SiteLegalLink, SiteOrderPayment, SitePayAnswer, SitePaymentOption, SitePaymentRedirect, SitePlacedOrder, SiteRefusal, SiteShippingMethod, SiteShippingOption, SiteUnsubscribeState, StorefrontFieldSpec, StorefrontProduct, StorefrontVariant, StudioCommerce, VariantChoice, VariantSlot };
@@ -18562,9 +18562,52 @@ declare const BRAND_NAME_LONGEST_AT = 36;
18562
18562
  declare const BRAND_WORD_LONG_AT = 10;
18563
18563
  declare const BRAND_WORD_LONGER_AT = 12;
18564
18564
  declare const BRAND_WORD_LONGEST_AT = 15;
18565
+ /**
18566
+ * vectoriox/iox-ui#143: the steps for a CROWDED bar — three controls or more beside the name on a phone (a store's
18567
+ * account and bag beside the menu). Measured on a 390 store header (Fraunces, 4 × 16px gaps, 32px insets): the name kept
18568
+ * 77px, and "Homeware" (8 letters, 110px at the lead size) broke inside the word. A crowded bar packs its controls
18569
+ * (`BAR_ATTRIBUTE`, the shared CSS), which leaves the name ~105px at 360; at ~0.6em a letter that holds a 6-letter word at
18570
+ * the name's own size, 7 at `size-lead`, 10 at `size-body` — and, at ~0.55em a character, two lines of 13 / 16 / 22.
18571
+ */
18572
+ declare const BRAND_CROWDED_NAME_LONG_AT = 13;
18573
+ declare const BRAND_CROWDED_NAME_LONGER_AT = 17;
18574
+ declare const BRAND_CROWDED_NAME_LONGEST_AT = 23;
18575
+ declare const BRAND_CROWDED_WORD_LONG_AT = 7;
18576
+ declare const BRAND_CROWDED_WORD_LONGER_AT = 8;
18577
+ declare const BRAND_CROWDED_WORD_LONGEST_AT = 11;
18578
+ /** The step a name takes: by its length and by its longest word, whichever asks for the smaller type; null = its size. */
18579
+ declare function brandNameLength(words: string, crowded?: boolean): BrandNameLength | null;
18565
18580
  /** The name's attributes: `{}` for a name that keeps its size. Never shortens the words — the type steps down, by the
18566
18581
  * name's length and by its longest word, whichever asks for the smaller step. */
18567
18582
  declare function brandNameAttributes(words: string): Record<string, string>;
18583
+ /** The navigation root's role (generation-core `NavRole.Root`). */
18584
+ declare const NAV_ROLE = "nav";
18585
+ /** Written on the navigation root when its phone bar is crowded: the shared CSS packs the controls. */
18586
+ declare const BAR_ATTRIBUTE = "data-iox-bar";
18587
+ /** Written beside it: the step the name takes in that bar (never smaller type than the name's own step asks). */
18588
+ declare const BAR_NAME_ATTRIBUTE = "data-iox-bar-name";
18589
+ declare enum BarRoom {
18590
+ Crowded = "crowded"
18591
+ }
18592
+ /** From this many controls beside the name on a phone, the bar is crowded. */
18593
+ declare const BAR_CROWDED_AT = 3;
18594
+ /** The parts that stay in the bar beside the name on a phone (generation-core `phoneHiddenParts` keeps the menu button, a
18595
+ * store's bag and account; HI1 keeps a menu-at-every-width header's pinned pages and actions). Spelled here: design-core
18596
+ * reads neither generation-core nor composite-core. */
18597
+ declare const PHONE_BAR_CONTROL_ROLES: ReadonlyArray<string>;
18598
+ interface BarNode {
18599
+ role?: string | null;
18600
+ type?: string;
18601
+ styleProps?: Readonly<Record<string, unknown>> | null;
18602
+ responsive?: Readonly<Record<string, {
18603
+ styleProps?: Readonly<Record<string, unknown>> | null;
18604
+ } | null | undefined>> | null;
18605
+ children?: ReadonlyArray<unknown> | null;
18606
+ }
18607
+ /** How many controls sit beside the name in the navigation's phone bar. */
18608
+ declare function phoneBarControls(nav: BarNode | null | undefined): number;
18609
+ /** The navigation root's attributes: `{}` for a bar that is not crowded; else `crowded` and the name's crowded step. */
18610
+ declare function navBarAttributes(nav: BarNode | null | undefined, brandWords: string): Record<string, string>;
18568
18611
 
18569
18612
  /**
18570
18613
  * How a site's MENU looks and moves (header-ingredients-plan.md HI2a; HB-D1/HB-D2, header-builder board v2). The header
@@ -19379,12 +19422,19 @@ declare function isListMixClass(c: string): boolean;
19379
19422
  * `iox-footer-arrange-ruled`, `iox-footer-namestyle-gradient` — that the shared iox-design.css draws (the ruled cells'
19380
19423
  * hairlines, the name's cut and style, the large links' arrow). The same decision in all three render paths
19381
19424
  * (`nodeDesignClasses`), so the canvas, both engine paths and the raw SSR agree. Pure.
19425
+ *
19426
+ * A footer whose OWN Text Direction is right-to-left also renders `iox-footer-mirrored` (the gradient name runs from the
19427
+ * reading start) — decided from the node as AW6's seams and AW11's lists are (`nodeIsRtl`), never by `:dir(rtl)`, which
19428
+ * the builder canvas answers with the ADMIN's direction.
19382
19429
  */
19430
+
19383
19431
  /** The prop (a Section's trait) the mix is stored under — generation-core `FOOTER_MIX_PROP`. */
19384
19432
  declare const FOOTER_MIX_PROP = "footerMix";
19385
19433
  /** Every class a mix writes starts with this — what a live re-sync removes. */
19386
19434
  declare const FOOTER_CLASS_PREFIX = "iox-footer-";
19387
- interface FooterMixSource {
19435
+ /** Beside a mix's classes on a right-to-left footer: what runs along the reading direction turns the other way. */
19436
+ declare const FOOTER_MIRRORED_CLASS = "iox-footer-mirrored";
19437
+ interface FooterMixSource extends DirectionSource {
19388
19438
  props?: Readonly<Record<string, unknown>> | null;
19389
19439
  traits?: ReadonlyArray<{
19390
19440
  name?: string;
@@ -19393,7 +19443,8 @@ interface FooterMixSource {
19393
19443
  }
19394
19444
  /** The stored mix's words (`arrange:ruled`), from `props` (saved) or the trait (builder); [] for none. */
19395
19445
  declare function footerMixWordsOf(node: FooterMixSource | null | undefined): string[];
19396
- /** The marker classes a footer root renders (`iox-footer-arrange-ruled iox-footer-namestyle-gradient`), or ''. */
19446
+ /** The marker classes a footer root renders (`iox-footer-arrange-ruled iox-footer-namestyle-gradient`, +
19447
+ * `iox-footer-mirrored` on a right-to-left footer), or '' for a root with no mix. */
19397
19448
  declare function footerMixClasses(node: FooterMixSource | null | undefined): string;
19398
19449
  /** True for a class this module writes. */
19399
19450
  declare function isFooterMixClass(c: string): boolean;
@@ -20726,5 +20777,5 @@ declare const isScrubId: (v: unknown) => v is `${ScrubId}`;
20726
20777
  /** The look's scrub as stored: a known word, else never (a row stored before AW10 reads never). */
20727
20778
  declare function scrubOfChoices(choices: Pick<DesignChoices, 'scrub'> | null | undefined): ScrubId;
20728
20779
 
20729
- export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, ARRIVE_IDS, AdoptOutcome, AdoptSkipReason, BACKDROP_FUNCTIONS, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, 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, BrandNameLength, CANVAS_LINK_ATTRIBUTE, CARD_EDGES, CARD_LINK_CLASS, 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, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FOOTER_CLASS_PREFIX, FOOTER_MIX_PROP, FieldClass, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, GROUND_INK_MIN, HEADER_THEME_COLOR_TOKEN, HELD_CONTRAST, HeaderAttribute, HeaderBehaviour, HeaderEdge, 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, NEW_COLUMN, NEW_NODE_STYLE_DEFAULTS, OPENING_ATTRIBUTE, OPENING_FOLLOWER_ROLE, OPENING_SETTING, OwnedTraitLink, PALETTE_PRESETS, 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, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, 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, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, footerMixClasses, footerMixWordsOf, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, graphemes, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerInkOf, headerStaysAtTop, headingHref, inSrgbGamut, inkOnGround, isArriveId, 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, nodeDesignClasses, nodeIsRtl, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, openingFollowerSelector, ownedTraitStatus, ownedTraitsOf, packDesignChoices, pageColumn, pageOpeningScheme, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, 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, 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 };
20730
- export type { AccentBackgrounds, AccentGround, AccentTokenName, AdoptContext, AdoptReport, AdoptableNode, AdoptedNode, AnimateId, ApplyElementStyleResult, ArriveId, 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, InkedGround, KeptEdit, LeaveId, LinearSpring, MenuLook, MenuTraitReader, MissingFontRole, MoodId, MotionId, MotionLanguage, MotionWordKind, MoveId, NodeLinkProps, OkLab, 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 };
20780
+ 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, 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, 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, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, GROUND_INK_MIN, HEADER_THEME_COLOR_TOKEN, HELD_CONTRAST, HeaderAttribute, HeaderBehaviour, HeaderEdge, 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_ROLE, OPENING_SETTING, 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, 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, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, footerMixClasses, footerMixWordsOf, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, graphemes, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerInkOf, headerStaysAtTop, headingHref, inSrgbGamut, inkOnGround, isArriveId, 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, 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, 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 };
20781
+ 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, InkedGround, KeptEdit, LeaveId, LinearSpring, MenuLook, MenuTraitReader, MissingFontRole, MoodId, MotionId, MotionLanguage, MotionWordKind, MoveId, NodeLinkProps, OkLab, 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 };
@@ -663,6 +663,8 @@ var ArrivalTrigger;
663
663
  ArrivalTrigger["Scroll"] = "scroll";
664
664
  ArrivalTrigger["Time"] = "time";
665
665
  ArrivalTrigger["ScrollOrTime"] = "scrollOrTime";
666
+ /** PU2b: a laptop's mouse leaves through the top of the window, after `seconds` on the page. */
667
+ ArrivalTrigger["Leaving"] = "leaving";
666
668
  ArrivalTrigger["Never"] = "never";
667
669
  })(ArrivalTrigger || (ArrivalTrigger = {}));
668
670
  const num = (v) => {
@@ -671,9 +673,10 @@ const num = (v) => {
671
673
  };
672
674
  /**
673
675
  * A popup's arrival from its traits (PU-D5): its kind's defaults where a trait is unset; `time` never under 3 s; `leaving`
674
- * — until PU2b draws it — and on a phone always, arrives by time (`phoneLeavingSeconds`); `button` never arrives by itself.
676
+ * reads a laptop's mouse leaving through the top after `leavingAfterSeconds` (PU2b) — anything without a fine pointer has
677
+ * no honest leaving signal and gets the time instead (`phoneLeavingSeconds`); `button` never arrives by itself.
675
678
  */
676
- function planPopupArrival(get, _env) {
679
+ function planPopupArrival(get, env) {
677
680
  const kind = Object.values(PopupKind).includes(String(get(PopupTrait.Kind))) ? get(PopupTrait.Kind) : PopupKind.Offer;
678
681
  const defaults = POPUP_KIND_ARRIVAL[kind];
679
682
  const asked = String(get(PopupTrait.Arrive) ?? '');
@@ -685,8 +688,10 @@ function planPopupArrival(get, _env) {
685
688
  case PopupArrive.Button: return { trigger: ArrivalTrigger.Never, screens: null, pageShare: null, seconds: null };
686
689
  case PopupArrive.Scroll: return { trigger: ArrivalTrigger.Scroll, screens, pageShare, seconds: null };
687
690
  case PopupArrive.Time: return { trigger: ArrivalTrigger.Time, screens: null, pageShare: null, seconds: seconds(POPUP_RULES.timeSeconds) };
688
- // PU2b draws `leaving` for a fine pointer; until then — and on a phone, always — it arrives by time.
689
- case PopupArrive.Leaving: return { trigger: ArrivalTrigger.Time, screens: null, pageShare: null, seconds: Math.max(POPUP_RULES.minSeconds, POPUP_RULES.phoneLeavingSeconds) };
691
+ // A phone (any coarse pointer) never reads leaving — no Back-button trap, no scroll-up guess: it arrives by time.
692
+ case PopupArrive.Leaving: return env.finePointer
693
+ ? { trigger: ArrivalTrigger.Leaving, screens: null, pageShare: null, seconds: Math.max(POPUP_RULES.minSeconds, POPUP_RULES.leavingAfterSeconds) }
694
+ : { trigger: ArrivalTrigger.Time, screens: null, pageShare: null, seconds: Math.max(POPUP_RULES.minSeconds, POPUP_RULES.phoneLeavingSeconds) };
690
695
  default: return { trigger: ArrivalTrigger.ScrollOrTime, screens, pageShare, seconds: seconds(POPUP_RULES.timeSeconds) };
691
696
  }
692
697
  }
@@ -712,6 +717,7 @@ function arrivalFired(plan, p) {
712
717
  case ArrivalTrigger.Never: return false;
713
718
  case ArrivalTrigger.Scroll: return scrolledEnough(plan, p);
714
719
  case ArrivalTrigger.Time: return p.visibleSeconds >= (plan.seconds ?? Infinity);
720
+ case ArrivalTrigger.Leaving: return p.leftTopAtSeconds != null && p.leftTopAtSeconds >= (plan.seconds ?? Infinity);
715
721
  default: return scrolledEnough(plan, p) || p.visibleSeconds >= (plan.seconds ?? Infinity);
716
722
  }
717
723
  }