@mx-cartographer/experiences 4.1.2-alpha.mega24 → 4.1.2-alpha.mega25

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,3 +1,4 @@
1
+ import { ClientCommunicationProfile, ClientProfile } from './Client';
1
2
  export interface HelpCategory {
2
3
  flags?: string[];
3
4
  guid: string;
@@ -6,9 +7,9 @@ export interface HelpCategory {
6
7
  topics: HelpTopic[];
7
8
  }
8
9
  export interface HelpListProps {
9
- helpTitle: string;
10
10
  helpCategories: HelpCategory[];
11
11
  helpContent: string;
12
+ helpTitle: string;
12
13
  buttonText: string;
13
14
  onRequestHelp: () => void;
14
15
  onTopicSelect: (topicKey: string) => void;
@@ -17,3 +18,5 @@ export interface HelpTopic {
17
18
  label: string;
18
19
  topicKey: string;
19
20
  }
21
+ export interface Profile extends ClientCommunicationProfile, ClientProfile {
22
+ }
@@ -1,5 +1,7 @@
1
1
  import { default as React } from 'react';
2
+ import { SxProps } from '@mui/material/styles';
2
3
  interface HelpProps {
4
+ sx: SxProps;
3
5
  }
4
6
  declare const _default: React.FunctionComponent<HelpProps>;
5
7
  export default _default;
@@ -1,2 +1,2 @@
1
- export { default as Help } from './Help';
1
+ export { default as HelpWidget } from './HelpWidget';
2
2
  export { HelpList } from './HelpList';
@@ -4,6 +4,6 @@ export declare class HelpStore {
4
4
  appConfig: Config | undefined;
5
5
  globalStore: GlobalStore;
6
6
  constructor(globalStore: GlobalStore);
7
- setAppConfig: (config: Config) => Config;
7
+ loadAppConfig: (config: Config) => Config;
8
8
  get helpCategories(): import('../../common/types/Help').HelpCategory[];
9
9
  }
@@ -1,6 +1,2 @@
1
- import { ClientCommunicationProfile, ClientProfile } from '../../common/types/Client';
2
- import { HelpCategory } from '../../common/types/Help';
3
- interface Profile extends ClientCommunicationProfile, ClientProfile {
4
- }
1
+ import { HelpCategory, Profile } from '../../common/types/Help';
5
2
  export declare const getAccessibleHelpCategories: (profile: Profile) => HelpCategory[];
6
- export {};
package/dist/index.es.js CHANGED
@@ -12597,11 +12597,9 @@ class o1 {
12597
12597
  constructor(A) {
12598
12598
  this.globalStore = A, De(this);
12599
12599
  }
12600
- setAppConfig = (A) => this.appConfig = A;
12600
+ loadAppConfig = (A) => this.appConfig = A;
12601
12601
  get helpCategories() {
12602
- const {
12603
- appData: { client_communication_profile: A, client_profile: n }
12604
- } = this.globalStore.appDataStore;
12602
+ const { client_communication_profile: A, client_profile: n } = this.globalStore.appDataStore.appData;
12605
12603
  return i1({
12606
12604
  ...A,
12607
12605
  ...n,
@@ -15952,25 +15950,25 @@ const Qm = () => {
15952
15950
  button_text: "Request Help",
15953
15951
  help_content: "Find answers, get support, and learn how to make the most of your experience.",
15954
15952
  help_title: "Help Tool"
15955
- }, Jm = () => {
15956
- const { isInitialized: e } = Sn(), { appConfig: A, helpCategories: n, setAppConfig: a } = yl(), r = window.app?.config;
15953
+ }, Jm = ({ sx: e }) => {
15954
+ const { isInitialized: A } = Sn(), { appConfig: n, helpCategories: a, loadAppConfig: r } = yl(), i = window.app?.config;
15957
15955
  g.useEffect(() => {
15958
- !e || !r || a(r);
15959
- }, [e, r]);
15960
- const i = () => {
15961
- }, o = () => {
15956
+ !A || !i || r(i);
15957
+ }, [A, i]);
15958
+ const o = () => {
15959
+ }, s = () => {
15962
15960
  };
15963
- return !e || !A ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ t(pA, { children: /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(
15961
+ return !A || !n ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ t(pA, { sx: e, children: /* @__PURE__ */ t(
15964
15962
  Vm,
15965
15963
  {
15966
15964
  buttonText: jn.button_text,
15967
- helpCategories: n,
15965
+ helpCategories: a,
15968
15966
  helpContent: jn.help_content,
15969
15967
  helpTitle: jn.help_title,
15970
- onRequestHelp: i,
15971
- onTopicSelect: o
15968
+ onRequestHelp: o,
15969
+ onTopicSelect: s
15972
15970
  }
15973
- ) }) });
15971
+ ) });
15974
15972
  }, Q8 = T(Jm), Ba = ({
15975
15973
  bgcolor: e = "background.default",
15976
15974
  children: A
@@ -19459,8 +19457,8 @@ export {
19459
19457
  n1 as GoalStore,
19460
19458
  ea as GoalType,
19461
19459
  R8 as GoalsWidget,
19462
- Q8 as Help,
19463
19460
  Vm as HelpList,
19461
+ Q8 as HelpWidget,
19464
19462
  Y8 as HiddenInsightsDrawer,
19465
19463
  Ca as INCOME_ACCOUNT_TYPES,
19466
19464
  VA as IconBacking,