@loczer/storefront-sdk 0.219.0 → 0.221.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.
@@ -18,11 +18,12 @@ type StorefrontCartPanelProps = {
18
18
  showClearAction?: boolean;
19
19
  editable?: boolean;
20
20
  summaryAddon?: ReactNode;
21
+ pricingSummary?: ReactNode;
21
22
  stickyTopClassName?: string;
22
23
  onQuantityChange?: (key: string, quantity: number) => void;
23
24
  onRemove?: (key: string) => void;
24
25
  onClear?: () => void;
25
26
  };
26
- export declare function StorefrontCartPanel({ lines, itemCount, totalPerBaseUnitMinor, baseUnitLabel, estimatedTotalMinor, discountedEstimatedTotalMinor, discountAmountMinor, lateReturnSurchargeMinor, couponCode, durationInBaseUnitLabel, title, description, checkoutPath, showCheckoutAction, showClearAction, editable, summaryAddon, stickyTopClassName, onQuantityChange, onRemove, onClear, }: StorefrontCartPanelProps): import("react/jsx-runtime").JSX.Element;
27
+ export declare function StorefrontCartPanel({ lines, itemCount, totalPerBaseUnitMinor, baseUnitLabel, estimatedTotalMinor, discountedEstimatedTotalMinor, discountAmountMinor, lateReturnSurchargeMinor, couponCode, durationInBaseUnitLabel, title, description, checkoutPath, showCheckoutAction, showClearAction, editable, summaryAddon, pricingSummary, stickyTopClassName, onQuantityChange, onRemove, onClear, }: StorefrontCartPanelProps): import("react/jsx-runtime").JSX.Element;
27
28
  export {};
28
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StorefrontCartPanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOtC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAA;AAQtE,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,yBAAyB,EAAE,CAAA;IAClC,SAAS,EAAE,MAAM,CAAA;IACjB,qBAAq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kBAA0B,EAC1B,eAAuB,EACvB,QAAe,EACf,YAAY,EACZ,cAAc,EACd,kBAA6B,EAC7B,gBAAgB,EAChB,QAAQ,EACR,OAAO,GACR,EAAE,wBAAwB,2CAoM1B"}
@@ -10,21 +10,21 @@ import { useTranslation as u } from "react-i18next";
10
10
  import { cn as d } from "@rpcbase/ui";
11
11
  import { ArrowRight as f, Trash2 as p } from "lucide-react";
12
12
  //#region src/components/StorefrontCartPanel/index.tsx
