@planningcenter/topbar 8.3.2 → 8.4.0-alpha.1

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 (211) hide show
  1. package/README.md +56 -0
  2. package/dist/index.d.ts +10 -0
  3. package/dist/modules/api_request.d.ts +23 -0
  4. package/dist/modules/apps_provider.d.ts +30 -0
  5. package/dist/modules/avatar.d.ts +7 -0
  6. package/dist/modules/client_storage.d.ts +12 -0
  7. package/dist/modules/color_app_icon.d.ts +5 -0
  8. package/dist/modules/color_app_squircles.d.ts +14 -0
  9. package/dist/modules/colors.d.ts +46 -0
  10. package/dist/modules/components/apps_button.d.ts +10 -0
  11. package/dist/modules/components/apps_menu.d.ts +15 -0
  12. package/dist/modules/components/conditional_wrap.d.ts +7 -0
  13. package/dist/modules/components/eyebrow.d.ts +6 -0
  14. package/dist/modules/components/hoverable.d.ts +11 -0
  15. package/dist/modules/components/hoverable_list_item.d.ts +9 -0
  16. package/dist/modules/components/notification_bell.d.ts +6 -0
  17. package/dist/modules/components/notification_item.d.ts +11 -0
  18. package/dist/modules/components/notifications_menu.d.ts +19 -0
  19. package/dist/modules/components/notifications_menu_blank_state.d.ts +8 -0
  20. package/dist/modules/components/notifications_menu_wrapper.d.ts +7 -0
  21. package/dist/modules/components/outsider.d.ts +13 -0
  22. package/dist/modules/components/popover_root.d.ts +6 -0
  23. package/dist/modules/components/popup.d.ts +9 -0
  24. package/dist/modules/components/popup_root.d.ts +6 -0
  25. package/dist/modules/components/spinner.d.ts +4 -0
  26. package/dist/modules/connected_people_provider.d.ts +21 -0
  27. package/dist/modules/display_switch.d.ts +26 -0
  28. package/dist/modules/formatters.d.ts +15 -0
  29. package/dist/modules/get_apps_switch_product_path.d.ts +1 -0
  30. package/dist/modules/hooks/use_hover.d.ts +3 -0
  31. package/dist/modules/hooks/use_notifications.d.ts +15 -0
  32. package/dist/modules/medium_topbar.d.ts +42 -0
  33. package/dist/modules/mono_app_icon.d.ts +7 -0
  34. package/dist/modules/mono_app_name.d.ts +6 -0
  35. package/dist/modules/mono_app_symbols.d.ts +57 -0
  36. package/dist/modules/mono_app_text.d.ts +66 -0
  37. package/dist/modules/not_small_topbar.d.ts +48 -0
  38. package/dist/modules/platform_announcements.d.ts +31 -0
  39. package/dist/modules/product_announcement.d.ts +20 -0
  40. package/dist/modules/small_topbar.d.ts +45 -0
  41. package/dist/modules/styled_root.d.ts +6 -0
  42. package/dist/modules/styles.d.ts +9 -0
  43. package/dist/modules/symbols.d.ts +42 -0
  44. package/dist/modules/unbutton.d.ts +11 -0
  45. package/dist/topbar.css +1 -1
  46. package/dist/topbar.css.map +1 -1
  47. package/dist/topbar.js +1 -1
  48. package/dist/topbar.js.map +1 -1
  49. package/dist/topbar.modern.css +2 -0
  50. package/dist/topbar.modern.css.map +1 -0
  51. package/dist/topbar.modern.js +1 -1
  52. package/dist/topbar.modern.js.map +1 -1
  53. package/dist/topbar.module.css +2 -0
  54. package/dist/topbar.module.css.map +1 -0
  55. package/dist/topbar.module.js +1 -1
  56. package/dist/topbar.module.js.map +1 -1
  57. package/dist/topbar.umd.js +1 -1
  58. package/dist/topbar.umd.js.map +1 -1
  59. package/dist/types/index.d.ts +1 -0
  60. package/dist/types/index.d.ts.map +1 -1
  61. package/dist/types/modules/apps_provider.d.ts +3 -13
  62. package/dist/types/modules/apps_provider.d.ts.map +1 -1
  63. package/dist/types/modules/avatar.d.ts +2 -3
  64. package/dist/types/modules/avatar.d.ts.map +1 -1
  65. package/dist/types/modules/client_storage.d.ts +2 -2
  66. package/dist/types/modules/client_storage.d.ts.map +1 -1
  67. package/dist/types/modules/color_app_icon.d.ts +0 -1
  68. package/dist/types/modules/color_app_icon.d.ts.map +1 -1
  69. package/dist/types/modules/color_app_squircles.d.ts +0 -1
  70. package/dist/types/modules/color_app_squircles.d.ts.map +1 -1
  71. package/dist/types/modules/colors.d.ts +3 -0
  72. package/dist/types/modules/colors.d.ts.map +1 -1
  73. package/dist/types/modules/components/apps_button.d.ts +0 -1
  74. package/dist/types/modules/components/apps_button.d.ts.map +1 -1
  75. package/dist/types/modules/components/apps_menu.d.ts +0 -1
  76. package/dist/types/modules/components/apps_menu.d.ts.map +1 -1
  77. package/dist/types/modules/components/conditional_wrap.d.ts +1 -1
  78. package/dist/types/modules/components/conditional_wrap.d.ts.map +1 -1
  79. package/dist/types/modules/components/eyebrow.d.ts +1 -1
  80. package/dist/types/modules/components/eyebrow.d.ts.map +1 -1
  81. package/dist/types/modules/components/hoverable.d.ts +2 -2
  82. package/dist/types/modules/components/hoverable.d.ts.map +1 -1
  83. package/dist/types/modules/components/hoverable_list_item.d.ts +1 -1
  84. package/dist/types/modules/components/hoverable_list_item.d.ts.map +1 -1
  85. package/dist/types/modules/components/notification_bell.d.ts +0 -1
  86. package/dist/types/modules/components/notification_bell.d.ts.map +1 -1
  87. package/dist/types/modules/components/notification_item.d.ts +0 -1
  88. package/dist/types/modules/components/notification_item.d.ts.map +1 -1
  89. package/dist/types/modules/components/notifications_menu.d.ts +2 -10
  90. package/dist/types/modules/components/notifications_menu.d.ts.map +1 -1
  91. package/dist/types/modules/components/notifications_menu_blank_state.d.ts +2 -2
  92. package/dist/types/modules/components/notifications_menu_blank_state.d.ts.map +1 -1
  93. package/dist/types/modules/components/notifications_menu_wrapper.d.ts +1 -1
  94. package/dist/types/modules/components/notifications_menu_wrapper.d.ts.map +1 -1
  95. package/dist/types/modules/components/outsider.d.ts +1 -1
  96. package/dist/types/modules/components/outsider.d.ts.map +1 -1
  97. package/dist/types/modules/components/popover_root.d.ts +1 -1
  98. package/dist/types/modules/components/popover_root.d.ts.map +1 -1
  99. package/dist/types/modules/components/popup.d.ts +1 -1
  100. package/dist/types/modules/components/popup.d.ts.map +1 -1
  101. package/dist/types/modules/components/popup_root.d.ts +1 -1
  102. package/dist/types/modules/components/popup_root.d.ts.map +1 -1
  103. package/dist/types/modules/components/spinner.d.ts +0 -1
  104. package/dist/types/modules/components/spinner.d.ts.map +1 -1
  105. package/dist/types/modules/connected_people_provider.d.ts +7 -6
  106. package/dist/types/modules/connected_people_provider.d.ts.map +1 -1
  107. package/dist/types/modules/display_switch.d.ts +2 -2
  108. package/dist/types/modules/display_switch.d.ts.map +1 -1
  109. package/dist/types/modules/dummy_data.d.ts +4 -0
  110. package/dist/types/modules/dummy_data.d.ts.map +1 -0
  111. package/dist/types/modules/error_boundary.d.ts +25 -0
  112. package/dist/types/modules/error_boundary.d.ts.map +1 -0
  113. package/dist/types/modules/get_login_profile_path.d.ts +2 -2
  114. package/dist/types/modules/get_login_profile_path.d.ts.map +1 -1
  115. package/dist/types/modules/hooks/use_local_notifications.d.ts +9 -0
  116. package/dist/types/modules/hooks/use_local_notifications.d.ts.map +1 -0
  117. package/dist/types/modules/hooks/use_notifications.d.ts.map +1 -1
  118. package/dist/types/modules/hooks/use_store.d.ts +3 -0
  119. package/dist/types/modules/hooks/use_store.d.ts.map +1 -0
  120. package/dist/types/modules/hooks/use_topbar_api.d.ts +2 -2
  121. package/dist/types/modules/hooks/use_topbar_api.d.ts.map +1 -1
  122. package/dist/types/modules/medium_topbar.d.ts +39 -0
  123. package/dist/types/modules/medium_topbar.d.ts.map +1 -0
  124. package/dist/types/modules/mfa_status.d.ts +0 -1
  125. package/dist/types/modules/mfa_status.d.ts.map +1 -1
  126. package/dist/types/modules/mono_app_icon.d.ts +0 -1
  127. package/dist/types/modules/mono_app_icon.d.ts.map +1 -1
  128. package/dist/types/modules/mono_app_name.d.ts +0 -1
  129. package/dist/types/modules/mono_app_name.d.ts.map +1 -1
  130. package/dist/types/modules/mono_app_symbols.d.ts +0 -1
  131. package/dist/types/modules/mono_app_symbols.d.ts.map +1 -1
  132. package/dist/types/modules/mono_app_text.d.ts +0 -1
  133. package/dist/types/modules/mono_app_text.d.ts.map +1 -1
  134. package/dist/types/modules/not_small_topbar/helpdesk_trigger.d.ts +4 -0
  135. package/dist/types/modules/not_small_topbar/helpdesk_trigger.d.ts.map +1 -0
  136. package/dist/types/modules/not_small_topbar/index.d.ts +26 -0
  137. package/dist/types/modules/not_small_topbar/index.d.ts.map +1 -0
  138. package/dist/types/modules/not_small_topbar/user_menu.d.ts +23 -0
  139. package/dist/types/modules/not_small_topbar/user_menu.d.ts.map +1 -0
  140. package/dist/types/modules/not_small_topbar/user_menu_trigger.d.ts +16 -0
  141. package/dist/types/modules/not_small_topbar/user_menu_trigger.d.ts.map +1 -0
  142. package/dist/types/modules/not_small_topbar.d.ts +1 -1
  143. package/dist/types/modules/not_small_topbar.d.ts.map +1 -1
  144. package/dist/types/modules/platform_announcements.d.ts +3 -3
  145. package/dist/types/modules/platform_announcements.d.ts.map +1 -1
  146. package/dist/types/modules/product_announcement.d.ts +1 -1
  147. package/dist/types/modules/product_announcement.d.ts.map +1 -1
  148. package/dist/types/modules/profile_container.d.ts +10 -0
  149. package/dist/types/modules/profile_container.d.ts.map +1 -0
  150. package/dist/types/modules/small_topbar/account_settings_link.d.ts +5 -0
  151. package/dist/types/modules/small_topbar/account_settings_link.d.ts.map +1 -0
  152. package/dist/types/modules/small_topbar/close_menu_button.d.ts +6 -0
  153. package/dist/types/modules/small_topbar/close_menu_button.d.ts.map +1 -0
  154. package/dist/types/modules/small_topbar/index.d.ts +17 -0
  155. package/dist/types/modules/small_topbar/index.d.ts.map +1 -0
  156. package/dist/types/modules/small_topbar/linked_accounts.d.ts +11 -0
  157. package/dist/types/modules/small_topbar/linked_accounts.d.ts.map +1 -0
  158. package/dist/types/modules/small_topbar/login_settings_link.d.ts +9 -0
  159. package/dist/types/modules/small_topbar/login_settings_link.d.ts.map +1 -0
  160. package/dist/types/modules/small_topbar/profile_link.d.ts +5 -0
  161. package/dist/types/modules/small_topbar/profile_link.d.ts.map +1 -0
  162. package/dist/types/modules/small_topbar/user_info.d.ts +13 -0
  163. package/dist/types/modules/small_topbar/user_info.d.ts.map +1 -0
  164. package/dist/types/modules/small_topbar/user_menu_trigger.d.ts +9 -0
  165. package/dist/types/modules/small_topbar/user_menu_trigger.d.ts.map +1 -0
  166. package/dist/types/modules/small_topbar/user_name.d.ts +5 -0
  167. package/dist/types/modules/small_topbar/user_name.d.ts.map +1 -0
  168. package/dist/types/modules/small_topbar.d.ts +0 -1
  169. package/dist/types/modules/small_topbar.d.ts.map +1 -1
  170. package/dist/types/modules/styled_root.d.ts +0 -1
  171. package/dist/types/modules/styled_root.d.ts.map +1 -1
  172. package/dist/types/modules/symbols.d.ts +2 -2
  173. package/dist/types/modules/symbols.d.ts.map +1 -1
  174. package/dist/types/modules/theme.d.ts +5 -0
  175. package/dist/types/modules/theme.d.ts.map +1 -0
  176. package/dist/types/modules/toolbar/components/drawer.d.ts +5 -0
  177. package/dist/types/modules/toolbar/components/drawer.d.ts.map +1 -0
  178. package/dist/types/modules/toolbar/components/drawer_header.d.ts +5 -0
  179. package/dist/types/modules/toolbar/components/drawer_header.d.ts.map +1 -0
  180. package/dist/types/modules/toolbar/components/drawer_heading.d.ts +5 -0
  181. package/dist/types/modules/toolbar/components/drawer_heading.d.ts.map +1 -0
  182. package/dist/types/modules/toolbar/components/index.d.ts +6 -0
  183. package/dist/types/modules/toolbar/components/index.d.ts.map +1 -0
  184. package/dist/types/modules/toolbar/components/switch_view.d.ts +8 -0
  185. package/dist/types/modules/toolbar/components/switch_view.d.ts.map +1 -0
  186. package/dist/types/modules/toolbar/components/user_profile.d.ts +11 -0
  187. package/dist/types/modules/toolbar/components/user_profile.d.ts.map +1 -0
  188. package/dist/types/modules/toolbar/hooks/index.d.ts +2 -0
  189. package/dist/types/modules/toolbar/hooks/index.d.ts.map +1 -0
  190. package/dist/types/modules/toolbar/hooks/use-toolbar-reducer.d.ts +20 -0
  191. package/dist/types/modules/toolbar/hooks/use-toolbar-reducer.d.ts.map +1 -0
  192. package/dist/types/modules/toolbar/hooks/use_toolbar_reducer.d.ts +20 -0
  193. package/dist/types/modules/toolbar/hooks/use_toolbar_reducer.d.ts.map +1 -0
  194. package/dist/types/modules/toolbar/index.d.ts +13 -0
  195. package/dist/types/modules/toolbar/index.d.ts.map +1 -0
  196. package/dist/types/modules/toolbar/tools/index.d.ts +3 -0
  197. package/dist/types/modules/toolbar/tools/index.d.ts.map +1 -0
  198. package/dist/types/modules/toolbar/tools/notifications.d.ts +4 -0
  199. package/dist/types/modules/toolbar/tools/notifications.d.ts.map +1 -0
  200. package/dist/types/modules/toolbar/tools/tasks.d.ts +4 -0
  201. package/dist/types/modules/toolbar/tools/tasks.d.ts.map +1 -0
  202. package/dist/types/modules/toolbar/useStore.d.ts +3 -0
  203. package/dist/types/modules/toolbar/useStore.d.ts.map +1 -0
  204. package/dist/types/modules/topbar_context.d.ts +1 -0
  205. package/dist/types/modules/topbar_context.d.ts.map +1 -1
  206. package/dist/types/modules/unbutton.d.ts +0 -1
  207. package/dist/types/modules/unbutton.d.ts.map +1 -1
  208. package/dist/types/modules/utils.d.ts +1 -0
  209. package/dist/types/modules/utils.d.ts.map +1 -1
  210. package/package.json +14 -3
  211. package/CHANGELOG.md +0 -217
