@planningcenter/topbar 8.3.1 → 8.3.2

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 (73) hide show
  1. package/CHANGELOG.md +32 -25
  2. package/README.md +11 -11
  3. package/dist/topbar.js +1 -1
  4. package/dist/topbar.js.map +1 -1
  5. package/dist/topbar.modern.js +1 -1
  6. package/dist/topbar.modern.js.map +1 -1
  7. package/dist/topbar.module.js +1 -1
  8. package/dist/topbar.module.js.map +1 -1
  9. package/dist/topbar.umd.js +1 -1
  10. package/dist/topbar.umd.js.map +1 -1
  11. package/dist/types/modules/hooks/use_notifications.d.ts.map +1 -1
  12. package/package.json +2 -2
  13. package/dist/index.d.ts +0 -10
  14. package/dist/modules/api_request.d.ts +0 -18
  15. package/dist/modules/apps_provider.d.ts +0 -30
  16. package/dist/modules/avatar.d.ts +0 -7
  17. package/dist/modules/client_storage.d.ts +0 -12
  18. package/dist/modules/color_app_icon.d.ts +0 -5
  19. package/dist/modules/color_app_squircles.d.ts +0 -14
  20. package/dist/modules/colors.d.ts +0 -46
  21. package/dist/modules/components/NotificationsMenuBlankState.d.ts +0 -12
  22. package/dist/modules/components/apps_button.d.ts +0 -10
  23. package/dist/modules/components/apps_menu.d.ts +0 -11
  24. package/dist/modules/components/conditional_wrap.d.ts +0 -7
  25. package/dist/modules/components/eyebrow.d.ts +0 -6
  26. package/dist/modules/components/hoverable.d.ts +0 -11
  27. package/dist/modules/components/hoverable_list_item.d.ts +0 -9
  28. package/dist/modules/components/notification_bell.d.ts +0 -6
  29. package/dist/modules/components/notification_item.d.ts +0 -11
  30. package/dist/modules/components/notifications_inbox.d.ts +0 -18
  31. package/dist/modules/components/notifications_menu.d.ts +0 -17
  32. package/dist/modules/components/notifications_menu_Wrapper.d.ts +0 -7
  33. package/dist/modules/components/notifications_menu_blank_state.d.ts +0 -8
  34. package/dist/modules/components/outsider.d.ts +0 -13
  35. package/dist/modules/components/popover_root.d.ts +0 -6
  36. package/dist/modules/components/popup.d.ts +0 -9
  37. package/dist/modules/components/popup_root.d.ts +0 -6
  38. package/dist/modules/components/spinner.d.ts +0 -4
  39. package/dist/modules/connected_people_provider.d.ts +0 -21
  40. package/dist/modules/display_switch.d.ts +0 -26
  41. package/dist/modules/dummy_data.d.ts +0 -3
  42. package/dist/modules/formatters.d.ts +0 -3
  43. package/dist/modules/get_apps_switch_product_path.d.ts +0 -1
  44. package/dist/modules/hooks/use_hover.d.ts +0 -3
  45. package/dist/modules/hooks/use_local_storage.d.ts +0 -10
  46. package/dist/modules/hooks/use_notifications.d.ts +0 -16
  47. package/dist/modules/hooks/use_topbar_api.d.ts +0 -8
  48. package/dist/modules/medium_topbar.d.ts +0 -46
  49. package/dist/modules/mono_app_icon.d.ts +0 -7
  50. package/dist/modules/mono_app_name.d.ts +0 -6
  51. package/dist/modules/mono_app_symbols.d.ts +0 -57
  52. package/dist/modules/mono_app_text.d.ts +0 -66
  53. package/dist/modules/not_small_topbar.d.ts +0 -91
  54. package/dist/modules/platform_announcements.d.ts +0 -31
  55. package/dist/modules/product_announcement.d.ts +0 -20
  56. package/dist/modules/small_topbar.d.ts +0 -48
  57. package/dist/modules/styled_root.d.ts +0 -6
  58. package/dist/modules/styles.d.ts +0 -9
  59. package/dist/modules/symbols.d.ts +0 -16
  60. package/dist/modules/topbar_context.d.ts +0 -5
  61. package/dist/modules/unbutton.d.ts +0 -11
  62. package/dist/topbar +0 -2
  63. package/dist/topbar.map +0 -1
  64. package/dist/topbar.modern.css +0 -2
  65. package/dist/topbar.modern.css.map +0 -1
  66. package/dist/topbar.module.css +0 -2
  67. package/dist/topbar.module.css.map +0 -1
  68. package/dist/types/modules/interfaces.d.ts +0 -55
  69. package/dist/types/modules/interfaces.d.ts.map +0 -1
  70. package/dist/types/modules/medium_topbar.d.ts +0 -39
  71. package/dist/types/modules/medium_topbar.d.ts.map +0 -1
  72. package/dist/types/modules/profile_container.d.ts +0 -10
  73. package/dist/types/modules/profile_container.d.ts.map +0 -1
