@loczer/storefront-sdk 0.182.0 → 0.184.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 (85) hide show
  1. package/dist/StorefrontProvider.d.ts +18 -15
  2. package/dist/StorefrontProvider.d.ts.map +1 -1
  3. package/dist/StorefrontProvider.js +24 -34
  4. package/dist/chunks/booking-engine/dist/models/{Product.shared-CJ6vPb6n.js → Product.shared-CTuk4fiR.js} +2 -2
  5. package/dist/chunks/booking-engine/dist/schemas/{base-asset-PqhtKnZA.js → base-asset-B_Dm8_Vk.js} +1 -1
  6. package/dist/chunks/booking-engine/dist/schemas/{base-booking-BM3jZzqu.js → base-booking-DW8AEPKo.js} +1 -1
  7. package/dist/chunks/booking-engine/dist/schemas/{base-product-BJd4ttMP.js → base-product-1H8l2aUv.js} +1 -1
  8. package/dist/chunks/booking-engine/dist/schemas/{cart-inputs-9vM8GCrc.js → cart-inputs-j1yWfJxO.js} +8 -5
  9. package/dist/chunks/booking-engine/dist/schemas-DftrSnTE.js +13 -0
  10. package/dist/chunks/ui/dist/Map/{MapContent--PwVTg2W.js → MapContent-QPkuTBvK.js} +2 -2
  11. package/dist/chunks/ui/dist/Map/{constants-DqrK8UkE.js → constants-BNmiJXfg.js} +1 -1
  12. package/dist/chunks/ui/dist/{Map-B45AxZ-D.js → Map-BXmRf5Ep.js} +3 -3
  13. package/dist/chunks/ui/dist/static/strings-1T2w7LqX.js +4 -0
  14. package/dist/components/AboutSection/index.d.ts +1 -6
  15. package/dist/components/AboutSection/index.d.ts.map +1 -1
  16. package/dist/components/AboutSection/index.js +43 -39
  17. package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts.map +1 -1
  18. package/dist/components/BookingPeriodSelector/useBookingPeriodController.js +152 -148
  19. package/dist/components/ContactSection/index.d.ts +1 -3
  20. package/dist/components/ContactSection/index.d.ts.map +1 -1
  21. package/dist/components/ContactSection/index.js +222 -164
  22. package/dist/components/Footer/index.d.ts +3 -4
  23. package/dist/components/Footer/index.d.ts.map +1 -1
  24. package/dist/components/Footer/index.js +98 -69
  25. package/dist/components/FulfillmentSection/index.d.ts.map +1 -1
  26. package/dist/components/FulfillmentSection/index.js +17 -16
  27. package/dist/components/Header/index.d.ts +1 -3
  28. package/dist/components/Header/index.d.ts.map +1 -1
  29. package/dist/components/Header/index.js +77 -72
  30. package/dist/components/Layout/index.d.ts +3 -1
  31. package/dist/components/Layout/index.d.ts.map +1 -1
  32. package/dist/components/Layout/index.js +45 -47
  33. package/dist/components/Map/index.js +1 -1
  34. package/dist/components/ProductPriceBadge/index.d.ts.map +1 -1
  35. package/dist/components/ProductPriceBadge/index.js +68 -60
  36. package/dist/i18n/I18nProvider.js +1 -1
  37. package/dist/i18n/fr.js +1 -1
  38. package/dist/index.d.ts +159 -150
  39. package/dist/index.js +64 -64
  40. package/dist/lib/booking.d.ts +3 -0
  41. package/dist/lib/booking.d.ts.map +1 -1
  42. package/dist/lib/booking.js +76 -74
  43. package/dist/lib/cart.d.ts +4 -1
  44. package/dist/lib/cart.d.ts.map +1 -1
  45. package/dist/lib/cart.js +64 -40
  46. package/dist/lib/cartSummary.d.ts.map +1 -1
  47. package/dist/lib/cartSummary.js +4 -3
  48. package/dist/lib/checkoutSubmit.d.ts.map +1 -1
  49. package/dist/lib/checkoutSubmit.js +36 -36
  50. package/dist/lib/productVariants.d.ts.map +1 -1
  51. package/dist/lib/productVariants.js +20 -9
  52. package/dist/lib/storefrontAddress.d.ts +5 -0
  53. package/dist/lib/storefrontAddress.d.ts.map +1 -0
  54. package/dist/lib/storefrontAddress.js +24 -0
  55. package/dist/lib/storefrontAvailability.d.ts +6 -6
  56. package/dist/lib/storefrontContact.d.ts +10 -0
  57. package/dist/lib/storefrontContact.d.ts.map +1 -0
  58. package/dist/lib/storefrontContact.js +24 -0
  59. package/dist/lib/storefrontMissingValues.d.ts +5 -0
  60. package/dist/lib/storefrontMissingValues.d.ts.map +1 -0
  61. package/dist/lib/storefrontMissingValues.js +4 -0
  62. package/dist/lib/storefrontProducts.d.ts +23 -21
  63. package/dist/lib/storefrontProducts.d.ts.map +1 -1
  64. package/dist/lib/storefrontProducts.js +7 -5
  65. package/dist/lib/whatsapp.d.ts +8 -6
  66. package/dist/lib/whatsapp.d.ts.map +1 -1
  67. package/dist/lib/whatsapp.js +16 -43
  68. package/dist/pages/BookingPage.js +36 -36
  69. package/dist/pages/HomePage.d.ts.map +1 -1
  70. package/dist/pages/HomePage.js +126 -128
  71. package/dist/pages/ProductPage.js +160 -160
  72. package/dist/storefront.css +1 -1
  73. package/dist/storefrontSchemas.d.ts +14 -12
  74. package/dist/storefrontSchemas.d.ts.map +1 -1
  75. package/dist/storefrontSchemas.js +3 -2
  76. package/dist/ui/radio-group.d.ts +1 -1
  77. package/package.json +7 -6
  78. package/dist/chunks/booking-engine/dist/schemas-BNlwu75Z.js +0 -13
  79. package/dist/chunks/ui/dist/static/strings-CPnO-KbA.js +0 -4
  80. package/dist/data/config.d.ts +0 -15
  81. package/dist/data/config.d.ts.map +0 -1
  82. package/dist/data/config.js +0 -24
  83. package/dist/static/strings.d.ts +0 -2
  84. package/dist/static/strings.d.ts.map +0 -1
  85. package/dist/static/strings.js +0 -4
