@mx-cartographer/experiences 4.2.0-alpha.sms8 → 4.2.0
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.
- package/CHANGELOG.md +61 -0
- package/dist/Accounts-BpAyGgvu.mjs +319 -0
- package/dist/Accounts-BpAyGgvu.mjs.map +1 -0
- package/dist/BottomImageContent-B9i4ljIR.mjs +48 -0
- package/dist/BottomImageContent-B9i4ljIR.mjs.map +1 -0
- package/dist/Budgets-BqAk2CxJ.mjs +158 -0
- package/dist/Budgets-BqAk2CxJ.mjs.map +1 -0
- package/dist/CashFlow-CGVNoY9h.mjs +149 -0
- package/dist/CashFlow-CGVNoY9h.mjs.map +1 -0
- package/dist/ContentItem-8BNxeJdB.mjs +21 -0
- package/dist/ContentItem-8BNxeJdB.mjs.map +1 -0
- package/dist/Goals-BHLELiU3.mjs +272 -0
- package/dist/Goals-BHLELiU3.mjs.map +1 -0
- package/dist/LeftImageContent-YH7WIO7j.mjs +50 -0
- package/dist/LeftImageContent-YH7WIO7j.mjs.map +1 -0
- package/dist/NoImageContent-eBLeuebJ.mjs +15 -0
- package/dist/NoImageContent-eBLeuebJ.mjs.map +1 -0
- package/dist/RightImageContent-ydSgMKls.mjs +48 -0
- package/dist/RightImageContent-ydSgMKls.mjs.map +1 -0
- package/dist/accounts/stores/AccountStore.d.ts +1 -17
- package/dist/common/api/UserApi.d.ts +1 -0
- package/dist/common/components/ErrorBoundary.d.ts +14 -0
- package/dist/common/components/WidgetContainer.d.ts +1 -1
- package/dist/common/constants/Analytics.d.ts +38 -29
- package/dist/common/constants/ApiEndpoints.d.ts +4 -0
- package/dist/common/context/hooks.d.ts +1 -0
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/hooks/useScreenSize.d.ts +1 -0
- package/dist/common/stores/AppDataStore.d.ts +1 -0
- package/dist/common/stores/GlobalStore.d.ts +3 -4
- package/dist/common/stores/UserStore.d.ts +3 -1
- package/dist/common/types/AppData.d.ts +2 -1
- package/dist/common/types/Global.d.ts +12 -0
- package/dist/common/types/GlobalCopy.d.ts +2 -1
- package/dist/common/types/Help.d.ts +47 -2
- package/dist/common/types/LocalizedContent.d.ts +0 -4
- package/dist/common/types/Notification.d.ts +39 -2
- package/dist/common/types/User.d.ts +36 -0
- package/dist/common/types/index.d.ts +3 -2
- package/dist/common/types/localization/CommonCopy.d.ts +1 -0
- package/dist/common/types/localization/DebtsCopy.d.ts +50 -0
- package/dist/common/types/localization/HelpCopy.d.ts +110 -0
- package/dist/common/types/localization/SettingsCopy.d.ts +20 -10
- package/dist/common/types/localization/index.d.ts +1 -0
- package/dist/debts/components/actions/DebtsPriorityAction.d.ts +3 -0
- package/dist/debts/components/{debtsdrawer/actions → actions}/InterestRateAction.d.ts +1 -1
- package/dist/debts/components/{debtsdrawer/actions → actions}/MonthlyPaymentAction.d.ts +1 -1
- package/dist/debts/components/{debtsdrawer/actions → actions}/OriginalBalanceAction.d.ts +1 -1
- package/dist/debts/components/debtspriority/DebtsPriorityButton.d.ts +8 -0
- package/dist/debts/components/debtspriority/DebtsPrioriyPopover.d.ts +8 -0
- package/dist/debts/constants/index.d.ts +5 -0
- package/dist/debts/store/DebtsUiStore.d.ts +3 -0
- package/dist/debts/utils/DebtsTable.d.ts +5 -0
- package/dist/debts/utils/DebtsWidget.d.ts +2 -1
- package/dist/debts/utils/SnowballCard.d.ts +2 -1
- package/dist/debts/utils/shared.d.ts +3 -0
- package/dist/goals/stores/GoalStore.d.ts +1 -1
- package/dist/goals/util/GoalsUtil.d.ts +1 -1
- package/dist/help/HelpContent.d.ts +3 -0
- package/dist/help/HelpWidget.d.ts +1 -1
- package/dist/help/components/content/BottomImageContent.d.ts +3 -0
- package/dist/help/components/content/ContentItem.d.ts +4 -0
- package/dist/help/components/content/Header.d.ts +8 -0
- package/dist/help/components/content/LeftImageContent.d.ts +3 -0
- package/dist/help/components/content/NoImageContent.d.ts +2 -0
- package/dist/help/components/content/RightImageContent.d.ts +3 -0
- package/dist/help/components/content/index.d.ts +6 -0
- package/dist/help/components/content/section/Accounts.d.ts +4 -0
- package/dist/help/components/content/section/Budgets.d.ts +4 -0
- package/dist/help/components/content/section/CashFlow.d.ts +4 -0
- package/dist/help/components/content/section/Goals.d.ts +6 -0
- package/dist/help/constants/index.d.ts +34 -0
- package/dist/help/images/account/index.d.ts +5 -0
- package/dist/help/images/budgets/index.d.ts +4 -0
- package/dist/help/images/cashFlow/index.d.ts +4 -0
- package/dist/help/index.d.ts +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +7529 -7643
- package/dist/index.es.js.map +1 -1
- package/dist/microinsights/components/MicroWidgetContainer.d.ts +7 -0
- package/dist/notifications/constants/NotificationConstants.d.ts +2 -81
- package/dist/requestsupport/ContactSupport.d.ts +6 -0
- package/dist/requestsupport/HelpByCategoryList.d.ts +16 -0
- package/dist/requestsupport/PopularTopicsDrawer.d.ts +8 -0
- package/dist/requestsupport/PopularTopicsList.d.ts +13 -0
- package/dist/requestsupport/PopularTopicsRow.d.ts +10 -0
- package/dist/requestsupport/RequestSupport.d.ts +7 -0
- package/dist/requestsupport/RequestSupportFooter.d.ts +6 -0
- package/dist/requestsupport/RequestSupportHeader.d.ts +10 -0
- package/dist/requestsupport/RequestSupportInstitution.d.ts +9 -0
- package/dist/requestsupport/constants/index.d.ts +28 -0
- package/dist/requestsupport/index.d.ts +1 -0
- package/dist/requestsupport/util/getInstitutionsBasedOnGuid.d.ts +21 -0
- package/dist/settings/SettingsWidget.d.ts +4 -0
- package/dist/settings/api/SettingsApi.d.ts +12 -0
- package/dist/settings/components/profile/VerificationModal.d.ts +8 -0
- package/dist/settings/index.d.ts +3 -0
- package/dist/settings/stores/SettingsStore.d.ts +17 -0
- package/dist/transactions/stores/TransactionStore.d.ts +1 -20
- package/package.json +1 -1
- package/dist/insights/contexts/ToastContext.d.ts +0 -17
- package/dist/insights/index.d.ts +0 -5
- package/dist/insights/settings/SettingsDrawer.d.ts +0 -10
- package/dist/insights/settings/components/PulseSubheaderRow.d.ts +0 -6
- package/dist/insights/settings/components/SettingsItem.d.ts +0 -9
- package/dist/insights/settings/components/Toast.d.ts +0 -15
- package/dist/insights/settings/hiddeninsights/components/CategoryEmptyState.d.ts +0 -7
- package/dist/insights/settings/hiddeninsights/components/HiddenInsightsDrawer.d.ts +0 -8
- package/dist/insights/settings/hiddeninsights/components/HiddenInsightsDrawerWrapper.d.ts +0 -8
- package/dist/insights/settings/hiddeninsights/components/SubCategoryDrawer.d.ts +0 -13
- package/dist/insights/settings/hiddeninsights/types/index.d.ts +0 -67
- package/dist/insights/settings/manageaccounts/components/AccountGroup.d.ts +0 -11
- package/dist/insights/settings/manageaccounts/components/ManageAccountsDrawer.d.ts +0 -9
- package/dist/insights/settings/manageaccounts/types/index.d.ts +0 -11
- package/dist/insights/settings/types/index.d.ts +0 -4
- package/dist/insights/utils/beatTemplateCategories.d.ts +0 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React, PropsWithChildren } from 'react';
|
|
2
|
+
interface MicroWidgetContainerProps {
|
|
3
|
+
heightOverrides?: number | string;
|
|
4
|
+
widthOverrides?: number;
|
|
5
|
+
}
|
|
6
|
+
declare const MicroWidgetContainer: React.FC<PropsWithChildren<MicroWidgetContainerProps>>;
|
|
7
|
+
export default MicroWidgetContainer;
|
|
@@ -1,81 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
BudgetOffTarget = 2,
|
|
4
|
-
DebtPaymentReminder = 3,
|
|
5
|
-
GuideMeStepComplete = 4,//deprecated: unused
|
|
6
|
-
GuideMeOffTarget = 5,//deprecated: unused
|
|
7
|
-
AccountBalanceLow = 6,
|
|
8
|
-
AccountDepositLarge = 7,
|
|
9
|
-
TransactionExpenseLarge = 8,
|
|
10
|
-
TransactionFeeCharge = 9,
|
|
11
|
-
SystemNotification = 10,//deprecated: unused
|
|
12
|
-
ApiNotification = 11,
|
|
13
|
-
UserSummary = 12,
|
|
14
|
-
Offer = 13,
|
|
15
|
-
PasswordResetToken = 14,
|
|
16
|
-
PasswordChanged = 15,
|
|
17
|
-
EmailVerification = 16,
|
|
18
|
-
EmailVerified = 17,
|
|
19
|
-
WelcomeNewUser = 18,
|
|
20
|
-
DeviceCreated = 19,
|
|
21
|
-
DeviceDeleted = 20,
|
|
22
|
-
SmsVerification = 21,
|
|
23
|
-
AccountNearingZero = 22,
|
|
24
|
-
InternationalTransaction = 23,
|
|
25
|
-
GoalProgress = 25,
|
|
26
|
-
DuplicatePayment = 29
|
|
27
|
-
}
|
|
28
|
-
export declare const NOTIFICATION_DETAILS: {
|
|
29
|
-
1: {
|
|
30
|
-
type: string;
|
|
31
|
-
icon: string;
|
|
32
|
-
};
|
|
33
|
-
2: {
|
|
34
|
-
type: string;
|
|
35
|
-
icon: string;
|
|
36
|
-
};
|
|
37
|
-
3: {
|
|
38
|
-
type: string;
|
|
39
|
-
icon: string;
|
|
40
|
-
};
|
|
41
|
-
6: {
|
|
42
|
-
type: string;
|
|
43
|
-
icon: string;
|
|
44
|
-
};
|
|
45
|
-
7: {
|
|
46
|
-
type: string;
|
|
47
|
-
icon: string;
|
|
48
|
-
};
|
|
49
|
-
8: {
|
|
50
|
-
type: string;
|
|
51
|
-
icon: string;
|
|
52
|
-
};
|
|
53
|
-
9: {
|
|
54
|
-
type: string;
|
|
55
|
-
icon: string;
|
|
56
|
-
};
|
|
57
|
-
11: {
|
|
58
|
-
type: string;
|
|
59
|
-
icon: string;
|
|
60
|
-
};
|
|
61
|
-
12: {
|
|
62
|
-
type: string;
|
|
63
|
-
icon: string;
|
|
64
|
-
};
|
|
65
|
-
13: {
|
|
66
|
-
type: string;
|
|
67
|
-
icon: string;
|
|
68
|
-
};
|
|
69
|
-
23: {
|
|
70
|
-
type: string;
|
|
71
|
-
icon: string;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
export declare const NOTIFICATION_ICON: {
|
|
75
|
-
1: string;
|
|
76
|
-
2: string;
|
|
77
|
-
3: string;
|
|
78
|
-
4: string;
|
|
79
|
-
5: string;
|
|
80
|
-
};
|
|
81
|
-
export declare const getNotificationDetailRoute: (notificationType: number) => string | null;
|
|
1
|
+
import { NotificationType } from '../../common';
|
|
2
|
+
export declare const getNotificationDetailRoute: (notificationType: NotificationType) => string | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface HelpByCategoryListProps {
|
|
3
|
+
helpByCategory: HelpByCategory[];
|
|
4
|
+
}
|
|
5
|
+
interface HelpByCategory {
|
|
6
|
+
icon: string;
|
|
7
|
+
title: string;
|
|
8
|
+
topics: HelpTopic[];
|
|
9
|
+
}
|
|
10
|
+
interface HelpTopic {
|
|
11
|
+
label: string;
|
|
12
|
+
url: string;
|
|
13
|
+
onClick: (url: string) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const HelpByCategoryList: React.FC<HelpByCategoryListProps>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React, CSSProperties } from 'react';
|
|
2
|
+
interface ListItem {
|
|
3
|
+
guid?: string;
|
|
4
|
+
name: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
}
|
|
7
|
+
interface PopularTopicsListProps {
|
|
8
|
+
sx?: CSSProperties;
|
|
9
|
+
list: ListItem[];
|
|
10
|
+
onClick?: (title: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const PopularTopicsList: React.FC<PopularTopicsListProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
interface PopularTopicsRowProps {
|
|
3
|
+
name: string;
|
|
4
|
+
guid?: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
sx?: CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
export declare const PopularTopicsRow: React.FC<PopularTopicsRowProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface RequestSupportHeaderProps {
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle: string;
|
|
5
|
+
reverse?: boolean;
|
|
6
|
+
hasIcon?: boolean;
|
|
7
|
+
institution?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const RequestSupportHeader: React.FC<RequestSupportHeaderProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface RequestSupportInstitutionProps {
|
|
2
|
+
institution: string;
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
popularTopicsDrawerOnClose: () => void;
|
|
6
|
+
title: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const RequestSupportInstitution: React.FC<RequestSupportInstitutionProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const REQUEST_SUPPORT = "Request Support";
|
|
2
|
+
export declare const POPULAR_TOPICS = "Popular Topics";
|
|
3
|
+
export declare const HELP_BY_CATEGORY = "Help by Category";
|
|
4
|
+
export declare const HEADER_TITLE = "How can we help you today?";
|
|
5
|
+
export declare const HEADER_SUBTITLE = "Find exactly what you\u2019re looking for with helpful FAQs and support categories.";
|
|
6
|
+
export declare const FOOTER_TITLE = "Contact Support";
|
|
7
|
+
export declare const FOOTER_SUBTITLE = "Not finding what you\u2019re looking for? Open a case and we\u2019ll get back to you as soon as possible.";
|
|
8
|
+
export declare const FOOTER_BUTTON = "Open a Case";
|
|
9
|
+
export declare const CONTACT_SUPPORT_TITLE = "Contact Support";
|
|
10
|
+
export declare const CONTACT_SUPPORT_SUBTITLE = "Let us know your questions or concerns, and we'll guide you to the right answer.";
|
|
11
|
+
export declare const CONTACT_SUPPORT_LABEL = "Tell us your questions or concerns.";
|
|
12
|
+
export declare const CONTACT_SUPPORT_WARNING = "*Do not include any private or financial information, such as account numbers or passwords. If you have questions about your account, including transactions, bill payments, transfers, loans and so on, please contact your financial institution\u2019s customer service department.";
|
|
13
|
+
export declare const ACCOUNT = "Account";
|
|
14
|
+
export declare const ACCOUNTS = "Accounts";
|
|
15
|
+
export declare const POPULAR_TOPICS_LIST: {
|
|
16
|
+
name: string;
|
|
17
|
+
}[];
|
|
18
|
+
export declare const POPULAR_TOPICS_HEADER_TITLE = "Questions or concerns around...";
|
|
19
|
+
export declare const INSTITUTION_TOPIC = "Which institution does your situation apply to?";
|
|
20
|
+
export declare const HELP_BY_CATEGORY_LIST: {
|
|
21
|
+
icon: string;
|
|
22
|
+
title: string;
|
|
23
|
+
topics: {
|
|
24
|
+
label: string;
|
|
25
|
+
url: string;
|
|
26
|
+
onClick: (url: string) => void;
|
|
27
|
+
}[];
|
|
28
|
+
}[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RequestSupport } from './RequestSupport';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface InstitutionType {
|
|
2
|
+
name: string;
|
|
3
|
+
guid: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
}
|
|
6
|
+
interface AccountType {
|
|
7
|
+
institution_guid?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* This function is to filter and map the institutions array by adding the number of associated accounts
|
|
11
|
+
* based on the `guid` from the accounts array.
|
|
12
|
+
* @param institutions - The list of institutions.
|
|
13
|
+
* @param accounts - The list of accounts linked to institutions.
|
|
14
|
+
* @returns - The updated institutions array with account count.
|
|
15
|
+
*/
|
|
16
|
+
export declare const getInstitutionsBasedOnGuid: (institutions: InstitutionType[], accounts: AccountType[]) => {
|
|
17
|
+
guid: string;
|
|
18
|
+
subtitle: string;
|
|
19
|
+
name: string;
|
|
20
|
+
}[];
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as Fetch } from '../../common/utils/Fetch';
|
|
2
|
+
import { Device, NotificationProfile } from '../../common';
|
|
3
|
+
export declare class SettingsApi {
|
|
4
|
+
fetchInstance: Fetch;
|
|
5
|
+
constructor(endpoint: string, token: string);
|
|
6
|
+
deleteDevice: (guid: string) => Promise<any>;
|
|
7
|
+
generateDeviceToken: () => Promise<any>;
|
|
8
|
+
getDevices: () => Promise<any>;
|
|
9
|
+
getNotificationProfiles: () => Promise<any>;
|
|
10
|
+
updateDevice: (device: Device) => Promise<any>;
|
|
11
|
+
updateNotificationProfile: (notificationProfile: NotificationProfile) => Promise<any>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Device, NotificationProfile } from '../../common';
|
|
2
|
+
import { SettingsApi } from '../api/SettingsApi';
|
|
3
|
+
export declare class SettingsStore {
|
|
4
|
+
api: SettingsApi;
|
|
5
|
+
devices: Device[];
|
|
6
|
+
notificationProfiles: NotificationProfile[];
|
|
7
|
+
constructor();
|
|
8
|
+
initialize: (endpoint: string, token: string) => Promise<void>;
|
|
9
|
+
get budgetNotificationProfiles(): NotificationProfile[];
|
|
10
|
+
get accountNotificationProfiles(): NotificationProfile[];
|
|
11
|
+
loadDevices: () => Promise<void>;
|
|
12
|
+
loadNotificationProfiles: () => Promise<void>;
|
|
13
|
+
deleteDevice: (guid: string) => Promise<void>;
|
|
14
|
+
generateDeviceToken: () => Promise<any>;
|
|
15
|
+
updateDevice: (device: Device) => Promise<void>;
|
|
16
|
+
updateNotificationProfile: (profile: NotificationProfile) => Promise<void>;
|
|
17
|
+
}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { BeatApi, Beat, GlobalStore, Tag, Tagging, Transaction, TransactionRule } from '../../common';
|
|
2
2
|
import { TransactionApi } from '../api/TransactionApi';
|
|
3
3
|
import { UiStore } from './UiStore';
|
|
4
|
-
interface OptionalProps {
|
|
5
|
-
taggings: Tagging[];
|
|
6
|
-
tags: Tag[];
|
|
7
|
-
transactionRules: TransactionRule[];
|
|
8
|
-
transactions: Transaction[];
|
|
9
|
-
associatedBeats: Beat[];
|
|
10
|
-
updateExternallyManagedTransactions?: (transactions: Transaction[]) => void;
|
|
11
|
-
}
|
|
12
4
|
export type TransactionFilter = {
|
|
13
5
|
accounts?: string[];
|
|
14
6
|
dateRange?: {
|
|
@@ -24,27 +16,17 @@ export declare class TransactionStore {
|
|
|
24
16
|
globalStore: GlobalStore;
|
|
25
17
|
uiStore: UiStore;
|
|
26
18
|
isLoading: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Required props if data is externally managed
|
|
29
|
-
* @property {Array} tags array of tags
|
|
30
|
-
* @property {Array} transactionRules array of transactionRules
|
|
31
|
-
* @property {Array} transactions array of transactions
|
|
32
|
-
* @property {Array} associatedBeats array of associatedBeats
|
|
33
|
-
* @property {function} updateExternallyManagedTransactions Updater function for external data manager
|
|
34
|
-
*/
|
|
35
19
|
taggings: Tagging[];
|
|
36
20
|
tags: Tag[];
|
|
37
21
|
transactionRules: TransactionRule[];
|
|
38
22
|
transactions: Transaction[];
|
|
39
23
|
associatedBeats: Beat[];
|
|
40
|
-
updateExternallyManagedTransactions: ((transactions: Transaction[]) => void) | undefined;
|
|
41
|
-
shouldManageDataExternally: boolean;
|
|
42
24
|
cachedStartDate: Date;
|
|
43
25
|
onAnalyticEvent: (event: string, session: import('../analytics').AnalyticSession | null) => Promise<any>;
|
|
44
26
|
sortColumn: string;
|
|
45
27
|
sortDirection: string;
|
|
46
28
|
filter: TransactionFilter;
|
|
47
|
-
constructor(globalStore: GlobalStore
|
|
29
|
+
constructor(globalStore: GlobalStore);
|
|
48
30
|
initialize: (endpoint: string, token: string) => Promise<void>;
|
|
49
31
|
get sortedTransactions(): Transaction[];
|
|
50
32
|
addTag: (name: string) => Promise<void>;
|
|
@@ -126,4 +108,3 @@ export declare class TransactionStore {
|
|
|
126
108
|
updateTag: (tag: Tag) => Promise<void>;
|
|
127
109
|
updateTransaction: (transaction: Transaction) => Promise<void>;
|
|
128
110
|
}
|
|
129
|
-
export {};
|
package/package.json
CHANGED
|
@@ -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 };
|
package/dist/insights/index.d.ts
DELETED
|
@@ -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,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,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,2 +0,0 @@
|
|
|
1
|
-
import { DisabledBeatTemplate, CategoryMapping, SubcategoryMapping, BeatCategory } from '../settings/hiddeninsights/types/index';
|
|
2
|
-
export declare const organizeBeats: (beatTemplatesWithCategories: DisabledBeatTemplate[]) => [BeatCategory[], CategoryMapping, SubcategoryMapping];
|