@planningcenter/topbar 8.1.1 → 8.2.0-rc.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 (57) hide show
  1. package/CHANGELOG.md +10 -4
  2. package/README.md +18 -4
  3. package/dist/modules/api_request.d.ts +5 -0
  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 +0 -1
  7. package/dist/modules/components/apps_menu.d.ts +6 -2
  8. package/dist/modules/components/notification_item.d.ts +1 -5
  9. package/dist/modules/components/notifications_menu.d.ts +3 -9
  10. package/dist/modules/connected_people_provider.d.ts +1 -1
  11. package/dist/modules/display_switch.d.ts +1 -1
  12. package/dist/modules/dummy_data.d.ts +3 -3
  13. package/dist/modules/formatters.d.ts +13 -1
  14. package/dist/modules/mono_app_symbols.d.ts +0 -4
  15. package/dist/modules/mono_app_text.d.ts +0 -5
  16. package/dist/modules/not_small_topbar.d.ts +15 -35
  17. package/dist/modules/symbols.d.ts +15 -8
  18. package/dist/topbar.js +1 -1
  19. package/dist/topbar.js.map +1 -1
  20. package/dist/topbar.modern.js +1 -1
  21. package/dist/topbar.modern.js.map +1 -1
  22. package/dist/topbar.module.js +1 -1
  23. package/dist/topbar.module.js.map +1 -1
  24. package/dist/topbar.umd.js +1 -1
  25. package/dist/topbar.umd.js.map +1 -1
  26. package/dist/types/modules/components/notifications_menu.d.ts.map +1 -1
  27. package/dist/types/modules/hooks/use_notifications.d.ts +2 -1
  28. package/dist/types/modules/hooks/use_notifications.d.ts.map +1 -1
  29. package/dist/types/modules/not_small_topbar.d.ts.map +1 -1
  30. package/dist/types/modules/small_topbar.d.ts.map +1 -1
  31. package/package.json +7 -2
  32. package/CHANGELOG-pre-4.9.0.md +0 -134
  33. package/dist/modules/colors.d.ts +0 -46
  34. package/dist/modules/components/NotificationsMenuBlankState.d.ts +0 -12
  35. package/dist/modules/components/conditional_wrap.d.ts +0 -7
  36. package/dist/modules/components/notifications_inbox.d.ts +0 -18
  37. package/dist/modules/components/notifications_menu_Wrapper.d.ts +0 -7
  38. package/dist/modules/components/notifications_menu_blank_state.d.ts +0 -8
  39. package/dist/modules/components/popover_root.d.ts +0 -6
  40. package/dist/modules/components/spinner.d.ts +0 -4
  41. package/dist/modules/hooks/use_hover.d.ts +0 -3
  42. package/dist/modules/hooks/use_local_storage.d.ts +0 -10
  43. package/dist/modules/hooks/use_notifications.d.ts +0 -16
  44. package/dist/modules/hooks/use_topbar_api.d.ts +0 -8
  45. package/dist/modules/topbar_context.d.ts +0 -5
  46. package/dist/topbar +0 -2
  47. package/dist/topbar.map +0 -1
  48. package/dist/topbar.modern.css +0 -2
  49. package/dist/topbar.modern.css.map +0 -1
  50. package/dist/topbar.module.css +0 -2
  51. package/dist/topbar.module.css.map +0 -1
  52. package/dist/types/modules/interfaces.d.ts +0 -55
  53. package/dist/types/modules/interfaces.d.ts.map +0 -1
  54. package/dist/types/modules/medium_topbar.d.ts +0 -39
  55. package/dist/types/modules/medium_topbar.d.ts.map +0 -1
  56. package/dist/types/modules/profile_container.d.ts +0 -10
  57. package/dist/types/modules/profile_container.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"notifications_menu.d.ts","sourceRoot":"","sources":["../../../../modules/components/notifications_menu.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAA;AAQpB,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AA2JjD,QAAA,MAAM,iBAAiB;UAYf,GAAG,EAAE;yBACU,MAAM,GAAG;qCACG,YAAY,KAAK,GAAG;qCACpB,YAAY,KAAK,GAAG;eAC1C,OAAO;gBACN,OAAO;aACV,OAAO;;cACO,YAAY,EAAE;gBAAU,YAAY,EAAE;;aACpD,GAAG;cACF,OAAO;iBA4UlB,CAAA;AAED,eAAe,iBAAiB,CAAA"}
