@mx-cartographer/experiences 4.1.0-alpha.j23 → 4.1.0-alpha.j24
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.
|
@@ -7,5 +7,5 @@ export declare class AppStore {
|
|
|
7
7
|
constructor();
|
|
8
8
|
initialize: (endpoint: string, token: string) => Promise<void>;
|
|
9
9
|
loadAppData: () => Promise<void>;
|
|
10
|
-
|
|
10
|
+
setUserProfile: (userProfile: UserProfile) => Promise<void>;
|
|
11
11
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export interface AccountBannerType {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
guid: string;
|
|
3
|
+
dashboard_position: null;
|
|
4
|
+
dismiss_button_action_uri: null;
|
|
5
|
+
image_url: string;
|
|
6
|
+
is_static: false;
|
|
7
|
+
left_button_action_type: null;
|
|
8
|
+
left_button_action_uri: null;
|
|
9
|
+
left_button_image_url: null;
|
|
10
|
+
left_button_success_image_url: null;
|
|
11
|
+
redirect_url: string;
|
|
12
|
+
right_button_action_type: null;
|
|
13
|
+
right_button_action_uri: null;
|
|
14
|
+
right_button_image_url: null;
|
|
15
|
+
right_button_success_image_url: null;
|
|
16
|
+
viewed_action_uri: null;
|
|
17
17
|
}
|
package/dist/index.es.js
CHANGED
|
@@ -3655,7 +3655,7 @@ let rl = class {
|
|
|
3655
3655
|
console.error(`Error occurred while loading app data: ${e}`);
|
|
3656
3656
|
}
|
|
3657
3657
|
};
|
|
3658
|
-
|
|
3658
|
+
setUserProfile = async (e) => {
|
|
3659
3659
|
this.appData.user_profile = e;
|
|
3660
3660
|
};
|
|
3661
3661
|
};
|
|
@@ -8080,14 +8080,7 @@ const wi = ({ transaction: A }) => {
|
|
|
8080
8080
|
n && /* @__PURE__ */ t(sA, { onClick: n, sx: { mt: -12 }, variant: "text", children: o.reset })
|
|
8081
8081
|
] }),
|
|
8082
8082
|
A.length === 0 ? /* @__PURE__ */ t(p, { fontStyle: "italic", py: 24, sx: { textAlign: "center" }, children: o.no_activities }) : /* @__PURE__ */ t(nA, { children: e ? A.map((c, h) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
8083
|
-
/* @__PURE__ */ t(
|
|
8084
|
-
Vt,
|
|
8085
|
-
{
|
|
8086
|
-
activity: c,
|
|
8087
|
-
isMini: e,
|
|
8088
|
-
onActivityClick: r
|
|
8089
|
-
}
|
|
8090
|
-
),
|
|
8083
|
+
/* @__PURE__ */ t(Vt, { activity: c, isMini: e, onActivityClick: r }),
|
|
8091
8084
|
/* @__PURE__ */ t(k, { sx: { mx: 24 } })
|
|
8092
8085
|
] }, c.expectedDate.toString() + h)) : s.map((c) => /* @__PURE__ */ l(tA, { children: [
|
|
8093
8086
|
/* @__PURE__ */ t(Y, { children: /* @__PURE__ */ t(
|
|
@@ -10211,10 +10204,10 @@ class Oh {
|
|
|
10211
10204
|
SA(this);
|
|
10212
10205
|
}
|
|
10213
10206
|
loadAccountBanner = async (e, n) => {
|
|
10214
|
-
console.log(
|
|
10207
|
+
console.log(e, n);
|
|
10215
10208
|
try {
|
|
10216
10209
|
const r = await this.api.getAccountBanner(e, n);
|
|
10217
|
-
J(() => {
|
|
10210
|
+
console.log({ accountBanner: r }), J(() => {
|
|
10218
10211
|
this.accountBanner = r;
|
|
10219
10212
|
});
|
|
10220
10213
|
} catch (r) {
|
|
@@ -11008,7 +11001,7 @@ class lg {
|
|
|
11008
11001
|
try {
|
|
11009
11002
|
const n = await this.api.updateUserProfile(e);
|
|
11010
11003
|
J(() => {
|
|
11011
|
-
this.globalStore.appStore.
|
|
11004
|
+
this.globalStore.appStore.setUserProfile(n);
|
|
11012
11005
|
});
|
|
11013
11006
|
} catch (n) {
|
|
11014
11007
|
console.error(`Error occurred while updating user profile: ${n}`);
|
|
@@ -13490,8 +13483,16 @@ var Kn = /* @__PURE__ */ ((A) => (A[A.Main = 0] = "Main", A[A.RightSide = 1] = "
|
|
|
13490
13483
|
const x1 = T(() => {
|
|
13491
13484
|
const { appStore: A } = an(), { accountBanner: e, loadAccountBanner: n } = Kc();
|
|
13492
13485
|
return g.useEffect(() => {
|
|
13493
|
-
A.isInitialized && n(A.appData?.address?.bullseye, A.appData?.user?.guid);
|
|
13494
|
-
}, [A.isInitialized]), e?.image_url && e?.redirect_url && /* @__PURE__ */ t(he, { elevation: 0, sx: { mt: 16, ml: "auto", mr: "auto", width: 615 }, children: /* @__PURE__ */ t(Ps, { href: e?.redirect_url, sx: { margin: "0 auto" }, children: /* @__PURE__ */ t(
|
|
13486
|
+
console.log("outside", A?.appData), A.isInitialized && (console.log("inside", A?.appData), n(A.appData?.address?.bullseye, A.appData?.user?.guid));
|
|
13487
|
+
}, [A.isInitialized]), e?.image_url && e?.redirect_url && /* @__PURE__ */ t(he, { elevation: 0, sx: { mt: 16, ml: "auto", mr: "auto", width: 615 }, children: /* @__PURE__ */ t(Ps, { href: e?.redirect_url, sx: { margin: "0 auto" }, children: /* @__PURE__ */ t(
|
|
13488
|
+
Ns,
|
|
13489
|
+
{
|
|
13490
|
+
alt: "marketing image",
|
|
13491
|
+
component: "img",
|
|
13492
|
+
image: e?.image_url,
|
|
13493
|
+
sx: { height: 110, width: 615 }
|
|
13494
|
+
}
|
|
13495
|
+
) }) });
|
|
13495
13496
|
}), P1 = () => {
|
|
13496
13497
|
const { accounts: A } = TA(), { selectedAccountGuids: e, setSelectedAccountGuids: n } = fA(), { isMobile: r } = MA(), { common: a } = I(), i = {
|
|
13497
13498
|
accountFilterOptionsCopy: {
|