@loczer/storefront-sdk 0.239.0 → 0.240.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/dist/StorefrontContext.d.ts +54 -0
- package/dist/StorefrontContext.d.ts.map +1 -1
- package/dist/StorefrontProvider.d.ts +27 -0
- package/dist/StorefrontProvider.d.ts.map +1 -1
- package/dist/components/ContractSaleDocument/InvoiceDetails.js +1 -1
- package/dist/components/ContractSaleDocument/SignatureModal.d.ts.map +1 -1
- package/dist/components/ContractSaleDocument/SignatureModal.js +79 -54
- package/dist/components/FaqSection/index.d.ts.map +1 -1
- package/dist/components/FaqSection/index.js +44 -26
- package/dist/components/SignatureInput/index.js +2 -1
- package/dist/components/SignatureInput.d.ts.map +1 -1
- package/dist/components/StorefrontInformationDocument/index.d.ts +4 -0
- package/dist/components/StorefrontInformationDocument/index.d.ts.map +1 -1
- package/dist/components/StorefrontInformationDocument/index.js +20 -11
- package/dist/i18n/en.js +1 -1
- package/dist/i18n/fr.js +1 -1
- package/dist/index.d.ts +172 -0
- package/dist/index.js +73 -73
- package/dist/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPage.js +152 -151
- package/dist/pages/InsuranceTermsPage.d.ts.map +1 -1
- package/dist/pages/InsuranceTermsPage.js +18 -16
- package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts +2 -1
- package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts.map +1 -1
- package/dist/pages/checkout/components/CheckoutDetailsCard.js +17 -14
- package/dist/storefront.css +1 -1
- package/dist/storefrontSchemas.d.ts +89 -0
- package/dist/storefrontSchemas.d.ts.map +1 -1
- package/dist/storefrontSchemas.js +19 -15
- package/package.json +1 -1
|
@@ -104,6 +104,15 @@ export declare const storefrontWorkspaceSchema: z.ZodObject<{
|
|
|
104
104
|
languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
105
105
|
}, z.core.$strip>;
|
|
106
106
|
export type StorefrontWorkspace = z.infer<typeof storefrontWorkspaceSchema>;
|
|
107
|
+
export declare const storefrontFaqAdditionalLinkSchema: z.ZodObject<{
|
|
108
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
109
|
+
value: z.ZodString;
|
|
110
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
111
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
112
|
+
}, z.core.$loose>>;
|
|
113
|
+
href: z.ZodString;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
export type StorefrontFaqAdditionalLink = z.infer<typeof storefrontFaqAdditionalLinkSchema>;
|
|
107
116
|
export declare const storefrontFaqItemSchema: z.ZodObject<{
|
|
108
117
|
id: z.ZodString;
|
|
109
118
|
question: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -116,6 +125,14 @@ export declare const storefrontFaqItemSchema: z.ZodObject<{
|
|
|
116
125
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
117
126
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
118
127
|
}, z.core.$loose>>;
|
|
128
|
+
additionalLink: z.ZodOptional<z.ZodObject<{
|
|
129
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
130
|
+
value: z.ZodString;
|
|
131
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
132
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
+
}, z.core.$loose>>;
|
|
134
|
+
href: z.ZodString;
|
|
135
|
+
}, z.core.$strip>>;
|
|
119
136
|
}, z.core.$strip>;
|
|
120
137
|
export type StorefrontFaqItem = z.infer<typeof storefrontFaqItemSchema>;
|
|
121
138
|
export declare const storefrontModalMessageSchema: z.ZodObject<{
|
|
@@ -156,6 +173,14 @@ export declare const storefrontFaqSchema: z.ZodObject<{
|
|
|
156
173
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
157
174
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
158
175
|
}, z.core.$loose>>;
|
|
176
|
+
additionalLink: z.ZodOptional<z.ZodObject<{
|
|
177
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
178
|
+
value: z.ZodString;
|
|
179
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
180
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
+
}, z.core.$loose>>;
|
|
182
|
+
href: z.ZodString;
|
|
183
|
+
}, z.core.$strip>>;
|
|
159
184
|
}, z.core.$strip>>>;
|
|
160
185
|
deliveries: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
161
186
|
id: z.ZodString;
|
|
@@ -169,6 +194,14 @@ export declare const storefrontFaqSchema: z.ZodObject<{
|
|
|
169
194
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
170
195
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
171
196
|
}, z.core.$loose>>;
|
|
197
|
+
additionalLink: z.ZodOptional<z.ZodObject<{
|
|
198
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
199
|
+
value: z.ZodString;
|
|
200
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
201
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
202
|
+
}, z.core.$loose>>;
|
|
203
|
+
href: z.ZodString;
|
|
204
|
+
}, z.core.$strip>>;
|
|
172
205
|
}, z.core.$strip>>>;
|
|
173
206
|
booking: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
174
207
|
id: z.ZodString;
|
|
@@ -182,6 +215,14 @@ export declare const storefrontFaqSchema: z.ZodObject<{
|
|
|
182
215
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
183
216
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
184
217
|
}, z.core.$loose>>;
|
|
218
|
+
additionalLink: z.ZodOptional<z.ZodObject<{
|
|
219
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
220
|
+
value: z.ZodString;
|
|
221
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
222
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
223
|
+
}, z.core.$loose>>;
|
|
224
|
+
href: z.ZodString;
|
|
225
|
+
}, z.core.$strip>>;
|
|
185
226
|
}, z.core.$strip>>>;
|
|
186
227
|
}, z.core.$strip>;
|
|
187
228
|
export type StorefrontFaq = z.infer<typeof storefrontFaqSchema>;
|
|
@@ -255,6 +296,14 @@ export declare const storefrontContentSchema: z.ZodObject<{
|
|
|
255
296
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
256
297
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
257
298
|
}, z.core.$loose>>;
|
|
299
|
+
additionalLink: z.ZodOptional<z.ZodObject<{
|
|
300
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
301
|
+
value: z.ZodString;
|
|
302
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
303
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
304
|
+
}, z.core.$loose>>;
|
|
305
|
+
href: z.ZodString;
|
|
306
|
+
}, z.core.$strip>>;
|
|
258
307
|
}, z.core.$strip>>>;
|
|
259
308
|
deliveries: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
260
309
|
id: z.ZodString;
|
|
@@ -268,6 +317,14 @@ export declare const storefrontContentSchema: z.ZodObject<{
|
|
|
268
317
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
269
318
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
270
319
|
}, z.core.$loose>>;
|
|
320
|
+
additionalLink: z.ZodOptional<z.ZodObject<{
|
|
321
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
322
|
+
value: z.ZodString;
|
|
323
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
324
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
325
|
+
}, z.core.$loose>>;
|
|
326
|
+
href: z.ZodString;
|
|
327
|
+
}, z.core.$strip>>;
|
|
271
328
|
}, z.core.$strip>>>;
|
|
272
329
|
booking: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
273
330
|
id: z.ZodString;
|
|
@@ -281,6 +338,14 @@ export declare const storefrontContentSchema: z.ZodObject<{
|
|
|
281
338
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
282
339
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
283
340
|
}, z.core.$loose>>;
|
|
341
|
+
additionalLink: z.ZodOptional<z.ZodObject<{
|
|
342
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
343
|
+
value: z.ZodString;
|
|
344
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
345
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
346
|
+
}, z.core.$loose>>;
|
|
347
|
+
href: z.ZodString;
|
|
348
|
+
}, z.core.$strip>>;
|
|
284
349
|
}, z.core.$strip>>>;
|
|
285
350
|
}, z.core.$strip>>;
|
|
286
351
|
}, z.core.$strip>;
|
|
@@ -574,6 +639,14 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
|
|
|
574
639
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
575
640
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
576
641
|
}, z.core.$loose>>;
|
|
642
|
+
additionalLink: z.ZodOptional<z.ZodObject<{
|
|
643
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
644
|
+
value: z.ZodString;
|
|
645
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
646
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
647
|
+
}, z.core.$loose>>;
|
|
648
|
+
href: z.ZodString;
|
|
649
|
+
}, z.core.$strip>>;
|
|
577
650
|
}, z.core.$strip>>>;
|
|
578
651
|
deliveries: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
579
652
|
id: z.ZodString;
|
|
@@ -587,6 +660,14 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
|
|
|
587
660
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
588
661
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
589
662
|
}, z.core.$loose>>;
|
|
663
|
+
additionalLink: z.ZodOptional<z.ZodObject<{
|
|
664
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
665
|
+
value: z.ZodString;
|
|
666
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
667
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
668
|
+
}, z.core.$loose>>;
|
|
669
|
+
href: z.ZodString;
|
|
670
|
+
}, z.core.$strip>>;
|
|
590
671
|
}, z.core.$strip>>>;
|
|
591
672
|
booking: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
592
673
|
id: z.ZodString;
|
|
@@ -600,6 +681,14 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
|
|
|
600
681
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
601
682
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
602
683
|
}, z.core.$loose>>;
|
|
684
|
+
additionalLink: z.ZodOptional<z.ZodObject<{
|
|
685
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
686
|
+
value: z.ZodString;
|
|
687
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
688
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
689
|
+
}, z.core.$loose>>;
|
|
690
|
+
href: z.ZodString;
|
|
691
|
+
}, z.core.$strip>>;
|
|
603
692
|
}, z.core.$strip>>>;
|
|
604
693
|
}, z.core.$strip>>;
|
|
605
694
|
}, z.core.$strip>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storefrontSchemas.d.ts","sourceRoot":"","sources":["../src/storefrontSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAA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MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAEnF,eAAO,MAAM,uBAAuB;;;;;;;;iBAKlC,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEvE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBASxC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA"}
|
|
@@ -70,10 +70,14 @@ var i = r.string().trim().regex(/^\+[1-9]\d{1,14}$/, { message: "Invalid phone n
|
|
|
70
70
|
workspaceLanguage: r.enum(n).optional(),
|
|
71
71
|
languages: r.array(r.string().min(1)).optional()
|
|
72
72
|
}), T = r.object({
|
|
73
|
+
label: s,
|
|
74
|
+
href: r.string().trim().min(1)
|
|
75
|
+
}), E = r.object({
|
|
73
76
|
id: r.string().min(1),
|
|
74
77
|
question: s,
|
|
75
|
-
answer: s
|
|
76
|
-
|
|
78
|
+
answer: s,
|
|
79
|
+
additionalLink: T.optional()
|
|
80
|
+
}), D = r.object({
|
|
77
81
|
id: r.string().min(1),
|
|
78
82
|
enabled: r.boolean().default(!0),
|
|
79
83
|
showOnEachVisit: r.boolean().default(!1),
|
|
@@ -83,11 +87,11 @@ var i = r.string().trim().regex(/^\+[1-9]\d{1,14}$/, { message: "Invalid phone n
|
|
|
83
87
|
subtitle: o.optional(),
|
|
84
88
|
message: p.optional(),
|
|
85
89
|
imageIds: r.array(r.string().min(1)).default([])
|
|
86
|
-
}), D = r.object({
|
|
87
|
-
general: r.array(T).default([]),
|
|
88
|
-
deliveries: r.array(T).default([]),
|
|
89
|
-
booking: r.array(T).default([])
|
|
90
90
|
}), O = r.object({
|
|
91
|
+
general: r.array(E).default([]),
|
|
92
|
+
deliveries: r.array(E).default([]),
|
|
93
|
+
booking: r.array(E).default([])
|
|
94
|
+
}), k = r.object({
|
|
91
95
|
heroMode: b.default("current_booking_hero"),
|
|
92
96
|
tagline: o.optional(),
|
|
93
97
|
logoSquareImageId: r.string().min(1).optional(),
|
|
@@ -99,27 +103,27 @@ var i = r.string().trim().regex(/^\+[1-9]\d{1,14}$/, { message: "Invalid phone n
|
|
|
99
103
|
whatsappPhone2Enabled: r.boolean().default(!1),
|
|
100
104
|
whatsappMessage: o.optional(),
|
|
101
105
|
showWhatsappFloatingButton: r.boolean().default(!0),
|
|
102
|
-
modalMessages: r.array(
|
|
103
|
-
faq:
|
|
106
|
+
modalMessages: r.array(D).default([]),
|
|
107
|
+
faq: O.default({
|
|
104
108
|
general: [],
|
|
105
109
|
deliveries: [],
|
|
106
110
|
booking: []
|
|
107
111
|
})
|
|
108
|
-
}),
|
|
112
|
+
}), A = r.object({
|
|
109
113
|
enabled: r.boolean(),
|
|
110
114
|
showRecentReviewsOnStorefront: r.boolean()
|
|
111
|
-
}), A = r.object({
|
|
112
|
-
reviews: k.optional(),
|
|
113
|
-
insurance: r.object({ enabled: r.boolean() }).optional()
|
|
114
115
|
}), j = r.object({
|
|
116
|
+
reviews: A.optional(),
|
|
117
|
+
insurance: r.object({ enabled: r.boolean() }).optional()
|
|
118
|
+
}), M = r.object({
|
|
115
119
|
storeSlug: r.string().min(1),
|
|
116
120
|
workspace: w.optional(),
|
|
117
121
|
shop: C,
|
|
118
122
|
settings: S,
|
|
119
123
|
bookingEngine: h,
|
|
120
|
-
content:
|
|
124
|
+
content: k.optional(),
|
|
121
125
|
information: u.optional(),
|
|
122
|
-
modules:
|
|
126
|
+
modules: j.optional()
|
|
123
127
|
});
|
|
124
128
|
//#endregion
|
|
125
|
-
export { y as STOREFRONT_HERO_MODES, _ as storefrontCheckoutModeSchema,
|
|
129
|
+
export { y as STOREFRONT_HERO_MODES, _ as storefrontCheckoutModeSchema, M as storefrontConfigurationSchema, k as storefrontContentSchema, T as storefrontFaqAdditionalLinkSchema, E as storefrontFaqItemSchema, O as storefrontFaqSchema, v as storefrontFulfillmentModeSchema, b as storefrontHeroModeSchema, u as storefrontInformationSchema, l as storefrontLocalizedRichTextSchema, D as storefrontModalMessageSchema, j as storefrontModulesSchema, A as storefrontReviewsModuleSchema, c as storefrontRichTextSchema, S as storefrontSettingsSchema, C as storefrontShopSchema, g as storefrontStatusSchema, w as storefrontWorkspaceSchema };
|