@fluid-app/portal-sdk 0.1.311 → 0.1.312

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 (141) hide show
  1. package/dist/{ContactsScreen-C2-ScK3i.cjs → ContactsScreen-B_iTSV67.cjs} +21 -21
  2. package/dist/{ContactsScreen-C2-ScK3i.cjs.map → ContactsScreen-B_iTSV67.cjs.map} +1 -1
  3. package/dist/{ContactsScreen-9613La-4.cjs → ContactsScreen-BacGvYpU.cjs} +1 -1
  4. package/dist/{ContactsScreen-CAwUXMDr.mjs → ContactsScreen-D2htG3gL.mjs} +21 -21
  5. package/dist/{ContactsScreen-CAwUXMDr.mjs.map → ContactsScreen-D2htG3gL.mjs.map} +1 -1
  6. package/dist/{MessagingScreen-DuYCzPYW.mjs → MessagingScreen-CwQMhw18.mjs} +1 -0
  7. package/dist/{OrdersScreen-D1Whz24J.mjs → OrdersScreen-Wrt08mBS.mjs} +2 -0
  8. package/dist/{ProfileScreen-eeXNttNa.mjs → ProfileScreen-Dd0reAiP.mjs} +1 -0
  9. package/dist/{ShareablesScreen-3CCVMNaT.mjs → ShareablesScreen-C6OmCNlO.mjs} +2 -0
  10. package/dist/{ShopScreen-CH3PhvzA.mjs → ShopScreen-YlDG7ZJk.mjs} +2 -0
  11. package/dist/{SubscriptionsScreen-7DGtY49t.cjs → SubscriptionsScreen-CFEAH36q.cjs} +39 -17
  12. package/dist/SubscriptionsScreen-CFEAH36q.cjs.map +1 -0
  13. package/dist/{SubscriptionsScreen-DpcL08EP.mjs → SubscriptionsScreen-CGTKGw7C.mjs} +39 -17
  14. package/dist/SubscriptionsScreen-CGTKGw7C.mjs.map +1 -0
  15. package/dist/{SubscriptionsScreen-CHdYF4Ga.mjs → SubscriptionsScreen-DBKaPLTx.mjs} +3 -1
  16. package/dist/{SubscriptionsScreen-BJ8yW6x3.cjs → SubscriptionsScreen-Di98lE9y.cjs} +1 -1
  17. package/dist/{de-5dJcGXHd.mjs → de-CZcaM1mg.mjs} +33 -1
  18. package/dist/de-CZcaM1mg.mjs.map +1 -0
  19. package/dist/{de-279qQKkW.cjs → de-DOhr1RUy.cjs} +33 -1
  20. package/dist/de-DOhr1RUy.cjs.map +1 -0
  21. package/dist/{el-DXt-pZcE.mjs → el-CFfcOTW0.mjs} +33 -1
  22. package/dist/el-CFfcOTW0.mjs.map +1 -0
  23. package/dist/{el-CFPYRWKm.cjs → el-De6RiFnZ.cjs} +33 -1
  24. package/dist/el-De6RiFnZ.cjs.map +1 -0
  25. package/dist/{es-DLfWfxCc.cjs → es-BxpjC2GW.cjs} +33 -1
  26. package/dist/es-BxpjC2GW.cjs.map +1 -0
  27. package/dist/{es-WB2frRI4.mjs → es-jVAovyyN.mjs} +33 -1
  28. package/dist/es-jVAovyyN.mjs.map +1 -0
  29. package/dist/{fr-DgmvSclY.mjs → fr-BS-JXutt.mjs} +33 -1
  30. package/dist/fr-BS-JXutt.mjs.map +1 -0
  31. package/dist/{fr-C3IQZmS6.cjs → fr-DErR5mVD.cjs} +33 -1
  32. package/dist/fr-DErR5mVD.cjs.map +1 -0
  33. package/dist/{he-XJMTsvul.cjs → he-BCoena1G.cjs} +33 -1
  34. package/dist/he-BCoena1G.cjs.map +1 -0
  35. package/dist/{he-w6k-YiLm.mjs → he-Dm3gcP5z.mjs} +33 -1
  36. package/dist/he-Dm3gcP5z.mjs.map +1 -0
  37. package/dist/{hu-BydB22cZ.cjs → hu-BzV6oL5x.cjs} +33 -1
  38. package/dist/hu-BzV6oL5x.cjs.map +1 -0
  39. package/dist/{hu-tDjFfQ9J.mjs → hu-DrbPFf-v.mjs} +33 -1
  40. package/dist/hu-DrbPFf-v.mjs.map +1 -0
  41. package/dist/{id-Dp68FLAc.mjs → id-B8lS0RIT.mjs} +33 -1
  42. package/dist/id-B8lS0RIT.mjs.map +1 -0
  43. package/dist/{id-0CifOwIm.cjs → id-BJnQbLNZ.cjs} +33 -1
  44. package/dist/id-BJnQbLNZ.cjs.map +1 -0
  45. package/dist/index.cjs +6 -6
  46. package/dist/index.mjs +16 -16
  47. package/dist/{it-DngfQciz.mjs → it-Cz92WfRO.mjs} +33 -1
  48. package/dist/it-Cz92WfRO.mjs.map +1 -0
  49. package/dist/{it-CBdazuIz.cjs → it-Dij-dYqs.cjs} +33 -1
  50. package/dist/it-Dij-dYqs.cjs.map +1 -0
  51. package/dist/{ja-CVtC1kDv.cjs → ja-CrT0URkz.cjs} +33 -1
  52. package/dist/ja-CrT0URkz.cjs.map +1 -0
  53. package/dist/{ja-CkMDVPtH.mjs → ja-DI_TV2Zj.mjs} +33 -1
  54. package/dist/ja-DI_TV2Zj.mjs.map +1 -0
  55. package/dist/{ko-R-Le9JU8.cjs → ko-Dv4sXcM3.cjs} +33 -1
  56. package/dist/ko-Dv4sXcM3.cjs.map +1 -0
  57. package/dist/{ko-B72HbkvY.mjs → ko-E9TdOA9L.mjs} +33 -1
  58. package/dist/ko-E9TdOA9L.mjs.map +1 -0
  59. package/dist/{nl-CuaJpFBW.mjs → nl-B_w0JfzN.mjs} +33 -1
  60. package/dist/nl-B_w0JfzN.mjs.map +1 -0
  61. package/dist/{nl-dE66DT9d.cjs → nl-CPxJexkh.cjs} +33 -1
  62. package/dist/nl-CPxJexkh.cjs.map +1 -0
  63. package/dist/{pl-CNTDY6Ov.mjs → pl-BTmWl6HG.mjs} +33 -1
  64. package/dist/pl-BTmWl6HG.mjs.map +1 -0
  65. package/dist/{pl-d7LeUSmm.cjs → pl-ifHwr3rd.cjs} +33 -1
  66. package/dist/pl-ifHwr3rd.cjs.map +1 -0
  67. package/dist/{pt-Cu2TCvrS.mjs → pt-C1UtoI8g.mjs} +33 -1
  68. package/dist/pt-C1UtoI8g.mjs.map +1 -0
  69. package/dist/{pt-DlWYOQB7.cjs → pt-lMkT_wS4.cjs} +33 -1
  70. package/dist/pt-lMkT_wS4.cjs.map +1 -0
  71. package/dist/{ro-IGnNpnPk.mjs → ro-CQ1vwLZl.mjs} +33 -1
  72. package/dist/ro-CQ1vwLZl.mjs.map +1 -0
  73. package/dist/{ro-CxRERiJd.cjs → ro-DDUpw1f5.cjs} +33 -1
  74. package/dist/ro-DDUpw1f5.cjs.map +1 -0
  75. package/dist/{ru-BaL7GN_2.cjs → ru-BQOLcWNV.cjs} +33 -1
  76. package/dist/ru-BQOLcWNV.cjs.map +1 -0
  77. package/dist/{ru-CDda1N4V.mjs → ru-V4rwK1qm.mjs} +33 -1
  78. package/dist/ru-V4rwK1qm.mjs.map +1 -0
  79. package/dist/{th-Bmg6T2oO.mjs → th-BBDWFncd.mjs} +33 -1
  80. package/dist/th-BBDWFncd.mjs.map +1 -0
  81. package/dist/{th-eBfuOCvu.cjs → th-BCAGq41B.cjs} +33 -1
  82. package/dist/th-BCAGq41B.cjs.map +1 -0
  83. package/dist/{tl-yM51nib5.mjs → tl-CKtTJyIH.mjs} +33 -1
  84. package/dist/tl-CKtTJyIH.mjs.map +1 -0
  85. package/dist/{tl-DorumJMB.cjs → tl-D-jPdAL3.cjs} +33 -1
  86. package/dist/tl-D-jPdAL3.cjs.map +1 -0
  87. package/dist/{tr-q4NrT_MG.mjs → tr-C1fcNn_N.mjs} +33 -1
  88. package/dist/tr-C1fcNn_N.mjs.map +1 -0
  89. package/dist/{tr-CPLe40Ae.cjs → tr-DylwTPzx.cjs} +33 -1
  90. package/dist/tr-DylwTPzx.cjs.map +1 -0
  91. package/dist/{zh_CN-DELFfbhB.mjs → zh_CN-Ctx0sPwT.mjs} +33 -1
  92. package/dist/zh_CN-Ctx0sPwT.mjs.map +1 -0
  93. package/dist/{zh_CN-Bvmrqi_G.cjs → zh_CN-DhRV2h7N.cjs} +33 -1
  94. package/dist/zh_CN-DhRV2h7N.cjs.map +1 -0
  95. package/dist/{zh_TW-CryKLufw.mjs → zh_TW-Buj0u5-2.mjs} +33 -1
  96. package/dist/zh_TW-Buj0u5-2.mjs.map +1 -0
  97. package/dist/{zh_TW-DVfX_7Is.cjs → zh_TW-N9P2PjhJ.cjs} +33 -1
  98. package/dist/zh_TW-N9P2PjhJ.cjs.map +1 -0
  99. package/package.json +19 -19
  100. package/dist/SubscriptionsScreen-7DGtY49t.cjs.map +0 -1
  101. package/dist/SubscriptionsScreen-DpcL08EP.mjs.map +0 -1
  102. package/dist/de-279qQKkW.cjs.map +0 -1
  103. package/dist/de-5dJcGXHd.mjs.map +0 -1
  104. package/dist/el-CFPYRWKm.cjs.map +0 -1
  105. package/dist/el-DXt-pZcE.mjs.map +0 -1
  106. package/dist/es-DLfWfxCc.cjs.map +0 -1
  107. package/dist/es-WB2frRI4.mjs.map +0 -1
  108. package/dist/fr-C3IQZmS6.cjs.map +0 -1
  109. package/dist/fr-DgmvSclY.mjs.map +0 -1
  110. package/dist/he-XJMTsvul.cjs.map +0 -1
  111. package/dist/he-w6k-YiLm.mjs.map +0 -1
  112. package/dist/hu-BydB22cZ.cjs.map +0 -1
  113. package/dist/hu-tDjFfQ9J.mjs.map +0 -1
  114. package/dist/id-0CifOwIm.cjs.map +0 -1
  115. package/dist/id-Dp68FLAc.mjs.map +0 -1
  116. package/dist/it-CBdazuIz.cjs.map +0 -1
  117. package/dist/it-DngfQciz.mjs.map +0 -1
  118. package/dist/ja-CVtC1kDv.cjs.map +0 -1
  119. package/dist/ja-CkMDVPtH.mjs.map +0 -1
  120. package/dist/ko-B72HbkvY.mjs.map +0 -1
  121. package/dist/ko-R-Le9JU8.cjs.map +0 -1
  122. package/dist/nl-CuaJpFBW.mjs.map +0 -1
  123. package/dist/nl-dE66DT9d.cjs.map +0 -1
  124. package/dist/pl-CNTDY6Ov.mjs.map +0 -1
  125. package/dist/pl-d7LeUSmm.cjs.map +0 -1
  126. package/dist/pt-Cu2TCvrS.mjs.map +0 -1
  127. package/dist/pt-DlWYOQB7.cjs.map +0 -1
  128. package/dist/ro-CxRERiJd.cjs.map +0 -1
  129. package/dist/ro-IGnNpnPk.mjs.map +0 -1
  130. package/dist/ru-BaL7GN_2.cjs.map +0 -1
  131. package/dist/ru-CDda1N4V.mjs.map +0 -1
  132. package/dist/th-Bmg6T2oO.mjs.map +0 -1
  133. package/dist/th-eBfuOCvu.cjs.map +0 -1
  134. package/dist/tl-DorumJMB.cjs.map +0 -1
  135. package/dist/tl-yM51nib5.mjs.map +0 -1
  136. package/dist/tr-CPLe40Ae.cjs.map +0 -1
  137. package/dist/tr-q4NrT_MG.mjs.map +0 -1
  138. package/dist/zh_CN-Bvmrqi_G.cjs.map +0 -1
  139. package/dist/zh_CN-DELFfbhB.mjs.map +0 -1
  140. package/dist/zh_TW-CryKLufw.mjs.map +0 -1
  141. package/dist/zh_TW-DVfX_7Is.cjs.map +0 -1
