@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.
Files changed (146) hide show
  1. package/README.md +11 -11
  2. package/dist/modules/components/apps_menu.d.ts +6 -2
  3. package/dist/modules/components/outsider.d.ts +1 -1
  4. package/dist/modules/formatters.d.ts +13 -1
  5. package/dist/modules/mono_app_text.d.ts +0 -5
  6. package/dist/topbar.js +1 -1
  7. package/dist/topbar.js.map +1 -1
  8. package/dist/topbar.modern.js +1 -1
  9. package/dist/topbar.modern.js.map +1 -1
  10. package/dist/topbar.module.js +1 -1
  11. package/dist/topbar.module.js.map +1 -1
  12. package/dist/topbar.umd.js +1 -1
  13. package/dist/topbar.umd.js.map +1 -1
  14. package/dist/types/index.d.ts +1 -0
  15. package/dist/types/index.d.ts.map +1 -1
  16. package/dist/types/modules/apps_provider.d.ts +1 -1
  17. package/dist/types/modules/apps_provider.d.ts.map +1 -1
  18. package/dist/types/modules/avatar.d.ts +2 -3
  19. package/dist/types/modules/avatar.d.ts.map +1 -1
  20. package/dist/types/modules/client_storage.d.ts +2 -2
  21. package/dist/types/modules/client_storage.d.ts.map +1 -1
  22. package/dist/types/modules/color_app_icon.d.ts +0 -1
  23. package/dist/types/modules/color_app_icon.d.ts.map +1 -1
  24. package/dist/types/modules/color_app_squircles.d.ts +0 -1
  25. package/dist/types/modules/color_app_squircles.d.ts.map +1 -1
  26. package/dist/types/modules/components/apps_button.d.ts +0 -1
  27. package/dist/types/modules/components/apps_button.d.ts.map +1 -1
  28. package/dist/types/modules/components/apps_menu.d.ts +0 -1
  29. package/dist/types/modules/components/apps_menu.d.ts.map +1 -1
  30. package/dist/types/modules/components/conditional_wrap.d.ts +1 -1
  31. package/dist/types/modules/components/conditional_wrap.d.ts.map +1 -1
  32. package/dist/types/modules/components/eyebrow.d.ts +1 -1
  33. package/dist/types/modules/components/eyebrow.d.ts.map +1 -1
  34. package/dist/types/modules/components/hoverable.d.ts +1 -1
  35. package/dist/types/modules/components/hoverable.d.ts.map +1 -1
  36. package/dist/types/modules/components/hoverable_list_item.d.ts +1 -1
  37. package/dist/types/modules/components/hoverable_list_item.d.ts.map +1 -1
  38. package/dist/types/modules/components/notification_bell.d.ts +0 -1
  39. package/dist/types/modules/components/notification_bell.d.ts.map +1 -1
  40. package/dist/types/modules/components/notification_item.d.ts +0 -1
  41. package/dist/types/modules/components/notification_item.d.ts.map +1 -1
  42. package/dist/types/modules/components/notifications_menu.d.ts +0 -1
  43. package/dist/types/modules/components/notifications_menu.d.ts.map +1 -1
  44. package/dist/types/modules/components/notifications_menu_blank_state.d.ts +0 -1
  45. package/dist/types/modules/components/notifications_menu_blank_state.d.ts.map +1 -1
  46. package/dist/types/modules/components/notifications_menu_wrapper.d.ts +1 -1
  47. package/dist/types/modules/components/notifications_menu_wrapper.d.ts.map +1 -1
  48. package/dist/types/modules/components/outsider.d.ts +1 -1
  49. package/dist/types/modules/components/outsider.d.ts.map +1 -1
  50. package/dist/types/modules/components/popover_root.d.ts +1 -1
  51. package/dist/types/modules/components/popover_root.d.ts.map +1 -1
  52. package/dist/types/modules/components/popup.d.ts +1 -1
  53. package/dist/types/modules/components/popup.d.ts.map +1 -1
  54. package/dist/types/modules/components/popup_root.d.ts +1 -1
  55. package/dist/types/modules/components/popup_root.d.ts.map +1 -1
  56. package/dist/types/modules/components/spinner.d.ts +0 -1
  57. package/dist/types/modules/components/spinner.d.ts.map +1 -1
  58. package/dist/types/modules/connected_people_provider.d.ts +3 -3
  59. package/dist/types/modules/connected_people_provider.d.ts.map +1 -1
  60. package/dist/types/modules/display_switch.d.ts +2 -2
  61. package/dist/types/modules/display_switch.d.ts.map +1 -1
  62. package/dist/types/modules/error_boundary.d.ts +25 -0
  63. package/dist/types/modules/error_boundary.d.ts.map +1 -0
  64. package/dist/types/modules/hooks/use_notifications.d.ts.map +1 -1
  65. package/dist/types/modules/hooks/use_topbar_api.d.ts +2 -2
  66. package/dist/types/modules/hooks/use_topbar_api.d.ts.map +1 -1
  67. package/dist/types/modules/mfa_status.d.ts +0 -1
  68. package/dist/types/modules/mfa_status.d.ts.map +1 -1
  69. package/dist/types/modules/mono_app_icon.d.ts +0 -1
  70. package/dist/types/modules/mono_app_icon.d.ts.map +1 -1
  71. package/dist/types/modules/mono_app_name.d.ts +0 -1
  72. package/dist/types/modules/mono_app_name.d.ts.map +1 -1
  73. package/dist/types/modules/mono_app_symbols.d.ts +0 -1
  74. package/dist/types/modules/mono_app_symbols.d.ts.map +1 -1
  75. package/dist/types/modules/mono_app_text.d.ts +0 -1
  76. package/dist/types/modules/mono_app_text.d.ts.map +1 -1
  77. package/dist/types/modules/not_small_topbar/index.d.ts +27 -0
  78. package/dist/types/modules/not_small_topbar/index.d.ts.map +1 -0
  79. package/dist/types/modules/not_small_topbar.d.ts +1 -1
  80. package/dist/types/modules/not_small_topbar.d.ts.map +1 -1
  81. package/dist/types/modules/platform_announcements.d.ts +3 -3
  82. package/dist/types/modules/platform_announcements.d.ts.map +1 -1
  83. package/dist/types/modules/product_announcement.d.ts +1 -1
  84. package/dist/types/modules/product_announcement.d.ts.map +1 -1
  85. package/dist/types/modules/small_topbar.d.ts +0 -1
  86. package/dist/types/modules/small_topbar.d.ts.map +1 -1
  87. package/dist/types/modules/styled_root.d.ts +0 -1
  88. package/dist/types/modules/styled_root.d.ts.map +1 -1
  89. package/dist/types/modules/symbols.d.ts +0 -1
  90. package/dist/types/modules/symbols.d.ts.map +1 -1
  91. package/dist/types/modules/toolbar/components/drawer.d.ts +5 -0
  92. package/dist/types/modules/toolbar/components/drawer.d.ts.map +1 -0
  93. package/dist/types/modules/toolbar/components/drawer_header.d.ts +5 -0
  94. package/dist/types/modules/toolbar/components/drawer_header.d.ts.map +1 -0
  95. package/dist/types/modules/toolbar/components/drawer_heading.d.ts +5 -0
  96. package/dist/types/modules/toolbar/components/drawer_heading.d.ts.map +1 -0
  97. package/dist/types/modules/toolbar/components/index.d.ts +5 -0
  98. package/dist/types/modules/toolbar/components/index.d.ts.map +1 -0
  99. package/dist/types/modules/toolbar/components/user_profile.d.ts +11 -0
  100. package/dist/types/modules/toolbar/components/user_profile.d.ts.map +1 -0
  101. package/dist/types/modules/toolbar/hooks/index.d.ts +2 -0
  102. package/dist/types/modules/toolbar/hooks/index.d.ts.map +1 -0
  103. package/dist/types/modules/toolbar/hooks/use-toolbar-reducer.d.ts +20 -0
  104. package/dist/types/modules/toolbar/hooks/use-toolbar-reducer.d.ts.map +1 -0
  105. package/dist/types/modules/toolbar/hooks/use_toolbar_reducer.d.ts +20 -0
  106. package/dist/types/modules/toolbar/hooks/use_toolbar_reducer.d.ts.map +1 -0
  107. package/dist/types/modules/toolbar/index.d.ts +8 -0
  108. package/dist/types/modules/toolbar/index.d.ts.map +1 -0
  109. package/dist/types/modules/toolbar/tools/index.d.ts +3 -0
  110. package/dist/types/modules/toolbar/tools/index.d.ts.map +1 -0
  111. package/dist/types/modules/toolbar/tools/notifications.d.ts +4 -0
  112. package/dist/types/modules/toolbar/tools/notifications.d.ts.map +1 -0
  113. package/dist/types/modules/toolbar/tools/profile.d.ts +7 -0
  114. package/dist/types/modules/toolbar/tools/profile.d.ts.map +1 -0
  115. package/dist/types/modules/toolbar/tools/tasks.d.ts +4 -0
  116. package/dist/types/modules/toolbar/tools/tasks.d.ts.map +1 -0
  117. package/dist/types/modules/topbar_context.d.ts +1 -0
  118. package/dist/types/modules/topbar_context.d.ts.map +1 -1
  119. package/dist/types/modules/unbutton.d.ts +0 -1
  120. package/dist/types/modules/unbutton.d.ts.map +1 -1
  121. package/package.json +5 -2
  122. package/CHANGELOG.md +0 -210
  123. package/dist/modules/colors.d.ts +0 -46
  124. package/dist/modules/components/NotificationsMenuBlankState.d.ts +0 -12
  125. package/dist/modules/components/apps_button.d.ts +0 -10
  126. package/dist/modules/components/conditional_wrap.d.ts +0 -7
  127. package/dist/modules/components/eyebrow.d.ts +0 -6
  128. package/dist/modules/components/hoverable.d.ts +0 -11
  129. package/dist/modules/components/notification_bell.d.ts +0 -6
  130. package/dist/modules/components/notification_item.d.ts +0 -11
  131. package/dist/modules/components/notifications_inbox.d.ts +0 -18
  132. package/dist/modules/components/notifications_menu.d.ts +0 -17
  133. package/dist/modules/components/notifications_menu_Wrapper.d.ts +0 -7
  134. package/dist/modules/components/notifications_menu_blank_state.d.ts +0 -8
  135. package/dist/modules/components/popup_root.d.ts +0 -6
  136. package/dist/modules/components/spinner.d.ts +0 -4
  137. package/dist/modules/dummy_data.d.ts +0 -3
  138. package/dist/modules/hooks/use_hover.d.ts +0 -3
  139. package/dist/modules/hooks/use_local_storage.d.ts +0 -10
  140. package/dist/modules/hooks/use_notifications.d.ts +0 -16
  141. package/dist/modules/hooks/use_topbar_api.d.ts +0 -8
  142. package/dist/modules/topbar_context.d.ts +0 -5
  143. package/dist/topbar +0 -2
  144. package/dist/topbar.map +0 -1
  145. package/dist/types/modules/interfaces.d.ts +0 -55
  146. 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/ministrycentered/jolt-client/) connection.
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/ministrycentered/api/blob/master/app/javascript/components/api_topbar.jsx)
141
- - [Accounts](https://github.com/ministrycentered/accounts/blob/master/app/javascript/components/accounts_topbar.jsx)
142
- - [Calendar](https://github.com/ministrycentered/resources/blob/master/app/javascript/components/CalendarTopbar.jsx)
143
- - [Check-Ins](https://github.com/ministrycentered/check-ins/blob/master/app/javascript/components/checkins_topbar.js)
144
- - [Giving](https://github.com/ministrycentered/giving/blob/master/app/javascript/application/components/giving_topbar.jsx)
145
- - [Groups](https://github.com/ministrycentered/groups/blob/master/app/javascript/application/components/groups_topbar.js)
146
- - [People](https://github.com/ministrycentered/people/blob/master/app/javascript/components/people_topbar.jsx)
147
- - [Publishing](https://github.com/ministrycentered/publishing/blob/master/app/javascript/src/PublishingTopbar.js)
148
- - [Registrations](https://github.com/ministrycentered/registrations/blob/master/app/javascript/components/registrations_topbar.jsx)
149
- - [Services](https://github.com/ministrycentered/services/blob/master/app/javascript/components/ServicesTopbar.js)
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: App[];
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,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  export default class Outsider extends React.Component<{
3
- cleanup: boolean;
4
3
  component: any;
4
+ cleanup: boolean;
5
5
  onOutsideClick: any;
6
6
  visible: boolean;
7
7
  }, {}> {
@@ -1,3 +1,15 @@
1
- import { App, ConnectedPerson } from "./interfaces";
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;