@amboras-dev/storefront-core 2026.11.8-rc.2 → 2026.11.8-rc.3

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$comment": "Generated by scripts/build-manifest.mjs. Paths are relative to the storefront app root.",
3
3
  "package": "@amboras-dev/storefront-core",
4
- "version": "2026.11.8-rc.2",
4
+ "version": "2026.11.8-rc.3",
5
5
  "shims": [
6
6
  {
7
7
  "path": "hooks/use-auth.ts",
@@ -22,14 +22,19 @@ export function useOrder(orderId, orderToken) {
22
22
  retry: false,
23
23
  });
24
24
  }
25
- // A redacted order omits or nulls these; consumers written for the full order must not crash on it.
25
+ // A redacted order empties these (null, {} or []); consumers written for the full order must not crash or render empty blocks.
26
26
  function normalizeOrder(order) {
27
27
  return {
28
28
  ...order,
29
29
  email: order.email ?? '',
30
30
  items: order.items ?? [],
31
- shipping_address: order.shipping_address ?? undefined,
32
- billing_address: order.billing_address ?? undefined,
31
+ shipping_address: realAddress(order.shipping_address),
32
+ billing_address: realAddress(order.billing_address),
33
33
  };
34
34
  }
35
+ function realAddress(address) {
36
+ if (!address || typeof address !== 'object')
37
+ return undefined;
38
+ return Object.values(address).some((v) => v !== null && v !== undefined && v !== '') ? address : undefined;
39
+ }
35
40
  //# sourceMappingURL=use-order.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-order.js","sourceRoot":"","sources":["../../src/hooks/use-order.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AAGjE,+HAA+H;AAC/H,MAAM,UAAU,QAAQ,CAAC,OAAe,EAAE,UAA0B;IAClE,OAAO,QAAQ,CAAC;QACd,QAAQ,EAAE,CAAC,OAAO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,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAA;AACvI,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amboras-dev/storefront-core",
3
- "version": "2026.11.8-rc.2",
3
+ "version": "2026.11.8-rc.3",
4
4
  "description": "The platform half of every Amboras storefront: cart, checkout, payments, auth, orders, subscriptions, catalogue data, analytics, consent, plugin slots, edge proxy and the Next config. Stores keep only design; they import this. ESM, React 19, Next 16.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",