@mx-cartographer/experiences 4.1.0-alpha.j17 → 4.1.0-alpha.j19

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.
@@ -1,10 +1,7 @@
1
1
  import { AppApi } from '../api/AppApi';
2
2
  import { AppData, UserProfile } from '../types';
3
- import { User } from '../types/AppData';
4
3
  export declare class AppStore {
5
4
  appData: AppData;
6
- bullseyeUrl: string;
7
- user: User;
8
5
  api: AppApi;
9
6
  isInitialized: boolean;
10
7
  constructor();
package/dist/index.es.js CHANGED
@@ -3637,8 +3637,8 @@ class nl {
3637
3637
  }
3638
3638
  let rl = class {
3639
3639
  appData = {};
3640
- bullseyeUrl = "";
3641
- user = {};
3640
+ // bullseyeUrl: string = ''
3641
+ // user: User = {} as User
3642
3642
  api = new zr("/", "");
3643
3643
  isInitialized = !1;
3644
3644
  constructor() {
@@ -3653,7 +3653,7 @@ let rl = class {
3653
3653
  try {
3654
3654
  const e = await this.api.getAppData();
3655
3655
  J(() => {
3656
- this.appData = e, this.bullseyeUrl = e.address?.bullseye, this.user = e.user;
3656
+ this.appData = e;
3657
3657
  });
3658
3658
  } catch (e) {
3659
3659
  console.error(`Error occurred while loading app data: ${e}`);
@@ -13495,8 +13495,8 @@ var Kn = /* @__PURE__ */ ((A) => (A[A.Main = 0] = "Main", A[A.RightSide = 1] = "
13495
13495
  const x1 = T(() => {
13496
13496
  const { appStore: A } = an(), { accountBanner: e, loadAccountBanner: n } = Kc();
13497
13497
  return g.useEffect(() => {
13498
- A.isInitialized && (console.log("appStore", A), console.log("make the call"), n(A.bullseyeUrl, A.user?.guid));
13499
- }, [A]), 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 } }) }) });
13498
+ A.isInitialized && (console.log("appStore", A.appData), console.log("make the call"), n(A.appData?.address?.bullseye, A.appData?.user?.guid));
13499
+ }, [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 } }) }) });
13500
13500
  }), P1 = () => {
13501
13501
  const { accounts: A } = TA(), { selectedAccountGuids: e, setSelectedAccountGuids: n } = fA(), { isMobile: r } = MA(), { common: a } = I(), i = {
13502
13502
  accountFilterOptionsCopy: {