@thorprovider/storefront 0.6.3 → 0.9.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/README.md +22 -2
- package/assets/templates/AGENTS.md +14 -2
- package/assets/templates/app/app/[[...slug]]/page.tsx +9 -2
- package/assets/templates/app/lib/__STOREFRONT__/account-address.ts +129 -0
- package/assets/templates/app/lib/__STOREFRONT__/account-lifecycle.client.tsx +2 -2
- package/assets/templates/app/lib/__STOREFRONT__/account-private.core.ts +143 -0
- package/assets/templates/app/lib/__STOREFRONT__/account-profile.ts +220 -0
- package/assets/templates/app/lib/__STOREFRONT__/actions.ts +1234 -75
- package/assets/templates/app/lib/__STOREFRONT__/addresses-port.ts +107 -0
- package/assets/templates/app/lib/__STOREFRONT__/checkout-shipping.core.ts +37 -0
- package/assets/templates/app/lib/__STOREFRONT__/commerce.ts +460 -35
- package/assets/templates/app/lib/__STOREFRONT__/confirmation.core.ts +240 -0
- package/assets/templates/app/lib/__STOREFRONT__/customer-profile-port.ts +103 -0
- package/assets/templates/app/lib/__STOREFRONT__/order-detail-port.ts +26 -0
- package/assets/templates/app/lib/__STOREFRONT__/orders-port.ts +30 -0
- package/assets/templates/app/lib/__STOREFRONT__/ports.ts +18 -0
- package/assets/templates/app/lib/__STOREFRONT__/projection-ownership.client.tsx +4 -4
- package/assets/templates/app/lib/__STOREFRONT__/session.ts +24 -6
- package/assets/templates/app/lib/__STOREFRONT__/state.core.ts +28 -1
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/address-book-advanced.client.tsx +29 -0
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/checkout-commerce-v1.client.tsx +19 -0
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/checkout-commerce-v1.tsx +16 -0
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/customer-profile.client.tsx +27 -0
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/index.ts +5 -1
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/marketplace-product-card.client.tsx +19 -0
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/marketplace-product-card.tsx +16 -0
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/mega-menu-universal.client.tsx +19 -0
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/mega-menu-universal.tsx +16 -0
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/schema.address-book-advanced.ts +437 -0
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/schema.checkout-commerce-v1.ts +398 -0
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/schema.customer-profile.ts +138 -0
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/schema.marketplace-product-card.ts +67 -0
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/schema.mega-menu-universal.ts +76 -0
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/schema.universal-banner.ts +217 -0
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/universal-banner.client.tsx +24 -0
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/universal-banner.tsx +16 -0
- package/assets/templates/features/checkout/handlers.ts +348 -33
- package/assets/templates/features/checkout/state.ts +79 -3
- package/assets/templates/features/customer-addresses/handlers.ts +11 -0
- package/assets/templates/features/customer-addresses/state.ts +33 -0
- package/assets/templates/features/customer-auth/state.ts +10 -0
- package/assets/templates/features/customer-profile/handlers.ts +11 -0
- package/assets/templates/features/customer-profile/state.ts +18 -0
- package/assets/templates/views/account/address-book-advanced.defaults.ts +534 -0
- package/assets/templates/views/account/assembly/assembly.json +41 -0
- package/assets/templates/views/account/assembly/index.skeleton.tsx +229 -0
- package/assets/templates/views/account/assembly/registry.skeleton.tsx +1116 -0
- package/assets/templates/views/account/assembly/slots/addresses/AddressBookAdvanced/binding.json +5 -0
- package/assets/templates/views/account/assembly/slots/addresses/AddressBookAdvanced/catalog.part +4 -0
- package/assets/templates/views/account/assembly/slots/addresses/AddressBookAdvanced/element.part +5 -0
- package/assets/templates/views/account/assembly/slots/addresses/AddressBookAdvanced/registry.part +1 -0
- package/assets/templates/views/account/assembly/slots/addresses/cards/catalog.part +5 -0
- package/assets/templates/views/account/assembly/slots/addresses/cards/element.part +10 -0
- package/assets/templates/views/account/assembly/slots/addresses/cards/registry.part +1 -0
- package/assets/templates/views/account/assembly/slots/boot/AccountBoot/catalog.part +5 -0
- package/assets/templates/views/account/assembly/slots/boot/AccountBoot/element.part +5 -0
- package/assets/templates/views/account/assembly/slots/boot/AccountBoot/registry.part +1 -0
- package/assets/templates/views/account/assembly/slots/login/card/catalog.part +4 -0
- package/assets/templates/views/account/assembly/slots/login/card/element.part +13 -0
- package/assets/templates/views/account/assembly/slots/login/card/registry.part +1 -0
- package/assets/templates/views/account/assembly/slots/orders/OrderHistory/catalog.part +5 -0
- package/assets/templates/views/account/assembly/slots/orders/OrderHistory/element.part +5 -0
- package/assets/templates/views/account/assembly/slots/orders/OrderHistory/registry.part +2 -0
- package/assets/templates/views/account/assembly/slots/orders/OrderHistoryAdvanced/binding.json +5 -0
- package/assets/templates/views/account/assembly/slots/orders/OrderHistoryAdvanced/catalog.part +5 -0
- package/assets/templates/views/account/assembly/slots/orders/OrderHistoryAdvanced/element.part +5 -0
- package/assets/templates/views/account/assembly/slots/orders/OrderHistoryAdvanced/registry.part +1 -0
- package/assets/templates/views/account/assembly/slots/profile/CustomerProfileAdvanced/binding.json +5 -0
- package/assets/templates/views/account/assembly/slots/profile/CustomerProfileAdvanced/catalog.part +4 -0
- package/assets/templates/views/account/assembly/slots/profile/CustomerProfileAdvanced/element.part +5 -0
- package/assets/templates/views/account/assembly/slots/profile/CustomerProfileAdvanced/registry.part +1 -0
- package/assets/templates/views/account/assembly/slots/profile/form/catalog.part +5 -0
- package/assets/templates/views/account/assembly/slots/profile/form/element.part +10 -0
- package/assets/templates/views/account/assembly/slots/profile/form/registry.part +1 -0
- package/assets/templates/views/account/assembly/slots/register/SignUpPage1/catalog.part +4 -0
- package/assets/templates/views/account/assembly/slots/register/SignUpPage1/element.part +13 -0
- package/assets/templates/views/account/assembly/slots/register/SignUpPage1/registry.part +1 -0
- package/assets/templates/views/account/assembly/slots/summary/stack/catalog.part +5 -0
- package/assets/templates/views/account/assembly/slots/summary/stack/element.part +5 -0
- package/assets/templates/views/account/assembly/slots/summary/stack/registry.part +1 -0
- package/assets/templates/views/account/assembly/slots/summary/tabs/catalog.part +5 -0
- package/assets/templates/views/account/assembly/slots/summary/tabs/element.part +5 -0
- package/assets/templates/views/account/assembly/slots/summary/tabs/registry.part +1 -0
- package/assets/templates/views/account/content.ts +326 -0
- package/assets/templates/views/account/customer-profile.defaults.ts +136 -0
- package/assets/templates/views/account/index.tsx +218 -35
- package/assets/templates/views/account/order-detail.client.tsx +35 -0
- package/assets/templates/views/account/order-detail.defaults.ts +457 -0
- package/assets/templates/views/account/orders-advanced.client.tsx +166 -0
- package/assets/templates/views/account/orders-advanced.defaults.ts +230 -0
- package/assets/templates/views/account/registry.tsx +944 -369
- package/assets/templates/views/account/schema.ts +50 -0
- package/assets/templates/views/account/sections-data.ts +2 -0
- package/assets/templates/views/cart/content.ts +1 -0
- package/assets/templates/views/category/assembly/index.skeleton.tsx +1 -0
- package/assets/templates/views/category/assembly/slots/filter/CategoryListing/element.part +1 -0
- package/assets/templates/views/category/content.ts +2 -0
- package/assets/templates/views/category/index.tsx +2 -0
- package/assets/templates/views/category/sections-data.ts +2 -0
- package/assets/templates/views/checkout/checkout-commerce-hosted.tsx +1089 -0
- package/assets/templates/views/checkout/content.ts +114 -2
- package/assets/templates/views/checkout/index.tsx +7 -1
- package/assets/templates/views/checkout/props.ts +70 -22
- package/assets/templates/views/checkout/registry.tsx +400 -71
- package/assets/templates/views/checkout/schema.ts +260 -9
- package/assets/templates/views/home/assembly/assembly.json +28 -0
- package/assets/templates/views/home/assembly/index.skeleton.tsx +1 -0
- package/assets/templates/views/home/content.ts +2 -0
- package/assets/templates/views/home/index.tsx +1 -0
- package/assets/templates/views/home/sections-data.ts +2 -0
- package/assets/templates/views/product/content.ts +1 -0
- package/assets/templates/views/static/content.ts +1 -0
- package/bin/storefront.js +343 -13
- package/package.json +2 -1
- package/recipes/adapter-surface.json +158 -0
- package/recipes/archetypes.json +38 -3
- package/recipes/catalog.json +138 -1
- package/recipes/feature.schema.json +9 -0
- package/recipes/features.json +72 -1
- package/recipes/manifest.schema.json +5 -0
- package/recipes/recipe.schema.json +14 -2
- package/recipes/recipes.json +35 -5
- package/recipes/section.schema.json +112 -0
- package/recipes/sections.json +289 -3
- package/recipes/validate.mjs +83 -1
- package/scripts/adapter-surface.mjs +41 -0
- package/scripts/agent-blocks.mjs +700 -0
- package/scripts/block-validator.mjs +45 -0
- package/scripts/candidate.mjs +5 -4
- package/scripts/composers.mjs +7 -2
- package/scripts/default-sections.mjs +78 -0
- package/scripts/file-classes.mjs +15 -0
- package/scripts/generate-adapter-surface.mjs +148 -0
- package/scripts/operations.mjs +100 -0
- package/scripts/reconcile.mjs +67 -39
- package/scripts/section-configure.mjs +316 -0
- package/scripts/sync-assets.mjs +1 -0
- package/scripts/view-assembly.mjs +101 -14
- package/skills/sf-feature/SKILL.md +19 -0
- package/skills/sf-view-gen/SKILL.md +79 -7
- package/skills/sf-view-gen/assets/recipes/archetypes.json +38 -3
- package/skills/sf-view-gen/assets/recipes/catalog.json +138 -1
- package/skills/sf-view-gen/assets/recipes/features.json +72 -1
- package/skills/sf-view-gen/assets/recipes/recipes.json +35 -5
- package/skills/sf-view-gen/assets/recipes/section.schema.json +112 -0
- package/skills/sf-view-gen/assets/recipes/sections.json +289 -3
- package/skills/sf-view-gen/assets/templates/views/sections/checkout-commerce-v1.client.tsx +19 -0
- package/skills/sf-view-gen/assets/templates/views/sections/checkout-commerce-v1.tsx +16 -0
- package/skills/sf-view-gen/assets/templates/views/sections/marketplace-product-card.client.tsx +19 -0
- package/skills/sf-view-gen/assets/templates/views/sections/marketplace-product-card.tsx +16 -0
- package/skills/sf-view-gen/assets/templates/views/sections/mega-menu-universal.client.tsx +19 -0
- package/skills/sf-view-gen/assets/templates/views/sections/mega-menu-universal.tsx +16 -0
- package/skills/sf-view-gen/assets/templates/views/sections/schema.checkout-commerce-v1.ts +398 -0
- package/skills/sf-view-gen/assets/templates/views/sections/schema.marketplace-product-card.ts +67 -0
- package/skills/sf-view-gen/assets/templates/views/sections/schema.mega-menu-universal.ts +76 -0
- package/skills/sf-view-gen/assets/templates/views/sections/schema.universal-banner.ts +217 -0
- package/skills/sf-view-gen/assets/templates/views/sections/universal-banner.client.tsx +24 -0
- package/skills/sf-view-gen/assets/templates/views/sections/universal-banner.tsx +16 -0
- package/skills/sf-view-gen/scripts/validate.mjs +83 -1
- package/skills/storefront-workflow/SKILL.md +5 -0
- package/skills/storefront-workflow/references/mobile-responsiveness.md +1 -1
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
// Optional section fragment: checkout-commerce-v1 (mirrors recipes/sections.json) — shared contract.
|
|
2
|
+
// Zod mirror of the CheckoutCommerceV1 block contract (delivery checkout-commerce-v1, contract version 4.0.0),
|
|
3
|
+
// shared by the server catalog (checkout-commerce-v1.tsx) and the client registry (checkout-commerce-v1.client.tsx).
|
|
4
|
+
// The React-only callbacks (onQuantityChange, onRemoveItem, onSelectAddress, onCreateAddress, onStartRegistration, onAddAssociate, onConfirmOrder, onContinueShopping) are intentionally excluded.
|
|
5
|
+
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
|
|
8
|
+
export const checkoutCommerceV1ItemSchema = z.object({
|
|
9
|
+
code: z.string(),
|
|
10
|
+
label: z.string(),
|
|
11
|
+
outcome: z.string(),
|
|
12
|
+
amountCents: z.number(),
|
|
13
|
+
message: z.string(),
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
export const checkoutCommerceV1DataSchema = z.object({
|
|
17
|
+
meta: z.object({
|
|
18
|
+
brand: z.string(),
|
|
19
|
+
title: z.string(),
|
|
20
|
+
subtitle: z.string(),
|
|
21
|
+
secureNote: z.string(),
|
|
22
|
+
demoTitle: z.string(),
|
|
23
|
+
demoHint: z.string(),
|
|
24
|
+
demoCurrent: z.string(),
|
|
25
|
+
footerNote: z.string(),
|
|
26
|
+
currency: z.string(),
|
|
27
|
+
locale: z.string(),
|
|
28
|
+
initialScenarioId: z.string(),
|
|
29
|
+
emptyTitle: z.string(),
|
|
30
|
+
emptyBody: z.string(),
|
|
31
|
+
emptyCta: z.string(),
|
|
32
|
+
loadingLabel: z.string(),
|
|
33
|
+
confirmationTitle: z.string(),
|
|
34
|
+
confirmationBody: z.string(),
|
|
35
|
+
confirmationReference: z.string(),
|
|
36
|
+
confirmationTotal: z.string(),
|
|
37
|
+
confirmationCta: z.string(),
|
|
38
|
+
confirmationBadge: z.string(),
|
|
39
|
+
confirmationCode: z.string(),
|
|
40
|
+
}),
|
|
41
|
+
labels: z.object({
|
|
42
|
+
scenarioGroup: z.string(),
|
|
43
|
+
overviewTitle: z.string(),
|
|
44
|
+
overviewSentence: z.string(),
|
|
45
|
+
productsOne: z.string(),
|
|
46
|
+
productsMany: z.string(),
|
|
47
|
+
deliveriesOne: z.string(),
|
|
48
|
+
deliveriesMany: z.string(),
|
|
49
|
+
shippingOne: z.string(),
|
|
50
|
+
shippingMany: z.string(),
|
|
51
|
+
pickupOne: z.string(),
|
|
52
|
+
pickupMany: z.string(),
|
|
53
|
+
overviewDestination: z.string(),
|
|
54
|
+
overviewLogistics: z.string(),
|
|
55
|
+
overviewPending: z.string(),
|
|
56
|
+
overviewNoDestination: z.string(),
|
|
57
|
+
overviewEta: z.string(),
|
|
58
|
+
overviewEtaLine: z.string(),
|
|
59
|
+
purchaseTitle: z.string(),
|
|
60
|
+
purchaseBreakdown: z.string(),
|
|
61
|
+
purchaseMultiEta: z.string(),
|
|
62
|
+
contactTitle: z.string(),
|
|
63
|
+
contactDescription: z.string(),
|
|
64
|
+
contactName: z.string(),
|
|
65
|
+
contactEmail: z.string(),
|
|
66
|
+
contactPhone: z.string(),
|
|
67
|
+
contactEdit: z.string(),
|
|
68
|
+
contactSave: z.string(),
|
|
69
|
+
contactCancel: z.string(),
|
|
70
|
+
contactGuestNote: z.string(),
|
|
71
|
+
contactMissing: z.string(),
|
|
72
|
+
contactPhoneMissing: z.string(),
|
|
73
|
+
contactNameMissing: z.string(),
|
|
74
|
+
buyerTitleGuest: z.string(),
|
|
75
|
+
buyerTitleAuth: z.string(),
|
|
76
|
+
sessionLoading: z.string(),
|
|
77
|
+
sessionError: z.string(),
|
|
78
|
+
retryAction: z.string(),
|
|
79
|
+
buyerPhoneHint: z.string(),
|
|
80
|
+
buyerContinue: z.string(),
|
|
81
|
+
buyerSavePhone: z.string(),
|
|
82
|
+
accountOptional: z.string(),
|
|
83
|
+
createAccount: z.string(),
|
|
84
|
+
notProvided: z.string(),
|
|
85
|
+
primaryTitle: z.string(),
|
|
86
|
+
primaryChange: z.string(),
|
|
87
|
+
addressTitle: z.string(),
|
|
88
|
+
pickupOnlyAddress: z.string(),
|
|
89
|
+
groupsTitle: z.string(),
|
|
90
|
+
groupsDescription: z.string(),
|
|
91
|
+
groupsCount: z.string(),
|
|
92
|
+
groupDelivery: z.string(),
|
|
93
|
+
groupPickup: z.string(),
|
|
94
|
+
groupProducts: z.string(),
|
|
95
|
+
groupProductOne: z.string(),
|
|
96
|
+
modeShipping: z.string(),
|
|
97
|
+
modePickup: z.string(),
|
|
98
|
+
pickupReady: z.string(),
|
|
99
|
+
modeTitle: z.string(),
|
|
100
|
+
groupAddressPrimary: z.string(),
|
|
101
|
+
groupAddressOwn: z.string(),
|
|
102
|
+
groupNoAddress: z.string(),
|
|
103
|
+
groupChangeAddress: z.string(),
|
|
104
|
+
groupAddAddress: z.string(),
|
|
105
|
+
groupChangeMode: z.string(),
|
|
106
|
+
groupRateReady: z.string(),
|
|
107
|
+
groupRatePending: z.string(),
|
|
108
|
+
rateError: z.string(),
|
|
109
|
+
groupNeedsAddress: z.string(),
|
|
110
|
+
groupNoCoverage: z.string(),
|
|
111
|
+
groupRetryRate: z.string(),
|
|
112
|
+
groupEta: z.string(),
|
|
113
|
+
groupFee: z.string(),
|
|
114
|
+
groupFree: z.string(),
|
|
115
|
+
groupSpecial: z.string(),
|
|
116
|
+
groupOrigin: z.string(),
|
|
117
|
+
groupShippingOptions: z.string(),
|
|
118
|
+
groupPickupPoints: z.string(),
|
|
119
|
+
groupNoCoverageHint: z.string(),
|
|
120
|
+
groupNoOptions: z.string(),
|
|
121
|
+
groupPickupAvailable: z.string(),
|
|
122
|
+
groupUsesPrimary: z.string(),
|
|
123
|
+
groupOwnHint: z.string(),
|
|
124
|
+
quantity: z.string(),
|
|
125
|
+
decrease: z.string(),
|
|
126
|
+
increase: z.string(),
|
|
127
|
+
remove: z.string(),
|
|
128
|
+
removeNamed: z.string(),
|
|
129
|
+
each: z.string(),
|
|
130
|
+
stockLeft: z.string(),
|
|
131
|
+
stockMax: z.string(),
|
|
132
|
+
outOfStock: z.string(),
|
|
133
|
+
lineDiscount: z.string(),
|
|
134
|
+
addressSelectTitle: z.string(),
|
|
135
|
+
addressDelivery: z.string(),
|
|
136
|
+
addressDefaultBadge: z.string(),
|
|
137
|
+
addressPrimaryOption: z.string(),
|
|
138
|
+
addressNew: z.string(),
|
|
139
|
+
addressSaveAccount: z.string(),
|
|
140
|
+
addressUseOnce: z.string(),
|
|
141
|
+
addressSave: z.string(),
|
|
142
|
+
addressCancel: z.string(),
|
|
143
|
+
addressFormTitle: z.string(),
|
|
144
|
+
addressFirstName: z.string(),
|
|
145
|
+
addressLastName: z.string(),
|
|
146
|
+
addressPhone: z.string(),
|
|
147
|
+
addressCountry: z.string(),
|
|
148
|
+
addressProvince: z.string(),
|
|
149
|
+
addressCity: z.string(),
|
|
150
|
+
addressLine1: z.string(),
|
|
151
|
+
addressLine2: z.string(),
|
|
152
|
+
addressPostal: z.string(),
|
|
153
|
+
addressInstructions: z.string(),
|
|
154
|
+
addressRequired: z.string(),
|
|
155
|
+
addressSelectPlaceholder: z.string(),
|
|
156
|
+
addressTemporary: z.string(),
|
|
157
|
+
addressNewLabel: z.string(),
|
|
158
|
+
billingTitle: z.string(),
|
|
159
|
+
billingSame: z.string(),
|
|
160
|
+
billingChoose: z.string(),
|
|
161
|
+
billingHint: z.string(),
|
|
162
|
+
paymentTitle: z.string(),
|
|
163
|
+
paymentChoose: z.string(),
|
|
164
|
+
paymentDescription: z.string(),
|
|
165
|
+
paymentSaved: z.string(),
|
|
166
|
+
paymentUnavailable: z.string(),
|
|
167
|
+
paymentCashPickup: z.string(),
|
|
168
|
+
paymentProviderNote: z.string(),
|
|
169
|
+
paymentErrorTitle: z.string(),
|
|
170
|
+
paymentErrorBody: z.string(),
|
|
171
|
+
paymentRetry: z.string(),
|
|
172
|
+
summaryTitle: z.string(),
|
|
173
|
+
summaryItems: z.string(),
|
|
174
|
+
summaryItemOne: z.string(),
|
|
175
|
+
subtotal: z.string(),
|
|
176
|
+
discount: z.string(),
|
|
177
|
+
tax: z.string(),
|
|
178
|
+
shippingCost: z.string(),
|
|
179
|
+
pickupCost: z.string(),
|
|
180
|
+
extraCost: z.string(),
|
|
181
|
+
total: z.string(),
|
|
182
|
+
totalPending: z.string(),
|
|
183
|
+
totalPendingNote: z.string(),
|
|
184
|
+
totalDemoNote: z.string(),
|
|
185
|
+
promoOpen: z.string(),
|
|
186
|
+
promoLabel: z.string(),
|
|
187
|
+
promoPlaceholder: z.string(),
|
|
188
|
+
promoApply: z.string(),
|
|
189
|
+
promoInvalid: z.string(),
|
|
190
|
+
promoApplied: z.string(),
|
|
191
|
+
confirm: z.string(),
|
|
192
|
+
confirmNote: z.string(),
|
|
193
|
+
confirmBlockedRate: z.string(),
|
|
194
|
+
confirmBlockedAddress: z.string(),
|
|
195
|
+
confirmBlockedPayment: z.string(),
|
|
196
|
+
confirmBlockedCart: z.string(),
|
|
197
|
+
confirmBlockedStock: z.string(),
|
|
198
|
+
confirmBlockedSession: z.string(),
|
|
199
|
+
confirmationEmailNote: z.string(),
|
|
200
|
+
confirmationReferenceNote: z.string(),
|
|
201
|
+
confirmationNextTitle: z.string(),
|
|
202
|
+
confirmationNextOneTitle: z.string(),
|
|
203
|
+
confirmationNextOneBody: z.string(),
|
|
204
|
+
confirmationNextTwoTitle: z.string(),
|
|
205
|
+
confirmationNextTwoBody: z.string(),
|
|
206
|
+
confirmationNextThreeTitle: z.string(),
|
|
207
|
+
confirmationNextThreeBody: z.string(),
|
|
208
|
+
confirmationOrderTitle: z.string(),
|
|
209
|
+
confirmationDetailsTitle: z.string(),
|
|
210
|
+
confirmationQuantity: z.string(),
|
|
211
|
+
confirmationBillingSame: z.string(),
|
|
212
|
+
confirmationAssociateTag: z.string(),
|
|
213
|
+
confirmationCreating: z.string(),
|
|
214
|
+
confirmationCreatingNote: z.string(),
|
|
215
|
+
estimateBadge: z.string(),
|
|
216
|
+
selectedLabel: z.string(),
|
|
217
|
+
demoBadge: z.string(),
|
|
218
|
+
changeAction: z.string(),
|
|
219
|
+
done: z.string(),
|
|
220
|
+
priceUpdating: z.string(),
|
|
221
|
+
ellipsis: z.string(),
|
|
222
|
+
tierBadge: z.string(),
|
|
223
|
+
tierNext: z.string(),
|
|
224
|
+
tierSee: z.string(),
|
|
225
|
+
tierHide: z.string(),
|
|
226
|
+
tierRange: z.string(),
|
|
227
|
+
tierRangeFrom: z.string(),
|
|
228
|
+
tierCurrent: z.string(),
|
|
229
|
+
associatesTitle: z.string(),
|
|
230
|
+
associatesSummary: z.string(),
|
|
231
|
+
associatesSummaryOne: z.string(),
|
|
232
|
+
associatesAddMore: z.string(),
|
|
233
|
+
associatesHide: z.string(),
|
|
234
|
+
associateMax: z.string(),
|
|
235
|
+
associateLimitReached: z.string(),
|
|
236
|
+
associateOf: z.string(),
|
|
237
|
+
associateNoStock: z.string(),
|
|
238
|
+
associateNotEligible: z.string(),
|
|
239
|
+
associateAdd: z.string(),
|
|
240
|
+
associateAdding: z.string(),
|
|
241
|
+
associateAddError: z.string(),
|
|
242
|
+
associateRemoving: z.string(),
|
|
243
|
+
associateAdjusted: z.string(),
|
|
244
|
+
associateRemoved: z.string(),
|
|
245
|
+
associateMainRemoved: z.string(),
|
|
246
|
+
removeMainWarning: z.string(),
|
|
247
|
+
removeMainConfirm: z.string(),
|
|
248
|
+
associateKeep: z.string(),
|
|
249
|
+
associatePreviousUnit: z.string(),
|
|
250
|
+
associateTotalSaving: z.string(),
|
|
251
|
+
associateSavings: z.string(),
|
|
252
|
+
associateOptionsNone: z.string(),
|
|
253
|
+
decreaseSymbol: z.string(),
|
|
254
|
+
increaseSymbol: z.string(),
|
|
255
|
+
checkSymbol: z.string(),
|
|
256
|
+
}),
|
|
257
|
+
coupons: z.array(checkoutCommerceV1ItemSchema),
|
|
258
|
+
paymentMethods: z.array(z.object({
|
|
259
|
+
id: z.string(),
|
|
260
|
+
label: z.string(),
|
|
261
|
+
detail: z.string(),
|
|
262
|
+
kind: z.string(),
|
|
263
|
+
enabled: z.boolean(),
|
|
264
|
+
reason: z.string(),
|
|
265
|
+
})),
|
|
266
|
+
countries: z.array(z.object({
|
|
267
|
+
code: z.string(),
|
|
268
|
+
name: z.string(),
|
|
269
|
+
postalCode: z.string(),
|
|
270
|
+
provinces: z.array(z.object({
|
|
271
|
+
name: z.string(),
|
|
272
|
+
cities: z.array(z.string()),
|
|
273
|
+
})),
|
|
274
|
+
})),
|
|
275
|
+
scenarios: z.array(z.object({
|
|
276
|
+
id: z.string(),
|
|
277
|
+
name: z.string(),
|
|
278
|
+
blurb: z.string(),
|
|
279
|
+
customer: z.object({
|
|
280
|
+
name: z.string(),
|
|
281
|
+
email: z.string(),
|
|
282
|
+
phone: z.string(),
|
|
283
|
+
sessionState: z.string(),
|
|
284
|
+
addresses: z.array(z.object({
|
|
285
|
+
id: z.string(),
|
|
286
|
+
label: z.string(),
|
|
287
|
+
recipient: z.string(),
|
|
288
|
+
line1: z.string(),
|
|
289
|
+
line2: z.string(),
|
|
290
|
+
city: z.string(),
|
|
291
|
+
province: z.string(),
|
|
292
|
+
postalCode: z.string(),
|
|
293
|
+
phone: z.string(),
|
|
294
|
+
isDefault: z.boolean(),
|
|
295
|
+
})),
|
|
296
|
+
defaultAddressId: z.string(),
|
|
297
|
+
}),
|
|
298
|
+
groups: z.array(z.object({
|
|
299
|
+
id: z.string(),
|
|
300
|
+
title: z.string(),
|
|
301
|
+
origin: z.string(),
|
|
302
|
+
modes: z.array(z.string()),
|
|
303
|
+
initialMode: z.string(),
|
|
304
|
+
items: z.array(z.object({
|
|
305
|
+
lineId: z.string(),
|
|
306
|
+
title: z.string(),
|
|
307
|
+
variant: z.string(),
|
|
308
|
+
image: z.string().optional(),
|
|
309
|
+
unitCents: z.number(),
|
|
310
|
+
quantity: z.number(),
|
|
311
|
+
stock: z.number(),
|
|
312
|
+
tiers: z.array(z.object({
|
|
313
|
+
minQuantity: z.number(),
|
|
314
|
+
maxQuantity: z.number(),
|
|
315
|
+
unitCents: z.number(),
|
|
316
|
+
})).optional(),
|
|
317
|
+
associates: z.array(z.object({
|
|
318
|
+
id: z.string(),
|
|
319
|
+
lineId: z.string(),
|
|
320
|
+
title: z.string(),
|
|
321
|
+
variant: z.string(),
|
|
322
|
+
image: z.string().optional(),
|
|
323
|
+
unitCents: z.number(),
|
|
324
|
+
regularCents: z.number().optional(),
|
|
325
|
+
discountLabel: z.string().optional(),
|
|
326
|
+
tiers: z.array(z.object({
|
|
327
|
+
minQuantity: z.number(),
|
|
328
|
+
maxQuantity: z.number(),
|
|
329
|
+
unitCents: z.number(),
|
|
330
|
+
})).optional(),
|
|
331
|
+
lineDiscountCents: z.number().optional(),
|
|
332
|
+
lineDiscountLabel: z.string().optional(),
|
|
333
|
+
minQuantity: z.number().optional(),
|
|
334
|
+
maxQuantity: z.number(),
|
|
335
|
+
maxPerMain: z.number().optional(),
|
|
336
|
+
stock: z.number(),
|
|
337
|
+
groupId: z.string(),
|
|
338
|
+
initialQuantity: z.number().optional(),
|
|
339
|
+
eligible: z.boolean().optional(),
|
|
340
|
+
reason: z.string().optional(),
|
|
341
|
+
overflowPolicy: z.string().optional(),
|
|
342
|
+
simulateFailure: z.boolean().optional(),
|
|
343
|
+
})).optional(),
|
|
344
|
+
lineDiscountCents: z.number().optional(),
|
|
345
|
+
lineDiscountLabel: z.string().optional(),
|
|
346
|
+
})),
|
|
347
|
+
shippingOptions: z.array(z.object({
|
|
348
|
+
id: z.string(),
|
|
349
|
+
label: z.string(),
|
|
350
|
+
feeCents: z.number(),
|
|
351
|
+
eta: z.string(),
|
|
352
|
+
note: z.string(),
|
|
353
|
+
discountCents: z.number().optional(),
|
|
354
|
+
promotionLabel: z.string().optional(),
|
|
355
|
+
})),
|
|
356
|
+
pickupPoints: z.array(z.object({
|
|
357
|
+
id: z.string(),
|
|
358
|
+
label: z.string(),
|
|
359
|
+
address: z.string(),
|
|
360
|
+
hours: z.string(),
|
|
361
|
+
feeCents: z.number(),
|
|
362
|
+
note: z.string(),
|
|
363
|
+
discountCents: z.number().optional(),
|
|
364
|
+
promotionLabel: z.string().optional(),
|
|
365
|
+
available: z.boolean().optional(),
|
|
366
|
+
unavailableReason: z.string().optional(),
|
|
367
|
+
})),
|
|
368
|
+
initialShippingOptionId: z.string(),
|
|
369
|
+
initialPickupPointId: z.string(),
|
|
370
|
+
blockedAddresses: z.array(z.string()).optional(),
|
|
371
|
+
eta: z.string(),
|
|
372
|
+
rateState: z.string(),
|
|
373
|
+
special: z.boolean(),
|
|
374
|
+
note: z.string(),
|
|
375
|
+
})),
|
|
376
|
+
paymentIds: z.array(z.string()),
|
|
377
|
+
selectedPaymentId: z.string(),
|
|
378
|
+
promotions: z.array(z.object({
|
|
379
|
+
id: z.string(),
|
|
380
|
+
label: z.string(),
|
|
381
|
+
kind: z.string(),
|
|
382
|
+
amountCents: z.number(),
|
|
383
|
+
code: z.string(),
|
|
384
|
+
})),
|
|
385
|
+
taxRateBps: z.number(),
|
|
386
|
+
extraCents: z.number(),
|
|
387
|
+
extraLabel: z.string(),
|
|
388
|
+
billingAddressId: z.string(),
|
|
389
|
+
sameAsShipping: z.boolean(),
|
|
390
|
+
simulateFailure: z.boolean(),
|
|
391
|
+
loading: z.boolean(),
|
|
392
|
+
notice: z.string(),
|
|
393
|
+
})),
|
|
394
|
+
})
|
|
395
|
+
|
|
396
|
+
export const checkoutCommerceV1PropsSchema = z.object({
|
|
397
|
+
data: checkoutCommerceV1DataSchema,
|
|
398
|
+
})
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
// Optional section fragment: customer-profile (mirrors recipes/sections.json) — shared contract.
|
|
2
|
+
// Zod mirror of the CustomerProfile block contract (delivery customer-profile, contract version 4.2.0),
|
|
3
|
+
// shared by the server catalog (customer-profile.tsx) and the client registry (customer-profile.client.tsx).
|
|
4
|
+
// The React-only callbacks (onManageOrganization, onRequestVerification, onRetry) are intentionally excluded.
|
|
5
|
+
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
|
|
8
|
+
export const customerProfilePropsSchema = z.object({
|
|
9
|
+
labels: z.object({
|
|
10
|
+
heading: z.string(),
|
|
11
|
+
description: z.string(),
|
|
12
|
+
accountTypeIndividual: z.string(),
|
|
13
|
+
accountTypeBusiness: z.string(),
|
|
14
|
+
edit: z.string(),
|
|
15
|
+
save: z.string(),
|
|
16
|
+
saving: z.string(),
|
|
17
|
+
cancel: z.string(),
|
|
18
|
+
saved: z.string(),
|
|
19
|
+
incomplete: z.string(),
|
|
20
|
+
readOnly: z.string(),
|
|
21
|
+
optional: z.string(),
|
|
22
|
+
emptyValue: z.string(),
|
|
23
|
+
yes: z.string(),
|
|
24
|
+
no: z.string(),
|
|
25
|
+
loading: z.string(),
|
|
26
|
+
sections: z.object({
|
|
27
|
+
personal: z.object({
|
|
28
|
+
title: z.string(),
|
|
29
|
+
description: z.string(),
|
|
30
|
+
}),
|
|
31
|
+
contact: z.object({
|
|
32
|
+
title: z.string(),
|
|
33
|
+
description: z.string(),
|
|
34
|
+
}),
|
|
35
|
+
preferences: z.object({
|
|
36
|
+
title: z.string(),
|
|
37
|
+
description: z.string(),
|
|
38
|
+
}),
|
|
39
|
+
professional: z.object({
|
|
40
|
+
title: z.string(),
|
|
41
|
+
description: z.string(),
|
|
42
|
+
}),
|
|
43
|
+
custom: z.object({
|
|
44
|
+
title: z.string(),
|
|
45
|
+
description: z.string(),
|
|
46
|
+
}),
|
|
47
|
+
}),
|
|
48
|
+
fields: z.object({
|
|
49
|
+
firstName: z.string(),
|
|
50
|
+
lastName: z.string(),
|
|
51
|
+
middleName: z.string(),
|
|
52
|
+
preferredName: z.string(),
|
|
53
|
+
birthDate: z.string(),
|
|
54
|
+
email: z.string(),
|
|
55
|
+
phone: z.string(),
|
|
56
|
+
phoneCountry: z.string(),
|
|
57
|
+
language: z.string(),
|
|
58
|
+
currency: z.string(),
|
|
59
|
+
timezone: z.string(),
|
|
60
|
+
marketingEmail: z.string(),
|
|
61
|
+
marketingSms: z.string(),
|
|
62
|
+
commercial: z.string(),
|
|
63
|
+
jobTitle: z.string(),
|
|
64
|
+
department: z.string(),
|
|
65
|
+
workPhone: z.string(),
|
|
66
|
+
}),
|
|
67
|
+
verification: z.object({
|
|
68
|
+
verified: z.string(),
|
|
69
|
+
unverified: z.string(),
|
|
70
|
+
pending: z.string(),
|
|
71
|
+
failed: z.string(),
|
|
72
|
+
verifyEmail: z.string(),
|
|
73
|
+
verifyPhone: z.string(),
|
|
74
|
+
changePending: z.string(),
|
|
75
|
+
phoneChangePending: z.string(),
|
|
76
|
+
transactional: z.string(),
|
|
77
|
+
consentSource: z.string(),
|
|
78
|
+
}),
|
|
79
|
+
organizations: z.object({
|
|
80
|
+
title: z.string(),
|
|
81
|
+
empty: z.string(),
|
|
82
|
+
manage: z.string(),
|
|
83
|
+
active: z.string(),
|
|
84
|
+
role: z.string(),
|
|
85
|
+
status: z.object({
|
|
86
|
+
active: z.string(),
|
|
87
|
+
invited: z.string(),
|
|
88
|
+
suspended: z.string(),
|
|
89
|
+
}),
|
|
90
|
+
}),
|
|
91
|
+
custom: z.object({
|
|
92
|
+
empty: z.string(),
|
|
93
|
+
readOnlyField: z.string(),
|
|
94
|
+
}),
|
|
95
|
+
validation: z.record(z.string(), z.string()),
|
|
96
|
+
validationSummary: z.string(),
|
|
97
|
+
errors: z.object({
|
|
98
|
+
load: z.string(),
|
|
99
|
+
forbidden: z.string(),
|
|
100
|
+
save: z.string(),
|
|
101
|
+
retry: z.string(),
|
|
102
|
+
dismiss: z.string(),
|
|
103
|
+
}),
|
|
104
|
+
discard: z.object({
|
|
105
|
+
title: z.string(),
|
|
106
|
+
body: z.string(),
|
|
107
|
+
confirm: z.string(),
|
|
108
|
+
cancel: z.string(),
|
|
109
|
+
}),
|
|
110
|
+
empty: z.object({
|
|
111
|
+
title: z.string(),
|
|
112
|
+
body: z.string(),
|
|
113
|
+
}),
|
|
114
|
+
}).optional(),
|
|
115
|
+
capabilities: z.object({
|
|
116
|
+
avatar: z.boolean().optional(),
|
|
117
|
+
personalInformation: z.boolean().optional(),
|
|
118
|
+
contactInformation: z.boolean().optional(),
|
|
119
|
+
emailChange: z.boolean().optional(),
|
|
120
|
+
phoneChange: z.boolean().optional(),
|
|
121
|
+
emailVerification: z.boolean().optional(),
|
|
122
|
+
phoneVerification: z.boolean().optional(),
|
|
123
|
+
preferences: z.boolean().optional(),
|
|
124
|
+
marketingPreferences: z.boolean().optional(),
|
|
125
|
+
professionalInformation: z.boolean().optional(),
|
|
126
|
+
organizations: z.boolean().optional(),
|
|
127
|
+
customFields: z.boolean().optional(),
|
|
128
|
+
}).optional(),
|
|
129
|
+
permissions: z.object({
|
|
130
|
+
editPersonal: z.boolean().optional(),
|
|
131
|
+
editContact: z.boolean().optional(),
|
|
132
|
+
editPreferences: z.boolean().optional(),
|
|
133
|
+
editProfessional: z.boolean().optional(),
|
|
134
|
+
editCustom: z.boolean().optional(),
|
|
135
|
+
}).optional(),
|
|
136
|
+
defaultEditing: z.enum(["personal", "contact", "preferences", "professional", "custom"]).optional(),
|
|
137
|
+
lang: z.string().optional(),
|
|
138
|
+
})
|
package/assets/templates/app/lib/__STOREFRONT__/views/sections/schema.marketplace-product-card.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// Optional section fragment: marketplace-product-card (mirrors recipes/sections.json) — shared contract.
|
|
2
|
+
// Zod mirror of the MarketplaceProductCard block contract (delivery marketplace-product-card, contract version 3.0.2),
|
|
3
|
+
// shared by the server catalog (marketplace-product-card.tsx) and the client registry (marketplace-product-card.client.tsx).
|
|
4
|
+
// The React-only callbacks (onAddToCart, onToggleWishlist) are intentionally excluded.
|
|
5
|
+
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
import { moneySchema } from '@thorprovider/blocks/contracts'
|
|
8
|
+
|
|
9
|
+
export const marketplaceProductCardDataSchema = z.object({
|
|
10
|
+
product: z.object({
|
|
11
|
+
id: z.string(),
|
|
12
|
+
brand: z.string(),
|
|
13
|
+
title: z.string(),
|
|
14
|
+
badge: z.string(),
|
|
15
|
+
rating: z.number(),
|
|
16
|
+
reviewCount: z.number(),
|
|
17
|
+
ratingLabel: z.string(),
|
|
18
|
+
soldLabel: z.string(),
|
|
19
|
+
shippingLabel: z.string(),
|
|
20
|
+
deliveryLabel: z.string(),
|
|
21
|
+
currency: z.string(),
|
|
22
|
+
locale: z.string(),
|
|
23
|
+
image: z.string(),
|
|
24
|
+
options: z.array(z.object({
|
|
25
|
+
id: z.string(),
|
|
26
|
+
name: z.string(),
|
|
27
|
+
kind: z.enum(["image", "text"]),
|
|
28
|
+
values: z.array(z.object({
|
|
29
|
+
id: z.string(),
|
|
30
|
+
label: z.string(),
|
|
31
|
+
image: z.string().optional(),
|
|
32
|
+
imageAlt: z.string().optional(),
|
|
33
|
+
})),
|
|
34
|
+
})),
|
|
35
|
+
variants: z.array(z.object({
|
|
36
|
+
id: z.string(),
|
|
37
|
+
optionValueIds: z.object({
|
|
38
|
+
colour: z.string(),
|
|
39
|
+
size: z.string(),
|
|
40
|
+
}),
|
|
41
|
+
price: moneySchema,
|
|
42
|
+
compareAtPrice: moneySchema.optional(),
|
|
43
|
+
available: z.boolean(),
|
|
44
|
+
stockLabel: z.string(),
|
|
45
|
+
stockTone: z.enum(["success", "attention", "destructive"]),
|
|
46
|
+
})),
|
|
47
|
+
}),
|
|
48
|
+
labels: z.object({
|
|
49
|
+
addToCart: z.string(),
|
|
50
|
+
wishlistAdd: z.string(),
|
|
51
|
+
wishlistRemove: z.string(),
|
|
52
|
+
unavailableOption: z.string(),
|
|
53
|
+
unavailablePrice: z.string(),
|
|
54
|
+
outOfStock: z.string(),
|
|
55
|
+
optionSeparator: z.string(),
|
|
56
|
+
}),
|
|
57
|
+
glyphs: z.object({
|
|
58
|
+
fullStar: z.string(),
|
|
59
|
+
emptyStar: z.string(),
|
|
60
|
+
heart: z.string(),
|
|
61
|
+
heartFilled: z.string(),
|
|
62
|
+
}),
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
export const marketplaceProductCardPropsSchema = z.object({
|
|
66
|
+
data: marketplaceProductCardDataSchema,
|
|
67
|
+
})
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// Optional section fragment: mega-menu-universal (mirrors recipes/sections.json) — shared contract.
|
|
2
|
+
// Zod mirror of the MegaMenuUniversal block contract (delivery mega-menu-universal, contract version 4.1.0),
|
|
3
|
+
// shared by the server catalog (mega-menu-universal.tsx) and the client registry (mega-menu-universal.client.tsx).
|
|
4
|
+
// The React-only callbacks (onNavigate, onOpenChange) are intentionally excluded.
|
|
5
|
+
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
|
|
8
|
+
export const megaMenuUniversalItemSchema = z.object({
|
|
9
|
+
id: z.string(),
|
|
10
|
+
label: z.string(),
|
|
11
|
+
href: z.string(),
|
|
12
|
+
children: z.array(z.object({
|
|
13
|
+
id: z.string(),
|
|
14
|
+
label: z.string(),
|
|
15
|
+
href: z.string(),
|
|
16
|
+
})).optional(),
|
|
17
|
+
badge: z.object({
|
|
18
|
+
label: z.string(),
|
|
19
|
+
tone: z.enum(["accent", "promo", "neutral"]),
|
|
20
|
+
}).optional(),
|
|
21
|
+
featured: z.boolean().optional(),
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
export const megaMenuUniversalDataSchema = z.object({
|
|
25
|
+
categories: z.array(megaMenuUniversalItemSchema),
|
|
26
|
+
labels: z.object({
|
|
27
|
+
menuTrigger: z.string(),
|
|
28
|
+
menuTitle: z.string(),
|
|
29
|
+
close: z.string(),
|
|
30
|
+
back: z.string(),
|
|
31
|
+
openSubmenu: z.string(),
|
|
32
|
+
viewAll: z.string(),
|
|
33
|
+
productCount: z.string(),
|
|
34
|
+
productCountOne: z.string(),
|
|
35
|
+
featured: z.string(),
|
|
36
|
+
promotionsTitle: z.string(),
|
|
37
|
+
empty: z.string(),
|
|
38
|
+
emptyHint: z.string(),
|
|
39
|
+
panelLabel: z.string(),
|
|
40
|
+
rootLabel: z.string(),
|
|
41
|
+
crumbSeparator: z.string(),
|
|
42
|
+
moreIn: z.string(),
|
|
43
|
+
keyboardHint: z.string(),
|
|
44
|
+
}),
|
|
45
|
+
config: z.object({
|
|
46
|
+
presentation: z.enum(["auto", "columns", "cascade", "visual", "hybrid"]).optional(),
|
|
47
|
+
mobilePattern: z.enum(["drill-down", "accordion"]).optional(),
|
|
48
|
+
direction: z.enum(["ltr", "rtl"]).optional(),
|
|
49
|
+
openOnHover: z.boolean().optional(),
|
|
50
|
+
openDelayMs: z.number().optional(),
|
|
51
|
+
closeDelayMs: z.number().optional(),
|
|
52
|
+
showCounts: z.boolean().optional(),
|
|
53
|
+
showImages: z.boolean().optional(),
|
|
54
|
+
showBadges: z.boolean().optional(),
|
|
55
|
+
showPromotions: z.boolean().optional(),
|
|
56
|
+
showViewAll: z.boolean().optional(),
|
|
57
|
+
lazyImages: z.boolean().optional(),
|
|
58
|
+
maxColumns: z.number().optional(),
|
|
59
|
+
maxLinksPerColumn: z.number().optional(),
|
|
60
|
+
deepLevelLimit: z.number().optional(),
|
|
61
|
+
}),
|
|
62
|
+
promotions: z.array(z.object({
|
|
63
|
+
id: z.string(),
|
|
64
|
+
eyebrow: z.string().optional(),
|
|
65
|
+
title: z.string(),
|
|
66
|
+
body: z.string().optional(),
|
|
67
|
+
image: z.string().optional(),
|
|
68
|
+
imageAlt: z.string().optional(),
|
|
69
|
+
href: z.string(),
|
|
70
|
+
ctaLabel: z.string(),
|
|
71
|
+
})),
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
export const megaMenuUniversalPropsSchema = z.object({
|
|
75
|
+
data: megaMenuUniversalDataSchema,
|
|
76
|
+
})
|