@mx-cartographer/experiences 5.0.4 → 5.0.5-alpha.al0
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/dist/index.es.js +2550 -2572
- package/dist/index.es.js.map +1 -1
- package/dist/settings/components/profile/ProfileDialog.d.ts +11 -0
- package/dist/settings/components/profile/ProfileForm.d.ts +12 -0
- package/dist/settings/components/profile/ProfileTab.d.ts +4 -0
- package/dist/settings/stores/SettingsStore.d.ts +8 -4
- package/package.json +1 -1
- package/dist/settings/components/profile/ProfileDetails.d.ts +0 -4
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { User } from '../../../common';
|
|
3
|
+
interface DialogProps {
|
|
4
|
+
dialogType: string;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
onPrimaryAction: (token: string) => void;
|
|
8
|
+
user: User;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: React.FunctionComponent<DialogProps>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { User } from '../../../common';
|
|
3
|
+
interface FormProps {
|
|
4
|
+
setShowModal: React.Dispatch<React.SetStateAction<{
|
|
5
|
+
open: boolean;
|
|
6
|
+
type: string;
|
|
7
|
+
}>>;
|
|
8
|
+
updateUser: (user: User) => Promise<void>;
|
|
9
|
+
user: User;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: React.FunctionComponent<FormProps>;
|
|
12
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Device, NotificationProfile, SettingsCopy } from '../../common';
|
|
1
|
+
import { Device, NotificationProfile, User, GlobalStore, SettingsCopy } from '../../common';
|
|
2
2
|
import { SettingsApi } from '../api/SettingsApi';
|
|
3
3
|
import { AlertProps } from '@mui/material';
|
|
4
4
|
interface SettingsAlertProps {
|
|
@@ -6,16 +6,16 @@ interface SettingsAlertProps {
|
|
|
6
6
|
severity: AlertProps['severity'];
|
|
7
7
|
}
|
|
8
8
|
export declare class SettingsStore {
|
|
9
|
+
globalStore: GlobalStore;
|
|
9
10
|
api: SettingsApi;
|
|
10
|
-
copy: SettingsCopy;
|
|
11
11
|
alert: SettingsAlertProps;
|
|
12
12
|
devices: Device[];
|
|
13
13
|
notificationProfiles: NotificationProfile[];
|
|
14
|
-
constructor();
|
|
15
|
-
setCopy(copy: SettingsCopy): void;
|
|
14
|
+
constructor(globalStore: GlobalStore);
|
|
16
15
|
initialize: (endpoint: string, token: string) => Promise<void>;
|
|
17
16
|
get budgetNotificationProfiles(): NotificationProfile[];
|
|
18
17
|
get accountNotificationProfiles(): NotificationProfile[];
|
|
18
|
+
get copy(): SettingsCopy;
|
|
19
19
|
loadDevices: () => Promise<void>;
|
|
20
20
|
loadNotificationProfiles: () => Promise<void>;
|
|
21
21
|
deleteDevice: (guid: string) => Promise<void>;
|
|
@@ -32,8 +32,12 @@ export declare class SettingsStore {
|
|
|
32
32
|
};
|
|
33
33
|
updateDevice: (device: Device) => Promise<void>;
|
|
34
34
|
updateNotificationProfile: (profile: NotificationProfile) => Promise<void>;
|
|
35
|
+
updateUser: (user: User) => Promise<void>;
|
|
35
36
|
verifyPhoneToken: (sms_verification_token: string) => Promise<{
|
|
36
37
|
success: any;
|
|
37
38
|
}>;
|
|
39
|
+
handleAlerts: (response: {
|
|
40
|
+
success: boolean;
|
|
41
|
+
}, from?: string) => void;
|
|
38
42
|
}
|
|
39
43
|
export {};
|
package/package.json
CHANGED