@mx-cartographer/experiences 4.1.0-alpha.j14 → 4.1.0-alpha.j16

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.
@@ -0,0 +1,11 @@
1
+ import { UserApi } from '../api';
2
+ import { UserProfile } from '../types';
3
+ import { GlobalStore } from './GlobalStore';
4
+ export declare class UserStore {
5
+ api: UserApi;
6
+ globalStore: GlobalStore;
7
+ constructor(globalStore: GlobalStore);
8
+ initialize: (endpoint: string, token: string) => Promise<void>;
9
+ updateUserProfile: (userProfile: UserProfile) => Promise<void>;
10
+ get userProfile(): import('../types/AppData').UserProfile;
11
+ }
@@ -124,7 +124,7 @@ export interface User {
124
124
  uses_single_sign_on: boolean;
125
125
  created_at: number;
126
126
  }
127
- interface UserProfile {
127
+ export interface UserProfile {
128
128
  guid: string;
129
129
  has_completed_cash_flow_onboarding: boolean;
130
130
  has_completed_finstrong_onboarding: boolean;
@@ -144,4 +144,3 @@ interface UserProfile {
144
144
  uses_detailed_notifications: boolean;
145
145
  user_guid: string;
146
146
  }
147
- export {};
package/dist/index.es.js CHANGED
@@ -10214,10 +10214,11 @@ class Oh {
10214
10214
  SA(this);
10215
10215
  }
10216
10216
  loadAccountBanner = async (e, n) => {
10217
+ console.log("load banner", e, n);
10217
10218
  try {
10218
10219
  const r = await this.api.getAccountBanner(e, n);
10219
10220
  J(() => {
10220
- console.log("ACCOUNT_BANNER", r), this.accountBanner = r;
10221
+ console.log("Update ACCOUNT_BANNER", r), this.accountBanner = r;
10221
10222
  });
10222
10223
  } catch (r) {
10223
10224
  console.error(`Error occurred while loading account banner: ${r}`);
@@ -13492,8 +13493,8 @@ var Kn = /* @__PURE__ */ ((A) => (A[A.Main = 0] = "Main", A[A.RightSide = 1] = "
13492
13493
  const x1 = T(() => {
13493
13494
  const { appStore: A, isInitialized: e } = an(), { accountBanner: n, loadAccountBanner: r } = Kc();
13494
13495
  return g.useEffect(() => {
13495
- console.log("appStore", A), e && (console.log("make the call"), r(A.bullseyeUrl, A.user.guid));
13496
- }, [e]), n.image_url && n.redirect_url && /* @__PURE__ */ t(he, { elevation: 0, sx: { mt: 16, ml: "auto", mr: "auto", width: 615 }, children: /* @__PURE__ */ t(Ps, { href: n.redirect_url, sx: { margin: "0 auto" }, children: /* @__PURE__ */ t(Ns, { alt: "marketing image", component: "img", image: n.image_url, sx: { height: 110, width: 615 } }) }) });
13496
+ console.log("appStore", A), e && (console.log("make the call"), r(A.bullseyeUrl, A.user?.guid));
13497
+ }, [e]), n?.image_url && n?.redirect_url && /* @__PURE__ */ t(he, { elevation: 0, sx: { mt: 16, ml: "auto", mr: "auto", width: 615 }, children: /* @__PURE__ */ t(Ps, { href: n?.redirect_url, sx: { margin: "0 auto" }, children: /* @__PURE__ */ t(Ns, { alt: "marketing image", component: "img", image: n?.image_url, sx: { height: 110, width: 615 } }) }) });
13497
13498
  }), P1 = () => {
13498
13499
  const { accounts: A } = TA(), { selectedAccountGuids: e, setSelectedAccountGuids: n } = fA(), { isMobile: r } = MA(), { common: a } = I(), i = {
13499
13500
  accountFilterOptionsCopy: {