1
+ {"version":3,"file":"notifications_menu.d.ts","sourceRoot":"","sources":["../../../../modules/components/notifications_menu.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAA;AAQpB,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AA8GjD,QAAA,MAAM,iBAAiB;UAYf,GAAG,EAAE;yBACU,MAAM,GAAG;qCACG,YAAY,KAAK,GAAG;qCACpB,YAAY,KAAK,GAAG;eAC1C,OAAO;gBACN,OAAO;aACV,OAAO;;cACO,YAAY,EAAE;gBAAU,YAAY,EAAE;;aACpD,GAAG;cACF,OAAO;iBA+UlB,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -2,12 +2,13 @@ import Jolt from "@planningcenter/jolt-client";
2
2
  import * as PCO_URL from "@planningcenter/url";
3
3
  import { Notification } from "../interfaces";
4
4
  declare type UseNotificationsProps = {
5
+ enableJoltLogging?: boolean;
5
6
  enabled?: boolean;
6
7
  env: PCO_URL.Environment;
7
8
  joltPromise?: () => Promise<Jolt | undefined | void>;
8
9
  userId: string;
9
10
  };
10
- declare const useNotifications: ({ enabled, env, userId, ...props }: UseNotificationsProps) => {
11
+ declare const useNotifications: ({ enableJoltLogging, enabled, env, userId, ...props }: UseNotificationsProps) => {
11
12
  handleMarkAllAsRead: () => any;
12
13
  handleMarkAsRead: (notification: Notification) => Promise<any>;
13
14
  handleToggleRead: (notification: Notification) => Promise<any>;
@@ -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;AAyItB,aAAK,qBAAqB,GAAG;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,uCAKnB,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;CAwOpB,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;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 +1 @@
1
- {"version":3,"file":"not_small_topbar.d.ts","sourceRoot":"","sources":["../../../modules/not_small_topbar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAe9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAQhD,UAAU,mBAAmB;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,oBAAoB,CAAC,EAAE,MAAM,GAAG,CAAA;IAChC,MAAM,CAAC,EAAE,GAAG,CAAA;IACZ,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,QAAA,MAAM,MAAM;YAAW,mBAAmB,GAAG,iBAAiB;;;;;;;;CA+c7D,CAAA;AAUD,QAAA,MAAM,KAAK;YAMD,OAAO;cACL,MAAM,SAAS;YACjB,GAAG;WACJ,MAAM;YACL,MAAM;iBA0Cf,CAAA;AAED,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA"}
1
+ {"version":3,"file":"not_small_topbar.d.ts","sourceRoot":"","sources":["../../../modules/not_small_topbar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAe9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAQhD,UAAU,mBAAmB;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,oBAAoB,CAAC,EAAE,MAAM,GAAG,CAAA;IAChC,MAAM,CAAC,EAAE,GAAG,CAAA;IACZ,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,QAAA,MAAM,MAAM;YAAW,mBAAmB,GAAG,iBAAiB;;;;;;;;CAmd7D,CAAA;AAUD,QAAA,MAAM,KAAK;YAMD,OAAO;cACL,MAAM,SAAS;YACjB,GAAG;WACJ,MAAM;YACL,MAAM;iBA0Cf,CAAA;AAED,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"small_topbar.d.ts","sourceRoot":"","sources":["../../../modules/small_topbar.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAqChD,UAAU,gBAAgB;IACxB,qBAAqB,CAAC,EAAE,GAAG,CAAA;CAC5B;AAED,QAAA,MAAM,MAAM;YAAW,iBAAiB,GAAG,gBAAgB;;;;;CA0mB1D,CAAA;AAOD,QAAA,MAAM,KAAK;;;iBAmBV,CAAA;AAED,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA"}
1
+ {"version":3,"file":"small_topbar.d.ts","sourceRoot":"","sources":["../../../modules/small_topbar.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAqChD,UAAU,gBAAgB;IACxB,qBAAqB,CAAC,EAAE,GAAG,CAAA;CAC5B;AAED,QAAA,MAAM,MAAM;YAAW,iBAAiB,GAAG,gBAAgB;;;;;CA2mB1D,CAAA;AAOD,QAAA,MAAM,KAAK;;;iBAmBV,CAAA;AAED,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planningcenter/topbar",
3
- "version": "8.1.1",
3
+ "version": "8.2.0-rc.2",
4
4
  "license": "UNLICENSED",
5
5
  "description": "Planning Center application Topbar",
6
6
  "main": "./dist/topbar.js",
@@ -12,7 +12,8 @@
12
12
  "scripts": {
13
13
  "build": "microbundle --jsx React.createElement",
14
14
  "dev": "webpack-cli serve --mode development",
15
- "prepare": "$npm_execpath run build"
15
+ "prepare": "$npm_execpath run build",
16
+ "test": "jest"
16
17
  },
17
18
  "author": "Front End Systems Engineering <frontend@planningcenter.com>",
18
19
  "files": [
@@ -31,6 +32,7 @@
31
32
  "react": "^16.8.6"
32
33
  },
33
34
  "devDependencies": {
35
+ "@types/jest": "^27.4.1",
34
36
  "@types/react": "^17.0.0",
35
37
  "@types/react-dom": "^17.0.0",
36
38
  "@typescript-eslint/eslint-plugin": "^5.10.1",
@@ -44,6 +46,7 @@
44
46
  "eslint-plugin-sort-keys-fix": "^1.1.2",
45
47
  "eslint-plugin-typescript-sort-keys": "^2.1.0",
46
48
  "html-webpack-plugin": "^4.5.1",
49
+ "jest": "^27.5.1",
47
50
  "microbundle": "^0.13.0",
48
51
  "moment": "^2.27.0",
49
52
  "moment-timezone": "^0.5.34",
@@ -52,7 +55,9 @@
52
55
  "react-dom": "^17.0.1",
53
56
  "rollup": "^2.36.1",
54
57
  "style-loader": "^3.3.1",
58
+ "ts-jest": "^27.1.4",
55
59
  "ts-loader": "^8.0.14",
60
+ "ts-node": "^10.7.0",
56
61
  "typescript": "^4.5.5",
57
62
  "webpack": "^5.13.0",
58
63
  "webpack-cli": "^4.9.1",
@@ -1,134 +0,0 @@
1
- # LOST ENTRIES
2
-
3
- # 3.0.0 Release
4
-
5
- ### Squircle Icons
6
-
7
- ![squircles in the app menu](./docs/images/2018.04.26-v3-desktop-screenshot.png)
8
-
9
- You've seen them in Slack.
10
- Now you can experience them in your own apps.
11
-
12
- SQUIRCLES!
13
-
14
- ### Support for Church Center and API
15
-
16
- Some of our products can't be found in Topbar's app-switcher.
17
- v3 adds support for those non-navigable apps.
18
- Now, these apps can use Topbar **and** keep out of the app-switcher.
19
-
20
- ### Support for React 16
21
-
22
- @glosie gets the badge for first app to React 16.
23
- He also gets a badge for updating Topbar's dependencies, allowing you to upgrade to React 16 too!
24
-
25
- 🤗
26
-
27
- ### Various UX fixes
28
-
29
- v3 resolves a [long-stading useability bug](https://trello.com/c/PQtq5w1u/2568-%F0%9F%90%9E-previously-logged-in-users-linked-accounts-are-visible-for-a-split-second#) where users could (for a split second) see the `connected_people` from the previous session.
30
-
31
- Thanks @mcfadden and @ClaytonRector for surfacing that.
32
-
33
- ## Upgrade from v2
34
-
35
- This should be a mostly painless upgrade.
36
- Here are the APIs that changed and how to update.
37
-
38
- ### `PlatformAnnouncements`
39
-
40
- Platform Announcements were a quickly concieved feature.
41
- The v2 API has a very "build-your-own" feel.
42
- After implementing them across apps, we have a better understanding of what they are and how they should be used.
43
-
44
- Now I expose a single component for platform announcements.
45
-
46
- ```jsx
47
- import { PlatformAnnouncements } from "@planningcenter/topbar";
48
- ```
49
-
50
- Implemented it in your `{App}Topbar` like so:
51
-
52
- ```jsx
53
- <PlatformAnnouncement
54
- data={this.props.platformAnnouncements}
55
- colors={shared.colors}
56
- env={shared.env}
57
- />
58
- ```
59
-
60
- #### Naming problems
61
-
62
- > Didn't these used to `PlatformNotifications`?
63
-
64
- Yes 😬
65
-
66
- There are a lot of `notification` features in the pipeline.
67
- To distinguish these in Topbar-land, we've written up a [dictionary of terms](https://planningcenter.design/interfaces-and-interactions/announcements-and-notifications-and-alerts-oh-my).
68
-
69
- I know that this introduces some cognitive dissonence—now that Topbar uses `PlatformAnnouncements` but `platform_notifications` is used for all the #platform tooling.
70
-
71
- I'm sorry.
72
-
73
- I knew there was eventually naming problem
74
- but I didn't have a comprehensive solution before the feature needed to ship.
75
- You only know what you know when you know it.
76
-
77
- If you find this dissonence problematic, you can assign on import.
78
-
79
- ```js
80
- import { PlatformAnnouncements as PlatformNotifications } from "@planningcenter/topbar";
81
- ```
82
-
83
- The props for this componenent are intentionnaly generic (`data`, `renderItem`) to be clear, when referenced by either name.
84
-
85
- ### `AppsProvider` and `ConnectedPeopleProvider`
86
-
87
- These two data-fetching, provider components have new callback signatures.
88
-
89
- In adding a `clearCache` method to both, I made the decision to pass objects down instead of functions.
90
- This allows me to add functionality without changing function arity.
91
-
92
- Your use of these components should now look like this:
93
-
94
- ```jsx
95
- <ConnectedPeopleProvider
96
- render={(connectedPeople, connectedPeopleActions) => (
97
- <AppsProvider
98
- render={(apps, appsActions) => (
99
- /*
100
- * connectedPeople
101
- * connectedPeopleActions.fetch()
102
- * connectedPeopleActions.remove()
103
- *
104
- * apps
105
- * appsActions.fetch()
106
- * appsActions.remove()
107
- */
108
- )}
109
- />
110
- )}
111
- />
112
- ```
113
-
114
- ### `SmallTopbar` and `NotSmallTopbar`
115
-
116
- To support the removal of cached `localStorage` data, both Topbars take an additional required props: `requestClearAppsCache` and `requestClearConnectedPeopleCache`.
117
-
118
- In practice these callbacks should be provided from `ConnectedPeopleProvider` and `AppsProvider` like so:
119
-
120
- ```jsx
121
- <ConnectedPeopleProvider
122
- render={(connectedPeople, connectedPeopleActions) => (
123
- <AppsProvider
124
- render={(apps, appsActions) => (
125
- <SmallTopbar
126
- requestClearConnectedPeopleCache={connectedPeopleActions.remove}
127
- requestClearAppsCache={appsActions.remove}
128
- {...allTheOtherProps}
129
- />
130
- )}
131
- />
132
- )}
133
- />
134
- ```
@@ -1,46 +0,0 @@
1
- declare const colors: {
2
- danger43: string;
3
- danger45: string;
4
- danger47: string;
5
- danger93: string;
6
- danger97: string;
7
- darkNeutral07: string;
8
- darkNeutral12: string;
9
- darkNeutral15: string;
10
- darkNeutral17: string;
11
- darkNeutral19: string;
12
- darkNeutral24: string;
13
- darkNeutral32: string;
14
- darkNeutral50: string;
15
- darkNeutral68: string;
16
- darkNeutral88: string;
17
- darkNeutral98: string;
18
- interaction45: string;
19
- interaction50: string;
20
- interaction55: string;
21
- interaction66: string;
22
- interaction91: string;
23
- interaction93: string;
24
- lightNeutral100: string;
25
- lightNeutral12: string;
26
- lightNeutral24: string;
27
- lightNeutral45: string;
28
- lightNeutral62: string;
29
- lightNeutral81: string;
30
- lightNeutral88: string;
31
- lightNeutral93: string;
32
- lightNeutral95: string;
33
- lightNeutral97: string;
34
- lightNeutral98: string;
35
- success23: string;
36
- success25: string;
37
- success27: string;
38
- success91: string;
39
- success97: string;
40
- warning49: string;
41
- warning55: string;
42
- warning63: string;
43
- warning94: string;
44
- warning97: string;
45
- };
46
- export default colors;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- declare const NotificationsMenuBlankState: ({
3
- description,
4
- style,
5
- title,
6
- ...props
7
- }: {
8
- description: string
9
- style?: object
10
- title?: string
11
- }) => JSX.Element
12
- export default NotificationsMenuBlankState
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- declare const ConditionalWrap: ({ children, condition, wrap, }: {
3
- children: React.ReactNode;
4
- condition?: boolean;
5
- wrap: any;
6
- }) => any;
7
- export default ConditionalWrap;
@@ -1,18 +0,0 @@
1
- /// <reference types="react" />
2
- import * as PCO_URL from "@planningcenter/url"
3
- import { Notification } from "../interfaces"
4
- declare const NotificationsInbox: ({
5
- env,
6
- render,
7
- userId,
8
- }: {
9
- env: PCO_URL.Environment
10
- render: (props: {
11
- handleMarkAllAsRead: () => any
12
- handleToggleRead: (notification: Notification) => any
13
- read: Notification[]
14
- unread: Notification[]
15
- }) => JSX.Element
16
- userId: string
17
- }) => JSX.Element
18
- export default NotificationsInbox
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- declare const NotificationsMenuWrapper: ({ children, toggle, visible, ...nativeProps }: {
3
- children: React.ReactNode;
4
- toggle: any;
5
- visible: boolean;
6
- }) => JSX.Element;
7
- export default NotificationsMenuWrapper;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- declare const NotificationsMenuBlankState: ({ dark, description, style, title, }: {
3
- dark?: boolean;
4
- description: string;
5
- style?: object;
6
- title?: string;
7
- }) => JSX.Element;
8
- export default NotificationsMenuBlankState;
@@ -1,6 +0,0 @@
1
- import * as React from "react";
2
- declare const PopupRoot: ({ style, ...nativeProps }: {
3
- children?: React.ReactNode;
4
- style?: object;
5
- }) => JSX.Element;
6
- export default PopupRoot;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import "./spinner.css";
3
- declare const Spinner: (props: any) => JSX.Element;
4
- export default Spinner;
@@ -1,3 +0,0 @@
1
- import { RefObject } from "react";
2
- declare function useHover<T extends HTMLElement = HTMLElement>(elementRef: RefObject<T>): boolean;
3
- export default useHover;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- declare function useLocalStorage(
3
- key: string,
4
- initialValue: any
5
- ): {
6
- storedValue: any
7
- setStoredValue: import("react").Dispatch<any>
8
- dropKey: () => void
9
- }
10
- export default useLocalStorage
@@ -1,16 +0,0 @@
1
- import * as PCO_URL from "@planningcenter/url";
2
- import { Notification } from "../interfaces";
3
- declare const useNotifications: ({ disabled, env, userId, }: {
4
- disabled?: boolean;
5
- env: PCO_URL.Environment;
6
- userId: string;
7
- }) => {
8
- handleMarkAllAsRead: () => any;
9
- handleMarkAsRead: (notification: Notification) => any;
10
- handleToggleRead: (notification: Notification) => any;
11
- hasError: boolean;
12
- isLoading: boolean;
13
- read: Notification[];
14
- unread: Notification[];
15
- };
16
- export default useNotifications;
@@ -1,8 +0,0 @@
1
- import * as PCO_URL from "@planningcenter/url";
2
- import { Fetch } from "../api_request";
3
- import { TopbarAPIResponse } from "../interfaces";
4
- declare const useTopbarAPI: ({ configuredFetch, env, }: {
5
- configuredFetch: Fetch;
6
- env: PCO_URL.Environment;
7
- }) => TopbarAPIResponse;
8
- export default useTopbarAPI;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: import("react").Context<{
3
- notificationsDisabled: boolean;
4
- }>;
5
- export default _default;