@vectoriox/iox-ui 5.168.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.
- package/commerce-core/index.d.ts +32 -3
- package/design-core/index.d.ts +55 -4
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs +52 -1
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +87 -8
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +62 -4
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +30 -5
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +33 -3
- package/index.d.ts +4 -0
- package/package.json +1 -1
- package/src/commerce-core/shop-display.ts +35 -1
- package/src/commerce-core/variants.ts +25 -0
- package/src/design-core/footer-classes.ts +14 -3
- package/src/design-core/header-behaviour.ts +87 -5
- package/src/generation-core/compose-site.ts +3 -0
- package/src/generation-core/contact-facts.ts +61 -0
- package/src/generation-core/footer-mix.ts +7 -3
- package/src/generation-core/public-api.ts +1 -0
- package/src/generation-core/site-build-run.ts +12 -0
- package/styles/iox-design.css +45 -8
package/commerce-core/index.d.ts
CHANGED
|
@@ -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 };
|
package/design-core/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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 };
|
|
@@ -1976,6 +1976,18 @@ function variantSlotOf(product, choice, quantity = 1) {
|
|
|
1976
1976
|
const variant = options.length ? findVariant(options, views, pick) : views[0] ?? null;
|
|
1977
1977
|
return variant ? { ...variant, productId: product._id, words: variantWords(variant.choice, options), quantity } : null;
|
|
1978
1978
|
}
|
|
1979
|
+
function productListPrice(product) {
|
|
1980
|
+
if (!product || !productOptions(product).length)
|
|
1981
|
+
return null;
|
|
1982
|
+
const priced = productVariants(product).filter(v => v.enabled && v.price);
|
|
1983
|
+
const sellable = priced.filter(v => v.sellable);
|
|
1984
|
+
const pool = sellable.length ? sellable : priced;
|
|
1985
|
+
if (!pool.length)
|
|
1986
|
+
return null;
|
|
1987
|
+
const cheapest = pool.reduce((low, v) => (v.price.amount < low.price.amount ? v : low));
|
|
1988
|
+
const from = pool.some(v => v.price.amount !== cheapest.price.amount);
|
|
1989
|
+
return { price: cheapest.price, compareAt: from ? null : cheapest.compareAt, from };
|
|
1990
|
+
}
|
|
1979
1991
|
|
|
1980
1992
|
/**
|
|
1981
1993
|
* The quantity a buyer may ask for — the stepper on a product page and on every cart line (commerce plan §3i). Whole
|
|
@@ -2222,6 +2234,8 @@ var ShopWord;
|
|
|
2222
2234
|
ShopWord["VatNote"] = "vatNote";
|
|
2223
2235
|
ShopWord["CheckOut"] = "checkOut";
|
|
2224
2236
|
ShopWord["KeepShopping"] = "keepShopping";
|
|
2237
|
+
/** A list card's price for a product whose options differ in price (vectoriox/iox-ui#142). */
|
|
2238
|
+
ShopWord["PriceFrom"] = "priceFrom";
|
|
2225
2239
|
})(ShopWord || (ShopWord = {}));
|
|
2226
2240
|
/** `{name}` / `{n}` / `{amount}` are filled by `shopWord`. */
|
|
2227
2241
|
const SHOP_WORDS = Object.freeze({
|
|
@@ -2246,6 +2260,7 @@ const SHOP_WORDS = Object.freeze({
|
|
|
2246
2260
|
[ShopWord.VatNote]: { en: 'Includes VAT. Delivery is chosen at checkout.', he: 'כולל מע״מ. המשלוח נבחר בקופה.' },
|
|
2247
2261
|
[ShopWord.CheckOut]: { en: 'Check out', he: 'לקופה' },
|
|
2248
2262
|
[ShopWord.KeepShopping]: { en: 'Keep shopping', he: 'המשך בקניות' },
|
|
2263
|
+
[ShopWord.PriceFrom]: { en: 'From {amount}', he: 'החל מ־{amount}' },
|
|
2249
2264
|
});
|
|
2250
2265
|
function shopWord(word, lang, fill = {}) {
|
|
2251
2266
|
const primary = String(lang ?? '').toLowerCase().split(/[-_]/)[0];
|
|
@@ -2253,6 +2268,42 @@ function shopWord(word, lang, fill = {}) {
|
|
|
2253
2268
|
const raw = primary === 'he' || primary === 'iw' ? label.he : label.en;
|
|
2254
2269
|
return raw.replace(/\{(\w+)\}/g, (all, key) => (key in fill ? String(fill[key]) : all));
|
|
2255
2270
|
}
|
|
2271
|
+
/** The stored price paths of a product a list binds (generation-core `SHOP_ROLES` `price` / `compareAt`). */
|
|
2272
|
+
var ProductPricePath;
|
|
2273
|
+
(function (ProductPricePath) {
|
|
2274
|
+
ProductPricePath["Price"] = "pricing.price";
|
|
2275
|
+
ProductPricePath["CompareAt"] = "pricing.compareat";
|
|
2276
|
+
})(ProductPricePath || (ProductPricePath = {}));
|
|
2277
|
+
/**
|
|
2278
|
+
* vectoriox/iox-ui#142 — a product's PRICE PATH read on a list card, for a product whose options carry the prices: the
|
|
2279
|
+
* `money` pipe asks it with the row the binding read and the path it read, so every list a studio already holds (bound
|
|
2280
|
+
* `pricing.price | money` to its row) shows "From ₪89.00" with no rebuild. `undefined` when it does not apply — not a
|
|
2281
|
+
* product with options, not a price path, no priced variant — and the pipe formats the stored value as before.
|
|
2282
|
+
* `currency` is used only when the product names none (the pipe's argument, else the studio's).
|
|
2283
|
+
*/
|
|
2284
|
+
function listPriceField(row, path, locale, currency) {
|
|
2285
|
+
if (path !== ProductPricePath.Price && path !== ProductPricePath.CompareAt)
|
|
2286
|
+
return undefined;
|
|
2287
|
+
if (!row || typeof row !== 'object' || Array.isArray(row))
|
|
2288
|
+
return undefined;
|
|
2289
|
+
const product = row;
|
|
2290
|
+
if (!product.productVariants)
|
|
2291
|
+
return undefined;
|
|
2292
|
+
const fallback = String(currency ?? '').trim().toUpperCase();
|
|
2293
|
+
const listed = productListPrice(product.currency || !isCurrencyCode(fallback) ? product : { ...product, currency: fallback });
|
|
2294
|
+
if (!listed)
|
|
2295
|
+
return undefined;
|
|
2296
|
+
const lang = locale || DEFAULT_MONEY_LOCALE;
|
|
2297
|
+
try {
|
|
2298
|
+
if (path === ProductPricePath.CompareAt)
|
|
2299
|
+
return listed.compareAt ? formatMoney(listed.compareAt, lang) : '';
|
|
2300
|
+
const amount = formatMoney(listed.price, lang);
|
|
2301
|
+
return listed.from ? shopWord(ShopWord.PriceFrom, lang, { amount }) : amount;
|
|
2302
|
+
}
|
|
2303
|
+
catch {
|
|
2304
|
+
return undefined;
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2256
2307
|
// ── the sample a canvas shows when no product is bound (commerce board 10, "Studio Kadar") ────────────────────────
|
|
2257
2308
|
/** Board 10's tall speckled vase: Glaze (Sand · Ash · Charcoal — Charcoal sold out) × Size (24 · 32 · 40 cm — 40 sold
|
|
2258
2309
|
* out), ₪240 against ₪280. Major units, as the storefront serves them. */
|
|
@@ -2989,5 +3040,5 @@ const REMINDER_SUBJECT_WORDS = Object.freeze({
|
|
|
2989
3040
|
* Generated bundle index. Do not edit.
|
|
2990
3041
|
*/
|
|
2991
3042
|
|
|
2992
|
-
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 };
|
|
3043
|
+
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 };
|
|
2993
3044
|
//# sourceMappingURL=vectoriox-iox-ui-commerce-core.mjs.map
|