@planningcenter/topbar 8.2.0-rc.2 → 8.2.0-rc.3

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 (52) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/README.md +4 -2
  3. package/dist/modules/api_request.d.ts +0 -5
  4. package/dist/modules/apps_provider.d.ts +1 -1
  5. package/dist/modules/client_storage.d.ts +1 -1
  6. package/dist/modules/color_app_squircles.d.ts +1 -0
  7. package/dist/modules/colors.d.ts +46 -0
  8. package/dist/modules/components/NotificationsMenuBlankState.d.ts +12 -0
  9. package/dist/modules/components/apps_menu.d.ts +2 -6
  10. package/dist/modules/components/conditional_wrap.d.ts +7 -0
  11. package/dist/modules/components/notification_item.d.ts +5 -1
  12. package/dist/modules/components/notifications_inbox.d.ts +18 -0
  13. package/dist/modules/components/notifications_menu.d.ts +9 -3
  14. package/dist/modules/components/notifications_menu_Wrapper.d.ts +7 -0
  15. package/dist/modules/components/notifications_menu_blank_state.d.ts +8 -0
  16. package/dist/modules/components/popover_root.d.ts +6 -0
  17. package/dist/modules/components/spinner.d.ts +4 -0
  18. package/dist/modules/connected_people_provider.d.ts +1 -1
  19. package/dist/modules/display_switch.d.ts +1 -1
  20. package/dist/modules/dummy_data.d.ts +3 -3
  21. package/dist/modules/formatters.d.ts +1 -13
  22. package/dist/modules/hooks/use_hover.d.ts +3 -0
  23. package/dist/modules/hooks/use_local_storage.d.ts +10 -0
  24. package/dist/modules/hooks/use_notifications.d.ts +16 -0
  25. package/dist/modules/hooks/use_topbar_api.d.ts +8 -0
  26. package/dist/modules/mono_app_symbols.d.ts +4 -0
  27. package/dist/modules/mono_app_text.d.ts +5 -0
  28. package/dist/modules/not_small_topbar.d.ts +35 -15
  29. package/dist/modules/symbols.d.ts +8 -15
  30. package/dist/modules/topbar_context.d.ts +5 -0
  31. package/dist/topbar +2 -0
  32. package/dist/topbar.js +1 -1
  33. package/dist/topbar.js.map +1 -1
  34. package/dist/topbar.map +1 -0
  35. package/dist/topbar.modern.css +2 -0
  36. package/dist/topbar.modern.css.map +1 -0
  37. package/dist/topbar.modern.js +1 -1
  38. package/dist/topbar.modern.js.map +1 -1
  39. package/dist/topbar.module.css +2 -0
  40. package/dist/topbar.module.css.map +1 -0
  41. package/dist/topbar.module.js +1 -1
  42. package/dist/topbar.module.js.map +1 -1
  43. package/dist/topbar.umd.js +1 -1
  44. package/dist/topbar.umd.js.map +1 -1
  45. package/dist/types/modules/hooks/use_notifications.d.ts.map +1 -1
  46. package/dist/types/modules/interfaces.d.ts +55 -0
  47. package/dist/types/modules/interfaces.d.ts.map +1 -0
  48. package/dist/types/modules/medium_topbar.d.ts +39 -0
  49. package/dist/types/modules/medium_topbar.d.ts.map +1 -0
  50. package/dist/types/modules/profile_container.d.ts +10 -0
  51. package/dist/types/modules/profile_container.d.ts.map +1 -0
  52. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"use_notifications.d.ts","sourceRoot":"","sources":["../../../../modules/hooks/use_notifications.ts"],"names":[],"mappings":"AAAA,OAAO,IAAkB,MAAM,6BAA6B,CAAA;AAC5D,OAAe,KAAK,OAAO,MAAM,qBAAqB,CAAA;AAItD,OAAO,EAGL,YAAY,EACb,MAAM,eAAe,CAAA;AA0JtB,aAAK,qBAAqB,GAAG;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,EAAE,OAAO,CAAC,WAAW,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC,CAAA;IACpD,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,QAAA,MAAM,gBAAgB,0DAMnB,qBAAqB;yBACD,MAAM,GAAG;qCACG,YAAY,KAAK,QAAQ,GAAG,CAAC;qCAC7B,YAAY,KAAK,QAAQ,GAAG,CAAC;cACpD,OAAO;eACN,OAAO;UACZ,YAAY,EAAE;YACZ,YAAY,EAAE;iBACT,MAAM;CAyOpB,CAAA;AAED,eAAe,gBAAgB,CAAA"}
1
+ {"version":3,"file":"use_notifications.d.ts","sourceRoot":"","sources":["../../../../modules/hooks/use_notifications.ts"],"names":[],"mappings":"AAAA,OAAO,IAAkB,MAAM,6BAA6B,CAAA;AAC5D,OAAe,KAAK,OAAO,MAAM,qBAAqB,CAAA;AAItD,OAAO,EAGL,YAAY,EACb,MAAM,eAAe,CAAA;AAoKtB,aAAK,qBAAqB,GAAG;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,EAAE,OAAO,CAAC,WAAW,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC,CAAA;IACpD,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,QAAA,MAAM,gBAAgB,0DAMnB,qBAAqB;yBACD,MAAM,GAAG;qCACG,YAAY,KAAK,QAAQ,GAAG,CAAC;qCAC7B,YAAY,KAAK,QAAQ,GAAG,CAAC;cACpD,OAAO;eACN,OAAO;UACZ,YAAY,EAAE;YACZ,YAAY,EAAE;iBACT,MAAM;CAyOpB,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -0,0 +1,55 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,39 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,10 @@
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
@@ -0,0 +1 @@
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planningcenter/topbar",
3
- "version": "8.2.0-rc.2",
3
+ "version": "8.2.0-rc.3",
4
4
  "license": "UNLICENSED",
5
5
  "description": "Planning Center application Topbar",
6
6
  "main": "./dist/topbar.js",
@@ -23,7 +23,7 @@
23
23
  "private": false,
24
24
  "dependencies": {
25
25
  "@churchcenter/datetime-fmt": "^1.3.2",
26
- "@planningcenter/jolt-client": "^1.2.0",
26
+ "@planningcenter/jolt-client": "^1.3.1",
27
27
  "@planningcenter/url": "^2.6.4",
28
28
  "react-cool-dimensions": "^2.0.7",
29
29
  "react-transition-group": "^4.4.2"