@propeller-commerce/propeller-v2-react-ui 0.19.0 → 0.19.1

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,24 @@ 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.19.1] - 2026-08-26
12
+
13
+ ### Fixed
14
+
15
+ - **Order and quote lines whose product is gone from the catalog.** A product
16
+ that is hidden, withdrawn or deleted still appears on every order and quote it
17
+ was sold on, but the API returns no product record for it — `orderItem.product`
18
+ is simply absent. `OrderItemCard` already fell back to the order item's own
19
+ snapshot of the line for the name, sku, thumbnail and link, but not for the
20
+ price: an injected `priceComponent` was handed `product.price`, rendered blank
21
+ on `undefined`, and the line total silently disappeared from the row. Such a
22
+ line now falls through to the order item's `priceTotal`. Rows with a product
23
+ are unaffected — the slot is still used whenever there is a catalog price to
24
+ give it.
25
+ - **`OrderShipments` printed `-` for the SKU** of a shipment line whose product
26
+ is missing, having read `product.sku` with no fallback. It now reads the order
27
+ item's own `sku`, which is stored on the order and always there.
28
+
11
29
  ## [0.19.0] - 2026-08-26
12
30
 
13
31
  ### Added
package/dist/index.cjs CHANGED
@@ -13753,11 +13753,11 @@ function OrderItemCard(props) {
13753
13753
  className: isChildItem ? "propeller-order-item-card__cell propeller-order-item-card__cell--price px-6 py-2 text-right whitespace-nowrap text-sm text-muted-foreground" : "propeller-order-item-card__cell propeller-order-item-card__cell--price px-6 py-4 text-right whitespace-nowrap",
13754
13754
  children: (() => {
13755
13755
  const PriceImpl = props.priceComponent;
13756
- if (PriceImpl) {
13756
+ if (PriceImpl && item?.product?.price) {
13757
13757
  return /* @__PURE__ */ jsxRuntime.jsx(
13758
13758
  PriceImpl,
13759
13759
  {
13760
- price: item?.product?.price,
13760
+ price: item.product.price,
13761
13761
  currency: props.currency,
13762
13762
  labels: props.labels
13763
13763
  }
@@ -14766,7 +14766,7 @@ function OrderShipments(props) {
14766
14766
  /* @__PURE__ */ jsxRuntime.jsxs("td", { className: "px-4 py-2 text-muted-foreground", children: [
14767
14767
  !!shipmentItem.sku ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: shipmentItem.sku }) : null,
14768
14768
  !shipmentItem.sku ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
14769
- !!getOrderItemForShipmentItem(shipmentItem) ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: getOrderItemForShipmentItem(shipmentItem)?.product?.sku || "-" }) : null,
14769
+ !!getOrderItemForShipmentItem(shipmentItem) ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: getOrderItemForShipmentItem(shipmentItem)?.product?.sku || getOrderItemForShipmentItem(shipmentItem)?.sku || "-" }) : null,
14770
14770
  !getOrderItemForShipmentItem(shipmentItem) ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: "-" }) : null
14771
14771
  ] }) : null
14772
14772
  ] }),