@mx-cartographer/experiences 4.1.0-alpha.j14 → 4.1.0-alpha.j15
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
|
@@ -13492,8 +13492,8 @@ var Kn = /* @__PURE__ */ ((A) => (A[A.Main = 0] = "Main", A[A.RightSide = 1] = "
|
|
|
13492
13492
|
const x1 = T(() => {
|
|
13493
13493
|
const { appStore: A, isInitialized: e } = an(), { accountBanner: n, loadAccountBanner: r } = Kc();
|
|
13494
13494
|
return g.useEffect(() => {
|
|
13495
|
-
console.log("appStore", A), e && (console.log("make the call"), r(A.bullseyeUrl, A.user
|
|
13496
|
-
}, [e]), n
|
|
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 } }) }) });
|
|
13497
13497
|
}), P1 = () => {
|
|
13498
13498
|
const { accounts: A } = TA(), { selectedAccountGuids: e, setSelectedAccountGuids: n } = fA(), { isMobile: r } = MA(), { common: a } = I(), i = {
|
|
13499
13499
|
accountFilterOptionsCopy: {
|