@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.
Files changed (254) hide show
  1. package/dist/StorefrontProvider.d.ts +677 -1139
  2. package/dist/StorefrontProvider.d.ts.map +1 -0
  3. package/dist/components/AboutSection/index.d.ts.map +1 -0
  4. package/dist/components/AboutSection/index.js +6 -6
  5. package/dist/components/AddressAutocompleteInput/index.d.ts.map +1 -0
  6. package/dist/components/BikeProductCard/index.d.ts.map +1 -0
  7. package/dist/components/BookingBikeVariantDialog/index.d.ts +12 -2
  8. package/dist/components/BookingBikeVariantDialog/index.d.ts.map +1 -0
  9. package/dist/components/BookingFlowSteps/index.d.ts.map +1 -0
  10. package/dist/components/BookingPeriodSelector/BookingPeriodContext.d.ts +9 -0
  11. package/dist/components/BookingPeriodSelector/BookingPeriodContext.d.ts.map +1 -0
  12. package/dist/components/BookingPeriodSelector/components/BookingEndDateField.d.ts +2 -0
  13. package/dist/components/BookingPeriodSelector/components/BookingEndDateField.d.ts.map +1 -0
  14. package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.d.ts +2 -0
  15. package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.d.ts.map +1 -0
  16. package/dist/components/BookingPeriodSelector/components/BookingPeriodFieldErrorMessage.d.ts +7 -0
  17. package/dist/components/BookingPeriodSelector/components/BookingPeriodFieldErrorMessage.d.ts.map +1 -0
  18. package/dist/components/BookingPeriodSelector/components/BookingStartDateField.d.ts +2 -0
  19. package/dist/components/BookingPeriodSelector/components/BookingStartDateField.d.ts.map +1 -0
  20. package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.d.ts +2 -0
  21. package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.d.ts.map +1 -0
  22. package/dist/components/BookingPeriodSelector/components/internal/ModalDayPickerField.d.ts +24 -0
  23. package/dist/components/BookingPeriodSelector/components/internal/ModalDayPickerField.d.ts.map +1 -0
  24. package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.d.ts +22 -0
  25. package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.d.ts.map +1 -0
  26. package/dist/components/BookingPeriodSelector/index.d.ts.map +1 -0
  27. package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts +102 -0
  28. package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts.map +1 -0
  29. package/dist/components/ContactSection/index.d.ts.map +1 -0
  30. package/dist/components/ContactSection/index.js +5 -5
  31. package/dist/components/ContractSaleDocument/AcceptanceModal.d.ts +8 -0
  32. package/dist/components/ContractSaleDocument/AcceptanceModal.d.ts.map +1 -0
  33. package/dist/components/ContractSaleDocument/Invoice.d.ts +13 -0
  34. package/dist/components/ContractSaleDocument/Invoice.d.ts.map +1 -0
  35. package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts +18 -0
  36. package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts.map +1 -0
  37. package/dist/components/ContractSaleDocument/Page.d.ts +8 -0
  38. package/dist/components/ContractSaleDocument/Page.d.ts.map +1 -0
  39. package/dist/components/ContractSaleDocument/PageFooter.d.ts +11 -0
  40. package/dist/components/ContractSaleDocument/PageFooter.d.ts.map +1 -0
  41. package/dist/components/ContractSaleDocument/PageHeader.d.ts +11 -0
  42. package/dist/components/ContractSaleDocument/PageHeader.d.ts.map +1 -0
  43. package/dist/components/ContractSaleDocument/SignatureModal.d.ts +9 -0
  44. package/dist/components/ContractSaleDocument/SignatureModal.d.ts.map +1 -0
  45. package/dist/components/ContractSaleDocument/TermsAndConditionsContent.d.ts +12 -0
  46. package/dist/components/ContractSaleDocument/TermsAndConditionsContent.d.ts.map +1 -0
  47. package/dist/components/ContractSaleDocument/ThumbnailSidebar.d.ts +12 -0
  48. package/dist/components/ContractSaleDocument/ThumbnailSidebar.d.ts.map +1 -0
  49. package/dist/components/ContractSaleDocument/index.d.ts.map +1 -0
  50. package/dist/components/ContractSaleDocument/language.d.ts +7 -0
  51. package/dist/components/ContractSaleDocument/language.d.ts.map +1 -0
  52. package/dist/components/DelayedReveal/index.d.ts.map +1 -0
  53. package/dist/components/DeliveryAddressSelector/index.d.ts.map +1 -0
  54. package/dist/components/Footer/BusinessHours.d.ts +17 -0
  55. package/dist/components/Footer/BusinessHours.d.ts.map +1 -0
  56. package/dist/components/Footer/businessHoursUtils.d.ts +14 -0
  57. package/dist/components/Footer/businessHoursUtils.d.ts.map +1 -0
  58. package/dist/components/Footer/businessHoursUtils.js +16 -16
  59. package/dist/components/Footer/index.d.ts.map +1 -0
  60. package/dist/components/FulfillmentSection/index.d.ts.map +1 -0
  61. package/dist/components/Header/index.d.ts.map +1 -0
  62. package/dist/components/Layout/index.d.ts.map +1 -0
  63. package/dist/components/Map/createMarkerElement.d.ts +2 -0
  64. package/dist/components/Map/createMarkerElement.d.ts.map +1 -0
  65. package/dist/components/Map/index.d.ts +101 -1
  66. package/dist/components/Map/index.d.ts.map +1 -0
  67. package/dist/components/Map/index.js +4 -3
  68. package/dist/components/PlatformFooter/index.d.ts.map +1 -0
  69. package/dist/components/PlaygroundDevFloatingButton/index.d.ts.map +1 -0
  70. package/dist/components/PoweredByLoczerBadge/index.d.ts.map +1 -0
  71. package/dist/components/ProductPriceBadge/index.d.ts.map +1 -0
  72. package/dist/components/ProductWarningNotice/index.d.ts.map +1 -0
  73. package/dist/components/StepSectionTitle/index.d.ts.map +1 -0
  74. package/dist/components/StorefrontCartPanel/index.d.ts +2 -1
  75. package/dist/components/StorefrontCartPanel/index.d.ts.map +1 -0
  76. package/dist/components/StorefrontCartPanel/index.js +68 -63
  77. package/dist/components/StorefrontPopupMessages/index.d.ts.map +1 -0
  78. package/dist/components/TestimonialsSection/index.d.ts.map +1 -0
  79. package/dist/components/WhatsAppFloatingButton/WhatsAppFloatingButton.d.ts +5 -0
  80. package/dist/components/WhatsAppFloatingButton/WhatsAppFloatingButton.d.ts.map +1 -0
  81. package/dist/components/WhatsAppFloatingButton/index.d.ts.map +1 -0
  82. package/dist/components/WhatsAppFloatingButton/useWhatsAppFloatingButton.d.ts +11 -0
  83. package/dist/components/WhatsAppFloatingButton/useWhatsAppFloatingButton.d.ts.map +1 -0
  84. package/dist/components/payment/MollieCardFieldsForm.d.ts +11 -0
  85. package/dist/components/payment/MollieCardFieldsForm.d.ts.map +1 -0
  86. package/dist/components/payment/StripeCardFieldsForm.d.ts +16 -0
  87. package/dist/components/payment/StripeCardFieldsForm.d.ts.map +1 -0
  88. package/dist/components/payment/index.d.ts.map +1 -0
  89. package/dist/data/accessories.d.ts.map +1 -0
  90. package/dist/data/bikes.d.ts.map +1 -0
  91. package/dist/data/config.d.ts.map +1 -0
  92. package/dist/i18n/I18nProvider.d.ts.map +1 -0
  93. package/dist/i18n/en.d.ts +1 -0
  94. package/dist/i18n/en.d.ts.map +1 -0
  95. package/dist/i18n/en.js +1 -0
  96. package/dist/i18n/fr.d.ts +1 -0
  97. package/dist/i18n/fr.d.ts.map +1 -0
  98. package/dist/i18n/fr.js +1 -0
  99. package/dist/index.d.ts +5228 -0
  100. package/dist/index.js +103 -100
  101. package/dist/lib/apiCall.d.ts.map +1 -0
  102. package/dist/lib/booking-period-time-slots.d.ts.map +1 -0
  103. package/dist/lib/booking-period.d.ts.map +1 -0
  104. package/dist/lib/booking.d.ts.map +1 -0
  105. package/dist/lib/cart.d.ts.map +1 -0
  106. package/dist/lib/cartSummary.d.ts.map +1 -0
  107. package/dist/lib/checkoutPaymentDecision.d.ts.map +1 -0
  108. package/dist/lib/checkoutPaymentSession.d.ts.map +1 -0
  109. package/dist/lib/checkoutSubmit.d.ts.map +1 -0
  110. package/dist/lib/checkoutVerifyCoupon.d.ts +1 -0
  111. package/dist/lib/checkoutVerifyCoupon.d.ts.map +1 -0
  112. package/dist/lib/checkoutVerifyCoupon.js +1 -0
  113. package/dist/lib/contactForm.d.ts.map +1 -0
  114. package/dist/lib/contractSaleDocument.d.ts.map +1 -0
  115. package/dist/lib/contractSaleDocumentApi.d.ts.map +1 -0
  116. package/dist/lib/isAutomationRuntime.d.ts.map +1 -0
  117. package/dist/lib/mollieComponentStyles.d.ts.map +1 -0
  118. package/dist/lib/playgroundDevSettings.d.ts.map +1 -0
  119. package/dist/lib/pricing.d.ts.map +1 -0
  120. package/dist/lib/productImageStyles.d.ts.map +1 -0
  121. package/dist/lib/productVariants.d.ts.map +1 -0
  122. package/dist/lib/products.d.ts.map +1 -0
  123. package/dist/lib/richAddress.d.ts.map +1 -0
  124. package/dist/lib/securePaymentLink.d.ts.map +1 -0
  125. package/dist/lib/storefrontAvailability.d.ts.map +1 -0
  126. package/dist/lib/storefrontImage.d.ts.map +1 -0
  127. package/dist/lib/storefrontProducts.d.ts.map +1 -0
  128. package/dist/lib/storefrontReviews.d.ts.map +1 -0
  129. package/dist/lib/storefrontTimeSlots.d.ts.map +1 -0
  130. package/dist/lib/utils.d.ts.map +1 -0
  131. package/dist/lib/whatsapp.d.ts.map +1 -0
  132. package/dist/localization.d.ts +9 -13
  133. package/dist/localization.d.ts.map +1 -0
  134. package/dist/pages/BookingPage.d.ts.map +1 -0
  135. package/dist/pages/CheckoutPage.d.ts.map +1 -0
  136. package/dist/pages/CheckoutPage.js +56 -51
  137. package/dist/pages/CheckoutPaymentPage.d.ts.map +1 -0
  138. package/dist/pages/CheckoutSuccessPage.d.ts.map +1 -0
  139. package/dist/pages/ContractSaleDocumentPage.d.ts.map +1 -0
  140. package/dist/pages/ErrorPage.d.ts.map +1 -0
  141. package/dist/pages/HomePage.d.ts.map +1 -0
  142. package/dist/pages/NotFoundPage.d.ts.map +1 -0
  143. package/dist/pages/PaymentLinkPage.d.ts.map +1 -0
  144. package/dist/pages/PaymentLinkSuccessPage.d.ts.map +1 -0
  145. package/dist/pages/ProductPage.d.ts.map +1 -0
  146. package/dist/pages/checkout/components/CheckoutCouponCard.d.ts +15 -0
  147. package/dist/pages/checkout/components/CheckoutCouponCard.d.ts.map +1 -0
  148. package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts +9 -0
  149. package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts.map +1 -0
  150. package/dist/pages/checkout/components/CheckoutPaymentCard.d.ts +22 -0
  151. package/dist/pages/checkout/components/CheckoutPaymentCard.d.ts.map +1 -0
  152. package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.d.ts +23 -0
  153. package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.d.ts.map +1 -0
  154. package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts +7 -0
  155. package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts.map +1 -0
  156. package/dist/pages/checkout/components/CheckoutSummaryColumn.js +16 -14
  157. package/dist/pages/checkout/components/MollieCheckoutForm.d.ts +9 -0
  158. package/dist/pages/checkout/components/MollieCheckoutForm.d.ts.map +1 -0
  159. package/dist/pages/checkout/components/StripeCheckoutForm.d.ts +8 -0
  160. package/dist/pages/checkout/components/StripeCheckoutForm.d.ts.map +1 -0
  161. package/dist/pages/checkout/types.d.ts +14 -0
  162. package/dist/pages/checkout/types.d.ts.map +1 -0
  163. package/dist/routes.d.ts +3 -6
  164. package/dist/routes.d.ts.map +1 -0
  165. package/dist/static/strings.d.ts +2 -0
  166. package/dist/static/strings.d.ts.map +1 -0
  167. package/dist/storefront.css +1 -1
  168. package/dist/storefrontSchemas.d.ts +565 -596
  169. package/dist/storefrontSchemas.d.ts.map +1 -0
  170. package/dist/ui/badge.d.ts.map +1 -0
  171. package/dist/ui/button.d.ts +1 -1
  172. package/dist/ui/button.d.ts.map +1 -0
  173. package/dist/ui/button.js +17 -17
  174. package/dist/ui/card.d.ts.map +1 -0
  175. package/dist/ui/card.js +8 -11
  176. package/dist/ui/form.d.ts +1 -1
  177. package/dist/ui/form.d.ts.map +1 -0
  178. package/dist/ui/form.js +52 -86
  179. package/dist/ui/input.d.ts.map +1 -0
  180. package/dist/ui/label.d.ts.map +1 -0
  181. package/dist/ui/radio-group.d.ts +10 -7
  182. package/dist/ui/radio-group.d.ts.map +1 -0
  183. package/dist/ui/radio-group.js +63 -45
  184. package/dist/ui/select.d.ts +29 -15
  185. package/dist/ui/select.d.ts.map +1 -0
  186. package/dist/ui/select.js +158 -232
  187. package/dist/ui/slot.d.ts +3 -7
  188. package/dist/ui/slot.d.ts.map +1 -0
  189. package/dist/ui/slot.js +47 -27
  190. package/dist/ui/textarea.d.ts.map +1 -0
  191. package/dist/ui/theme.d.ts +9 -0
  192. package/dist/ui/theme.d.ts.map +1 -0
  193. package/dist/ui/theme.js +24 -0
  194. package/dist/ui/tooltip.d.ts +30 -13
  195. package/dist/ui/tooltip.d.ts.map +1 -0
  196. package/dist/ui/tooltip.js +89 -60
  197. package/package.json +4 -2
  198. package/dist/BookingPage.d.ts +0 -6
  199. package/dist/CheckoutPage.d.ts +0 -6
  200. package/dist/CheckoutPaymentPage.d.ts +0 -6
  201. package/dist/CheckoutSuccessPage.d.ts +0 -6
  202. package/dist/ContractSaleDocumentPage.d.ts +0 -116
  203. package/dist/ErrorPage.d.ts +0 -6
  204. package/dist/HomePage.d.ts +0 -6
  205. package/dist/I18nProvider.d.ts +0 -23
  206. package/dist/NotFoundPage.d.ts +0 -6
  207. package/dist/PaymentLinkPage.d.ts +0 -40
  208. package/dist/PaymentLinkSuccessPage.d.ts +0 -40
  209. package/dist/ProductPage.d.ts +0 -6
  210. package/dist/accessories.d.ts +0 -42
  211. package/dist/apiCall.d.ts +0 -7
  212. package/dist/badge.d.ts +0 -14
  213. package/dist/bikes.d.ts +0 -107
  214. package/dist/booking-period-time-slots.d.ts +0 -264
  215. package/dist/booking-period.d.ts +0 -193
  216. package/dist/booking.d.ts +0 -402
  217. package/dist/button.d.ts +0 -16
  218. package/dist/card.d.ts +0 -18
  219. package/dist/cart.d.ts +0 -30
  220. package/dist/cartSummary.d.ts +0 -205
  221. package/dist/checkoutPaymentDecision.d.ts +0 -48
  222. package/dist/checkoutPaymentSession.d.ts +0 -65
  223. package/dist/checkoutSubmit.d.ts +0 -97
  224. package/dist/checkoutVerifyCoupon.d.ts +0 -45
  225. package/dist/config.d.ts +0 -19
  226. package/dist/contactForm.d.ts +0 -22
  227. package/dist/contractSaleDocument.d.ts +0 -242
  228. package/dist/contractSaleDocumentApi.d.ts +0 -481
  229. package/dist/en.d.ts +0 -369
  230. package/dist/form.d.ts +0 -44
  231. package/dist/fr.d.ts +0 -369
  232. package/dist/input.d.ts +0 -5
  233. package/dist/isAutomationRuntime.d.ts +0 -3
  234. package/dist/label.d.ts +0 -7
  235. package/dist/mollieComponentStyles.d.ts +0 -3
  236. package/dist/playgroundDevSettings.d.ts +0 -19
  237. package/dist/pricing.d.ts +0 -35
  238. package/dist/productImageStyles.d.ts +0 -25
  239. package/dist/productVariants.d.ts +0 -16
  240. package/dist/products.d.ts +0 -224
  241. package/dist/radio-group.d.ts +0 -14
  242. package/dist/richAddress.d.ts +0 -24
  243. package/dist/securePaymentLink.d.ts +0 -125
  244. package/dist/select.d.ts +0 -41
  245. package/dist/slot.d.ts +0 -15
  246. package/dist/storefrontAvailability.d.ts +0 -107
  247. package/dist/storefrontImage.d.ts +0 -16
  248. package/dist/storefrontProducts.d.ts +0 -400
  249. package/dist/storefrontReviews.d.ts +0 -84
  250. package/dist/storefrontTimeSlots.d.ts +0 -53
  251. package/dist/textarea.d.ts +0 -5
  252. package/dist/tooltip.d.ts +0 -43
  253. package/dist/utils.d.ts +0 -23
  254. package/dist/whatsapp.d.ts +0 -326
