@fluid-app/portal-sdk 0.1.73 → 0.1.74
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/{ContactsScreen-DspTqMml.mjs → ContactsScreen-CzvfANNV.mjs} +3 -8
- package/dist/{ContactsScreen-DspTqMml.mjs.map → ContactsScreen-CzvfANNV.mjs.map} +1 -1
- package/dist/{ContactsScreen-BbCjj8vV.cjs → ContactsScreen-fNFKA1nn.cjs} +2 -7
- package/dist/ContactsScreen-fNFKA1nn.cjs.map +1 -0
- package/dist/{ContactsScreen-CSWZMv-W.cjs → ContactsScreen-pCkw9htG.cjs} +1 -1
- package/dist/{MessagingScreen-Dam7Z2Rw.mjs → MessagingScreen-BHulaY7A.mjs} +1 -2
- package/dist/{MessagingScreen-Dam7Z2Rw.mjs.map → MessagingScreen-BHulaY7A.mjs.map} +1 -1
- package/dist/{MessagingScreen-T_9j-cSr.mjs → MessagingScreen-Bp5t4STI.mjs} +1 -2
- package/dist/{MessagingScreen-Bc93rUBN.cjs → MessagingScreen-DGttFuoB.cjs} +1 -2
- package/dist/{MessagingScreen-Bc93rUBN.cjs.map → MessagingScreen-DGttFuoB.cjs.map} +1 -1
- package/dist/{MessagingScreen-D7W9By7b.cjs → MessagingScreen-ms1wGWHQ.cjs} +1 -1
- package/dist/{ProductsScreen-BeFw6FoS.mjs → ProductsScreen-CI4XIK-8.mjs} +0 -1
- package/dist/{ProfileScreen--vA-Hnyb.cjs → ProfileScreen-D6ie-eDm.cjs} +44 -57
- package/dist/ProfileScreen-D6ie-eDm.cjs.map +1 -0
- package/dist/{ProfileScreen-brLpQhbW.cjs → ProfileScreen-VBlfOlav.cjs} +1 -1
- package/dist/{ProfileScreen-BrdvqFgQ.mjs → ProfileScreen-Y5zQgZL0.mjs} +46 -59
- package/dist/ProfileScreen-Y5zQgZL0.mjs.map +1 -0
- package/dist/{ShareablesScreen-B5HDyfiT.mjs → ShareablesScreen-htQIO4oW.mjs} +0 -1
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +13 -13
- package/dist/src-77nf0QPD.mjs.map +1 -1
- package/dist/src-DGjAAfmN.cjs.map +1 -1
- package/package.json +14 -14
- package/dist/ContactsScreen-BbCjj8vV.cjs.map +0 -1
- package/dist/ProfileScreen--vA-Hnyb.cjs.map +0 -1
- package/dist/ProfileScreen-BrdvqFgQ.mjs.map +0 -1
|
@@ -33,7 +33,7 @@ require("./SpacerWidget-BDsHZD_8.cjs");
|
|
|
33
33
|
require("./TableWidget-CYhIcl2j.cjs");
|
|
34
34
|
require("./ToDoWidget-eGB9cfou.cjs");
|
|
35
35
|
require("./VideoWidget-C22_tAkf.cjs");
|
|
36
|
-
const require_MessagingScreen = require("./MessagingScreen-
|
|
36
|
+
const require_MessagingScreen = require("./MessagingScreen-DGttFuoB.cjs");
|
|
37
37
|
require("./dist-BbS_7TvS.cjs");
|
|
38
38
|
require("./es-BSkb3AZk.cjs");
|
|
39
39
|
exports.MessagingScreen = require_MessagingScreen.MessagingScreen;
|
|
@@ -34,7 +34,6 @@ import "./ToDoWidget-D52-GT7f.mjs";
|
|
|
34
34
|
import "./VideoWidget-ZMSFyE1Y.mjs";
|
|
35
35
|
import "./use-account-clients-G3DvbvPH.mjs";
|
|
36
36
|
import "./ScreenHeaderContext-NdrJ58Mg.mjs";
|
|
37
|
-
import "./use-fluid-api-YzLdiq5t.mjs";
|
|
38
37
|
import "./use-current-user-DJW-ZwIi.mjs";
|
|
39
38
|
import "./AppNavigationContext-Du3Qq0yc.mjs";
|
|
40
39
|
import "./dist-CMGXkSgZ.mjs";
|
|
@@ -9,7 +9,6 @@ let _tanstack_react_query = require("@tanstack/react-query");
|
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
let zod = require("zod");
|
|
11
11
|
let lucide_react = require("lucide-react");
|
|
12
|
-
let _hookform_resolvers_zod = require("@hookform/resolvers/zod");
|
|
13
12
|
let react_hook_form = require("react-hook-form");
|
|
14
13
|
//#region ../../fluid-pay/api-client/src/namespaces/addresses.ts
|
|
15
14
|
/**
|
|
@@ -720,19 +719,16 @@ function CustomerInfo({ customerAccount, languages, onUpdateCustomer, isUpdating
|
|
|
720
719
|
name: language.name,
|
|
721
720
|
value: language.name
|
|
722
721
|
}));
|
|
723
|
-
const { control, handleSubmit, reset } = (0,
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
language: customerLanguage || "English"
|
|
734
|
-
}
|
|
735
|
-
});
|
|
722
|
+
const { control, handleSubmit, reset } = require_src.useZodForm((0, react.useMemo)(() => createUserInfoSchema({
|
|
723
|
+
firstNameRequired: t("first_name_is_required"),
|
|
724
|
+
lastNameRequired: t("last_name_is_required"),
|
|
725
|
+
languageRequired: t("language_is_required")
|
|
726
|
+
}), [t]), { defaultValues: {
|
|
727
|
+
first_name: customerAccount.customer.first_name || "",
|
|
728
|
+
last_name: derivedLastName,
|
|
729
|
+
phone_number: customerAccount.customer.phone || "",
|
|
730
|
+
language: customerLanguage || "English"
|
|
731
|
+
} });
|
|
736
732
|
const handleOpenEditDialog = () => {
|
|
737
733
|
reset({
|
|
738
734
|
first_name: customerAccount.customer.first_name || "",
|
|
@@ -1216,21 +1212,18 @@ const editPaymentMethodFormSchema = zod.z.object({
|
|
|
1216
1212
|
});
|
|
1217
1213
|
function EditPaymentMethodDialog({ isOpen, paymentMethod, billingAddress, onClose, onSubmit, isSubmitting, error, countries = [] }) {
|
|
1218
1214
|
const { t } = useProfileUI();
|
|
1219
|
-
const { control, handleSubmit, reset, setValue } = (
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
set_as_default: false
|
|
1232
|
-
}
|
|
1233
|
-
});
|
|
1215
|
+
const { control, handleSubmit, reset, setValue } = require_src.useZodForm(editPaymentMethodFormSchema, { defaultValues: {
|
|
1216
|
+
billing_address: {
|
|
1217
|
+
name: "",
|
|
1218
|
+
address1: "",
|
|
1219
|
+
address2: "",
|
|
1220
|
+
city: "",
|
|
1221
|
+
state: "",
|
|
1222
|
+
zip: "",
|
|
1223
|
+
country_code: "US"
|
|
1224
|
+
},
|
|
1225
|
+
set_as_default: false
|
|
1226
|
+
} });
|
|
1234
1227
|
const billingCountry = (0, react_hook_form.useWatch)({
|
|
1235
1228
|
control,
|
|
1236
1229
|
name: "billing_address.country_code"
|
|
@@ -1659,20 +1652,17 @@ const addressFormSchema = zod.z.object({
|
|
|
1659
1652
|
default: zod.z.boolean()
|
|
1660
1653
|
});
|
|
1661
1654
|
function AddressFormDialog({ isOpen, onClose, selectedAddress, onSubmit, isSubmitting, countries = [], error, renderAddressAutocomplete, t }) {
|
|
1662
|
-
const { control, handleSubmit, reset, setValue } = (
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
default: false
|
|
1674
|
-
}
|
|
1675
|
-
});
|
|
1655
|
+
const { control, handleSubmit, reset, setValue } = require_src.useZodForm(addressFormSchema, { defaultValues: {
|
|
1656
|
+
first_name: "",
|
|
1657
|
+
last_name: "",
|
|
1658
|
+
address1: "",
|
|
1659
|
+
address2: "",
|
|
1660
|
+
city: "",
|
|
1661
|
+
state: "",
|
|
1662
|
+
postal_code: "",
|
|
1663
|
+
country_code: "US",
|
|
1664
|
+
default: false
|
|
1665
|
+
} });
|
|
1676
1666
|
const selectedCountryCode = (0, react_hook_form.useWatch)({
|
|
1677
1667
|
control,
|
|
1678
1668
|
name: "country_code"
|
|
@@ -2142,19 +2132,16 @@ function CreditCardFormDialog({ isOpen, onClose, onSubmit, isSubmitting, countri
|
|
|
2142
2132
|
const [cardError, setCardError] = (0, react.useState)(void 0);
|
|
2143
2133
|
const [isVgsSubmitting, setIsVgsSubmitting] = (0, react.useState)(false);
|
|
2144
2134
|
const { isFormReady, isLoading: isVgsLoading, isScriptLoaded, initializeForm, submitCard, vgsFieldState, resetVgs, onSuccessRef, onErrorRef } = useVgsCollect();
|
|
2145
|
-
const { control, handleSubmit, reset, setValue } = (
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
set_as_default: false
|
|
2156
|
-
}
|
|
2157
|
-
});
|
|
2135
|
+
const { control, handleSubmit, reset, setValue } = require_src.useZodForm(billingAddressSchema, { defaultValues: {
|
|
2136
|
+
name: "",
|
|
2137
|
+
address1: "",
|
|
2138
|
+
address2: "",
|
|
2139
|
+
city: "",
|
|
2140
|
+
state: "",
|
|
2141
|
+
zip: "",
|
|
2142
|
+
country_code: "US",
|
|
2143
|
+
set_as_default: false
|
|
2144
|
+
} });
|
|
2158
2145
|
const billingCountry = (0, react_hook_form.useWatch)({
|
|
2159
2146
|
control,
|
|
2160
2147
|
name: "country_code"
|
|
@@ -2777,4 +2764,4 @@ Object.defineProperty(exports, "profileScreenPropertySchema", {
|
|
|
2777
2764
|
}
|
|
2778
2765
|
});
|
|
2779
2766
|
|
|
2780
|
-
//# sourceMappingURL=ProfileScreen
|
|
2767
|
+
//# sourceMappingURL=ProfileScreen-D6ie-eDm.cjs.map
|