@loczer/storefront-sdk 0.152.0 → 0.154.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/StorefrontProvider.d.ts +677 -1139
- package/dist/StorefrontProvider.d.ts.map +1 -0
- package/dist/components/AboutSection/index.d.ts.map +1 -0
- package/dist/components/AboutSection/index.js +6 -6
- package/dist/components/AddressAutocompleteInput/index.d.ts.map +1 -0
- package/dist/components/BikeProductCard/index.d.ts.map +1 -0
- package/dist/components/BookingBikeVariantDialog/index.d.ts +12 -2
- package/dist/components/BookingBikeVariantDialog/index.d.ts.map +1 -0
- package/dist/components/BookingFlowSteps/index.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/BookingPeriodContext.d.ts +9 -0
- package/dist/components/BookingPeriodSelector/BookingPeriodContext.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndDateField.d.ts +2 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndDateField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.d.ts +2 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/BookingPeriodFieldErrorMessage.d.ts +7 -0
- package/dist/components/BookingPeriodSelector/components/BookingPeriodFieldErrorMessage.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/BookingStartDateField.d.ts +2 -0
- package/dist/components/BookingPeriodSelector/components/BookingStartDateField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.d.ts +2 -0
- package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/internal/ModalDayPickerField.d.ts +24 -0
- package/dist/components/BookingPeriodSelector/components/internal/ModalDayPickerField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.d.ts +22 -0
- package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/index.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts +102 -0
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts.map +1 -0
- package/dist/components/ContactSection/index.d.ts.map +1 -0
- package/dist/components/ContactSection/index.js +5 -5
- package/dist/components/ContractSaleDocument/AcceptanceModal.d.ts +8 -0
- package/dist/components/ContractSaleDocument/AcceptanceModal.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/Invoice.d.ts +13 -0
- package/dist/components/ContractSaleDocument/Invoice.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts +18 -0
- package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/Page.d.ts +8 -0
- package/dist/components/ContractSaleDocument/Page.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/PageFooter.d.ts +11 -0
- package/dist/components/ContractSaleDocument/PageFooter.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/PageHeader.d.ts +11 -0
- package/dist/components/ContractSaleDocument/PageHeader.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/SignatureModal.d.ts +9 -0
- package/dist/components/ContractSaleDocument/SignatureModal.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/TermsAndConditionsContent.d.ts +12 -0
- package/dist/components/ContractSaleDocument/TermsAndConditionsContent.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/ThumbnailSidebar.d.ts +12 -0
- package/dist/components/ContractSaleDocument/ThumbnailSidebar.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/index.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/language.d.ts +7 -0
- package/dist/components/ContractSaleDocument/language.d.ts.map +1 -0
- package/dist/components/DelayedReveal/index.d.ts.map +1 -0
- package/dist/components/DeliveryAddressSelector/index.d.ts.map +1 -0
- package/dist/components/Footer/BusinessHours.d.ts +17 -0
- package/dist/components/Footer/BusinessHours.d.ts.map +1 -0
- package/dist/components/Footer/businessHoursUtils.d.ts +14 -0
- package/dist/components/Footer/businessHoursUtils.d.ts.map +1 -0
- package/dist/components/Footer/businessHoursUtils.js +16 -16
- package/dist/components/Footer/index.d.ts.map +1 -0
- package/dist/components/FulfillmentSection/index.d.ts.map +1 -0
- package/dist/components/Header/index.d.ts.map +1 -0
- package/dist/components/Layout/index.d.ts.map +1 -0
- package/dist/components/Map/createMarkerElement.d.ts +2 -0
- package/dist/components/Map/createMarkerElement.d.ts.map +1 -0
- package/dist/components/Map/index.d.ts +101 -1
- package/dist/components/Map/index.d.ts.map +1 -0
- package/dist/components/Map/index.js +4 -3
- package/dist/components/PlatformFooter/index.d.ts.map +1 -0
- package/dist/components/PlaygroundDevFloatingButton/index.d.ts.map +1 -0
- package/dist/components/PoweredByLoczerBadge/index.d.ts.map +1 -0
- package/dist/components/ProductPriceBadge/index.d.ts.map +1 -0
- package/dist/components/ProductWarningNotice/index.d.ts.map +1 -0
- package/dist/components/StepSectionTitle/index.d.ts.map +1 -0
- package/dist/components/StorefrontCartPanel/index.d.ts +2 -1
- package/dist/components/StorefrontCartPanel/index.d.ts.map +1 -0
- package/dist/components/StorefrontCartPanel/index.js +68 -63
- package/dist/components/StorefrontPopupMessages/index.d.ts.map +1 -0
- package/dist/components/TestimonialsSection/index.d.ts.map +1 -0
- package/dist/components/WhatsAppFloatingButton/WhatsAppFloatingButton.d.ts +5 -0
- package/dist/components/WhatsAppFloatingButton/WhatsAppFloatingButton.d.ts.map +1 -0
- package/dist/components/WhatsAppFloatingButton/index.d.ts.map +1 -0
- package/dist/components/WhatsAppFloatingButton/useWhatsAppFloatingButton.d.ts +11 -0
- package/dist/components/WhatsAppFloatingButton/useWhatsAppFloatingButton.d.ts.map +1 -0
- package/dist/components/payment/MollieCardFieldsForm.d.ts +11 -0
- package/dist/components/payment/MollieCardFieldsForm.d.ts.map +1 -0
- package/dist/components/payment/StripeCardFieldsForm.d.ts +16 -0
- package/dist/components/payment/StripeCardFieldsForm.d.ts.map +1 -0
- package/dist/components/payment/index.d.ts.map +1 -0
- package/dist/data/accessories.d.ts.map +1 -0
- package/dist/data/bikes.d.ts.map +1 -0
- package/dist/data/config.d.ts.map +1 -0
- package/dist/i18n/I18nProvider.d.ts.map +1 -0
- package/dist/i18n/en.d.ts +1 -0
- package/dist/i18n/en.d.ts.map +1 -0
- package/dist/i18n/en.js +1 -0
- package/dist/i18n/fr.d.ts +1 -0
- package/dist/i18n/fr.d.ts.map +1 -0
- package/dist/i18n/fr.js +1 -0
- package/dist/index.d.ts +5228 -0
- package/dist/index.js +103 -100
- package/dist/lib/apiCall.d.ts.map +1 -0
- package/dist/lib/booking-period-time-slots.d.ts.map +1 -0
- package/dist/lib/booking-period.d.ts.map +1 -0
- package/dist/lib/booking.d.ts.map +1 -0
- package/dist/lib/cart.d.ts.map +1 -0
- package/dist/lib/cartSummary.d.ts.map +1 -0
- package/dist/lib/checkoutPaymentDecision.d.ts.map +1 -0
- package/dist/lib/checkoutPaymentSession.d.ts.map +1 -0
- package/dist/lib/checkoutSubmit.d.ts.map +1 -0
- package/dist/lib/checkoutVerifyCoupon.d.ts +1 -0
- package/dist/lib/checkoutVerifyCoupon.d.ts.map +1 -0
- package/dist/lib/checkoutVerifyCoupon.js +1 -0
- package/dist/lib/contactForm.d.ts.map +1 -0
- package/dist/lib/contractSaleDocument.d.ts.map +1 -0
- package/dist/lib/contractSaleDocumentApi.d.ts.map +1 -0
- package/dist/lib/isAutomationRuntime.d.ts.map +1 -0
- package/dist/lib/mollieComponentStyles.d.ts.map +1 -0
- package/dist/lib/playgroundDevSettings.d.ts.map +1 -0
- package/dist/lib/pricing.d.ts.map +1 -0
- package/dist/lib/productImageStyles.d.ts.map +1 -0
- package/dist/lib/productVariants.d.ts.map +1 -0
- package/dist/lib/products.d.ts.map +1 -0
- package/dist/lib/richAddress.d.ts.map +1 -0
- package/dist/lib/securePaymentLink.d.ts.map +1 -0
- package/dist/lib/storefrontAvailability.d.ts.map +1 -0
- package/dist/lib/storefrontImage.d.ts.map +1 -0
- package/dist/lib/storefrontProducts.d.ts.map +1 -0
- package/dist/lib/storefrontReviews.d.ts.map +1 -0
- package/dist/lib/storefrontTimeSlots.d.ts.map +1 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/whatsapp.d.ts.map +1 -0
- package/dist/localization.d.ts +9 -13
- package/dist/localization.d.ts.map +1 -0
- package/dist/pages/BookingPage.d.ts.map +1 -0
- package/dist/pages/CheckoutPage.d.ts.map +1 -0
- package/dist/pages/CheckoutPage.js +56 -51
- package/dist/pages/CheckoutPaymentPage.d.ts.map +1 -0
- package/dist/pages/CheckoutSuccessPage.d.ts.map +1 -0
- package/dist/pages/ContractSaleDocumentPage.d.ts.map +1 -0
- package/dist/pages/ErrorPage.d.ts.map +1 -0
- package/dist/pages/HomePage.d.ts.map +1 -0
- package/dist/pages/NotFoundPage.d.ts.map +1 -0
- package/dist/pages/PaymentLinkPage.d.ts.map +1 -0
- package/dist/pages/PaymentLinkSuccessPage.d.ts.map +1 -0
- package/dist/pages/ProductPage.d.ts.map +1 -0
- package/dist/pages/checkout/components/CheckoutCouponCard.d.ts +15 -0
- package/dist/pages/checkout/components/CheckoutCouponCard.d.ts.map +1 -0
- package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts +9 -0
- package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts.map +1 -0
- package/dist/pages/checkout/components/CheckoutPaymentCard.d.ts +22 -0
- package/dist/pages/checkout/components/CheckoutPaymentCard.d.ts.map +1 -0
- package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.d.ts +23 -0
- package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.d.ts.map +1 -0
- package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts +7 -0
- package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts.map +1 -0
- package/dist/pages/checkout/components/CheckoutSummaryColumn.js +16 -14
- package/dist/pages/checkout/components/MollieCheckoutForm.d.ts +9 -0
- package/dist/pages/checkout/components/MollieCheckoutForm.d.ts.map +1 -0
- package/dist/pages/checkout/components/StripeCheckoutForm.d.ts +8 -0
- package/dist/pages/checkout/components/StripeCheckoutForm.d.ts.map +1 -0
- package/dist/pages/checkout/types.d.ts +14 -0
- package/dist/pages/checkout/types.d.ts.map +1 -0
- package/dist/routes.d.ts +3 -6
- package/dist/routes.d.ts.map +1 -0
- package/dist/static/strings.d.ts +2 -0
- package/dist/static/strings.d.ts.map +1 -0
- package/dist/storefront.css +1 -1
- package/dist/storefrontSchemas.d.ts +565 -596
- package/dist/storefrontSchemas.d.ts.map +1 -0
- package/dist/ui/badge.d.ts.map +1 -0
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/button.d.ts.map +1 -0
- package/dist/ui/button.js +17 -17
- package/dist/ui/card.d.ts.map +1 -0
- package/dist/ui/card.js +8 -11
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/form.d.ts.map +1 -0
- package/dist/ui/form.js +52 -86
- package/dist/ui/input.d.ts.map +1 -0
- package/dist/ui/label.d.ts.map +1 -0
- package/dist/ui/radio-group.d.ts +10 -7
- package/dist/ui/radio-group.d.ts.map +1 -0
- package/dist/ui/radio-group.js +63 -45
- package/dist/ui/select.d.ts +29 -15
- package/dist/ui/select.d.ts.map +1 -0
- package/dist/ui/select.js +158 -232
- package/dist/ui/slot.d.ts +3 -7
- package/dist/ui/slot.d.ts.map +1 -0
- package/dist/ui/slot.js +47 -27
- package/dist/ui/textarea.d.ts.map +1 -0
- package/dist/ui/theme.d.ts +9 -0
- package/dist/ui/theme.d.ts.map +1 -0
- package/dist/ui/theme.js +24 -0
- package/dist/ui/tooltip.d.ts +30 -13
- package/dist/ui/tooltip.d.ts.map +1 -0
- package/dist/ui/tooltip.js +89 -60
- package/package.json +4 -2
- package/dist/BookingPage.d.ts +0 -6
- package/dist/CheckoutPage.d.ts +0 -6
- package/dist/CheckoutPaymentPage.d.ts +0 -6
- package/dist/CheckoutSuccessPage.d.ts +0 -6
- package/dist/ContractSaleDocumentPage.d.ts +0 -116
- package/dist/ErrorPage.d.ts +0 -6
- package/dist/HomePage.d.ts +0 -6
- package/dist/I18nProvider.d.ts +0 -23
- package/dist/NotFoundPage.d.ts +0 -6
- package/dist/PaymentLinkPage.d.ts +0 -40
- package/dist/PaymentLinkSuccessPage.d.ts +0 -40
- package/dist/ProductPage.d.ts +0 -6
- package/dist/accessories.d.ts +0 -42
- package/dist/apiCall.d.ts +0 -7
- package/dist/badge.d.ts +0 -14
- package/dist/bikes.d.ts +0 -107
- package/dist/booking-period-time-slots.d.ts +0 -264
- package/dist/booking-period.d.ts +0 -193
- package/dist/booking.d.ts +0 -402
- package/dist/button.d.ts +0 -16
- package/dist/card.d.ts +0 -18
- package/dist/cart.d.ts +0 -30
- package/dist/cartSummary.d.ts +0 -205
- package/dist/checkoutPaymentDecision.d.ts +0 -48
- package/dist/checkoutPaymentSession.d.ts +0 -65
- package/dist/checkoutSubmit.d.ts +0 -97
- package/dist/checkoutVerifyCoupon.d.ts +0 -45
- package/dist/config.d.ts +0 -19
- package/dist/contactForm.d.ts +0 -22
- package/dist/contractSaleDocument.d.ts +0 -242
- package/dist/contractSaleDocumentApi.d.ts +0 -481
- package/dist/en.d.ts +0 -369
- package/dist/form.d.ts +0 -44
- package/dist/fr.d.ts +0 -369
- package/dist/input.d.ts +0 -5
- package/dist/isAutomationRuntime.d.ts +0 -3
- package/dist/label.d.ts +0 -7
- package/dist/mollieComponentStyles.d.ts +0 -3
- package/dist/playgroundDevSettings.d.ts +0 -19
- package/dist/pricing.d.ts +0 -35
- package/dist/productImageStyles.d.ts +0 -25
- package/dist/productVariants.d.ts +0 -16
- package/dist/products.d.ts +0 -224
- package/dist/radio-group.d.ts +0 -14
- package/dist/richAddress.d.ts +0 -24
- package/dist/securePaymentLink.d.ts +0 -125
- package/dist/select.d.ts +0 -41
- package/dist/slot.d.ts +0 -15
- package/dist/storefrontAvailability.d.ts +0 -107
- package/dist/storefrontImage.d.ts +0 -16
- package/dist/storefrontProducts.d.ts +0 -400
- package/dist/storefrontReviews.d.ts +0 -84
- package/dist/storefrontTimeSlots.d.ts +0 -53
- package/dist/textarea.d.ts +0 -5
- package/dist/tooltip.d.ts +0 -43
- package/dist/utils.d.ts +0 -23
- package/dist/whatsapp.d.ts +0 -326
package/dist/ui/tooltip.js
CHANGED
|
@@ -1,73 +1,102 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import { Tooltip as
|
|
4
|
-
import { cn as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
function h({
|
|
13
|
-
delayDuration: o,
|
|
3
|
+
import { Tooltip as n } from "@base-ui/react/tooltip";
|
|
4
|
+
import { cn as s } from "@rpcbase/ui";
|
|
5
|
+
import { Slot as y } from "./slot.js";
|
|
6
|
+
import { useThemeAppearance as h } from "./theme.js";
|
|
7
|
+
const l = d.createContext({
|
|
8
|
+
delayDuration: 0
|
|
9
|
+
});
|
|
10
|
+
function N({
|
|
14
11
|
children: t,
|
|
15
|
-
|
|
12
|
+
delayDuration: e = 0,
|
|
13
|
+
delay: r,
|
|
14
|
+
closeDelay: i
|
|
16
15
|
}) {
|
|
17
|
-
|
|
18
|
-
return o === void 0 ? a : /* @__PURE__ */ i(r.Provider, { delay: o, children: a });
|
|
16
|
+
return /* @__PURE__ */ o(n.Provider, { delay: r ?? e, closeDelay: i, children: t });
|
|
19
17
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
function b({
|
|
19
|
+
delayDuration: t = 0,
|
|
20
|
+
open: e,
|
|
21
|
+
defaultOpen: r = !1,
|
|
22
|
+
onOpenChange: i,
|
|
23
|
+
children: a
|
|
25
24
|
}) {
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
|
|
25
|
+
return /* @__PURE__ */ o(l.Provider, { value: { delayDuration: t }, children: /* @__PURE__ */ o(
|
|
26
|
+
n.Root,
|
|
28
27
|
{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
open: e,
|
|
29
|
+
defaultOpen: r,
|
|
30
|
+
onOpenChange: (p) => i?.(p),
|
|
31
|
+
children: a
|
|
32
32
|
}
|
|
33
|
-
);
|
|
33
|
+
) });
|
|
34
34
|
}
|
|
35
|
-
const v = d.forwardRef(
|
|
36
|
-
r
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
const v = d.forwardRef(
|
|
36
|
+
({ asChild: t, delay: e, ...r }, i) => {
|
|
37
|
+
const { delayDuration: a } = d.useContext(l);
|
|
38
|
+
return /* @__PURE__ */ o(
|
|
39
|
+
n.Trigger,
|
|
40
|
+
{
|
|
41
|
+
ref: i,
|
|
42
|
+
delay: e ?? a,
|
|
43
|
+
render: t ? /* @__PURE__ */ o(y, {}) : void 0,
|
|
44
|
+
...r
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
v.displayName = "TooltipTrigger";
|
|
50
|
+
const x = d.forwardRef(
|
|
51
|
+
({
|
|
52
|
+
className: t,
|
|
53
|
+
side: e = "top",
|
|
54
|
+
align: r = "center",
|
|
55
|
+
sideOffset: i = 4,
|
|
56
|
+
disableAnimation: a = !1,
|
|
57
|
+
theme: p,
|
|
58
|
+
container: c,
|
|
59
|
+
positionerClassName: m,
|
|
60
|
+
...f
|
|
61
|
+
}, g) => {
|
|
62
|
+
const u = h(), T = p ?? u;
|
|
63
|
+
return /* @__PURE__ */ o(n.Portal, { container: c, children: /* @__PURE__ */ o(
|
|
64
|
+
n.Positioner,
|
|
45
65
|
{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
66
|
+
side: e,
|
|
67
|
+
align: r,
|
|
68
|
+
sideOffset: i,
|
|
69
|
+
positionMethod: "fixed",
|
|
70
|
+
className: s("z-50", m),
|
|
71
|
+
collisionPadding: 8,
|
|
72
|
+
collisionAvoidance: { side: "flip", align: "shift", fallbackAxisSide: "start" },
|
|
73
|
+
children: /* @__PURE__ */ o(
|
|
74
|
+
n.Popup,
|
|
75
|
+
{
|
|
76
|
+
ref: g,
|
|
77
|
+
role: "tooltip",
|
|
78
|
+
className: s(
|
|
79
|
+
T === "dark" && "dark",
|
|
80
|
+
"z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md",
|
|
81
|
+
a ? "transition-none" : "transition-opacity duration-75 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0",
|
|
82
|
+
"data-[instant]:transition-none",
|
|
83
|
+
t
|
|
84
|
+
),
|
|
85
|
+
...f
|
|
86
|
+
}
|
|
87
|
+
)
|
|
54
88
|
}
|
|
55
|
-
)
|
|
89
|
+
) });
|
|
56
90
|
}
|
|
57
|
-
)
|
|
58
|
-
|
|
59
|
-
const y = r.Arrow;
|
|
91
|
+
);
|
|
92
|
+
x.displayName = "TooltipContent";
|
|
60
93
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
v as
|
|
69
|
-
c as TooltipPortal,
|
|
70
|
-
w as TooltipProvider,
|
|
71
|
-
x as TooltipTrigger,
|
|
72
|
-
x as Trigger
|
|
94
|
+
x as Content,
|
|
95
|
+
N as Provider,
|
|
96
|
+
b as Root,
|
|
97
|
+
b as Tooltip,
|
|
98
|
+
x as TooltipContent,
|
|
99
|
+
N as TooltipProvider,
|
|
100
|
+
v as TooltipTrigger,
|
|
101
|
+
v as Trigger
|
|
73
102
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loczer/storefront-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.154.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"output": []
|
|
89
89
|
},
|
|
90
90
|
"build": {
|
|
91
|
-
"command": "vite build && node ./scripts/verify-post-build-leaks.js",
|
|
91
|
+
"command": "vite build && node ./scripts/rollup-leaked-dts.js && node ./scripts/verify-post-build-leaks.js",
|
|
92
92
|
"dependencies": [
|
|
93
93
|
"../booking-engine:build",
|
|
94
94
|
"../ui:build"
|
|
@@ -99,6 +99,7 @@
|
|
|
99
99
|
"tsconfig.build.json",
|
|
100
100
|
"vite.config.ts",
|
|
101
101
|
"tailwind.config.ts",
|
|
102
|
+
"scripts/rollup-leaked-dts.js",
|
|
102
103
|
"scripts/verify-post-build-leaks.js",
|
|
103
104
|
"src/**",
|
|
104
105
|
"../ports.ts",
|
|
@@ -156,6 +157,7 @@
|
|
|
156
157
|
"devDependencies": {
|
|
157
158
|
"@lz/booking-engine": "0.0.0",
|
|
158
159
|
"@lz/ui": "0.0.0",
|
|
160
|
+
"@microsoft/api-extractor": "7.58.7",
|
|
159
161
|
"@playwright/test": "1.59.1",
|
|
160
162
|
"@tailwindcss/vite": "4.1.18",
|
|
161
163
|
"@types/qrcode": "1.5.6",
|
package/dist/BookingPage.d.ts
DELETED
package/dist/CheckoutPage.d.ts
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { JSX } from 'react/jsx-runtime';
|
|
2
|
-
import { LoaderArgs } from '@rpcbase/client';
|
|
3
|
-
|
|
4
|
-
declare function ContractSaleDocumentPage(): JSX.Element;
|
|
5
|
-
export default ContractSaleDocumentPage;
|
|
6
|
-
|
|
7
|
-
export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
|
|
8
|
-
storeSlug: string;
|
|
9
|
-
referenceId: string;
|
|
10
|
-
saleDocumentId: string;
|
|
11
|
-
pdfMode: boolean;
|
|
12
|
-
documentLanguage: StorefrontI18nLanguage | null;
|
|
13
|
-
document: null;
|
|
14
|
-
error: string | null;
|
|
15
|
-
} | {
|
|
16
|
-
storeSlug: string;
|
|
17
|
-
referenceId: string;
|
|
18
|
-
saleDocumentId: string;
|
|
19
|
-
pdfMode: boolean;
|
|
20
|
-
documentLanguage: StorefrontI18nLanguage | null;
|
|
21
|
-
document: {
|
|
22
|
-
id: string;
|
|
23
|
-
kind: "invoice" | "credit_note";
|
|
24
|
-
saleDocumentNumber: string;
|
|
25
|
-
currency: string;
|
|
26
|
-
issuer: {
|
|
27
|
-
name: string;
|
|
28
|
-
address?: string | undefined;
|
|
29
|
-
richAddress?: {
|
|
30
|
-
provider: "google_places";
|
|
31
|
-
placeId: string;
|
|
32
|
-
label: string;
|
|
33
|
-
fullLabel?: string | undefined;
|
|
34
|
-
formattedAddress?: string | undefined;
|
|
35
|
-
location?: {
|
|
36
|
-
lat: number;
|
|
37
|
-
lng: number;
|
|
38
|
-
} | undefined;
|
|
39
|
-
addressComponents?: {
|
|
40
|
-
longText: string;
|
|
41
|
-
shortText: string;
|
|
42
|
-
types: string[];
|
|
43
|
-
}[] | undefined;
|
|
44
|
-
types?: string[] | undefined;
|
|
45
|
-
distanceMeters?: number | undefined;
|
|
46
|
-
} | undefined;
|
|
47
|
-
email?: string | undefined;
|
|
48
|
-
phone?: string | undefined;
|
|
49
|
-
};
|
|
50
|
-
recipient: {
|
|
51
|
-
name: string;
|
|
52
|
-
address?: string | undefined;
|
|
53
|
-
richAddress?: {
|
|
54
|
-
provider: "google_places";
|
|
55
|
-
placeId: string;
|
|
56
|
-
label: string;
|
|
57
|
-
fullLabel?: string | undefined;
|
|
58
|
-
formattedAddress?: string | undefined;
|
|
59
|
-
location?: {
|
|
60
|
-
lat: number;
|
|
61
|
-
lng: number;
|
|
62
|
-
} | undefined;
|
|
63
|
-
addressComponents?: {
|
|
64
|
-
longText: string;
|
|
65
|
-
shortText: string;
|
|
66
|
-
types: string[];
|
|
67
|
-
}[] | undefined;
|
|
68
|
-
types?: string[] | undefined;
|
|
69
|
-
distanceMeters?: number | undefined;
|
|
70
|
-
} | undefined;
|
|
71
|
-
email?: string | undefined;
|
|
72
|
-
phone?: string | undefined;
|
|
73
|
-
};
|
|
74
|
-
items: {
|
|
75
|
-
id: number;
|
|
76
|
-
description: string;
|
|
77
|
-
quantity: number;
|
|
78
|
-
unitPrice: number;
|
|
79
|
-
}[];
|
|
80
|
-
acceptanceLevel: "none" | "acceptance" | "signature";
|
|
81
|
-
date: Date;
|
|
82
|
-
dueDate: Date;
|
|
83
|
-
language?: {
|
|
84
|
-
legal: "fr" | "en";
|
|
85
|
-
customer: "fr" | "en";
|
|
86
|
-
translation?: "fr" | "en" | undefined;
|
|
87
|
-
} | undefined;
|
|
88
|
-
terms?: {
|
|
89
|
-
title: string;
|
|
90
|
-
articles: {
|
|
91
|
-
id: string;
|
|
92
|
-
title: string;
|
|
93
|
-
body: string;
|
|
94
|
-
translationTitle?: string | undefined;
|
|
95
|
-
translationBody?: string | undefined;
|
|
96
|
-
}[];
|
|
97
|
-
} | undefined;
|
|
98
|
-
taxRate?: number | undefined;
|
|
99
|
-
notes?: string | undefined;
|
|
100
|
-
acceptance?: {
|
|
101
|
-
mode: "acceptance";
|
|
102
|
-
date: Date;
|
|
103
|
-
} | {
|
|
104
|
-
mode: "signature";
|
|
105
|
-
name: string;
|
|
106
|
-
phone: string;
|
|
107
|
-
signature: string;
|
|
108
|
-
date: Date;
|
|
109
|
-
} | undefined;
|
|
110
|
-
};
|
|
111
|
-
error: null;
|
|
112
|
-
}>;
|
|
113
|
-
|
|
114
|
-
declare type StorefrontI18nLanguage = "en" | "fr";
|
|
115
|
-
|
|
116
|
-
export { }
|
package/dist/ErrorPage.d.ts
DELETED
package/dist/HomePage.d.ts
DELETED
package/dist/I18nProvider.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { JSX } from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
export declare const detectStorefrontI18nLanguage: (configuredLanguages?: readonly string[] | null, configuredFallbackLanguage?: string | null) => StorefrontI18nLanguage;
|
|
4
|
-
|
|
5
|
-
export declare function I18nProvider({ initialLanguage, configuredLanguages, configuredFallbackLanguage, children, }: {
|
|
6
|
-
initialLanguage?: string | null;
|
|
7
|
-
configuredLanguages?: readonly string[] | null;
|
|
8
|
-
configuredFallbackLanguage?: string | null;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
}): JSX.Element;
|
|
11
|
-
|
|
12
|
-
export declare const normalizeStorefrontI18nLanguage: (language: unknown) => StorefrontI18nLanguage | null;
|
|
13
|
-
|
|
14
|
-
export declare const resolveStorefrontI18nRequestLanguage: ({ cookieHeader, acceptLanguageHeader, configuredLanguages, configuredFallbackLanguage, }: {
|
|
15
|
-
cookieHeader?: unknown;
|
|
16
|
-
acceptLanguageHeader?: unknown;
|
|
17
|
-
configuredLanguages?: readonly string[] | null;
|
|
18
|
-
configuredFallbackLanguage?: string | null;
|
|
19
|
-
}) => StorefrontI18nLanguage;
|
|
20
|
-
|
|
21
|
-
export declare type StorefrontI18nLanguage = "en" | "fr";
|
|
22
|
-
|
|
23
|
-
export { }
|
package/dist/NotFoundPage.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { JSX } from 'react/jsx-runtime';
|
|
2
|
-
import { LoaderArgs } from '@rpcbase/client';
|
|
3
|
-
|
|
4
|
-
export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
|
|
5
|
-
storeSlug: string;
|
|
6
|
-
token: string;
|
|
7
|
-
session: null;
|
|
8
|
-
errorMessage: null;
|
|
9
|
-
errorKey: string;
|
|
10
|
-
} | {
|
|
11
|
-
storeSlug: string;
|
|
12
|
-
token: string;
|
|
13
|
-
session: null;
|
|
14
|
-
errorMessage: string | null;
|
|
15
|
-
errorKey: null;
|
|
16
|
-
} | {
|
|
17
|
-
storeSlug: string;
|
|
18
|
-
token: string;
|
|
19
|
-
session: {
|
|
20
|
-
token: string;
|
|
21
|
-
storeSlug: string;
|
|
22
|
-
saleId: string;
|
|
23
|
-
paymentId: string;
|
|
24
|
-
providerType: "stripe_connect_oauth" | "mollie_connect_oauth";
|
|
25
|
-
status: "pending" | "authorized" | "succeeded" | "failed" | "cancelled" | "refunded";
|
|
26
|
-
amountMinor: number;
|
|
27
|
-
currency: string;
|
|
28
|
-
reference: string;
|
|
29
|
-
expiresAt: string;
|
|
30
|
-
providerPaymentId?: string | undefined;
|
|
31
|
-
checkoutUrl?: string | undefined;
|
|
32
|
-
};
|
|
33
|
-
errorMessage: null;
|
|
34
|
-
errorKey: null;
|
|
35
|
-
}>;
|
|
36
|
-
|
|
37
|
-
declare function PaymentLinkPage(): JSX.Element;
|
|
38
|
-
export default PaymentLinkPage;
|
|
39
|
-
|
|
40
|
-
export { }
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { JSX } from 'react/jsx-runtime';
|
|
2
|
-
import { LoaderArgs } from '@rpcbase/client';
|
|
3
|
-
|
|
4
|
-
export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
|
|
5
|
-
storeSlug: string;
|
|
6
|
-
token: string;
|
|
7
|
-
session: null;
|
|
8
|
-
errorMessage: null;
|
|
9
|
-
errorKey: string;
|
|
10
|
-
} | {
|
|
11
|
-
storeSlug: string;
|
|
12
|
-
token: string;
|
|
13
|
-
session: null;
|
|
14
|
-
errorMessage: string | null;
|
|
15
|
-
errorKey: null;
|
|
16
|
-
} | {
|
|
17
|
-
storeSlug: string;
|
|
18
|
-
token: string;
|
|
19
|
-
session: {
|
|
20
|
-
token: string;
|
|
21
|
-
storeSlug: string;
|
|
22
|
-
saleId: string;
|
|
23
|
-
paymentId: string;
|
|
24
|
-
providerType: "stripe_connect_oauth" | "mollie_connect_oauth";
|
|
25
|
-
status: "pending" | "authorized" | "succeeded" | "failed" | "cancelled" | "refunded";
|
|
26
|
-
amountMinor: number;
|
|
27
|
-
currency: string;
|
|
28
|
-
reference: string;
|
|
29
|
-
expiresAt: string;
|
|
30
|
-
providerPaymentId?: string | undefined;
|
|
31
|
-
checkoutUrl?: string | undefined;
|
|
32
|
-
};
|
|
33
|
-
errorMessage: null;
|
|
34
|
-
errorKey: null;
|
|
35
|
-
}>;
|
|
36
|
-
|
|
37
|
-
declare function PaymentLinkSuccessPage(): JSX.Element;
|
|
38
|
-
export default PaymentLinkSuccessPage;
|
|
39
|
-
|
|
40
|
-
export { }
|
package/dist/ProductPage.d.ts
DELETED
package/dist/accessories.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export declare const accessories: ProductAccessory[];
|
|
2
|
-
|
|
3
|
-
declare type LocalizedString<TExtra extends Record<string, unknown> = Record<string, unknown>> = Record<string, LocalizedStringEntry<TExtra>>;
|
|
4
|
-
|
|
5
|
-
declare type LocalizedStringEntry<TExtra extends Record<string, unknown> = Record<string, unknown>> = {
|
|
6
|
-
value: string;
|
|
7
|
-
updatedAt: Date;
|
|
8
|
-
autoTranslated?: boolean;
|
|
9
|
-
} & TExtra;
|
|
10
|
-
|
|
11
|
-
export declare interface Price {
|
|
12
|
-
label: LocalizedString;
|
|
13
|
-
value: number;
|
|
14
|
-
unit: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export declare interface ProductAccessory {
|
|
18
|
-
id: string;
|
|
19
|
-
name: LocalizedString;
|
|
20
|
-
description?: LocalizedString;
|
|
21
|
-
images?: string[];
|
|
22
|
-
prices: Price[];
|
|
23
|
-
productVariants?: ProductVariant[];
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export declare interface ProductVariant {
|
|
27
|
-
id: string;
|
|
28
|
-
computedName: string;
|
|
29
|
-
attributes: ProductVariantAttribute[];
|
|
30
|
-
identifiers: Array<{
|
|
31
|
-
kind: string;
|
|
32
|
-
value: string;
|
|
33
|
-
}>;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export declare interface ProductVariantAttribute {
|
|
37
|
-
key: string;
|
|
38
|
-
label?: string;
|
|
39
|
-
value: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export { }
|
package/dist/apiCall.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Ctx } from '@rpcbase/api';
|
|
2
|
-
|
|
3
|
-
export declare const apiGet: <TResponse = Record<string, unknown>>(path: string, payload?: unknown, ctx?: Ctx) => Promise<TResponse>;
|
|
4
|
-
|
|
5
|
-
export declare const apiPost: <TResponse = Record<string, unknown>>(path: string, payload: unknown, ctx?: Ctx) => Promise<TResponse>;
|
|
6
|
-
|
|
7
|
-
export { }
|
package/dist/badge.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
-
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
import * as React_2 from 'react';
|
|
4
|
-
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
|
|
6
|
-
export declare function Badge({ className, variant, asChild, ...props }: React_2.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
7
|
-
asChild?: boolean;
|
|
8
|
-
}): JSX.Element;
|
|
9
|
-
|
|
10
|
-
export declare const badgeVariants: (props?: ({
|
|
11
|
-
variant?: "default" | "secondary" | "outline" | "destructive" | null | undefined;
|
|
12
|
-
} & ClassProp) | undefined) => string;
|
|
13
|
-
|
|
14
|
-
export { }
|
package/dist/bikes.d.ts
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
declare const bikes: ({
|
|
2
|
-
id: string;
|
|
3
|
-
name: {
|
|
4
|
-
fr: LocalizedStringEntry;
|
|
5
|
-
en: LocalizedStringEntry;
|
|
6
|
-
};
|
|
7
|
-
description: {
|
|
8
|
-
fr: LocalizedStringEntry;
|
|
9
|
-
en: LocalizedStringEntry;
|
|
10
|
-
};
|
|
11
|
-
images: string[];
|
|
12
|
-
prices: {
|
|
13
|
-
label: {
|
|
14
|
-
fr: LocalizedStringEntry;
|
|
15
|
-
en: LocalizedStringEntry;
|
|
16
|
-
};
|
|
17
|
-
value: number;
|
|
18
|
-
unit: string;
|
|
19
|
-
}[];
|
|
20
|
-
features: {
|
|
21
|
-
fr: LocalizedStringEntry;
|
|
22
|
-
en: LocalizedStringEntry;
|
|
23
|
-
}[];
|
|
24
|
-
productVariants: {
|
|
25
|
-
id: string;
|
|
26
|
-
computedName: string;
|
|
27
|
-
attributes: {
|
|
28
|
-
key: string;
|
|
29
|
-
value: string;
|
|
30
|
-
}[];
|
|
31
|
-
identifiers: {
|
|
32
|
-
kind: string;
|
|
33
|
-
value: string;
|
|
34
|
-
}[];
|
|
35
|
-
}[];
|
|
36
|
-
availabilityStatus?: undefined;
|
|
37
|
-
} | {
|
|
38
|
-
id: string;
|
|
39
|
-
name: {
|
|
40
|
-
fr: LocalizedStringEntry;
|
|
41
|
-
en: LocalizedStringEntry;
|
|
42
|
-
};
|
|
43
|
-
description: {
|
|
44
|
-
fr: LocalizedStringEntry;
|
|
45
|
-
en: LocalizedStringEntry;
|
|
46
|
-
};
|
|
47
|
-
images: string[];
|
|
48
|
-
prices: {
|
|
49
|
-
label: {
|
|
50
|
-
fr: LocalizedStringEntry;
|
|
51
|
-
en: LocalizedStringEntry;
|
|
52
|
-
};
|
|
53
|
-
value: number;
|
|
54
|
-
unit: string;
|
|
55
|
-
}[];
|
|
56
|
-
features: {
|
|
57
|
-
fr: LocalizedStringEntry;
|
|
58
|
-
en: LocalizedStringEntry;
|
|
59
|
-
}[];
|
|
60
|
-
productVariants: {
|
|
61
|
-
id: string;
|
|
62
|
-
computedName: string;
|
|
63
|
-
attributes: {
|
|
64
|
-
key: string;
|
|
65
|
-
value: string;
|
|
66
|
-
}[];
|
|
67
|
-
identifiers: {
|
|
68
|
-
kind: string;
|
|
69
|
-
value: string;
|
|
70
|
-
}[];
|
|
71
|
-
}[];
|
|
72
|
-
availabilityStatus: string;
|
|
73
|
-
} | {
|
|
74
|
-
id: string;
|
|
75
|
-
name: {
|
|
76
|
-
fr: LocalizedStringEntry;
|
|
77
|
-
en: LocalizedStringEntry;
|
|
78
|
-
};
|
|
79
|
-
description: {
|
|
80
|
-
fr: LocalizedStringEntry;
|
|
81
|
-
en: LocalizedStringEntry;
|
|
82
|
-
};
|
|
83
|
-
images: string[];
|
|
84
|
-
prices: {
|
|
85
|
-
label: {
|
|
86
|
-
fr: LocalizedStringEntry;
|
|
87
|
-
en: LocalizedStringEntry;
|
|
88
|
-
};
|
|
89
|
-
value: number;
|
|
90
|
-
unit: string;
|
|
91
|
-
}[];
|
|
92
|
-
features: {
|
|
93
|
-
fr: LocalizedStringEntry;
|
|
94
|
-
en: LocalizedStringEntry;
|
|
95
|
-
}[];
|
|
96
|
-
availabilityStatus: string;
|
|
97
|
-
productVariants?: undefined;
|
|
98
|
-
})[];
|
|
99
|
-
export default bikes;
|
|
100
|
-
|
|
101
|
-
declare type LocalizedStringEntry<TExtra extends Record<string, unknown> = Record<string, unknown>> = {
|
|
102
|
-
value: string;
|
|
103
|
-
updatedAt: Date;
|
|
104
|
-
autoTranslated?: boolean;
|
|
105
|
-
} & TExtra;
|
|
106
|
-
|
|
107
|
-
export { }
|