@@ -1 +1 @@
1
- {"version":3,"file":"unbutton.d.ts","sourceRoot":"","sources":["../../../modules/unbutton.tsx"],"names":[],"mappings":";AAIA,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,GAAG,WAAW,EACf,EAAE;IACD,QAAQ,EAAE,GAAG,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,GAAG,CAAA;IACb,WAAW,CAAC,EAAE,GAAG,CAAA;IACjB,YAAY,CAAC,EAAE,GAAG,CAAA;IAClB,YAAY,CAAC,EAAE,GAAG,CAAA;IAClB,SAAS,CAAC,EAAE,GAAG,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,GAAG,CAAC,OAAO,CAkBd"}
1
+ {"version":3,"file":"unbutton.d.ts","sourceRoot":"","sources":["../../../modules/unbutton.tsx"],"names":[],"mappings":"AAIA,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,GAAG,WAAW,EACf,EAAE;IACD,QAAQ,EAAE,GAAG,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,GAAG,CAAA;IACb,WAAW,CAAC,EAAE,GAAG,CAAA;IACjB,YAAY,CAAC,EAAE,GAAG,CAAA;IAClB,YAAY,CAAC,EAAE,GAAG,CAAA;IAClB,SAAS,CAAC,EAAE,GAAG,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,GAAG,CAAC,OAAO,CAkBd"}
@@ -1,2 +1,3 @@
1
1
  export declare const capitalize: (s: string) => string;