@@ -4,6 +4,7 @@ import "./ScreenRenderer-cttxJ-W9.mjs";
4
4
  import "./store-api-context-DViwxyG4.mjs";
5
5
  import "./mysite-api-context-kUTM3GNG.mjs";
6
6
  import "./countries-api-context-DScC_39w.mjs";
7
+ import "./PortalTenantClientProvider-_VXOs0t4.mjs";
7
8
  import "./registry-context-DIdav3MJ.mjs";
8
9
  import "./WidgetInteractionContext-CDHSzzws.mjs";
9
10
  import "./EmbedWidget-Cl41N8Cb.mjs";
@@ -4,6 +4,7 @@ import "./ScreenRenderer-cttxJ-W9.mjs";
4
4
  import "./store-api-context-DViwxyG4.mjs";
5
5
  import "./mysite-api-context-kUTM3GNG.mjs";
6
6
  import "./countries-api-context-DScC_39w.mjs";
7
+ import "./PortalTenantClientProvider-_VXOs0t4.mjs";
7
8
  import "./registry-context-DIdav3MJ.mjs";
8
9
  import "./WidgetInteractionContext-CDHSzzws.mjs";
9
10
  import "./EmbedWidget-Cl41N8Cb.mjs";
@@ -41,6 +42,7 @@ import "./ToDoWidget-CbOUk65b.mjs";
41
42
  import "./VideoWidget-Cg-MAH4X.mjs";