@@ -1,2 +0,0 @@
1
- .hide-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.hide-scrollbar::-webkit-scrollbar{display:none}@-webkit-keyframes spinning{to{transform:rotate(1turn)}}@keyframes spinning{to{transform:rotate(1turn)}}.spinner{align-self:center;-webkit-animation:spinning .5s linear infinite;animation:spinning .5s linear infinite;border:2px solid #f7f7f7;border-radius:50%;border-top-color:#9e9e9e;display:inline;height:16px;transform:rotate(0deg);vertical-align:middle;width:16px}
2
- /*# sourceMappingURL=topbar.modern.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sources":["utils.css","spinner.css"],"names":[],"mappings":"AAAA,gBACE,uBAAwB,CACxB,oBACF,CACA,mCACE,YACF,CCNA,4BACE,GAEE,uBACF,CACF,CACA,oBACE,GAEE,uBACF,CACF,CAEA,SACE,iBAAkB,CAClB,8CAAyC,CAAzC,sCAAyC,CAKzC,wBAAiB,CAHjB,iBAAkB,CAGlB,wBAAiB,CACjB,cAAe,CACf,WAAY,CACZ,sBAAuB,CACvB,qBAAsB,CACtB,UACF","file":"topbar.modern.css","sourcesContent":[".hide-scrollbar {\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n}\n.hide-scrollbar::-webkit-scrollbar {\n display: none; /* Chrome, Safari, and Opera */\n}\n","@-webkit-keyframes spinning {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes spinning {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n.spinner {\n align-self: center;\n animation: spinning 500ms infinite linear;\n border-color: hsl(0 0% 97%);\n border-radius: 50%;\n border-style: solid;\n border-top-color: hsl(0 0% 62%);\n border-width: 2px;\n display: inline;\n height: 16px;\n transform: rotate(0deg);\n vertical-align: middle;\n width: 16px;\n}\n"]}
@@ -1,2 +0,0 @@
1
- .hide-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.hide-scrollbar::-webkit-scrollbar{display:none}@-webkit-keyframes spinning{to{transform:rotate(1turn)}}@keyframes spinning{to{transform:rotate(1turn)}}.spinner{align-self:center;-webkit-animation:spinning .5s linear infinite;animation:spinning .5s linear infinite;border:2px solid #f7f7f7;border-radius:50%;border-top-color:#9e9e9e;display:inline;height:16px;transform:rotate(0deg);vertical-align:middle;width:16px}
2
- /*# sourceMappingURL=topbar.module.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sources":["utils.css","spinner.css"],"names":[],"mappings":"AAAA,gBACE,uBAAwB,CACxB,oBACF,CACA,mCACE,YACF,CCNA,4BACE,GAEE,uBACF,CACF,CACA,oBACE,GAEE,uBACF,CACF,CAEA,SACE,iBAAkB,CAClB,8CAAyC,CAAzC,sCAAyC,CAKzC,wBAAiB,CAHjB,iBAAkB,CAGlB,wBAAiB,CACjB,cAAe,CACf,WAAY,CACZ,sBAAuB,CACvB,qBAAsB,CACtB,UACF","file":"topbar.module.css","sourcesContent":[".hide-scrollbar {\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n}\n.hide-scrollbar::-webkit-scrollbar {\n display: none; /* Chrome, Safari, and Opera */\n}\n","@-webkit-keyframes spinning {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes spinning {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n.spinner {\n align-self: center;\n animation: spinning 500ms infinite linear;\n border-color: hsl(0 0% 97%);\n border-radius: 50%;\n border-style: solid;\n border-top-color: hsl(0 0% 62%);\n border-width: 2px;\n display: inline;\n height: 16px;\n transform: rotate(0deg);\n vertical-align: middle;\n width: 16px;\n}\n"]}
@@ -1,55 +0,0 @@
1
- export interface App {
2
- name: string
3
- url: string
4
- }
5
- export interface ConnectedPerson {
6
- id: number
7
- attributes: {
8
- name: string
9
- organization_name: string
10
- }
11
- }
12
- export interface Notification {
13
- appName: string
14
- createdAt: Date
15
- id: string
16
- isRead: boolean
17
- link?: string
18
- title: string
19
- }
20
- export declare type JoltMessage = {
21
- event: string
22
- channel: string
23
- data: string
24
- }
25
- export declare type JoltMessageNotificationDataPayload = {
26
- data: {
27
- type: "Notification"
28
- id: string
29
- attributes: {
30
- auto_read_at: null | string
31
- created_at: string
32
- key: string
33
- kind: string
34
- read_at: null | string
35
- rollup_key: string
36
- updated_at: string
37
- }
38
- relationships?: object
39
- links: {
40
- payloads: string
41
- self: string
42
- web_payloads: string
43
- }
44
- included?: object
45
- meta: object
46
- }
47
- }
48
- export interface TopbarAPIResponse {
49
- data: {
50
- attributes: {
51
- apps: App[]
52
- }
53
- }
54
- }
55
- //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../modules/interfaces.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,iBAAiB,EAAE,MAAM,CAAA;KAAE,CAAC;CACzD;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,oBAAY,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,oBAAY,kCAAkC,GAAG;IAC/C,IAAI,EAAE;QACJ,IAAI,EAAE,cAAc,CAAC;QACrB,EAAE,EAAE,MAAM,CAAC;QACX,UAAU,EAAE;YACV,YAAY,EAAE,IAAI,GAAG,MAAM,CAAC;YAC5B,UAAU,EAAE,MAAM,CAAC;YACnB,GAAG,EAAE,MAAM,CAAC;YACZ,IAAI,EAAE,MAAM,CAAC;YACb,OAAO,EAAE,IAAI,GAAG,MAAM,CAAC;YACvB,UAAU,EAAE,MAAM,CAAC;YACnB,UAAU,EAAE,MAAM,CAAC;SACpB,CAAC;QACF,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,KAAK,EAAE;YACL,QAAQ,EAAE,MAAM,CAAC;YACjB,IAAI,EAAE,MAAM,CAAC;YACb,YAAY,EAAE,MAAM,CAAC;SACtB,CAAC;QACF,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE;QACJ,UAAU,EAAE;YACV,IAAI,EAAE,GAAG,EAAE,CAAC;SACb,CAAC;KACH,CAAC;CACH"}
@@ -1,39 +0,0 @@
1
- /// <reference types="react" />
2
- import * as PCO_URL from "@planningcenter/url";
3
- import { App } from "./interfaces";
4
- declare const Topbar: {
5
- (props: {
6
- appName: string;
7
- apps: App[];
8
- colors: any;
9
- connectedPeople: any;
10
- env: PCO_URL.Environment;
11
- linkToProfile?: boolean;
12
- notifications?: any;
13
- orgName: string;
14
- requestAppsFetch: any;
15
- requestClearAppsCache: any;
16
- requestClearConnectedPeopleCache: any;
17
- requestConnectedPeopleFetch: any;
18
- requestSwitchConnectedPerson: any;
19
- requestUnlinkConnectedPeople: any;
20
- routes: any;
21
- search?: any;
22
- showOrgName?: boolean;
23
- style?: any;
24
- userAvatarPath: string;
25
- userId: string;
26
- userName: string;
27
- }): JSX.Element;
28
- defaultProps: {
29
- currentRouteComponent: (props: any) => JSX.Element;
30
- };
31
- };
32
- declare const Route: ({ active, style, name, ...props }: {
33
- [x: string]: any;
34
- active: any;
35
- style: any;
36
- name?: string;
37
- }) => JSX.Element;
38
- export { Route, Topbar };
39
- //# sourceMappingURL=medium_topbar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"medium_topbar.d.ts","sourceRoot":"","sources":["../../../modules/medium_topbar.tsx"],"names":[],"mappings":";AAAA,OAAe,KAAK,OAAO,MAAM,qBAAqB,CAAA;AAYtD,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAQlC,QAAA,MAAM,MAAM;YAAW;QACrB,OAAO,EAAE,MAAM,CAAA;QACf,IAAI,EAAE,GAAG,EAAE,CAAA;QACX,MAAM,EAAE,GAAG,CAAA;QACX,eAAe,EAAE,GAAG,CAAA;QAEpB,GAAG,EAAE,QAAQ,WAAW,CAAA;QACxB,aAAa,CAAC,EAAE,OAAO,CAAA;QACvB,aAAa,CAAC,EAAE,GAAG,CAAA;QACnB,OAAO,EAAE,MAAM,CAAA;QACf,gBAAgB,EAAE,GAAG,CAAA;QACrB,qBAAqB,EAAE,GAAG,CAAA;QAC1B,gCAAgC,EAAE,GAAG,CAAA;QACrC,2BAA2B,EAAE,GAAG,CAAA;QAChC,4BAA4B,EAAE,GAAG,CAAA;QACjC,4BAA4B,EAAE,GAAG,CAAA;QACjC,MAAM,EAAE,GAAG,CAAA;QACX,MAAM,CAAC,EAAE,GAAG,CAAA;QACZ,WAAW,CAAC,EAAE,OAAO,CAAA;QACrB,KAAK,CAAC,EAAE,GAAG,CAAA;QACX,cAAc,EAAE,MAAM,CAAA;QACtB,MAAM,EAAE,MAAM,CAAA;QACd,QAAQ,EAAE,MAAM,CAAA;KACjB;;;;CAqYA,CAAA;AAMD,QAAA,MAAM,KAAK;;;;;iBAyBV,CAAA;AAED,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA"}
@@ -1,10 +0,0 @@
1
- import * as React from "react";
2
- interface ProfileContainerProps extends React.HTMLAttributes<HTMLDivElement> {
3
- component: React.ReactNode;
4
- href: string;
5
- linkToProfile: boolean;
6
- onLinkToProfileClick?: (clickEvent: any) => any;
7
- }
8
- declare const ProfileContainer: ({ component, href, linkToProfile, onLinkToProfileClick, ...nativeProps }: ProfileContainerProps) => JSX.Element;
9
- export default ProfileContainer;
10
- //# sourceMappingURL=profile_container.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"profile_container.d.ts","sourceRoot":"","sources":["../../../modules/profile_container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,UAAU,qBAAsB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC1E,SAAS,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,OAAO,CAAA;IACtB,oBAAoB,CAAC,EAAE,CAAC,UAAU,KAAA,KAAK,GAAG,CAAA;CAC3C;AAED,QAAA,MAAM,gBAAgB,6EAMnB,qBAAqB,gBAUvB,CAAA;AAED,eAAe,gBAAgB,CAAA"}