@@ -1,73 +1,102 @@
1
- import { jsx as i } from "react/jsx-runtime";
1
+ import { jsx as o } from "react/jsx-runtime";
2
2
  import * as d from "react";
3
- import { Tooltip as r } from "@base-ui/react/tooltip";
4
- import { cn as n } from "@rpcbase/ui";
5
- function w({
6
- delayDuration: o,
7
- skipDelayDuration: t,
8
- ...e
9
- }) {
10
- return /* @__PURE__ */ i(r.Provider, { delay: o, ...e });
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
- ...e
12
+ delayDuration: e = 0,
13
+ delay: r,
14
+ closeDelay: i
16
15
  }) {
17
- const a = /* @__PURE__ */ i(r.Root, { ...e, children: t });
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
- const c = r.Portal;
21
- function x({
22
- asChild: o,
23
- children: t,
24
- ...e
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__ */ i(
27
- r.Trigger,
25
+ return /* @__PURE__ */ o(l.Provider, { value: { delayDuration: t }, children: /* @__PURE__ */ o(
26
+ n.Root,
28
27
  {
29
- render: o && d.isValidElement(t) ? t : void 0,
30
- ...e,
31
- children: o ? void 0 : t
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(({ className: o, positionerClassName: t, align: e, alignOffset: a, side: s, sideOffset: l = 4, container: p, disableAnimation: m, ...f }, u) => /* @__PURE__ */ i(c, { container: p, children: /* @__PURE__ */ i(
36
- r.Positioner,
37
- {
38
- align: e,
39
- alignOffset: a,
40
- side: s,
41
- sideOffset: l,
42
- className: n("pointer-events-auto z-50 outline-none", t),
43
- children: /* @__PURE__ */ i(
44
- r.Popup,
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
- ref: u,
47
- role: "tooltip",
48
- className: n(
49
- "pointer-events-auto z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md",
50
- !m && "animate-in fade-in-0 zoom-in-95 data-[closed]:animate-out data-[closed]:fade-out-0 data-[closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
51
- o
52
- ),
53
- ...f
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
- v.displayName = "TooltipContent";
59
- const y = r.Arrow;
91
+ );
92
+ x.displayName = "TooltipContent";
60
93
  export {
61
- y as Arrow,
62
- v as Content,
63
- c as Portal,
64
- w as Provider,
65
- h as Root,
66
- h as Tooltip,
67
- y as TooltipArrow,
68
- v as TooltipContent,
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.152.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",
@@ -1,6 +0,0 @@
1
- import { JSX } from 'react/jsx-runtime';
2
-
3
- declare function BookingPage(): JSX.Element;
4
- export default BookingPage;
5
-
6
- export { }
@@ -1,6 +0,0 @@
1
- import { JSX } from 'react/jsx-runtime';
2
-
3
- declare function CheckoutPage(): JSX.Element;
4
- export default CheckoutPage;
5
-
6
- export { }
@@ -1,6 +0,0 @@
1
- import { JSX } from 'react/jsx-runtime';
2
-
3
- declare function CheckoutPaymentPage(): JSX.Element;
4
- export default CheckoutPaymentPage;
5
-
6
- export { }
@@ -1,6 +0,0 @@
1
- import { JSX } from 'react/jsx-runtime';
2
-
3
- declare function CheckoutSuccessPage(): JSX.Element;
4
- export default CheckoutSuccessPage;
5
-
6
- export { }
@@ -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 { }
@@ -1,6 +0,0 @@
1
- import { JSX } from 'react/jsx-runtime';
2
-
3
- declare function ErrorPage(): JSX.Element;
4
- export default ErrorPage;
5
-
6
- export { }
@@ -1,6 +0,0 @@
1
- import { JSX } from 'react/jsx-runtime';
2
-
3
- declare function HomePage(): JSX.Element;
4
- export default HomePage;
5
-
6
- export { }
@@ -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 { }
@@ -1,6 +0,0 @@
1
- import { JSX } from 'react/jsx-runtime';
2
-
3
- declare function NotFoundPage(): JSX.Element;
4
- export default NotFoundPage;
5
-
6
- 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 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 { }
@@ -1,6 +0,0 @@
1
- import { JSX } from 'react/jsx-runtime';
2
-
3
- declare function ProductPage(): JSX.Element;
4
- export default ProductPage;
5
-
6
- export { }
@@ -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 { }