@fluid-app/portal-sdk 0.1.512 → 0.1.513
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-DVGoPMxo.mjs → ContactsScreen-9uwS06kQ.mjs} +0 -2
- package/dist/{FluidProvider-BwYSWXvD.mjs → FluidProvider-B0sYplaz.mjs} +12 -2
- package/dist/{FluidProvider-BwYSWXvD.mjs.map → FluidProvider-B0sYplaz.mjs.map} +1 -1
- package/dist/{FluidProvider-jiBsFzwX.cjs → FluidProvider-BwEU7ZnV.cjs} +12 -2
- package/dist/{FluidProvider-jiBsFzwX.cjs.map → FluidProvider-BwEU7ZnV.cjs.map} +1 -1
- package/dist/{MessagingScreen-BoPOajsJ.cjs → MessagingScreen-BfRjSfXY.cjs} +2 -2
- package/dist/{MessagingScreen-DmFW-md3.mjs → MessagingScreen-Bi6N2zQR.mjs} +2 -2
- package/dist/{MessagingScreen-DmFW-md3.mjs.map → MessagingScreen-Bi6N2zQR.mjs.map} +1 -1
- package/dist/{MessagingScreen-CbS-I_AD.cjs → MessagingScreen-R1vrbpKZ.cjs} +2 -2
- package/dist/{MessagingScreen-CbS-I_AD.cjs.map → MessagingScreen-R1vrbpKZ.cjs.map} +1 -1
- package/dist/{MessagingScreen-DXEazJ1u.mjs → MessagingScreen-qtAmsYRW.mjs} +2 -5
- package/dist/{MySiteScreen-BxF5RFtm.mjs → MySiteScreen-CmuWTTHD.mjs} +0 -1
- package/dist/{OrdersScreen-DPmWvnMk.mjs → OrdersScreen-BRppYUSH.mjs} +2 -5
- package/dist/{OrdersScreen-CC66apSh.cjs → OrdersScreen-CneMyPsJ.cjs} +2 -2
- package/dist/{OrdersScreen-sy6AG47r.cjs → OrdersScreen-DdnaH268.cjs} +27 -18
- package/dist/OrdersScreen-DdnaH268.cjs.map +1 -0
- package/dist/{OrdersScreen-DtMYxhYh.mjs → OrdersScreen-SBn5z3R-.mjs} +27 -18
- package/dist/OrdersScreen-SBn5z3R-.mjs.map +1 -0
- package/dist/{ProfileScreen-ZVIawSmq.cjs → ProfileScreen-3kUCKOuO.cjs} +2 -2
- package/dist/{ProfileScreen-ZVIawSmq.cjs.map → ProfileScreen-3kUCKOuO.cjs.map} +1 -1
- package/dist/{ProfileScreen-GdwPz5rK.mjs → ProfileScreen-B4I18Rxq.mjs} +2 -2
- package/dist/{ProfileScreen-GdwPz5rK.mjs.map → ProfileScreen-B4I18Rxq.mjs.map} +1 -1
- package/dist/{ProfileScreen-yIYYpQ2N.cjs → ProfileScreen-BQRKe1mr.cjs} +3 -3
- package/dist/{ProfileScreen-CTYwLHGQ.mjs → ProfileScreen-BT1-JjHU.mjs} +3 -6
- package/dist/{ShareablesScreen-JMjElYlz.mjs → ShareablesScreen-0cse1_-D.mjs} +0 -3
- package/dist/{ShopScreen-80D3hiO0.mjs → ShopScreen-DSSoDy5O.mjs} +0 -2
- package/dist/{SubscriptionsScreen-BgMCPJx0.mjs → SubscriptionsScreen-CzTfE1Kf.mjs} +3 -3
- package/dist/{SubscriptionsScreen-BgMCPJx0.mjs.map → SubscriptionsScreen-CzTfE1Kf.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-j0BROH4n.cjs → SubscriptionsScreen-DOj34EFd.cjs} +3 -3
- package/dist/{SubscriptionsScreen-uWXwxZHg.mjs → SubscriptionsScreen-YmhDE9at.mjs} +3 -6
- package/dist/{SubscriptionsScreen-CZz0wQ9G.cjs → SubscriptionsScreen-ozxuQd4n.cjs} +3 -3
- package/dist/{SubscriptionsScreen-CZz0wQ9G.cjs.map → SubscriptionsScreen-ozxuQd4n.cjs.map} +1 -1
- package/dist/index.cjs +14 -14
- package/dist/index.mjs +22 -22
- package/dist/{use-portal-card-add-3ds-flow-BqZulT6m.mjs → use-portal-card-add-3ds-flow-Cjbu9Jjj.mjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-BqZulT6m.mjs.map → use-portal-card-add-3ds-flow-Cjbu9Jjj.mjs.map} +1 -1
- package/dist/{use-portal-card-add-3ds-flow-DCVXl0ky.cjs → use-portal-card-add-3ds-flow-Dnrut9_J.cjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-DCVXl0ky.cjs.map → use-portal-card-add-3ds-flow-Dnrut9_J.cjs.map} +1 -1
- package/dist/utils/build-remote-widget-plugin-manifests.mjs +0 -3
- package/dist/utils/build-remote-widget-plugin-manifests.mjs.map +1 -1
- package/dist/utils/build-widget-registry.mjs +0 -3
- package/package.json +16 -16
- package/dist/OrdersScreen-DtMYxhYh.mjs.map +0 -1
- package/dist/OrdersScreen-sy6AG47r.cjs.map +0 -1
|
@@ -7,10 +7,8 @@ import "./MobileBottomSheet-BKm3ysnd.mjs";
|
|
|
7
7
|
import "./static-dict-adapter-DUyazFbx.mjs";
|
|
8
8
|
import "./translation-api-context-factory-BTpIuUF0.mjs";
|
|
9
9
|
import "./task-composer-form-DTHeuJ9-.mjs";
|
|
10
|
-
import "./use-account-BmV0SUQV.mjs";
|
|
11
10
|
import "./MobileActionSheet-DBKhO5th.mjs";
|
|
12
11
|
import "./ResponsiveDialog-DOIzvjZV.mjs";
|
|
13
|
-
import "./AppNavigationContext-PCbmG3nH.mjs";
|
|
14
12
|
import "./sidebar-DS8r8yy1.mjs";
|
|
15
13
|
import "./ScreenHeaderContext-DahYFA_m.mjs";
|
|
16
14
|
import "./dist-CWe5yQl-.mjs";
|
|
@@ -5772,6 +5772,14 @@ function requireMoneyField(value, field) {
|
|
|
5772
5772
|
if (value == null) throw new Error(`BFF returned an order without required money field "${field}"`);
|
|
5773
5773
|
return value;
|
|
5774
5774
|
}
|
|
5775
|
+
/**
|
|
5776
|
+
* Reads an optional BFF string field. Unlike the money fields, a status can
|
|
5777
|
+
* legitimately be absent on an older response, so an absent, empty, or
|
|
5778
|
+
* non-string value falls back rather than throwing.
|
|
5779
|
+
*/
|
|
5780
|
+
function readString(value, fallback) {
|
|
5781
|
+
return typeof value === "string" && value ? value : fallback;
|
|
5782
|
+
}
|
|
5775
5783
|
function mapAddress(raw) {
|
|
5776
5784
|
if (!raw) return null;
|
|
5777
5785
|
return {
|
|
@@ -5837,6 +5845,7 @@ function mapToPortalTenantOrder(raw) {
|
|
|
5837
5845
|
order_number: typeof rawOrderNumber === "string" && rawOrderNumber.length > 0 ? rawOrderNumber : null,
|
|
5838
5846
|
status: raw.status ?? "pending",
|
|
5839
5847
|
fulfillment_status: typeof raw.fulfillment_status === "string" ? raw.fulfillment_status : "unfulfilled",
|
|
5848
|
+
financial_status: readString(raw.financial_status, "pending"),
|
|
5840
5849
|
subtotal,
|
|
5841
5850
|
subtotal_in_currency: raw.subtotal_in_currency ?? subtotal,
|
|
5842
5851
|
totals,
|
|
@@ -5905,7 +5914,7 @@ function mapToListOrder(raw) {
|
|
|
5905
5914
|
status: raw.status ?? "pending",
|
|
5906
5915
|
order_status: raw.status ?? "pending",
|
|
5907
5916
|
fulfillment_status: (typeof raw.fulfillment_status === "string" ? raw.fulfillment_status : null) ?? "unfulfilled",
|
|
5908
|
-
financial_status: "pending",
|
|
5917
|
+
financial_status: readString(raw.financial_status, "pending"),
|
|
5909
5918
|
currency_code: raw.currency ?? "",
|
|
5910
5919
|
note: null,
|
|
5911
5920
|
token: raw.token ?? "",
|
|
@@ -7049,6 +7058,7 @@ const ordersDomain = createDomainTranslations({
|
|
|
7049
7058
|
status_pending: "Pending",
|
|
7050
7059
|
status_preparing: "Preparing",
|
|
7051
7060
|
status_processing: "Processing",
|
|
7061
|
+
status_refunded: "Refunded",
|
|
7052
7062
|
status_returned: "Returned",
|
|
7053
7063
|
status_shipped: "Shipped",
|
|
7054
7064
|
group_this_week: "This week",
|
|
@@ -8761,4 +8771,4 @@ function FluidDataSourceRegistryProvider({ baseUrl, getApiHeaders, variables, ch
|
|
|
8761
8771
|
//#endregion
|
|
8762
8772
|
export { useHaptics as _, messagingDomain as a, createSubscriptionsTranslationAdapter as c, ordersDomain as d, shellEn as f, useHapticCallback as g, getFluidNativeBridge as h, createMessagingTranslationAdapter as i, subscriptionsDomain as l, useThemeContext as m, SUPPORTED_LANGUAGES as n, createProfileTranslationAdapter as o, FluidThemeProvider as p, resolveLocale as r, profileDomain as s, FluidProvider as t, createOrdersTranslationAdapter as u, useNativeCapabilities as v, useAddressAutocompleteApiOptional as y };
|
|
8763
8773
|
|
|
8764
|
-
//# sourceMappingURL=FluidProvider-
|
|
8774
|
+
//# sourceMappingURL=FluidProvider-B0sYplaz.mjs.map
|