@loczer/storefront-sdk 0.221.0 → 0.223.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 (43) hide show
  1. package/dist/StorefrontContext.d.ts +2 -2
  2. package/dist/StorefrontProvider.d.ts +2 -2
  3. package/dist/components/Header/index.d.ts.map +1 -1
  4. package/dist/components/Header/index.js +118 -126
  5. package/dist/components/LanguageSelector/index.d.ts +7 -0
  6. package/dist/components/LanguageSelector/index.d.ts.map +1 -0
  7. package/dist/components/LanguageSelector/index.js +69 -0
  8. package/dist/components/StorefrontCartPanel/index.d.ts +2 -8
  9. package/dist/components/StorefrontCartPanel/index.d.ts.map +1 -1
  10. package/dist/components/StorefrontCartPanel/index.js +65 -107
  11. package/dist/i18n/I18nProvider.d.ts +3 -2
  12. package/dist/i18n/I18nProvider.d.ts.map +1 -1
  13. package/dist/i18n/I18nProvider.js +61 -64
  14. package/dist/i18n/en.d.ts +2 -2
  15. package/dist/i18n/en.js +3 -3
  16. package/dist/i18n/fr.d.ts +2 -2
  17. package/dist/i18n/fr.js +3 -3
  18. package/dist/i18n/languages.d.ts +15 -0
  19. package/dist/i18n/languages.d.ts.map +1 -0
  20. package/dist/i18n/languages.js +26 -0
  21. package/dist/index.d.ts +33 -24
  22. package/dist/index.js +50 -49
  23. package/dist/lib/cartSummary.d.ts +2 -5
  24. package/dist/lib/cartSummary.d.ts.map +1 -1
  25. package/dist/lib/cartSummary.js +5 -11
  26. package/dist/lib/checkoutPaymentDecision.d.ts +1 -0
  27. package/dist/lib/checkoutPaymentDecision.d.ts.map +1 -1
  28. package/dist/lib/checkoutPaymentDecision.js +1 -0
  29. package/dist/pages/BookingPage.d.ts.map +1 -1
  30. package/dist/pages/BookingPage.js +150 -148
  31. package/dist/pages/CheckoutPage.d.ts.map +1 -1
  32. package/dist/pages/CheckoutPage.js +156 -155
  33. package/dist/pages/ContractSaleDocumentPage.d.ts +2 -3
  34. package/dist/pages/ContractSaleDocumentPage.d.ts.map +1 -1
  35. package/dist/pages/ContractSaleDocumentPage.js +18 -17
  36. package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts +2 -2
  37. package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts.map +1 -1
  38. package/dist/pages/checkout/components/CheckoutSummaryColumn.js +14 -15
  39. package/dist/storefront.css +1 -1
  40. package/dist/storefrontSchemas.d.ts +2 -2
  41. package/dist/storefrontSchemas.d.ts.map +1 -1
  42. package/dist/storefrontSchemas.js +95 -94
  43. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"CheckoutSummaryColumn.d.ts","sourceRoot":"","sources":["../../../../src/pages/checkout/components/CheckoutSummaryColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAG3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAGzD,KAAK,wBAAwB,GAAG,cAAc,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAC1E,KAAK,uBAAuB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAExE,KAAK,0BAA0B,GAAG,IAAI,CACpC,wBAAwB,EACtB,OAAO,GACP,WAAW,GACX,uBAAuB,GACvB,eAAe,GACf,kBAAkB,GAClB,UAAU,CACb,GAAG;IACF,MAAM,CAAC,EAAE,uBAAuB,CAAA;IAChC,oBAAoB,EAAE,MAAM,CAAA;IAC5B,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;IACpB,iBAAiB,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,SAAS,EACT,qBAAqB,EACrB,aAAa,EACb,MAAM,EACN,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,QAAQ,GACT,EAAE,0BAA0B,2CAgD5B"}
