@loczer/storefront-sdk 0.212.0 → 0.214.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/StorefrontContext.d.ts +18 -0
- package/dist/StorefrontContext.d.ts.map +1 -1
- package/dist/StorefrontProvider.d.ts +9 -0
- package/dist/StorefrontProvider.d.ts.map +1 -1
- package/dist/chunks/pkg/ui/dist/Drawer/{index-CSvSVP_J.js → index-Dp62Y2o5.js} +10 -7
- package/dist/chunks/pkg/ui/dist/{ResponsiveDialog-BVwhTZQo.js → ResponsiveDialog-BJ0RG6gh.js} +1 -1
- package/dist/components/BikeProductCard/index.d.ts.map +1 -1
- package/dist/components/BikeProductCard/index.js +5 -5
- package/dist/components/BookingBikeVariantDialog/index.d.ts.map +1 -1
- package/dist/components/BookingBikeVariantDialog/index.js +23 -27
- package/dist/components/BookingFlowSteps/index.d.ts.map +1 -1
- package/dist/components/BookingFlowSteps/index.js +73 -32
- 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 +16 -16
- package/dist/components/BookingPeriodSelector/components/BookingStartDateField.js +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.js +1 -1
- package/dist/components/BookingPeriodSelector/components/internal/StorefrontHourPickerField.js +2 -2
- package/dist/components/BookingPeriodSelector/index.js +3 -3
- 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 +64 -58
- package/dist/components/FulfillmentSection/index.js +10 -4
- package/dist/components/Header/index.d.ts.map +1 -1
- package/dist/components/Header/index.js +205 -100
- package/dist/components/Layout/index.d.ts.map +1 -1
- package/dist/components/Layout/index.js +3 -2
- package/dist/components/PlatformFooter/index.js +6 -6
- package/dist/components/ProductPriceBadge/index.js +16 -10
- package/dist/components/StorefrontCancellationPolicyNotice/index.js +1 -1
- package/dist/components/StorefrontInsuranceNotice/index.js +1 -1
- package/dist/components/StorefrontPopupMessages/index.js +1 -1
- package/dist/i18n/en.d.ts +13 -4
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +13 -4
- package/dist/i18n/fr.d.ts +13 -4
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +13 -4
- package/dist/index.d.ts +88 -11
- package/dist/index.js +69 -68
- package/dist/lib/cart.d.ts +6 -2
- package/dist/lib/cart.d.ts.map +1 -1
- package/dist/lib/cart.js +45 -23
- package/dist/lib/checkoutSubmit.d.ts +3 -0
- package/dist/lib/checkoutSubmit.d.ts.map +1 -1
- package/dist/lib/checkoutSubmit.js +14 -2
- package/dist/pages/BookingPage.d.ts.map +1 -1
- package/dist/pages/BookingPage.js +8 -2
- package/dist/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPage.js +235 -245
- package/dist/pages/HomePage.d.ts.map +1 -1
- package/dist/pages/HomePage.js +253 -235
- package/dist/pages/RentalTermsPage.d.ts +2 -0
- package/dist/pages/RentalTermsPage.d.ts.map +1 -0
- package/dist/pages/RentalTermsPage.js +52 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +14 -10
- package/dist/storefront.css +1 -1
- package/dist/storefrontSchemas.d.ts +19 -0
- package/dist/storefrontSchemas.d.ts.map +1 -1
- package/dist/storefrontSchemas.js +39 -35
- package/package.json +1 -1
package/dist/i18n/fr.d.ts
CHANGED
|
@@ -11,6 +11,10 @@ export declare const storefront: {
|
|
|
11
11
|
nav_contact: string;
|
|
12
12
|
language_toggle: string;
|
|
13
13
|
cta_book_now: string;
|
|
14
|
+
cta_book_short: string;
|
|
15
|
+
mobile_menu_open: string;
|
|
16
|
+
mobile_menu_close: string;
|
|
17
|
+
mobile_menu_label: string;
|
|
14
18
|
cart_button: string;
|
|
15
19
|
checkout_button: string;
|
|
16
20
|
storefront_popup_title_fallback: string;
|
|
@@ -75,7 +79,9 @@ export declare const storefront: {
|
|
|
75
79
|
booking_time_slots_required: string;
|
|
76
80
|
booking_selected_days_tooltip_one: string;
|
|
77
81
|
booking_selected_days_tooltip_other: string;
|
|
78
|
-
|
|
82
|
+
booking_rental_period: string;
|
|
83
|
+
booking_date_drawer_continue: string;
|
|
84
|
+
booking_date_drawer_close: string;
|
|
79
85
|
booking_submit: string;
|
|
80
86
|
flow_step_booking: string;
|
|
81
87
|
flow_step_checkout: string;
|
|
@@ -364,8 +370,11 @@ export declare const storefront: {
|
|
|
364
370
|
contact_form_validation_phone_invalid: string;
|
|
365
371
|
contact_form_validation_message_required: string;
|
|
366
372
|
contact_form_validation_message_too_long: string;
|
|
367
|
-
|
|
368
|
-
|
|
373
|
+
footer_information_title: string;
|
|
374
|
+
rental_terms_title: string;
|
|
375
|
+
rental_terms_description: string;
|
|
376
|
+
rental_terms_effective_date: string;
|
|
377
|
+
rental_terms_unavailable: string;
|
|
369
378
|
footer_contact_title: string;
|
|
370
379
|
footer_whatsapp_link: string;
|
|
371
380
|
footer_hours_title: string;
|
|
@@ -376,7 +385,7 @@ export declare const storefront: {
|
|
|
376
385
|
footer_hours_week: string;
|
|
377
386
|
footer_hours_weekend: string;
|
|
378
387
|
platform_footer_powered_by: string;
|
|
379
|
-
|
|
388
|
+
platform_footer_legal_mentions: string;
|
|
380
389
|
platform_footer_privacy: string;
|
|
381
390
|
platform_footer_tagline: string;
|
|
382
391
|
secure_payment_link: {
|
package/dist/i18n/fr.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/i18n/fr.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/i18n/fr.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyftB,CAAA"}
|
package/dist/i18n/fr.js
CHANGED
|
@@ -12,6 +12,10 @@ var e = {
|
|
|
12
12
|
nav_contact: "Contact",
|
|
13
13
|
language_toggle: "FR/EN",
|
|
14
14
|
cta_book_now: "Réserver",
|
|
15
|
+
cta_book_short: "Réserver",
|
|
16
|
+
mobile_menu_open: "Ouvrir le menu de navigation",
|
|
17
|
+
mobile_menu_close: "Fermer le menu de navigation",
|
|
18
|
+
mobile_menu_label: "Navigation de la boutique",
|
|
15
19
|
cart_button: "Panier",
|
|
16
20
|
checkout_button: "Commander",
|
|
17
21
|
storefront_popup_title_fallback: "Information",
|
|
@@ -76,7 +80,9 @@ var e = {
|
|
|
76
80
|
booking_time_slots_required: "Sélectionnez des heures de départ et de retour disponibles avant de continuer.",
|
|
77
81
|
booking_selected_days_tooltip_one: "{{count}} jour",
|
|
78
82
|
booking_selected_days_tooltip_other: "{{count}} jours",
|
|
79
|
-
|
|
83
|
+
booking_rental_period: "Période de location",
|
|
84
|
+
booking_date_drawer_continue: "Continuer",
|
|
85
|
+
booking_date_drawer_close: "Fermer le calendrier",
|
|
80
86
|
booking_submit: "Voir les vélos disponibles",
|
|
81
87
|
flow_step_booking: "Réservation",
|
|
82
88
|
flow_step_checkout: "Confirmation & Paiement",
|
|
@@ -365,8 +371,11 @@ var e = {
|
|
|
365
371
|
contact_form_validation_phone_invalid: "Numéro de téléphone invalide.",
|
|
366
372
|
contact_form_validation_message_required: "Le message est requis.",
|
|
367
373
|
contact_form_validation_message_too_long: "Le message est trop long.",
|
|
368
|
-
|
|
369
|
-
|
|
374
|
+
footer_information_title: "Informations",
|
|
375
|
+
rental_terms_title: "Conditions générales de location",
|
|
376
|
+
rental_terms_description: "Ces conditions encadrent les réservations et locations proposées par {{shop_name}}.",
|
|
377
|
+
rental_terms_effective_date: "Version en vigueur au {{date}}.",
|
|
378
|
+
rental_terms_unavailable: "Les conditions générales de location n’ont pas encore été publiées.",
|
|
370
379
|
footer_contact_title: "Contact",
|
|
371
380
|
footer_whatsapp_link: "WhatsApp",
|
|
372
381
|
footer_hours_title: "Horaires d’ouverture",
|
|
@@ -377,7 +386,7 @@ var e = {
|
|
|
377
386
|
footer_hours_week: "Lun–Ven : 10:00–18:30",
|
|
378
387
|
footer_hours_weekend: "Sam–Dim : 10:00–18:30",
|
|
379
388
|
platform_footer_powered_by: "Propulsé par LOCZER",
|
|
380
|
-
|
|
389
|
+
platform_footer_legal_mentions: "Mentions légales",
|
|
381
390
|
platform_footer_privacy: "Politique de confidentialité",
|
|
382
391
|
platform_footer_tagline: "Le logiciel qui fait tourner les loueurs de vélos.",
|
|
383
392
|
secure_payment_link: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1759,9 +1759,10 @@ export declare const findStorefrontProduct: (id: string, products: StorefrontPro
|
|
|
1759
1759
|
|
|
1760
1760
|
export declare const findStorefrontProductBySlug: (slug: string, products: StorefrontProductsCollections) => StorefrontProduct | null;
|
|
1761
1761
|
|
|
1762
|
-
export declare function Footer({ shop, whatsappHref, whatsappPhoneDisplay, openingHours, openingHoursOverrides, }: FooterProps): JSX.Element;
|
|
1762
|
+
export declare function Footer({ storeSlug, shop, whatsappHref, whatsappPhoneDisplay, openingHours, openingHoursOverrides, }: FooterProps): JSX.Element;
|
|
1763
1763
|
|
|
1764
1764
|
declare type FooterProps = {
|
|
1765
|
+
storeSlug?: string;
|
|
1765
1766
|
shop?: StorefrontShop;
|
|
1766
1767
|
whatsappHref?: string;
|
|
1767
1768
|
whatsappPhoneDisplay?: string;
|
|
@@ -2368,6 +2369,15 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
|
|
|
2368
2369
|
autoTranslated?: boolean | undefined;
|
|
2369
2370
|
}> | undefined;
|
|
2370
2371
|
} | undefined;
|
|
2372
|
+
information?: {
|
|
2373
|
+
rentalTerms?: {
|
|
2374
|
+
version: 1;
|
|
2375
|
+
json: string;
|
|
2376
|
+
html: string;
|
|
2377
|
+
text: string;
|
|
2378
|
+
} | undefined;
|
|
2379
|
+
rentalTermsUpdatedAt?: string | null | undefined;
|
|
2380
|
+
} | undefined;
|
|
2371
2381
|
modules?: {
|
|
2372
2382
|
reviews?: {
|
|
2373
2383
|
enabled: boolean;
|
|
@@ -3018,6 +3028,8 @@ export declare type RentalPriceRow = {
|
|
|
3018
3028
|
perUnitPriceLabel: string;
|
|
3019
3029
|
};
|
|
3020
3030
|
|
|
3031
|
+
export declare function RentalTermsPage(): JSX.Element;
|
|
3032
|
+
|
|
3021
3033
|
export declare type RequestPayload = z.infer<typeof requestSchema>;
|
|
3022
3034
|
|
|
3023
3035
|
export declare const requestSchema: z.ZodObject<{
|
|
@@ -3367,13 +3379,13 @@ export declare const storefrontButtonRadiusClassName = "rounded-[var(--storefron
|
|
|
3367
3379
|
declare type StorefrontCartContextValue = {
|
|
3368
3380
|
items: StorefrontCartItem[];
|
|
3369
3381
|
itemCount: number;
|
|
3370
|
-
checkoutSessionId?: string;
|
|
3371
3382
|
addItem: (item: Omit<StorefrontCartItem, "key"> & {
|
|
3372
3383
|
key?: string;
|
|
3373
3384
|
}) => void;
|
|
3374
3385
|
setQuantity: (key: string, quantity: number) => void;
|
|
3375
3386
|
removeItem: (key: string) => void;
|
|
3376
|
-
|
|
3387
|
+
beginCheckoutSubmission: () => StorefrontCheckoutSubmission;
|
|
3388
|
+
confirmCheckoutPaymentSession: (checkoutSessionId: string) => void;
|
|
3377
3389
|
clearCheckoutSession: () => void;
|
|
3378
3390
|
clear: () => void;
|
|
3379
3391
|
};
|
|
@@ -3447,6 +3459,11 @@ export declare const storefrontCheckoutModeSchema: z.ZodEnum<{
|
|
|
3447
3459
|
manual_approval_required: "manual_approval_required";
|
|
3448
3460
|
}>;
|
|
3449
3461
|
|
|
3462
|
+
declare type StorefrontCheckoutSubmission = {
|
|
3463
|
+
checkoutSessionId: string;
|
|
3464
|
+
replacesCheckoutSessionId?: string;
|
|
3465
|
+
};
|
|
3466
|
+
|
|
3450
3467
|
export declare const storefrontCheckoutSubmitDeliveryRefinement: (payload: {
|
|
3451
3468
|
fulfillment?: string;
|
|
3452
3469
|
startAddress?: string;
|
|
@@ -3464,6 +3481,7 @@ export declare const storefrontCheckoutSubmitItemSchema: z.ZodObject<{
|
|
|
3464
3481
|
export declare const storefrontCheckoutSubmitRequestBaseSchema: z.ZodObject<{
|
|
3465
3482
|
storeSlug: z.ZodString;
|
|
3466
3483
|
checkoutSessionId: z.ZodOptional<z.ZodString>;
|
|
3484
|
+
replacesCheckoutSessionId: z.ZodOptional<z.ZodString>;
|
|
3467
3485
|
schedule: z.ZodObject<{
|
|
3468
3486
|
startDate: z.ZodString;
|
|
3469
3487
|
endDate: z.ZodString;
|
|
@@ -3501,6 +3519,7 @@ export declare type StorefrontCheckoutSubmitRequestPayload = z.infer<typeof stor
|
|
|
3501
3519
|
export declare const storefrontCheckoutSubmitRequestSchema: z.ZodObject<{
|
|
3502
3520
|
storeSlug: z.ZodString;
|
|
3503
3521
|
checkoutSessionId: z.ZodOptional<z.ZodString>;
|
|
3522
|
+
replacesCheckoutSessionId: z.ZodOptional<z.ZodString>;
|
|
3504
3523
|
schedule: z.ZodObject<{
|
|
3505
3524
|
startDate: z.ZodString;
|
|
3506
3525
|
endDate: z.ZodString;
|
|
@@ -3545,6 +3564,7 @@ export declare const storefrontCheckoutSubmitResponseSchema: z.ZodObject<{
|
|
|
3545
3564
|
nextPath: z.ZodString;
|
|
3546
3565
|
successPath: z.ZodString;
|
|
3547
3566
|
requiresPayment: z.ZodBoolean;
|
|
3567
|
+
checkoutSessionId: z.ZodOptional<z.ZodString>;
|
|
3548
3568
|
}, z.core.$strip>>;
|
|
3549
3569
|
}, z.core.$strip>;
|
|
3550
3570
|
|
|
@@ -3852,6 +3872,15 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
|
|
|
3852
3872
|
}, z.core.$strip>>>;
|
|
3853
3873
|
}, z.core.$strip>>;
|
|
3854
3874
|
}, z.core.$strip>>;
|
|
3875
|
+
information: z.ZodOptional<z.ZodObject<{
|
|
3876
|
+
rentalTerms: z.ZodOptional<z.ZodObject<{
|
|
3877
|
+
version: z.ZodLiteral<1>;
|
|
3878
|
+
json: z.ZodString;
|
|
3879
|
+
html: z.ZodString;
|
|
3880
|
+
text: z.ZodString;
|
|
3881
|
+
}, z.core.$strict>>;
|
|
3882
|
+
rentalTermsUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3883
|
+
}, z.core.$strip>>;
|
|
3855
3884
|
modules: z.ZodOptional<z.ZodObject<{
|
|
3856
3885
|
reviews: z.ZodOptional<z.ZodObject<{
|
|
3857
3886
|
enabled: z.ZodBoolean;
|
|
@@ -3995,6 +4024,10 @@ export declare const storefrontEn: {
|
|
|
3995
4024
|
nav_contact: string;
|
|
3996
4025
|
language_toggle: string;
|
|
3997
4026
|
cta_book_now: string;
|
|
4027
|
+
cta_book_short: string;
|
|
4028
|
+
mobile_menu_open: string;
|
|
4029
|
+
mobile_menu_close: string;
|
|
4030
|
+
mobile_menu_label: string;
|
|
3998
4031
|
cart_button: string;
|
|
3999
4032
|
checkout_button: string;
|
|
4000
4033
|
storefront_popup_title_fallback: string;
|
|
@@ -4059,7 +4092,9 @@ export declare const storefrontEn: {
|
|
|
4059
4092
|
booking_time_slots_required: string;
|
|
4060
4093
|
booking_selected_days_tooltip_one: string;
|
|
4061
4094
|
booking_selected_days_tooltip_other: string;
|
|
4062
|
-
|
|
4095
|
+
booking_rental_period: string;
|
|
4096
|
+
booking_date_drawer_continue: string;
|
|
4097
|
+
booking_date_drawer_close: string;
|
|
4063
4098
|
booking_submit: string;
|
|
4064
4099
|
flow_step_booking: string;
|
|
4065
4100
|
flow_step_checkout: string;
|
|
@@ -4347,8 +4382,11 @@ export declare const storefrontEn: {
|
|
|
4347
4382
|
contact_form_validation_phone_invalid: string;
|
|
4348
4383
|
contact_form_validation_message_required: string;
|
|
4349
4384
|
contact_form_validation_message_too_long: string;
|
|
4350
|
-
|
|
4351
|
-
|
|
4385
|
+
footer_information_title: string;
|
|
4386
|
+
rental_terms_title: string;
|
|
4387
|
+
rental_terms_description: string;
|
|
4388
|
+
rental_terms_effective_date: string;
|
|
4389
|
+
rental_terms_unavailable: string;
|
|
4352
4390
|
footer_contact_title: string;
|
|
4353
4391
|
footer_whatsapp_link: string;
|
|
4354
4392
|
footer_hours_title: string;
|
|
@@ -4359,7 +4397,7 @@ export declare const storefrontEn: {
|
|
|
4359
4397
|
footer_hours_week: string;
|
|
4360
4398
|
footer_hours_weekend: string;
|
|
4361
4399
|
platform_footer_powered_by: string;
|
|
4362
|
-
|
|
4400
|
+
platform_footer_legal_mentions: string;
|
|
4363
4401
|
platform_footer_privacy: string;
|
|
4364
4402
|
platform_footer_tagline: string;
|
|
4365
4403
|
secure_payment_link: {
|
|
@@ -4523,6 +4561,10 @@ export declare const storefrontFr: {
|
|
|
4523
4561
|
nav_contact: string;
|
|
4524
4562
|
language_toggle: string;
|
|
4525
4563
|
cta_book_now: string;
|
|
4564
|
+
cta_book_short: string;
|
|
4565
|
+
mobile_menu_open: string;
|
|
4566
|
+
mobile_menu_close: string;
|
|
4567
|
+
mobile_menu_label: string;
|
|
4526
4568
|
cart_button: string;
|
|
4527
4569
|
checkout_button: string;
|
|
4528
4570
|
storefront_popup_title_fallback: string;
|
|
@@ -4587,7 +4629,9 @@ export declare const storefrontFr: {
|
|
|
4587
4629
|
booking_time_slots_required: string;
|
|
4588
4630
|
booking_selected_days_tooltip_one: string;
|
|
4589
4631
|
booking_selected_days_tooltip_other: string;
|
|
4590
|
-
|
|
4632
|
+
booking_rental_period: string;
|
|
4633
|
+
booking_date_drawer_continue: string;
|
|
4634
|
+
booking_date_drawer_close: string;
|
|
4591
4635
|
booking_submit: string;
|
|
4592
4636
|
flow_step_booking: string;
|
|
4593
4637
|
flow_step_checkout: string;
|
|
@@ -4876,8 +4920,11 @@ export declare const storefrontFr: {
|
|
|
4876
4920
|
contact_form_validation_phone_invalid: string;
|
|
4877
4921
|
contact_form_validation_message_required: string;
|
|
4878
4922
|
contact_form_validation_message_too_long: string;
|
|
4879
|
-
|
|
4880
|
-
|
|
4923
|
+
footer_information_title: string;
|
|
4924
|
+
rental_terms_title: string;
|
|
4925
|
+
rental_terms_description: string;
|
|
4926
|
+
rental_terms_effective_date: string;
|
|
4927
|
+
rental_terms_unavailable: string;
|
|
4881
4928
|
footer_contact_title: string;
|
|
4882
4929
|
footer_whatsapp_link: string;
|
|
4883
4930
|
footer_hours_title: string;
|
|
@@ -4888,7 +4935,7 @@ export declare const storefrontFr: {
|
|
|
4888
4935
|
footer_hours_week: string;
|
|
4889
4936
|
footer_hours_weekend: string;
|
|
4890
4937
|
platform_footer_powered_by: string;
|
|
4891
|
-
|
|
4938
|
+
platform_footer_legal_mentions: string;
|
|
4892
4939
|
platform_footer_privacy: string;
|
|
4893
4940
|
platform_footer_tagline: string;
|
|
4894
4941
|
secure_payment_link: {
|
|
@@ -5004,6 +5051,18 @@ export declare const storefrontImageRequestSchema: z.ZodObject<{
|
|
|
5004
5051
|
w: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
5005
5052
|
}, z.core.$strip>;
|
|
5006
5053
|
|
|
5054
|
+
export declare type StorefrontInformation = z.infer<typeof storefrontInformationSchema>;
|
|
5055
|
+
|
|
5056
|
+
export declare const storefrontInformationSchema: z.ZodObject<{
|
|
5057
|
+
rentalTerms: z.ZodOptional<z.ZodObject<{
|
|
5058
|
+
version: z.ZodLiteral<1>;
|
|
5059
|
+
json: z.ZodString;
|
|
5060
|
+
html: z.ZodString;
|
|
5061
|
+
text: z.ZodString;
|
|
5062
|
+
}, z.core.$strict>>;
|
|
5063
|
+
rentalTermsUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5064
|
+
}, z.core.$strip>;
|
|
5065
|
+
|
|
5007
5066
|
export declare const storefrontItinerariesFeaturedRequestSchema: z.ZodObject<{
|
|
5008
5067
|
storeSlug: z.ZodString;
|
|
5009
5068
|
}, z.core.$strip>;
|
|
@@ -6334,6 +6393,15 @@ export declare function useStorefrontConfig(): {
|
|
|
6334
6393
|
autoTranslated?: boolean | undefined;
|
|
6335
6394
|
}> | undefined;
|
|
6336
6395
|
} | undefined;
|
|
6396
|
+
information?: {
|
|
6397
|
+
rentalTerms?: {
|
|
6398
|
+
version: 1;
|
|
6399
|
+
json: string;
|
|
6400
|
+
html: string;
|
|
6401
|
+
text: string;
|
|
6402
|
+
} | undefined;
|
|
6403
|
+
rentalTermsUpdatedAt?: string | null | undefined;
|
|
6404
|
+
} | undefined;
|
|
6337
6405
|
modules?: {
|
|
6338
6406
|
reviews?: {
|
|
6339
6407
|
enabled: boolean;
|
|
@@ -6561,6 +6629,15 @@ export declare function useStorefrontConfig(): {
|
|
|
6561
6629
|
autoTranslated?: boolean | undefined;
|
|
6562
6630
|
}> | undefined;
|
|
6563
6631
|
} | undefined;
|
|
6632
|
+
information?: {
|
|
6633
|
+
rentalTerms?: {
|
|
6634
|
+
version: 1;
|
|
6635
|
+
json: string;
|
|
6636
|
+
html: string;
|
|
6637
|
+
text: string;
|
|
6638
|
+
} | undefined;
|
|
6639
|
+
rentalTermsUpdatedAt?: string | null | undefined;
|
|
6640
|
+
} | undefined;
|
|
6564
6641
|
modules?: {
|
|
6565
6642
|
reviews?: {
|
|
6566
6643
|
enabled: boolean;
|
package/dist/index.js
CHANGED
|
@@ -12,81 +12,82 @@ import { bookingInsuranceConsentSourceSchema as ie, bookingInsuranceItemSnapshot
|
|
|
12
12
|
import { assetIdSchema as ue, baseAssetSchema as de, baseAssetStatusSchema as fe } from "./chunks/pkg/booking-engine/dist/schemas/base-asset-B4y__1qj.js";
|
|
13
13
|
import { baseBookingItemSchema as pe, baseBookingSchema as me, baseBookingStateSchema as he } from "./chunks/pkg/booking-engine/dist/schemas/base-booking-Bhy2Kww1.js";
|
|
14
14
|
import "./chunks/pkg/booking-engine/dist/schemas-C2PdkXfm.js";
|
|
15
|
-
import { STOREFRONT_HERO_MODES as ge, storefrontCheckoutModeSchema as _e, storefrontConfigurationSchema as ve, storefrontContentSchema as ye, storefrontFaqItemSchema as be, storefrontFaqSchema as xe, storefrontFulfillmentModeSchema as Se, storefrontHeroModeSchema as Ce,
|
|
16
|
-
import { BOOKING_SEARCH_KEYS as
|
|
17
|
-
import { getLocalizedEntry as
|
|
18
|
-
import { CATALOG_PRODUCT_BASE_RATE_UNSET as
|
|
19
|
-
import { StorefrontCartProvider as
|
|
20
|
-
import { cn as
|
|
21
|
-
import { buildPriceTierLabels as
|
|
22
|
-
import { buildStorefrontCartSummary as
|
|
23
|
-
import { ROUTE as
|
|
24
|
-
import { formatStorefrontPhoneDisplay as
|
|
25
|
-
import { STOREFRONT_ITINERARIES_FEATURED_ROUTE as
|
|
26
|
-
import { buildWhatsAppHref as
|
|
27
|
-
import { ROUTE as
|
|
28
|
-
import { ROUTE as
|
|
29
|
-
import { ROUTE as
|
|
30
|
-
import { ROUTE as
|
|
31
|
-
import { ROUTE as
|
|
32
|
-
import { Footer as
|
|
33
|
-
import { Badge as
|
|
34
|
-
import { Button as
|
|
35
|
-
import { StorefrontContext as
|
|
36
|
-
import { Header as
|
|
37
|
-
import { storefront as
|
|
38
|
-
import { storefront as
|
|
39
|
-
import { PoweredByLoczerBadge as
|
|
40
|
-
import { PlatformFooter as
|
|
41
|
-
import { useWhatsAppFloatingButton as
|
|
42
|
-
import { WhatsAppFloatingButton as
|
|
15
|
+
import { STOREFRONT_HERO_MODES as ge, storefrontCheckoutModeSchema as _e, storefrontConfigurationSchema as ve, storefrontContentSchema as ye, storefrontFaqItemSchema as be, storefrontFaqSchema as xe, storefrontFulfillmentModeSchema as Se, storefrontHeroModeSchema as Ce, storefrontInformationSchema as we, storefrontLocalizedRichTextSchema as Te, storefrontModalMessageSchema as Ee, storefrontModulesSchema as De, storefrontReviewsModuleSchema as Oe, storefrontRichTextSchema as ke, storefrontSettingsSchema as Ae, storefrontShopSchema as je, storefrontStatusSchema as Me, storefrontWorkspaceSchema as Ne } from "./storefrontSchemas.js";
|
|
16
|
+
import { BOOKING_SEARCH_KEYS as Pe, TIME_OPTIONS as Fe, applyBookingParamsToSearch as Ie, createBookingPeriodConfigFromBookingEngineConfiguration as Le, createBookingPeriodConfigFromShopConfiguration as Re, createBookingPeriodConfigFromStorefrontConfiguration as ze, getBookingParamsFromSearch as Be, getBookingSessionStorageKey as Ve, getDefaultBookingParams as He, getDefaultBookingParamsForStorefrontConfiguration as Ue, pickBookingSearchParams as We, readBookingSearchParamsFromSessionStorage as Ge, readBookingSearchParamsFromStorage as Ke, resolveBookingSearchParams as qe, resolveBookingSearchParamsFromSessionStorage as Je, writeBookingSearchParamsToSessionStorage as Ye, writeBookingSearchParamsToStorage as Xe } from "./lib/booking.js";
|
|
17
|
+
import { getLocalizedEntry as Ze, getLocalizedValue as Qe } from "./localization.js";
|
|
18
|
+
import { CATALOG_PRODUCT_BASE_RATE_UNSET as $e, buildStorefrontProductSlug as et, buildVariantStorefrontProductId as tt, compareCatalogProducts as nt, compareStorefrontAccessoryProducts as rt, compareStorefrontBikeProducts as it, findStorefrontProduct as at, findStorefrontProductBySlug as ot, getCatalogProductBaseRateMinor as st, getCatalogProductPaginationSort as ct, getCatalogProductSortFieldForPriceUnit as lt, getStorefrontBaseDailyRateMinor as ut, getStorefrontCheckoutProductId as dt, getStorefrontProductSelectionDisplayName as ft, getStorefrontRepresentedVariantId as pt, toStorefrontAccessoryProducts as mt, toStorefrontBikeProducts as ht, toStorefrontBookingProducts as gt, toStorefrontBookingProductsCollections as _t } from "./lib/products.js";
|
|
19
|
+
import { StorefrontCartProvider as vt, resolveStorefrontCartItemProduct as yt, useStorefrontCart as bt } from "./lib/cart.js";
|
|
20
|
+
import { cn as xt, formatPriceMinor as St, getAvailabilityVariant as Ct, getMinDayPriceMinor as wt } from "./lib/utils.js";
|
|
21
|
+
import { buildPriceTierLabels as Tt, buildRentalPriceRows as Et, calculateBookingRentalUnitSummary as Dt, calculateRentalPriceForQuantity as Ot, formatRentalUnitQuantity as kt, formatStorefrontPriceMinor as At, getPricingUnitLabel as jt } from "./lib/pricing.js";
|
|
22
|
+
import { buildStorefrontCartSummary as Mt } from "./lib/cartSummary.js";
|
|
23
|
+
import { ROUTE as Nt, requestSchema as Pt, responseSchema as Ft } from "./lib/contactForm.js";
|
|
24
|
+
import { formatStorefrontPhoneDisplay as It, resolveStorefrontMapsHref as Lt, resolveStorefrontPhoneContact as Rt } from "./lib/storefrontContact.js";
|
|
25
|
+
import { STOREFRONT_ITINERARIES_FEATURED_ROUTE as zt, STOREFRONT_ITINERARIES_LIST_ROUTE as Bt, STOREFRONT_ITINERARY_DETAIL_ROUTE as Vt, storefrontItinerariesFeaturedRequestSchema as Ht, storefrontItinerariesFeaturedResponseSchema as Ut, storefrontItinerariesListRequestSchema as Wt, storefrontItinerariesListResponseSchema as Gt, storefrontItineraryBoundsSchema as Kt, storefrontItineraryCoordinateSchema as qt, storefrontItineraryDetailRequestSchema as Jt, storefrontItineraryDetailResponseSchema as Yt, storefrontItineraryDetailSchema as Xt, storefrontItineraryDifficultySchema as Zt, storefrontItineraryLocalizedStringSchema as Qt, storefrontItineraryMetricsSchema as $t, storefrontItineraryPreviewSchema as en, storefrontItineraryStepSchema as tn, storefrontItinerarySummarySchema as nn, storefrontItineraryTripTypeSchema as rn } from "./lib/storefrontItineraries.js";
|
|
26
|
+
import { buildWhatsAppHref as an, resolveStorefrontWhatsAppContact as on, resolveStorefrontWhatsAppHref as sn } from "./lib/whatsapp.js";
|
|
27
|
+
import { ROUTE as cn, requestBaseSchema as ln, requestCheckoutItemSchema as un, requestDeliveryRefinement as dn, requestSchema as fn, responseSchema as pn } from "./lib/checkoutSubmit.js";
|
|
28
|
+
import { ROUTE as mn, requestSchema as hn, responseSchema as gn, storefrontPublicAccessoryProductSchema as _n, storefrontPublicBikeAvailabilityStatusSchema as vn, storefrontPublicBikeProductSchema as yn, storefrontPublicProductDisplayModeSchema as bn, storefrontPublicProductPriceSchema as xn, storefrontPublicProductVariantAttributeSchema as Sn, storefrontPublicProductVariantIdentifierSchema as Cn, storefrontPublicProductVariantSchema as wn } from "./lib/storefrontProducts.js";
|
|
29
|
+
import { ROUTE as Tn, buildStorefrontAvailabilityKey as En, doesStorefrontAvailabilityDisplaySoldOut as Dn, getStorefrontAvailabilityIssue as On, getStorefrontAvailabilityStatus as kn, isStorefrontAvailabilityInsufficient as An, publicAvailabilityDisplayModeSchema as jn, requestSchema as Mn, responseSchema as Nn, shouldBlockStorefrontUnavailableItem as Pn, storefrontAvailabilityProductSchema as Fn, storefrontAvailabilityScheduleSchema as In, storefrontPublicAvailabilityRecordSchema as Ln } from "./lib/storefrontAvailability.js";
|
|
30
|
+
import { ROUTE as Rn, buildStorefrontImageUrl as zn, requestSchema as Bn } from "./lib/storefrontImage.js";
|
|
31
|
+
import { ROUTE as Vn, requestSchema as Hn, responseSchema as Un, storefrontTimeSlotSchema as Wn, timeSlotJourneySchema as Gn } from "./lib/storefrontTimeSlots.js";
|
|
32
|
+
import { Footer as Kn } from "./components/Footer/index.js";
|
|
33
|
+
import { Badge as qn, badgeVariants as Jn } from "./ui/badge.js";
|
|
34
|
+
import { Button as Yn, buttonVariants as Xn, storefrontButtonRadiusClassName as Zn } from "./ui/button.js";
|
|
35
|
+
import { StorefrontContext as Qn, useOptionalStorefront as $n, useStorefront as er, useStorefrontBookingProducts as tr, useStorefrontConfig as nr, useStorefrontItineraries as rr, useStorefrontProducts as ir, useStorefrontWorkspaceLanguage as ar } from "./StorefrontContext.js";
|
|
36
|
+
import { Header as or } from "./components/Header/index.js";
|
|
37
|
+
import { storefront as sr } from "./i18n/en.js";
|
|
38
|
+
import { storefront as cr } from "./i18n/fr.js";
|
|
39
|
+
import { PoweredByLoczerBadge as lr } from "./components/PoweredByLoczerBadge/index.js";
|
|
40
|
+
import { PlatformFooter as ur } from "./components/PlatformFooter/index.js";
|
|
41
|
+
import { useWhatsAppFloatingButton as dr } from "./components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js";
|
|
42
|
+
import { WhatsAppFloatingButton as fr } from "./components/WhatsAppFloatingButton/WhatsAppFloatingButton.js";
|
|
43
43
|
import "./components/WhatsAppFloatingButton/index.js";
|
|
44
|
-
import { Layout as
|
|
45
|
-
import { DelayedPlaceholder as
|
|
46
|
-
import { BookingPeriodProvider as
|
|
47
|
-
import { Label as
|
|
48
|
-
import { BookingStartDateField as
|
|
49
|
-
import { BookingStartTimeField as
|
|
50
|
-
import { BookingEndDateField as
|
|
51
|
-
import { BookingEndTimeField as
|
|
52
|
-
import { BookingTimeSlotsStatus as
|
|
53
|
-
import { BookingMobileDateDrawer as
|
|
54
|
-
import { BookingPeriodSelector as
|
|
55
|
-
import { BookingFlowSteps as
|
|
56
|
-
import { Input as
|
|
57
|
-
import { DeliveryAddressSelector as
|
|
58
|
-
import { Form as
|
|
59
|
-
import { Textarea as
|
|
60
|
-
import { ContactSection as
|
|
61
|
-
import { TestimonialsSection as
|
|
62
|
-
import { AboutSection as
|
|
63
|
-
import { AdminFloatingButton as
|
|
44
|
+
import { Layout as pr } from "./components/Layout/index.js";
|
|
45
|
+
import { DelayedPlaceholder as mr, DelayedReveal as hr } from "./components/DelayedReveal/index.js";
|
|
46
|
+
import { BookingPeriodProvider as gr, useBookingPeriod as _r } from "./components/BookingPeriodSelector/BookingPeriodContext.js";
|
|
47
|
+
import { Label as vr } from "./ui/label.js";
|
|
48
|
+
import { BookingStartDateField as yr } from "./components/BookingPeriodSelector/components/BookingStartDateField.js";
|
|
49
|
+
import { BookingStartTimeField as br } from "./components/BookingPeriodSelector/components/BookingStartTimeField.js";
|
|
50
|
+
import { BookingEndDateField as xr } from "./components/BookingPeriodSelector/components/BookingEndDateField.js";
|
|
51
|
+
import { BookingEndTimeField as Sr } from "./components/BookingPeriodSelector/components/BookingEndTimeField.js";
|
|
52
|
+
import { BookingTimeSlotsStatus as Cr } from "./components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js";
|
|
53
|
+
import { BookingMobileDateDrawer as wr } from "./components/BookingPeriodSelector/components/BookingMobileDateDrawer.js";
|
|
54
|
+
import { BookingPeriodSelector as Tr } from "./components/BookingPeriodSelector/index.js";
|
|
55
|
+
import { BookingFlowSteps as Er } from "./components/BookingFlowSteps/index.js";
|
|
56
|
+
import { Input as Dr } from "./ui/input.js";
|
|
57
|
+
import { DeliveryAddressSelector as Or } from "./components/DeliveryAddressSelector/index.js";
|
|
58
|
+
import { Form as kr, FormControl as Ar, FormDescription as jr, FormField as Mr, FormItem as Nr, FormLabel as Pr, FormMessage as Fr, useFormField as Ir } from "./ui/form.js";
|
|
59
|
+
import { Textarea as Lr } from "./ui/textarea.js";
|
|
60
|
+
import { ContactSection as Rr } from "./components/ContactSection/index.js";
|
|
61
|
+
import { TestimonialsSection as zr } from "./components/TestimonialsSection/index.js";
|
|
62
|
+
import { AboutSection as Br } from "./components/AboutSection/index.js";
|
|
63
|
+
import { AdminFloatingButton as Vr } from "./components/AdminFloatingButton/AdminFloatingButton.js";
|
|
64
64
|
import "./components/AdminFloatingButton/index.js";
|
|
65
|
-
import { ItineraryListItem as
|
|
66
|
-
import { ItineraryRouteMap as
|
|
67
|
-
import { ItinerariesSection as
|
|
65
|
+
import { ItineraryListItem as Hr } from "./components/Itineraries/ItineraryListItem.js";
|
|
66
|
+
import { ItineraryRouteMap as Ur } from "./components/Itineraries/ItineraryRouteMap.js";
|
|
67
|
+
import { ItinerariesSection as Wr } from "./components/Itineraries/ItinerariesSection.js";
|
|
68
68
|
import "./components/Itineraries/index.js";
|
|
69
|
-
import { StepSectionTitle as
|
|
70
|
-
import { Card as
|
|
71
|
-
import { ProductWarningNotice as
|
|
72
|
-
import { StorefrontCartPanel as
|
|
73
|
-
import { ProductPriceBadge as
|
|
74
|
-
import { ContractSaleDocument as
|
|
69
|
+
import { StepSectionTitle as Gr } from "./components/StepSectionTitle/index.js";
|
|
70
|
+
import { Card as Kr, CardAction as qr, CardContent as Jr, CardDescription as Yr, CardFooter as Xr, CardHeader as Zr, CardTitle as Qr } from "./ui/card.js";
|
|
71
|
+
import { ProductWarningNotice as $r } from "./components/ProductWarningNotice/index.js";
|
|
72
|
+
import { StorefrontCartPanel as ei } from "./components/StorefrontCartPanel/index.js";
|
|
73
|
+
import { ProductPriceBadge as ti } from "./components/ProductPriceBadge/index.js";
|
|
74
|
+
import { ContractSaleDocument as ni } from "./components/ContractSaleDocument/Invoice.js";
|
|
75
75
|
import "./components/ContractSaleDocument/index.js";
|
|
76
|
-
import { RadioGroup as
|
|
76
|
+
import { RadioGroup as ri, RadioGroupItem as ii } from "./ui/radio-group.js";
|
|
77
77
|
import "./pages/HomePage.js";
|
|
78
78
|
import "./pages/BookingPage.js";
|
|
79
79
|
import "./pages/ProductPage.js";
|
|
80
|
-
import
|
|
81
|
-
import
|
|
80
|
+
import ai from "./pages/ItinerariesPage.js";
|
|
81
|
+
import oi, { loader as si } from "./pages/ItineraryDetailsPage.js";
|
|
82
|
+
import ci from "./pages/RentalTermsPage.js";
|
|
82
83
|
import "./pages/CheckoutPage.js";
|
|
83
84
|
import "./pages/CheckoutSuccessPage.js";
|
|
84
85
|
import "./pages/NotFoundPage.js";
|
|
85
|
-
import { accessories as
|
|
86
|
-
import
|
|
87
|
-
import { contractSaleDocumentAcceptanceLevelSchema as
|
|
88
|
-
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as
|
|
89
|
-
import
|
|
90
|
-
import { loader as
|
|
91
|
-
import { Select as
|
|
92
|
-
export { Ci as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, zr as AboutSection, Br as AdminFloatingButton, Ne as BOOKING_SEARCH_KEYS, Kn as Badge, br as BookingEndDateField, xr as BookingEndTimeField, Tr as BookingFlowSteps, Cr as BookingMobileDateDrawer, hr as BookingPeriodProvider, wr as BookingPeriodSelector, vr as BookingStartDateField, yr as BookingStartTimeField, Sr as BookingTimeSlotsStatus, Jn as Button, Qe as CATALOG_PRODUCT_BASE_RATE_UNSET, Gr as Card, Kr as CardAction, qr as CardContent, Jr as CardDescription, Yr as CardFooter, Xr as CardHeader, Zr as CardTitle, Lr as ContactSection, ti as ContractSaleDocument, Y as DEFAULT_BOOKING_DELIVERY_OPTION, B as DEFAULT_CANCELLATION_POLICY, V as DEFAULT_PAYMENT_POLICIES, p as DEFAULT_PRODUCT_KIND, wi as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, pr as DelayedPlaceholder, mr as DelayedReveal, Dr as DeliveryAddressSelector, Gn as Footer, Or as Form, kr as FormControl, Ar as FormDescription, jr as FormField, Mr as FormItem, Nr as FormLabel, Pr as FormMessage, Ti as GET_CONTRACT_SALE_DOCUMENT_ROUTE, ar as Header, Er as Input, ii as ItinerariesPage, Ur as ItinerariesSection, ai as ItineraryDetailsPage, Vr as ItineraryListItem, Hr as ItineraryRouteMap, _r as Label, fr as Layout, m as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, h as PRODUCT_VARIANT_CODE_MAX_LENGTH, lr as PlatformFooter, cr as PoweredByLoczerBadge, ei as ProductPriceBadge, Qr as ProductWarningNotice, Mt as ROUTE, ni as RadioGroup, ri as RadioGroupItem, wn as STOREFRONT_AVAILABILITY_ROUTE, sn as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, ge as STOREFRONT_HERO_MODES, Ln as STOREFRONT_IMAGE_ROUTE, Rt as STOREFRONT_ITINERARIES_FEATURED_ROUTE, zt as STOREFRONT_ITINERARIES_LIST_ROUTE, Bt as STOREFRONT_ITINERARY_DETAIL_ROUTE, pn as STOREFRONT_PRODUCTS_ROUTE, Bn as STOREFRONT_TIME_SLOTS_ROUTE, Hi as Select, Ui as SelectContent, Wi as SelectGroup, Gi as SelectIcon, Ki as SelectItem, qi as SelectItemIndicator, Ji as SelectItemText, Yi as SelectLabel, Xi as SelectScrollDownButton, Zi as SelectScrollUpButton, Qi as SelectSeparator, $i as SelectTrigger, ea as SelectValue, Wr as StepSectionTitle, $r as StorefrontCartPanel, _t as StorefrontCartProvider, Zn as StorefrontContext, Pe as TIME_OPTIONS, Rr as TestimonialsSection, Ir as Textarea, dr as WhatsAppFloatingButton, Ei as acceptContractSaleDocumentRequestSchema, Di as acceptContractSaleDocumentResponseSchema, si as accessories, g as accessoryProductSchema, Fe as applyBookingParamsToSearch, ue as assetIdSchema, qn as badgeVariants, de as baseAssetSchema, fe as baseAssetStatusSchema, pe as baseBookingItemSchema, me as baseBookingSchema, he as baseBookingStateSchema, _ as bikeProductSchema, ci as bikes, X as bookingCustomerInputSchema, Z as bookingDeliveryOptionSchema, ie as bookingInsuranceConsentSourceSchema, ae as bookingInsuranceItemSnapshotSchema, oe as bookingInsuranceSnapshotSchema, Q as bookingScheduleInputSchema, se as buildBookingInsuranceSnapshot, wt as buildPriceTierLabels, Tt as buildRentalPriceRows, Tn as buildStorefrontAvailabilityKey, jt as buildStorefrontCartSummary, Rn as buildStorefrontImageUrl, $e as buildStorefrontProductSlug, et as buildVariantStorefrontProductId, rn as buildWhatsAppHref, Yn as buttonVariants, Et as calculateBookingRentalUnitSummary, ce as calculateInsuranceCalendarDays, Dt as calculateRentalPriceForQuantity, H as cancellationPolicySchema, U as cancellationPolicyTierSchema, $ as cartItemInputSchema, bt as cn, tt as compareCatalogProducts, nt as compareStorefrontAccessoryProducts, rt as compareStorefrontBikeProducts, Oi as contractSaleDocumentAcceptanceInputSchema, li as contractSaleDocumentAcceptanceLevelSchema, ki as contractSaleDocumentAcceptanceRecordInputSchema, ui as contractSaleDocumentAcceptanceRecordSchema, di as contractSaleDocumentAcceptanceSchema, fi as contractSaleDocumentAddressSchema, Ai as contractSaleDocumentApiAcceptanceRecordSchema, ji as contractSaleDocumentApiAcceptanceSchema, Mi as contractSaleDocumentApiSchema, Ni as contractSaleDocumentApiSignatureSchema, pi as contractSaleDocumentAppendixKindSchema, mi as contractSaleDocumentAppendixSchema, hi as contractSaleDocumentContactSchema, gi as contractSaleDocumentKindSchema, _i as contractSaleDocumentLanguageCodeSchema, vi as contractSaleDocumentLanguageSchema, yi as contractSaleDocumentLineItemSchema, Pi as contractSaleDocumentReferenceSchema, Fi as contractSaleDocumentReferenceTypeSchema, bi as contractSaleDocumentRentalSchema, xi as contractSaleDocumentSchema, Ii as contractSaleDocumentSignatureInputSchema, Si as contractSaleDocumentSignatureSchema, ee as createBookingInputBaseSchema, te as createBookingInputSchema, Ie as createBookingPeriodConfigFromBookingEngineConfiguration, Le as createBookingPeriodConfigFromShopConfiguration, Re as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, En as doesStorefrontAvailabilityDisplaySoldOut, Li as downloadContractSaleDocumentPdfRequestSchema, v as eBikeProductSchema, it as findStorefrontProduct, at as findStorefrontProductBySlug, xt as formatPriceMinor, Ot as formatRentalUnitQuantity, Ft as formatStorefrontPhoneDisplay, kt as formatStorefrontPriceMinor, G as fulfillmentModeSchema, St as getAvailabilityVariant, ze as getBookingParamsFromSearch, Be as getBookingSessionStorageKey, ot as getCatalogProductBaseRateMinor, st as getCatalogProductPaginationSort, ct as getCatalogProductSortFieldForPriceUnit, Ri as getContractSaleDocumentRequestSchema, zi as getContractSaleDocumentResponseSchema, Ve as getDefaultBookingParams, He as getDefaultBookingParamsForStorefrontConfiguration, Xe as getLocalizedEntry, t as getLocalizedStringValue, Ze as getLocalizedValue, Ct as getMinDayPriceMinor, At as getPricingUnitLabel, Dn as getStorefrontAvailabilityIssue, On as getStorefrontAvailabilityStatus, lt as getStorefrontBaseDailyRateMinor, ut as getStorefrontCheckoutProductId, dt as getStorefrontProductSelectionDisplayName, ft as getStorefrontRepresentedVariantId, le as insuranceProviderSchema, y as isProductVariantCodeIdentifierKind, kn as isStorefrontAvailabilityInsufficient, j as isoDateSchema, oi as itineraryDetailsLoader, Vi as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, W as paymentPoliciesSchema, Ue as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, b as productInsuranceSchema, x as productKindSchema, S as productSchema, C as productStorefrontDisplayModeSchema, w as productVariantAttributeSchema, T as productVariantCodeSchema, E as productVariantIdentifierSchema, D as productVariantSchema, An as publicAvailabilityDisplayModeSchema, K as publicBookingEngineConfigurationSchema, q as publicCheckoutConfigurationSchema, J as publicCheckoutDynamicOptionsSchema, We as readBookingSearchParamsFromSessionStorage, Ge as readBookingSearchParamsFromStorage, Nt as requestSchema, ne as resolveBookingDeliveryOption, Ke as resolveBookingSearchParams, qe as resolveBookingSearchParamsFromSessionStorage, vt as resolveStorefrontCartItemProduct, It as resolveStorefrontMapsHref, Lt as resolveStorefrontPhoneContact, an as resolveStorefrontWhatsAppContact, on as resolveStorefrontWhatsAppHref, Pt as responseSchema, O as richTextJsonDocSchema, k as richTextSchema, A as richTextVersionSchema, M as shopConfigurationSchema, N as shopExtraTimeSlotRuleSchema, P as shopOpeningDayIndexSchema, F as shopOpeningDaySchema, I as shopOpeningHoursOverrideSchema, L as shopOpeningHoursPeriodSchema, R as shopOpeningSlotSchema, Nn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, Pn as storefrontAvailabilityProductSchema, jn as storefrontAvailabilityRequestSchema, Mn as storefrontAvailabilityResponseSchema, Fn as storefrontAvailabilityScheduleSchema, Xn as storefrontButtonRadiusClassName, _e as storefrontCheckoutModeSchema, un as storefrontCheckoutSubmitDeliveryRefinement, ln as storefrontCheckoutSubmitItemSchema, cn as storefrontCheckoutSubmitRequestBaseSchema, dn as storefrontCheckoutSubmitRequestSchema, fn as storefrontCheckoutSubmitResponseSchema, ve as storefrontConfigurationSchema, ye as storefrontContentSchema, or as storefrontEn, be as storefrontFaqItemSchema, xe as storefrontFaqSchema, sr as storefrontFr, Se as storefrontFulfillmentModeSchema, Ce as storefrontHeroModeSchema, zn as storefrontImageRequestSchema, Vt as storefrontItinerariesFeaturedRequestSchema, Ht as storefrontItinerariesFeaturedResponseSchema, Ut as storefrontItinerariesListRequestSchema, Wt as storefrontItinerariesListResponseSchema, Gt as storefrontItineraryBoundsSchema, Kt as storefrontItineraryCoordinateSchema, qt as storefrontItineraryDetailRequestSchema, Jt as storefrontItineraryDetailResponseSchema, Yt as storefrontItineraryDetailSchema, Xt as storefrontItineraryDifficultySchema, Zt as storefrontItineraryLocalizedStringSchema, Qt as storefrontItineraryMetricsSchema, $t as storefrontItineraryPreviewSchema, en as storefrontItineraryStepSchema, tn as storefrontItinerarySummarySchema, nn as storefrontItineraryTripTypeSchema, we as storefrontLocalizedRichTextSchema, Te as storefrontModalMessageSchema, Ee as storefrontModulesSchema, mn as storefrontProductsRequestSchema, hn as storefrontProductsResponseSchema, gn as storefrontPublicAccessoryProductSchema, In as storefrontPublicAvailabilityRecordSchema, _n as storefrontPublicBikeAvailabilityStatusSchema, vn as storefrontPublicBikeProductSchema, yn as storefrontPublicProductDisplayModeSchema, bn as storefrontPublicProductPriceSchema, xn as storefrontPublicProductVariantAttributeSchema, Sn as storefrontPublicProductVariantIdentifierSchema, Cn as storefrontPublicProductVariantSchema, De as storefrontReviewsModuleSchema, Oe as storefrontRichTextSchema, Bi as storefrontRoutes, ke as storefrontSettingsSchema, Ae as storefrontShopSchema, je as storefrontStatusSchema, Wn as storefrontTimeSlotJourneySchema, Un as storefrontTimeSlotSchema, Vn as storefrontTimeSlotsRequestSchema, Hn as storefrontTimeSlotsResponseSchema, Me as storefrontWorkspaceSchema, z as timeOfDaySchema, pt as toStorefrontAccessoryProducts, mt as toStorefrontBikeProducts, ht as toStorefrontBookingProducts, gt as toStorefrontBookingProductsCollections, gr as useBookingPeriod, Fr as useFormField, Qn as useOptionalStorefront, $n as useStorefront, er as useStorefrontBookingProducts, yt as useStorefrontCart, tr as useStorefrontConfig, nr as useStorefrontItineraries, rr as useStorefrontProducts, ir as useStorefrontWorkspaceLanguage, ur as useWhatsAppFloatingButton, re as validateBookingDeliveryAddress, Je as writeBookingSearchParamsToSessionStorage, Ye as writeBookingSearchParamsToStorage };
|
|
86
|
+
import { accessories as li } from "./data/accessories.js";
|
|
87
|
+
import ui from "./data/bikes.js";
|
|
88
|
+
import { contractSaleDocumentAcceptanceLevelSchema as di, contractSaleDocumentAcceptanceRecordSchema as fi, contractSaleDocumentAcceptanceSchema as pi, contractSaleDocumentAddressSchema as mi, contractSaleDocumentAppendixKindSchema as hi, contractSaleDocumentAppendixSchema as gi, contractSaleDocumentContactSchema as _i, contractSaleDocumentKindSchema as vi, contractSaleDocumentLanguageCodeSchema as yi, contractSaleDocumentLanguageSchema as bi, contractSaleDocumentLineItemSchema as xi, contractSaleDocumentRentalSchema as Si, contractSaleDocumentSchema as Ci, contractSaleDocumentSignatureSchema as wi } from "./lib/contractSaleDocument.js";
|
|
89
|
+
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Ti, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as Ei, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Di, acceptContractSaleDocumentRequestSchema as Oi, acceptContractSaleDocumentResponseSchema as ki, contractSaleDocumentAcceptanceInputSchema as Ai, contractSaleDocumentAcceptanceRecordInputSchema as ji, contractSaleDocumentApiAcceptanceRecordSchema as Mi, contractSaleDocumentApiAcceptanceSchema as Ni, contractSaleDocumentApiSchema as Pi, contractSaleDocumentApiSignatureSchema as Fi, contractSaleDocumentReferenceSchema as Ii, contractSaleDocumentReferenceTypeSchema as Li, contractSaleDocumentSignatureInputSchema as Ri, downloadContractSaleDocumentPdfRequestSchema as zi, getContractSaleDocumentRequestSchema as Bi, getContractSaleDocumentResponseSchema as Vi } from "./lib/contractSaleDocumentApi.js";
|
|
90
|
+
import Hi from "./routes.js";
|
|
91
|
+
import { loader as Ui } from "./StorefrontProvider.js";
|
|
92
|
+
import { Select as Wi, SelectContent as Gi, SelectGroup as Ki, SelectIcon as qi, SelectItem as Ji, SelectItemIndicator as Yi, SelectItemText as Xi, SelectLabel as Zi, SelectScrollDownButton as Qi, SelectScrollUpButton as $i, SelectSeparator as ea, SelectTrigger as ta, SelectValue as na } from "./ui/select.js";
|
|
93
|
+
export { Ti as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, Br as AboutSection, Vr as AdminFloatingButton, Pe as BOOKING_SEARCH_KEYS, qn as Badge, xr as BookingEndDateField, Sr as BookingEndTimeField, Er as BookingFlowSteps, wr as BookingMobileDateDrawer, gr as BookingPeriodProvider, Tr as BookingPeriodSelector, yr as BookingStartDateField, br as BookingStartTimeField, Cr as BookingTimeSlotsStatus, Yn as Button, $e as CATALOG_PRODUCT_BASE_RATE_UNSET, Kr as Card, qr as CardAction, Jr as CardContent, Yr as CardDescription, Xr as CardFooter, Zr as CardHeader, Qr as CardTitle, Rr as ContactSection, ni as ContractSaleDocument, Y as DEFAULT_BOOKING_DELIVERY_OPTION, B as DEFAULT_CANCELLATION_POLICY, V as DEFAULT_PAYMENT_POLICIES, p as DEFAULT_PRODUCT_KIND, Ei as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, mr as DelayedPlaceholder, hr as DelayedReveal, Or as DeliveryAddressSelector, Kn as Footer, kr as Form, Ar as FormControl, jr as FormDescription, Mr as FormField, Nr as FormItem, Pr as FormLabel, Fr as FormMessage, Di as GET_CONTRACT_SALE_DOCUMENT_ROUTE, or as Header, Dr as Input, ai as ItinerariesPage, Wr as ItinerariesSection, oi as ItineraryDetailsPage, Hr as ItineraryListItem, Ur as ItineraryRouteMap, vr as Label, pr as Layout, m as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, h as PRODUCT_VARIANT_CODE_MAX_LENGTH, ur as PlatformFooter, lr as PoweredByLoczerBadge, ti as ProductPriceBadge, $r as ProductWarningNotice, Nt as ROUTE, ri as RadioGroup, ii as RadioGroupItem, ci as RentalTermsPage, Tn as STOREFRONT_AVAILABILITY_ROUTE, cn as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, ge as STOREFRONT_HERO_MODES, Rn as STOREFRONT_IMAGE_ROUTE, zt as STOREFRONT_ITINERARIES_FEATURED_ROUTE, Bt as STOREFRONT_ITINERARIES_LIST_ROUTE, Vt as STOREFRONT_ITINERARY_DETAIL_ROUTE, mn as STOREFRONT_PRODUCTS_ROUTE, Vn as STOREFRONT_TIME_SLOTS_ROUTE, Wi as Select, Gi as SelectContent, Ki as SelectGroup, qi as SelectIcon, Ji as SelectItem, Yi as SelectItemIndicator, Xi as SelectItemText, Zi as SelectLabel, Qi as SelectScrollDownButton, $i as SelectScrollUpButton, ea as SelectSeparator, ta as SelectTrigger, na as SelectValue, Gr as StepSectionTitle, ei as StorefrontCartPanel, vt as StorefrontCartProvider, Qn as StorefrontContext, Fe as TIME_OPTIONS, zr as TestimonialsSection, Lr as Textarea, fr as WhatsAppFloatingButton, Oi as acceptContractSaleDocumentRequestSchema, ki as acceptContractSaleDocumentResponseSchema, li as accessories, g as accessoryProductSchema, Ie as applyBookingParamsToSearch, ue as assetIdSchema, Jn as badgeVariants, de as baseAssetSchema, fe as baseAssetStatusSchema, pe as baseBookingItemSchema, me as baseBookingSchema, he as baseBookingStateSchema, _ as bikeProductSchema, ui as bikes, X as bookingCustomerInputSchema, Z as bookingDeliveryOptionSchema, ie as bookingInsuranceConsentSourceSchema, ae as bookingInsuranceItemSnapshotSchema, oe as bookingInsuranceSnapshotSchema, Q as bookingScheduleInputSchema, se as buildBookingInsuranceSnapshot, Tt as buildPriceTierLabels, Et as buildRentalPriceRows, En as buildStorefrontAvailabilityKey, Mt as buildStorefrontCartSummary, zn as buildStorefrontImageUrl, et as buildStorefrontProductSlug, tt as buildVariantStorefrontProductId, an as buildWhatsAppHref, Xn as buttonVariants, Dt as calculateBookingRentalUnitSummary, ce as calculateInsuranceCalendarDays, Ot as calculateRentalPriceForQuantity, H as cancellationPolicySchema, U as cancellationPolicyTierSchema, $ as cartItemInputSchema, xt as cn, nt as compareCatalogProducts, rt as compareStorefrontAccessoryProducts, it as compareStorefrontBikeProducts, Ai as contractSaleDocumentAcceptanceInputSchema, di as contractSaleDocumentAcceptanceLevelSchema, ji as contractSaleDocumentAcceptanceRecordInputSchema, fi as contractSaleDocumentAcceptanceRecordSchema, pi as contractSaleDocumentAcceptanceSchema, mi as contractSaleDocumentAddressSchema, Mi as contractSaleDocumentApiAcceptanceRecordSchema, Ni as contractSaleDocumentApiAcceptanceSchema, Pi as contractSaleDocumentApiSchema, Fi as contractSaleDocumentApiSignatureSchema, hi as contractSaleDocumentAppendixKindSchema, gi as contractSaleDocumentAppendixSchema, _i as contractSaleDocumentContactSchema, vi as contractSaleDocumentKindSchema, yi as contractSaleDocumentLanguageCodeSchema, bi as contractSaleDocumentLanguageSchema, xi as contractSaleDocumentLineItemSchema, Ii as contractSaleDocumentReferenceSchema, Li as contractSaleDocumentReferenceTypeSchema, Si as contractSaleDocumentRentalSchema, Ci as contractSaleDocumentSchema, Ri as contractSaleDocumentSignatureInputSchema, wi as contractSaleDocumentSignatureSchema, ee as createBookingInputBaseSchema, te as createBookingInputSchema, Le as createBookingPeriodConfigFromBookingEngineConfiguration, Re as createBookingPeriodConfigFromShopConfiguration, ze as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, Dn as doesStorefrontAvailabilityDisplaySoldOut, zi as downloadContractSaleDocumentPdfRequestSchema, v as eBikeProductSchema, at as findStorefrontProduct, ot as findStorefrontProductBySlug, St as formatPriceMinor, kt as formatRentalUnitQuantity, It as formatStorefrontPhoneDisplay, At as formatStorefrontPriceMinor, G as fulfillmentModeSchema, Ct as getAvailabilityVariant, Be as getBookingParamsFromSearch, Ve as getBookingSessionStorageKey, st as getCatalogProductBaseRateMinor, ct as getCatalogProductPaginationSort, lt as getCatalogProductSortFieldForPriceUnit, Bi as getContractSaleDocumentRequestSchema, Vi as getContractSaleDocumentResponseSchema, He as getDefaultBookingParams, Ue as getDefaultBookingParamsForStorefrontConfiguration, Ze as getLocalizedEntry, t as getLocalizedStringValue, Qe as getLocalizedValue, wt as getMinDayPriceMinor, jt as getPricingUnitLabel, On as getStorefrontAvailabilityIssue, kn as getStorefrontAvailabilityStatus, ut as getStorefrontBaseDailyRateMinor, dt as getStorefrontCheckoutProductId, ft as getStorefrontProductSelectionDisplayName, pt as getStorefrontRepresentedVariantId, le as insuranceProviderSchema, y as isProductVariantCodeIdentifierKind, An as isStorefrontAvailabilityInsufficient, j as isoDateSchema, si as itineraryDetailsLoader, Ui as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, W as paymentPoliciesSchema, We as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, b as productInsuranceSchema, x as productKindSchema, S as productSchema, C as productStorefrontDisplayModeSchema, w as productVariantAttributeSchema, T as productVariantCodeSchema, E as productVariantIdentifierSchema, D as productVariantSchema, jn as publicAvailabilityDisplayModeSchema, K as publicBookingEngineConfigurationSchema, q as publicCheckoutConfigurationSchema, J as publicCheckoutDynamicOptionsSchema, Ge as readBookingSearchParamsFromSessionStorage, Ke as readBookingSearchParamsFromStorage, Pt as requestSchema, ne as resolveBookingDeliveryOption, qe as resolveBookingSearchParams, Je as resolveBookingSearchParamsFromSessionStorage, yt as resolveStorefrontCartItemProduct, Lt as resolveStorefrontMapsHref, Rt as resolveStorefrontPhoneContact, on as resolveStorefrontWhatsAppContact, sn as resolveStorefrontWhatsAppHref, Ft as responseSchema, O as richTextJsonDocSchema, k as richTextSchema, A as richTextVersionSchema, M as shopConfigurationSchema, N as shopExtraTimeSlotRuleSchema, P as shopOpeningDayIndexSchema, F as shopOpeningDaySchema, I as shopOpeningHoursOverrideSchema, L as shopOpeningHoursPeriodSchema, R as shopOpeningSlotSchema, Pn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, Fn as storefrontAvailabilityProductSchema, Mn as storefrontAvailabilityRequestSchema, Nn as storefrontAvailabilityResponseSchema, In as storefrontAvailabilityScheduleSchema, Zn as storefrontButtonRadiusClassName, _e as storefrontCheckoutModeSchema, dn as storefrontCheckoutSubmitDeliveryRefinement, un as storefrontCheckoutSubmitItemSchema, ln as storefrontCheckoutSubmitRequestBaseSchema, fn as storefrontCheckoutSubmitRequestSchema, pn as storefrontCheckoutSubmitResponseSchema, ve as storefrontConfigurationSchema, ye as storefrontContentSchema, sr as storefrontEn, be as storefrontFaqItemSchema, xe as storefrontFaqSchema, cr as storefrontFr, Se as storefrontFulfillmentModeSchema, Ce as storefrontHeroModeSchema, Bn as storefrontImageRequestSchema, we as storefrontInformationSchema, Ht as storefrontItinerariesFeaturedRequestSchema, Ut as storefrontItinerariesFeaturedResponseSchema, Wt as storefrontItinerariesListRequestSchema, Gt as storefrontItinerariesListResponseSchema, Kt as storefrontItineraryBoundsSchema, qt as storefrontItineraryCoordinateSchema, Jt as storefrontItineraryDetailRequestSchema, Yt as storefrontItineraryDetailResponseSchema, Xt as storefrontItineraryDetailSchema, Zt as storefrontItineraryDifficultySchema, Qt as storefrontItineraryLocalizedStringSchema, $t as storefrontItineraryMetricsSchema, en as storefrontItineraryPreviewSchema, tn as storefrontItineraryStepSchema, nn as storefrontItinerarySummarySchema, rn as storefrontItineraryTripTypeSchema, Te as storefrontLocalizedRichTextSchema, Ee as storefrontModalMessageSchema, De as storefrontModulesSchema, hn as storefrontProductsRequestSchema, gn as storefrontProductsResponseSchema, _n as storefrontPublicAccessoryProductSchema, Ln as storefrontPublicAvailabilityRecordSchema, vn as storefrontPublicBikeAvailabilityStatusSchema, yn as storefrontPublicBikeProductSchema, bn as storefrontPublicProductDisplayModeSchema, xn as storefrontPublicProductPriceSchema, Sn as storefrontPublicProductVariantAttributeSchema, Cn as storefrontPublicProductVariantIdentifierSchema, wn as storefrontPublicProductVariantSchema, Oe as storefrontReviewsModuleSchema, ke as storefrontRichTextSchema, Hi as storefrontRoutes, Ae as storefrontSettingsSchema, je as storefrontShopSchema, Me as storefrontStatusSchema, Gn as storefrontTimeSlotJourneySchema, Wn as storefrontTimeSlotSchema, Hn as storefrontTimeSlotsRequestSchema, Un as storefrontTimeSlotsResponseSchema, Ne as storefrontWorkspaceSchema, z as timeOfDaySchema, mt as toStorefrontAccessoryProducts, ht as toStorefrontBikeProducts, gt as toStorefrontBookingProducts, _t as toStorefrontBookingProductsCollections, _r as useBookingPeriod, Ir as useFormField, $n as useOptionalStorefront, er as useStorefront, tr as useStorefrontBookingProducts, bt as useStorefrontCart, nr as useStorefrontConfig, rr as useStorefrontItineraries, ir as useStorefrontProducts, ar as useStorefrontWorkspaceLanguage, dr as useWhatsAppFloatingButton, re as validateBookingDeliveryAddress, Ye as writeBookingSearchParamsToSessionStorage, Xe as writeBookingSearchParamsToStorage };
|
package/dist/lib/cart.d.ts
CHANGED
|
@@ -7,16 +7,20 @@ export type StorefrontCartItem = {
|
|
|
7
7
|
productVariantId?: string;
|
|
8
8
|
quantity: number;
|
|
9
9
|
};
|
|
10
|
+
type StorefrontCheckoutSubmission = {
|
|
11
|
+
checkoutSessionId: string;
|
|
12
|
+
replacesCheckoutSessionId?: string;
|
|
13
|
+
};
|
|
10
14
|
type StorefrontCartContextValue = {
|
|
11
15
|
items: StorefrontCartItem[];
|
|
12
16
|
itemCount: number;
|
|
13
|
-
checkoutSessionId?: string;
|
|
14
17
|
addItem: (item: Omit<StorefrontCartItem, "key"> & {
|
|
15
18
|
key?: string;
|
|
16
19
|
}) => void;
|
|
17
20
|
setQuantity: (key: string, quantity: number) => void;
|
|
18
21
|
removeItem: (key: string) => void;
|
|
19
|
-
|
|
22
|
+
beginCheckoutSubmission: () => StorefrontCheckoutSubmission;
|
|
23
|
+
confirmCheckoutPaymentSession: (checkoutSessionId: string) => void;
|
|
20
24
|
clearCheckoutSession: () => void;
|
|
21
25
|
clear: () => void;
|
|
22
26
|
};
|
package/dist/lib/cart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart.d.ts","sourceRoot":"","sources":["../../src/lib/cart.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAE5G,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,6BAA6B,EACnC,MAAM,YAAY,CAAA;AAGnB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,WAAW,CAAA;IACrC,SAAS,EAAE,MAAM,CAAA;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;
|
|
1
|
+
{"version":3,"file":"cart.d.ts","sourceRoot":"","sources":["../../src/lib/cart.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAE5G,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,6BAA6B,EACnC,MAAM,YAAY,CAAA;AAGnB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,WAAW,CAAA;IACrC,SAAS,EAAE,MAAM,CAAA;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AASD,KAAK,4BAA4B,GAAG;IAClC,iBAAiB,EAAE,MAAM,CAAA;IACzB,yBAAyB,CAAC,EAAE,MAAM,CAAA;CACnC,CAAA;AAED,KAAK,0BAA0B,GAAG;IAChC,KAAK,EAAE,kBAAkB,EAAE,CAAA;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,GAAG;QAAE,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IAC3E,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACpD,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,uBAAuB,EAAE,MAAM,4BAA4B,CAAA;IAC3D,6BAA6B,EAAE,CAAC,iBAAiB,EAAE,MAAM,KAAK,IAAI,CAAA;IAClE,oBAAoB,EAAE,MAAM,IAAI,CAAA;IAChC,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB,CAAA;AAiBD,eAAO,MAAM,gCAAgC,GAC3C,MAAM,kBAAkB,EACxB,UAAU,6BAA6B,KACtC,iBAAiB,GAAG,IAQtB,CAAA;AAmED,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,6BAA6B,CAAA;IACvC,QAAQ,EAAE,SAAS,CAAA;CACpB,2CA8KA;AAED,eAAO,MAAM,iBAAiB,kCAM7B,CAAA"}
|