@fluid-app/portal-sdk 0.1.87 → 0.1.89
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/{AppDownloadScreen-xQF5B-_c.cjs → AppDownloadScreen--gGSPUDm.cjs} +2 -2
- package/dist/{AppDownloadScreen-xQF5B-_c.cjs.map → AppDownloadScreen--gGSPUDm.cjs.map} +1 -1
- package/dist/{AppDownloadScreen-CTi1-S_q.mjs → AppDownloadScreen-Bt--8jSo.mjs} +2 -2
- package/dist/{AppDownloadScreen-CTi1-S_q.mjs.map → AppDownloadScreen-Bt--8jSo.mjs.map} +1 -1
- package/dist/{AppDownloadScreen-CLBW-1oX.cjs → AppDownloadScreen-CDMvuvsQ.cjs} +4 -4
- package/dist/{ContactsScreen-CrveIKvx.mjs → ContactsScreen-21VYWIsO.mjs} +2 -2
- package/dist/{ContactsScreen-CrveIKvx.mjs.map → ContactsScreen-21VYWIsO.mjs.map} +1 -1
- package/dist/{ContactsScreen-BalYRKzH.cjs → ContactsScreen-BZOjocjS.cjs} +4 -4
- package/dist/{ContactsScreen-BRQdW8Fm.cjs → ContactsScreen-DH3K85c6.cjs} +2 -2
- package/dist/{ContactsScreen-BRQdW8Fm.cjs.map → ContactsScreen-DH3K85c6.cjs.map} +1 -1
- package/dist/{FluidProvider-NE-CrEas.mjs → FluidProvider-CRiIzR8g.mjs} +5 -5
- package/dist/{FluidProvider-NE-CrEas.mjs.map → FluidProvider-CRiIzR8g.mjs.map} +1 -1
- package/dist/{FluidProvider-4QIgluqy.cjs → FluidProvider-Cwh9D2D_.cjs} +5 -5
- package/dist/{FluidProvider-4QIgluqy.cjs.map → FluidProvider-Cwh9D2D_.cjs.map} +1 -1
- package/dist/{ListWidget-CSG4bzuN.cjs → ListWidget-BTSayXgu.cjs} +1 -1
- package/dist/{ListWidget-AVskBIjc.mjs → ListWidget-DFJpOO3R.mjs} +6 -6
- package/dist/ListWidget-DFJpOO3R.mjs.map +1 -0
- package/dist/{ListWidget-C6stWkv7.cjs → ListWidget-Da-1KGwc.cjs} +6 -6
- package/dist/ListWidget-Da-1KGwc.cjs.map +1 -0
- package/dist/{MessagingScreen-CqBNBIJF.mjs → MessagingScreen-68mp7aIc.mjs} +3 -3
- package/dist/{MessagingScreen-CqBNBIJF.mjs.map → MessagingScreen-68mp7aIc.mjs.map} +1 -1
- package/dist/{MessagingScreen-D8sthnzd.cjs → MessagingScreen-BIFFfpwv.cjs} +4 -4
- package/dist/{MessagingScreen-MjvYXOJQ.cjs → MessagingScreen-Cljq2xIQ.cjs} +3 -3
- package/dist/{MessagingScreen-MjvYXOJQ.cjs.map → MessagingScreen-Cljq2xIQ.cjs.map} +1 -1
- package/dist/{MessagingScreen-DLZb3_4I.mjs → MessagingScreen-DbXef2ee.mjs} +4 -4
- package/dist/{MySiteScreen-vYuDMCLE.cjs → MySiteScreen-C4Ut8wxE.cjs} +2 -2
- package/dist/{MySiteScreen-vYuDMCLE.cjs.map → MySiteScreen-C4Ut8wxE.cjs.map} +1 -1
- package/dist/{MySiteScreen-DJtPyUjN.cjs → MySiteScreen-D5yvFmK3.cjs} +4 -4
- package/dist/{MySiteScreen-DRCMT1kD.mjs → MySiteScreen-YujACNSf.mjs} +2 -2
- package/dist/{MySiteScreen-DRCMT1kD.mjs.map → MySiteScreen-YujACNSf.mjs.map} +1 -1
- package/dist/{NestedWidget-CG4GIVK0.cjs → NestedWidget-BGY4LSQq.cjs} +45 -60
- package/dist/NestedWidget-BGY4LSQq.cjs.map +1 -0
- package/dist/{NestedWidget-BiWgXhdq.mjs → NestedWidget-L8ppxJib.mjs} +46 -61
- package/dist/NestedWidget-L8ppxJib.mjs.map +1 -0
- package/dist/{NestedWidget-BLnDfSTr.cjs → NestedWidget-zn_USrld.cjs} +1 -1
- package/dist/{OrdersScreen-5_YH57td.cjs → OrdersScreen-BiuWTsM3.cjs} +4 -4
- package/dist/{OrdersScreen-DLMSGSDn.mjs → OrdersScreen-BkxKQpwS.mjs} +3 -3
- package/dist/{OrdersScreen-DLMSGSDn.mjs.map → OrdersScreen-BkxKQpwS.mjs.map} +1 -1
- package/dist/{OrdersScreen-D184CHFC.cjs → OrdersScreen-CPJX2XiN.cjs} +3 -3
- package/dist/{OrdersScreen-D184CHFC.cjs.map → OrdersScreen-CPJX2XiN.cjs.map} +1 -1
- package/dist/{ProductsScreen-D6VPu76N.cjs → ProductsScreen-B2BS6FY_.cjs} +3 -3
- package/dist/{ProductsScreen-D6VPu76N.cjs.map → ProductsScreen-B2BS6FY_.cjs.map} +1 -1
- package/dist/{ProductsScreen-J-R7HB67.mjs → ProductsScreen-BPgkn9BH.mjs} +3 -3
- package/dist/{ProductsScreen-J-R7HB67.mjs.map → ProductsScreen-BPgkn9BH.mjs.map} +1 -1
- package/dist/{ProductsScreen-7Ry2DOmk.mjs → ProductsScreen-DY6tKX9Q.mjs} +4 -4
- package/dist/{ProductsScreen-FSkMtZNo.cjs → ProductsScreen-DiaGPT_Q.cjs} +4 -4
- package/dist/{ProfileScreen-Dl9rdbSj.cjs → ProfileScreen-C6qbR0YJ.cjs} +4 -4
- package/dist/{ProfileScreen-CehgL9Ax.mjs → ProfileScreen-DKJrpeMw.mjs} +11 -6
- package/dist/{ProfileScreen-CehgL9Ax.mjs.map → ProfileScreen-DKJrpeMw.mjs.map} +1 -1
- package/dist/{ProfileScreen-B9_u_DCa.cjs → ProfileScreen-ueK01fjb.cjs} +11 -6
- package/dist/{ProfileScreen-B9_u_DCa.cjs.map → ProfileScreen-ueK01fjb.cjs.map} +1 -1
- package/dist/{ShareablesScreen-DF5NZbFF.mjs → ShareablesScreen-4hhIcSYA.mjs} +4 -4
- package/dist/{ShareablesScreen-DF5NZbFF.mjs.map → ShareablesScreen-4hhIcSYA.mjs.map} +1 -1
- package/dist/{ShareablesScreen-O5EeuPjh.mjs → ShareablesScreen-BrLq61Q7.mjs} +4 -4
- package/dist/{ShareablesScreen-DQ5rOZba.cjs → ShareablesScreen-CR3YKwZC.cjs} +4 -4
- package/dist/{ShareablesScreen-9tApBujV.cjs → ShareablesScreen-o1VYr_1K.cjs} +4 -4
- package/dist/{ShareablesScreen-9tApBujV.cjs.map → ShareablesScreen-o1VYr_1K.cjs.map} +1 -1
- package/dist/{ShopScreen-CdT6tDFy.cjs → ShopScreen-BVABhBmJ.cjs} +4 -4
- package/dist/{ShopScreen-BFP_mkBr.mjs → ShopScreen-CfxPQVZD.mjs} +4 -4
- package/dist/{ShopScreen-BFP_mkBr.mjs.map → ShopScreen-CfxPQVZD.mjs.map} +1 -1
- package/dist/{ShopScreen-BYT9k0B4.cjs → ShopScreen-D8z0KYfh.cjs} +4 -4
- package/dist/{ShopScreen-BYT9k0B4.cjs.map → ShopScreen-D8z0KYfh.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-CAZQPewd.cjs → SubscriptionsScreen-BF4NqbpU.cjs} +3 -3
- package/dist/{SubscriptionsScreen-CAZQPewd.cjs.map → SubscriptionsScreen-BF4NqbpU.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-DRzvnjgc.cjs → SubscriptionsScreen-BRx_ocC3.cjs} +4 -4
- package/dist/{SubscriptionsScreen-paGCQ6dS.mjs → SubscriptionsScreen-BSDYjJvj.mjs} +3 -3
- package/dist/{SubscriptionsScreen-paGCQ6dS.mjs.map → SubscriptionsScreen-BSDYjJvj.mjs.map} +1 -1
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +36 -36
- package/dist/{use-account-clients-CnA6MyYd.cjs → use-account-clients-BVb_nhg7.cjs} +2 -2
- package/dist/{use-account-clients-CnA6MyYd.cjs.map → use-account-clients-BVb_nhg7.cjs.map} +1 -1
- package/dist/{use-account-clients-C2_jlb1b.mjs → use-account-clients-Bg1xqjMk.mjs} +2 -2
- package/dist/{use-account-clients-C2_jlb1b.mjs.map → use-account-clients-Bg1xqjMk.mjs.map} +1 -1
- package/dist/{use-current-user-BAZjsw2o.cjs → use-current-user-DFQ8gYkR.cjs} +3 -3
- package/dist/{use-current-user-BAZjsw2o.cjs.map → use-current-user-DFQ8gYkR.cjs.map} +1 -1
- package/dist/{use-current-user-C2PdUj5p.mjs → use-current-user-DqLNoj-3.mjs} +3 -3
- package/dist/{use-current-user-C2PdUj5p.mjs.map → use-current-user-DqLNoj-3.mjs.map} +1 -1
- package/dist/{use-customer-account-HHObeMKC.mjs → use-customer-account-CY9HqWvJ.mjs} +3 -3
- package/dist/{use-customer-account-HHObeMKC.mjs.map → use-customer-account-CY9HqWvJ.mjs.map} +1 -1
- package/dist/{use-customer-account-DTjtFWVp.cjs → use-customer-account-D599KeSp.cjs} +3 -3
- package/dist/{use-customer-account-DTjtFWVp.cjs.map → use-customer-account-D599KeSp.cjs.map} +1 -1
- package/dist/{use-fluid-api-CY0Nsyhd.mjs → use-fluid-api-CyK8Yoj-.mjs} +2 -2
- package/dist/{use-fluid-api-CY0Nsyhd.mjs.map → use-fluid-api-CyK8Yoj-.mjs.map} +1 -1
- package/dist/{use-fluid-api-PzDQ-y02.cjs → use-fluid-api-DHF7svon.cjs} +2 -2
- package/dist/{use-fluid-api-PzDQ-y02.cjs.map → use-fluid-api-DHF7svon.cjs.map} +1 -1
- package/package.json +10 -10
- package/dist/ListWidget-AVskBIjc.mjs.map +0 -1
- package/dist/ListWidget-C6stWkv7.cjs.map +0 -1
- package/dist/NestedWidget-BiWgXhdq.mjs.map +0 -1
- package/dist/NestedWidget-CG4GIVK0.cjs.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
require("./chunk-9hOWP6kD.cjs");
|
|
2
|
-
const require_FluidProvider = require("./FluidProvider-
|
|
2
|
+
const require_FluidProvider = require("./FluidProvider-Cwh9D2D_.cjs");
|
|
3
3
|
const require_parse_api_errors = require("./parse-api-errors-CAnpE2_r.cjs");
|
|
4
4
|
const require_src = require("./src-DGjAAfmN.cjs");
|
|
5
|
-
const require_use_account_clients = require("./use-account-clients-
|
|
5
|
+
const require_use_account_clients = require("./use-account-clients-BVb_nhg7.cjs");
|
|
6
6
|
const require_ScreenHeaderContext = require("./ScreenHeaderContext-wrJlkhgN.cjs");
|
|
7
7
|
let react = require("react");
|
|
8
8
|
let _tanstack_react_query = require("@tanstack/react-query");
|
|
@@ -2499,11 +2499,16 @@ function ProfileContentScreen({ onToast, countryIso }) {
|
|
|
2499
2499
|
queryFn: () => sdkClient.get("/countries"),
|
|
2500
2500
|
initialData: []
|
|
2501
2501
|
});
|
|
2502
|
+
const { data: companySettings, isLoading: isLoadingCompanySettings } = (0, _tanstack_react_query.useQuery)({
|
|
2503
|
+
queryKey: ["sdk-company-settings"],
|
|
2504
|
+
queryFn: () => sdkClient.get("/settings/checkout")
|
|
2505
|
+
});
|
|
2506
|
+
const rewardPointsEnabled = companySettings?.reward_points_enabled ?? false;
|
|
2502
2507
|
const customerId = accountData?.customer?.id;
|
|
2503
2508
|
const { data: pointsLedgerData, isLoading: isLoadingPointsLedger } = (0, _tanstack_react_query.useQuery)({
|
|
2504
2509
|
queryKey: ["customer-points-ledger", customerId],
|
|
2505
2510
|
queryFn: () => sdkClient.get(`${require_use_account_clients.API_VERSION}/customers/${customerId}/points_ledgers`),
|
|
2506
|
-
enabled: !!customerId
|
|
2511
|
+
enabled: !!customerId && rewardPointsEnabled
|
|
2507
2512
|
});
|
|
2508
2513
|
const updateCustomerMutation = (0, _tanstack_react_query.useMutation)({
|
|
2509
2514
|
mutationFn: (data) => {
|
|
@@ -2612,7 +2617,7 @@ function ProfileContentScreen({ onToast, countryIso }) {
|
|
|
2612
2617
|
children: "Unable to load account data. Please try again later."
|
|
2613
2618
|
})
|
|
2614
2619
|
});
|
|
2615
|
-
if (isLoadingAccount || !accountData) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2620
|
+
if (isLoadingAccount || isLoadingCompanySettings || !accountData) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2616
2621
|
className: "px-4 pt-4 sm:px-9 md:pt-8",
|
|
2617
2622
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2618
2623
|
className: "space-y-4",
|
|
@@ -2634,7 +2639,7 @@ function ProfileContentScreen({ onToast, countryIso }) {
|
|
|
2634
2639
|
await updateCustomerMutation.mutateAsync(data);
|
|
2635
2640
|
},
|
|
2636
2641
|
isUpdatingCustomer: updateCustomerMutation.isPending,
|
|
2637
|
-
rewardsPointsEnabled:
|
|
2642
|
+
rewardsPointsEnabled: rewardPointsEnabled,
|
|
2638
2643
|
pointsLedger: adaptedPointsLedger,
|
|
2639
2644
|
isLoadingPointsLedger,
|
|
2640
2645
|
addresses,
|
|
@@ -2764,4 +2769,4 @@ Object.defineProperty(exports, "profileScreenPropertySchema", {
|
|
|
2764
2769
|
}
|
|
2765
2770
|
});
|
|
2766
2771
|
|
|
2767
|
-
//# sourceMappingURL=ProfileScreen-
|
|
2772
|
+
//# sourceMappingURL=ProfileScreen-ueK01fjb.cjs.map
|