13
- function m({ lines: m, itemCount: h, totalPerBaseUnitMinor: g, baseUnitLabel: _, estimatedTotalMinor: v, discountedEstimatedTotalMinor: y, discountAmountMinor: b, lateReturnSurchargeMinor: x, couponCode: S, durationInBaseUnitLabel: C, title: w, description: T, checkoutPath: E, showCheckoutAction: D = !1, showClearAction: O = !1, editable: k = !0, summaryAddon: A, stickyTopClassName: j = "top-24", onQuantityChange: M, onRemove: N, onClear: P }) {
14
- let { t: F, i18n: I } = u();
13
+ function m({ lines: m, itemCount: h, totalPerBaseUnitMinor: g, baseUnitLabel: _, estimatedTotalMinor: v, discountedEstimatedTotalMinor: y, discountAmountMinor: b, lateReturnSurchargeMinor: x, couponCode: S, durationInBaseUnitLabel: C, title: w, description: T, checkoutPath: E, showCheckoutAction: D = !1, showClearAction: O = !1, editable: k = !0, summaryAddon: A, pricingSummary: j, stickyTopClassName: M = "top-24", onQuantityChange: N, onRemove: P, onClear: F }) {
14
+ let { t: I, i18n: L } = u();
15
15
  return /* @__PURE__ */ c(i, {
16
- className: d("sticky border-slate-200 bg-white shadow-sm", j),
16
+ className: d("sticky border-slate-200 bg-white shadow-sm", M),
17
17
  children: [/* @__PURE__ */ c("div", {
18
18
  className: "border-b border-slate-200 px-4 py-4",
19
19
  children: [/* @__PURE__ */ c("div", {
20
20
  className: "flex items-center justify-between gap-3",
21
21
  children: [/* @__PURE__ */ s("p", {
22
22
  className: "text-sm font-semibold text-slate-950",
23
- children: /* @__PURE__ */ s("span", { children: w ?? F("cart_title") })
23
+ children: /* @__PURE__ */ s("span", { children: w ?? I("cart_title") })
24
24
  }), /* @__PURE__ */ s(t, {
25
25
  variant: "outline",
26
26
  className: "border-slate-200 bg-white text-slate-700",
27
- children: /* @__PURE__ */ s("span", { children: F("cart_items_count", { count: h }) })
27
+ children: /* @__PURE__ */ s("span", { children: I("cart_items_count", { count: h }) })
28
28
  })]
29
29
  }), T ? /* @__PURE__ */ s("p", {
30
30
  className: "mt-1 text-xs text-slate-600",
@@ -35,11 +35,11 @@ function m({ lines: m, itemCount: h, totalPerBaseUnitMinor: g, baseUnitLabel: _,
35
35
  children: [
36
36
  m.length === 0 ? /* @__PURE__ */ s("p", {
37
37
  className: "text-sm text-slate-600",
38
- children: /* @__PURE__ */ s("span", { children: F("cart_empty") })
38
+ children: /* @__PURE__ */ s("span", { children: I("cart_empty") })
39
39
  }) : /* @__PURE__ */ s("ul", {
40
40
  className: "divide-y divide-slate-200",
41
41
  children: m.map((i) => {
42
- let o = e(i.unitPriceMinor, I.language), l = i.insufficientCapacity === !0, u = i.availabilityIssue === "quantity_unavailable" ? F("availability_quantity_unavailable") : F("availability_out_of_stock");
42
+ let o = e(i.unitPriceMinor, L.language), l = i.insufficientCapacity === !0, u = i.availabilityIssue === "quantity_unavailable" ? I("availability_quantity_unavailable") : I("availability_out_of_stock");
43
43
  return /* @__PURE__ */ c("li", {
44
44
  className: "flex items-start justify-between gap-3 py-4 first:pt-0 last:pb-0",
45
45
  children: [/* @__PURE__ */ c("div", {
@@ -51,7 +51,7 @@ function m({ lines: m, itemCount: h, totalPerBaseUnitMinor: g, baseUnitLabel: _,
51
51
  }),
52
52
  i.productVariantLabel ? /* @__PURE__ */ s("p", {
53
53
  className: "text-xs text-slate-600",
54
- children: /* @__PURE__ */ s("span", { children: `${F(i.productVariantIsSize ? "product_size_label" : "product_variant_label")}: ${i.productVariantLabel}` })
54
+ children: /* @__PURE__ */ s("span", { children: `${I(i.productVariantIsSize ? "product_size_label" : "product_variant_label")}: ${i.productVariantLabel}` })
55
55
  }) : null,
56
56
  i.productVariantDescription ? /* @__PURE__ */ s("p", {
57
57
  className: "text-xs text-slate-500",
@@ -60,7 +60,7 @@ function m({ lines: m, itemCount: h, totalPerBaseUnitMinor: g, baseUnitLabel: _,
60
60
  /* @__PURE__ */ s(a, { warning: i.productWarning }),
61
61
  /* @__PURE__ */ s("p", {
62
62
  className: "text-xs text-slate-600",
63
- children: /* @__PURE__ */ s("span", { children: F("cart_line_meta", {
63
+ children: /* @__PURE__ */ s("span", { children: I("cart_line_meta", {
64
64
  quantity: i.quantity,
65
65
  price: o,
66
66
  unit: _
@@ -76,24 +76,24 @@ function m({ lines: m, itemCount: h, totalPerBaseUnitMinor: g, baseUnitLabel: _,
76
76
  ]
77
77
  }), k ? /* @__PURE__ */ c("div", {
78
78
  className: "flex items-center gap-2",
79
- children: [M ? /* @__PURE__ */ s(r, {
79
+ children: [N ? /* @__PURE__ */ s(r, {
80
80
  type: "number",
81
81
  min: 1,
82
82
  max: 99,
83
83
  value: i.quantity,
84
84
  onChange: (e) => {
85
85
  let t = Number(e.target.value);
86
- M(i.key, Number.isFinite(t) ? t : 0);
86
+ N(i.key, Number.isFinite(t) ? t : 0);
87
87
  },
88
88
  className: "h-9 w-16",
89
- "aria-label": F("quantity_label")
90
- }) : null, N ? /* @__PURE__ */ s(n, {
89
+ "aria-label": I("quantity_label")
90
+ }) : null, P ? /* @__PURE__ */ s(n, {
91
91
  type: "button",
92
92
  variant: "ghost",
93
93
  size: "icon",
94
94
  className: "h-8 w-8 text-slate-500 hover:bg-slate-50 hover:text-slate-700",
95
- onClick: () => N(i.key),
96
- "aria-label": F("remove_from_cart"),
95
+ onClick: () => P(i.key),
96
+ "aria-label": I("remove_from_cart"),
97
97
  children: /* @__PURE__ */ s(p, {
98
98
  className: "h-4 w-4",
99
99
  "aria-hidden": "true"
@@ -104,22 +104,21 @@ function m({ lines: m, itemCount: h, totalPerBaseUnitMinor: g, baseUnitLabel: _,
104
104
  })
105
105
  }),
106
106
  A,
107
- /* @__PURE__ */ c("div", {
107
+ j ?? /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ c("div", {
108
108
  className: "flex items-center justify-between gap-3 border-t border-slate-200 pt-3 text-sm",
109
109
  children: [/* @__PURE__ */ s("p", {
110
110
  className: "text-slate-700",
111
- children: /* @__PURE__ */ s("span", { children: F("cart_total_per_unit", { unit: _ }) })
111
+ children: /* @__PURE__ */ s("span", { children: I("cart_total_per_unit", { unit: _ }) })
112
112
  }), /* @__PURE__ */ s("p", {
113
113
  className: "font-semibold text-slate-950",
114
- children: /* @__PURE__ */ s("span", { children: e(g, I.language) })
114
+ children: /* @__PURE__ */ s("span", { children: e(g, L.language) })
115
115
  })]
116
- }),
117
- typeof v == "number" ? /* @__PURE__ */ c(o, { children: [
116
+ }), typeof v == "number" ? /* @__PURE__ */ c(o, { children: [
118
117
  C ? /* @__PURE__ */ c("div", {
119
118
  className: "flex items-center justify-between gap-3 text-sm",
120
119
  children: [/* @__PURE__ */ s("p", {
121
120
  className: "text-slate-700",
122
- children: /* @__PURE__ */ s("span", { children: F("checkout_estimated_duration") })
121
+ children: /* @__PURE__ */ s("span", { children: I("checkout_estimated_duration") })
123
122
  }), /* @__PURE__ */ s(t, {
124
123
  variant: "outline",
125
124
  className: "border-slate-200 bg-white text-slate-700",
@@ -130,33 +129,33 @@ function m({ lines: m, itemCount: h, totalPerBaseUnitMinor: g, baseUnitLabel: _,
130
129
  className: "flex items-center justify-between gap-3 text-sm",
131
130
  children: [/* @__PURE__ */ s("p", {
132
131
  className: "text-success",
133
- children: /* @__PURE__ */ s("span", { children: F("checkout_coupon_discount", { code: S ?? "" }) })
132
+ children: /* @__PURE__ */ s("span", { children: I("checkout_coupon_discount", { code: S ?? "" }) })
134
133
  }), /* @__PURE__ */ s("p", {
135
134
  className: "font-semibold text-success",
136
- children: /* @__PURE__ */ s("span", { children: `-${e(b, I.language)}` })
135
+ children: /* @__PURE__ */ s("span", { children: `-${e(b, L.language)}` })
137
136
  })]
138
137
  }) : null,
139
138
  typeof x == "number" && x > 0 ? /* @__PURE__ */ c("div", {
140
139
  className: "flex items-center justify-between gap-3 text-sm",
141
140
  children: [/* @__PURE__ */ s("p", {
142
141
  className: "text-slate-700",
143
- children: /* @__PURE__ */ s("span", { children: F("checkout_late_return_fee") })
142
+ children: /* @__PURE__ */ s("span", { children: I("checkout_late_return_fee") })
144
143
  }), /* @__PURE__ */ s("p", {
145
144
  className: "font-semibold text-slate-950",
146
- children: /* @__PURE__ */ s("span", { children: `+${e(x, I.language)}` })
145
+ children: /* @__PURE__ */ s("span", { children: `+${e(x, L.language)}` })
147
146
  })]
148
147
  }) : null,
149
148
  /* @__PURE__ */ c("div", {
150
149
  className: "flex items-center justify-between gap-3 text-sm",
151
150
  children: [/* @__PURE__ */ s("p", {
152
151
  className: "text-slate-700",
153
- children: /* @__PURE__ */ s("span", { children: F("checkout_estimated_total") })
152
+ children: /* @__PURE__ */ s("span", { children: I("checkout_estimated_total") })
154
153
  }), /* @__PURE__ */ s("p", {
155
154
  className: "font-semibold text-slate-950",
156
- children: /* @__PURE__ */ s("span", { children: e(y ?? v, I.language) })
155
+ children: /* @__PURE__ */ s("span", { children: e(y ?? v, L.language) })
157
156
  })]
158
157
  })
159
- ] }) : null,
158
+ ] }) : null] }),
160
159
  /* @__PURE__ */ c("div", {
161
160
  className: "grid gap-2",
162
161
  children: [D && E ? /* @__PURE__ */ s(l, {
@@ -164,17 +163,17 @@ function m({ lines: m, itemCount: h, totalPerBaseUnitMinor: g, baseUnitLabel: _,
164
163
  className: d(m.length > 0 ? "block" : "hidden"),
165
164
  children: /* @__PURE__ */ c(n, {
166
165
  className: "w-full gap-2",
167
- children: [/* @__PURE__ */ s("span", { children: F("checkout_button") }), /* @__PURE__ */ s(f, {
166
+ children: [/* @__PURE__ */ s("span", { children: I("checkout_button") }), /* @__PURE__ */ s(f, {
168
167
  className: "h-4 w-4",
169
168
  "aria-hidden": "true"
170
169
  })]
171
170
  })
172
- }) : null, O && P ? /* @__PURE__ */ s(n, {
171
+ }) : null, O && F ? /* @__PURE__ */ s(n, {
173
172
  type: "button",
174
173
  variant: "outline",
175
174
  className: d(m.length > 0 ? "w-full gap-2" : "hidden"),
176
- onClick: P,
177
- children: /* @__PURE__ */ s("span", { children: F("cart_clear") })
175
+ onClick: F,
176
+ children: /* @__PURE__ */ s("span", { children: I("cart_clear") })
178
177
  }) : null]
179
178
  })
180
179
  ]
package/dist/i18n/en.d.ts CHANGED
@@ -207,6 +207,7 @@ export declare const storefront: {
207
207
  checkout_subtitle: string;
208
208
  checkout_summary_title: string;
209
209
  checkout_summary_description: string;
210
+ checkout_booking_subtotal: string;
210
211
  checkout_estimated_duration: string;
211
212
  checkout_estimated_total: string;
212
213
  checkout_form_title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/i18n/en.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmgBtB,CAAA"}
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/i18n/en.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAogBtB,CAAA"}
package/dist/i18n/en.js CHANGED
@@ -208,8 +208,9 @@ var e = {
208
208
  checkout_subtitle: "Confirm your details and payment · {{duration}}",
209
209
  checkout_summary_title: "Summary",
210
210
  checkout_summary_description: "Cart and pricing recap.",
211
+ checkout_booking_subtotal: "Subtotal",
211
212
  checkout_estimated_duration: "Estimated duration",
212
- checkout_estimated_total: "Booking total",
213
+ checkout_estimated_total: "Total",
213
214
  checkout_form_title: "Your details",
214
215
  checkout_form_description: "Enter your details for this booking, and add any useful information in the notes.",
215
216
  checkout_first_name_label: "First name",
@@ -222,7 +223,7 @@ var e = {
222
223
  checkout_email_placeholder: "jane@example.com",
223
224
  checkout_phone_label: "Phone",
224
225
  checkout_phone_placeholder: "+1 555 555 5555",
225
- checkout_notes_label: "Notes or message (optional)",
226
+ checkout_notes_label: "Notes",
226
227
  checkout_notes_placeholder: "Any details about your booking…",
227
228
  checkout_continue_to_payment: "Continue to payment",
228
229
  checkout_payment_title: "Card payment",
@@ -269,7 +270,7 @@ var e = {
269
270
  checkout_payment_loading: "Checking payment options…",
270
271
  checkout_payment_error: "Unable to check payment options. Please contact the shop directly.",
271
272
  checkout_payment_enable_hint: "Enter your full name to enable the payment method.",
272
- checkout_submit: "Request booking",
273
+ checkout_submit: "Send booking request",
273
274
  checkout_success_toast: "Request sent.",
274
275
  checkout_success_title: "Request received",
275
276
  checkout_success_description: "Thanks, your booking request was sent.",
package/dist/i18n/fr.d.ts CHANGED
@@ -208,6 +208,7 @@ export declare const storefront: {
208
208
  checkout_subtitle: string;
209
209
  checkout_summary_title: string;
210
210
  checkout_summary_description: string;
211
+ checkout_booking_subtotal: string;
211
212
  checkout_estimated_duration: string;
212
213
  checkout_estimated_total: string;
213
214
  checkout_form_title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/i18n/fr.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAogBtB,CAAA"}
1
+ {"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/i18n/fr.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqgBtB,CAAA"}
package/dist/i18n/fr.js CHANGED
@@ -209,8 +209,9 @@ var e = {
209
209
  checkout_subtitle: "Confirmez vos informations et le paiement · {{duration}}",
210
210
  checkout_summary_title: "Récapitulatif",
211
211
  checkout_summary_description: "Panier et récap des montants.",
212
+ checkout_booking_subtotal: "Sous-total",
212
213
  checkout_estimated_duration: "Durée estimée",
213
- checkout_estimated_total: "Total de la réservation",
214
+ checkout_estimated_total: "Total",
214
215
  checkout_form_title: "Vos informations",
215
216
  checkout_form_description: "Renseignez vos coordonnées pour votre réservation. N'hésitez pas à ajouter toute information utile dans les notes.",
216
217
  checkout_first_name_label: "Prénom",
@@ -223,7 +224,7 @@ var e = {
223
224
  checkout_email_placeholder: "jean@example.com",
224
225
  checkout_phone_label: "Téléphone",
225
226
  checkout_phone_placeholder: "+33 6 00 00 00 00",
226
- checkout_notes_label: "Notes ou message (optionnel)",
227
+ checkout_notes_label: "Notes",
227
228
  checkout_notes_placeholder: "Précisions pour votre réservation…",
228
229
  checkout_continue_to_payment: "Continuer vers le paiement",
229
230
  checkout_payment_title: "Paiement par carte",
@@ -270,7 +271,7 @@ var e = {
270
271
  checkout_payment_loading: "Vérification des options de paiement…",
271
272
  checkout_payment_error: "Impossible de vérifier les options de paiement. Veuillez contacter directement la boutique.",
272
273
  checkout_payment_enable_hint: "Renseignez votre nom complet pour activer le moyen de paiement.",
273
- checkout_submit: "Envoyer la demande",
274
+ checkout_submit: "Envoyer la demande de réservation",
274
275
  checkout_success_toast: "Demande envoyée.",
275
276
  checkout_success_title: "Demande reçue",
276
277
  checkout_success_description: "Merci, votre demande de réservation a bien été envoyée.",
package/dist/index.d.ts CHANGED
@@ -3402,7 +3402,7 @@ export declare type StorefrontCartItem = {
3402
3402
  quantity: number;
3403
3403
  };
3404
3404
 
3405
- export declare function StorefrontCartPanel({ lines, itemCount, totalPerBaseUnitMinor, baseUnitLabel, estimatedTotalMinor, discountedEstimatedTotalMinor, discountAmountMinor, lateReturnSurchargeMinor, couponCode, durationInBaseUnitLabel, title, description, checkoutPath, showCheckoutAction, showClearAction, editable, summaryAddon, stickyTopClassName, onQuantityChange, onRemove, onClear, }: StorefrontCartPanelProps): JSX.Element;
3405
+ export declare function StorefrontCartPanel({ lines, itemCount, totalPerBaseUnitMinor, baseUnitLabel, estimatedTotalMinor, discountedEstimatedTotalMinor, discountAmountMinor, lateReturnSurchargeMinor, couponCode, durationInBaseUnitLabel, title, description, checkoutPath, showCheckoutAction, showClearAction, editable, summaryAddon, pricingSummary, stickyTopClassName, onQuantityChange, onRemove, onClear, }: StorefrontCartPanelProps): JSX.Element;
3406
3406
 
3407
3407
  declare type StorefrontCartPanelProps = {
3408
3408
  lines: StorefrontCartSummaryLine[];
@@ -3422,6 +3422,7 @@ declare type StorefrontCartPanelProps = {
3422
3422
  showClearAction?: boolean;
3423
3423
  editable?: boolean;
3424
3424
  summaryAddon?: ReactNode;
3425
+ pricingSummary?: ReactNode;
3425
3426
  stickyTopClassName?: string;
3426
3427
  onQuantityChange?: (key: string, quantity: number) => void;
3427
3428
  onRemove?: (key: string) => void;
@@ -3561,7 +3562,6 @@ export declare type StorefrontCheckoutSubmitResponsePayload = z.infer<typeof sto
3561
3562
  export declare const storefrontCheckoutSubmitResponseSchema: z.ZodObject<{
3562
3563
  success: z.ZodBoolean;
3563
3564
  message: z.ZodOptional<z.ZodString>;
3564
- errorCode: z.ZodOptional<z.ZodLiteral<"online_payment_provider_missing">>;
3565
3565
  checkout: z.ZodOptional<z.ZodObject<{
3566
3566
  bookingExternalId: z.ZodString;
3567
3567
  saleId: z.ZodString;
@@ -4224,6 +4224,7 @@ export declare const storefrontEn: {
4224
4224
  checkout_subtitle: string;
4225
4225
  checkout_summary_title: string;
4226
4226
  checkout_summary_description: string;
4227
+ checkout_booking_subtotal: string;
4227
4228
  checkout_estimated_duration: string;
4228
4229
  checkout_estimated_total: string;
4229
4230
  checkout_form_title: string;
@@ -4773,6 +4774,7 @@ export declare const storefrontFr: {
4773
4774
  checkout_subtitle: string;
4774
4775
  checkout_summary_title: string;
4775
4776
  checkout_summary_description: string;
4777
+ checkout_booking_subtotal: string;
4776
4778
  checkout_estimated_duration: string;
4777
4779
  checkout_estimated_total: string;
4778
4780
  checkout_form_title: string;
@@ -2,13 +2,10 @@ import { z } from 'zod';
2
2
  export declare const ROUTE = "/api/public/storefront/checkout/payment-decision";
3
3
  export declare const paymentDecisionModeSchema: z.ZodEnum<{
4
4
  none: "none";
5
- deposit: "deposit";
6
5
  full: "full";
6
+ deposit: "deposit";
7
7
  }>;
8
8
  export type PaymentDecisionMode = z.infer<typeof paymentDecisionModeSchema>;
9
- export declare const MISSING_ONLINE_PAYMENT_PROVIDER_ERROR_CODE = "online_payment_provider_missing";
10
- export declare const checkoutPaymentErrorCodeSchema: z.ZodLiteral<"online_payment_provider_missing">;
11
- export type CheckoutPaymentErrorCode = z.infer<typeof checkoutPaymentErrorCodeSchema>;
12
9
  export declare const requestSchema: z.ZodObject<{
13
10
  storeSlug: z.ZodString;
14
11
  schedule: z.ZodObject<{
@@ -24,13 +21,12 @@ export type RequestPayload = z.infer<typeof requestSchema>;
24
21
  export declare const responseSchema: z.ZodObject<{
25
22
  success: z.ZodBoolean;
26
23
  message: z.ZodOptional<z.ZodString>;
27
- errorCode: z.ZodOptional<z.ZodLiteral<"online_payment_provider_missing">>;
28
24
  decision: z.ZodOptional<z.ZodObject<{
29
25
  shouldCollectOnlinePayment: z.ZodBoolean;
30
26
  paymentMode: z.ZodEnum<{
31
27
  none: "none";
32
- deposit: "deposit";
33
28
  full: "full";
29
+ deposit: "deposit";
34
30
  }>;
35
31
  calculatedAmountMinor: z.ZodNumber;
36
32
  amountToCollectMinor: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"checkoutPaymentDecision.d.ts","sourceRoot":"","sources":["../../src/lib/checkoutPaymentDecision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,KAAK,qDAAqD,CAAA;AAEvE,eAAO,MAAM,yBAAyB;;;;EAAsC,CAAA;AAC5E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAC3E,eAAO,MAAM,0CAA0C,oCAAoC,CAAA;AAC3F,eAAO,MAAM,8BAA8B,iDAAwD,CAAA;AACnG,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAErF,eAAO,MAAM,aAAa;;;;;;;;;;iBAYxB,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAE1D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwBzB,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA"}
1
+ {"version":3,"file":"checkoutPaymentDecision.d.ts","sourceRoot":"","sources":["../../src/lib/checkoutPaymentDecision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,KAAK,qDAAqD,CAAA;AAEvE,eAAO,MAAM,yBAAyB;;;;EAAsC,CAAA;AAC5E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAE3E,eAAO,MAAM,aAAa;;;;;;;;;;iBAYxB,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAE1D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;iBAuBzB,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA"}
@@ -4,7 +4,7 @@ var t = "/api/public/storefront/checkout/payment-decision", n = e.enum([
4
4
  "none",
5
5
  "deposit",
6
6
  "full"
7
- ]), r = "online_payment_provider_missing", i = e.literal(r), a = e.object({
7
+ ]), r = e.object({
8
8
  storeSlug: e.string().trim().min(1).toLowerCase(),
9
9
  schedule: e.object({
10
10
  startDate: e.string().regex(/^\d{4}-\d{2}-\d{2}$/),
@@ -14,10 +14,9 @@ var t = "/api/public/storefront/checkout/payment-decision", n = e.enum([
14
14
  }),
15
15
  estimatedTotalMinor: e.number().int().min(0),
16
16
  nowIso: e.string().datetime({ offset: !0 }).optional()
17
- }), o = e.object({
17
+ }), i = e.object({
18
18
  success: e.boolean(),
19
19
  message: e.string().optional(),
20
- errorCode: i.optional(),
21
20
  decision: e.object({
22
21
  shouldCollectOnlinePayment: e.boolean(),
23
22
  paymentMode: n,
@@ -38,4 +37,4 @@ var t = "/api/public/storefront/checkout/payment-decision", n = e.enum([
38
37
  }).optional()
39
38
  });
40
39
  //#endregion
41
- export { r as MISSING_ONLINE_PAYMENT_PROVIDER_ERROR_CODE, t as ROUTE, i as checkoutPaymentErrorCodeSchema, n as paymentDecisionModeSchema, a as requestSchema, o as responseSchema };
40
+ export { t as ROUTE, n as paymentDecisionModeSchema, r as requestSchema, i as responseSchema };
@@ -1,6 +1,4 @@
1
1
  import { z } from 'zod';
2
- import { MISSING_ONLINE_PAYMENT_PROVIDER_ERROR_CODE } from './checkoutPaymentDecision';
3
- export { MISSING_ONLINE_PAYMENT_PROVIDER_ERROR_CODE };
4
2
  export declare const ROUTE = "/api/public/storefront/checkout/submit";
5
3
  export declare const requestCheckoutItemSchema: z.ZodObject<{
6
4
  kind: any;
@@ -87,7 +85,6 @@ export type RequestPayload = z.infer<typeof requestSchema>;
87
85
  export declare const responseSchema: z.ZodObject<{
88
86
  success: z.ZodBoolean;
89
87
  message: z.ZodOptional<z.ZodString>;
90
- errorCode: z.ZodOptional<z.ZodLiteral<"online_payment_provider_missing">>;
91
88
  checkout: z.ZodOptional<z.ZodObject<{
92
89
  bookingExternalId: z.ZodString;
93
90
  saleId: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"checkoutSubmit.d.ts","sourceRoot":"","sources":["../../src/lib/checkoutSubmit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAQvB,OAAO,EAEL,0CAA0C,EAC3C,MAAM,2BAA2B,CAAA;AAGlC,OAAO,EAAE,0CAA0C,EAAE,CAAA;AAGrD,eAAO,MAAM,KAAK,2CAA2C,CAAA;AAE7D,eAAO,MAAM,yBAAyB;;;;;iBAKpC,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAI3E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+B5B,CAAA;AAEF,eAAO,MAAM,yBAAyB,GACpC,SAAS;IAAE,WAAW,CAAC,EAAE,MAAM,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KindSchema as e } from "../chunks/pkg/booking-engine/dist/models
2
2
  import { DEFAULT_BOOKING_DELIVERY_OPTION as t, bookingScheduleInputSchema as n } from "../chunks/pkg/booking-engine/dist/schemas/cart-inputs-epi7FXIk.js";
3
3
  import "../chunks/pkg/booking-engine/dist/schemas-DGn2a1my.js";
4
4
  import { storefrontFulfillmentModeSchema as r } from "../storefrontSchemas.js";
5
- import { MISSING_ONLINE_PAYMENT_PROVIDER_ERROR_CODE as i, checkoutPaymentErrorCodeSchema as a } from "./checkoutPaymentDecision.js";
6
- import { z as o } from "zod";
5
+ import { z as i } from "zod";
7
6
  //#region src/lib/checkoutSubmit.ts
8
- var s = "/api/public/storefront/checkout/submit", c = o.object({
7
+ var a = "/api/public/storefront/checkout/submit", o = i.object({
9
8
  kind: e,
10
- productId: o.string().trim().min(1),
11
- productVariantId: o.string().trim().min(1).optional(),
12
- quantity: o.number().int().positive()
13
- }), l = o.object({
14
- storeSlug: o.string().trim().min(1).toLowerCase(),
15
- checkoutSessionId: o.string().trim().min(1).max(256).optional(),
16
- replacesCheckoutSessionId: o.string().trim().min(1).max(256).optional(),
9
+ productId: i.string().trim().min(1),
10
+ productVariantId: i.string().trim().min(1).optional(),
11
+ quantity: i.number().int().positive()
12
+ }), s = i.object({
13
+ storeSlug: i.string().trim().min(1).toLowerCase(),
14
+ checkoutSessionId: i.string().trim().min(1).max(256).optional(),
15
+ replacesCheckoutSessionId: i.string().trim().min(1).max(256).optional(),
17
16
  schedule: n,
18
17
  fulfillment: r.default(t),
19
- startAddress: o.string().trim().max(500).optional(),
20
- endAddress: o.string().trim().max(500).optional(),
21
- couponCode: o.string().trim().max(64).optional().or(o.literal("")),
22
- couponAutoApplied: o.boolean().optional(),
23
- insuranceAccepted: o.boolean().optional(),
24
- customer: o.object({
25
- firstName: o.string().trim().min(1).optional(),
26
- lastName: o.string().trim().min(1).optional(),
27
- fullName: o.string().trim().min(2).optional(),
28
- email: o.string().trim().email(),
29
- phone: o.string().trim().min(6),
30
- notes: o.string().trim().max(2e3).optional().or(o.literal(""))
18
+ startAddress: i.string().trim().max(500).optional(),
19
+ endAddress: i.string().trim().max(500).optional(),
20
+ couponCode: i.string().trim().max(64).optional().or(i.literal("")),
21
+ couponAutoApplied: i.boolean().optional(),
22
+ insuranceAccepted: i.boolean().optional(),
23
+ customer: i.object({
24
+ firstName: i.string().trim().min(1).optional(),
25
+ lastName: i.string().trim().min(1).optional(),
26
+ fullName: i.string().trim().min(2).optional(),
27
+ email: i.string().trim().email(),
28
+ phone: i.string().trim().min(6),
29
+ notes: i.string().trim().max(2e3).optional().or(i.literal(""))
31
30
  }).superRefine((e, t) => {
32
31
  e.firstName && e.lastName || e.fullName || t.addIssue({
33
- code: o.ZodIssueCode.custom,
32
+ code: i.ZodIssueCode.custom,
34
33
  path: ["firstName"],
35
34
  message: "Customer first and last names are required."
36
35
  });
37
36
  }),
38
- items: o.array(c).min(1),
39
- nowIso: o.string().datetime({ offset: !0 }).optional()
40
- }), u = (e, t) => {
37
+ items: i.array(o).min(1),
38
+ nowIso: i.string().datetime({ offset: !0 }).optional()
39
+ }), c = (e, t) => {
41
40
  e.fulfillment === "delivery" && (e.startAddress?.trim() || t.addIssue({
42
- code: o.ZodIssueCode.custom,
41
+ code: i.ZodIssueCode.custom,
43
42
  message: "Delivery start address is required.",
44
43
  path: ["startAddress"]
45
44
  }));
46
- }, d = l.superRefine((e, t) => {
47
- u(e, t), e.replacesCheckoutSessionId && !e.checkoutSessionId && t.addIssue({
48
- code: o.ZodIssueCode.custom,
45
+ }, l = s.superRefine((e, t) => {
46
+ c(e, t), e.replacesCheckoutSessionId && !e.checkoutSessionId && t.addIssue({
47
+ code: i.ZodIssueCode.custom,
49
48
  message: "A replacement checkout session requires a new checkout session id.",
50
49
  path: ["checkoutSessionId"]
51
50
  }), e.checkoutSessionId && e.replacesCheckoutSessionId === e.checkoutSessionId && t.addIssue({
52
- code: o.ZodIssueCode.custom,
51
+ code: i.ZodIssueCode.custom,
53
52
  message: "The new and replaced checkout session ids must differ.",
54
53
  path: ["replacesCheckoutSessionId"]
55
54
  });
56
- }), f = o.object({
57
- success: o.boolean(),
58
- message: o.string().optional(),
59
- errorCode: a.optional(),
60
- checkout: o.object({
61
- bookingExternalId: o.string().trim().min(1),
62
- saleId: o.string().trim().min(1),
63
- nextPath: o.string().trim().min(1),
64
- successPath: o.string().trim().min(1),
65
- requiresPayment: o.boolean(),
66
- checkoutSessionId: o.string().trim().min(1).max(256).optional()
55
+ }), u = i.object({
56
+ success: i.boolean(),
57
+ message: i.string().optional(),
58
+ checkout: i.object({
59
+ bookingExternalId: i.string().trim().min(1),
60
+ saleId: i.string().trim().min(1),
61
+ nextPath: i.string().trim().min(1),
62
+ successPath: i.string().trim().min(1),
63
+ requiresPayment: i.boolean(),
64
+ checkoutSessionId: i.string().trim().min(1).max(256).optional()
67
65
  }).optional()
68
66
  });
69
67
  //#endregion
70
- export { i as MISSING_ONLINE_PAYMENT_PROVIDER_ERROR_CODE, s as ROUTE, l as requestBaseSchema, c as requestCheckoutItemSchema, u as requestDeliveryRefinement, d as requestSchema, f as responseSchema };
68
+ export { a as ROUTE, s as requestBaseSchema, o as requestCheckoutItemSchema, c as requestDeliveryRefinement, l as requestSchema, u as responseSchema };
@@ -1 +1 @@
1
- {"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../src/pages/CheckoutPage.tsx"],"names":[],"mappings":"AAwGA,MAAM,CAAC,OAAO,UAAU,YAAY,4CAitBnC"}
1
+ {"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../src/pages/CheckoutPage.tsx"],"names":[],"mappings":"AAoFA,MAAM,CAAC,OAAO,UAAU,YAAY,4CAqoBnC"}