@planningcenter/topbar 8.2.0-rc.3 → 8.2.1
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/modules/api_request.d.ts +5 -0
- package/dist/modules/components/apps_menu.d.ts +6 -2
- package/dist/modules/components/conditional_wrap.d.ts +1 -1
- package/dist/modules/components/notifications_menu.d.ts +3 -1
- package/dist/modules/components/notifications_menu_blank_state.d.ts +1 -1
- package/dist/modules/components/{notifications_menu_Wrapper.d.ts → notifications_menu_wrapper.d.ts} +0 -0
- package/dist/modules/formatters.d.ts +13 -1
- package/dist/modules/hooks/use_notifications.d.ts +1 -2
- package/dist/modules/medium_topbar.d.ts +34 -38
- package/dist/modules/not_small_topbar.d.ts +39 -82
- package/dist/modules/small_topbar.d.ts +39 -42
- package/dist/modules/symbols.d.ts +34 -8
- package/dist/topbar.js +1 -1
- package/dist/topbar.js.map +1 -1
- package/dist/topbar.modern.js +1 -1
- package/dist/topbar.modern.js.map +1 -1
- package/dist/topbar.module.js +1 -1
- package/dist/topbar.module.js.map +1 -1
- package/dist/topbar.umd.js +1 -1
- package/dist/topbar.umd.js.map +1 -1
- package/dist/types/modules/dummy_data.d.ts +4 -0
- package/dist/types/modules/dummy_data.d.ts.map +1 -0
- package/dist/types/modules/hooks/use_local_notifications.d.ts +9 -0
- package/dist/types/modules/hooks/use_local_notifications.d.ts.map +1 -0
- package/dist/types/modules/small_topbar.d.ts.map +1 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -167
- package/dist/modules/components/NotificationsMenuBlankState.d.ts +0 -12
- package/dist/modules/components/notifications_inbox.d.ts +0 -18
- package/dist/modules/dummy_data.d.ts +0 -3
- package/dist/modules/hooks/use_local_storage.d.ts +0 -10
- package/dist/modules/hooks/use_topbar_api.d.ts +0 -8
- package/dist/modules/topbar_context.d.ts +0 -5
- package/dist/topbar +0 -2
- package/dist/topbar.map +0 -1
- package/dist/types/modules/interfaces.d.ts +0 -55
- package/dist/types/modules/interfaces.d.ts.map +0 -1
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as PCO_URL from "@planningcenter/url";
|
|
3
|
-
import { App } from "../interfaces";
|
|
4
3
|
declare const AppsMenu: ({ appName, apps, env, toggle, visible, }: {
|
|
5
4
|
appName: string;
|
|
6
|
-
apps:
|
|
5
|
+
apps: {
|
|
6
|
+
attributes: {
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
};
|
|
10
|
+
}[];
|
|
7
11
|
env: PCO_URL.Environment;
|
|
8
12
|
toggle: any;
|
|
9
13
|
visible: boolean;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import * as PCO_URL from "@planningcenter/url";
|
|
2
3
|
import { Notification } from "../interfaces";
|
|
3
|
-
declare const NotificationsMenu: ({ handleMarkAllAsRead, handleMarkAsRead, handleToggleRead, hasError, isLoading, mobile, notifications: { read, unread }, toggle, visible, }: {
|
|
4
|
+
declare const NotificationsMenu: ({ env, handleMarkAllAsRead, handleMarkAsRead, handleToggleRead, hasError, isLoading, mobile, notifications: { read, unread }, toggle, visible, }: {
|
|
5
|
+
env: PCO_URL.Environment;
|
|
4
6
|
handleMarkAllAsRead: () => any;
|
|
5
7
|
handleMarkAsRead: (notification: Notification) => any;
|
|
6
8
|
handleToggleRead: (notification: Notification) => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const NotificationsMenuBlankState: ({ dark, description, style, title, }: {
|
|
2
|
+
declare const NotificationsMenuBlankState: ({ dark, description, style, title, ...props }: {
|
|
3
3
|
dark?: boolean;
|
|
4
4
|
description: string;
|
|
5
5
|
style?: object;
|
package/dist/modules/components/{notifications_menu_Wrapper.d.ts → notifications_menu_wrapper.d.ts}
RENAMED
|
File without changes
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
export interface App {
|
|
2
|
+
attributes: {
|
|
3
|
+
name: string;
|
|
4
|
+
url: string;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export interface ConnectedPerson {
|
|
8
|
+
id: number;
|
|
9
|
+
attributes: {
|
|
10
|
+
name: string;
|
|
11
|
+
organization_name: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
2
14
|
export declare const appsMenuFormatter: (apps: App[]) => App[];
|
|
3
15
|
export declare const connectedPeopleMenuFormatter: (connectedPeople: ConnectedPerson[]) => ConnectedPerson[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as PCO_URL from "@planningcenter/url";
|
|
2
2
|
import { Notification } from "../interfaces";
|
|
3
|
-
declare const useNotifications: ({
|
|
4
|
-
disabled?: boolean;
|
|
3
|
+
declare const useNotifications: ({ env, userId, }: {
|
|
5
4
|
env: PCO_URL.Environment;
|
|
6
5
|
userId: string;
|
|
7
6
|
}) => {
|
|
@@ -1,46 +1,42 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import * as PCO_URL from "@planningcenter/url";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
userMenuVisible: boolean;
|
|
34
|
-
}> {
|
|
35
|
-
constructor(props: any);
|
|
36
|
-
static defaultProps: {
|
|
3
|
+
declare const Topbar: {
|
|
4
|
+
(props: {
|
|
5
|
+
apps: {
|
|
6
|
+
attributes: {
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
};
|
|
10
|
+
}[];
|
|
11
|
+
env: PCO_URL.Environment;
|
|
12
|
+
appName: string;
|
|
13
|
+
routes: any;
|
|
14
|
+
colors: any;
|
|
15
|
+
userAvatarPath: string;
|
|
16
|
+
userId: string;
|
|
17
|
+
userName: string;
|
|
18
|
+
orgName: string;
|
|
19
|
+
connectedPeople: any;
|
|
20
|
+
search?: any;
|
|
21
|
+
style?: any;
|
|
22
|
+
showOrgName?: boolean;
|
|
23
|
+
notifications?: any;
|
|
24
|
+
requestAppsFetch: any;
|
|
25
|
+
requestConnectedPeopleFetch: any;
|
|
26
|
+
requestUnlinkConnectedPeople: any;
|
|
27
|
+
requestSwitchConnectedPerson: any;
|
|
28
|
+
requestClearAppsCache: any;
|
|
29
|
+
requestClearConnectedPeopleCache: any;
|
|
30
|
+
linkToProfile?: boolean;
|
|
31
|
+
}): JSX.Element;
|
|
32
|
+
defaultProps: {
|
|
37
33
|
currentRouteComponent: (props: any) => JSX.Element;
|
|
38
34
|
};
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
export declare const Route: ({ active, style, name, ...props }: {
|
|
35
|
+
};
|
|
36
|
+
declare const Route: ({ active, style, name, ...props }: {
|
|
42
37
|
[x: string]: any;
|
|
43
38
|
active: any;
|
|
44
39
|
style: any;
|
|
45
40
|
name?: string;
|
|
46
41
|
}) => JSX.Element;
|
|
42
|
+
export { Route, Topbar };
|
|
@@ -1,91 +1,48 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as PCO_URL from "@planningcenter/url";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
apps: {
|
|
36
|
-
attributes: {
|
|
37
|
-
name: string;
|
|
38
|
-
url: string;
|
|
39
|
-
};
|
|
40
|
-
}[];
|
|
41
|
-
activeRoute: string;
|
|
42
|
-
env: PCO_URL.Environment;
|
|
43
|
-
appName: string;
|
|
44
|
-
routes: any;
|
|
45
|
-
colors: any;
|
|
46
|
-
userAvatarPath: string;
|
|
47
|
-
userId: string;
|
|
48
|
-
userName: string;
|
|
49
|
-
orgName: string;
|
|
50
|
-
connectedPeople: any;
|
|
51
|
-
search?: any;
|
|
52
|
-
style?: any;
|
|
53
|
-
showOrgName?: boolean;
|
|
54
|
-
notifications?: any;
|
|
55
|
-
requestAppsFetch: any;
|
|
56
|
-
requestConnectedPeopleFetch: any;
|
|
57
|
-
requestUnlinkConnectedPeople: any;
|
|
58
|
-
requestSwitchConnectedPerson: any;
|
|
59
|
-
requestClearAppsCache: any;
|
|
60
|
-
requestClearConnectedPeopleCache: any;
|
|
61
|
-
linkToProfile?: boolean;
|
|
62
|
-
onLinkToProfileClick?: () => any;
|
|
63
|
-
}, {
|
|
64
|
-
appsMenuVisible: boolean;
|
|
65
|
-
userMenuVisible: boolean;
|
|
66
|
-
routesVisible: boolean;
|
|
67
|
-
}> {
|
|
68
|
-
static defaultProps: {
|
|
69
|
-
notifications: () => any;
|
|
3
|
+
declare const Topbar: {
|
|
4
|
+
(props: {
|
|
5
|
+
apps: {
|
|
6
|
+
attributes: {
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
};
|
|
10
|
+
}[];
|
|
11
|
+
activeRoute: string;
|
|
12
|
+
env: PCO_URL.Environment;
|
|
13
|
+
appName: string;
|
|
14
|
+
routes: any;
|
|
15
|
+
colors: any;
|
|
16
|
+
userAvatarPath: string;
|
|
17
|
+
userId: string;
|
|
18
|
+
userName: string;
|
|
19
|
+
orgName: string;
|
|
20
|
+
connectedPeople: any;
|
|
21
|
+
search?: any;
|
|
22
|
+
style?: any;
|
|
23
|
+
showOrgName?: boolean;
|
|
24
|
+
requestAppsFetch: any;
|
|
25
|
+
requestConnectedPeopleFetch: any;
|
|
26
|
+
requestUnlinkConnectedPeople: any;
|
|
27
|
+
requestSwitchConnectedPerson: any;
|
|
28
|
+
requestClearAppsCache: any;
|
|
29
|
+
requestClearConnectedPeopleCache: any;
|
|
30
|
+
useDummyNotifications?: boolean;
|
|
31
|
+
linkToProfile?: boolean;
|
|
32
|
+
onLinkToProfileClick?: () => any;
|
|
33
|
+
}): JSX.Element;
|
|
34
|
+
defaultProps: {
|
|
70
35
|
search: () => any;
|
|
71
36
|
linkToProfile: boolean;
|
|
72
37
|
showOrgName: boolean;
|
|
38
|
+
useDummyNotifications: boolean;
|
|
73
39
|
};
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
showRoutes(): void;
|
|
77
|
-
getTextColor(): any;
|
|
78
|
-
render(): JSX.Element;
|
|
79
|
-
}
|
|
80
|
-
export declare class Route extends React.Component<{
|
|
40
|
+
};
|
|
41
|
+
declare const Route: ({ active, colors, style, ...nativeProps }: {
|
|
81
42
|
active: boolean;
|
|
43
|
+
children: React.ReactNode;
|
|
82
44
|
colors: any;
|
|
83
|
-
style?: object;
|
|
84
45
|
href?: string;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}> {
|
|
89
|
-
constructor(props: any);
|
|
90
|
-
render(): JSX.Element;
|
|
91
|
-
}
|
|
46
|
+
style?: object;
|
|
47
|
+
}) => JSX.Element;
|
|
48
|
+
export { Topbar, Route };
|
|
@@ -1,48 +1,45 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import * as PCO_URL from "@planningcenter/url";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
constructor(props: any);
|
|
39
|
-
static defaultProps: {
|
|
3
|
+
declare const Topbar: {
|
|
4
|
+
(props: {
|
|
5
|
+
apps: {
|
|
6
|
+
attributes: {
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
};
|
|
10
|
+
}[];
|
|
11
|
+
env: PCO_URL.Environment;
|
|
12
|
+
appName: string;
|
|
13
|
+
routes: any;
|
|
14
|
+
colors: any;
|
|
15
|
+
userAvatarPath: string;
|
|
16
|
+
userId: string;
|
|
17
|
+
userName: string;
|
|
18
|
+
orgName: string;
|
|
19
|
+
connectedPeople: {
|
|
20
|
+
id: number;
|
|
21
|
+
attributes: {
|
|
22
|
+
name: string;
|
|
23
|
+
organization_name: string;
|
|
24
|
+
};
|
|
25
|
+
}[];
|
|
26
|
+
style?: any;
|
|
27
|
+
currentRouteComponent?: any;
|
|
28
|
+
requestAppsFetch: any;
|
|
29
|
+
requestConnectedPeopleFetch: any;
|
|
30
|
+
requestUnlinkConnectedPeople: any;
|
|
31
|
+
requestSwitchConnectedPerson: any;
|
|
32
|
+
requestClearAppsCache: any;
|
|
33
|
+
requestClearConnectedPeopleCache: any;
|
|
34
|
+
useDummyNotifications?: boolean;
|
|
35
|
+
notifications?: any;
|
|
36
|
+
}): JSX.Element;
|
|
37
|
+
defaultProps: {
|
|
40
38
|
currentRouteComponent: (props: any) => JSX.Element;
|
|
41
39
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
export declare const Route: ({ active, ...props }: {
|
|
40
|
+
};
|
|
41
|
+
declare const Route: ({ active, ...props }: {
|
|
46
42
|
[x: string]: any;
|
|
47
43
|
active: any;
|
|
48
44
|
}) => JSX.Element;
|
|
45
|
+
export { Route, Topbar };
|
|
@@ -1,16 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Bell:
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Bell: ({ dot, dotFill, fill, style, ...props }: {
|
|
3
3
|
dot?: boolean;
|
|
4
4
|
dotFill?: string;
|
|
5
5
|
fill?: string;
|
|
6
|
-
stroke?: string;
|
|
7
6
|
style?: object;
|
|
8
|
-
}
|
|
9
|
-
export declare const
|
|
7
|
+
}) => JSX.Element;
|
|
8
|
+
export declare const BlankStateIcon: ({ dark, style, ...nativeProps }: {
|
|
9
|
+
dark?: boolean;
|
|
10
|
+
style?: object;
|
|
11
|
+
}) => JSX.Element;
|
|
12
|
+
export declare const ChevronIcon: ({ fill, size, style, ...nativeProps }: {
|
|
13
|
+
fill?: string;
|
|
14
|
+
size?: number;
|
|
15
|
+
style?: object;
|
|
16
|
+
}) => JSX.Element;
|
|
17
|
+
export declare const Cog: ({ fill, size, style, ...nativeProps }: {
|
|
18
|
+
fill?: string;
|
|
19
|
+
size?: number;
|
|
20
|
+
style?: object;
|
|
21
|
+
}) => JSX.Element;
|
|
22
|
+
export declare const DisclosureChevronIcon: ({ colors, style, ...nativeProps }: {
|
|
23
|
+
colors: any;
|
|
24
|
+
style?: object;
|
|
25
|
+
}) => JSX.Element;
|
|
26
|
+
export declare const HelpIcon: ({ colors, style, ...nativeProps }: {
|
|
27
|
+
colors: any;
|
|
28
|
+
style?: object;
|
|
29
|
+
}) => JSX.Element;
|
|
30
|
+
export declare const ExclamationTriangle: ({ fill, size, style, ...nativeProps }: {
|
|
31
|
+
fill?: string;
|
|
32
|
+
size: number;
|
|
33
|
+
style?: object;
|
|
34
|
+
}) => JSX.Element;
|
|
35
|
+
export declare const Spyglass: ({ fill, style, ...nativeProps }: {
|
|
10
36
|
fill?: string;
|
|
11
37
|
style?: object;
|
|
12
|
-
}
|
|
13
|
-
export declare const X:
|
|
38
|
+
}) => JSX.Element;
|
|
39
|
+
export declare const X: ({ fill, style, ...nativeProps }: {
|
|
14
40
|
fill?: string;
|
|
15
41
|
style?: object;
|
|
16
|
-
}
|
|
42
|
+
}) => JSX.Element;
|