@mx-cartographer/experiences 6.14.2-alpha.san1 → 6.14.2-alpha.san3

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 (24) hide show
  1. package/CHANGELOG.md +21 -1
  2. package/dist/common/components/listitems/ToggleButtonListItem.d.ts +4 -1
  3. package/dist/common/components/listitems/ToggleListItem.d.ts +2 -1
  4. package/dist/common/types/Notification.d.ts +13 -24
  5. package/dist/common/types/index.d.ts +2 -2
  6. package/dist/common/types/localization/SettingsCopy.d.ts +8 -0
  7. package/dist/common/utils/AccountFilter.d.ts +1 -1
  8. package/dist/index.es.js +6598 -6650
  9. package/dist/index.es.js.map +1 -1
  10. package/dist/notifications/components/NotificationDrawer.d.ts +2 -3
  11. package/dist/notifications/constants/NotificationConstants.d.ts +1 -2
  12. package/dist/settings/components/notifications/AccountNotificationProfile.d.ts +9 -0
  13. package/dist/settings/components/notifications/AccountNotificationProfiles.d.ts +3 -0
  14. package/dist/settings/components/notifications/BudgetNotificationProfiles.d.ts +3 -0
  15. package/dist/settings/components/notifications/InsightsNotificationProfiles.d.ts +3 -0
  16. package/dist/settings/components/notifications/NotificationProfile.d.ts +8 -0
  17. package/dist/settings/components/notifications/NotificationSettings.d.ts +2 -7
  18. package/dist/settings/constants/Settings.d.ts +0 -2
  19. package/dist/settings/index.d.ts +4 -1
  20. package/dist/settings/stores/SettingsStore.d.ts +2 -6
  21. package/dist/settings/util/Notifications.d.ts +1 -2
  22. package/package.json +1 -1
  23. package/dist/settings/components/notifications/InsightsNotificationTypes.d.ts +0 -2
  24. package/dist/settings/components/notifications/NotificationProfileDetails.d.ts +0 -9
