@fluid-app/portal-sdk 0.1.385 → 0.1.387
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/{FluidProvider-Dilwi7_B.cjs → FluidProvider-BU3BXuxS.cjs} +3 -2
- package/dist/{FluidProvider-Dilwi7_B.cjs.map → FluidProvider-BU3BXuxS.cjs.map} +1 -1
- package/dist/{FluidProvider-BYgxVnWP.mjs → FluidProvider-Di0VmT5J.mjs} +3 -2
- package/dist/FluidProvider-Di0VmT5J.mjs.map +1 -0
- package/dist/{MessagingScreen-BsSaLUaS.mjs → MessagingScreen-CPxVO0Wk.mjs} +2 -2
- package/dist/{MessagingScreen-BsSaLUaS.mjs.map → MessagingScreen-CPxVO0Wk.mjs.map} +1 -1
- package/dist/{MessagingScreen-CDGF0XRT.cjs → MessagingScreen-QgJKRkKq.cjs} +2 -2
- package/dist/{MessagingScreen-CDGF0XRT.cjs.map → MessagingScreen-QgJKRkKq.cjs.map} +1 -1
- package/dist/{MessagingScreen-De4ras4I.mjs → MessagingScreen-RLN9jsoZ.mjs} +2 -2
- package/dist/{MessagingScreen-Byxh9Rv2.cjs → MessagingScreen-RhKhwKd5.cjs} +2 -2
- package/dist/{OrdersScreen-UNblg7xL.mjs → OrdersScreen--qxFd_oS.mjs} +2 -2
- package/dist/{OrdersScreen-UNblg7xL.mjs.map → OrdersScreen--qxFd_oS.mjs.map} +1 -1
- package/dist/{OrdersScreen-CDzjtq8a.mjs → OrdersScreen-B2jdzJ6c.mjs} +2 -2
- package/dist/{OrdersScreen-BNElIeS8.cjs → OrdersScreen-BoUyiI_f.cjs} +2 -2
- package/dist/{OrdersScreen-B2SRmObd.cjs → OrdersScreen-HhMJh5mj.cjs} +2 -2
- package/dist/{OrdersScreen-B2SRmObd.cjs.map → OrdersScreen-HhMJh5mj.cjs.map} +1 -1
- package/dist/{ProfileScreen-BHR_PVwR.cjs → ProfileScreen-BOI4Oojs.cjs} +3 -3
- package/dist/{ProfileScreen-C1ZwbDw7.mjs → ProfileScreen-BcvC6RbJ.mjs} +3 -3
- package/dist/{ProfileScreen-C1ZwbDw7.mjs.map → ProfileScreen-BcvC6RbJ.mjs.map} +1 -1
- package/dist/{ProfileScreen-D-ge7Asc.mjs → ProfileScreen-DWMzYH7_.mjs} +3 -3
- package/dist/{ProfileScreen-BV-Gif3U.cjs → ProfileScreen-DzfU7FTz.cjs} +3 -3
- package/dist/{ProfileScreen-BV-Gif3U.cjs.map → ProfileScreen-DzfU7FTz.cjs.map} +1 -1
- package/dist/{ShopScreen-CnUt5AC9.mjs → ShopScreen-5DyUGsmE.mjs} +9 -5
- package/dist/{ShopScreen-CnUt5AC9.mjs.map → ShopScreen-5DyUGsmE.mjs.map} +1 -1
- package/dist/{ShopScreen-D4CZzLFY.cjs → ShopScreen-CHIf28tV.cjs} +2 -2
- package/dist/{ShopScreen-vgnh3ekZ.cjs → ShopScreen-CuvC5Bjz.cjs} +9 -5
- package/dist/{ShopScreen-vgnh3ekZ.cjs.map → ShopScreen-CuvC5Bjz.cjs.map} +1 -1
- package/dist/{ShopScreen-CsskV8fT.mjs → ShopScreen-VHFXtdMF.mjs} +2 -2
- package/dist/{SubscriptionsScreen-Da6LvTrV.mjs → SubscriptionsScreen-D39u7QoT.mjs} +3 -3
- package/dist/{SubscriptionsScreen-BqZEjgCY.cjs → SubscriptionsScreen-DaY0JYCk.cjs} +3 -3
- package/dist/{SubscriptionsScreen-QtXnqurA.cjs → SubscriptionsScreen-Dhacz1VP.cjs} +7 -6
- package/dist/SubscriptionsScreen-Dhacz1VP.cjs.map +1 -0
- package/dist/{SubscriptionsScreen-CDUVX5vf.mjs → SubscriptionsScreen-VB3AL_LL.mjs} +7 -6
- package/dist/SubscriptionsScreen-VB3AL_LL.mjs.map +1 -0
- package/dist/index.cjs +18 -18
- package/dist/index.d.cts +8 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +8 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +18 -18
- package/dist/preview/preview-entry.cjs +2 -2
- package/dist/preview/preview-entry.mjs +2 -2
- package/dist/{use-portal-card-add-3ds-flow-C8KTwgSS.cjs → use-portal-card-add-3ds-flow-CC7ljhOr.cjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-C8KTwgSS.cjs.map → use-portal-card-add-3ds-flow-CC7ljhOr.cjs.map} +1 -1
- package/dist/{use-portal-card-add-3ds-flow-rmkIPp9W.mjs → use-portal-card-add-3ds-flow-CqONQbma.mjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-rmkIPp9W.mjs.map → use-portal-card-add-3ds-flow-CqONQbma.mjs.map} +1 -1
- package/dist/{widget-package-utils-D7IQG1pk.mjs → widget-package-utils-DeSnoZC3.mjs} +2 -2
- package/dist/{widget-package-utils-D7IQG1pk.mjs.map → widget-package-utils-DeSnoZC3.mjs.map} +1 -1
- package/dist/{widget-package-utils-DK0UvJ3E.cjs → widget-package-utils-_bSc7zYe.cjs} +2 -2
- package/dist/{widget-package-utils-DK0UvJ3E.cjs.map → widget-package-utils-_bSc7zYe.cjs.map} +1 -1
- package/package.json +12 -12
- package/dist/FluidProvider-BYgxVnWP.mjs.map +0 -1
- package/dist/SubscriptionsScreen-CDUVX5vf.mjs.map +0 -1
- package/dist/SubscriptionsScreen-QtXnqurA.cjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as subscriptions_resume, J as subscription_bundles_list, Q as subscriptions_reactivate, X as subscriptions_list, Y as subscriptions_cancel, Z as subscriptions_pause, et as subscriptions_retry, nt as subscriptions_skip, q as subscription_bundles_create, rt as subscriptions_update, t as useAccount, tt as subscriptions_show } from "./use-account-CZE8PURZ.mjs";
|
|
2
|
-
import { J as isApiError, Q as usePayApi, c as createSubscriptionsTranslationAdapter, l as subscriptionsDomain, n as useFluidContext } from "./FluidProvider-
|
|
2
|
+
import { J as isApiError, Q as usePayApi, c as createSubscriptionsTranslationAdapter, l as subscriptionsDomain, n as useFluidContext } from "./FluidProvider-Di0VmT5J.mjs";
|
|
3
3
|
import { i as useCountriesApi } from "./ContactsTranslationBridge-C6CIH2Fe.mjs";
|
|
4
4
|
import { a as usePortalTenantClient, n as payKeys, r as storeKeys } from "./query-keys-Dtps6P1q.mjs";
|
|
5
5
|
import { a as useActiveLocale, r as useDomainDict } from "./static-dict-adapter-B8kVuZyL.mjs";
|
|
@@ -8,7 +8,7 @@ import { $ as Dialog, An as AlertDialogTitle, Bt as isProtectedDayOfYearToken, C
|
|
|
8
8
|
import { n as ScreenHeaderBreadcrumbs } from "./ScreenHeaderContext-mFd2T-WH.mjs";
|
|
9
9
|
import { t as useStore } from "./use-store-DB3FAMT2.mjs";
|
|
10
10
|
import { n as useAppNavigation } from "./AppNavigationContext-DgelzxV9.mjs";
|
|
11
|
-
import { _ as EllipsesDropdown, a as isThreeDsRequiredCreate, c as AddressFormDialog, d as PaymentIcon, f as getCardDisplayName, g as ConfirmActionDialog, i as mapToFluidPayPaymentMethod, l as EditPaymentMethodDialog, m as getPaymentMethodLogoBrand, n as AddressAutocompleteInput, o as getBrowserInfo, p as getCardExpiry, r as createFluidPayApiAdapter, s as CreditCardFormDialog, t as usePortalCardAdd3DSFlow, u as FluidPayCoreProvider, v as ProfileTranslationBridge, y as useProfileTranslation } from "./use-portal-card-add-3ds-flow-
|
|
11
|
+
import { _ as EllipsesDropdown, a as isThreeDsRequiredCreate, c as AddressFormDialog, d as PaymentIcon, f as getCardDisplayName, g as ConfirmActionDialog, i as mapToFluidPayPaymentMethod, l as EditPaymentMethodDialog, m as getPaymentMethodLogoBrand, n as AddressAutocompleteInput, o as getBrowserInfo, p as getCardExpiry, r as createFluidPayApiAdapter, s as CreditCardFormDialog, t as usePortalCardAdd3DSFlow, u as FluidPayCoreProvider, v as ProfileTranslationBridge, y as useProfileTranslation } from "./use-portal-card-add-3ds-flow-CqONQbma.mjs";
|
|
12
12
|
import { a as paymentDescriptorLabel, i as normalizePaymentDescriptor, s as resolvePaymentMethodDisplay, t as isCardPaymentDescriptor, u as normalizeCardBrand } from "./display-vZrlWWCP.mjs";
|
|
13
13
|
import { createContext, use, useCallback, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
14
14
|
import { useInfiniteQuery, useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
@@ -2539,6 +2539,7 @@ function mapDetailSubscription(bff) {
|
|
|
2539
2539
|
attempts: 0,
|
|
2540
2540
|
last_failed_at: bff.last_failed_at ?? null,
|
|
2541
2541
|
next_retry_at: bff.next_retry_at ?? null,
|
|
2542
|
+
decline_count: bff.decline_count ?? null,
|
|
2542
2543
|
skipped_count: 0,
|
|
2543
2544
|
max_skips: null,
|
|
2544
2545
|
cancelled_at: null,
|
|
@@ -5558,11 +5559,11 @@ const ICONS_BY_COLUMN = [
|
|
|
5558
5559
|
offset: false
|
|
5559
5560
|
}
|
|
5560
5561
|
];
|
|
5561
|
-
function PastDueBanner({ productTitle, nextRetryAt,
|
|
5562
|
+
function PastDueBanner({ productTitle, nextRetryAt, declineCount, onUpdatePaymentClick, onDismiss, className }) {
|
|
5562
5563
|
const { t } = useSubscriptionsTranslation();
|
|
5563
5564
|
const [internalDismissed, setInternalDismissed] = useState(false);
|
|
5564
5565
|
const retryScheduled = nextRetryAt != null;
|
|
5565
|
-
const previousAttemptFailed = retryScheduled &&
|
|
5566
|
+
const previousAttemptFailed = retryScheduled && (declineCount ?? 0) >= 2;
|
|
5566
5567
|
if (!onDismiss && internalDismissed) return null;
|
|
5567
5568
|
const heading = retryScheduled ? productTitle ? t("past_due_banner_heading_retry_scheduled_for_product", { product: productTitle }) : t("past_due_banner_heading_retry_scheduled") : productTitle ? t("past_due_banner_heading_for_product", { product: productTitle }) : t("past_due_banner_heading");
|
|
5568
5569
|
const whenLabel = (() => {
|
|
@@ -6582,7 +6583,7 @@ function SubscriptionDetail({ token, onNotFound, onError, onSuccess, onMutationE
|
|
|
6582
6583
|
children: /* @__PURE__ */ jsx(PastDueBanner, {
|
|
6583
6584
|
productTitle: subscription.variant?.product?.title ?? null,
|
|
6584
6585
|
nextRetryAt: subscription.next_retry_at ?? null,
|
|
6585
|
-
|
|
6586
|
+
declineCount: subscription.decline_count ?? null,
|
|
6586
6587
|
onUpdatePaymentClick: onUpdatePaymentClick ?? (() => {
|
|
6587
6588
|
const el = document.getElementById("subscription-payment-method-section");
|
|
6588
6589
|
if (el) el.scrollIntoView({
|
|
@@ -7659,4 +7660,4 @@ const subscriptionsScreenPropertySchema = {
|
|
|
7659
7660
|
//#endregion
|
|
7660
7661
|
export { subscriptionsScreenPropertySchema as n, SubscriptionsScreen as t };
|
|
7661
7662
|
|
|
7662
|
-
//# sourceMappingURL=SubscriptionsScreen-
|
|
7663
|
+
//# sourceMappingURL=SubscriptionsScreen-VB3AL_LL.mjs.map
|