@mx-cartographer/experiences 4.1.8 → 4.1.10-alpha.JB0

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/common/types/GlobalCopy.d.ts +2 -1
  3. package/dist/common/types/Help.d.ts +1 -0
  4. package/dist/common/types/LocalizedContent.d.ts +0 -4
  5. package/dist/common/types/localization/HelpCopy.d.ts +85 -0
  6. package/dist/common/types/localization/index.d.ts +1 -0
  7. package/dist/help/components/content/ContentItem.d.ts +4 -0
  8. package/dist/help/components/content/section/Budgets.d.ts +4 -0
  9. package/dist/help/components/content/section/Goals.d.ts +6 -0
  10. package/dist/help/images/budgets/index.d.ts +4 -0
  11. package/dist/index.d.ts +0 -1
  12. package/dist/index.es.js +4924 -5645
  13. package/dist/index.es.js.map +1 -1
  14. package/package.json +1 -1
  15. package/dist/insights/contexts/ToastContext.d.ts +0 -17
  16. package/dist/insights/index.d.ts +0 -5
  17. package/dist/insights/settings/SettingsDrawer.d.ts +0 -10
  18. package/dist/insights/settings/components/PulseSubheaderRow.d.ts +0 -6
  19. package/dist/insights/settings/components/SettingsItem.d.ts +0 -9
  20. package/dist/insights/settings/components/Toast.d.ts +0 -15
  21. package/dist/insights/settings/hiddeninsights/components/CategoryEmptyState.d.ts +0 -7
  22. package/dist/insights/settings/hiddeninsights/components/HiddenInsightsDrawer.d.ts +0 -8
  23. package/dist/insights/settings/hiddeninsights/components/HiddenInsightsDrawerWrapper.d.ts +0 -8
  24. package/dist/insights/settings/hiddeninsights/components/SubCategoryDrawer.d.ts +0 -13
  25. package/dist/insights/settings/hiddeninsights/types/index.d.ts +0 -67
  26. package/dist/insights/settings/manageaccounts/components/AccountGroup.d.ts +0 -11
  27. package/dist/insights/settings/manageaccounts/components/ManageAccountsDrawer.d.ts +0 -9
  28. package/dist/insights/settings/manageaccounts/types/index.d.ts +0 -11
  29. package/dist/insights/settings/types/index.d.ts +0 -4
  30. package/dist/insights/utils/beatTemplateCategories.d.ts +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "4.1.8",
3
+ "version": "4.1.10-alpha.JB0",
4
4
  "description": "Library containing experience widgets",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,17 +0,0 @@
