@tanqory/theme-kit 0.1.0 → 2.0.0-alpha.5
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/LICENSE +21 -0
- package/README.md +98 -10
- package/dist/abi/canvas-live.d.ts +49 -0
- package/dist/abi/canvas-live.js +88 -0
- package/dist/abi/cart.d.ts +48 -0
- package/dist/abi/cart.js +321 -0
- package/dist/abi/convert.d.ts +192 -0
- package/dist/abi/convert.js +670 -0
- package/dist/abi/data-api.d.ts +15 -0
- package/dist/abi/data-api.js +198 -0
- package/dist/abi/jcs.d.ts +6 -0
- package/dist/abi/jcs.js +28 -0
- package/dist/abi/page-data.d.ts +209 -0
- package/dist/abi/page-data.js +583 -0
- package/dist/abi/page.d.ts +23 -0
- package/dist/abi/page.js +46 -0
- package/dist/abi/referrals.d.ts +23 -0
- package/dist/abi/referrals.js +89 -0
- package/dist/abi/rewards.d.ts +27 -0
- package/dist/abi/rewards.js +82 -0
- package/dist/abi/seo.d.ts +47 -0
- package/dist/abi/seo.js +68 -0
- package/dist/abi/shell.d.ts +22 -0
- package/dist/abi/shell.js +10 -0
- package/dist/abi/wire.d.ts +38 -0
- package/dist/abi/wire.js +84 -0
- package/dist/build.d.ts +113 -0
- package/dist/build.js +294 -0
- package/dist/client.d.ts +19 -0
- package/dist/client.js +76 -0
- package/dist/contract.d.ts +6 -0
- package/dist/contract.js +6 -0
- package/dist/headless/ai.d.ts +132 -0
- package/dist/headless/ai.js +99 -0
- package/dist/headless/hooks.d.ts +273 -0
- package/dist/headless/hooks.js +533 -0
- package/dist/headless/i18n.d.ts +13 -0
- package/dist/headless/i18n.js +45 -0
- package/dist/headless/index.d.ts +36 -0
- package/dist/headless/index.js +38 -0
- package/dist/headless/money.d.ts +25 -0
- package/dist/headless/money.js +61 -0
- package/dist/headless/page.d.ts +43 -0
- package/dist/headless/page.js +53 -0
- package/dist/headless/platform.d.ts +55 -0
- package/dist/headless/platform.js +77 -0
- package/dist/headless/primitives/cart.d.ts +90 -0
- package/dist/headless/primitives/cart.js +153 -0
- package/dist/headless/primitives/collection.d.ts +68 -0
- package/dist/headless/primitives/collection.js +80 -0
- package/dist/headless/primitives/product.d.ts +101 -0
- package/dist/headless/primitives/product.js +117 -0
- package/dist/headless/primitives/storefront.d.ts +106 -0
- package/dist/headless/primitives/storefront.js +186 -0
- package/dist/headless/primitives/util.d.ts +19 -0
- package/dist/headless/primitives/util.js +42 -0
- package/dist/headless/strings.d.ts +9 -0
- package/dist/headless/strings.js +186 -0
- package/dist/headless/structured-data.d.ts +31 -0
- package/dist/headless/structured-data.js +57 -0
- package/dist/headless/theme.d.ts +99 -0
- package/dist/headless/theme.js +54 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +18 -553
- package/dist/runtime/data/StoreProvider.d.ts +56 -0
- package/dist/runtime/data/StoreProvider.js +308 -0
- package/dist/runtime/data/handle.d.ts +14 -0
- package/dist/runtime/data/handle.js +16 -0
- package/dist/runtime/data/routes.d.ts +87 -0
- package/dist/runtime/data/routes.js +154 -0
- package/dist/runtime/data/to-ui.d.ts +258 -0
- package/dist/runtime/data/to-ui.js +820 -0
- package/dist/runtime/entries/register.d.ts +9 -0
- package/dist/runtime/entries/register.js +9 -0
- package/dist/runtime/entries/sections.d.ts +16 -0
- package/dist/runtime/entries/sections.js +19 -0
- package/dist/{types → runtime/kit}/SectionTree.d.ts +2 -1
- package/dist/runtime/kit/SectionTree.js +100 -0
- package/dist/runtime/kit/analytics.d.ts +63 -0
- package/dist/runtime/kit/analytics.js +233 -0
- package/dist/runtime/kit/cart.d.ts +186 -0
- package/dist/runtime/kit/cart.js +545 -0
- package/dist/{types → runtime/kit}/composition.d.ts +1 -1
- package/dist/runtime/kit/composition.js +3 -0
- package/dist/{types → runtime/kit}/config.d.ts +2 -2
- package/dist/runtime/kit/config.js +6 -0
- package/dist/runtime/kit/consent.d.ts +29 -0
- package/dist/runtime/kit/consent.js +159 -0
- package/dist/runtime/kit/contract/content.d.ts +164 -0
- package/dist/runtime/kit/contract/content.js +83 -0
- package/dist/runtime/kit/contract/field-types.d.ts +290 -0
- package/dist/runtime/kit/contract/field-types.js +129 -0
- package/dist/runtime/kit/contract/groups.d.ts +230 -0
- package/dist/runtime/kit/contract/groups.js +402 -0
- package/dist/runtime/kit/contract/index.d.ts +33 -0
- package/dist/runtime/kit/contract/index.js +33 -0
- package/dist/runtime/kit/contract/transform.d.ts +82 -0
- package/dist/runtime/kit/contract/transform.js +133 -0
- package/dist/runtime/kit/contract/validate.d.ts +67 -0
- package/dist/runtime/kit/contract/validate.js +388 -0
- package/dist/runtime/kit/data.d.ts +636 -0
- package/dist/runtime/kit/data.js +1117 -0
- package/dist/{types → runtime/kit}/defineSection.d.ts +1 -1
- package/dist/runtime/kit/defineSection.js +10 -0
- package/dist/{types → runtime/kit}/dynamic-source.d.ts +4 -4
- package/dist/runtime/kit/dynamic-source.js +143 -0
- package/dist/runtime/kit/index.d.ts +24 -0
- package/dist/runtime/kit/index.js +24 -0
- package/dist/{types → runtime/kit}/jsx-to-json.d.ts +1 -1
- package/dist/runtime/kit/jsx-to-json.js +28 -0
- package/dist/{types → runtime/kit}/mount.d.ts +25 -4
- package/dist/runtime/kit/mount.js +124 -0
- package/dist/{types → runtime/kit}/registry.d.ts +1 -1
- package/dist/runtime/kit/registry.js +12 -0
- package/dist/{types → runtime/kit}/ssg.d.ts +9 -3
- package/dist/runtime/kit/ssg.js +56 -0
- package/dist/runtime/kit/storefront.d.ts +566 -0
- package/dist/runtime/kit/storefront.js +723 -0
- package/dist/{types → runtime/kit}/theme-context.d.ts +8 -2
- package/dist/runtime/kit/theme-context.js +25 -0
- package/dist/runtime/kit/types.d.ts +142 -0
- package/dist/runtime/kit/types.js +1 -0
- package/dist/runtime/platform/TrackingPixels.d.ts +14 -0
- package/dist/runtime/platform/TrackingPixels.js +63 -0
- package/dist/runtime/platform/environment.d.ts +68 -0
- package/dist/runtime/platform/environment.js +85 -0
- package/dist/runtime/platform/locale.d.ts +27 -0
- package/dist/runtime/platform/locale.js +42 -0
- package/dist/runtime/platform/route-analytics.d.ts +15 -0
- package/dist/runtime/platform/route-analytics.js +72 -0
- package/dist/runtime/platform/safe-href.d.ts +25 -0
- package/dist/runtime/platform/safe-href.js +69 -0
- package/dist/runtime/platform/safe-values.d.ts +37 -0
- package/dist/runtime/platform/safe-values.js +140 -0
- package/dist/runtime/render/SectionRenderer.d.ts +4 -0
- package/dist/runtime/render/SectionRenderer.js +111 -0
- package/dist/runtime/render/listing-query.d.ts +47 -0
- package/dist/runtime/render/listing-query.js +114 -0
- package/dist/runtime/render/localized-copy.d.ts +86 -0
- package/dist/runtime/render/localized-copy.js +129 -0
- package/dist/runtime/render/product-listing.d.ts +11 -0
- package/dist/runtime/render/product-listing.js +240 -0
- package/dist/runtime/render/section-actions.d.ts +48 -0
- package/dist/runtime/render/section-actions.js +170 -0
- package/dist/runtime/render/starter.d.ts +11 -0
- package/dist/runtime/render/starter.js +81 -0
- package/dist/runtime/seo/head.d.ts +87 -0
- package/dist/runtime/seo/head.js +224 -0
- package/dist/runtime/seo/structured-data.d.ts +22 -0
- package/dist/runtime/seo/structured-data.js +115 -0
- package/dist/runtime/shell/PageShell.d.ts +18 -0
- package/dist/runtime/shell/PageShell.js +113 -0
- package/dist/runtime/shell/RuntimeBridge.d.ts +14 -0
- package/dist/runtime/shell/RuntimeBridge.js +85 -0
- package/dist/runtime/shell/overlay-state.d.ts +31 -0
- package/dist/runtime/shell/overlay-state.js +59 -0
- package/dist/runtime/shell/preview-mode.d.ts +2 -0
- package/dist/runtime/shell/preview-mode.js +11 -0
- package/dist/runtime/shell/spa-router.d.ts +14 -0
- package/dist/runtime/shell/spa-router.js +76 -0
- package/dist/runtime/shell/url-redirects.d.ts +6 -0
- package/dist/runtime/shell/url-redirects.js +37 -0
- package/dist/runtime/slots.d.ts +74 -0
- package/dist/runtime/slots.js +16 -0
- package/dist/runtime.d.ts +34 -0
- package/dist/runtime.js +40 -0
- package/dist/sdk/index.d.ts +24 -0
- package/dist/sdk/index.js +24 -0
- package/dist/sdk/referrals.d.ts +62 -0
- package/dist/sdk/referrals.js +20 -0
- package/dist/sdk/rewards.d.ts +85 -0
- package/dist/sdk/rewards.js +29 -0
- package/dist/sdk/runtime-context.d.ts +135 -0
- package/dist/sdk/runtime-context.js +73 -0
- package/dist/sdk/schema.d.ts +197 -0
- package/dist/sdk/schema.js +121 -0
- package/dist/sdk/server-render.d.ts +8 -0
- package/dist/sdk/server-render.js +12 -0
- package/dist/sdk/store-lookup.d.ts +27 -0
- package/dist/sdk/store-lookup.js +29 -0
- package/dist/sdk/store.d.ts +115 -0
- package/dist/sdk/store.js +1 -0
- package/dist/sdk/sx.d.ts +40 -0
- package/dist/sdk/sx.js +112 -0
- package/dist/sdk/theme.d.ts +152 -0
- package/dist/sdk/theme.js +10 -0
- package/dist/sdk/types.d.ts +470 -0
- package/dist/sdk/types.js +7 -0
- package/dist/server.d.ts +65 -0
- package/dist/server.js +370 -0
- package/docs/headless-api.md +220 -0
- package/package.json +77 -23
- package/dist/index.js.map +0 -1
- package/dist/ssg-BZ5FYTw7.js +0 -1802
- package/dist/ssg-BZ5FYTw7.js.map +0 -1
- package/dist/ssg.js +0 -8
- package/dist/ssg.js.map +0 -1
- package/dist/types/cart.d.ts +0 -86
- package/dist/types/data.d.ts +0 -357
- package/dist/types/editor.d.ts +0 -5
- package/dist/types/index.d.ts +0 -20
- package/dist/types/preview-bridge.d.ts +0 -9
- package/dist/types/storefront.d.ts +0 -333
- package/dist/types/types.d.ts +0 -44
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Theme ABI v2 domain records → the shapes Nova's sections already read (`lib/tanqory/data.tsx`,
|
|
3
|
+
* `lib/tanqory/storefront.ts`). Pure functions, no I/O, no module state: the same code maps a
|
|
4
|
+
* server `ctx.data` result and a browser `/_tq/data/*` answer, so SSR and hydration agree.
|
|
5
|
+
*
|
|
6
|
+
* Where the ABI carries less than Nova's v1 data layer did (no cookie-banner config, no digital
|
|
7
|
+
* wallets), the Nova field is left absent and the section's own "not
|
|
8
|
+
* available" branch renders — never a fixture, never a guess. `Shop.socialLinks` and
|
|
9
|
+
* `paymentSettings.acceptedCardBrands` (storefront-query rev 2.20) map when the store has them.
|
|
10
|
+
*
|
|
11
|
+
* Opt-in ABI members (storefront-query rev 2.19): `Collection.filters` (facets) and
|
|
12
|
+
* `Product.collections` (the breadcrumb's collection) map when the platform sent them.
|
|
13
|
+
* Stock levels (storefront-query rev 2.21, capability `data:inventory`): `ProductVariant.quantityAvailable`
|
|
14
|
+
* (0–999, 999 = "999 or more") is present only when the merchant shows stock levels and the variant is
|
|
15
|
+
* tracked and stops selling at zero. It maps to `inventoryQuantity` under `DENY`; absent stays absent.
|
|
16
|
+
* See MISMATCHES.md for each field that has no ABI source.
|
|
17
|
+
*/
|
|
18
|
+
import type { Filter as AbiFilter, Article as AbiArticle, Blog as AbiBlog, Cart as AbiCart, Collection as AbiCollection, Image as AbiImage, Menu as AbiMenu, Page as AbiPage, Policy as AbiPolicy, Product as AbiProduct, Shop as AbiShop, SearchResult as AbiSearchResult } from '@tanqory/theme-abi';
|
|
19
|
+
import type { Collection, ImageRef, Page, Product, ProductMedia } from '../runtime/kit/data.js';
|
|
20
|
+
import type { Article, Blog, Filter, Menu, SearchResults, Shop, ShopAddress, ShopLocation, ShopPolicy } from '../runtime/kit/storefront.js';
|
|
21
|
+
export declare function image(i: AbiImage | null | undefined): ImageRef | null;
|
|
22
|
+
/** Plain text of an HTML body, for the surfaces that show text only (cards, meta description). */
|
|
23
|
+
export declare function plainText(html: string | null | undefined): string;
|
|
24
|
+
export declare function product(p: AbiProduct): Product;
|
|
25
|
+
/**
|
|
26
|
+
* `Product.media` (storefront-query rev 2.34, theme-abi alpha.17, QA NEW-PROD-2): the gallery in the merchant's order
|
|
27
|
+
* with each HOSTED video. The platform sends it only when the product has a video; images-only products have none and
|
|
28
|
+
* the gallery stays `images`. An item that is not whole (an image without a URL, a video without an https mp4 / webm /
|
|
29
|
+
* quicktime source) is left out; no video left ⇒ no `media`. Read as unknown: the kit builds against older ABI types.
|
|
30
|
+
*/
|
|
31
|
+
export declare function productMedia(raw: unknown): {
|
|
32
|
+
media?: ProductMedia[];
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* `Product.automaticDiscounts` (storefront-query rev 2.31, QA D8): the store's unconditional automatic discounts on
|
|
36
|
+
* this product. Each entry must be whole (a title, a known type, a positive value — a percentage at most 100 — and
|
|
37
|
+
* ISO dates with the end after the start) or it is left out: a guessed discount is worse than none.
|
|
38
|
+
*/
|
|
39
|
+
export declare function productAutomaticDiscounts(raw: unknown): {
|
|
40
|
+
automaticDiscounts?: Array<{
|
|
41
|
+
id: string;
|
|
42
|
+
title: string;
|
|
43
|
+
valueType: 'percentage' | 'fixed';
|
|
44
|
+
value: number;
|
|
45
|
+
startsAt: string;
|
|
46
|
+
endsAt?: string;
|
|
47
|
+
}>;
|
|
48
|
+
};
|
|
49
|
+
export declare function filters(list: readonly AbiFilter[] | undefined): Filter[];
|
|
50
|
+
/** The listing's filter objects (`{productVendor}`, `{available}`, `{price: {min, max}}`, `{variantOption: {name, value}}`, …) → ABI `filters`. Unknown shapes are dropped. */
|
|
51
|
+
export declare function abiFilters(list: readonly Record<string, unknown>[] | undefined): {
|
|
52
|
+
key: string;
|
|
53
|
+
value: string;
|
|
54
|
+
}[];
|
|
55
|
+
export declare function collection(c: AbiCollection): Collection;
|
|
56
|
+
export declare function page(p: AbiPage): Page;
|
|
57
|
+
export declare function article(a: AbiArticle): Article;
|
|
58
|
+
export declare function blog(b: AbiBlog): Blog;
|
|
59
|
+
export declare function menu(m: AbiMenu): Menu;
|
|
60
|
+
export declare function policy(p: AbiPolicy): ShopPolicy;
|
|
61
|
+
export declare function shop(s: AbiShop, policies?: readonly AbiPolicy[], country?: string): Shop;
|
|
62
|
+
/**
|
|
63
|
+
* rev 2.34 `PostalAddress` (`Shop.contact.address`, `ShopLocation.address`) → each member that is a non-empty string
|
|
64
|
+
* of at most 255 characters with no control character; `countryCode` only when two upper-case letters. Null when none.
|
|
65
|
+
*/
|
|
66
|
+
export declare function shopAddress(raw: unknown): ShopAddress | null;
|
|
67
|
+
/** rev 2.34 `Shop.locations` → whole entries only (an id, a name, an address), in the platform's order, at most 50. */
|
|
68
|
+
export declare function shopLocations(raw: unknown): ShopLocation[];
|
|
69
|
+
/** One `{{amount…}}` token (the merchant's currency-format patterns). */
|
|
70
|
+
export declare const MONEY_FORMAT_TOKEN: RegExp;
|
|
71
|
+
/**
|
|
72
|
+
* rev 2.31 `Shop.moneyFormat` → the patterns a theme may format base-currency amounts with, each only when it is a
|
|
73
|
+
* string of at most 50 characters holding an amount token. Null when neither is usable: a pattern the theme cannot
|
|
74
|
+
* read must never replace the price.
|
|
75
|
+
*/
|
|
76
|
+
export declare function shopMoneyFormat(raw: unknown): {
|
|
77
|
+
withCurrency?: string;
|
|
78
|
+
withoutCurrency?: string;
|
|
79
|
+
} | null;
|
|
80
|
+
/** D-7 `Shop.contact` → the shop's public email / phone, each only when set. */
|
|
81
|
+
export declare function shopContact(raw: unknown): {
|
|
82
|
+
email?: string;
|
|
83
|
+
phone?: string;
|
|
84
|
+
};
|
|
85
|
+
/** D-2 `Shop.cookieBanner` → the banner config Nova renders. Null when absent or not an object (old data = today's banner). */
|
|
86
|
+
export declare function cookieBanner(raw: unknown): NonNullable<Shop['consentBanner']> | null;
|
|
87
|
+
/** D-6 `Shop.policyLinks` → the store's published policies (title + site path). Null when absent. */
|
|
88
|
+
export declare function policyLinks(raw: unknown): ShopPolicy[] | null;
|
|
89
|
+
/**
|
|
90
|
+
* D-5 `Shop.freeShipping` → the lowest "free over" threshold for the shopper's country, or null when the
|
|
91
|
+
* country's zone has none (or the platform sent nothing). The amount is already in the market's currency.
|
|
92
|
+
*/
|
|
93
|
+
export declare function freeShippingFor(raw: unknown, country: string): {
|
|
94
|
+
amount: string;
|
|
95
|
+
currencyCode: string;
|
|
96
|
+
} | null;
|
|
97
|
+
/**
|
|
98
|
+
* `Shop.seo` (the home page's title, meta description and social image — an optional ABI field the
|
|
99
|
+
* platform may not send yet), read defensively: trimmed non-empty text, an absolute `https:` image
|
|
100
|
+
* URL, positive integer sizes. Anything else is "not set". Null when nothing is set.
|
|
101
|
+
*/
|
|
102
|
+
export declare function shopSeo(raw: unknown): NonNullable<Shop['seo']> | null;
|
|
103
|
+
/**
|
|
104
|
+
* `Shop.socialLinks` → Nova's: only absolute `https:` URLs with a network slug, one link per network
|
|
105
|
+
* (the first wins). Anything else is dropped — a footer link must never point somewhere unsafe.
|
|
106
|
+
*/
|
|
107
|
+
export declare function socialLinks(list: AbiShop['socialLinks']): {
|
|
108
|
+
platform: string;
|
|
109
|
+
url: string;
|
|
110
|
+
}[];
|
|
111
|
+
export declare function searchResults(r: AbiSearchResult): SearchResults;
|
|
112
|
+
/**
|
|
113
|
+
* The cart-level amount taken off between the subtotal and the total.
|
|
114
|
+
*
|
|
115
|
+
* The ABI cart has no discount allocations, only `cost.subtotalAmount`, `cost.totalTaxAmount` and
|
|
116
|
+
* `cost.totalAmount`. Before checkout those are related by
|
|
117
|
+
* `total = subtotal − cart discount + tax`, so the discount is what reconciles the three figures
|
|
118
|
+
* the summary prints. Without it the cart showed "Subtotal $64.00 · Tax $0.00 · Estimated total
|
|
119
|
+
* $60.80" with nothing explaining the $3.20.
|
|
120
|
+
*
|
|
121
|
+
* Computed in minor units at the subtotal's own precision (never `toFixed(2)` — JPY has none, KWD
|
|
122
|
+
* three). Null when nothing was taken off, when the figures are not one currency, or when an
|
|
123
|
+
* amount is not a number: a guessed discount is worse than none.
|
|
124
|
+
*/
|
|
125
|
+
export declare function cartDiscount(c: AbiCart): {
|
|
126
|
+
amount: string;
|
|
127
|
+
currencyCode: string;
|
|
128
|
+
} | null;
|
|
129
|
+
/** The ABI cart → the lines/totals CartProvider renders (lib/tanqory/cart.tsx CartState fields). */
|
|
130
|
+
export declare function cartState(c: AbiCart): {
|
|
131
|
+
discountAllocations?: Array<{
|
|
132
|
+
title: string | null;
|
|
133
|
+
code: string | null;
|
|
134
|
+
amount: {
|
|
135
|
+
amount: string;
|
|
136
|
+
currencyCode: string;
|
|
137
|
+
};
|
|
138
|
+
}>;
|
|
139
|
+
id: string;
|
|
140
|
+
version: number;
|
|
141
|
+
lines: {
|
|
142
|
+
lineSubtotal: import("@tanqory/theme-abi").Money;
|
|
143
|
+
productHandle: string;
|
|
144
|
+
attributes: {
|
|
145
|
+
key: string;
|
|
146
|
+
value: string;
|
|
147
|
+
}[];
|
|
148
|
+
availableForSale?: boolean | undefined;
|
|
149
|
+
compareAtPrice?: import("@tanqory/theme-abi").Money | undefined;
|
|
150
|
+
image: ImageRef | null;
|
|
151
|
+
price: import("@tanqory/theme-abi").Money;
|
|
152
|
+
selectedOptions: {
|
|
153
|
+
name: string;
|
|
154
|
+
value: string;
|
|
155
|
+
}[];
|
|
156
|
+
variantTitle?: string | undefined;
|
|
157
|
+
id: string;
|
|
158
|
+
variantId: string;
|
|
159
|
+
quantity: number;
|
|
160
|
+
title: string;
|
|
161
|
+
}[];
|
|
162
|
+
subtotal: import("@tanqory/theme-abi").Money;
|
|
163
|
+
total: import("@tanqory/theme-abi").Money;
|
|
164
|
+
tax: import("@tanqory/theme-abi").Money | null;
|
|
165
|
+
note: string | null;
|
|
166
|
+
totalQuantity: number;
|
|
167
|
+
checkoutUrl: string;
|
|
168
|
+
discountCodes: {
|
|
169
|
+
code: string;
|
|
170
|
+
applicable: boolean;
|
|
171
|
+
}[];
|
|
172
|
+
discountAmount: {
|
|
173
|
+
amount: string;
|
|
174
|
+
currencyCode: string;
|
|
175
|
+
} | null;
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* The cart's order-level discounts by name, when the host sends them beside the ABI cart (storefront-edge reads
|
|
179
|
+
* store-api's `Cart.discountAllocations`; not yet in the Theme ABI `Cart`, so read as unknown). Each entry needs a
|
|
180
|
+
* name (a title or a code) and an amount in the cart's currency; anything else drops the whole list rather than
|
|
181
|
+
* show a partial one.
|
|
182
|
+
*/
|
|
183
|
+
export declare function cartDiscountAllocations(c: AbiCart): {
|
|
184
|
+
discountAllocations?: Array<{
|
|
185
|
+
title: string | null;
|
|
186
|
+
code: string | null;
|
|
187
|
+
amount: {
|
|
188
|
+
amount: string;
|
|
189
|
+
currencyCode: string;
|
|
190
|
+
};
|
|
191
|
+
}>;
|
|
192
|
+
};
|