@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.
- package/dist/chunks/booking-engine/dist/schemas/base-booking-Dlgnuu6k.js +74 -0
- package/dist/chunks/ui/dist/{Dialog-COr6fnKd.js → Dialog-CR_9vgBQ.js} +1 -1
- package/dist/chunks/ui/dist/{MorphingModalWizard-BuRND-yE.js → MorphingModalWizard-CPLr3dh2.js} +3 -3
- package/dist/chunks/ui/dist/{ResponsiveDialog-D8YzB_3J.js → ResponsiveDialog-DhFgsW_0.js} +2 -2
- package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/Icon-OkokCq-b.js +37 -0
- package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/context-C4oH64Wf.js +5 -0
- package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/createLucideIcon-BI4k0Tt0.js +23 -0
- package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/icons/{arrow-left-asE1l_Qw.js → arrow-left-DMMNgJEB.js} +1 -1
- package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/icons/{x-Cdi8GS7U.js → x-BDxS-rYd.js} +1 -1
- package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp-Lff9pF65.js +9 -0
- package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses-HV-Vu34x.js +4 -0
- package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase-BZAgYi2F.js +7 -0
- package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase-DsnfsuSi.js +4 -0
- package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase-DZxyG2X3.js +8 -0
- package/dist/components/BikeProductCard/index.d.ts.map +1 -1
- package/dist/components/BikeProductCard/index.js +40 -45
- package/dist/components/BookingBikeVariantDialog/index.js +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingEndDateField.js +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.js +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingStartDateField.js +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.js +1 -1
- package/dist/components/ContactSection/index.d.ts.map +1 -1
- package/dist/components/ContactSection/index.js +73 -98
- package/dist/components/DelayedReveal/index.js +1 -1
- package/dist/components/Footer/index.d.ts +2 -1
- package/dist/components/Footer/index.d.ts.map +1 -1
- package/dist/components/Footer/index.js +38 -48
- package/dist/components/Header/index.d.ts +2 -1
- package/dist/components/Header/index.d.ts.map +1 -1
- package/dist/components/Header/index.js +55 -62
- package/dist/components/Layout/index.d.ts.map +1 -1
- package/dist/components/Layout/index.js +35 -26
- package/dist/components/StorefrontCancellationPolicyNotice/index.js +3 -3
- package/dist/components/StorefrontPopupMessages/index.js +1 -1
- package/dist/i18n/en.d.ts +2 -5
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +7 -10
- package/dist/i18n/fr.d.ts +2 -5
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +8 -11
- package/dist/index.d.ts +8 -20
- package/dist/index.js +2 -2
- package/dist/lib/checkoutSubmit.js +1 -1
- package/dist/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPage.js +171 -179
- package/dist/pages/CheckoutPaymentPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPaymentPage.js +124 -145
- package/dist/pages/HomePage.d.ts.map +1 -1
- package/dist/pages/HomePage.js +185 -173
- package/dist/storefront.css +1 -1
- package/dist/storefrontSchemas.js +1 -1
- package/package.json +2 -2
- package/dist/chunks/booking-engine/dist/schemas/base-booking-BMAjsw9r.js +0 -78
- package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/Icon-BNiQfVqr.js +0 -35
- package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/createLucideIcon-5_J8fxOF.js +0 -21
- package/dist/chunks/ui/dist/node_modules/lucide-react/dist/esm/shared/src/utils-nzQUBs6v.js +0 -18
package/dist/index.d.ts
CHANGED
|
@@ -298,10 +298,6 @@ export declare const baseBookingItemSchema: z.ZodObject<{
|
|
|
298
298
|
}>;
|
|
299
299
|
qty: z.ZodNumber;
|
|
300
300
|
productVariantId: z.ZodOptional<z.ZodString>;
|
|
301
|
-
productShortCode: z.ZodOptional<z.ZodString>;
|
|
302
|
-
productName: z.ZodOptional<z.ZodString>;
|
|
303
|
-
productVariantName: z.ZodOptional<z.ZodString>;
|
|
304
|
-
productVariantCode: z.ZodOptional<z.ZodString>;
|
|
305
301
|
}, z.core.$strip>;
|
|
306
302
|
|
|
307
303
|
export declare const baseBookingSchema: z.ZodObject<{
|
|
@@ -346,10 +342,6 @@ export declare const baseBookingSchema: z.ZodObject<{
|
|
|
346
342
|
}>;
|
|
347
343
|
qty: z.ZodNumber;
|
|
348
344
|
productVariantId: z.ZodOptional<z.ZodString>;
|
|
349
|
-
productShortCode: z.ZodOptional<z.ZodString>;
|
|
350
|
-
productName: z.ZodOptional<z.ZodString>;
|
|
351
|
-
productVariantName: z.ZodOptional<z.ZodString>;
|
|
352
|
-
productVariantCode: z.ZodOptional<z.ZodString>;
|
|
353
345
|
}, z.core.$strip>>;
|
|
354
346
|
couponCode: z.ZodOptional<z.ZodString>;
|
|
355
347
|
couponDiscountRate: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1525,11 +1517,12 @@ export declare const findStorefrontProduct: (id: string, products: StorefrontPro
|
|
|
1525
1517
|
|
|
1526
1518
|
export declare const findStorefrontProductBySlug: (slug: string, products: StorefrontProductsCollections) => StorefrontProduct | null;
|
|
1527
1519
|
|
|
1528
|
-
export declare function Footer({ preset, whatsappHref, openingHours, openingHoursOverrides }: FooterProps): JSX.Element;
|
|
1520
|
+
export declare function Footer({ preset, whatsappHref, whatsappPhoneDisplay, openingHours, openingHoursOverrides, }: FooterProps): JSX.Element;
|
|
1529
1521
|
|
|
1530
1522
|
declare type FooterProps = {
|
|
1531
1523
|
preset: StorefrontPreset;
|
|
1532
1524
|
whatsappHref?: string;
|
|
1525
|
+
whatsappPhoneDisplay?: string;
|
|
1533
1526
|
openingHours?: StorefrontConfiguration["bookingEngine"]["shop"]["openingHours"];
|
|
1534
1527
|
openingHoursOverrides?: StorefrontConfiguration["bookingEngine"]["shop"]["openingHoursOverrides"];
|
|
1535
1528
|
};
|
|
@@ -1751,12 +1744,13 @@ export declare const getStorefrontPreset: (storeSlug?: string | null) => Storefr
|
|
|
1751
1744
|
|
|
1752
1745
|
export declare const getStorefrontRepresentedVariantId: (product: Pick<StorefrontProduct, "representedVariantId">) => string | undefined;
|
|
1753
1746
|
|
|
1754
|
-
export declare function Header({ preset, storefrontConfiguration, whatsappHref }: HeaderProps): JSX.Element;
|
|
1747
|
+
export declare function Header({ preset, storefrontConfiguration, whatsappHref, whatsappPhoneDisplay }: HeaderProps): JSX.Element;
|
|
1755
1748
|
|
|
1756
1749
|
declare type HeaderProps = {
|
|
1757
1750
|
preset: StorefrontPreset;
|
|
1758
1751
|
storefrontConfiguration?: StorefrontConfiguration;
|
|
1759
1752
|
whatsappHref?: string;
|
|
1753
|
+
whatsappPhoneDisplay?: string;
|
|
1760
1754
|
};
|
|
1761
1755
|
|
|
1762
1756
|
export declare const Input: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
@@ -3453,7 +3447,6 @@ export declare const storefrontEn: {
|
|
|
3453
3447
|
slug_label: string;
|
|
3454
3448
|
info: string;
|
|
3455
3449
|
top_bar_message: string;
|
|
3456
|
-
top_bar_whatsapp: string;
|
|
3457
3450
|
nav_categories: string;
|
|
3458
3451
|
nav_featured: string;
|
|
3459
3452
|
nav_products: string;
|
|
@@ -3470,8 +3463,8 @@ export declare const storefrontEn: {
|
|
|
3470
3463
|
feature_secure_payment_description: string;
|
|
3471
3464
|
feature_delivery_title: string;
|
|
3472
3465
|
feature_delivery_description: string;
|
|
3473
|
-
|
|
3474
|
-
|
|
3466
|
+
feature_guarantee_insurance_title: string;
|
|
3467
|
+
feature_guarantee_insurance_description: string;
|
|
3475
3468
|
cancellation_policy_teaser: string;
|
|
3476
3469
|
cancellation_policy_teaser_description: string;
|
|
3477
3470
|
cancellation_policy_info_aria_label: string;
|
|
@@ -3625,7 +3618,6 @@ export declare const storefrontEn: {
|
|
|
3625
3618
|
checkout_payment_due_now_helper_deposit_refundable_until: string;
|
|
3626
3619
|
checkout_payment_due_now_helper_deposit: string;
|
|
3627
3620
|
checkout_payment_due_now_helper_none: string;
|
|
3628
|
-
checkout_payment_cancellation_policy_helper: string;
|
|
3629
3621
|
checkout_payment_provider: string;
|
|
3630
3622
|
checkout_payment_loading: string;
|
|
3631
3623
|
checkout_payment_error: string;
|
|
@@ -3639,7 +3631,6 @@ export declare const storefrontEn: {
|
|
|
3639
3631
|
checkout_payment_return_loading: string;
|
|
3640
3632
|
checkout_payment_return_missing_session: string;
|
|
3641
3633
|
checkout_payment_return_status_error: string;
|
|
3642
|
-
checkout_payment_return_refresh_status: string;
|
|
3643
3634
|
checkout_payment_return_back_to_checkout: string;
|
|
3644
3635
|
checkout_payment_return_retry_checkout: string;
|
|
3645
3636
|
checkout_payment_return_go_to_success: string;
|
|
@@ -3894,7 +3885,6 @@ export declare const storefrontFr: {
|
|
|
3894
3885
|
slug_label: string;
|
|
3895
3886
|
info: string;
|
|
3896
3887
|
top_bar_message: string;
|
|
3897
|
-
top_bar_whatsapp: string;
|
|
3898
3888
|
nav_categories: string;
|
|
3899
3889
|
nav_featured: string;
|
|
3900
3890
|
nav_products: string;
|
|
@@ -3911,8 +3901,8 @@ export declare const storefrontFr: {
|
|
|
3911
3901
|
feature_secure_payment_description: string;
|
|
3912
3902
|
feature_delivery_title: string;
|
|
3913
3903
|
feature_delivery_description: string;
|
|
3914
|
-
|
|
3915
|
-
|
|
3904
|
+
feature_guarantee_insurance_title: string;
|
|
3905
|
+
feature_guarantee_insurance_description: string;
|
|
3916
3906
|
cancellation_policy_teaser: string;
|
|
3917
3907
|
cancellation_policy_teaser_description: string;
|
|
3918
3908
|
cancellation_policy_info_aria_label: string;
|
|
@@ -4066,7 +4056,6 @@ export declare const storefrontFr: {
|
|
|
4066
4056
|
checkout_payment_due_now_helper_deposit_refundable_until: string;
|
|
4067
4057
|
checkout_payment_due_now_helper_deposit: string;
|
|
4068
4058
|
checkout_payment_due_now_helper_none: string;
|
|
4069
|
-
checkout_payment_cancellation_policy_helper: string;
|
|
4070
4059
|
checkout_payment_provider: string;
|
|
4071
4060
|
checkout_payment_loading: string;
|
|
4072
4061
|
checkout_payment_error: string;
|
|
@@ -4080,7 +4069,6 @@ export declare const storefrontFr: {
|
|
|
4080
4069
|
checkout_payment_return_loading: string;
|
|
4081
4070
|
checkout_payment_return_missing_session: string;
|
|
4082
4071
|
checkout_payment_return_status_error: string;
|
|
4083
|
-
checkout_payment_return_refresh_status: string;
|
|
4084
4072
|
checkout_payment_return_back_to_checkout: string;
|
|
4085
4073
|
checkout_payment_return_retry_checkout: string;
|
|
4086
4074
|
checkout_payment_return_go_to_success: string;
|
package/dist/index.js
CHANGED
|
@@ -43,7 +43,7 @@ import "react-i18next";
|
|
|
43
43
|
import { getLocalizedEntry as gt, getLocalizedValue as Pt } from "./localization.js";
|
|
44
44
|
import { Badge as xt, badgeVariants as Ct } from "./ui/badge.js";
|
|
45
45
|
import { Button as Dt, buttonVariants as At } from "./ui/button.js";
|
|
46
|
-
import "./chunks/ui/dist/ResponsiveDialog-
|
|
46
|
+
import "./chunks/ui/dist/ResponsiveDialog-DhFgsW_0.js";
|
|
47
47
|
import { Card as Et, CardAction as bt, CardContent as Bt, CardDescription as kt, CardFooter as yt, CardHeader as It, CardTitle as _t } from "./ui/card.js";
|
|
48
48
|
import { loader as Mt, useOptionalStorefront as Lt, useStorefront as Ut, useStorefrontBookingProducts as vt, useStorefrontConfig as Nt, useStorefrontProducts as qt, useStorefrontWorkspaceLanguage as Vt } from "./StorefrontProvider.js";
|
|
49
49
|
import { RadioGroup as zt, RadioGroupItem as Ht } from "./ui/radio-group.js";
|
|
@@ -68,7 +68,7 @@ import { PRODUCT_VARIANT_CODE_IDENTIFIER_KIND as pa, PRODUCT_VARIANT_CODE_MAX_LE
|
|
|
68
68
|
import { createLocalizedStringEntry as Ba, getLocalizedStringValue as ka, localizedStringArraySchema as ya, localizedStringEntrySchema as Ia, localizedStringSchema as _a } from "./chunks/booking-engine/dist/models/LocalizedString--6q77SPQ.js";
|
|
69
69
|
import { priceSchema as Ma, priceUnitSchema as La } from "./chunks/booking-engine/dist/models/Price-BlFRDHXV.js";
|
|
70
70
|
import { baseAssetSchema as va, baseAssetStatusSchema as Na } from "./chunks/booking-engine/dist/schemas/base-asset-GJ9eIvIL.js";
|
|
71
|
-
import { baseBookingItemSchema as Va, baseBookingSchema as wa, baseBookingStateSchema as za } from "./chunks/booking-engine/dist/schemas/base-booking-
|
|
71
|
+
import { baseBookingItemSchema as Va, baseBookingSchema as wa, baseBookingStateSchema as za } from "./chunks/booking-engine/dist/schemas/base-booking-Dlgnuu6k.js";
|
|
72
72
|
import { richTextJsonDocSchema as Ka, richTextSchema as Wa, richTextVersionSchema as Ga } from "./chunks/booking-engine/dist/schemas/rich-text-CqXhNDN3.js";
|
|
73
73
|
import { currencyCodeSchema as Ja, currencyMinorUnitDigits as ja, majorToMinor as Qa, minorToMajor as Xa, moneyMinorSchema as Za, signedMoneyMinorSchema as $a } from "./chunks/booking-engine/dist/schemas/money-Dy4b9loa.js";
|
|
74
74
|
import { isoDateSchema as oc, shopConfigurationSchema as tc, shopExtraTimeSlotRuleSchema as rc, shopOpeningDayIndexSchema as ac, shopOpeningDaySchema as cc, shopOpeningHoursOverrideSchema as nc, shopOpeningHoursPeriodSchema as ic, shopOpeningSlotSchema as mc, timeOfDaySchema as Sc } from "./chunks/booking-engine/dist/schemas/shop-opening-hours-DqNWstqT.js";
|
|
@@ -4,7 +4,7 @@ import { productKindSchema as o } from "../chunks/booking-engine/dist/models/Pro
|
|
|
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-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 "../chunks/booking-engine/dist/schemas/shop-opening-hours-DqNWstqT.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../src/pages/CheckoutPage.tsx"],"names":[],"mappings":"AAuGA,MAAM,CAAC,OAAO,UAAU,YAAY,
|
|
1
|
+
{"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../src/pages/CheckoutPage.tsx"],"names":[],"mappings":"AAuGA,MAAM,CAAC,OAAO,UAAU,YAAY,4CA0lBnC"}
|