42
43
  import "./ScreenHeaderContext-C22wBIsP.mjs";
43
44
  import "./translation-api-context-factory-BYNOdpnp.mjs";
45
+ import "./AppNavigationContext-DNomMUij.mjs";
44
46
  import "./static-dict-adapter-CGDunURa.mjs";
45
47
  import { n as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-OEk3M3Qm.mjs";
46
48
  export { OrdersScreen, ordersScreenPropertySchema };
@@ -4,6 +4,7 @@ import "./ScreenRenderer-cttxJ-W9.mjs";
4
4
  import "./store-api-context-DViwxyG4.mjs";
5
5
  import "./mysite-api-context-kUTM3GNG.mjs";
6
6
  import "./countries-api-context-DScC_39w.mjs";
7
+ import "./PortalTenantClientProvider-_VXOs0t4.mjs";
7
8
  import "./registry-context-DIdav3MJ.mjs";
8
9
  import "./WidgetInteractionContext-CDHSzzws.mjs";
9
10
  import "./EmbedWidget-Cl41N8Cb.mjs";
@@ -1,10 +1,12 @@
1
1
  import "./portal_tenant_content-CRrn7i-P.mjs";
2
2
  import "./store-api-context-DViwxyG4.mjs";
3
3
  import "./mysite-api-context-kUTM3GNG.mjs";
4
+ import "./PortalTenantClientProvider-_VXOs0t4.mjs";
4
5
  import "./locale-context-DGCebJhw.mjs";
5
6
  import "./src-CKQLslxB.mjs";
6
7
  import "./ScreenHeaderContext-C22wBIsP.mjs";
7
8
  import "./translation-api-context-factory-BYNOdpnp.mjs";
9
+ import "./AppNavigationContext-DNomMUij.mjs";
8
10
  import "./static-dict-adapter-CGDunURa.mjs";
9
11
  import "./SearchSort-Dy1hY4UL.mjs";
10
12
  import "./use-mysite-portal-BoAJchWC.mjs";
@@ -4,6 +4,7 @@ import "./ScreenRenderer-cttxJ-W9.mjs";
4
4
  import "./store-api-context-DViwxyG4.mjs";
5
5
  import "./mysite-api-context-kUTM3GNG.mjs";
6
6
  import "./countries-api-context-DScC_39w.mjs";
7
+ import "./PortalTenantClientProvider-_VXOs0t4.mjs";
7
8
  import "./registry-context-DIdav3MJ.mjs";
8
9
  import "./WidgetInteractionContext-CDHSzzws.mjs";
9
10
  import "./EmbedWidget-Cl41N8Cb.mjs";
@@ -41,6 +42,7 @@ import "./ToDoWidget-CbOUk65b.mjs";
41
42
  import "./VideoWidget-Cg-MAH4X.mjs";
42
43
  import "./ScreenHeaderContext-C22wBIsP.mjs";
43
44
  import "./translation-api-context-factory-BYNOdpnp.mjs";
45
+ import "./AppNavigationContext-DNomMUij.mjs";
44
46
  import "./product-card-zVk0Hyxh.mjs";
45
47
  import "./SearchSort-Dy1hY4UL.mjs";
46
48
  import { n as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-KF3dsnFC.mjs";
@@ -2440,6 +2440,21 @@ function formatDate(dateString, isCancelled = false) {
2440
2440
  };
2441
2441
  return `${monthName} ${dayNum}${ordinalSuffix(dayNum)}, ${yearNum}`;
2442
2442
  }
2443
+ function formatTime(dateString, timezone) {
2444
+ if (!dateString || !timezone) return "";
2445
+ const date = new Date(dateString);
2446
+ if (Number.isNaN(date.getTime())) return "";
2447
+ try {
2448
+ return new Intl.DateTimeFormat("en-US", {
2449
+ hour: "numeric",
2450
+ minute: "2-digit",
2451
+ hour12: true,
2452
+ timeZone: timezone
2453
+ }).format(date);
2454
+ } catch {
2455
+ return "";
2456
+ }
2457
+ }
2443
2458
  function getNextBillDisplay(subscription) {
2444
2459
  if (subscription?.status === "cancelled") return "Cancelled";
2445
2460
  if (subscription?.next_bill_date) return formatDate(subscription.next_bill_date);
@@ -2485,6 +2500,7 @@ function mapDetailSubscription(bff) {
2485
2500
  original_price: safeParsePrice(bff.original_price, price),
2486
2501
  next_bill_date: bff.next_billing_date ?? null,
2487
2502
  last_bill_date: bff.last_billing_date ?? null,
2503
+ timezone: bff.timezone ?? null,
2488
2504
  next_ship_date: null,
2489
2505
  last_ship_date: null,
2490
2506
  disabled: false,
@@ -5627,6 +5643,7 @@ function SubscriptionItemsSection({ subscription, displayQuantity, displayNextBi
5627
5643
  const quantityInputId = `subscription-${subscription.subscription_token}-quantity`;
5628
5644
  const discount = subscription.original_price != null ? subscription.original_price - subscription.price : 0;
5629
5645
  const subtotal = discount > 0 ? formatCurrency(subscription.original_price * quantity) : totalPrice;
5646
+ const nextOrderTimeOfDay = formatTime(displayNextBillDate ?? subscription.next_bill_date, subscription.timezone);
5630
5647
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("section", {
5631
5648
  className: "bg-muted flex w-full flex-col items-center rounded-lg px-8 lg:col-span-4 lg:self-start",
5632
5649
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -5643,32 +5660,37 @@ function SubscriptionItemsSection({ subscription, displayQuantity, displayNextBi
5643
5660
  className: "grid grid-cols-2 gap-4",
5644
5661
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
5645
5662
  className: "border-border border-r pr-4",
5646
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5647
- className: "text-muted-foreground mb-1 text-sm",
5648
- children: t("next_order_date")
5649
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5650
- className: "text-foreground text-2xl font-bold",
5651
- children: getNextBillDisplay(displayNextBillDate ? {
5652
- ...subscription,
5653
- next_bill_date: displayNextBillDate
5654
- } : subscription)
5655
- })]
5656
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
5657
- className: "pl-4",
5658
5663
  children: [
5659
5664
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5660
5665
  className: "text-muted-foreground mb-1 text-sm",
5661
- children: t("next_bill_amount")
5666
+ children: t("next_order_date")
5662
5667
  }),
5663
5668
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5664
5669
  className: "text-foreground text-2xl font-bold",
5665
- children: formatCurrency(subscription.price * quantity)
5670
+ children: getNextBillDisplay(displayNextBillDate ? {
5671
+ ...subscription,
5672
+ next_bill_date: displayNextBillDate
5673
+ } : subscription)
5666
5674
  }),
5667
- (displayNextBillDate ?? subscription.next_bill_date) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5675
+ nextOrderTimeOfDay && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
5668
5676
  className: "text-muted-foreground mt-1 text-xs",
5669
- children: formatDate(displayNextBillDate ?? subscription.next_bill_date ?? "")
5677
+ children: [
5678
+ nextOrderTimeOfDay,
5679
+ " (",
5680
+ subscription.timezone,
5681
+ ")"
5682
+ ]
5670
5683
  })
5671
5684
  ]
5685
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
5686
+ className: "pl-4",
5687
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5688
+ className: "text-muted-foreground mb-1 text-sm",
5689
+ children: t("next_bill_amount")
5690
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5691
+ className: "text-foreground text-2xl font-bold",
5692
+ children: formatCurrency(subscription.price * quantity)
5693
+ })]
5672
5694
  })]
5673
5695
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("hr", { className: "border-border mt-4" })]
5674
5696
  })]
@@ -7122,4 +7144,4 @@ Object.defineProperty(exports, "subscriptionsScreenPropertySchema", {
7122
7144
  }
7123
7145
  });
7124
7146
 
7125
- //# sourceMappingURL=SubscriptionsScreen-7DGtY49t.cjs.map
7147
+ //# sourceMappingURL=SubscriptionsScreen-CFEAH36q.cjs.map