@thorprovider/blocks 0.1.2 → 1.0.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/CHANGELOG.md +107 -0
- package/README.md +108 -23
- package/docs/standards/data-contracts.md +13 -2
- package/package.json +26 -10
- package/scripts/fix-esm-extensions.mjs +40 -0
- package/src/blocks/e-commerce/navigation/back-to-top.test.tsx +27 -0
- package/src/blocks/e-commerce/navigation/back-to-top.tsx +71 -0
- package/src/blocks/e-commerce/navigation/breadcrumb.test.tsx +174 -0
- package/src/blocks/e-commerce/navigation/breadcrumb.tsx +130 -0
- package/src/blocks/e-commerce/navigation/mobile-bottom-nav.test.tsx +74 -0
- package/src/blocks/e-commerce/navigation/mobile-bottom-nav.tsx +78 -0
- package/src/blocks/e-commerce/navigation/skip-to-content.test.tsx +35 -0
- package/src/blocks/e-commerce/navigation/skip-to-content.tsx +37 -0
- package/src/blocks/e-commerce/product-categories/category-card-grid.test.tsx +122 -0
- package/src/blocks/e-commerce/product-categories/category-card.test.tsx +68 -0
- package/src/blocks/e-commerce/product-categories/category-card.tsx +172 -0
- package/src/blocks/e-commerce/product-categories/category-grid.test.tsx +67 -0
- package/src/blocks/e-commerce/product-categories/category-shared.tsx +109 -0
- package/src/blocks/e-commerce/product-categories/product-category-grid.tsx +170 -0
- package/src/blocks/e-commerce/product-categories/product-category.test.tsx +266 -0
- package/src/blocks/e-commerce/product-categories/product-category.tsx +462 -0
- package/src/blocks/e-commerce/product-list/product-card.test.tsx +263 -0
- package/src/blocks/e-commerce/product-list/product-card.tsx +424 -0
- package/src/blocks/e-commerce/product-list/product-grid.test.tsx +162 -0
- package/src/blocks/e-commerce/product-list/product-grid.tsx +114 -0
- package/src/blocks/e-commerce/product-list/product-showcase-1.test.tsx +78 -0
- package/src/blocks/e-commerce/product-list/product-showcase-1.tsx +277 -0
- package/src/blocks/e-commerce/product-overview/product-overview-gallery.tsx +71 -0
- package/src/blocks/e-commerce/product-overview/{product-overview-5-lightbox-tab.tsx → product-overview-lightbox-tab.tsx} +35 -23
- package/src/blocks/e-commerce/product-overview/{product-overview-5-reviews-tab.tsx → product-overview-reviews-tab.tsx} +40 -17
- package/src/blocks/e-commerce/product-overview/{product-overview-5-tabs.tsx → product-overview-tabs.tsx} +8 -7
- package/src/blocks/e-commerce/product-overview/product-overview.test.tsx +283 -0
- package/src/blocks/e-commerce/product-overview/product-overview.tsx +1186 -0
- package/src/blocks/e-commerce/reviews/review-rating-2.tsx +5 -6
- package/src/blocks/e-commerce/shopping-carts/shopping-cart.test.tsx +399 -0
- package/src/blocks/e-commerce/shopping-carts/{shopping-cart-4.tsx → shopping-cart.tsx} +204 -109
- package/src/blocks/e-commerce/storefront-hero/storefront-hero.test.tsx +412 -0
- package/src/blocks/e-commerce/storefront-hero/storefront-hero.tsx +1283 -0
- package/src/blocks/marketing/features/feature.test.tsx +153 -0
- package/src/blocks/marketing/features/feature.tsx +195 -0
- package/src/blocks/marketing/navbars/navbar-4-account-menu.test.tsx +56 -0
- package/src/blocks/marketing/navbars/navbar-4-account-menu.tsx +30 -14
- package/src/blocks/marketing/navbars/navbar-4-cart-sheet.test.tsx +150 -0
- package/src/blocks/marketing/navbars/navbar-4-cart-sheet.tsx +102 -9
- package/src/blocks/marketing/navbars/navbar-4.test.tsx +154 -2
- package/src/blocks/marketing/navbars/navbar-4.tsx +152 -32
- package/src/index.ts +93 -46
- package/src/lib/contracts-curated.test.ts +42 -24
- package/src/lib/contracts.test.ts +143 -2
- package/src/lib/contracts.ts +395 -13
- package/src/ui/button-group.tsx +1 -1
- package/src/ui/carousel.tsx +1 -1
- package/src/ui/dialog.tsx +1 -1
- package/src/ui/field.tsx +2 -2
- package/src/ui/input-group.tsx +3 -3
- package/src/ui/pagination.tsx +1 -1
- package/src/ui/sidebar.tsx +7 -7
- package/src/ui/toggle-group.tsx +1 -1
- package/tsconfig.build.json +12 -0
- package/tsup.config.ts +11 -7
- package/.turbo/turbo-build.log +0 -24
- package/.turbo/turbo-test.log +0 -37
- package/.turbo/turbo-type-check.log +0 -0
- package/dist/.tsbuildinfo +0 -1
- package/dist/contracts.d.mts +0 -1584
- package/dist/contracts.d.ts +0 -1584
- package/dist/contracts.js +0 -390
- package/dist/contracts.js.map +0 -1
- package/dist/contracts.mjs +0 -334
- package/dist/contracts.mjs.map +0 -1
- package/dist/index.d.mts +0 -2786
- package/dist/index.d.ts +0 -2786
- package/dist/index.js +0 -17139
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -17059
- package/dist/index.mjs.map +0 -1
- package/src/blocks/e-commerce/product-categories/avatar-group.tsx +0 -86
- package/src/blocks/e-commerce/product-categories/product-category-1.tsx +0 -126
- package/src/blocks/e-commerce/product-categories/product-category-2.test.tsx +0 -51
- package/src/blocks/e-commerce/product-categories/product-category-2.tsx +0 -120
- package/src/blocks/e-commerce/product-categories/product-category-4.tsx +0 -129
- package/src/blocks/e-commerce/product-categories/product-category-5.tsx +0 -218
- package/src/blocks/e-commerce/product-list/product-card-1.tsx +0 -131
- package/src/blocks/e-commerce/product-list/product-card-2.tsx +0 -71
- package/src/blocks/e-commerce/product-list/product-card-3-reaction-toggle.tsx +0 -166
- package/src/blocks/e-commerce/product-list/product-card-3.tsx +0 -215
- package/src/blocks/e-commerce/product-list/product-card-5-checkbox-check.tsx +0 -98
- package/src/blocks/e-commerce/product-list/product-card-5-reaction-toggle.tsx +0 -171
- package/src/blocks/e-commerce/product-list/product-card-5.tsx +0 -367
- package/src/blocks/e-commerce/product-overview/product-overview-1.test.tsx +0 -182
- package/src/blocks/e-commerce/product-overview/product-overview-1.tsx +0 -370
- package/src/blocks/e-commerce/product-overview/product-overview-2.tsx +0 -272
- package/src/blocks/e-commerce/product-overview/product-overview-5-gallery.tsx +0 -59
- package/src/blocks/e-commerce/product-overview/product-overview-5.tsx +0 -274
- package/src/blocks/e-commerce/shopping-carts/shopping-cart-1-spinning-counter.tsx +0 -142
- package/src/blocks/e-commerce/shopping-carts/shopping-cart-1.tsx +0 -291
- package/src/blocks/e-commerce/shopping-carts/shopping-cart-2-item-row.tsx +0 -110
- package/src/blocks/e-commerce/shopping-carts/shopping-cart-2-recommendations.tsx +0 -51
- package/src/blocks/e-commerce/shopping-carts/shopping-cart-2-spinning-counter.tsx +0 -146
- package/src/blocks/e-commerce/shopping-carts/shopping-cart-2.tsx +0 -295
- package/src/blocks/e-commerce/shopping-carts/shopping-cart-3-spinning-counter.tsx +0 -142
- package/src/blocks/e-commerce/shopping-carts/shopping-cart-3.tsx +0 -342
- package/src/blocks/e-commerce/shopping-carts/shopping-cart-4-spinning-counter.tsx +0 -146
- package/src/blocks/e-commerce/shopping-carts/shopping-cart-4.test.tsx +0 -137
- package/src/blocks/e-commerce/storefront-hero/storefront-hero-1.test.tsx +0 -65
- package/src/blocks/e-commerce/storefront-hero/storefront-hero-1.tsx +0 -263
- package/src/blocks/e-commerce/storefront-hero/storefront-hero-2.tsx +0 -283
- package/src/blocks/e-commerce/storefront-hero/storefront-hero-5.tsx +0 -318
- package/src/blocks/e-commerce/storefront-hero/storefront-hero-6.tsx +0 -205
- package/src/blocks/marketing/features/feature-1.tsx +0 -97
- package/src/blocks/marketing/features/feature-2.tsx +0 -82
package/dist/contracts.js
DELETED
|
@@ -1,390 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/lib/contracts.ts
|
|
21
|
-
var contracts_exports = {};
|
|
22
|
-
__export(contracts_exports, {
|
|
23
|
-
PRODUCT_IMAGE_FALLBACK: () => PRODUCT_IMAGE_FALLBACK,
|
|
24
|
-
accountMenuItemSchema: () => accountMenuItemSchema,
|
|
25
|
-
brandAccentSchema: () => brandAccentSchema,
|
|
26
|
-
buttonPropsSchema: () => buttonPropsSchema,
|
|
27
|
-
cardProductSchema: () => cardProductSchema,
|
|
28
|
-
cartItemSchema: () => cartItemSchema,
|
|
29
|
-
cartTotalsSchema: () => cartTotalsSchema,
|
|
30
|
-
ctaSchema: () => ctaSchema,
|
|
31
|
-
ctaSection1PropsSchema: () => ctaSection1PropsSchema,
|
|
32
|
-
faqBlock1PropsSchema: () => faqBlock1PropsSchema,
|
|
33
|
-
faqItemSchema: () => faqItemSchema,
|
|
34
|
-
formatMoney: () => formatMoney,
|
|
35
|
-
heroImageSchema: () => heroImageSchema,
|
|
36
|
-
isAvailableMoney: () => isAvailableMoney,
|
|
37
|
-
isCompleteFiniteDecimal: () => isCompleteFiniteDecimal,
|
|
38
|
-
logoAccentSchema: () => logoAccentSchema,
|
|
39
|
-
moneySchema: () => moneySchema,
|
|
40
|
-
navCartItemSchema: () => navCartItemSchema,
|
|
41
|
-
navbar4PropsSchema: () => navbar4PropsSchema,
|
|
42
|
-
paymentMethodSchema: () => paymentMethodSchema,
|
|
43
|
-
productCard1PropsSchema: () => productCard1PropsSchema,
|
|
44
|
-
productDetailProductSchema: () => productDetailProductSchema,
|
|
45
|
-
productDetailVariantSchema: () => productDetailVariantSchema,
|
|
46
|
-
productOverview1PropsSchema: () => productOverview1PropsSchema,
|
|
47
|
-
promotionSchema: () => promotionSchema,
|
|
48
|
-
recentlyViewedItemSchema: () => recentlyViewedItemSchema,
|
|
49
|
-
resolveAbsoluteQuantity: () => resolveAbsoluteQuantity,
|
|
50
|
-
shoppingCart4PropsSchema: () => shoppingCart4PropsSchema,
|
|
51
|
-
storeCategorySchema: () => storeCategorySchema,
|
|
52
|
-
storeContainer1PropsSchema: () => storeContainer1PropsSchema,
|
|
53
|
-
storeUserSchema: () => storeUserSchema,
|
|
54
|
-
utilityLinkSchema: () => utilityLinkSchema
|
|
55
|
-
});
|
|
56
|
-
module.exports = __toCommonJS(contracts_exports);
|
|
57
|
-
var import_zod = require("zod");
|
|
58
|
-
|
|
59
|
-
// src/lib/money.ts
|
|
60
|
-
var COMPLETE_FINITE_DECIMAL = /^-?(?:\d+)(?:\.\d+)?$/;
|
|
61
|
-
function isCompleteFiniteDecimal(value) {
|
|
62
|
-
if (typeof value !== "string") return false;
|
|
63
|
-
const trimmed = value.trim();
|
|
64
|
-
if (trimmed === "" || !COMPLETE_FINITE_DECIMAL.test(trimmed)) return false;
|
|
65
|
-
return Number.isFinite(Number(trimmed));
|
|
66
|
-
}
|
|
67
|
-
function isAvailableMoney(money) {
|
|
68
|
-
return !!money && typeof money.currencyCode === "string" && money.currencyCode.trim() !== "" && isCompleteFiniteDecimal(money.amount);
|
|
69
|
-
}
|
|
70
|
-
function formatMoney(money, formatter) {
|
|
71
|
-
if (!isAvailableMoney(money)) return null;
|
|
72
|
-
if (formatter) return formatter(money);
|
|
73
|
-
return new Intl.NumberFormat(void 0, {
|
|
74
|
-
style: "currency",
|
|
75
|
-
currency: money.currencyCode
|
|
76
|
-
}).format(Number(money.amount));
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// src/lib/cart.ts
|
|
80
|
-
function resolveAbsoluteQuantity(currentQuantity, delta) {
|
|
81
|
-
return Math.max(1, currentQuantity + delta);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// src/lib/contracts.ts
|
|
85
|
-
var PRODUCT_IMAGE_FALLBACK = "data:image/svg+xml;charset=utf-8," + encodeURIComponent(
|
|
86
|
-
`<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><rect width='100%' height='100%' fill='#e2e8f0'/><g fill='none' stroke='#94a3b8' stroke-width='12' stroke-linecap='round'><path d='M150 300h300M300 150v300'/><path d='M220 230h50M220 300h50M220 370h50'/><path d='M330 230h50M330 300h50M330 370h50'/></g></svg>`
|
|
87
|
-
);
|
|
88
|
-
var moneySchema = import_zod.z.object({
|
|
89
|
-
amount: import_zod.z.string(),
|
|
90
|
-
currencyCode: import_zod.z.string()
|
|
91
|
-
});
|
|
92
|
-
var imageSchema = import_zod.z.object({
|
|
93
|
-
id: import_zod.z.string().optional(),
|
|
94
|
-
url: import_zod.z.string(),
|
|
95
|
-
altText: import_zod.z.string(),
|
|
96
|
-
width: import_zod.z.number().optional(),
|
|
97
|
-
height: import_zod.z.number().optional()
|
|
98
|
-
});
|
|
99
|
-
var selectedOptionSchema = import_zod.z.object({
|
|
100
|
-
name: import_zod.z.string(),
|
|
101
|
-
value: import_zod.z.string()
|
|
102
|
-
});
|
|
103
|
-
var productDetailVariantSchema = import_zod.z.object({
|
|
104
|
-
id: import_zod.z.string(),
|
|
105
|
-
title: import_zod.z.string(),
|
|
106
|
-
sku: import_zod.z.string().optional(),
|
|
107
|
-
availableForSale: import_zod.z.boolean(),
|
|
108
|
-
selectedOptions: import_zod.z.array(selectedOptionSchema),
|
|
109
|
-
/** Omit or null when the backend has no resolved price (purchase disabled). */
|
|
110
|
-
price: moneySchema.nullish(),
|
|
111
|
-
compareAtPrice: moneySchema.optional(),
|
|
112
|
-
image: imageSchema.optional()
|
|
113
|
-
});
|
|
114
|
-
var productDetailProductSchema = import_zod.z.object({
|
|
115
|
-
id: import_zod.z.string(),
|
|
116
|
-
handle: import_zod.z.string().optional(),
|
|
117
|
-
title: import_zod.z.string(),
|
|
118
|
-
description: import_zod.z.string().optional(),
|
|
119
|
-
vendor: import_zod.z.string().optional(),
|
|
120
|
-
options: import_zod.z.array(import_zod.z.object({ id: import_zod.z.string(), name: import_zod.z.string(), values: import_zod.z.array(import_zod.z.string()) })),
|
|
121
|
-
variants: import_zod.z.array(productDetailVariantSchema),
|
|
122
|
-
images: import_zod.z.array(imageSchema),
|
|
123
|
-
featuredImage: imageSchema.optional()
|
|
124
|
-
});
|
|
125
|
-
var productOverview1PropsSchema = import_zod.z.object({
|
|
126
|
-
product: productDetailProductSchema,
|
|
127
|
-
selectedVariantId: import_zod.z.string().nullable().optional(),
|
|
128
|
-
quantity: import_zod.z.number().optional(),
|
|
129
|
-
rating: import_zod.z.object({ value: import_zod.z.number(), count: import_zod.z.number() }).optional(),
|
|
130
|
-
deliveryEstimate: import_zod.z.string().optional(),
|
|
131
|
-
shipping: moneySchema.optional(),
|
|
132
|
-
sizesLabel: import_zod.z.string().optional(),
|
|
133
|
-
variantLabel: import_zod.z.string().optional(),
|
|
134
|
-
reviewsLabel: import_zod.z.string().optional(),
|
|
135
|
-
addToCartLabel: import_zod.z.string().optional(),
|
|
136
|
-
outOfStockLabel: import_zod.z.string().optional(),
|
|
137
|
-
unavailablePriceLabel: import_zod.z.string().optional(),
|
|
138
|
-
selectVariantLabel: import_zod.z.string().optional(),
|
|
139
|
-
quantityLabel: import_zod.z.string().optional(),
|
|
140
|
-
deliveryEstimateLabel: import_zod.z.string().optional(),
|
|
141
|
-
shippingLabel: import_zod.z.string().optional()
|
|
142
|
-
});
|
|
143
|
-
var cardProductSchema = import_zod.z.object({
|
|
144
|
-
id: import_zod.z.union([import_zod.z.string(), import_zod.z.number()]),
|
|
145
|
-
title: import_zod.z.string(),
|
|
146
|
-
price: import_zod.z.number(),
|
|
147
|
-
originalPrice: import_zod.z.number().optional(),
|
|
148
|
-
image: import_zod.z.string(),
|
|
149
|
-
badge: import_zod.z.string().optional()
|
|
150
|
-
});
|
|
151
|
-
var cartItemSchema = import_zod.z.object({
|
|
152
|
-
id: import_zod.z.string(),
|
|
153
|
-
name: import_zod.z.string(),
|
|
154
|
-
price: import_zod.z.number(),
|
|
155
|
-
quantity: import_zod.z.number().int().min(0),
|
|
156
|
-
/** Optional; absent images are omitted, never serialized as `""`. */
|
|
157
|
-
image: import_zod.z.string().optional(),
|
|
158
|
-
variant: import_zod.z.string().optional(),
|
|
159
|
-
/** Canonical backend per-unit price, preferred for display when present. */
|
|
160
|
-
unitPrice: moneySchema.optional(),
|
|
161
|
-
/** Canonical backend line total, preferred over `price * quantity`. */
|
|
162
|
-
lineTotal: moneySchema.optional()
|
|
163
|
-
});
|
|
164
|
-
var cartTotalsSchema = import_zod.z.object({
|
|
165
|
-
subtotal: moneySchema,
|
|
166
|
-
discount: moneySchema.optional(),
|
|
167
|
-
tax: moneySchema.optional(),
|
|
168
|
-
shipping: moneySchema.optional(),
|
|
169
|
-
total: moneySchema
|
|
170
|
-
});
|
|
171
|
-
var recentlyViewedItemSchema = import_zod.z.object({
|
|
172
|
-
id: import_zod.z.string(),
|
|
173
|
-
name: import_zod.z.string(),
|
|
174
|
-
price: import_zod.z.number(),
|
|
175
|
-
image: import_zod.z.string()
|
|
176
|
-
});
|
|
177
|
-
var promotionSchema = import_zod.z.object({
|
|
178
|
-
threshold: import_zod.z.number(),
|
|
179
|
-
reward: import_zod.z.string(),
|
|
180
|
-
icon: import_zod.z.string().default("gift")
|
|
181
|
-
});
|
|
182
|
-
var storeCategoryBase = {
|
|
183
|
-
label: import_zod.z.string(),
|
|
184
|
-
href: import_zod.z.string(),
|
|
185
|
-
emphasis: import_zod.z.boolean().optional()
|
|
186
|
-
};
|
|
187
|
-
var storeCategorySchema = import_zod.z.lazy(
|
|
188
|
-
() => import_zod.z.object({
|
|
189
|
-
...storeCategoryBase,
|
|
190
|
-
children: import_zod.z.array(storeCategorySchema).optional()
|
|
191
|
-
})
|
|
192
|
-
);
|
|
193
|
-
var utilityLinkSchema = import_zod.z.object({
|
|
194
|
-
label: import_zod.z.string(),
|
|
195
|
-
href: import_zod.z.string()
|
|
196
|
-
});
|
|
197
|
-
var navCartItemSchema = import_zod.z.object({
|
|
198
|
-
id: import_zod.z.string(),
|
|
199
|
-
name: import_zod.z.string(),
|
|
200
|
-
variant: import_zod.z.string().optional(),
|
|
201
|
-
price: import_zod.z.number(),
|
|
202
|
-
qty: import_zod.z.number().int().min(0),
|
|
203
|
-
/** Optional; absent images are omitted, never serialized as `""`. */
|
|
204
|
-
image: import_zod.z.string().optional()
|
|
205
|
-
});
|
|
206
|
-
var storeUserSchema = import_zod.z.object({
|
|
207
|
-
name: import_zod.z.string(),
|
|
208
|
-
email: import_zod.z.string(),
|
|
209
|
-
avatar: import_zod.z.string(),
|
|
210
|
-
initials: import_zod.z.string()
|
|
211
|
-
});
|
|
212
|
-
var accountMenuItemSchema = import_zod.z.object({
|
|
213
|
-
label: import_zod.z.string(),
|
|
214
|
-
href: import_zod.z.string(),
|
|
215
|
-
description: import_zod.z.string().optional(),
|
|
216
|
-
icon: import_zod.z.enum(["orders", "wishlist", "addresses", "settings"]).optional()
|
|
217
|
-
});
|
|
218
|
-
var paymentMethodSchema = import_zod.z.object({
|
|
219
|
-
id: import_zod.z.string(),
|
|
220
|
-
name: import_zod.z.string(),
|
|
221
|
-
type: import_zod.z.enum([
|
|
222
|
-
"card",
|
|
223
|
-
"wallet",
|
|
224
|
-
"bank_transfer",
|
|
225
|
-
"buy_now_pay_later",
|
|
226
|
-
"cash_on_delivery",
|
|
227
|
-
"crypto",
|
|
228
|
-
"other"
|
|
229
|
-
]),
|
|
230
|
-
isEnabled: import_zod.z.boolean(),
|
|
231
|
-
requiresSetup: import_zod.z.boolean(),
|
|
232
|
-
description: import_zod.z.string().optional(),
|
|
233
|
-
metadata: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).optional(),
|
|
234
|
-
features: import_zod.z.object({
|
|
235
|
-
saveForLater: import_zod.z.boolean().optional(),
|
|
236
|
-
requires3DS: import_zod.z.boolean().optional(),
|
|
237
|
-
supportsRefunds: import_zod.z.boolean().optional(),
|
|
238
|
-
minAmount: import_zod.z.number().optional(),
|
|
239
|
-
maxAmount: import_zod.z.number().optional(),
|
|
240
|
-
supportedCurrencies: import_zod.z.array(import_zod.z.string()).optional(),
|
|
241
|
-
requiresVerification: import_zod.z.boolean().optional()
|
|
242
|
-
}).optional(),
|
|
243
|
-
logo: import_zod.z.string().optional()
|
|
244
|
-
});
|
|
245
|
-
var buttonPropsSchema = import_zod.z.object({
|
|
246
|
-
variant: import_zod.z.enum(["default", "destructive", "outline", "secondary", "ghost", "link"]).optional(),
|
|
247
|
-
size: import_zod.z.enum(["default", "xs", "sm", "lg", "icon", "icon-xs", "icon-sm", "icon-lg"]).optional(),
|
|
248
|
-
disabled: import_zod.z.boolean().optional(),
|
|
249
|
-
className: import_zod.z.string().optional()
|
|
250
|
-
});
|
|
251
|
-
var storeContainer1PropsSchema = import_zod.z.object({
|
|
252
|
-
size: import_zod.z.enum(["default", "narrow", "wide", "full"]).optional(),
|
|
253
|
-
className: import_zod.z.string().optional()
|
|
254
|
-
});
|
|
255
|
-
var productCard1PropsSchema = import_zod.z.object({
|
|
256
|
-
products: import_zod.z.array(cardProductSchema),
|
|
257
|
-
heading: import_zod.z.string().optional(),
|
|
258
|
-
maxItems: import_zod.z.number().int().positive().optional()
|
|
259
|
-
});
|
|
260
|
-
var shoppingCart4PropsSchema = import_zod.z.object({
|
|
261
|
-
items: import_zod.z.array(cartItemSchema),
|
|
262
|
-
promotions: import_zod.z.array(promotionSchema).default([]),
|
|
263
|
-
recentlyViewed: import_zod.z.array(recentlyViewedItemSchema).optional(),
|
|
264
|
-
/** Backend-authoritative totals; rendered verbatim, never computed locally. */
|
|
265
|
-
totals: cartTotalsSchema.optional(),
|
|
266
|
-
totalsState: import_zod.z.enum(["idle", "pending", "error"]).optional(),
|
|
267
|
-
totalsErrorLabel: import_zod.z.string().optional(),
|
|
268
|
-
totalsUnavailableLabel: import_zod.z.string().optional(),
|
|
269
|
-
amountUnavailableLabel: import_zod.z.string().optional(),
|
|
270
|
-
retryLabel: import_zod.z.string().optional(),
|
|
271
|
-
taxRate: import_zod.z.number().optional(),
|
|
272
|
-
titleLabel: import_zod.z.string().optional(),
|
|
273
|
-
subtotalLabel: import_zod.z.string().optional(),
|
|
274
|
-
discountLabel: import_zod.z.string().optional(),
|
|
275
|
-
taxLabel: import_zod.z.string().optional(),
|
|
276
|
-
shippingLabel: import_zod.z.string().optional(),
|
|
277
|
-
shippingFreeLabel: import_zod.z.string().optional(),
|
|
278
|
-
totalLabel: import_zod.z.string().optional(),
|
|
279
|
-
totalsPendingLabel: import_zod.z.string().optional(),
|
|
280
|
-
awayFromLabel: import_zod.z.string().optional(),
|
|
281
|
-
activatedLabel: import_zod.z.string().optional(),
|
|
282
|
-
itemsLabel: import_zod.z.string().optional(),
|
|
283
|
-
expressCheckoutLabel: import_zod.z.string().optional(),
|
|
284
|
-
expressLabel: import_zod.z.string().optional(),
|
|
285
|
-
standardLabel: import_zod.z.string().optional(),
|
|
286
|
-
estimatedDeliveryLabel: import_zod.z.string().optional(),
|
|
287
|
-
secureCheckoutLabel: import_zod.z.string().optional(),
|
|
288
|
-
recentlyViewedLabel: import_zod.z.string().optional(),
|
|
289
|
-
collapseLabel: import_zod.z.string().optional(),
|
|
290
|
-
expandLabel: import_zod.z.string().optional(),
|
|
291
|
-
checkoutLabel: import_zod.z.string().optional(),
|
|
292
|
-
quickCheckoutLabel: import_zod.z.string().optional(),
|
|
293
|
-
checkoutNowLabel: import_zod.z.string().optional(),
|
|
294
|
-
emptyLabel: import_zod.z.string().optional(),
|
|
295
|
-
removeLabel: import_zod.z.string().optional(),
|
|
296
|
-
decreaseLabel: import_zod.z.string().optional(),
|
|
297
|
-
increaseLabel: import_zod.z.string().optional()
|
|
298
|
-
});
|
|
299
|
-
var logoAccentSchema = import_zod.z.object({
|
|
300
|
-
text: import_zod.z.string(),
|
|
301
|
-
className: import_zod.z.string().optional()
|
|
302
|
-
});
|
|
303
|
-
var brandAccentSchema = import_zod.z.object({
|
|
304
|
-
text: import_zod.z.string(),
|
|
305
|
-
className: import_zod.z.string().optional()
|
|
306
|
-
});
|
|
307
|
-
var heroImageSchema = import_zod.z.object({
|
|
308
|
-
src: import_zod.z.string(),
|
|
309
|
-
alt: import_zod.z.string()
|
|
310
|
-
});
|
|
311
|
-
var navbar4PropsSchema = import_zod.z.object({
|
|
312
|
-
storeCategories: import_zod.z.array(storeCategorySchema),
|
|
313
|
-
shippingNote: import_zod.z.string(),
|
|
314
|
-
utilityLinks: import_zod.z.array(utilityLinkSchema),
|
|
315
|
-
logoText: import_zod.z.string(),
|
|
316
|
-
logoHref: import_zod.z.string().optional(),
|
|
317
|
-
/** Optional accent for a trailing segment of `logoText`; omitted → unchanged. */
|
|
318
|
-
logoAccent: logoAccentSchema.optional(),
|
|
319
|
-
/**
|
|
320
|
-
* Consumer-supplied classes merged onto the block's outer surface as the
|
|
321
|
-
* final argument (e.g. a semantic surface token). Omitted → unchanged.
|
|
322
|
-
*/
|
|
323
|
-
className: import_zod.z.string().optional(),
|
|
324
|
-
accountHref: import_zod.z.string().optional(),
|
|
325
|
-
searchQuery: import_zod.z.string().optional(),
|
|
326
|
-
items: import_zod.z.array(navCartItemSchema).optional(),
|
|
327
|
-
/** Authoritative backend subtotal for the mini-cart. */
|
|
328
|
-
subtotal: moneySchema.optional(),
|
|
329
|
-
subtotalUnavailableLabel: import_zod.z.string().optional(),
|
|
330
|
-
user: storeUserSchema.optional(),
|
|
331
|
-
accountMenuItems: import_zod.z.array(accountMenuItemSchema).optional()
|
|
332
|
-
});
|
|
333
|
-
var ctaSchema = import_zod.z.object({
|
|
334
|
-
label: import_zod.z.string(),
|
|
335
|
-
href: import_zod.z.string().optional()
|
|
336
|
-
});
|
|
337
|
-
var faqItemSchema = import_zod.z.object({
|
|
338
|
-
value: import_zod.z.string(),
|
|
339
|
-
question: import_zod.z.string(),
|
|
340
|
-
answer: import_zod.z.string()
|
|
341
|
-
});
|
|
342
|
-
var faqBlock1PropsSchema = import_zod.z.object({
|
|
343
|
-
items: import_zod.z.array(faqItemSchema),
|
|
344
|
-
title: import_zod.z.string().optional(),
|
|
345
|
-
description: import_zod.z.string().optional(),
|
|
346
|
-
accordionType: import_zod.z.enum(["single", "multiple"]).optional()
|
|
347
|
-
});
|
|
348
|
-
var ctaSection1PropsSchema = import_zod.z.object({
|
|
349
|
-
badgeText: import_zod.z.string().optional(),
|
|
350
|
-
title: import_zod.z.string().optional(),
|
|
351
|
-
description: import_zod.z.string().optional(),
|
|
352
|
-
primaryCta: ctaSchema.optional(),
|
|
353
|
-
secondaryCta: ctaSchema.optional()
|
|
354
|
-
});
|
|
355
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
356
|
-
0 && (module.exports = {
|
|
357
|
-
PRODUCT_IMAGE_FALLBACK,
|
|
358
|
-
accountMenuItemSchema,
|
|
359
|
-
brandAccentSchema,
|
|
360
|
-
buttonPropsSchema,
|
|
361
|
-
cardProductSchema,
|
|
362
|
-
cartItemSchema,
|
|
363
|
-
cartTotalsSchema,
|
|
364
|
-
ctaSchema,
|
|
365
|
-
ctaSection1PropsSchema,
|
|
366
|
-
faqBlock1PropsSchema,
|
|
367
|
-
faqItemSchema,
|
|
368
|
-
formatMoney,
|
|
369
|
-
heroImageSchema,
|
|
370
|
-
isAvailableMoney,
|
|
371
|
-
isCompleteFiniteDecimal,
|
|
372
|
-
logoAccentSchema,
|
|
373
|
-
moneySchema,
|
|
374
|
-
navCartItemSchema,
|
|
375
|
-
navbar4PropsSchema,
|
|
376
|
-
paymentMethodSchema,
|
|
377
|
-
productCard1PropsSchema,
|
|
378
|
-
productDetailProductSchema,
|
|
379
|
-
productDetailVariantSchema,
|
|
380
|
-
productOverview1PropsSchema,
|
|
381
|
-
promotionSchema,
|
|
382
|
-
recentlyViewedItemSchema,
|
|
383
|
-
resolveAbsoluteQuantity,
|
|
384
|
-
shoppingCart4PropsSchema,
|
|
385
|
-
storeCategorySchema,
|
|
386
|
-
storeContainer1PropsSchema,
|
|
387
|
-
storeUserSchema,
|
|
388
|
-
utilityLinkSchema
|
|
389
|
-
});
|
|
390
|
-
//# sourceMappingURL=contracts.js.map
|
package/dist/contracts.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lib/contracts.ts","../src/lib/money.ts","../src/lib/cart.ts"],"sourcesContent":["import { z } from 'zod'\nimport type { Money, PaymentMethod, ProductPreview } from '@thorprovider/types'\n\n/**\n * Serialization contracts for spec-driven storefronts.\n *\n * These Zod schemas are the *serializable subset* of what a spec may write for\n * a block. The component keeps its rich React interface; the catalog/registry\n * is the adapter that maps these props to real component props and binds\n * callbacks (see storefronts-on-blocks design D3). `z.infer` is the typed\n * boundary between spec and catalog — a prop outside the schema is a compile\n * error, not a runtime surprise.\n *\n * Data shapes are projections of the @thorprovider/types canon so that\n * @thorprovider/adapters output validates without conflict:\n * - Prices are plain numbers here while the canon `Money` is a decimal string\n * ({ amount: \"45.00\", currencyCode }). The projection happens at the\n * loader boundary.\n * - Blocks use `title` while the canon `ProductPreview` uses `name`. Reconcile\n * via the canonical aliases below or the catalog/loader adapter.\n */\nexport type CanonMoney = Money\nexport type CanonProduct = ProductPreview\n\n/**\n * Fallback data-URI for required image fields when the data source has no\n * image. Image fields are non-optional `z.string()` in these contracts, so the\n * boundary must never emit `\"\"` (React warns about `src=\"\"`); it must emit a\n * real, renderable value. Hosts may override with their own branded fallback\n * (e.g. electrostore's `CATEGORY_IMAGE_FALLBACK`), but blocks ship a neutral\n * one so direct consumers are safe by default.\n */\nexport const PRODUCT_IMAGE_FALLBACK =\n 'data:image/svg+xml;charset=utf-8,' +\n encodeURIComponent(\n `<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><rect width='100%' height='100%' fill='#e2e8f0'/><g fill='none' stroke='#94a3b8' stroke-width='12' stroke-linecap='round'><path d='M150 300h300M300 150v300'/><path d='M220 230h50M220 300h50M220 370h50'/><path d='M330 230h50M330 300h50M330 370h50'/></g></svg>`,\n )\n\n// ---------------------------------------------------------------------------\n// Data contracts\n// ---------------------------------------------------------------------------\n\n/**\n * Canonical `Money` (`@thorprovider/types`): a decimal string in major units\n * (`\"69.99\"`), never cents. A missing price is represented by omitting the\n * field (or `null` on a nullable field), not by an empty string.\n *\n * The amount stays a permissive `z.string()` on purpose: an unresolved backend\n * price may arrive as the canonical sentinel `\"\"`, and tightening the schema\n * would reject the whole view instead of letting the presentation layer render\n * an unavailable state. Validity is enforced at render time by\n * `isAvailableMoney`/`formatMoney` (a `\"\"`/malformed amount never becomes `$0`).\n */\nexport const moneySchema: z.ZodType<Money> = z.object({\n amount: z.string(),\n currencyCode: z.string(),\n})\n\nconst imageSchema = z.object({\n id: z.string().optional(),\n url: z.string(),\n altText: z.string(),\n width: z.number().optional(),\n height: z.number().optional(),\n})\n\nconst selectedOptionSchema = z.object({\n name: z.string(),\n value: z.string(),\n})\n\nexport const productDetailVariantSchema = z.object({\n id: z.string(),\n title: z.string(),\n sku: z.string().optional(),\n availableForSale: z.boolean(),\n selectedOptions: z.array(selectedOptionSchema),\n /** Omit or null when the backend has no resolved price (purchase disabled). */\n price: moneySchema.nullish(),\n compareAtPrice: moneySchema.optional(),\n image: imageSchema.optional(),\n})\nexport type ProductDetailVariantSpec = z.infer<typeof productDetailVariantSchema>\n\nexport const productDetailProductSchema = z.object({\n id: z.string(),\n handle: z.string().optional(),\n title: z.string(),\n description: z.string().optional(),\n vendor: z.string().optional(),\n options: z.array(z.object({ id: z.string(), name: z.string(), values: z.array(z.string()) })),\n variants: z.array(productDetailVariantSchema),\n images: z.array(imageSchema),\n featuredImage: imageSchema.optional(),\n})\nexport type ProductDetailProductSpec = z.infer<typeof productDetailProductSchema>\n\nexport const productOverview1PropsSchema = z.object({\n product: productDetailProductSchema,\n selectedVariantId: z.string().nullable().optional(),\n quantity: z.number().optional(),\n rating: z.object({ value: z.number(), count: z.number() }).optional(),\n deliveryEstimate: z.string().optional(),\n shipping: moneySchema.optional(),\n sizesLabel: z.string().optional(),\n variantLabel: z.string().optional(),\n reviewsLabel: z.string().optional(),\n addToCartLabel: z.string().optional(),\n outOfStockLabel: z.string().optional(),\n unavailablePriceLabel: z.string().optional(),\n selectVariantLabel: z.string().optional(),\n quantityLabel: z.string().optional(),\n deliveryEstimateLabel: z.string().optional(),\n shippingLabel: z.string().optional(),\n})\nexport type ProductOverview1SpecProps = z.infer<typeof productOverview1PropsSchema>\n\nexport const cardProductSchema = z.object({\n id: z.union([z.string(), z.number()]),\n title: z.string(),\n price: z.number(),\n originalPrice: z.number().optional(),\n image: z.string(),\n badge: z.string().optional(),\n})\nexport type CardProduct = z.infer<typeof cardProductSchema>\n\nexport const cartItemSchema = z.object({\n id: z.string(),\n name: z.string(),\n price: z.number(),\n quantity: z.number().int().min(0),\n /** Optional; absent images are omitted, never serialized as `\"\"`. */\n image: z.string().optional(),\n variant: z.string().optional(),\n /** Canonical backend per-unit price, preferred for display when present. */\n unitPrice: moneySchema.optional(),\n /** Canonical backend line total, preferred over `price * quantity`. */\n lineTotal: moneySchema.optional(),\n})\nexport type CartItem = z.infer<typeof cartItemSchema>\n\nexport const cartTotalsSchema = z.object({\n subtotal: moneySchema,\n discount: moneySchema.optional(),\n tax: moneySchema.optional(),\n shipping: moneySchema.optional(),\n total: moneySchema,\n})\nexport type CartTotals = z.infer<typeof cartTotalsSchema>\n\nexport const recentlyViewedItemSchema = z.object({\n id: z.string(),\n name: z.string(),\n price: z.number(),\n image: z.string(),\n})\nexport type RecentlyViewedItem = z.infer<typeof recentlyViewedItemSchema>\n\nexport const promotionSchema = z.object({\n threshold: z.number(),\n reward: z.string(),\n icon: z.string().default('gift'),\n})\nexport type Promotion = z.infer<typeof promotionSchema>\n\nconst storeCategoryBase = {\n label: z.string(),\n href: z.string(),\n emphasis: z.boolean().optional(),\n}\n\nexport const storeCategorySchema: z.ZodType<StoreCategory> = z.lazy(() =>\n z.object({\n ...storeCategoryBase,\n children: z.array(storeCategorySchema).optional(),\n }),\n)\nexport type StoreCategory = {\n label: string\n href: string\n children?: StoreCategory[]\n emphasis?: boolean\n}\n\nexport const utilityLinkSchema = z.object({\n label: z.string(),\n href: z.string(),\n})\nexport type UtilityLink = z.infer<typeof utilityLinkSchema>\n\nexport const navCartItemSchema = z.object({\n id: z.string(),\n name: z.string(),\n variant: z.string().optional(),\n price: z.number(),\n qty: z.number().int().min(0),\n /** Optional; absent images are omitted, never serialized as `\"\"`. */\n image: z.string().optional(),\n})\nexport type NavCartItem = z.infer<typeof navCartItemSchema>\n\nexport const storeUserSchema = z.object({\n name: z.string(),\n email: z.string(),\n avatar: z.string(),\n initials: z.string(),\n})\nexport type StoreUser = z.infer<typeof storeUserSchema>\n\nexport const accountMenuItemSchema = z.object({\n label: z.string(),\n href: z.string(),\n description: z.string().optional(),\n icon: z.enum(['orders', 'wishlist', 'addresses', 'settings']).optional(),\n})\nexport type AccountMenuItem = z.infer<typeof accountMenuItemSchema>\n\n/**\n * Serialization contract for a payment method offered at checkout.\n *\n * A projection of `@thorprovider/types` `PaymentMethod` — the storefront-facing\n * shape produced by the adapters transform. Checkout blocks render the method\n * list from this data instead of hardcoding providers.\n */\nexport const paymentMethodSchema: z.ZodType<PaymentMethod> = z.object({\n id: z.string(),\n name: z.string(),\n type: z.enum([\n 'card',\n 'wallet',\n 'bank_transfer',\n 'buy_now_pay_later',\n 'cash_on_delivery',\n 'crypto',\n 'other',\n ]),\n isEnabled: z.boolean(),\n requiresSetup: z.boolean(),\n description: z.string().optional(),\n metadata: z.record(z.string(), z.unknown()).optional(),\n features: z\n .object({\n saveForLater: z.boolean().optional(),\n requires3DS: z.boolean().optional(),\n supportsRefunds: z.boolean().optional(),\n minAmount: z.number().optional(),\n maxAmount: z.number().optional(),\n supportedCurrencies: z.array(z.string()).optional(),\n requiresVerification: z.boolean().optional(),\n })\n .optional(),\n logo: z.string().optional(),\n})\n\n// ---------------------------------------------------------------------------\n// Block prop schemas\n// ---------------------------------------------------------------------------\n\nexport const buttonPropsSchema = z.object({\n variant: z\n .enum(['default', 'destructive', 'outline', 'secondary', 'ghost', 'link'])\n .optional(),\n size: z\n .enum(['default', 'xs', 'sm', 'lg', 'icon', 'icon-xs', 'icon-sm', 'icon-lg'])\n .optional(),\n disabled: z.boolean().optional(),\n className: z.string().optional(),\n})\nexport type ButtonSpecProps = z.infer<typeof buttonPropsSchema>\n\nexport const storeContainer1PropsSchema = z.object({\n size: z.enum(['default', 'narrow', 'wide', 'full']).optional(),\n className: z.string().optional(),\n})\nexport type StoreContainer1SpecProps = z.infer<typeof storeContainer1PropsSchema>\n\nexport const productCard1PropsSchema = z.object({\n products: z.array(cardProductSchema),\n heading: z.string().optional(),\n maxItems: z.number().int().positive().optional(),\n})\nexport type ProductCard1SpecProps = z.infer<typeof productCard1PropsSchema>\n\nexport const shoppingCart4PropsSchema = z.object({\n items: z.array(cartItemSchema),\n promotions: z.array(promotionSchema).default([]),\n recentlyViewed: z.array(recentlyViewedItemSchema).optional(),\n /** Backend-authoritative totals; rendered verbatim, never computed locally. */\n totals: cartTotalsSchema.optional(),\n totalsState: z.enum(['idle', 'pending', 'error']).optional(),\n totalsErrorLabel: z.string().optional(),\n totalsUnavailableLabel: z.string().optional(),\n amountUnavailableLabel: z.string().optional(),\n retryLabel: z.string().optional(),\n taxRate: z.number().optional(),\n titleLabel: z.string().optional(),\n subtotalLabel: z.string().optional(),\n discountLabel: z.string().optional(),\n taxLabel: z.string().optional(),\n shippingLabel: z.string().optional(),\n shippingFreeLabel: z.string().optional(),\n totalLabel: z.string().optional(),\n totalsPendingLabel: z.string().optional(),\n awayFromLabel: z.string().optional(),\n activatedLabel: z.string().optional(),\n itemsLabel: z.string().optional(),\n expressCheckoutLabel: z.string().optional(),\n expressLabel: z.string().optional(),\n standardLabel: z.string().optional(),\n estimatedDeliveryLabel: z.string().optional(),\n secureCheckoutLabel: z.string().optional(),\n recentlyViewedLabel: z.string().optional(),\n collapseLabel: z.string().optional(),\n expandLabel: z.string().optional(),\n checkoutLabel: z.string().optional(),\n quickCheckoutLabel: z.string().optional(),\n checkoutNowLabel: z.string().optional(),\n emptyLabel: z.string().optional(),\n removeLabel: z.string().optional(),\n decreaseLabel: z.string().optional(),\n increaseLabel: z.string().optional(),\n})\nexport type ShoppingCart4SpecProps = z.infer<typeof shoppingCart4PropsSchema>\n\n/**\n * Optional brand seams shared by the existing blocks. These mirror the\n * components' optional props as a serializable subset (no React): an accent\n * marks a trailing segment of the wordmark/brand name, and an editorial image\n * is a native `<img>` source. Omitting each keeps the block's current output.\n */\nexport const logoAccentSchema = z.object({\n text: z.string(),\n className: z.string().optional(),\n})\nexport type LogoAccent = z.infer<typeof logoAccentSchema>\n\nexport const brandAccentSchema = z.object({\n text: z.string(),\n className: z.string().optional(),\n})\nexport type BrandAccent = z.infer<typeof brandAccentSchema>\n\nexport const heroImageSchema = z.object({\n src: z.string(),\n alt: z.string(),\n})\nexport type HeroImage = z.infer<typeof heroImageSchema>\n\nexport const navbar4PropsSchema = z.object({\n storeCategories: z.array(storeCategorySchema),\n shippingNote: z.string(),\n utilityLinks: z.array(utilityLinkSchema),\n logoText: z.string(),\n logoHref: z.string().optional(),\n /** Optional accent for a trailing segment of `logoText`; omitted → unchanged. */\n logoAccent: logoAccentSchema.optional(),\n /**\n * Consumer-supplied classes merged onto the block's outer surface as the\n * final argument (e.g. a semantic surface token). Omitted → unchanged.\n */\n className: z.string().optional(),\n accountHref: z.string().optional(),\n searchQuery: z.string().optional(),\n items: z.array(navCartItemSchema).optional(),\n /** Authoritative backend subtotal for the mini-cart. */\n subtotal: moneySchema.optional(),\n subtotalUnavailableLabel: z.string().optional(),\n user: storeUserSchema.optional(),\n accountMenuItems: z.array(accountMenuItemSchema).optional(),\n})\nexport type Navbar4SpecProps = z.infer<typeof navbar4PropsSchema>\n\n/**\n * Serializable contracts for the two bounded editorial sections (`faq`, `cta`).\n * These are the serializable subset of `FaqBlock1Props`/`CtaSection1Props`: the\n * React-only callbacks (`onPrimaryClick`/`onSecondaryClick`) are intentionally\n * excluded — the catalog adapter binds them (see design D3).\n */\nexport const ctaSchema = z.object({\n label: z.string(),\n href: z.string().optional(),\n})\nexport type CtaSpec = z.infer<typeof ctaSchema>\n\nexport const faqItemSchema = z.object({\n value: z.string(),\n question: z.string(),\n answer: z.string(),\n})\nexport type FaqItemSpec = z.infer<typeof faqItemSchema>\n\nexport const faqBlock1PropsSchema = z.object({\n items: z.array(faqItemSchema),\n title: z.string().optional(),\n description: z.string().optional(),\n accordionType: z.enum(['single', 'multiple']).optional(),\n})\nexport type FaqBlock1SpecProps = z.infer<typeof faqBlock1PropsSchema>\n\nexport const ctaSection1PropsSchema = z.object({\n badgeText: z.string().optional(),\n title: z.string().optional(),\n description: z.string().optional(),\n primaryCta: ctaSchema.optional(),\n secondaryCta: ctaSchema.optional(),\n})\nexport type CtaSection1SpecProps = z.infer<typeof ctaSection1PropsSchema>\n\n// Pure monetary helpers, re-exported from the server-safe contracts entry so a\n// host boundary can validate/format `Money` without importing the React entry.\nexport { isCompleteFiniteDecimal, isAvailableMoney, formatMoney } from './money'\nexport { resolveAbsoluteQuantity } from './cart'","import type { Money } from '@thorprovider/types'\n\n/**\n * Pure monetary helpers shared by the curated commerce blocks.\n *\n * Canonical `Money` (`@thorprovider/types`) carries a decimal string in major\n * units (e.g. `\"69.99\"`) — never cents. A missing, invalid, or unresolved\n * amount is *unavailable*, which is a different state from a legitimate `\"0\"`.\n * These helpers keep that distinction in the presentation layer: they validate\n * a complete finite decimal before any display conversion, and they never\n * invent a currency.\n */\n\nconst COMPLETE_FINITE_DECIMAL = /^-?(?:\\d+)(?:\\.\\d+)?$/\n\n/**\n * True only for a complete, finite decimal string (`\"0\"`, `\"69.99\"`, `\"-3.5\"`).\n * Rejects `\"\"`, `\" \"`, `\"1.\"`, `\".5\"`, `\"1e3\"`, `\"abc\"`, and non-strings.\n */\nexport function isCompleteFiniteDecimal(value: unknown): value is string {\n if (typeof value !== 'string') return false\n const trimmed = value.trim()\n if (trimmed === '' || !COMPLETE_FINITE_DECIMAL.test(trimmed)) return false\n return Number.isFinite(Number(trimmed))\n}\n\n/**\n * True when a `Money` value is safe to display and price a purchase with: a\n * complete finite decimal amount and a non-empty currency code. A valid zero\n * (`{ amount: '0', currencyCode: 'USD' }`) is available — zero alone does not\n * make a price unavailable.\n */\nexport function isAvailableMoney(money: Money | null | undefined): money is Money {\n return (\n !!money &&\n typeof money.currencyCode === 'string' &&\n money.currencyCode.trim() !== '' &&\n isCompleteFiniteDecimal(money.amount)\n )\n}\n\n/**\n * Formats a `Money` for display, or `null` when the value is unavailable.\n *\n * This is the safety gate the whole curated surface relies on: an absent or\n * malformed amount (`\"\"`, `\" \"`, `\"abc\"`, a non-string, a missing currency)\n * MUST NOT reach `Intl.NumberFormat`, because `Number(\"\")` is `0` and would\n * render a fake `$0.00` for missing data. A backend-resolved valid zero\n * (`{ amount: \"0\", currencyCode: \"USD\" }`) is available and formats as zero.\n *\n * When no `formatter` is supplied the currency comes from\n * `money.currencyCode`, so no currency is hardcoded. Callers render their own\n * unavailable/pending/recovery state when this returns `null`.\n */\nexport function formatMoney(\n money: Money | null | undefined,\n formatter?: (money: Money) => string,\n): string | null {\n if (!isAvailableMoney(money)) return null\n if (formatter) return formatter(money)\n return new Intl.NumberFormat(undefined, {\n style: 'currency',\n currency: money.currencyCode,\n }).format(Number(money.amount))\n}\n","/**\n * Cart line quantity normalization shared by the curated cart surfaces.\n *\n * The Navbar mini-cart expresses a quantity DELTA while the cart page reports\n * an ABSOLUTE quantity. The boundary normalizes the delta against the\n * authoritative current line quantity (from the backend cart) before mutating;\n * it must never reinterpret one as the other.\n */\nexport function resolveAbsoluteQuantity(currentQuantity: number, delta: number): number {\n return Math.max(1, currentQuantity + delta)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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