@loczer/storefront-sdk 0.222.0 → 0.224.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 +14 -0
- package/dist/StorefrontContext.d.ts.map +1 -1
- package/dist/StorefrontProvider.d.ts +7 -0
- package/dist/StorefrontProvider.d.ts.map +1 -1
- package/dist/components/Footer/index.d.ts +2 -1
- package/dist/components/Footer/index.d.ts.map +1 -1
- package/dist/components/Footer/index.js +32 -28
- package/dist/components/Layout/index.d.ts.map +1 -1
- package/dist/components/Layout/index.js +47 -45
- package/dist/components/StorefrontInformationDocument/index.d.ts +13 -0
- package/dist/components/StorefrontInformationDocument/index.d.ts.map +1 -0
- package/dist/components/StorefrontInformationDocument/index.js +48 -0
- package/dist/i18n/en.d.ts +4 -0
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +5 -1
- package/dist/i18n/fr.d.ts +4 -0
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +5 -1
- package/dist/index.d.ts +53 -1
- package/dist/index.js +9 -8
- package/dist/lib/checkoutPaymentDecision.d.ts +1 -0
- package/dist/lib/checkoutPaymentDecision.d.ts.map +1 -1
- package/dist/lib/checkoutPaymentDecision.js +1 -0
- package/dist/lib/contractSaleDocument.d.ts +3 -0
- package/dist/lib/contractSaleDocument.d.ts.map +1 -1
- package/dist/lib/contractSaleDocument.js +1 -0
- package/dist/lib/contractSaleDocumentApi.d.ts +3 -0
- package/dist/lib/contractSaleDocumentApi.d.ts.map +1 -1
- package/dist/lib/richText.d.ts +3 -0
- package/dist/lib/richText.d.ts.map +1 -0
- package/dist/lib/richText.js +19 -0
- package/dist/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPage.js +156 -154
- package/dist/pages/ContractSaleDocumentPage.d.ts +1 -1
- package/dist/pages/InsuranceTermsPage.d.ts +2 -0
- package/dist/pages/InsuranceTermsPage.d.ts.map +1 -0
- package/dist/pages/InsuranceTermsPage.js +22 -0
- package/dist/pages/RentalTermsPage.d.ts.map +1 -1
- package/dist/pages/RentalTermsPage.js +15 -46
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +14 -10
- package/dist/storefrontSchemas.d.ts +14 -0
- package/dist/storefrontSchemas.d.ts.map +1 -1
- package/dist/storefrontSchemas.js +3 -1
- package/package.json +1 -1
package/dist/routes.js
CHANGED
|
@@ -3,10 +3,10 @@ import t from "./pages/ErrorPage.js";
|
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
import { Route as i, lazyRoute as a } from "@rpcbase/router";
|
|
5
5
|
//#region src/routes.tsx
|
|
6
|
-
var o = a(() => import("./StorefrontProvider.js")), s = a(() => import("./pages/HomePage.js")), c = a(() => import("./pages/BookingPage.js")), l = a(() => import("./pages/ProductPage.js")), u = a(() => import("./pages/ItinerariesPage.js")), d = a(() => import("./pages/ItineraryDetailsPage.js")), f = a(() => import("./pages/RentalTermsPage.js")), p = a(() => import("./pages/
|
|
6
|
+
var o = a(() => import("./StorefrontProvider.js")), s = a(() => import("./pages/HomePage.js")), c = a(() => import("./pages/BookingPage.js")), l = a(() => import("./pages/ProductPage.js")), u = a(() => import("./pages/ItinerariesPage.js")), d = a(() => import("./pages/ItineraryDetailsPage.js")), f = a(() => import("./pages/RentalTermsPage.js")), p = a(() => import("./pages/InsuranceTermsPage.js")), m = a(() => import("./pages/CheckoutPage.js")), h = a(() => import("./pages/CheckoutPaymentPage.js")), g = a(() => import("./pages/CheckoutSuccessPage.js")), _ = a(() => import("./pages/ContractSaleDocumentPage.js")), v = a(() => import("./pages/PaymentLinkPage.js")), y = a(() => import("./pages/PaymentLinkSuccessPage.js")), b = a(() => import("./pages/NotFoundPage.js")), x = ({ currentParams: e, nextParams: t, defaultShouldRevalidate: n }) => e.storeSlug !== t.storeSlug && n, S = /* @__PURE__ */ r(i, {
|
|
7
7
|
path: ":storeSlug/*",
|
|
8
8
|
...o,
|
|
9
|
-
shouldRevalidate:
|
|
9
|
+
shouldRevalidate: x,
|
|
10
10
|
errorElement: /* @__PURE__ */ n(e, { children: /* @__PURE__ */ n(t, {}) }),
|
|
11
11
|
children: [
|
|
12
12
|
/* @__PURE__ */ n(i, {
|
|
@@ -34,34 +34,38 @@ var o = a(() => import("./StorefrontProvider.js")), s = a(() => import("./pages/
|
|
|
34
34
|
...f
|
|
35
35
|
}),
|
|
36
36
|
/* @__PURE__ */ n(i, {
|
|
37
|
-
path: "
|
|
37
|
+
path: "insurance-terms",
|
|
38
38
|
...p
|
|
39
39
|
}),
|
|
40
40
|
/* @__PURE__ */ n(i, {
|
|
41
|
-
path: "checkout
|
|
41
|
+
path: "checkout",
|
|
42
42
|
...m
|
|
43
43
|
}),
|
|
44
44
|
/* @__PURE__ */ n(i, {
|
|
45
|
-
path: "checkout/
|
|
45
|
+
path: "checkout/payment",
|
|
46
46
|
...h
|
|
47
47
|
}),
|
|
48
48
|
/* @__PURE__ */ n(i, {
|
|
49
|
-
path: "
|
|
49
|
+
path: "checkout/success",
|
|
50
50
|
...g
|
|
51
51
|
}),
|
|
52
52
|
/* @__PURE__ */ n(i, {
|
|
53
|
-
path: "
|
|
53
|
+
path: "docs/:referenceId/:saleDocumentId",
|
|
54
54
|
..._
|
|
55
55
|
}),
|
|
56
56
|
/* @__PURE__ */ n(i, {
|
|
57
|
-
path: "secure-payment-link/:token
|
|
57
|
+
path: "secure-payment-link/:token",
|
|
58
58
|
...v
|
|
59
59
|
}),
|
|
60
60
|
/* @__PURE__ */ n(i, {
|
|
61
|
-
path: "
|
|
61
|
+
path: "secure-payment-link/:token/success",
|
|
62
62
|
...y
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ n(i, {
|
|
65
|
+
path: "*",
|
|
66
|
+
...b
|
|
63
67
|
})
|
|
64
68
|
]
|
|
65
69
|
});
|
|
66
70
|
//#endregion
|
|
67
|
-
export {
|
|
71
|
+
export { S as default };
|
|
@@ -19,6 +19,13 @@ export declare const storefrontInformationSchema: z.ZodObject<{
|
|
|
19
19
|
text: z.ZodString;
|
|
20
20
|
}, z.core.$strict>>;
|
|
21
21
|
rentalTermsUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
insuranceTerms: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
version: z.ZodLiteral<1>;
|
|
24
|
+
json: z.ZodString;
|
|
25
|
+
html: z.ZodString;
|
|
26
|
+
text: z.ZodString;
|
|
27
|
+
}, z.core.$strict>>;
|
|
28
|
+
insuranceTermsUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
29
|
}, z.core.$strip>;
|
|
23
30
|
export type StorefrontInformation = z.infer<typeof storefrontInformationSchema>;
|
|
24
31
|
export declare const storefrontStatusSchema: z.ZodEnum<{
|
|
@@ -606,6 +613,13 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
|
|
|
606
613
|
text: z.ZodString;
|
|
607
614
|
}, z.core.$strict>>;
|
|
608
615
|
rentalTermsUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
616
|
+
insuranceTerms: z.ZodOptional<z.ZodObject<{
|
|
617
|
+
version: z.ZodLiteral<1>;
|
|
618
|
+
json: z.ZodString;
|
|
619
|
+
html: z.ZodString;
|
|
620
|
+
text: z.ZodString;
|
|
621
|
+
}, z.core.$strict>>;
|
|
622
|
+
insuranceTermsUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
609
623
|
}, z.core.$strip>>;
|
|
610
624
|
modules: z.ZodOptional<z.ZodObject<{
|
|
611
625
|
reviews: z.ZodOptional<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storefrontSchemas.d.ts","sourceRoot":"","sources":["../src/storefrontSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA0BvB,eAAO,MAAM,wBAAwB;;;;;k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AA;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"}
|
|
@@ -15,7 +15,9 @@ var i = r.string().trim().regex(/^\+[1-9]\d{1,14}$/, { message: "Invalid phone n
|
|
|
15
15
|
text: r.string()
|
|
16
16
|
}).strict(), l = r.record(r.string().min(2), c).refine((e) => Object.keys(e).length > 0, { message: "Add at least one translation." }), u = r.object({
|
|
17
17
|
rentalTerms: c.optional(),
|
|
18
|
-
rentalTermsUpdatedAt: r.string().datetime({ offset: !0 }).nullable().optional()
|
|
18
|
+
rentalTermsUpdatedAt: r.string().datetime({ offset: !0 }).nullable().optional(),
|
|
19
|
+
insuranceTerms: c.optional(),
|
|
20
|
+
insuranceTermsUpdatedAt: r.string().datetime({ offset: !0 }).nullable().optional()
|
|
19
21
|
}), d = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), f = (e) => {
|
|
20
22
|
let t = e.trim(), n = t.split(/\n+/).map((e) => e.trim()).filter(Boolean), r = n.length > 0 ? n.map((e) => ({
|
|
21
23
|
type: "paragraph",
|