@fluid-app/portal-sdk 0.1.322 → 0.1.323

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.
@@ -2453,7 +2453,7 @@ function mapDetailSubscription(bff) {
2453
2453
  last_bill_date: bff.last_billing_date ?? null,
2454
2454
  timezone: bff.timezone ?? null,
2455
2455
  next_ship_date: null,
2456
- last_ship_date: null,
2456
+ last_ship_date: bff.last_shipping_date ?? null,
2457
2457
  disabled: false,
2458
2458
  attempts: 0,
2459
2459
  last_failed_at: bff.last_failed_at ?? null,
@@ -2881,6 +2881,8 @@ const subscriptionsDomain = createDomainTranslations({
2881
2881
  order_frequency: "Order Frequency",
2882
2882
  next_payment: "Next Payment",
2883
2883
  last_billed: "Last Billed",
2884
+ last_shipped: "Last Shipped",
2885
+ last_bill_amount: "Last Bill Amount",
2884
2886
  payment_and_shipping: "Payment & Shipping",
2885
2887
  shipping_address: "Shipping Address",
2886
2888
  payment_method: "Payment Method",
@@ -5931,7 +5933,7 @@ function SubscriptionItemsSection({ subscription, displayQuantity, displayNextBi
5931
5933
  })
5932
5934
  });
5933
5935
  }
5934
- function SubscriptionManagementSection({ subscription, isActive, isPaused, isCancelled, isMutating, onSkip, onPause, onResume, onCancel, onReactivate, onEditBillDate, onUpdatePaymentClick, displayNextBillDate, renderPaymentMethod, renderShippingAddress }) {
5936
+ function SubscriptionManagementSection({ subscription, isActive, isPaused, isCancelled, isMutating, onSkip, onPause, onResume, onCancel, onReactivate, onEditBillDate, onUpdatePaymentClick, renderPaymentMethod, renderShippingAddress }) {
5935
5937
  const { t } = useSubscriptionsTranslation();
5936
5938
  const plan = subscription.subscription_plan;
5937
5939
  const quantity = subscription.quantity;
@@ -6049,32 +6051,32 @@ function SubscriptionManagementSection({ subscription, isActive, isPaused, isCan
6049
6051
  children: formatSubscriptionFrequency(plan.billing_interval_unit)
6050
6052
  })]
6051
6053
  }),
6052
- /* @__PURE__ */ jsxs("div", {
6054
+ subscription.last_ship_date && /* @__PURE__ */ jsxs("div", {
6055
+ className: "flex-1 px-4",
6056
+ children: [/* @__PURE__ */ jsx("div", {
6057
+ className: "text-muted-foreground text-sm",
6058
+ children: t("last_shipped")
6059
+ }), /* @__PURE__ */ jsx("div", {
6060
+ className: "text-foreground font-medium",
6061
+ children: formatDate(subscription.last_ship_date)
6062
+ })]
6063
+ }),
6064
+ subscription.last_bill_date && /* @__PURE__ */ jsxs("div", {
6053
6065
  className: "flex-1 px-4",
6054
6066
  children: [
6055
6067
  /* @__PURE__ */ jsx("div", {
6056
6068
  className: "text-muted-foreground text-sm",
6057
- children: t("next_payment")
6069
+ children: t("last_bill_amount")
6058
6070
  }),
6059
6071
  /* @__PURE__ */ jsx("div", {
6060
6072
  className: "text-foreground font-medium",
6061
6073
  children: totalPrice
6062
6074
  }),
6063
- subscription.status !== "past_due" && (displayNextBillDate ?? subscription.next_bill_date) && /* @__PURE__ */ jsx("div", {
6075
+ /* @__PURE__ */ jsx("div", {
6064
6076
  className: "text-muted-foreground text-xs",
6065
- children: formatDate(displayNextBillDate ?? subscription.next_bill_date ?? "")
6077
+ children: formatDate(subscription.last_bill_date)
6066
6078
  })
6067
6079
  ]
6068
- }),
6069
- subscription.last_bill_date && /* @__PURE__ */ jsxs("div", {
6070
- className: "flex-1 pl-4 text-right",
6071
- children: [/* @__PURE__ */ jsx("div", {
6072
- className: "text-muted-foreground text-sm",
6073
- children: t("last_billed")
6074
- }), /* @__PURE__ */ jsx("div", {
6075
- className: "text-foreground font-medium",
6076
- children: formatDate(subscription.last_bill_date)
6077
- })]
6078
6080
  })
6079
6081
  ]
6080
6082
  })]
@@ -6404,7 +6406,6 @@ function SubscriptionDetail({ token, onNotFound, onError, onSuccess, onMutationE
6404
6406
  onReactivate: handleReactivate,
6405
6407
  onEditBillDate: () => setShowEditBillDateModal(true),
6406
6408
  onUpdatePaymentClick,
6407
- displayNextBillDate: pendingNextBillDate ?? void 0,
6408
6409
  renderPaymentMethod,
6409
6410
  renderShippingAddress
6410
6411
  })]
@@ -7358,4 +7359,4 @@ const subscriptionsScreenPropertySchema = {
7358
7359
  //#endregion
7359
7360
  export { subscriptionsScreenPropertySchema as n, SubscriptionsScreen as t };
7360
7361
 
7361
- //# sourceMappingURL=SubscriptionsScreen-u_q5j115.mjs.map
7362
+ //# sourceMappingURL=SubscriptionsScreen-BIVZPjlJ.mjs.map