1
- import { default as React, ReactNode } from 'react';
2
- interface ToastState {
3
- isOpen: boolean;
4
- message: string;
5
- severity: 'success' | 'error';
6
- }
7
- interface ToastContextProps {
8
- toastState: ToastState;
9
- showToast: (msg?: string, severityType?: 'success' | 'error') => void;
10
- hideToast: () => void;
11
- setMessage: (msg: string) => void;
12
- }
13
- declare const ToastProvider: React.FC<{
14
- children: ReactNode;
15
- }>;
16
- declare const useToast: () => ToastContextProps;
17
- export { ToastProvider, useToast };
@@ -1,5 +0,0 @@
1
- export type { DisabledBeatTemplate } from './settings/hiddeninsights/types';
2
- export type { ManageAccountsStore } from './settings/manageaccounts/types/index';
3
- export { ManageAccountsDrawer } from './settings/manageaccounts/components/ManageAccountsDrawer';
4
- export { HiddenInsightsDrawerWrapper as HiddenInsightsDrawer } from './settings/hiddeninsights/components/HiddenInsightsDrawerWrapper';
5
- export { default as SettingsDrawer } from './settings/SettingsDrawer';
@@ -1,10 +0,0 @@
1
- import { default as React } from 'react';
2
- import { SettingsMenuContent } from './hiddeninsights/types';
3
- interface Props {
4
- children?: React.ReactNode;
5
- content: SettingsMenuContent;
6
- isOpen: boolean;
7
- onClose: () => void;
8
- }
9
- declare const SettingsDrawer: React.FC<Props>;
10
- export default SettingsDrawer;
@@ -1,6 +0,0 @@
1
- import { default as React, PropsWithChildren } from 'react';
2
- interface SubheaderRowProps {
3
- bgcolor?: string;
4
- }
5
- declare const SubheaderRow: React.FC<PropsWithChildren<SubheaderRowProps>>;
6
- export default SubheaderRow;
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- interface SettingsItemProps {
3
- Icon: React.ElementType;
4
- label: string;
5
- onClick: () => void;
6
- itemCount?: number;
7
- }
8
- declare const SettingsItem: React.FC<SettingsItemProps>;
9
- export default SettingsItem;
@@ -1,15 +0,0 @@
1
- import { default as React } from 'react';
2
- import { SxProps, Theme } from '@mui/system';
3
- import { GrowProps } from '@mui/material/Grow';
4
- export declare function GrowTransition(props: GrowProps): import("react/jsx-runtime").JSX.Element;
5
- interface ToastProps {
6
- open: boolean;
7
- handleClose: () => void;
8
- message: string;
9
- autoHideDuration?: number;
10
- severity?: 'success' | 'error' | 'warning' | 'info';
11
- icon?: React.ReactNode;
12
- snackbarSx?: SxProps<Theme>;
13
- }
14
- declare const Toast: React.FC<ToastProps>;
15
- export default Toast;
@@ -1,7 +0,0 @@
1
- import { default as React } from 'react';
2
- import { SettingsMenuContent } from '../types';
3
- interface Props {
4
- content: SettingsMenuContent;
5
- }
6
- export declare const CategoryEmptyState: React.FC<Props>;
7
- export {};
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- import { SettingsMenuContent, DisabledBeatTemplatesStore } from '../types';
3
- interface Props {
4
- content: SettingsMenuContent;
5
- disabledBeatTemplatesStore: DisabledBeatTemplatesStore;
6
- }
7
- export declare const HiddenInsightsDrawer: React.FC<Props>;
8
- export {};
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- import { SettingsMenuContent, DisabledBeatTemplatesStore } from '../types';
3
- interface Props {
4
- content: SettingsMenuContent;
5
- disabledBeatTemplatesStore: DisabledBeatTemplatesStore;
6
- }
7
- export declare const HiddenInsightsDrawerWrapper: React.FC<Props>;
8
- export {};
@@ -1,13 +0,0 @@
1
- import { default as React } from 'react';
2
- import { DisabledBeatTemplate, SettingsMenuContent } from '../types';
3
- interface Props {
4
- content: SettingsMenuContent;
5
- disabledBeatTemplates: DisabledBeatTemplate[];
6
- handleEnableBeatTemplates: (templateNames: string[], showSnackBar: boolean) => void;
7
- isOpen: boolean;
8
- isUpdateLoading: boolean;
9
- onClose: () => void;
10
- translatedSubCatetgory: string;
11
- }
12
- export declare const SubCategoryDrawer: React.FC<Props>;
13
- export {};
@@ -1,67 +0,0 @@
1
- export interface Category {
2
- category_key: string;
3
- category: string;
4
- subcategory_key: string;
5
- subcategory: string;
6
- }
7
- export interface DisabledBeatTemplate {
8
- name: string;
9
- title: string;
10
- description: string;
11
- locale: string;
12
- client_namespace: string | null;
13
- categories: Category[];
14
- }
15
- export interface DisabledBeatTemplatesStore {
16
- items: DisabledBeatTemplate[];
17
- isUpdateLoading: boolean;
18
- isUpdateError: boolean;
19
- update: (beatTemplatesNames: string[]) => void;
20
- }
21
- export type CategoryMapping = {
22
- [key: string]: string;
23
- };
24
- export type SubcategoryMapping = {
25
- [key: string]: string;
26
- };
27
- export interface BeatSubcategory {
28
- key: string;
29
- beats: DisabledBeatTemplate[];
30
- }
31
- export interface BeatCategory {
32
- key: string;
33
- subcategories: BeatSubcategory[];
34
- }
35
- export interface SettingsMenuContent {
36
- account_data_hidden: string;
37
- account_data_shown: string;
38
- are_you_sure: string;
39
- cancel: string;
40
- close: string;
41
- hidden_insight: string;
42
- hidden_insights: string;
43
- insight_hidden: string;
44
- insight_name: string;
45
- insight_unhidden: string;
46
- insights_hidden: string;
47
- insights_unhidden: string;
48
- manage_accounts: string;
49
- manage_hidden_insights: string;
50
- open_accounts_drawer: string;
51
- select_all: string;
52
- select_insight: string;
53
- select_insights_for_feed: string;
54
- settings: string;
55
- show: string;
56
- show_all_hidden_insights: string;
57
- show_insights: string;
58
- something_went_wrong: string;
59
- there_are_no_insights_hidden: string;
60
- turn_off: string;
61
- turn_off_account: string;
62
- turn_on: string;
63
- turn_on_account: string;
64
- undo_reactivate_account: string;
65
- unselect_all: string;
66
- unselect_insight: string;
67
- }
@@ -1,11 +0,0 @@
1
- import { default as React } from 'react';
2
- import { Account } from '../../../../common/types/Account';
3
- import { SettingsMenuContent } from '../../hiddeninsights/types';
4
- interface Props {
5
- accounts: Account[];
6
- content: SettingsMenuContent;
7
- toggleAccount: (dialogueActionType: string, accountToUpdate: string, updateType: string) => void;
8
- title: string;
9
- }
10
- export declare const AccountGroup: React.FC<Props>;
11
- export {};
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- import { ManageAccountsStore } from '../types';
3
- import { SettingsMenuContent } from '../../hiddeninsights/types';
4
- interface Props {
5
- content: SettingsMenuContent;
6
- manageAccountsStore: ManageAccountsStore;
7
- }
8
- export declare const ManageAccountsDrawer: React.FC<Props>;
9
- export {};
@@ -1,11 +0,0 @@
1
- import { Account } from './../../../../common/types/Account';
2
- export interface ManageAccountsStore {
3
- handleAccountsDrawerAction: (actionType: string) => void;
4
- groupedAccounts: GroupedAccount[];
5
- toggleAccount: (dialogueActionType: string, accountToUpdate: string, updateType: string) => void;
6
- }
7
- export interface GroupedAccount {
8
- accounts: Account[];
9
- accountType: string;
10
- title: string;
11
- }
@@ -1,4 +0,0 @@
1
- export interface EnabledSettings {
2
- manageHiddenInsights: boolean;
3
- manageAccounts: boolean;
4
- }
@@ -1,2 +0,0 @@
1
- import { DisabledBeatTemplate, CategoryMapping, SubcategoryMapping, BeatCategory } from '../settings/hiddeninsights/types/index';
2
- export declare const organizeBeats: (beatTemplatesWithCategories: DisabledBeatTemplate[]) => [BeatCategory[], CategoryMapping, SubcategoryMapping];