@fluid-app/portal-sdk 0.1.321 → 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.
- package/dist/{AddressAutocompleteInput-PJBI9E5E.mjs → AddressAutocompleteInput-BpbBARKk.mjs} +4 -1
- package/dist/AddressAutocompleteInput-BpbBARKk.mjs.map +1 -0
- package/dist/{AddressAutocompleteInput-CQLCLiwR.cjs → AddressAutocompleteInput-DkFs_leA.cjs} +4 -1
- package/dist/AddressAutocompleteInput-DkFs_leA.cjs.map +1 -0
- package/dist/{ProfileScreen-DyLQihOW.cjs → ProfileScreen-C3zOvEhX.cjs} +90 -2
- package/dist/ProfileScreen-C3zOvEhX.cjs.map +1 -0
- package/dist/{ProfileScreen-C7scpZZH.mjs → ProfileScreen-Chk8YkMW.mjs} +91 -3
- package/dist/ProfileScreen-Chk8YkMW.mjs.map +1 -0
- package/dist/{ProfileScreen-C9aqx1sO.cjs → ProfileScreen-CxOJ1D3H.cjs} +2 -2
- package/dist/{ProfileScreen-imlOJIjC.mjs → ProfileScreen-DZFMc4E9.mjs} +2 -2
- package/dist/{SubscriptionsScreen-CQ3L8wDE.mjs → SubscriptionsScreen-BIVZPjlJ.mjs} +20 -19
- package/dist/SubscriptionsScreen-BIVZPjlJ.mjs.map +1 -0
- package/dist/{SubscriptionsScreen-BP-sSa__.mjs → SubscriptionsScreen-BLligJrd.mjs} +2 -2
- package/dist/{SubscriptionsScreen-D0BtuCfM.cjs → SubscriptionsScreen-CLJO_AE7.cjs} +20 -19
- package/dist/SubscriptionsScreen-CLJO_AE7.cjs.map +1 -0
- package/dist/{SubscriptionsScreen-B3kKkAuA.cjs → SubscriptionsScreen-fUWYlZkB.cjs} +2 -2
- package/dist/index.cjs +7 -7
- package/dist/index.mjs +7 -7
- package/package.json +11 -11
- package/dist/AddressAutocompleteInput-CQLCLiwR.cjs.map +0 -1
- package/dist/AddressAutocompleteInput-PJBI9E5E.mjs.map +0 -1
- package/dist/ProfileScreen-C7scpZZH.mjs.map +0 -1
- package/dist/ProfileScreen-DyLQihOW.cjs.map +0 -1
- package/dist/SubscriptionsScreen-CQ3L8wDE.mjs.map +0 -1
- package/dist/SubscriptionsScreen-D0BtuCfM.cjs.map +0 -1
|
@@ -9,7 +9,7 @@ import { t as useStore } from "./use-store-fLSf5hUc.mjs";
|
|
|
9
9
|
import { n as payKeys, r as storeKeys } from "./query-keys-BkMRwfNo.mjs";
|
|
10
10
|
import { t as useAccount } from "./use-account-BqNRv6m6.mjs";
|
|
11
11
|
import { n as useAppNavigation } from "./AppNavigationContext-DNomMUij.mjs";
|
|
12
|
-
import { a as AddressFormDialog, c as PaymentIcon, f as ConfirmActionDialog, h as useProfileTranslation, i as CreditCardFormDialog, l as getCardDisplayName, m as ProfileTranslationBridge, n as createFluidPayApiAdapter, o as EditPaymentMethodDialog, p as EllipsesDropdown, r as mapToFluidPayPaymentMethod, s as FluidPayCoreProvider, t as AddressAutocompleteInput, u as getCardExpiry } from "./AddressAutocompleteInput-
|
|
12
|
+
import { a as AddressFormDialog, c as PaymentIcon, f as ConfirmActionDialog, h as useProfileTranslation, i as CreditCardFormDialog, l as getCardDisplayName, m as ProfileTranslationBridge, n as createFluidPayApiAdapter, o as EditPaymentMethodDialog, p as EllipsesDropdown, r as mapToFluidPayPaymentMethod, s as FluidPayCoreProvider, t as AddressAutocompleteInput, u as getCardExpiry } from "./AddressAutocompleteInput-BpbBARKk.mjs";
|
|
13
13
|
import { createContext, useCallback, useContext, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
14
14
|
import { useInfiniteQuery, useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
15
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -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,
|
|
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("
|
|
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
|
-
|
|
6075
|
+
/* @__PURE__ */ jsx("div", {
|
|
6064
6076
|
className: "text-muted-foreground text-xs",
|
|
6065
|
-
children: formatDate(
|
|
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-
|
|
7362
|
+
//# sourceMappingURL=SubscriptionsScreen-BIVZPjlJ.mjs.map
|