@fluid-app/portal-sdk 0.1.355 → 0.1.357
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-D2adhH5o.mjs → AddressAutocompleteInput-DmrGdv0d.mjs} +9 -23
- package/dist/AddressAutocompleteInput-DmrGdv0d.mjs.map +1 -0
- package/dist/{AddressAutocompleteInput-CzJrpCLu.cjs → AddressAutocompleteInput-M2F-m-Nh.cjs} +9 -23
- package/dist/AddressAutocompleteInput-M2F-m-Nh.cjs.map +1 -0
- package/dist/{FluidProvider-4gmkqnRY.mjs → FluidProvider-BGn3iZIK.mjs} +1 -3
- package/dist/{FluidProvider-4gmkqnRY.mjs.map → FluidProvider-BGn3iZIK.mjs.map} +1 -1
- package/dist/{FluidProvider-C3hiUfMl.cjs → FluidProvider-BYP7L-lk.cjs} +1 -3
- package/dist/{FluidProvider-C3hiUfMl.cjs.map → FluidProvider-BYP7L-lk.cjs.map} +1 -1
- package/dist/{MessagingScreen-C1gQKJMl.mjs → MessagingScreen-B-HQlj-7.mjs} +2 -2
- package/dist/{MessagingScreen-Bd7EcXG9.mjs → MessagingScreen-BvtYIaz1.mjs} +2 -2
- package/dist/{MessagingScreen-Bd7EcXG9.mjs.map → MessagingScreen-BvtYIaz1.mjs.map} +1 -1
- package/dist/{MessagingScreen-BTxXlcvu.cjs → MessagingScreen-CVMKVllz.cjs} +2 -2
- package/dist/{MessagingScreen-CY501qWL.cjs → MessagingScreen-DyckzPKi.cjs} +2 -2
- package/dist/{MessagingScreen-CY501qWL.cjs.map → MessagingScreen-DyckzPKi.cjs.map} +1 -1
- package/dist/{OrdersScreen-Dovc4_iw.cjs → OrdersScreen-90pl5JDi.cjs} +2 -2
- package/dist/{OrdersScreen-Dovc4_iw.cjs.map → OrdersScreen-90pl5JDi.cjs.map} +1 -1
- package/dist/{OrdersScreen-Cj-F__x-.cjs → OrdersScreen-B9MdErRH.cjs} +2 -2
- package/dist/{OrdersScreen-BkGK5lOJ.mjs → OrdersScreen-Cv-FDSUM.mjs} +2 -2
- package/dist/{OrdersScreen-BkGK5lOJ.mjs.map → OrdersScreen-Cv-FDSUM.mjs.map} +1 -1
- package/dist/{OrdersScreen-CG1BFasK.mjs → OrdersScreen-DVdSKNXt.mjs} +2 -2
- package/dist/{ProfileScreen-DFqTm_ZT.cjs → ProfileScreen-BSN9JbnZ.cjs} +3 -3
- package/dist/{ProfileScreen-DSg5y83b.cjs → ProfileScreen-DmjL6T2t.cjs} +5 -9
- package/dist/ProfileScreen-DmjL6T2t.cjs.map +1 -0
- package/dist/{ProfileScreen-DBWWLZ3X.mjs → ProfileScreen-dmneGRbC.mjs} +5 -9
- package/dist/ProfileScreen-dmneGRbC.mjs.map +1 -0
- package/dist/{ProfileScreen-DJgqXTXy.mjs → ProfileScreen-hadK4_ku.mjs} +3 -3
- package/dist/{ShopScreen-BysfBfa-.mjs → ShopScreen--lr0_Etl.mjs} +2 -2
- package/dist/{ShopScreen-BysfBfa-.mjs.map → ShopScreen--lr0_Etl.mjs.map} +1 -1
- package/dist/{ShopScreen-wh35dnaz.cjs → ShopScreen-Cvt6SX-5.cjs} +2 -2
- package/dist/{ShopScreen-BCjAIhLU.cjs → ShopScreen-DFnN5NbE.cjs} +2 -2
- package/dist/{ShopScreen-BCjAIhLU.cjs.map → ShopScreen-DFnN5NbE.cjs.map} +1 -1
- package/dist/{ShopScreen-PB6cJLZy.mjs → ShopScreen-DL6UTc0q.mjs} +2 -2
- package/dist/{SubscriptionsScreen-D6Gfym3x.cjs → SubscriptionsScreen-CRRnyUHm.cjs} +3 -3
- package/dist/{SubscriptionsScreen-CpdWn8xZ.cjs → SubscriptionsScreen-DRKv5sy7.cjs} +7 -18
- package/dist/SubscriptionsScreen-DRKv5sy7.cjs.map +1 -0
- package/dist/{SubscriptionsScreen-CUJ2iJr-.mjs → SubscriptionsScreen-DpU1lqP5.mjs} +7 -18
- package/dist/SubscriptionsScreen-DpU1lqP5.mjs.map +1 -0
- package/dist/{SubscriptionsScreen-z9aC7CBp.mjs → SubscriptionsScreen-DulSZ0V7.mjs} +3 -3
- package/dist/index.cjs +17 -17
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +17 -17
- package/package.json +9 -9
- package/dist/AddressAutocompleteInput-CzJrpCLu.cjs.map +0 -1
- package/dist/AddressAutocompleteInput-D2adhH5o.mjs.map +0 -1
- package/dist/ProfileScreen-DBWWLZ3X.mjs.map +0 -1
- package/dist/ProfileScreen-DSg5y83b.cjs.map +0 -1
- package/dist/SubscriptionsScreen-CUJ2iJr-.mjs.map +0 -1
- package/dist/SubscriptionsScreen-CpdWn8xZ.cjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { at as subscriptions_reactivate, ct as subscriptions_show, et as subscription_bundles_create, it as subscriptions_pause, lt as subscriptions_skip, nt as subscriptions_cancel, ot as subscriptions_resume, rt as subscriptions_list, st as subscriptions_retry, tt as subscription_bundles_list, ut as subscriptions_update } from "./portal_tenant_content-XFmQhJPT.mjs";
|
|
2
|
-
import { H as usePayApi, R as isApiError, n as useFluidContext } from "./FluidProvider-
|
|
2
|
+
import { H as usePayApi, R as isApiError, n as useFluidContext } from "./FluidProvider-BGn3iZIK.mjs";
|
|
3
3
|
import { i as useCountriesApi } from "./ContactsTranslationBridge-nXi8boqu.mjs";
|
|
4
4
|
import { n as usePortalTenantClient } from "./PortalTenantClientProvider-RJI-iE2U.mjs";
|
|
5
5
|
import { a as useActiveLocale, n as createDomainTranslations, r as useDomainDict, t as createStaticDictAdapter } from "./static-dict-adapter-DpHMB055.mjs";
|
|
@@ -10,7 +10,7 @@ import { n as payKeys, r as storeKeys } from "./query-keys-xJy_fapN.mjs";
|
|
|
10
10
|
import { t as useStore } from "./use-store-CfKYYLnj.mjs";
|
|
11
11
|
import { t as useAccount } from "./use-account-DEj6E1PK.mjs";
|
|
12
12
|
import { n as useAppNavigation } from "./AppNavigationContext-lkEJQu3Y.mjs";
|
|
13
|
-
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-
|
|
13
|
+
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-DmrGdv0d.mjs";
|
|
14
14
|
import { createContext, use, useCallback, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
15
15
|
import { useInfiniteQuery, useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
16
16
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -4529,8 +4529,6 @@ const ADDRESS_DIALOG_LABELS = {
|
|
|
4529
4529
|
select_an_option: "Select an option",
|
|
4530
4530
|
set_as_default_address: "Set as default address",
|
|
4531
4531
|
save_address: "Save Address",
|
|
4532
|
-
first_name: "First Name",
|
|
4533
|
-
last_name: "Last Name",
|
|
4534
4532
|
deleting: "Deleting…",
|
|
4535
4533
|
tap_to_confirm: "Tap to confirm",
|
|
4536
4534
|
add_credit_card: "Add Credit Card",
|
|
@@ -4560,10 +4558,6 @@ function mapToFluidPayAddress$2(raw) {
|
|
|
4560
4558
|
subdivision_code: null
|
|
4561
4559
|
};
|
|
4562
4560
|
}
|
|
4563
|
-
function composeAddressName$1(firstName, lastName) {
|
|
4564
|
-
const combined = `${firstName} ${lastName}`.trim();
|
|
4565
|
-
return combined.length > 0 ? combined : null;
|
|
4566
|
-
}
|
|
4567
4561
|
function SubscriptionsListScreenInner({ customerId, isLoadingCustomer, onToast }) {
|
|
4568
4562
|
const { navigate } = useAppNavigation();
|
|
4569
4563
|
const queryClient = useQueryClient();
|
|
@@ -4626,7 +4620,7 @@ function SubscriptionsListScreenInner({ customerId, isLoadingCustomer, onToast }
|
|
|
4626
4620
|
mutationFn: async (body) => {
|
|
4627
4621
|
const existingIds = new Set(addresses.map((a) => a.id));
|
|
4628
4622
|
const address = await payApi.createAddress({ address: {
|
|
4629
|
-
name:
|
|
4623
|
+
name: body.address.name,
|
|
4630
4624
|
street1: body.address.address1,
|
|
4631
4625
|
street2: body.address.address2,
|
|
4632
4626
|
city: body.address.city,
|
|
@@ -6751,9 +6745,8 @@ function PortalSubscriptionPaymentMethodSectionInner({ paymentMethod: currentPay
|
|
|
6751
6745
|
});
|
|
6752
6746
|
const createAddressMutation = useMutation({
|
|
6753
6747
|
mutationFn: (body) => {
|
|
6754
|
-
const combinedName = `${body.address.first_name} ${body.address.last_name}`.trim();
|
|
6755
6748
|
return payApi.createAddress({ address: {
|
|
6756
|
-
name:
|
|
6749
|
+
name: body.address.name,
|
|
6757
6750
|
street1: body.address.address1,
|
|
6758
6751
|
street2: body.address.address2,
|
|
6759
6752
|
city: body.address.city,
|
|
@@ -7051,10 +7044,6 @@ function SelectableAddressDropdown({ title, displayAddress, addressList, selecte
|
|
|
7051
7044
|
}
|
|
7052
7045
|
//#endregion
|
|
7053
7046
|
//#region src/subscriptions/PortalSubscriptionShippingAddressSection.tsx
|
|
7054
|
-
function composeAddressName(firstName, lastName) {
|
|
7055
|
-
const combined = `${firstName} ${lastName}`.trim();
|
|
7056
|
-
return combined.length > 0 ? combined : null;
|
|
7057
|
-
}
|
|
7058
7047
|
function mapToFluidPayAddress(raw) {
|
|
7059
7048
|
return {
|
|
7060
7049
|
id: raw.id,
|
|
@@ -7136,7 +7125,7 @@ function PortalSubscriptionShippingAddressSectionInner({ address: currentAddress
|
|
|
7136
7125
|
mutationFn: async (body) => {
|
|
7137
7126
|
const existingIds = new Set(addresses.map((a) => a.id));
|
|
7138
7127
|
const address = await payApi.createAddress({ address: {
|
|
7139
|
-
name:
|
|
7128
|
+
name: body.address.name,
|
|
7140
7129
|
street1: body.address.address1,
|
|
7141
7130
|
street2: body.address.address2,
|
|
7142
7131
|
city: body.address.city,
|
|
@@ -7159,7 +7148,7 @@ function PortalSubscriptionShippingAddressSectionInner({ address: currentAddress
|
|
|
7159
7148
|
});
|
|
7160
7149
|
const updateAddressMutation = useMutation({
|
|
7161
7150
|
mutationFn: ({ addressId, body }) => payApi.updateAddress(addressId, { address: {
|
|
7162
|
-
name:
|
|
7151
|
+
name: body.address.name,
|
|
7163
7152
|
street1: body.address.address1,
|
|
7164
7153
|
street2: body.address.address2,
|
|
7165
7154
|
city: body.address.city,
|
|
@@ -7381,4 +7370,4 @@ const subscriptionsScreenPropertySchema = {
|
|
|
7381
7370
|
//#endregion
|
|
7382
7371
|
export { subscriptionsScreenPropertySchema as n, SubscriptionsScreen as t };
|
|
7383
7372
|
|
|
7384
|
-
//# sourceMappingURL=SubscriptionsScreen-
|
|
7373
|
+
//# sourceMappingURL=SubscriptionsScreen-DpU1lqP5.mjs.map
|