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

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,32 @@ 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.2] - 2026-08-27
12
+
13
+ ### Fixed
14
+
15
+ - **Money formatted at the Dutch default wherever the host didn't pass
16
+ `language`.** `localeForLanguage(undefined)` is `nl-NL`, so a component that
17
+ reads `props.language` straight off its props prints Dutch separators unless
18
+ every host remembers to thread the prop. `ProductCard` resolved it from
19
+ `<PropellerProvider>`; several others did not, so one English page could show
20
+ `€ 1,42` in its PDP hero price and `€1.70` on the cards beneath it.
21
+ - `ProductPrice` and `ProductBulkPrices` already had provider-resolving
22
+ wrappers on the main entry — but `OrderSummary` and `OrderTotals` did not,
23
+ and are exported from both entries, so a client host got the unresolved
24
+ build with no way to tell. Both now resolve `language` and `currency` from
25
+ the provider on the main entry; `/pure` still exports the context-free
26
+ versions for Server Components, which must pass `language` themselves.
27
+ - `CartCarriers` now resolves its infra props like the rest of the checkout
28
+ components, instead of reading them off its props.
29
+
30
+ ### Internal
31
+
32
+ - Vitest now uses the automatic JSX runtime, matching the tsup build. It had
33
+ been defaulting to the classic runtime, so any source file importing only
34
+ named hooks — the context providers among them — threw "React is not defined"
35
+ under test while building and shipping perfectly well.
36
+
11
37
  ## [0.19.1] - 2026-08-26
12
38
 
13
39
  ### Fixed
package/dist/index.cjs CHANGED
@@ -6511,7 +6511,8 @@ function pickPreselected(items, stored, keyOf) {
6511
6511
  const list = items || [];
6512
6512
  return (stored ? list.find((item) => keyOf(item) === stored) : void 0) || list[0];
6513
6513
  }
6514
- function CartCarriers(props) {
6514
+ function CartCarriers(rawProps) {
6515
+ const props = useInfraProps(rawProps);
6515
6516
  const [selectedName, setSelectedName] = React6.useState("");
6516
6517
  const containerClass = props.carriersContainerClass || "cart-carriers";
6517
6518
  const showLogo = props.showCarrierLogo !== false;
@@ -14963,6 +14964,11 @@ function OrderSummary(props) {
14963
14964
  ] });
14964
14965
  }
14965
14966
  var OrderSummary_default = OrderSummary;
14967
+ function OrderSummaryWithProvider(rawProps) {
14968
+ const props = useInfraProps(rawProps);
14969
+ return /* @__PURE__ */ jsxRuntime.jsx(OrderSummary_default, { ...props });
14970
+ }
14971
+ var OrderSummaryWithProvider_default = OrderSummaryWithProvider;
14966
14972
  function OrderTotals(props) {
14967
14973
  const showSubtotal = props.showSubtotal !== false;
14968
14974
  const showDiscount = props.showDiscount !== false;
@@ -15045,6 +15051,11 @@ function OrderTotals(props) {
15045
15051
  ] });
15046
15052
  }
15047
15053
  var OrderTotals_default = OrderTotals;
15054
+ function OrderTotalsWithProvider(rawProps) {
15055
+ const props = useInfraProps(rawProps);
15056
+ return /* @__PURE__ */ jsxRuntime.jsx(OrderTotals_default, { ...props });
15057
+ }
15058
+ var OrderTotalsWithProvider_default = OrderTotalsWithProvider;
15048
15059
  function PriceToggle(props) {
15049
15060
  const isControlled = props.value !== void 0;
15050
15061
  const [internal, setInternal] = React6.useState(props.initialState ?? true);
@@ -19166,8 +19177,8 @@ exports.OrderBonusItems = OrderBonusItems_default;
19166
19177
  exports.OrderItemCard = OrderItemCard_default;
19167
19178
  exports.OrderList = OrderList_default;
19168
19179
  exports.OrderShipments = OrderShipments_default;
19169
- exports.OrderSummary = OrderSummary_default;
19170
- exports.OrderTotals = OrderTotals_default;
19180
+ exports.OrderSummary = OrderSummaryWithProvider_default;
19181
+ exports.OrderTotals = OrderTotalsWithProvider_default;
19171
19182
  exports.PriceToggle = PriceToggle_default;
19172
19183
  exports.ProductBulkPrices = ProductBulkPricesWithProvider_default;
19173
19184
  exports.ProductBundles = ProductBundles_default;