@planningcenter/topbar 8.3.1 → 8.4.0-alpha.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/README.md +11 -11
- package/dist/modules/components/apps_menu.d.ts +6 -2
- package/dist/modules/components/outsider.d.ts +1 -1
- package/dist/modules/formatters.d.ts +13 -1
- package/dist/modules/mono_app_text.d.ts +0 -5
- 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/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/apps_provider.d.ts +1 -1
- package/dist/types/modules/apps_provider.d.ts.map +1 -1
- package/dist/types/modules/avatar.d.ts +2 -3
- package/dist/types/modules/avatar.d.ts.map +1 -1
- package/dist/types/modules/client_storage.d.ts +2 -2
- package/dist/types/modules/client_storage.d.ts.map +1 -1
- package/dist/types/modules/color_app_icon.d.ts +0 -1
- package/dist/types/modules/color_app_icon.d.ts.map +1 -1
- package/dist/types/modules/color_app_squircles.d.ts +0 -1
- package/dist/types/modules/color_app_squircles.d.ts.map +1 -1
- package/dist/types/modules/components/apps_button.d.ts +0 -1
- package/dist/types/modules/components/apps_button.d.ts.map +1 -1
- package/dist/types/modules/components/apps_menu.d.ts +0 -1
- package/dist/types/modules/components/apps_menu.d.ts.map +1 -1
- package/dist/types/modules/components/conditional_wrap.d.ts +1 -1
- package/dist/types/modules/components/conditional_wrap.d.ts.map +1 -1
- package/dist/types/modules/components/eyebrow.d.ts +1 -1
- package/dist/types/modules/components/eyebrow.d.ts.map +1 -1
- package/dist/types/modules/components/hoverable.d.ts +1 -1
- package/dist/types/modules/components/hoverable.d.ts.map +1 -1
- package/dist/types/modules/components/hoverable_list_item.d.ts +1 -1
- package/dist/types/modules/components/hoverable_list_item.d.ts.map +1 -1
- package/dist/types/modules/components/notification_bell.d.ts +0 -1
- package/dist/types/modules/components/notification_bell.d.ts.map +1 -1
- package/dist/types/modules/components/notification_item.d.ts +0 -1
- package/dist/types/modules/components/notification_item.d.ts.map +1 -1
- package/dist/types/modules/components/notifications_menu.d.ts +0 -1
- package/dist/types/modules/components/notifications_menu.d.ts.map +1 -1
- package/dist/types/modules/components/notifications_menu_blank_state.d.ts +0 -1
- package/dist/types/modules/components/notifications_menu_blank_state.d.ts.map +1 -1
- package/dist/types/modules/components/notifications_menu_wrapper.d.ts +1 -1
- package/dist/types/modules/components/notifications_menu_wrapper.d.ts.map +1 -1
- package/dist/types/modules/components/outsider.d.ts +1 -1
- package/dist/types/modules/components/outsider.d.ts.map +1 -1
- package/dist/types/modules/components/popover_root.d.ts +1 -1
- package/dist/types/modules/components/popover_root.d.ts.map +1 -1
- package/dist/types/modules/components/popup.d.ts +1 -1
- package/dist/types/modules/components/popup.d.ts.map +1 -1
- package/dist/types/modules/components/popup_root.d.ts +1 -1
- package/dist/types/modules/components/popup_root.d.ts.map +1 -1
- package/dist/types/modules/components/spinner.d.ts +0 -1
- package/dist/types/modules/components/spinner.d.ts.map +1 -1
- package/dist/types/modules/connected_people_provider.d.ts +3 -3
- package/dist/types/modules/connected_people_provider.d.ts.map +1 -1
- package/dist/types/modules/display_switch.d.ts +2 -2
- package/dist/types/modules/display_switch.d.ts.map +1 -1
- package/dist/types/modules/error_boundary.d.ts +25 -0
- package/dist/types/modules/error_boundary.d.ts.map +1 -0
- package/dist/types/modules/hooks/use_notifications.d.ts.map +1 -1
- package/dist/types/modules/hooks/use_topbar_api.d.ts +2 -2
- package/dist/types/modules/hooks/use_topbar_api.d.ts.map +1 -1
- package/dist/types/modules/mfa_status.d.ts +0 -1
- package/dist/types/modules/mfa_status.d.ts.map +1 -1
- package/dist/types/modules/mono_app_icon.d.ts +0 -1
- package/dist/types/modules/mono_app_icon.d.ts.map +1 -1
- package/dist/types/modules/mono_app_name.d.ts +0 -1
- package/dist/types/modules/mono_app_name.d.ts.map +1 -1
- package/dist/types/modules/mono_app_symbols.d.ts +0 -1
- package/dist/types/modules/mono_app_symbols.d.ts.map +1 -1
- package/dist/types/modules/mono_app_text.d.ts +0 -1
- package/dist/types/modules/mono_app_text.d.ts.map +1 -1
- package/dist/types/modules/not_small_topbar/index.d.ts +27 -0
- package/dist/types/modules/not_small_topbar/index.d.ts.map +1 -0
- package/dist/types/modules/not_small_topbar.d.ts +1 -1
- package/dist/types/modules/not_small_topbar.d.ts.map +1 -1
- package/dist/types/modules/platform_announcements.d.ts +3 -3
- package/dist/types/modules/platform_announcements.d.ts.map +1 -1
- package/dist/types/modules/product_announcement.d.ts +1 -1
- package/dist/types/modules/product_announcement.d.ts.map +1 -1
- package/dist/types/modules/small_topbar.d.ts +0 -1
- package/dist/types/modules/small_topbar.d.ts.map +1 -1
- package/dist/types/modules/styled_root.d.ts +0 -1
- package/dist/types/modules/styled_root.d.ts.map +1 -1
- package/dist/types/modules/symbols.d.ts +0 -1
- package/dist/types/modules/symbols.d.ts.map +1 -1
- package/dist/types/modules/toolbar/components/drawer.d.ts +5 -0
- package/dist/types/modules/toolbar/components/drawer.d.ts.map +1 -0
- package/dist/types/modules/toolbar/components/drawer_header.d.ts +5 -0
- package/dist/types/modules/toolbar/components/drawer_header.d.ts.map +1 -0
- package/dist/types/modules/toolbar/components/drawer_heading.d.ts +5 -0
- package/dist/types/modules/toolbar/components/drawer_heading.d.ts.map +1 -0
- package/dist/types/modules/toolbar/components/index.d.ts +5 -0
- package/dist/types/modules/toolbar/components/index.d.ts.map +1 -0
- package/dist/types/modules/toolbar/components/user_profile.d.ts +11 -0
- package/dist/types/modules/toolbar/components/user_profile.d.ts.map +1 -0
- package/dist/types/modules/toolbar/hooks/index.d.ts +2 -0
- package/dist/types/modules/toolbar/hooks/index.d.ts.map +1 -0
- package/dist/types/modules/toolbar/hooks/use-toolbar-reducer.d.ts +20 -0
- package/dist/types/modules/toolbar/hooks/use-toolbar-reducer.d.ts.map +1 -0
- package/dist/types/modules/toolbar/hooks/use_toolbar_reducer.d.ts +20 -0
- package/dist/types/modules/toolbar/hooks/use_toolbar_reducer.d.ts.map +1 -0
- package/dist/types/modules/toolbar/index.d.ts +8 -0
- package/dist/types/modules/toolbar/index.d.ts.map +1 -0
- package/dist/types/modules/toolbar/tools/index.d.ts +3 -0
- package/dist/types/modules/toolbar/tools/index.d.ts.map +1 -0
- package/dist/types/modules/toolbar/tools/notifications.d.ts +4 -0
- package/dist/types/modules/toolbar/tools/notifications.d.ts.map +1 -0
- package/dist/types/modules/toolbar/tools/profile.d.ts +7 -0
- package/dist/types/modules/toolbar/tools/profile.d.ts.map +1 -0
- package/dist/types/modules/toolbar/tools/tasks.d.ts +4 -0
- package/dist/types/modules/toolbar/tools/tasks.d.ts.map +1 -0
- package/dist/types/modules/topbar_context.d.ts +1 -0
- package/dist/types/modules/topbar_context.d.ts.map +1 -1
- package/dist/types/modules/unbutton.d.ts +0 -1
- package/dist/types/modules/unbutton.d.ts.map +1 -1
- package/package.json +5 -2
- package/CHANGELOG.md +0 -210
- package/dist/modules/colors.d.ts +0 -46
- package/dist/modules/components/NotificationsMenuBlankState.d.ts +0 -12
- package/dist/modules/components/apps_button.d.ts +0 -10
- package/dist/modules/components/conditional_wrap.d.ts +0 -7
- package/dist/modules/components/eyebrow.d.ts +0 -6
- package/dist/modules/components/hoverable.d.ts +0 -11
- package/dist/modules/components/notification_bell.d.ts +0 -6
- package/dist/modules/components/notification_item.d.ts +0 -11
- package/dist/modules/components/notifications_inbox.d.ts +0 -18
- package/dist/modules/components/notifications_menu.d.ts +0 -17
- package/dist/modules/components/notifications_menu_Wrapper.d.ts +0 -7
- package/dist/modules/components/notifications_menu_blank_state.d.ts +0 -8
- package/dist/modules/components/popup_root.d.ts +0 -6
- package/dist/modules/components/spinner.d.ts +0 -4
- package/dist/modules/dummy_data.d.ts +0 -3
- package/dist/modules/hooks/use_hover.d.ts +0 -3
- package/dist/modules/hooks/use_local_storage.d.ts +0 -10
- package/dist/modules/hooks/use_notifications.d.ts +0 -16
- 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
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ For a handful of reasons (not least of which is because we pay per Jolt connecti
|
|
|
31
31
|
**Note that this connection sharing is entirely optional for the parent app, but strongly encouraged.**
|
|
32
32
|
If a Jolt connection is not shared with topbar, it will gladly initiate its own connection specifically for its purposes.
|
|
33
33
|
|
|
34
|
-
To reuse your app's Jolt connection, topbar requires a Promise that resolves into a [Jolt client](https://github.com/
|
|
34
|
+
To reuse your app's Jolt connection, topbar requires a Promise that resolves into a [Jolt client](https://github.com/planningcenter/jolt-client/) connection.
|
|
35
35
|
If nothing is passed—or if a Promise is passed that resolves to `undefined` or `void`—topbar will initiate its own connection.
|
|
36
36
|
|
|
37
37
|
Topbar hooks into `pco-page-expired` and will `disconnect` when the session is invalidated (i.e. logged out in a different tab).
|
|
@@ -137,13 +137,13 @@ If you like history, here are the initial release notes with technical considera
|
|
|
137
137
|
|
|
138
138
|
## Example product implementations
|
|
139
139
|
|
|
140
|
-
- [API](https://github.com/
|
|
141
|
-
- [Accounts](https://github.com/
|
|
142
|
-
- [Calendar](https://github.com/
|
|
143
|
-
- [Check-Ins](https://github.com/
|
|
144
|
-
- [Giving](https://github.com/
|
|
145
|
-
- [Groups](https://github.com/
|
|
146
|
-
- [People](https://github.com/
|
|
147
|
-
- [Publishing](https://github.com/
|
|
148
|
-
- [Registrations](https://github.com/
|
|
149
|
-
- [Services](https://github.com/
|
|
140
|
+
- [API](https://github.com/planningcenter/api/blob/master/app/javascript/components/api_topbar.jsx)
|
|
141
|
+
- [Accounts](https://github.com/planningcenter/accounts/blob/master/app/javascript/components/accounts_topbar.jsx)
|
|
142
|
+
- [Calendar](https://github.com/planningcenter/calendar/blob/master/app/javascript/components/CalendarTopbar.jsx)
|
|
143
|
+
- [Check-Ins](https://github.com/planningcenter/check-ins/blob/master/app/javascript/components/checkins_topbar.js)
|
|
144
|
+
- [Giving](https://github.com/planningcenter/giving/blob/master/app/javascript/application/components/giving_topbar.jsx)
|
|
145
|
+
- [Groups](https://github.com/planningcenter/groups/blob/master/app/javascript/application/components/groups_topbar.js)
|
|
146
|
+
- [People](https://github.com/planningcenter/people/blob/master/app/javascript/components/people_topbar.jsx)
|
|
147
|
+
- [Publishing](https://github.com/planningcenter/publishing/blob/master/app/javascript/src/PublishingTopbar.js)
|
|
148
|
+
- [Registrations](https://github.com/planningcenter/registrations/blob/master/app/javascript/components/registrations_topbar.jsx)
|
|
149
|
+
- [Services](https://github.com/planningcenter/services/blob/master/app/javascript/components/ServicesTopbar.js)
|
|
@@ -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,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,9 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare function Accounts({ color, size, ...platformProps }: {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
color: any;
|
|
5
|
-
size?: number;
|
|
6
|
-
}): JSX.Element;
|
|
7
2
|
export declare function API({ color, size, ...platformProps }: {
|
|
8
3
|
[x: string]: any;
|
|
9
4
|
color: any;
|