@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.
Files changed (54) hide show
  1. package/dist/{FluidProvider-Dilwi7_B.cjs → FluidProvider-BU3BXuxS.cjs} +3 -2
  2. package/dist/{FluidProvider-Dilwi7_B.cjs.map → FluidProvider-BU3BXuxS.cjs.map} +1 -1
  3. package/dist/{FluidProvider-BYgxVnWP.mjs → FluidProvider-Di0VmT5J.mjs} +3 -2
  4. package/dist/FluidProvider-Di0VmT5J.mjs.map +1 -0
  5. package/dist/{MessagingScreen-BsSaLUaS.mjs → MessagingScreen-CPxVO0Wk.mjs} +2 -2
  6. package/dist/{MessagingScreen-BsSaLUaS.mjs.map → MessagingScreen-CPxVO0Wk.mjs.map} +1 -1
  7. package/dist/{MessagingScreen-CDGF0XRT.cjs → MessagingScreen-QgJKRkKq.cjs} +2 -2
  8. package/dist/{MessagingScreen-CDGF0XRT.cjs.map → MessagingScreen-QgJKRkKq.cjs.map} +1 -1
  9. package/dist/{MessagingScreen-De4ras4I.mjs → MessagingScreen-RLN9jsoZ.mjs} +2 -2
  10. package/dist/{MessagingScreen-Byxh9Rv2.cjs → MessagingScreen-RhKhwKd5.cjs} +2 -2
  11. package/dist/{OrdersScreen-UNblg7xL.mjs → OrdersScreen--qxFd_oS.mjs} +2 -2
  12. package/dist/{OrdersScreen-UNblg7xL.mjs.map → OrdersScreen--qxFd_oS.mjs.map} +1 -1
  13. package/dist/{OrdersScreen-CDzjtq8a.mjs → OrdersScreen-B2jdzJ6c.mjs} +2 -2
  14. package/dist/{OrdersScreen-BNElIeS8.cjs → OrdersScreen-BoUyiI_f.cjs} +2 -2
  15. package/dist/{OrdersScreen-B2SRmObd.cjs → OrdersScreen-HhMJh5mj.cjs} +2 -2
  16. package/dist/{OrdersScreen-B2SRmObd.cjs.map → OrdersScreen-HhMJh5mj.cjs.map} +1 -1
  17. package/dist/{ProfileScreen-BHR_PVwR.cjs → ProfileScreen-BOI4Oojs.cjs} +3 -3
  18. package/dist/{ProfileScreen-C1ZwbDw7.mjs → ProfileScreen-BcvC6RbJ.mjs} +3 -3
  19. package/dist/{ProfileScreen-C1ZwbDw7.mjs.map → ProfileScreen-BcvC6RbJ.mjs.map} +1 -1
  20. package/dist/{ProfileScreen-D-ge7Asc.mjs → ProfileScreen-DWMzYH7_.mjs} +3 -3
  21. package/dist/{ProfileScreen-BV-Gif3U.cjs → ProfileScreen-DzfU7FTz.cjs} +3 -3
  22. package/dist/{ProfileScreen-BV-Gif3U.cjs.map → ProfileScreen-DzfU7FTz.cjs.map} +1 -1
  23. package/dist/{ShopScreen-CnUt5AC9.mjs → ShopScreen-5DyUGsmE.mjs} +9 -5
  24. package/dist/{ShopScreen-CnUt5AC9.mjs.map → ShopScreen-5DyUGsmE.mjs.map} +1 -1
  25. package/dist/{ShopScreen-D4CZzLFY.cjs → ShopScreen-CHIf28tV.cjs} +2 -2
  26. package/dist/{ShopScreen-vgnh3ekZ.cjs → ShopScreen-CuvC5Bjz.cjs} +9 -5
  27. package/dist/{ShopScreen-vgnh3ekZ.cjs.map → ShopScreen-CuvC5Bjz.cjs.map} +1 -1
  28. package/dist/{ShopScreen-CsskV8fT.mjs → ShopScreen-VHFXtdMF.mjs} +2 -2
  29. package/dist/{SubscriptionsScreen-Da6LvTrV.mjs → SubscriptionsScreen-D39u7QoT.mjs} +3 -3
  30. package/dist/{SubscriptionsScreen-BqZEjgCY.cjs → SubscriptionsScreen-DaY0JYCk.cjs} +3 -3
  31. package/dist/{SubscriptionsScreen-QtXnqurA.cjs → SubscriptionsScreen-Dhacz1VP.cjs} +7 -6
  32. package/dist/SubscriptionsScreen-Dhacz1VP.cjs.map +1 -0
  33. package/dist/{SubscriptionsScreen-CDUVX5vf.mjs → SubscriptionsScreen-VB3AL_LL.mjs} +7 -6
  34. package/dist/SubscriptionsScreen-VB3AL_LL.mjs.map +1 -0
  35. package/dist/index.cjs +18 -18
  36. package/dist/index.d.cts +8 -0
  37. package/dist/index.d.cts.map +1 -1
  38. package/dist/index.d.mts +8 -0
  39. package/dist/index.d.mts.map +1 -1
  40. package/dist/index.mjs +18 -18
  41. package/dist/preview/preview-entry.cjs +2 -2
  42. package/dist/preview/preview-entry.mjs +2 -2
  43. package/dist/{use-portal-card-add-3ds-flow-C8KTwgSS.cjs → use-portal-card-add-3ds-flow-CC7ljhOr.cjs} +2 -2
  44. package/dist/{use-portal-card-add-3ds-flow-C8KTwgSS.cjs.map → use-portal-card-add-3ds-flow-CC7ljhOr.cjs.map} +1 -1
  45. package/dist/{use-portal-card-add-3ds-flow-rmkIPp9W.mjs → use-portal-card-add-3ds-flow-CqONQbma.mjs} +2 -2
  46. package/dist/{use-portal-card-add-3ds-flow-rmkIPp9W.mjs.map → use-portal-card-add-3ds-flow-CqONQbma.mjs.map} +1 -1
  47. package/dist/{widget-package-utils-D7IQG1pk.mjs → widget-package-utils-DeSnoZC3.mjs} +2 -2
  48. package/dist/{widget-package-utils-D7IQG1pk.mjs.map → widget-package-utils-DeSnoZC3.mjs.map} +1 -1
  49. package/dist/{widget-package-utils-DK0UvJ3E.cjs → widget-package-utils-_bSc7zYe.cjs} +2 -2
  50. package/dist/{widget-package-utils-DK0UvJ3E.cjs.map → widget-package-utils-_bSc7zYe.cjs.map} +1 -1
  51. package/package.json +12 -12
  52. package/dist/FluidProvider-BYgxVnWP.mjs.map +0 -1
  53. package/dist/SubscriptionsScreen-CDUVX5vf.mjs.map +0 -1
  54. 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-BYgxVnWP.mjs";
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-rmkIPp9W.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-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, lastFailedAt, onUpdatePaymentClick, onDismiss, className }) {
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 && lastFailedAt != null;
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
- lastFailedAt: subscription.last_failed_at ?? null,
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-CDUVX5vf.mjs.map
7663
+ //# sourceMappingURL=SubscriptionsScreen-VB3AL_LL.mjs.map