@loczer/storefront-sdk 0.196.0 → 0.198.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/chunks/pkg/ui/dist/{MorphingModalWizard-j1CgFGLe.js → MorphingModalWizard-DOH1GYVR.js} +1 -0
- package/dist/components/BikeProductCard/index.d.ts +2 -1
- package/dist/components/BikeProductCard/index.d.ts.map +1 -1
- package/dist/components/BikeProductCard/index.js +23 -23
- package/dist/components/BookingBikeQuickAddCard/index.d.ts +19 -0
- package/dist/components/BookingBikeQuickAddCard/index.d.ts.map +1 -0
- package/dist/components/BookingBikeQuickAddCard/index.js +174 -0
- package/dist/components/BookingBikeVariantDialog/index.d.ts +5 -2
- package/dist/components/BookingBikeVariantDialog/index.d.ts.map +1 -1
- package/dist/components/BookingBikeVariantDialog/index.js +76 -90
- package/dist/components/BookingPeriodSelector/components/BookingEndDateField.js +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.js +3 -3
- package/dist/components/BookingPeriodSelector/components/BookingStartDateField.js +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.js +3 -3
- package/dist/components/BookingPeriodSelector/components/BookingTimeSlotsStatus.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js +4 -4
- package/dist/components/BookingPeriodSelector/components/internal/BookingHourPickerField.d.ts +1 -1
- package/dist/components/BookingPeriodSelector/components/internal/BookingHourPickerField.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/components/internal/BookingHourPickerField.js +6 -20
- package/dist/components/BookingPeriodSelector/components/internal/StorefrontHourPickerField.d.ts +0 -2
- package/dist/components/BookingPeriodSelector/components/internal/StorefrontHourPickerField.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/components/internal/StorefrontHourPickerField.js +163 -179
- package/dist/components/PlatformFooter/index.js +1 -1
- package/dist/i18n/en.d.ts +2 -0
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +2 -0
- package/dist/i18n/fr.d.ts +2 -0
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +2 -0
- package/dist/index.d.ts +4 -2
- package/dist/pages/BookingPage.d.ts.map +1 -1
- package/dist/pages/BookingPage.js +310 -388
- package/dist/pages/ErrorPage.d.ts.map +1 -1
- package/dist/pages/ErrorPage.js +13 -13
- package/dist/pages/NotFoundPage.js +1 -1
- package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.js +1 -1
- package/dist/storefront.css +1 -1
- package/dist/ui/button.js +3 -3
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorPage.d.ts","sourceRoot":"","sources":["../../src/pages/ErrorPage.tsx"],"names":[],"mappings":"AA4HA,MAAM,CAAC,OAAO,UAAU,SAAS,
|
|
1
|
+
{"version":3,"file":"ErrorPage.d.ts","sourceRoot":"","sources":["../../src/pages/ErrorPage.tsx"],"names":[],"mappings":"AA4HA,MAAM,CAAC,OAAO,UAAU,SAAS,4CA+EhC"}
|
package/dist/pages/ErrorPage.js
CHANGED
|
@@ -43,8 +43,8 @@ function _(e) {
|
|
|
43
43
|
description: "store_unavailable_description"
|
|
44
44
|
};
|
|
45
45
|
case "unknown": return {
|
|
46
|
-
title: "
|
|
47
|
-
description: "
|
|
46
|
+
title: "generic_not_found_title",
|
|
47
|
+
description: "generic_not_found_description"
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -52,14 +52,14 @@ function v(e) {
|
|
|
52
52
|
return null;
|
|
53
53
|
}
|
|
54
54
|
function y() {
|
|
55
|
-
let { t: e } = c(), { storeSlug: a } = o(), f = s(), p = h(f), m = p === 404, y = g(f, p), b = y !== null, x = v(f),
|
|
55
|
+
let { t: e } = c(), { storeSlug: a } = o(), f = s(), p = h(f), m = p === 404, y = g(f, p), b = y !== null, x = y !== null && y.status !== "unknown", S = v(f), C = y ? _(y.status) : null, w = C?.title ?? (m ? "not_found_title" : "error_title"), T = C?.description ?? (m ? "not_found_description" : "error_description"), E = y?.status === "moved" ? y.replacementSlug : void 0, D = x ? E ? `/${encodeURIComponent(E)}` : null : y?.status === "unknown" ? null : `/${a ?? ""}`, O = E ? "go_to_moved_storefront" : "back_to_home";
|
|
56
56
|
return t(() => {
|
|
57
57
|
document.documentElement.setAttribute("data-hydrated", "true"), b && document.querySelectorAll("vite-error-overlay").forEach((e) => {
|
|
58
58
|
e.remove();
|
|
59
|
-
}), m || (console.error(f), console.error(
|
|
59
|
+
}), m || (console.error(f), console.error(S));
|
|
60
60
|
}, [
|
|
61
61
|
f,
|
|
62
|
-
|
|
62
|
+
S,
|
|
63
63
|
m,
|
|
64
64
|
b
|
|
65
65
|
]), /* @__PURE__ */ n("div", {
|
|
@@ -79,27 +79,27 @@ function y() {
|
|
|
79
79
|
children: [
|
|
80
80
|
/* @__PURE__ */ n("h1", {
|
|
81
81
|
className: "text-2xl font-semibold tracking-tight",
|
|
82
|
-
children: /* @__PURE__ */ n("span", { children: e(
|
|
82
|
+
children: /* @__PURE__ */ n("span", { children: e(w) })
|
|
83
83
|
}),
|
|
84
84
|
/* @__PURE__ */ n("p", {
|
|
85
85
|
className: "text-muted-foreground",
|
|
86
|
-
children: /* @__PURE__ */ n("span", { children: e(
|
|
86
|
+
children: /* @__PURE__ */ n("span", { children: e(T, { store: a }) })
|
|
87
87
|
}),
|
|
88
|
-
|
|
88
|
+
x ? /* @__PURE__ */ n("p", {
|
|
89
89
|
className: "text-sm text-muted-foreground",
|
|
90
90
|
children: /* @__PURE__ */ n("span", { children: e("store_unavailable_contact") })
|
|
91
91
|
}) : null
|
|
92
92
|
]
|
|
93
93
|
}),
|
|
94
|
-
|
|
94
|
+
D ? /* @__PURE__ */ n("div", {
|
|
95
95
|
className: "flex justify-center",
|
|
96
96
|
children: /* @__PURE__ */ r(i, {
|
|
97
|
-
to:
|
|
98
|
-
className: "inline-flex items-center gap-2 rounded-
|
|
99
|
-
children: [n(
|
|
97
|
+
to: D,
|
|
98
|
+
className: "inline-flex items-center gap-2 rounded-xl bg-primary px-4 py-2 text-sm font-medium text-primary-foreground shadow transition hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
99
|
+
children: [n(E ? d : u, {
|
|
100
100
|
className: "h-4 w-4",
|
|
101
101
|
"aria-hidden": "true"
|
|
102
|
-
}), /* @__PURE__ */ n("span", { children: e(
|
|
102
|
+
}), /* @__PURE__ */ n("span", { children: e(O) })]
|
|
103
103
|
})
|
|
104
104
|
}) : null
|
|
105
105
|
]
|
|
@@ -31,7 +31,7 @@ function s() {
|
|
|
31
31
|
className: "flex justify-center",
|
|
32
32
|
children: /* @__PURE__ */ t(n, {
|
|
33
33
|
to: `/${c ?? ""}`,
|
|
34
|
-
className: "inline-flex items-center gap-2 rounded-
|
|
34
|
+
className: "inline-flex items-center gap-2 rounded-xl bg-primary px-4 py-2 text-sm font-medium text-primary-foreground shadow transition hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
35
35
|
children: [/* @__PURE__ */ e(o, {
|
|
36
36
|
className: "h-4 w-4",
|
|
37
37
|
"aria-hidden": "true"
|
|
@@ -143,7 +143,7 @@ function s({ estimatedTotalLabel: s, couponCode: c, discountAmountLabel: l, tota
|
|
|
143
143
|
type: "button",
|
|
144
144
|
variant: S === t.id ? "default" : "outline",
|
|
145
145
|
disabled: C,
|
|
146
|
-
className: "h-9
|
|
146
|
+
className: "h-9 px-4 text-xs",
|
|
147
147
|
onClick: () => {
|
|
148
148
|
w(t.id);
|
|
149
149
|
},
|