@planningcenter/topbar 7.1.3 → 7.2.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,86 @@
1
+ # Changelog
2
+
3
+ ## [7.2.0] - 2021-12-02
4
+
5
+ ### Changed
6
+ - New look and feel for the app switcher ([#40](https://github.com/ministrycentered/topbar/pull/40), [#42](https://github.com/ministrycentered/topbar/pull/42)).
7
+ The switcher now displays Home at the top with some visual separation and Accounts (as "account") at the bottom—also with visual separation.
8
+
9
+ ## [7.1.3] - 2021-11-16
10
+
11
+ ### Fixed
12
+ - Corrected the sorting of app names in mobile topbar as well [#36](https://github.com/ministrycentered/topbar/pull/36)
13
+
14
+ ## [7.1.2] - 2021-11-11
15
+
16
+ ### Fixed
17
+ - Corrected the corrected sorting of app names in app switcher [#33](https://github.com/ministrycentered/topbar/pull/33)
18
+
19
+ ## [7.1.1] - 2021-11-10
20
+
21
+ ### Fixed
22
+ - Corrected sorting of app names in app switcher [#32](https://github.com/ministrycentered/topbar/pull/32)
23
+
24
+ ## [7.1.0] - 2021-11-08
25
+
26
+ ### Added
27
+ - Add Home to the app switcher dropdown
28
+
29
+
30
+ ## [7.0.0] - 2021-10-01
31
+
32
+ - Add CSRF support to login ([#46](https://github.com/planningcenter/design/pull/46) @danielma)
33
+ - [First implementation in Accounts](https://github.com/ministrycentered/accounts/pull/1877/files)
34
+ - [Second implementation in Giving](https://github.com/ministrycentered/giving/pull/4482/files)
35
+ - Update devDependencies pins
36
+ - `microbundle`: `^0.12.4` => `^0.13.0`
37
+ - `webpack`: `^4.46.0` => `^5.13.0`
38
+ - `webpack-cli`: `^3.3.13` => `^4.3.1`
39
+ - `ts-loader`: `^7.0.5` => `^8.0.14`
40
+ - `typescript`: `^3.9.7` => `^4.1.3`
41
+ - `react`: `^16.14.0` => `^17.0.1`
42
+ - `react-dom`: `^16.14.0` => `^17.0.1`
43
+ - `@types/react`: `^16.14.2` => `^17.0.0`
44
+ - `@types/react-dom`: `^16.9.10` => `^17.0.0`
45
+ - Unlock modern builds by removing `--format cjs` flag for improved bundling app-side
46
+ - Add `referer` query parameter to `AppSwitch` urls: [Accounts PR](https://github.com/ministrycentered/accounts/pull/1910)
47
+ - Add the ability to override the topbar’s link colors via props in `NotSmallTopbar` [#122](https://github.com/planningcenter/design/pull/122)
48
+ - Add `ProductAnnouncement` component
49
+ - Additional top-level exports:
50
+ - `ProductAnnouncementStyleProvider`
51
+ - `StyledProductAnnouncement`
52
+ - `StyledProductAnnouncementDimissButton`
53
+ - `Topbar_ProductAnnouncement` parent selector for styling content
54
+ - Fix Announcement topbars to be 14px font-size and 48px absolute height
55
+
56
+ ## 6.0.0
57
+
58
+ - [BREAKING] modify `/logout` urls to target Login, a2ec71d
59
+
60
+ ## 5.0.0
61
+
62
+ - [BREAKING] replace Registrations icon
63
+ - Add `mapRegistrationsToExpiredRegistrations` to control them
64
+
65
+ ## 4.11.0
66
+
67
+ - Add `AppsProvider#formatter` and `mapApps`/`mapResourcesToCalendar` formatters to provide a AppsMenu control mechanism to product teams
68
+ - Add `.codes` support for `pco-box`
69
+
70
+ ## 4.9.0
71
+
72
+ - Add support for "Calendar" app
73
+
74
+ ## [Previous entries]
75
+
76
+ 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].
77
+
78
+
79
+
80
+ [7.2.0]: https://github.com/ministrycentered/topbar/compare/v7.1.3..v7.2.0
81
+ [7.1.3]: https://github.com/ministrycentered/topbar/compare/v7.1.2..v7.1.3
82
+ [7.1.2]: https://github.com/ministrycentered/topbar/compare/v7.1.1..v7.1.2
83
+ [7.1.1]: https://github.com/ministrycentered/topbar/compare/v7.1.0..v7.1.1
84
+ [7.1.0]: https://github.com/ministrycentered/topbar/compare/v7.0.0..v7.1.0
85
+ [7.0.0]: https://github.com/ministrycentered/topbar/compare/@planningcenter/topbar@6.0.6..v7.0.0
86
+ [Previous entries]: CHANGELOG-pre-4.9.0.md
@@ -0,0 +1,46 @@
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,9 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { Notification } from "../interfaces";
3
- declare const NotificationItem: ({ mobile, isLast, onToggleRead, notification: { appName, createdAt, isRead, link, title }, }: {
3
+ declare const NotificationItem: ({ mobile, isLast, onMarkAsRead, onToggleRead, showBottomBorder, notification, }: {
4
4
  mobile?: boolean;
5
5
  isLast?: boolean;
6
+ onMarkAsRead?: (notification: Notification) => any;
6
7
  onToggleRead: any;
8
+ showBottomBorder?: boolean;
7
9
  notification: Notification;
8
10
  }) => JSX.Element;
9
11
  export default NotificationItem;
@@ -1,10 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import * as PCO_URL from "@planningcenter/url";
3
3
  import { Notification } from "../interfaces";
4
- declare const NotificationsMenu: ({ env, handleMarkAllAsRead, handleToggleRead, mobile, notifications: { read, unread }, toggle, visible, }: {
4
+ declare const NotificationsMenu: ({ env, handleMarkAllAsRead, handleMarkAsRead, handleToggleRead, hasError, isLoading, mobile, notifications: { read, unread }, toggle, visible, }: {
5
5
  env: PCO_URL.Environment;
6
6
  handleMarkAllAsRead: () => any;
7
+ handleMarkAsRead: (notification: Notification) => any;
7
8
  handleToggleRead: (notification: Notification) => any;
9
+ hasError?: boolean;
10
+ isLoading?: boolean;
8
11
  mobile?: boolean;
9
12
  notifications: {
10
13
  read: Notification[];
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import "./spinner.css";
3
+ declare const Spinner: (props: any) => JSX.Element;
4
+ export default Spinner;
@@ -5,7 +5,10 @@ declare const useNotifications: ({ env, userId, }: {
5
5
  userId: string;
6
6
  }) => {
7
7
  handleMarkAllAsRead: () => any;
8
+ handleMarkAsRead: (notification: Notification) => any;
8
9
  handleToggleRead: (notification: Notification) => any;
10
+ hasError: boolean;
11
+ isLoading: boolean;
9
12
  read: Notification[];
10
13
  unread: Notification[];
11
14
  };
@@ -17,17 +17,6 @@ export declare class AppsButton extends React.Component<{
17
17
  };
18
18
  render(): JSX.Element;
19
19
  }
20
- export declare class HoverableListItem extends React.Component<{
21
- component?: any;
22
- style?: object;
23
- href?: string;
24
- onClick?: any;
25
- }, {
26
- entered: boolean;
27
- }> {
28
- constructor(props: any);
29
- render(): JSX.Element;
30
- }
31
20
  export declare class Hoverable extends React.Component<{
32
21
  component?: any;
33
22
  style?: object;
@@ -42,30 +31,6 @@ export declare class Hoverable extends React.Component<{
42
31
  constructor(props: any);
43
32
  render(): JSX.Element;
44
33
  }
45
- export declare const AppsMenu: (props: any) => JSX.Element;
46
- export declare class Outsider extends React.Component<{
47
- component: any;
48
- cleanup: boolean;
49
- onOutsideClick: any;
50
- visible: boolean;
51
- }, {}> {
52
- private container;
53
- constructor(props: any);
54
- componentWillUnmount(): void;
55
- handleOutsideClick(e: any): any;
56
- render(): JSX.Element;
57
- }
58
- export declare class PopupRoot extends React.Component<{
59
- style?: object;
60
- }, {}> {
61
- render(): JSX.Element;
62
- }
63
- export declare const Popup: React.StatelessComponent<{
64
- component?: any;
65
- style?: object;
66
- onOutsideClick?: any;
67
- cleanup?: any;
68
- }>;
69
34
  export declare class Topbar extends React.Component<{
70
35
  apps: {
71
36
  attributes: {
@@ -0,0 +1,2 @@
1
+ @-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.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["spinner.css"],"names":[],"mappings":"AAAA,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.css","sourcesContent":["@-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"]}