@loczer/storefront-sdk 0.166.0 → 0.168.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.
Files changed (56) hide show
  1. package/dist/chunks/booking-engine/dist/schemas/base-booking-Dlgnuu6k.js +74 -0
  2. package/dist/chunks/ui/dist/{Dialog-COr6fnKd.js → Dialog-CR_9vgBQ.js} +1 -1
  3. package/dist/chunks/ui/dist/{MorphingModalWizard-BuRND-yE.js → MorphingModalWizard-CPLr3dh2.js} +3 -3
  4. package/dist/chunks/ui/dist/{ResponsiveDialog-D8YzB_3J.js → ResponsiveDialog-DhFgsW_0.js} +2 -2
  5. package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/Icon-OkokCq-b.js +37 -0
  6. package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/context-C4oH64Wf.js +5 -0
  7. package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/createLucideIcon-BI4k0Tt0.js +23 -0
  8. package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/icons/{arrow-left-asE1l_Qw.js → arrow-left-DMMNgJEB.js} +1 -1
  9. package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/icons/{x-Cdi8GS7U.js → x-BDxS-rYd.js} +1 -1
  10. package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp-Lff9pF65.js +9 -0
  11. package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses-HV-Vu34x.js +4 -0
  12. package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase-BZAgYi2F.js +7 -0
  13. package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase-DsnfsuSi.js +4 -0
  14. package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase-DZxyG2X3.js +8 -0
  15. package/dist/components/BikeProductCard/index.d.ts.map +1 -1
  16. package/dist/components/BikeProductCard/index.js +40 -45
  17. package/dist/components/BookingBikeVariantDialog/index.js +1 -1
  18. package/dist/components/BookingPeriodSelector/components/BookingEndDateField.js +1 -1
  19. package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.js +1 -1
  20. package/dist/components/BookingPeriodSelector/components/BookingStartDateField.js +1 -1
  21. package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.js +1 -1
  22. package/dist/components/ContactSection/index.d.ts.map +1 -1
  23. package/dist/components/ContactSection/index.js +73 -98
  24. package/dist/components/DelayedReveal/index.js +1 -1
  25. package/dist/components/Footer/index.d.ts +2 -1
  26. package/dist/components/Footer/index.d.ts.map +1 -1
  27. package/dist/components/Footer/index.js +38 -48
  28. package/dist/components/Header/index.d.ts +2 -1
  29. package/dist/components/Header/index.d.ts.map +1 -1
  30. package/dist/components/Header/index.js +55 -62
  31. package/dist/components/Layout/index.d.ts.map +1 -1
  32. package/dist/components/Layout/index.js +35 -26
  33. package/dist/components/StorefrontCancellationPolicyNotice/index.js +3 -3
  34. package/dist/components/StorefrontPopupMessages/index.js +1 -1
  35. package/dist/i18n/en.d.ts +2 -5
  36. package/dist/i18n/en.d.ts.map +1 -1
  37. package/dist/i18n/en.js +7 -10
  38. package/dist/i18n/fr.d.ts +2 -5
  39. package/dist/i18n/fr.d.ts.map +1 -1
  40. package/dist/i18n/fr.js +8 -11
  41. package/dist/index.d.ts +8 -20
  42. package/dist/index.js +2 -2
  43. package/dist/lib/checkoutSubmit.js +1 -1
  44. package/dist/pages/CheckoutPage.d.ts.map +1 -1
  45. package/dist/pages/CheckoutPage.js +171 -179
  46. package/dist/pages/CheckoutPaymentPage.d.ts.map +1 -1
  47. package/dist/pages/CheckoutPaymentPage.js +124 -145
  48. package/dist/pages/HomePage.d.ts.map +1 -1
  49. package/dist/pages/HomePage.js +185 -173
  50. package/dist/storefront.css +1 -1
  51. package/dist/storefrontSchemas.js +1 -1
  52. package/package.json +2 -2
  53. package/dist/chunks/booking-engine/dist/schemas/base-booking-BMAjsw9r.js +0 -78
  54. package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/Icon-BNiQfVqr.js +0 -35
  55. package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/createLucideIcon-5_J8fxOF.js +0 -21
  56. package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/shared/src/utils-nzQUBs6v.js +0 -18
@@ -4,7 +4,7 @@ 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-BMAjsw9r.js";
7
+ import "./chunks/booking-engine/dist/schemas/base-booking-Dlgnuu6k.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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loczer/storefront-sdk",
3
- "version": "0.166.0",
3
+ "version": "0.168.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
@@ -149,7 +149,7 @@
149
149
  "html-to-image": "1.11.13",
150
150
  "i18next": "25.7.3",
151
151
  "interactjs": "1.10.27",
152
- "lucide-react": "0.562.0",
152
+ "lucide-react": "1.22.0",
153
153
  "qrcode": "1.5.4",
154
154
  "react-day-picker": "9.13.0",
155
155
  "react-i18next": "16.5.0",