2
+ export declare const HSLtoHSLA: (hsl: string, a?: number) => string;
2
3
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../modules/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,MAAO,MAAM,WAA2C,CAAA"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../modules/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,MAAO,MAAM,WAA2C,CAAA;AAE/E,eAAO,MAAM,SAAS,QAAS,MAAM,MAAK,MAAM,WAO/C,CAAA"}
package/package.json CHANGED
@@ -11,10 +11,15 @@
11
11
  "module": "./dist/topbar.module.js",
12
12
  "dependencies": {
13
13
  "@churchcenter/datetime-fmt": "^1.3.2",
14
+ "@emotion/cache": "^10.0.0",
15
+ "@emotion/react": "^11.10.5",
14
16
  "@planningcenter/jolt-client": "^1.3.1",
17
+ "@planningcenter/tapestry-react": "^2.6.0-rc.9",
15
18
  "@planningcenter/url": "^2.6.4",
16
19
  "react-cool-dimensions": "^2.0.7",
17
- "react-transition-group": "^4.4.2"
20
+ "react-transition-group": "^4.4.2",
21
+ "tslint-config-prettier": "^1.18.0",
22
+ "use-sync-external-store": "^1.2.0"
18
23
  },
19
24
  "name": "@planningcenter/topbar",
20
25
  "devDependencies": {
@@ -25,6 +30,7 @@
25
30
  "@typescript-eslint/parser": "^5.10.1",
26
31
  "css-loader": "^6.5.1",
27
32
  "eslint": "^8.7.0",
33
+ "eslint-config-prettier": "^8.8.0",
28
34
  "eslint-import-resolver-typescript": "^2.5.0",
29
35
  "eslint-plugin-import": "^2.25.4",
30
36
  "eslint-plugin-react": "^7.28.0",
@@ -49,7 +55,7 @@
49
55
  "webpack-cli": "^4.9.1",
50
56
  "webpack-dev-server": "^4.4.0"
51
57
  },
