@loczer/storefront-sdk 0.164.0 → 0.165.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/StorefrontProvider.d.ts +29 -3
- package/dist/StorefrontProvider.d.ts.map +1 -1
- package/dist/StorefrontProvider.js +64 -55
- package/dist/chunks/booking-engine/dist/schemas/{base-booking-D9k8ehGi.js → base-booking-BMAjsw9r.js} +29 -26
- package/dist/chunks/booking-engine/dist/schemas/booking-engine-configuration-DTJD2G9w.js +123 -0
- package/dist/chunks/booking-engine/dist/schemas/{cart-inputs-ByBK0IVJ.js → cart-inputs-BI_9nAXG.js} +1 -1
- package/dist/chunks/booking-engine/dist/schemas/{public-booking-engine-configuration-DKoak4s5.js → public-booking-engine-configuration-CrwffLO4.js} +1 -1
- package/dist/chunks/ui/dist/{MorphingModalWizard-D7hc-dDP.js → MorphingModalWizard-BuRND-yE.js} +3 -3
- package/dist/chunks/ui/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id-CNQuVmXa.js +6 -0
- package/dist/chunks/ui/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node-DL2q-YuA.js +9 -0
- package/dist/chunks/ui/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash-C-3PLS5x.js +6 -0
- package/dist/components/AboutSection/index.js +1 -1
- 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 +59 -41
- package/dist/components/BookingBikeVariantDialog/index.js +1 -1
- package/dist/components/BookingFlowSteps/index.js +8 -8
- package/dist/components/BookingPeriodSelector/components/BookingEndDateField.js +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.js +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingMobileDateDrawer.js +28 -28
- package/dist/components/BookingPeriodSelector/components/BookingStartDateField.js +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.js +1 -1
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.js +197 -203
- package/dist/components/ContactSection/index.js +4 -4
- package/dist/components/Header/index.js +1 -1
- package/dist/components/PoweredByLoczerBadge/index.js +1 -1
- package/dist/components/ProductPriceBadge/index.js +1 -1
- package/dist/components/ProductWarningNotice/index.js +10 -10
- package/dist/components/StorefrontCancellationPolicyNotice/index.d.ts +11 -0
- package/dist/components/StorefrontCancellationPolicyNotice/index.d.ts.map +1 -0
- package/dist/components/StorefrontCancellationPolicyNotice/index.js +93 -0
- package/dist/components/payment/MollieCardFieldsForm.js +1 -1
- package/dist/components/payment/StripeCardFieldsForm.js +13 -13
- package/dist/i18n/en.d.ts +12 -0
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +12 -0
- package/dist/i18n/fr.d.ts +12 -0
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +12 -0
- package/dist/index.d.ts +116 -7
- package/dist/index.js +312 -305
- package/dist/lib/cart.js +1 -1
- package/dist/lib/cartSummary.d.ts.map +1 -1
- package/dist/lib/cartSummary.js +28 -28
- package/dist/lib/checkoutPaymentDecision.d.ts +8 -0
- package/dist/lib/checkoutPaymentDecision.d.ts.map +1 -1
- package/dist/lib/checkoutPaymentDecision.js +14 -6
- package/dist/lib/checkoutPaymentSession.d.ts +1 -0
- package/dist/lib/checkoutPaymentSession.d.ts.map +1 -1
- package/dist/lib/checkoutPaymentSession.js +12 -11
- package/dist/lib/checkoutSubmit.js +4 -4
- package/dist/lib/productVariants.d.ts.map +1 -1
- package/dist/lib/productVariants.js +34 -15
- package/dist/lib/products.d.ts +4 -0
- package/dist/lib/products.d.ts.map +1 -1
- package/dist/lib/products.js +74 -39
- package/dist/lib/securePaymentLink.d.ts +1 -0
- package/dist/lib/securePaymentLink.d.ts.map +1 -1
- package/dist/lib/securePaymentLink.js +1 -0
- package/dist/lib/storefrontAvailability.d.ts +9 -0
- package/dist/lib/storefrontAvailability.d.ts.map +1 -1
- package/dist/lib/storefrontAvailability.js +28 -18
- package/dist/pages/BookingPage.d.ts.map +1 -1
- package/dist/pages/BookingPage.js +290 -289
- package/dist/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPage.js +224 -216
- package/dist/pages/CheckoutPaymentPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPaymentPage.js +92 -92
- package/dist/pages/ContractSaleDocumentPage.js +3 -3
- package/dist/pages/HomePage.d.ts.map +1 -1
- package/dist/pages/HomePage.js +167 -161
- package/dist/pages/PaymentLinkPage.d.ts.map +1 -1
- package/dist/pages/PaymentLinkPage.js +62 -62
- package/dist/pages/PaymentLinkSuccessPage.js +7 -7
- package/dist/pages/ProductPage.d.ts.map +1 -1
- package/dist/pages/ProductPage.js +161 -161
- package/dist/pages/checkout/components/CheckoutCouponCard.js +6 -6
- package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.js +15 -15
- package/dist/storefront.css +1 -1
- package/dist/storefrontSchemas.d.ts +14 -2
- package/dist/storefrontSchemas.d.ts.map +1 -1
- package/dist/storefrontSchemas.js +4 -4
- package/dist/ui/day-picker.js +5 -5
- package/package.json +2 -2
- package/dist/chunks/booking-engine/dist/schemas/booking-engine-configuration-BKlzwJJX.js +0 -105
- package/dist/chunks/ui/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id-DunDwGdX.js +0 -6
- package/dist/chunks/ui/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node-BDwaGtmx.js +0 -9
- package/dist/chunks/ui/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash-h54_qXon.js +0 -4
|
@@ -354,8 +354,14 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
|
|
|
354
354
|
percentage: number;
|
|
355
355
|
optimizeDepositAmount: boolean;
|
|
356
356
|
};
|
|
357
|
+
cancellationPolicy: {
|
|
358
|
+
tiers: {
|
|
359
|
+
upToHours: number;
|
|
360
|
+
refundPercentage: number;
|
|
361
|
+
}[];
|
|
362
|
+
};
|
|
357
363
|
securityDeposit: {
|
|
358
|
-
mode: "optional" | "
|
|
364
|
+
mode: "optional" | "disabled" | "required";
|
|
359
365
|
};
|
|
360
366
|
shop: {
|
|
361
367
|
timeZone: string;
|
|
@@ -422,8 +428,14 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
|
|
|
422
428
|
percentage: number;
|
|
423
429
|
optimizeDepositAmount: boolean;
|
|
424
430
|
};
|
|
431
|
+
cancellationPolicy: {
|
|
432
|
+
tiers: {
|
|
433
|
+
upToHours: number;
|
|
434
|
+
refundPercentage: number;
|
|
435
|
+
}[];
|
|
436
|
+
};
|
|
425
437
|
securityDeposit: {
|
|
426
|
-
mode: "optional" | "
|
|
438
|
+
mode: "optional" | "disabled" | "required";
|
|
427
439
|
};
|
|
428
440
|
shop: {
|
|
429
441
|
timeZone: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storefrontSchemas.d.ts","sourceRoot":"","sources":["../src/storefrontSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAwBvB,eAAO,MAAM,wBAAwB;;;;;kBAO1B,CAAA;AACX,eAAO,MAAM,iCAAiC;;;;;mBAE5C,CAAA;AA0CF,eAAO,MAAM,sBAAsB;;;EAAuC,CAAA;AAC1E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE,eAAO,MAAM,4BAA4B;;;EAAqE,CAAA;AAC9G,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAEjF,eAAO,MAAM,+BAA+B;;;EAAiC,CAAA;AAC7E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAIvF,eAAO,MAAM,wBAAwB;;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BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQxC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { z as e } from "zod";
|
|
2
|
-
import "./chunks/booking-engine/dist/schemas/cart-inputs-
|
|
2
|
+
import "./chunks/booking-engine/dist/schemas/cart-inputs-BI_9nAXG.js";
|
|
3
3
|
import "./chunks/booking-engine/dist/models/Product.shared-BiDGmurZ.js";
|
|
4
4
|
import "./chunks/booking-engine/dist/models/LocalizedString--6q77SPQ.js";
|
|
5
5
|
import "./chunks/booking-engine/dist/models/Price-BlFRDHXV.js";
|
|
6
6
|
import "./chunks/booking-engine/dist/schemas/base-asset-GJ9eIvIL.js";
|
|
7
|
-
import "./chunks/booking-engine/dist/schemas/base-booking-
|
|
7
|
+
import "./chunks/booking-engine/dist/schemas/base-booking-BMAjsw9r.js";
|
|
8
8
|
import "./chunks/booking-engine/dist/schemas/rich-text-CqXhNDN3.js";
|
|
9
9
|
import "./chunks/booking-engine/dist/schemas/money-Dy4b9loa.js";
|
|
10
10
|
import { timeOfDaySchema as d } from "./chunks/booking-engine/dist/schemas/shop-opening-hours-DqNWstqT.js";
|
|
11
|
-
import { publicBookingEngineConfigurationSchema as p } from "./chunks/booking-engine/dist/schemas/public-booking-engine-configuration-
|
|
12
|
-
import "./chunks/booking-engine/dist/schemas/booking-engine-configuration-
|
|
11
|
+
import { publicBookingEngineConfigurationSchema as p } from "./chunks/booking-engine/dist/schemas/public-booking-engine-configuration-CrwffLO4.js";
|
|
12
|
+
import "./chunks/booking-engine/dist/schemas/booking-engine-configuration-DTJD2G9w.js";
|
|
13
13
|
const u = /^\+[1-9]\d{1,14}$/, l = e.string().trim().regex(u, {
|
|
14
14
|
message: "Invalid phone number format (expected E.164, e.g. +33608707197)."
|
|
15
15
|
}), h = e.object({
|
package/dist/ui/day-picker.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { ChevronLeft as c, ChevronRight as
|
|
3
|
-
import { DayPicker as
|
|
2
|
+
import { ChevronLeft as c, ChevronRight as s } from "lucide-react";
|
|
3
|
+
import { DayPicker as m } from "react-day-picker";
|
|
4
4
|
import { cn as e } from "@rpcbase/ui";
|
|
5
5
|
import { buttonVariants as o } from "./button.js";
|
|
6
|
-
const y =
|
|
6
|
+
const y = m;
|
|
7
7
|
function l({ className: a, classNames: n, components: d, showOutsideDays: i = !0, ...u }) {
|
|
8
8
|
return /* @__PURE__ */ r(
|
|
9
9
|
y,
|
|
@@ -22,7 +22,7 @@ function l({ className: a, classNames: n, components: d, showOutsideDays: i = !0
|
|
|
22
22
|
button_next: e(o({ variant: "outline" }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100 z-10"),
|
|
23
23
|
weeks: "w-full border-collapse",
|
|
24
24
|
weekdays: "flex",
|
|
25
|
-
weekday: "text-muted-foreground rounded-md w-9 font-normal text-
|
|
25
|
+
weekday: "text-muted-foreground rounded-md w-9 font-normal text-xs",
|
|
26
26
|
week: "flex w-full mt-2",
|
|
27
27
|
day: "h-9 w-9 p-0 font-normal aria-selected:opacity-100 rounded-md first:aria-selected:rounded-l-md last:aria-selected:rounded-r-md",
|
|
28
28
|
day_button: e(
|
|
@@ -45,7 +45,7 @@ function l({ className: a, classNames: n, components: d, showOutsideDays: i = !0
|
|
|
45
45
|
...n
|
|
46
46
|
},
|
|
47
47
|
components: {
|
|
48
|
-
Chevron: ({ ...t }) => t.orientation === "left" ? /* @__PURE__ */ r(c, { ...t, className: "h-4 w-4" }) : /* @__PURE__ */ r(
|
|
48
|
+
Chevron: ({ ...t }) => t.orientation === "left" ? /* @__PURE__ */ r(c, { ...t, className: "h-4 w-4" }) : /* @__PURE__ */ r(s, { ...t, className: "h-4 w-4" }),
|
|
49
49
|
...d
|
|
50
50
|
},
|
|
51
51
|
...u
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loczer/storefront-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.165.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"@lz/booking-engine": "0.0.0",
|
|
160
160
|
"@lz/ui": "0.0.0",
|
|
161
161
|
"@microsoft/api-extractor": "7.58.8",
|
|
162
|
-
"@playwright/test": "1.
|
|
162
|
+
"@playwright/test": "1.61.0",
|
|
163
163
|
"@tailwindcss/vite": "4.1.18",
|
|
164
164
|
"@types/qrcode": "1.5.6",
|
|
165
165
|
"@types/react-signature-canvas": "1.0.7",
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { z as e } from "zod";
|
|
2
|
-
import { localizedStringSchema as s } from "../models/LocalizedString--6q77SPQ.js";
|
|
3
|
-
import { priceUnitSchema as i } from "../models/Price-BlFRDHXV.js";
|
|
4
|
-
import { currencyCodeSchema as m } from "./money-Dy4b9loa.js";
|
|
5
|
-
import { shopConfigurationSchema as r } from "./shop-opening-hours-DqNWstqT.js";
|
|
6
|
-
import { isoDateSchema as x, shopExtraTimeSlotRuleSchema as E, shopOpeningDaySchema as H, shopOpeningHoursOverrideSchema as z, shopOpeningHoursPeriodSchema as I, shopOpeningSlotSchema as L, timeOfDaySchema as $ } from "./shop-opening-hours-DqNWstqT.js";
|
|
7
|
-
const l = [
|
|
8
|
-
"soldOutOnly",
|
|
9
|
-
"soldOutAndFewRemaining",
|
|
10
|
-
"fewRemaining",
|
|
11
|
-
"fewRemainingCounts",
|
|
12
|
-
"remainingCounts"
|
|
13
|
-
], u = e.enum(l, {
|
|
14
|
-
message: "Availability display mode must be one of 'soldOutOnly', 'soldOutAndFewRemaining', 'fewRemaining', 'fewRemainingCounts', or 'remainingCounts'"
|
|
15
|
-
}), c = /* @__PURE__ */ new Set([
|
|
16
|
-
"soldOutAndFewRemaining",
|
|
17
|
-
"fewRemaining",
|
|
18
|
-
"fewRemainingCounts"
|
|
19
|
-
]), p = (a) => c.has(a), h = {
|
|
20
|
-
message: "A defaultFewRemainingThreshold is required for display modes that highlight 'few remaining' states"
|
|
21
|
-
}, d = e.object({
|
|
22
|
-
defaultMode: u,
|
|
23
|
-
defaultFewRemainingThreshold: e.number().int().min(1).optional()
|
|
24
|
-
}).refine(
|
|
25
|
-
(a) => !p(a.defaultMode) || a.defaultFewRemainingThreshold !== void 0,
|
|
26
|
-
h
|
|
27
|
-
), g = e.object({
|
|
28
|
-
enabled: e.boolean(),
|
|
29
|
-
defaultTtlMinutes: e.number().int().min(1)
|
|
30
|
-
}), b = e.object({
|
|
31
|
-
unit: i,
|
|
32
|
-
label: s.optional(),
|
|
33
|
-
durationHours: e.number().positive()
|
|
34
|
-
}), f = e.object({
|
|
35
|
-
enabled: e.boolean(),
|
|
36
|
-
boundaryHour: e.number().int().min(0).max(23)
|
|
37
|
-
}), S = e.object({
|
|
38
|
-
baseUnit: i,
|
|
39
|
-
rentalUnits: e.array(b).min(1),
|
|
40
|
-
halfDay: f.optional()
|
|
41
|
-
}).refine(
|
|
42
|
-
(a) => a.rentalUnits.some((t) => t.unit === a.baseUnit),
|
|
43
|
-
{ message: "Rental units must include the configured base unit" }
|
|
44
|
-
), y = e.number().min(0, { message: "Percentage must be greater than or equal to 0" }).max(1, { message: "Percentage must be less than or equal to 1" }), o = e.object({
|
|
45
|
-
enabled: e.boolean(),
|
|
46
|
-
percentage: y,
|
|
47
|
-
optimizeDepositAmount: e.boolean().default(!1)
|
|
48
|
-
}), D = ["disabled", "optional", "required"], n = e.object({
|
|
49
|
-
mode: e.enum(D, {
|
|
50
|
-
message: "Security deposit mode must be one of 'disabled', 'optional', or 'required'"
|
|
51
|
-
})
|
|
52
|
-
}), q = e.object({
|
|
53
|
-
bookingDeposit: o,
|
|
54
|
-
securityDeposit: n
|
|
55
|
-
}), F = {
|
|
56
|
-
bookingDeposit: {
|
|
57
|
-
enabled: !1,
|
|
58
|
-
percentage: 0.3,
|
|
59
|
-
optimizeDepositAmount: !1
|
|
60
|
-
},
|
|
61
|
-
securityDeposit: {
|
|
62
|
-
mode: "optional"
|
|
63
|
-
}
|
|
64
|
-
}, w = ["auto_approve_when_possible", "manual_approval_required"], O = e.enum(w, {
|
|
65
|
-
message: "Checkout mode must be one of 'auto_approve_when_possible' or 'manual_approval_required'"
|
|
66
|
-
}), C = e.object({
|
|
67
|
-
strategy: e.string().optional()
|
|
68
|
-
}).catchall(e.unknown()), R = e.object({
|
|
69
|
-
mode: O,
|
|
70
|
-
dynamicOptions: C.optional()
|
|
71
|
-
}), k = m, M = e.object({
|
|
72
|
-
availabilityDisplay: d,
|
|
73
|
-
holdSettings: g,
|
|
74
|
-
pricing: S,
|
|
75
|
-
bookingDeposit: o,
|
|
76
|
-
securityDeposit: n,
|
|
77
|
-
checkout: R,
|
|
78
|
-
shop: r,
|
|
79
|
-
currency: k
|
|
80
|
-
});
|
|
81
|
-
export {
|
|
82
|
-
F as DEFAULT_PAYMENT_POLICIES,
|
|
83
|
-
d as availabilityDisplayConfigurationSchema,
|
|
84
|
-
u as availabilityDisplayModeSchema,
|
|
85
|
-
o as bookingDepositPolicySchema,
|
|
86
|
-
M as bookingEngineConfigurationSchema,
|
|
87
|
-
R as checkoutConfigurationSchema,
|
|
88
|
-
C as checkoutDynamicOptionsSchema,
|
|
89
|
-
O as checkoutModeSchema,
|
|
90
|
-
k as currencySchema,
|
|
91
|
-
g as holdSettingsSchema,
|
|
92
|
-
x as isoDateSchema,
|
|
93
|
-
q as paymentPoliciesSchema,
|
|
94
|
-
S as pricingConfigurationSchema,
|
|
95
|
-
f as pricingHalfDaySchema,
|
|
96
|
-
b as pricingUnitOptionSchema,
|
|
97
|
-
n as securityDepositPolicySchema,
|
|
98
|
-
r as shopConfigurationSchema,
|
|
99
|
-
E as shopExtraTimeSlotRuleSchema,
|
|
100
|
-
H as shopOpeningDaySchema,
|
|
101
|
-
z as shopOpeningHoursOverrideSchema,
|
|
102
|
-
I as shopOpeningHoursPeriodSchema,
|
|
103
|
-
L as shopOpeningSlotSchema,
|
|
104
|
-
$ as timeOfDaySchema
|
|
105
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { noop as r } from "../../../../../motion-utils/dist/es/noop-BGdtcOlD.js";
|
|
2
|
-
import "../../../../../motion-dom/dist/es/value/types/color/rgba-BIy7YqPw.js";
|
|
3
|
-
import "../../../../../motion-dom/dist/es/value/types/numbers/index-CWjqASeJ.js";
|
|
4
|
-
import "../../../../../motion-dom/dist/es/value/types/numbers/units-DNXf-Ngr.js";
|
|
5
|
-
import "../../../../../motion-utils/dist/es/errors-CBdvTtJZ.js";
|
|
6
|
-
import "../../../../../motion-dom/dist/es/animation/keyframes/utils/unit-conversion-Cc0tLlFf.js";
|
|
7
|
-
import "../../animation/optimized-appear/data-id-DunDwGdX.js";
|
|
8
|
-
const o = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t);
|
|
9
|
-
o("applewebkit/") && !o("chrome/") || r;
|