@fluid-app/portal-sdk 0.1.474 → 0.1.476
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/authoring/widget-api/sdk/src/widgets/worker.md +3313 -194
- package/dist/{FluidProvider-Enp1OrWr.cjs → FluidProvider-23ch3eP8.cjs} +2 -2
- package/dist/{FluidProvider-Enp1OrWr.cjs.map → FluidProvider-23ch3eP8.cjs.map} +1 -1
- package/dist/{FluidProvider-BNHU_neW.mjs → FluidProvider-DMeeVh2c.mjs} +2 -2
- package/dist/{FluidProvider-BNHU_neW.mjs.map → FluidProvider-DMeeVh2c.mjs.map} +1 -1
- package/dist/{MessagingScreen-AVfoyaxf.cjs → MessagingScreen-Ci-LJaR2.cjs} +3 -3
- package/dist/{MessagingScreen-BQmYbMd-.mjs → MessagingScreen-D3AD01zt.mjs} +3 -3
- package/dist/{MessagingScreen-4WZGUGsB.mjs → MessagingScreen-Dp4SiUQS.mjs} +2 -2
- package/dist/{MessagingScreen-4WZGUGsB.mjs.map → MessagingScreen-Dp4SiUQS.mjs.map} +1 -1
- package/dist/{MessagingScreen-DOjbhTOB.cjs → MessagingScreen-NuVpv-nc.cjs} +2 -2
- package/dist/{MessagingScreen-DOjbhTOB.cjs.map → MessagingScreen-NuVpv-nc.cjs.map} +1 -1
- package/dist/{OrdersScreen-5VmHwt9p.cjs → OrdersScreen-BHwi-PHP.cjs} +2 -2
- package/dist/{OrdersScreen-5VmHwt9p.cjs.map → OrdersScreen-BHwi-PHP.cjs.map} +1 -1
- package/dist/{OrdersScreen-CgJs_YwT.mjs → OrdersScreen-C2B9Eqgv.mjs} +3 -3
- package/dist/{OrdersScreen-DKH7gRMR.mjs → OrdersScreen-DrevIASH.mjs} +2 -2
- package/dist/{OrdersScreen-DKH7gRMR.mjs.map → OrdersScreen-DrevIASH.mjs.map} +1 -1
- package/dist/{OrdersScreen-Bu1Xu3rN.cjs → OrdersScreen-ppjcbl-E.cjs} +3 -3
- package/dist/{ProfileScreen-DLuirgGc.cjs → ProfileScreen-Ah2vLws3.cjs} +3 -3
- package/dist/{ProfileScreen-DLuirgGc.cjs.map → ProfileScreen-Ah2vLws3.cjs.map} +1 -1
- package/dist/{ProfileScreen-DBwYxpTt.cjs → ProfileScreen-CjYx113f.cjs} +4 -4
- package/dist/{ProfileScreen-cWvrOUKa.mjs → ProfileScreen-D3lE-N-0.mjs} +4 -4
- package/dist/{ProfileScreen-BpgrJkH0.mjs → ProfileScreen-DKddD3kl.mjs} +3 -3
- package/dist/{ProfileScreen-BpgrJkH0.mjs.map → ProfileScreen-DKddD3kl.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-_CMNc90t.mjs → SubscriptionsScreen-Bh0zZWrr.mjs} +4 -4
- package/dist/{SubscriptionsScreen-_CMNc90t.mjs.map → SubscriptionsScreen-Bh0zZWrr.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-DExbk_Rt.cjs → SubscriptionsScreen-BmRkFwfy.cjs} +4 -4
- package/dist/{SubscriptionsScreen-D4lpU-bC.cjs → SubscriptionsScreen-D5tKJWci.cjs} +4 -4
- package/dist/{SubscriptionsScreen-D4lpU-bC.cjs.map → SubscriptionsScreen-D5tKJWci.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-0S2YmOKZ.mjs → SubscriptionsScreen-DkXohPSw.mjs} +4 -4
- package/dist/{build-remote-widget-plugin-manifests-BS2FjZRV.d.cts → build-remote-widget-plugin-manifests-DUfcmkSD.d.cts} +3 -3
- package/dist/{build-remote-widget-plugin-manifests-BS2FjZRV.d.cts.map → build-remote-widget-plugin-manifests-DUfcmkSD.d.cts.map} +1 -1
- package/dist/{build-remote-widget-plugin-manifests-DxlaOngq.d.mts → build-remote-widget-plugin-manifests-ejOCHU1U.d.mts} +3 -3
- package/dist/{build-remote-widget-plugin-manifests-DxlaOngq.d.mts.map → build-remote-widget-plugin-manifests-ejOCHU1U.d.mts.map} +1 -1
- package/dist/{build-widget-registry-BvaGCB_P.mjs → build-widget-registry---S4DdG-.mjs} +2 -2
- package/dist/{build-widget-registry-BvaGCB_P.mjs.map → build-widget-registry---S4DdG-.mjs.map} +1 -1
- package/dist/{build-widget-registry-BuzSME2l.d.mts → build-widget-registry-B4uXvJe_.d.mts} +2 -2
- package/dist/{build-widget-registry-BuzSME2l.d.mts.map → build-widget-registry-B4uXvJe_.d.mts.map} +1 -1
- package/dist/{build-widget-registry-Dsp9P8gq.d.cts → build-widget-registry-C_uBIhbU.d.cts} +2 -2
- package/dist/{build-widget-registry-Dsp9P8gq.d.cts.map → build-widget-registry-C_uBIhbU.d.cts.map} +1 -1
- package/dist/{build-widget-registry-B2K6eJ2o.cjs → build-widget-registry-D28CSx4b.cjs} +2 -2
- package/dist/{build-widget-registry-B2K6eJ2o.cjs.map → build-widget-registry-D28CSx4b.cjs.map} +1 -1
- package/dist/fluid-spacer-widget-Cgsgu8lP.mjs +1265 -0
- package/dist/fluid-spacer-widget-Cgsgu8lP.mjs.map +1 -0
- package/dist/fluid-spacer-widget-ajsnkeUW.cjs +1805 -0
- package/dist/fluid-spacer-widget-ajsnkeUW.cjs.map +1 -0
- package/dist/index.cjs +16 -16
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +16 -16
- package/dist/{portal-function-DYWFgeRx.d.cts → portal-function-DUOB0Ykd.d.cts} +52 -1
- package/dist/{portal-function-DYWFgeRx.d.cts.map → portal-function-DUOB0Ykd.d.cts.map} +1 -1
- package/dist/{portal-function-MTknwZfL.d.mts → portal-function-hOpcnB0R.d.mts} +52 -1
- package/dist/{portal-function-MTknwZfL.d.mts.map → portal-function-hOpcnB0R.d.mts.map} +1 -1
- package/dist/{use-portal-card-add-3ds-flow-BlrgGoIL.cjs → use-portal-card-add-3ds-flow-DDvnJaAd.cjs} +24 -9
- package/dist/use-portal-card-add-3ds-flow-DDvnJaAd.cjs.map +1 -0
- package/dist/{use-portal-card-add-3ds-flow-BBIXp3G5.mjs → use-portal-card-add-3ds-flow-paHQE9yW.mjs} +24 -9
- package/dist/use-portal-card-add-3ds-flow-paHQE9yW.mjs.map +1 -0
- package/dist/utils/build-remote-widget-plugin-manifests.cjs +1 -1
- package/dist/utils/build-remote-widget-plugin-manifests.d.cts +1 -1
- package/dist/utils/build-remote-widget-plugin-manifests.d.mts +1 -1
- package/dist/utils/build-remote-widget-plugin-manifests.mjs +1 -1
- package/dist/utils/build-widget-registry.cjs +1 -1
- package/dist/utils/build-widget-registry.d.cts +1 -1
- package/dist/utils/build-widget-registry.d.mts +1 -1
- package/dist/utils/build-widget-registry.mjs +1 -1
- package/dist/widgets/worker.cjs +72 -1
- package/dist/widgets/worker.cjs.map +1 -1
- package/dist/widgets/worker.d.cts +1193 -329
- package/dist/widgets/worker.d.cts.map +1 -1
- package/dist/widgets/worker.d.mts +1193 -329
- package/dist/widgets/worker.d.mts.map +1 -1
- package/dist/widgets/worker.mjs +72 -1
- package/dist/widgets/worker.mjs.map +1 -1
- package/package.json +11 -11
- package/dist/fluid-spacer-widget-C33ayl7j.mjs +0 -547
- package/dist/fluid-spacer-widget-C33ayl7j.mjs.map +0 -1
- package/dist/fluid-spacer-widget-DoUSdfS_.cjs +0 -1087
- package/dist/fluid-spacer-widget-DoUSdfS_.cjs.map +0 -1
- package/dist/use-portal-card-add-3ds-flow-BBIXp3G5.mjs.map +0 -1
- package/dist/use-portal-card-add-3ds-flow-BlrgGoIL.cjs.map +0 -1
package/dist/{use-portal-card-add-3ds-flow-BBIXp3G5.mjs → use-portal-card-add-3ds-flow-paHQE9yW.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as __toESM, r as __commonJSMin } from "./translation-adapter-DZSZxcjS.mjs";
|
|
2
|
-
import { $ as useAddressFieldsApiOptional } from "./build-widget-registry
|
|
3
|
-
import { a as createProfileTranslationAdapter, o as profileDomain, v as useAddressAutocompleteApiOptional } from "./FluidProvider-
|
|
2
|
+
import { $ as useAddressFieldsApiOptional } from "./build-widget-registry---S4DdG-.mjs";
|
|
3
|
+
import { a as createProfileTranslationAdapter, o as profileDomain, v as useAddressAutocompleteApiOptional } from "./FluidProvider-DMeeVh2c.mjs";
|
|
4
4
|
import { t as MobileBottomSheet } from "./MobileBottomSheet-CNgqNScw.mjs";
|
|
5
5
|
import { a as useActiveLocale, r as useDomainDict } from "./static-dict-adapter-DUyazFbx.mjs";
|
|
6
6
|
import { t as createTranslationContext } from "./translation-api-context-factory-BTpIuUF0.mjs";
|
|
@@ -701,6 +701,11 @@ function AddressAutocompleteInput({ control, setValue, countryIso, addressLineFi
|
|
|
701
701
|
]
|
|
702
702
|
});
|
|
703
703
|
}
|
|
704
|
+
//#endregion
|
|
705
|
+
//#region ../../platform/address-fields/src/country-config.ts
|
|
706
|
+
function isFieldRequired$1(addressFields, fieldName) {
|
|
707
|
+
return addressFields.find((f) => f.field === fieldName)?.required ?? false;
|
|
708
|
+
}
|
|
704
709
|
createContext(null);
|
|
705
710
|
//#endregion
|
|
706
711
|
//#region ../../fluid-pay/core/src/context.ts
|
|
@@ -1095,16 +1100,20 @@ function EditPaymentMethodDialog({ isOpen, paymentMethod, billingAddress, onClos
|
|
|
1095
1100
|
const stateLabel = config?.regionLabel ? t(config.regionLabel) : t("state");
|
|
1096
1101
|
const stateDecision = useMemo(() => {
|
|
1097
1102
|
const answered = countryFields?.country === billingCountry;
|
|
1098
|
-
|
|
1103
|
+
const fields = answered ? countryFields?.fields : null;
|
|
1104
|
+
if (fields) return {
|
|
1099
1105
|
ready: true,
|
|
1100
|
-
|
|
1106
|
+
used: fields.some((field) => field.field === "state") || stateSelectOptions.length > 0,
|
|
1107
|
+
required: isFieldRequired$1(fields, "state")
|
|
1101
1108
|
};
|
|
1102
1109
|
if (addressFieldsApi && !answered) return {
|
|
1103
1110
|
ready: false,
|
|
1111
|
+
used: true,
|
|
1104
1112
|
required: false
|
|
1105
1113
|
};
|
|
1106
1114
|
return {
|
|
1107
1115
|
ready: stateOptionsReady,
|
|
1116
|
+
used: true,
|
|
1108
1117
|
required: stateSelectOptions.length > 0
|
|
1109
1118
|
};
|
|
1110
1119
|
}, [
|
|
@@ -1124,7 +1133,13 @@ function EditPaymentMethodDialog({ isOpen, paymentMethod, billingAddress, onClos
|
|
|
1124
1133
|
});
|
|
1125
1134
|
return;
|
|
1126
1135
|
}
|
|
1127
|
-
onSubmit(data
|
|
1136
|
+
onSubmit(stateDecision.used ? data : {
|
|
1137
|
+
...data,
|
|
1138
|
+
billing_address: {
|
|
1139
|
+
...data.billing_address,
|
|
1140
|
+
state: ""
|
|
1141
|
+
}
|
|
1142
|
+
});
|
|
1128
1143
|
});
|
|
1129
1144
|
const deleteButtonLabel = useMemo(() => {
|
|
1130
1145
|
if (isDeleting) return t("deleting");
|
|
@@ -1217,14 +1232,14 @@ function EditPaymentMethodDialog({ isOpen, paymentMethod, billingAddress, onClos
|
|
|
1217
1232
|
label: t("address_line_2")
|
|
1218
1233
|
}),
|
|
1219
1234
|
/* @__PURE__ */ jsxs("div", {
|
|
1220
|
-
className: "grid grid-cols-1 gap-3 sm:grid-cols-3",
|
|
1235
|
+
className: cn("grid grid-cols-1 gap-3", stateDecision.used ? "sm:grid-cols-3" : "sm:grid-cols-2"),
|
|
1221
1236
|
children: [
|
|
1222
1237
|
/* @__PURE__ */ jsx(FormTextField$1, {
|
|
1223
1238
|
control,
|
|
1224
1239
|
name: "billing_address.city",
|
|
1225
1240
|
label: t("city")
|
|
1226
1241
|
}),
|
|
1227
|
-
stateSelectOptions.length > 0 ? /* @__PURE__ */ jsx(FormSelectField, {
|
|
1242
|
+
stateDecision.used && (stateSelectOptions.length > 0 ? /* @__PURE__ */ jsx(FormSelectField, {
|
|
1228
1243
|
control,
|
|
1229
1244
|
name: "billing_address.state",
|
|
1230
1245
|
label: stateLabel,
|
|
@@ -1234,7 +1249,7 @@ function EditPaymentMethodDialog({ isOpen, paymentMethod, billingAddress, onClos
|
|
|
1234
1249
|
control,
|
|
1235
1250
|
name: "billing_address.state",
|
|
1236
1251
|
label: stateLabel
|
|
1237
|
-
}),
|
|
1252
|
+
})),
|
|
1238
1253
|
/* @__PURE__ */ jsx(FormTextField$1, {
|
|
1239
1254
|
control,
|
|
1240
1255
|
name: "billing_address.zip",
|
|
@@ -22541,4 +22556,4 @@ function usePortalCardAdd3DSFlow({ payApi, onApproved, onFailed, onCanceled, t }
|
|
|
22541
22556
|
//#endregion
|
|
22542
22557
|
export { ProfileTranslationBridge as _, getBrowserInfo as a, EditPaymentMethodDialog as c, getCardDisplayName as d, getCardExpiry as f, EllipsesDropdown as g, ConfirmActionDialog as h, isThreeDsRequiredCreate as i, FluidPayCoreProvider as l, UserInfoDialog as m, createFluidPayApiAdapter as n, CreditCardFormDialog as o, getPaymentMethodLogoBrand as p, mapToFluidPayPaymentMethod as r, AddressFormDialog as s, usePortalCardAdd3DSFlow as t, PaymentIcon as u, useProfileTranslation as v };
|
|
22543
22558
|
|
|
22544
|
-
//# sourceMappingURL=use-portal-card-add-3ds-flow-
|
|
22559
|
+
//# sourceMappingURL=use-portal-card-add-3ds-flow-paHQE9yW.mjs.map
|