@@ -37,11 +37,11 @@ export declare const storefrontSettingsSchema: z.ZodObject<{
37
37
  }>;
38
38
  availabilityDisplay: z.ZodObject<{
39
39
  defaultMode: z.ZodEnum<{
40
- soldOutOnly: "soldOutOnly";
41
- soldOutAndFewRemaining: "soldOutAndFewRemaining";
42
40
  fewRemaining: "fewRemaining";
43
41
  fewRemainingCounts: "fewRemainingCounts";
44
42
  remainingCounts: "remainingCounts";
43
+ soldOutAndFewRemaining: "soldOutAndFewRemaining";
44
+ soldOutOnly: "soldOutOnly";
45
45
  }>;
46
46
  defaultFewRemainingThreshold: z.ZodOptional<z.ZodNumber>;
47
47
  }, z.core.$strip>;
@@ -58,6 +58,7 @@ export declare const storefrontShopSchema: z.ZodObject<{
58
58
  id: z.ZodString;
59
59
  slug: z.ZodOptional<z.ZodString>;
60
60
  name: z.ZodString;
61
+ logoImageId: z.ZodOptional<z.ZodString>;
61
62
  timeZone: z.ZodOptional<z.ZodString>;
62
63
  url: z.ZodOptional<z.ZodString>;
63
64
  googleMapsLink: z.ZodOptional<z.ZodString>;
@@ -284,6 +285,7 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
284
285
  id: z.ZodString;
285
286
  slug: z.ZodOptional<z.ZodString>;
286
287
  name: z.ZodString;
288
+ logoImageId: z.ZodOptional<z.ZodString>;
287
289
  timeZone: z.ZodOptional<z.ZodString>;
288
290
  url: z.ZodOptional<z.ZodString>;
289
291
  googleMapsLink: z.ZodOptional<z.ZodString>;
@@ -307,11 +309,11 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
307
309
  }>;