@@ -1,78 +0,0 @@
1
- import { z as o } from "zod";
2
- import { identifierSchema as n, isoDateTimeSchema as e, ulidStringSchema as p, objectIdStringSchema as m } from "../models/types-DLcvzW5b.js";
3
- import { productKindSchema as c, productVariantCodeSchema as s } from "../models/Product.shared-BiDGmurZ.js";
4
- import { moneyMinorSchema as r } from "./money-Dy4b9loa.js";
5
- import { richTextSchema as d } from "./rich-text-CqXhNDN3.js";
6
- import { cancellationPolicySchema as a } from "./booking-engine-configuration-DTJD2G9w.js";
7
- const l = o.enum([
8
- "pending_approval",
9
- "pending_payment",
10
- "confirmed",
11
- "active",
12
- "completed",
13
- "canceled",
14
- "expired"
15
- ]), u = o.object({
16
- _id: n,
17
- productId: n,
18
- kind: c,
19
- qty: o.number().int().positive(),
20
- productVariantId: n.optional(),
21
- productShortCode: o.string().trim().min(1).max(3).optional(),
22
- productName: o.string().trim().min(1).optional(),
23
- productVariantName: o.string().trim().min(1).optional(),
24
- productVariantCode: s.optional()
25
- }), g = o.object({
26
- name: o.preprocess(
27
- (t) => {
28
- if (typeof t != "string") return;
29
- const i = t.trim();
30
- return i.length > 0 ? i : void 0;
31
- },
32
- o.string().min(1).optional()
33
- ),
34
- email: o.preprocess(
35
- (t) => {
36
- if (typeof t != "string") return;
37
- const i = t.trim();
38
- return i.length > 0 ? i : void 0;
39
- },
40
- o.string().email().optional()
41
- ),
42
- phone: o.preprocess(
43
- (t) => {
44
- if (typeof t != "string") return;
45
- const i = t.trim();
46
- return i.length > 0 ? i : void 0;
47
- },
48
- o.string().min(1).optional()
49
- ),
50
- message: d.optional()
51
- }), A = o.object({
52
- _id: m,
53
- externalId: p,
54
- state: l,
55
- shopId: n,
56
- customer: g,
57
- deliveryOption: o.enum(["delivery", "pickup"]),
58
- start: e,
59
- end: e,
60
- startAddress: o.string().optional(),
61
- endAddress: o.string().optional(),
62
- items: o.array(u),
63
- couponCode: o.string().min(1).optional(),
64
- couponDiscountRate: o.number().min(0).max(1).optional(),
65
- couponDiscountAmountUnits: r.optional(),
66
- couponAutoApplied: o.boolean().optional(),
67
- couponPriceRuleId: n.optional(),
68
- totalPriceUnits: r.optional(),
69
- cancellationPolicySnapshot: a.optional(),
70
- cancellationPolicyOverride: a.optional(),
71
- createdAt: e,
72
- updatedAt: e
73
- });
74
- export {
75
- u as baseBookingItemSchema,
76
- A as baseBookingSchema,
77
- l as baseBookingStateSchema
78
- };
@@ -1,35 +0,0 @@
1
- import { forwardRef as f, createElement as t } from "react";
2
- import u from "./defaultAttributes-C1BTxN61.js";
3
- import { hasA11yProp as n, mergeClasses as p } from "./shared/src/utils-nzQUBs6v.js";
4
- const g = f(
5
- ({
6
- color: a = "currentColor",
7
- size: r = 24,
8
- strokeWidth: o = 2,
9
- absoluteStrokeWidth: i,
10
- className: m = "",
11
- children: e,
12
- iconNode: d,
13
- ...s
14
- }, c) => t(
15
- "svg",
16
- {
17
- ref: c,
18
- ...u,
19
- width: r,
20
- height: r,
21
- stroke: a,
22
- strokeWidth: i ? Number(o) * 24 / Number(r) : o,
23
- className: p("lucide", m),
24
- ...!e && !n(s) && { "aria-hidden": "true" },
25
- ...s
26
- },
27
- [
28
- ...d.map(([h, l]) => t(h, l)),
29
- ...Array.isArray(e) ? e : [e]
30
- ]
31
- )
32
- );
33
- export {
34
- g as default
35
- };
@@ -1,21 +0,0 @@
1
- import { forwardRef as c, createElement as l } from "react";
2
- import { mergeClasses as f, toKebabCase as i, toPascalCase as s } from "./shared/src/utils-nzQUBs6v.js";
3
- import d from "./Icon-BNiQfVqr.js";
4
- const C = (a, o) => {
5
- const e = c(
6
- ({ className: r, ...t }, m) => l(d, {
7
- ref: m,
8
- iconNode: o,
9
- className: f(
10
- `lucide-${i(s(a))}`,
11
- `lucide-${a}`,
12
- r
13
- ),
14
- ...t
15
- })
16
- );
17
- return e.displayName = s(a), e;
18
- };
19
- export {
20
- C as default
21
- };
@@ -1,18 +0,0 @@
1
- const o = (a) => a.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), r = (a) => a.replace(
2
- /^([A-Z])|[\s-_]+(\w)/g,
3
- (e, t, s) => s ? s.toUpperCase() : t.toLowerCase()
4
- ), i = (a) => {
5
- const e = r(a);
6
- return e.charAt(0).toUpperCase() + e.slice(1);
7
- }, c = (...a) => a.filter((e, t, s) => !!e && e.trim() !== "" && s.indexOf(e) === t).join(" ").trim(), l = (a) => {
8
- for (const e in a)
9
- if (e.startsWith("aria-") || e === "role" || e === "title")
10
- return !0;
11
- };
12
- export {
13
- l as hasA11yProp,
14
- c as mergeClasses,
15
- r as toCamelCase,
16
- o as toKebabCase,
17
- i as toPascalCase
18
- };