@mx-cartographer/experiences 4.1.0-alpha.j22 → 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
- updateUserProfile: (userProfile: UserProfile) => Promise<void>;
10
+ setUserProfile: (userProfile: UserProfile) => Promise<void>;
11
11
  }
@@ -1,17 +1,17 @@
1
1
  export interface AccountBannerType {
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;
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
@@ -3637,8 +3637,6 @@ class nl {
3637
3637
  }
3638
3638
  let rl = class {
3639
3639
  appData = {};
3640
- // bullseyeUrl: string = ''
3641
- // user: User = {} as User
3642
3640
  api = new zr("/", "");
3643
3641
  isInitialized = !1;
3644
3642
  constructor() {
@@ -3650,14 +3648,14 @@ let rl = class {
3650
3648
  loadAppData = async () => {
3651
3649
  try {
3652
3650
  const e = await this.api.getAppData();
3653
- console.log(e), J(() => {
3651
+ J(() => {
3654
3652
  this.appData = e, this.isInitialized = !0;
3655
3653
  });
3656
3654
  } catch (e) {
3657
3655
  console.error(`Error occurred while loading app data: ${e}`);
3658
3656
  }
3659
3657
  };
3660
- updateUserProfile = async (e) => {
3658
+ setUserProfile = async (e) => {
3661
3659
  this.appData.user_profile = e;
3662
3660
  };
3663
3661
  };
@@ -8082,14 +8080,7 @@ const wi = ({ transaction: A }) => {
8082
8080
  n && /* @__PURE__ */ t(sA, { onClick: n, sx: { mt: -12 }, variant: "text", children: o.reset })
8083
8081
  ] }),
8084
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: [
8085
- /* @__PURE__ */ t(
8086
- Vt,
8087
- {
8088
- activity: c,
8089
- isMini: e,
8090
- onActivityClick: r
8091
- }
8092
- ),
8083
+ /* @__PURE__ */ t(Vt, { activity: c, isMini: e, onActivityClick: r }),
8093
8084
  /* @__PURE__ */ t(k, { sx: { mx: 24 } })
8094
8085
  ] }, c.expectedDate.toString() + h)) : s.map((c) => /* @__PURE__ */ l(tA, { children: [
8095
8086
  /* @__PURE__ */ t(Y, { children: /* @__PURE__ */ t(
@@ -10213,11 +10204,11 @@ class Oh {
10213
10204
  SA(this);
10214
10205
  }
10215
10206
  loadAccountBanner = async (e, n) => {
10216
- console.log("load banner", e, n);
10207
+ console.log(e, n);
10217
10208
  try {
10218
10209
  const r = await this.api.getAccountBanner(e, n);
10219
- J(() => {
10220
- console.log("Update ACCOUNT_BANNER", r), this.accountBanner = r;
10210
+ console.log({ accountBanner: r }), J(() => {
10211
+ this.accountBanner = r;
10221
10212
  });
10222
10213
  } catch (r) {
10223
10214
  console.error(`Error occurred while loading account banner: ${r}`);
@@ -11010,7 +11001,7 @@ class lg {
11010
11001
  try {
11011
11002
  const n = await this.api.updateUserProfile(e);
11012
11003
  J(() => {
11013
- this.globalStore.appStore.updateUserProfile(n);
11004
+ this.globalStore.appStore.setUserProfile(n);
11014
11005
  });
11015
11006
  } catch (n) {
11016
11007
  console.error(`Error occurred while updating user profile: ${n}`);
@@ -13492,8 +13483,16 @@ var Kn = /* @__PURE__ */ ((A) => (A[A.Main = 0] = "Main", A[A.RightSide = 1] = "
13492
13483
  const x1 = T(() => {
13493
13484
  const { appStore: A } = an(), { accountBanner: e, loadAccountBanner: n } = Kc();
13494
13485
  return g.useEffect(() => {
13495
- A.isInitialized && (console.log("appStore", A), n(A.appData?.address?.bullseye, A.appData?.user?.guid));
13496
- }, [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(Ns, { alt: "marketing image", component: "img", image: e?.image_url, sx: { height: 110, width: 615 } }) }) });
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
+ ) }) });
13497
13496
  }), P1 = () => {
13498
13497
  const { accounts: A } = TA(), { selectedAccountGuids: e, setSelectedAccountGuids: n } = fA(), { isMobile: r } = MA(), { common: a } = I(), i = {
13499
13498
  accountFilterOptionsCopy: {