308
310
  availabilityDisplay: z.ZodObject<{
309
311
  defaultMode: z.ZodEnum<{
310
- soldOutOnly: "soldOutOnly";
311
- soldOutAndFewRemaining: "soldOutAndFewRemaining";
312
312
  fewRemaining: "fewRemaining";
313
313
  fewRemainingCounts: "fewRemainingCounts";
314
314
  remainingCounts: "remainingCounts";
315
+ soldOutAndFewRemaining: "soldOutAndFewRemaining";
316
+ soldOutOnly: "soldOutOnly";
315
317
  }>;
316
318
  defaultFewRemainingThreshold: z.ZodOptional<z.ZodNumber>;
317
319
  }, z.core.$strip>;
@@ -325,7 +327,7 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
325
327
  }, z.core.$strip>;
326
328
  bookingEngine: z.ZodType<{
327
329
  availabilityDisplay: {
328
- defaultMode: "soldOutOnly" | "soldOutAndFewRemaining" | "fewRemaining" | "fewRemainingCounts" | "remainingCounts";
330
+ defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
329
331
  defaultFewRemainingThreshold?: number | undefined;
330
332
  };
331
333
  holdSettings: {
@@ -333,9 +335,9 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
333
335
  defaultTtlMinutes: number;
334
336
  };
335
337
  pricing: {
336
- baseUnit: "hour" | "half_day" | "day" | "week" | "month";
338
+ baseUnit: "day" | "half_day" | "hour" | "month" | "week";
337
339
  rentalUnits: {
338
- unit: "hour" | "half_day" | "day" | "week" | "month";
340
+ unit: "day" | "half_day" | "hour" | "month" | "week";
339
341
  durationHours: number;
340
342
  label?: Record<string, {
341
343
  [x: string]: unknown;
@@ -389,7 +391,7 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
389
391
  extraAmount: number;
390
392
  }[] | undefined;
391
393
  };
392
- currency: "EUR" | "USD" | "GBP" | "CHF";
394
+ currency: "CHF" | "EUR" | "GBP" | "USD";
393
395
  checkout: {
394
396
  mode: "auto_approve_when_possible" | "manual_approval_required";
395
397
  dynamicOptions?: {
@@ -399,7 +401,7 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
399
401
  };
400
402
  }, unknown, z.core.$ZodTypeInternals<{
401
403
  availabilityDisplay: {
402
- defaultMode: "soldOutOnly" | "soldOutAndFewRemaining" | "fewRemaining" | "fewRemainingCounts" | "remainingCounts";
404
+ defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
403
405
  defaultFewRemainingThreshold?: number | undefined;
404
406
  };
405
407
  holdSettings: {
@@ -407,9 +409,9 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
407
409
  defaultTtlMinutes: number;
408
410
  };
409
411
  pricing: {
410
- baseUnit: "hour" | "half_day" | "day" | "week" | "month";
412
+ baseUnit: "day" | "half_day" | "hour" | "month" | "week";
411
413
  rentalUnits: {
412
- unit: "hour" | "half_day" | "day" | "week" | "month";
414
+ unit: "day" | "half_day" | "hour" | "month" | "week";
413
415
  durationHours: number;
414
416
  label?: Record<string, {
415
417
  [x: string]: unknown;
@@ -463,7 +465,7 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
463
465
  extraAmount: number;
464
466
  }[] | undefined;
465
467
  };
466
- currency: "EUR" | "USD" | "GBP" | "CHF";
468
+ currency: "CHF" | "EUR" | "GBP" | "USD";
467
469
  checkout: {
468
470
  mode: "auto_approve_when_possible" | "manual_approval_required";
469
471
  dynamicOptions?: {
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQnC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEzE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;iBAe/B,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE,eAAO,MAAM,yBAAyB;;;;;;;iBAIpC,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAE3E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;iBAIlC,CAAA;AACF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,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQxC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA"}
@@ -1,9 +1,9 @@
1
1
  import { timeOfDaySchema as e } from "./chunks/booking-engine/dist/schemas/shop-opening-hours-BlLD1gfz.js";
2
2
  import { publicBookingEngineConfigurationSchema as t } from "./chunks/booking-engine/dist/schemas/public-booking-engine-configuration-BnJ_H-p1.js";
3
- import "./chunks/booking-engine/dist/schemas-BNlwu75Z.js";
3
+ import "./chunks/booking-engine/dist/schemas-DftrSnTE.js";
4
4
  import { z as n } from "zod";
5
5
  //#region src/storefrontSchemas.ts
6
- var r = n.string().trim().regex(/^\+[1-9]\d{1,14}$/, { message: "Invalid phone number format (expected E.164, e.g. +33608707197)." }), i = n.object({
6
+ var r = n.string().trim().regex(/^\+[1-9]\d{1,14}$/, { message: "Invalid phone number format (expected E.164, e.g. +14155552671)." }), i = n.object({
7
7
  value: n.string().trim().min(1),
8
8
  updatedAt: n.coerce.date(),
9
9
  autoTranslated: n.boolean().optional()
@@ -44,6 +44,7 @@ var r = n.string().trim().regex(/^\+[1-9]\d{1,14}$/, { message: "Invalid phone n
44
44
  id: n.string().min(1),
45
45
  slug: n.string().min(1).optional(),
46
46
  name: n.string().min(1),
47
+ logoImageId: n.string().min(1).optional(),
47
48
  timeZone: n.string().min(1).optional(),
48
49
  url: n.string().min(1).optional(),
49
50
  googleMapsLink: n.string().min(1).optional(),
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- declare const RadioGroup: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
2
+ declare const RadioGroup: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> & {
3
3
  value?: string;
4
4
  defaultValue?: string;
5
5
  onValueChange?: (value: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loczer/storefront-sdk",
3
- "version": "0.182.0",
3
+ "version": "0.184.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
@@ -73,7 +73,7 @@
73
73
  }
74
74
  },
75
75
  "typecheck": {
76
- "command": "node ../../node_modules/typescript/bin/tsc --noEmit",
76
+ "command": "tsc --noEmit",
77
77
  "dependencies": [
78
78
  "../booking-engine:build",
79
79
  "../ui:types:build"
@@ -111,7 +111,7 @@
111
111
  ]
112
112
  },
113
113
  "test": {
114
- "command": "node ../../node_modules/typescript/bin/tsc --noEmit && playwright test",
114
+ "command": "tsc --noEmit && playwright test",
115
115
  "dependencies": [
116
116
  "../booking-engine:build",
117
117
  "../ui:build"
@@ -146,12 +146,12 @@
146
146
  "class-variance-authority": "0.7.1",
147
147
  "date-fns": "4.1.0",
148
148
  "html-to-image": "1.11.13",
149
- "i18next": "25.7.3",
149
+ "i18next": "26.3.6",
150
150
  "interactjs": "1.10.27",
151
151
  "lucide-react": "1.22.0",
152
152
  "qrcode": "1.5.4",
153
153
  "react-day-picker": "9.13.0",
154
- "react-i18next": "16.5.0",
154
+ "react-i18next": "17.0.10",
155
155
  "react-signature-canvas": "1.1.0-alpha.2",
156
156
  "unicode-segmenter": "0.17.0"
157
157
  },
@@ -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.61.0",
162
+ "@playwright/test": "1.61.1",
163
163
  "@tailwindcss/vite": "4.3.3",
164
164
  "@types/qrcode": "1.5.6",
165
165
  "@types/react-signature-canvas": "1.0.7",
@@ -168,6 +168,7 @@
168
168
  "react-dom": "19.2.7",
169
169
  "tailwindcss": "4.3.3",
170
170
  "tw-animate-css": "1.4.0",
171
+ "typescript": "7.0.2",
171
172
  "vite": "8.1.5",
172
173
  "vite-plugin-dts": "4.5.4"
173
174
  }
@@ -1,13 +0,0 @@
1
- import { createLocalizedStringEntry as e, getLocalizedStringValue as t, localizedStringArraySchema as n, localizedStringEntrySchema as r, localizedStringSchema as i } from "./models/LocalizedString-D_TRgAdr.js";
2
- import { currencyCodeSchema as a, currencyMinorUnitDigits as o, majorToMinor as s, minorToMajor as c, moneyMinorSchema as l, signedMoneyMinorSchema as u } from "./schemas/money-CVoCY4of.js";
3
- import { priceSchema as d, priceUnitSchema as f } from "./models/Price-DCAgqkKh.js";
4
- import { PRODUCT_VARIANT_CODE_IDENTIFIER_KIND as p, PRODUCT_VARIANT_CODE_MAX_LENGTH as m, accessoryProductSchema as h, bikeProductSchema as g, eBikeProductSchema as _, isProductVariantCodeIdentifierKind as v, productKindSchema as y, productSchema as b, productStorefrontDisplayModeSchema as x, productVariantAttributeSchema as S, productVariantCodeSchema as C, productVariantIdentifierSchema as w, productVariantSchema as T } from "./models/Product.shared-CJ6vPb6n.js";
5
- import { richTextJsonDocSchema as E, richTextSchema as D, richTextVersionSchema as O } from "./schemas/rich-text-DTRh7U3z.js";
6
- import { isoDateSchema as k, shopConfigurationSchema as A, shopExtraTimeSlotRuleSchema as j, shopOpeningDayIndexSchema as M, shopOpeningDaySchema as N, shopOpeningHoursOverrideSchema as P, shopOpeningHoursPeriodSchema as F, shopOpeningSlotSchema as I, timeOfDaySchema as L } from "./schemas/shop-opening-hours-BlLD1gfz.js";
7
- import { DEFAULT_CANCELLATION_POLICY as R, DEFAULT_PAYMENT_POLICIES as z, cancellationPolicySchema as B, cancellationPolicyTierSchema as V, paymentPoliciesSchema as H } from "./schemas/booking-engine-configuration-D02MRF9U.js";
8
- import { fulfillmentModeSchema as U, publicBookingEngineConfigurationSchema as W, publicCheckoutConfigurationSchema as G, publicCheckoutDynamicOptionsSchema as K } from "./schemas/public-booking-engine-configuration-BnJ_H-p1.js";
9
- import { bookingCustomerInputSchema as q, bookingDeliveryOptionSchema as J, bookingScheduleInputSchema as Y, cartItemInputSchema as X, createBookingInputBaseSchema as Z, createBookingInputSchema as Q, validateBookingDeliveryAddress as $ } from "./schemas/cart-inputs-9vM8GCrc.js";
10
- import "./schemas/base-product-BJd4ttMP.js";
11
- import { baseAssetSchema as ee, baseAssetStatusSchema as te } from "./schemas/base-asset-PqhtKnZA.js";
12
- import { baseBookingItemSchema as ne, baseBookingSchema as re, baseBookingStateSchema as ie } from "./schemas/base-booking-BM3jZzqu.js";
13
- export { R as DEFAULT_CANCELLATION_POLICY, z as DEFAULT_PAYMENT_POLICIES, p as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, m as PRODUCT_VARIANT_CODE_MAX_LENGTH, h as accessoryProductSchema, ee as baseAssetSchema, te as baseAssetStatusSchema, ne as baseBookingItemSchema, re as baseBookingSchema, ie as baseBookingStateSchema, g as bikeProductSchema, q as bookingCustomerInputSchema, J as bookingDeliveryOptionSchema, Y as bookingScheduleInputSchema, B as cancellationPolicySchema, V as cancellationPolicyTierSchema, X as cartItemInputSchema, Z as createBookingInputBaseSchema, Q as createBookingInputSchema, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, _ as eBikeProductSchema, U as fulfillmentModeSchema, t as getLocalizedStringValue, v as isProductVariantCodeIdentifierKind, k as isoDateSchema, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, H as paymentPoliciesSchema, d as priceSchema, f as priceUnitSchema, y as productKindSchema, b as productSchema, x as productStorefrontDisplayModeSchema, S as productVariantAttributeSchema, C as productVariantCodeSchema, w as productVariantIdentifierSchema, T as productVariantSchema, W as publicBookingEngineConfigurationSchema, G as publicCheckoutConfigurationSchema, K as publicCheckoutDynamicOptionsSchema, E as richTextJsonDocSchema, D as richTextSchema, O as richTextVersionSchema, A as shopConfigurationSchema, j as shopExtraTimeSlotRuleSchema, M as shopOpeningDayIndexSchema, N as shopOpeningDaySchema, P as shopOpeningHoursOverrideSchema, F as shopOpeningHoursPeriodSchema, I as shopOpeningSlotSchema, u as signedMoneyMinorSchema, L as timeOfDaySchema, $ as validateBookingDeliveryAddress };
@@ -1,4 +0,0 @@
1
- //#region ../ui/dist/static/strings.js
2
- var e = [.6916996695275519, 47.39629439107775];
3
- //#endregion
4
- export { e as COORDS };
@@ -1,15 +0,0 @@
1
- export type StorefrontPreset = {
2
- name: string;
3
- tagline: string;
4
- hero_title: string;
5
- hero_description: string;
6
- address: string;
7
- email: string;
8
- phone_display: string;
9
- phone_href: string;
10
- whatsapp_href: string;
11
- };
12
- export declare const DEFAULT_STOREFRONT_PRESET: StorefrontPreset;
13
- export declare const STOREFRONT_PRESETS: Record<string, StorefrontPreset>;
14
- export declare const getStorefrontPreset: (storeSlug?: string | null) => StorefrontPreset;
15
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/data/config.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,MAAM,CAAA;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,gBAUvC,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAY/D,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,YAAY,MAAM,GAAG,IAAI,KAAG,gBAG/D,CAAA"}
@@ -1,24 +0,0 @@
1
- //#region src/data/config.ts
2
- var e = {
3
- name: "Storefront",
4
- tagline: "Bike rentals",
5
- hero_title: "Bike rental made simple",
6
- hero_description: "Pick your dates, then choose the right bike in a few clicks.",
7
- address: "Pickup at the shop",
8
- email: "contact@example.com",
9
- phone_display: "+1 (555) 555-5555",
10
- phone_href: "tel:+15555555555",
11
- whatsapp_href: "https://wa.me/15555555555"
12
- }, t = { "ca-roule": {
13
- name: "ÇA-ROULE.FR",
14
- tagline: "Loire Valley Bikes",
15
- hero_title: "Bike rental in Tours",
16
- hero_description: "Easily rent electric and regular bikes to discover the Loire by Bike.",
17
- address: "21 Rue des Amandiers, 37000 Tours",
18
- email: "contact@ca-roule.fr",
19
- phone_display: "+33 (0)6 08 70 71 97",
20
- phone_href: "tel:+33608707197",
21
- whatsapp_href: "https://wa.me/33608707197?text=Hello%20I%20would%20like%20to%20rent%20some%20bikes"
22
- } }, n = (n) => n ? t[n] ?? e : e;
23
- //#endregion
24
- export { e as DEFAULT_STOREFRONT_PRESET, t as STOREFRONT_PRESETS, n as getStorefrontPreset };
@@ -1,2 +0,0 @@
1
- export declare const COORDS: [number, number];
2
- //# sourceMappingURL=strings.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../src/static/strings.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAA2C,CAAA"}
@@ -1,4 +0,0 @@
1
- //#region src/static/strings.ts
2
- var e = [.6916996695275519, 47.39629439107775];
3
- //#endregion
4
- export { e as COORDS };