@propeller-commerce/propeller-v2-react-ui 0.24.0 → 0.25.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/CHANGELOG.md CHANGED
@@ -8,6 +8,28 @@ once it reaches 1.0. Until then (the `0.x` line) the public API may change
8
8
  between minor versions; breaking changes are called out below and in
9
9
  [MIGRATION.md](./MIGRATION.md).
10
10
 
11
+ ## [0.25.0] - 2026-09-25
12
+
13
+ ### Added
14
+
15
+ - `CartOverviewProps.paymethodLabels` — maps a lowercased payment-method code
16
+ to its display name, the same contract `CartPaymethods` and `OrderSummary`
17
+ already use.
18
+
19
+ ### Fixed
20
+
21
+ - **The checkout review step printed the raw payment-method code** (e.g.
22
+ "Betaling: ON_ACCOUNT") while the step before it showed the method's name for
23
+ the same selection. `CartOverview` had no way to map the stored code, so it
24
+ was the one place in checkout where the enum leaked to the customer. Pass
25
+ `paymethodLabels` to resolve it; it still falls back to the raw value.
26
+ (PWP-1028)
27
+
28
+ - **The cart line's delete button had no accessible name.** It is icon-only,
29
+ with no `aria-label`, `title` or visually-hidden text, so assistive
30
+ technology announced it as just "button". It now carries both, via a
31
+ `deleteLabel` label key. (PWP-1030)
32
+
11
33
  ## [0.24.0] - 2026-09-25
12
34
 
13
35
  ### Added
package/dist/index.cjs CHANGED
@@ -7354,6 +7354,8 @@ function CartItemDelete(props = {}) {
7354
7354
  className: props.className ?? "propeller-cart-item__delete h-8 w-8 p-0 ml-auto inline-flex items-center justify-center rounded-control text-foreground-subtle hover:text-destructive hover:bg-destructive/10 transition-colors disabled:opacity-50",
7355
7355
  onClick: () => handlers.onDelete(),
7356
7356
  disabled: state.deleting,
7357
+ "aria-label": propellerV2CoreUi.getLabel(resolved.labels, "deleteLabel", "Remove item"),
7358
+ title: propellerV2CoreUi.getLabel(resolved.labels, "deleteLabel", "Remove item"),
7357
7359
  children: [
7358
7360
  state.deleting ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-4 h-4 border-2 border-foreground-subtle border-t-transparent rounded-full animate-spin" }) : null,
7359
7361
  !state.deleting ? /* @__PURE__ */ jsxRuntime.jsxs(
@@ -7734,7 +7736,8 @@ function CartOverview(rawProps) {
7734
7736
  const invoiceAddress = props.cart?.invoiceAddress;
7735
7737
  const deliveryAddress = props.cart?.deliveryAddress;
7736
7738
  const getCountryName = (code) => propellerV2CoreUi.getCountryName(code, props.countries);
7737
- const paymentMethod = props.cart?.paymentData?.method || "";
7739
+ const rawPaymentMethod = props.cart?.paymentData?.method || "";
7740
+ const paymentMethod = rawPaymentMethod ? props.paymethodLabels?.[rawPaymentMethod.toLowerCase()] || rawPaymentMethod : "";
7738
7741
  const carrierName = props.cart?.postageData?.carrier || "";
7739
7742
  function requestDate() {
7740
7743
  const date = props.cart?.postageData?.requestDate;