1
+ {"version":3,"file":"CheckoutSummaryColumn.d.ts","sourceRoot":"","sources":["../../../../src/pages/checkout/components/CheckoutSummaryColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAG3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAGzD,KAAK,wBAAwB,GAAG,cAAc,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAC1E,KAAK,uBAAuB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAExE,KAAK,0BAA0B,GAAG,IAAI,CACpC,wBAAwB,EACtB,OAAO,GACP,WAAW,GACX,eAAe,GACf,kBAAkB,GAClB,UAAU,CACb,GAAG;IACF,MAAM,CAAC,EAAE,uBAAuB,CAAA;IAChC,oBAAoB,EAAE,MAAM,CAAA;IAC5B,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;IACpB,iBAAiB,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,SAAS,EACT,aAAa,EACb,MAAM,EACN,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,QAAQ,GACT,EAAE,0BAA0B,2CA+C5B"}
@@ -3,19 +3,18 @@ import { CheckoutCouponCard as t } from "./CheckoutCouponCard.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  import { useTranslation as i } from "react-i18next";
5
5
  //#region src/pages/checkout/components/CheckoutSummaryColumn.tsx
6
- function a({ lines: a, itemCount: o, totalPerBaseUnitMinor: s, baseUnitLabel: c, coupon: l, bookingSubtotalLabel: u, vatAmountLabel: d, vatRateLabel: f, bookingTotalLabel: p, onQuantityChange: m, onRemove: h }) {
7
- let { t: g } = i();
6
+ function a({ lines: a, itemCount: o, baseUnitLabel: s, coupon: c, bookingSubtotalLabel: l, vatAmountLabel: u, vatRateLabel: d, bookingTotalLabel: f, onQuantityChange: p, onRemove: m }) {
7
+ let { t: h } = i();
8
8
  return /* @__PURE__ */ n("div", {
9
9
  className: "lg:col-span-5",
10
10
  children: /* @__PURE__ */ n(e, {
11
11
  lines: a,
12
12
  itemCount: o,
13
- totalPerBaseUnitMinor: s,
14
- baseUnitLabel: c,
15
- title: g("checkout_summary_title"),
16
- description: g("checkout_summary_description"),
13
+ baseUnitLabel: s,
14
+ title: h("checkout_summary_title"),
15
+ description: h("checkout_summary_description"),
17
16
  editable: !0,
18
- summaryAddon: l ? /* @__PURE__ */ n(t, { ...l }) : void 0,
17
+ summaryAddon: c ? /* @__PURE__ */ n(t, { ...c }) : void 0,
19
18
  pricingSummary: /* @__PURE__ */ r("dl", {
20
19
  className: "grid border-t border-slate-200 pt-3 text-sm",
21
20
  "data-testid": "checkout-booking-totals",
@@ -24,37 +23,37 @@ function a({ lines: a, itemCount: o, totalPerBaseUnitMinor: s, baseUnitLabel: c,
24
23
  className: "flex items-center justify-between gap-3 py-1.5",
25
24
  children: [/* @__PURE__ */ n("dt", {
26
25
  className: "text-slate-700",
27
- children: /* @__PURE__ */ n("span", { children: g("checkout_booking_subtotal") })
26
+ children: /* @__PURE__ */ n("span", { children: h("checkout_booking_subtotal") })
28
27
  }), /* @__PURE__ */ n("dd", {
29
28
  className: "font-medium tabular-nums text-slate-900",
30
- children: /* @__PURE__ */ n("span", { children: u })
29
+ children: /* @__PURE__ */ n("span", { children: l })
31
30
  })]
32
31
  }),
33
32
  /* @__PURE__ */ r("div", {
34
33
  className: "flex items-center justify-between gap-3 py-1.5",
35
34
  children: [/* @__PURE__ */ n("dt", {
36
35
  className: "text-slate-700",
37
- children: /* @__PURE__ */ n("span", { children: g("checkout_payment_vat", { rate: f }) })
36
+ children: /* @__PURE__ */ n("span", { children: h("checkout_payment_vat", { rate: d }) })
38
37
  }), /* @__PURE__ */ n("dd", {
39
38
  className: "font-medium tabular-nums text-slate-900",
40
- children: /* @__PURE__ */ n("span", { children: d })
39
+ children: /* @__PURE__ */ n("span", { children: u })
41
40
  })]
42
41
  }),
43
42
  /* @__PURE__ */ r("div", {
44
43
  className: "mt-1 flex items-center justify-between gap-3 border-t border-slate-200 pt-3",
45
44
  children: [/* @__PURE__ */ n("dt", {
46
45
  className: "font-semibold text-slate-950",
47
- children: /* @__PURE__ */ n("span", { children: g("checkout_estimated_total") })
46
+ children: /* @__PURE__ */ n("span", { children: h("checkout_estimated_total") })
48
47
  }), /* @__PURE__ */ n("dd", {
49
48
  className: "text-base font-bold tabular-nums tracking-tight text-slate-950",
50
- children: /* @__PURE__ */ n("span", { children: p })
49
+ children: /* @__PURE__ */ n("span", { children: f })
51
50
  })]
52
51
  })
53
52
  ]
54
53
  }),
55
54
  stickyTopClassName: "top-32",
56
- onQuantityChange: m,
57
- onRemove: h
55
+ onQuantityChange: p,
56
+ onRemove: m
58
57
  })
59
58
  });
60
59
  }