@@ -1,7 +1,6 @@
1
- import { Notification } from '../../common';
2
- import { Types } from '../../settings/components/notifications/NotificationSettings';
1
+ import { Notification, NotificationTypes } from '../../common';
3
2
  interface NotificationDrawerProps {
4
- notificationTypes?: Types[];
3
+ notificationTypes?: NotificationTypes[];
5
4
  isOpen: boolean;
6
5
  onClose: () => void;
7
6
  onNotificationClick?: (notification: Notification) => void;
@@ -1,2 +1 @@
1
- import { NotificationType } from '../../common';
2
- export declare const getNotificationDetailRoute: (notificationType: NotificationType) => string | null;
1
+ export declare const getNotificationDetailRoute: (notificationType: number) => string | null;
@@ -0,0 +1,9 @@
1
+ import { DetailedNotificationProfile } from '../../../common';
2
+ interface AccountNotificationProfileProps {
3
+ onUpdateProfile: (profile: DetailedNotificationProfile) => void;
4
+ profile: DetailedNotificationProfile;
5
+ }
6
+ export declare const AccountNotificationProfile: (({ onUpdateProfile, profile }: AccountNotificationProfileProps) => import("react/jsx-runtime").JSX.Element) & {
7
+ displayName: string;
8
+ };
9
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const AccountNotificationProfiles: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
@@ -0,0 +1,3 @@
1
+ export declare const BudgetNotificationProfiles: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
@@ -0,0 +1,3 @@
1
+ export declare const InsightsNotificationProfiles: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
@@ -0,0 +1,8 @@
1
+ import { DetailedNotificationProfile } from '../../../common';
2
+ interface BudgetNotificationProfileProps {
3
+ profile: DetailedNotificationProfile;
4
+ }
5
+ export declare const NotificationProfile: (({ profile }: BudgetNotificationProfileProps) => import("react/jsx-runtime").JSX.Element) & {
6
+ displayName: string;
7
+ };
8
+ export {};
@@ -1,11 +1,6 @@
1
1
  import { default as React } from 'react';
2
- export declare enum Types {
3
- Accounts = "accounts",
4
- Budgets = "budgets",
5
- Delivery = "delivery",
6
- Insights = "insights"
7
- }
2
+ import { NotificationTypes } from '../../../common';
8
3
  export interface NotificationSettingsProps {
9
- notificationTypes?: Types[];
4
+ notificationTypes?: NotificationTypes[];
10
5
  }
11
6
  export declare const NotificationSettings: React.FC<NotificationSettingsProps>;
@@ -1,7 +1,5 @@
1
- import { InsightNotificationType } from '../../common/types/Notification';
2
1
  export declare enum DialogType {
3
2
  Delete = "delete",
4
3
  Edit = "edit",
5
4
  Token = "token"
6
5
  }
7
- export declare const InsightNotificationAllowedTypes: Set<InsightNotificationType>;
@@ -5,6 +5,9 @@ export { SettingsWidgetContents } from './components/SettingsWidgetContents';
5
5
  export { default as ProfileTab } from './components/profile/ProfileTab';
6
6
  export { default as DeviceTab } from './components/devices/DeviceTab';
7
7
  export { NotificationSettingsWidget } from './NotificationSettingsWidget';
8
- export { NotificationSettings, type NotificationSettingsProps, type Types, } from './components/notifications/NotificationSettings';
8
+ export { NotificationSettings } from './components/notifications/NotificationSettings';
9
+ export { AccountNotificationProfiles } from './components/notifications/AccountNotificationProfiles';
10
+ export { BudgetNotificationProfiles } from './components/notifications/BudgetNotificationProfiles';
11
+ export { InsightsNotificationProfiles } from './components/notifications/InsightsNotificationProfiles';
9
12
  export { default as TransactionRulesTab } from './components/transactionrules/TransactionRulesTab';
10
13
  export { TransactionRulesWidget } from './TransactionRulesWidget';
@@ -1,5 +1,5 @@
1
1
  import { AlertProps } from '@mui/material';
2
- import { GlobalStore, SettingsCopy, TransactionRule, DetailedNotificationProfile, DetailedInsightsNotificationProfile, Device, NotificationProfile, InsightsNotificationProfile, User, UserCommunicationProfile } from '../../common';
2
+ import { GlobalStore, SettingsCopy, TransactionRule, DetailedNotificationProfile, Device, NotificationProfile, User, UserCommunicationProfile } from '../../common';
3
3
  import { SettingsApi } from '../api/SettingsApi';
4
4
  import { TransactionApi } from '../../transactions';
5
5
  interface SettingsAlertProps {
@@ -13,17 +13,15 @@ export declare class SettingsStore {
13
13
  alert: SettingsAlertProps;
14
14
  devices: Device[];
15
15
  notificationProfiles: NotificationProfile[];
16
- insightsNotificationProfiles: InsightsNotificationProfile[];
17
16
  selectedRule: TransactionRule | undefined;
18
17
  transactionRules: TransactionRule[];
19
18
  constructor(globalStore: GlobalStore);
20
19
  get accountProfiles(): DetailedNotificationProfile[];
21
20
  get budgetProfiles(): DetailedNotificationProfile[];
22
- get insightsNotificationTypes(): DetailedInsightsNotificationProfile[];
21
+ get insightsProfiles(): DetailedNotificationProfile[];
23
22
  get clientCommunicationProfile(): import('../../common').ClientCommunicationProfile;
24
23
  get copy(): SettingsCopy;
25
24
  get detailedNotificationProfiles(): DetailedNotificationProfile[];
26
- get detailedInsightsNotificationProfiles(): DetailedInsightsNotificationProfile[];
27
25
  get userCommunicationsProfile(): UserCommunicationProfile;
28
26
  deleteDevice: (guid: string) => Promise<{
29
27
  success: boolean;
@@ -32,7 +30,6 @@ export declare class SettingsStore {
32
30
  generateDeviceToken: () => Promise<any>;
33
31
  loadDevices: () => Promise<void>;
34
32
  loadNotificationProfiles: () => Promise<void>;
35
- loadInsightsNotificationProfiles: () => Promise<void>;
36
33
  loadTransactionRules: () => Promise<void>;
37
34
  sendEmailVerification: () => Promise<void>;
38
35
  sendPhoneVerification: () => Promise<void>;
@@ -45,7 +42,6 @@ export declare class SettingsStore {
45
42
  success: boolean;
46
43
  }>;
47
44
  updateNotificationProfile: (profile: NotificationProfile) => Promise<void>;
48
- updateInsightsNotificationProfile: (profile: InsightsNotificationProfile) => Promise<void>;
49
45
  updateRuleCategory: (rule: TransactionRule) => Promise<void>;
50
46
  updateRulePayee: (rule: TransactionRule) => Promise<void>;
51
47
  updateUser: (user: User) => Promise<void>;
@@ -1,3 +1,2 @@
1
1
  import { Account, ClientCommunicationProfile, DetailedNotificationProfile, NotificationProfile, SettingsCopy, UserCommunicationProfile } from '../../common';
2
- import { InsightsNotificationProfile } from '../../common/types/Notification';
3
- export declare const augmentNotificationProfiles: (accounts: Account[], clientCommunicationsProfile: ClientCommunicationProfile, copy: SettingsCopy, profiles: NotificationProfile[] | InsightsNotificationProfile[], userCommunicationsProfile: UserCommunicationProfile, isForInsightsNotifications?: boolean) => DetailedNotificationProfile[];
2
+ export declare const augmentNotificationProfiles: (accounts: Account[], clientCommunicationsProfile: ClientCommunicationProfile, copy: SettingsCopy, profiles: NotificationProfile[], userCommunicationsProfile: UserCommunicationProfile) => DetailedNotificationProfile[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "6.14.2-alpha.san1",
3
+ "version": "6.14.2-alpha.san3",
4
4
  "description": "Library containing experience widgets",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const InsightsNotificationTypes: React.FC;
@@ -1,9 +0,0 @@
1
- import { DetailedNotificationProfile, NotificationProfile } from '../../../common';
2
- interface NotificationProfileDetailsProps {
3
- onUpdateProfile: (profile: NotificationProfile) => void;
4
- profile: DetailedNotificationProfile;
5
- }
6
- export declare const NotificationProfileDetails: (({ onUpdateProfile, profile }: NotificationProfileDetailsProps) => import("react/jsx-runtime").JSX.Element) & {
7
- displayName: string;
8
- };
9
- export {};