52
- "version": "8.3.2",
58
+ "version": "8.4.0-alpha.1",
53
59
  "peerDependencies": {
54
60
  "react": "^16.8.6"
55
61
  },
@@ -60,7 +66,12 @@
60
66
  "build": "microbundle --jsx React.createElement",
61
67
  "dev": "webpack-cli serve --mode development",
62
68
  "prepare": "$npm_execpath run build",
63
- "test": "jest"
69
+ "test": "jest",
70
+ "lint": "npx eslint modules",
71
+ "lint:fix": "yarn lint --fix",
72
+ "prettier": "npx prettier modules --check",
73
+ "prettier:fix": "yarn prettier --write",
74
+ "format": "yarn lint:fix && yarn prettier:fix"
64
75
  },
65
76
  "source": "index.ts",
66
77
  "types": "dist/types/index.d.ts"
package/CHANGELOG.md DELETED
@@ -1,217 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [8.3.2] - 2022-10-17
9
-
10
- ### Fixed
11
-
12
- - Prevent disconnecting from Jolt when using a shared Jolt client.
13
-
14
- ## [8.3.1] - 2022-08-31
15
-
16
- ### Fixed
17
-
18
- - Fix an overflow issue when there were enough linked orgs for the menu to hit the bottom of the browser on mobile
19
-
20
- ### Security
21
-
22
- - Bumped `moment-timezone` from 0.5.34 to 0.5.35
23
-
24
- ## [8.3.0] - 2022-08-16
25
-
26
- ### Added
27
-
28
- - Add `topbar` and `app-switcher` convenience data attributes for targeting with Pendo
29
-
30
- ### Changed
31
-
32
- - Add `?return` param to the Login profile path URL, to reduce our dependence on referers
33
-
34
- ### Security
35
-
36
- - Bumped `async` from 2.6.3 to 2.6.4
37
- - Bumped `terser` from 4.8.0 to 4.8.1
38
- - Bumped `moment` from 2.29.2 to 2.29.4
39
-
40
- ## [8.2.2] - 2022-06-28
41
-
42
- ### Changed
43
-
44
- - VoiceOver support for Notifications
45
-
46
- ## [8.2.1] - 2022-06-15
47
-
48
- ### Changed
49
-
50
- - Disable dropdown menu and hide caret icon when no custom routes are provided.
51
-
52
- ## [8.2.0] - 2022-05-23
53
-
54
- ### Added
55
-
56
- - Make whether Jolt sends its logs to console configurable (`enableJoltLogging` prop) and default to `false`
57
-
58
- ### Changed
59
-
60
- - Add more info regarding troubleshooting `yalc` issues to the README
61
- - Send a `fetchAuthTokenFn` to `jolt-client` instead of `authToken`. Over time, the auth token can get stale. Sending a function instead of a value allows the client to refresh itself when required.
62
- - Instead of fetching the WSS URLs for authorization from an api endpoint, hard-code them instead. After the change adding `fetchAuthTokenFn`, this change reduces required API calls by 1.
63
-
64
- ### Fixed
65
-
66
- - fix: hook into `pco-page-expired` to `disconnect` jolt instance when session is changed
67
-
68
- ## [8.1.1] - 2022-04-11
69
-
70
- ### Changed
71
-
72
- - fix: don't send a `timeZone` key to `@churchcenter/datetime-fmt` if it doesn't have a value
73
-
74
- ## [8.1.0] - 2022-04-11
75
-
76
- ### Changed
77
-
78
- - Removed references to Resources
79
- - Transition away from branded Accounts symbols
80
- - Fix padding in account switcher
81
- - Update styles for account switcher on mobile
82
- - Fix dark mode text styles in notifications inbox
83
- - Fix notification date timezone not displaying in the org's time zone
84
-
85
- ## [8.0.1] - 2022-03-29
86
-
87
- ### Changed
88
-
89
- - Correct the capitalization of "Check-Ins" in order to set the correct color for notifications
90
- - Bring back the `notifications` prop for topbars so that if notifications are not enabled, it will render the `notifications` prop instead
91
-
92
- ## [8.0.0] - 2022-03-24
93
-
94
- ### Added
95
-
96
- - Notification bell, indicator, and dropdown that displays the current user's read and unread notifications.
97
- - Subscribe to push notifications via Jolt after initial load. Whenever a push event is received, a GET request is sent to the notifications API endpoint to retrieve the details of the new notification.
98
- - Set up prettier and eslint and allow them to have their way on the code
99
- - Control the admin notifications inbox with the flipper flag of `TOPBAR_notifications_enabled` in People. Disable for a specific app by setting `window.notificationsDisabled = true`.
100
- - Control the Login info section with the flipper flag of `TOPBAR_mfa_enabled` in People.
101
- - Show an indicator for whether MFA is configured for the current profile
102
- - Add `props.linkToProfile` to `SharedTopbarProps` (so it's available to small and not small)
103
-
104
- ### Changed
105
-
106
- - No-op `AppsProvider`'s `fetch` and `remove` functions that are passed along with `apps` to the `render` function prop. Since we will always have fresh data now, there is no need to have these functions run.
107
- - The information required to render the topbar is now contained in a single API request from people (`/me/topbar`). This includes the list of apps to render in the app switcher and enabled features inside the topbar. This is a change specifically to the app switcher, so changes had to be made in terms of the expected shape of the response from the server in order to render the app switcher. The `AppsProvider` `mapApps` function has been updated accordingly.
108
-
109
- ### Removed
110
-
111
- - `mapResourcesToCalendar` is removed as an export of `AppsProvider`. The apps array we receive from the API no longer returns Resources. Use `mapApps` instead (or, better still, don't pass anything to `formatter` and let us use the default).
112
- - `MediumTopbar`. Only one app (API) was using it and it wasn't worth attempting to keep feature parity with the other two topbars.
113
-
114
- ## [7.2.1] - 2021-12-09
115
-
116
- ### Fixed
117
-
118
- - Bug z-stacking Safari bug that caused expanded `smalltopbar` items to show up behind elements [#46](https://github.com/planningcenter/topbar/pull/46)
119
- - Bug causing user settings to be hidden on mobile when Home wasn't enabled for the user [#47](https://github.com/planningcenter/topbar/pull/47)
120
-
121
- ## [7.2.0] - 2021-12-02
122
-
123
- ### Changed
124
-
125
- - New look and feel for the app switcher ([#40](https://github.com/planningcenter/topbar/pull/40), [#42](https://github.com/planningcenter/topbar/pull/42)).
126
- The switcher now displays Home at the top with some visual separation and Accounts (as "account") at the bottom—also with visual separation.
127
-
128
- ## [7.1.3] - 2021-11-16
129
-
130
- ### Fixed
131
-
132
- - Corrected the sorting of app names in mobile topbar as well [#36](https://github.com/planningcenter/topbar/pull/36)
133
-
134
- ## [7.1.2] - 2021-11-11
135
-
136
- ### Fixed
137
-
138
- - Corrected the corrected sorting of app names in app switcher [#33](https://github.com/planningcenter/topbar/pull/33)
139
-
140
- ## [7.1.1] - 2021-11-10
141
-
142
- ### Fixed
143
-
144
- - Corrected sorting of app names in app switcher [#32](https://github.com/planningcenter/topbar/pull/32)
145
-
146
- ## [7.1.0] - 2021-11-08
147
-
148
- ### Added
149
-
150
- - Add Home to the app switcher dropdown
151
-
152
- ## [7.0.0] - 2021-10-01
153
-
154
- - Add CSRF support to login ([#46](https://github.com/planningcenter/design/pull/46) @danielma)
155
- - [First implementation in Accounts](https://github.com/planningcenter/accounts/pull/1877/files)
156
- - [Second implementation in Giving](https://github.com/planningcenter/giving/pull/4482/files)
157
- - Update devDependencies pins
158
- - `microbundle`: `^0.12.4` => `^0.13.0`
159
- - `webpack`: `^4.46.0` => `^5.13.0`
160
- - `webpack-cli`: `^3.3.13` => `^4.3.1`
161
- - `ts-loader`: `^7.0.5` => `^8.0.14`
162
- - `typescript`: `^3.9.7` => `^4.1.3`
163
- - `react`: `^16.14.0` => `^17.0.1`
164
- - `react-dom`: `^16.14.0` => `^17.0.1`
165
- - `@types/react`: `^16.14.2` => `^17.0.0`
166
- - `@types/react-dom`: `^16.9.10` => `^17.0.0`
167
- - Unlock modern builds by removing `--format cjs` flag for improved bundling app-side
168
- - Add `referer` query parameter to `AppSwitch` urls: [Accounts PR](https://github.com/planningcenter/accounts/pull/1910)
169
- - Add the ability to override the topbar’s link colors via props in `NotSmallTopbar` [#122](https://github.com/planningcenter/design/pull/122)
170
- - Add `ProductAnnouncement` component
171
- - Additional top-level exports:
172
- - `ProductAnnouncementStyleProvider`
173
- - `StyledProductAnnouncement`
174
- - `StyledProductAnnouncementDimissButton`
175
- - `Topbar_ProductAnnouncement` parent selector for styling content
176
- - Fix Announcement topbars to be 14px font-size and 48px absolute height
177
-
178
- ## 6.0.0
179
-
180
- - [BREAKING] modify `/logout` urls to target Login, a2ec71d
181
-
182
- ## 5.0.0
183
-
184
- - [BREAKING] replace Registrations icon
185
- - Add `mapRegistrationsToExpiredRegistrations` to control them
186
-
187
- ## 4.11.0
188
-
189
- - Add `AppsProvider#formatter` and `mapApps`/`mapResourcesToCalendar` formatters to provide a AppsMenu control mechanism to product teams
190
- - Add `.codes` support for `pco-box`
191
-
192
- ## 4.9.0
193
-
194
- - Add support for "Calendar" app
195
-
196
- ## [Previous entries]
197
-
198
- Versions entries to this changelog weren't tracked very well and were presented in a less organized style (more like a README or upgrade guide). If you are interested in that, you can read about the changes in [README-pre-4.9.0].
199
-
200
- [8.3.2]: https://github.com/planningcenter/topbar/compare/v8.3.1...v8.3.2
201
- [8.3.1]: https://github.com/planningcenter/topbar/compare/v8.3.0...v8.3.1
202
- [8.3.0]: https://github.com/planningcenter/topbar/compare/v8.2.2...v8.3.0
203
- [8.2.2]: https://github.com/planningcenter/topbar/compare/v8.2.1...v8.2.2
204
- [8.2.1]: https://github.com/planningcenter/topbar/compare/v8.2.0...v8.2.1
205
- [8.2.0]: https://github.com/planningcenter/topbar/compare/v8.1.1...v8.2.0
206
- [8.1.1]: https://github.com/planningcenter/topbar/compare/v8.1.0...v8.1.1
207
- [8.1.0]: https://github.com/planningcenter/topbar/compare/v8.0.1...v8.1.0
208
- [8.0.1]: https://github.com/planningcenter/topbar/compare/v8.0.0...v8.0.1
209
- [8.0.0]: https://github.com/planningcenter/topbar/compare/v7.2.1...v8.0.0
210
- [7.2.1]: https://github.com/planningcenter/topbar/compare/v7.2.0...v7.2.1
211
- [7.2.0]: https://github.com/planningcenter/topbar/compare/v7.1.3...v7.2.0
212
- [7.1.3]: https://github.com/planningcenter/topbar/compare/v7.1.2...v7.1.3
213
- [7.1.2]: https://github.com/planningcenter/topbar/compare/v7.1.1...v7.1.2
214
- [7.1.1]: https://github.com/planningcenter/topbar/compare/v7.1.0...v7.1.1
215
- [7.1.0]: https://github.com/planningcenter/topbar/compare/v7.0.0...v7.1.0
216
- [7.0.0]: https://github.com/planningcenter/topbar/compare/@planningcenter/topbar@6.0.6..v7.0.0
217
- [previous entries]: CHANGELOG-pre-4.9.0.md