@planningcenter/topbar 7.1.3-alpha.0 → 7.2.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,83 @@
1
+ # Changelog
2
+
3
+ ## [Unreleased]
4
+ - New look and feel for the app switcher ([#40](https://github.com/ministrycentered/topbar/pull/40), [#42](https://github.com/ministrycentered/topbar/pull/42)).
5
+ The switcher now displays home at the top with some visual separation and accounts (as "account") at the bottom—also with visual separation.
6
+
7
+ ## [7.1.3] - 2021-11-16
8
+
9
+ ### Fixed
10
+ - Corrected the sorting of app names in mobile topbar as well [#36](https://github.com/ministrycentered/topbar/pull/36)
11
+
12
+ ## [7.1.2] - 2021-11-11
13
+
14
+ ### Fixed
15
+ - Corrected the corrected sorting of app names in app switcher [#33](https://github.com/ministrycentered/topbar/pull/33)
16
+
17
+ ## [7.1.1] - 2021-11-10
18
+
19
+ ### Fixed
20
+ - Corrected sorting of app names in app switcher [#32](https://github.com/ministrycentered/topbar/pull/32)
21
+
22
+ ## [7.1.0] - 2021-11-08
23
+
24
+ ### Added
25
+ - Add Home to the app switcher dropdown
26
+
27
+
28
+ ## [7.0.0] - 2021-10-01
29
+
30
+ - Add CSRF support to login ([#46](https://github.com/planningcenter/design/pull/46) @danielma)
31
+ - [First implementation in Accounts](https://github.com/ministrycentered/accounts/pull/1877/files)
32
+ - [Second implementation in Giving](https://github.com/ministrycentered/giving/pull/4482/files)
33
+ - Update devDependencies pins
34
+ - `microbundle`: `^0.12.4` => `^0.13.0`
35
+ - `webpack`: `^4.46.0` => `^5.13.0`
36
+ - `webpack-cli`: `^3.3.13` => `^4.3.1`
37
+ - `ts-loader`: `^7.0.5` => `^8.0.14`
38
+ - `typescript`: `^3.9.7` => `^4.1.3`
39
+ - `react`: `^16.14.0` => `^17.0.1`
40
+ - `react-dom`: `^16.14.0` => `^17.0.1`
41
+ - `@types/react`: `^16.14.2` => `^17.0.0`
42
+ - `@types/react-dom`: `^16.9.10` => `^17.0.0`
43
+ - Unlock modern builds by removing `--format cjs` flag for improved bundling app-side
44
+ - Add `referer` query parameter to `AppSwitch` urls: [Accounts PR](https://github.com/ministrycentered/accounts/pull/1910)
45
+ - Add the ability to override the topbar’s link colors via props in `NotSmallTopbar` [#122](https://github.com/planningcenter/design/pull/122)
46
+ - Add `ProductAnnouncement` component
47
+ - Additional top-level exports:
48
+ - `ProductAnnouncementStyleProvider`
49
+ - `StyledProductAnnouncement`
50
+ - `StyledProductAnnouncementDimissButton`
51
+ - `Topbar_ProductAnnouncement` parent selector for styling content
52
+ - Fix Announcement topbars to be 14px font-size and 48px absolute height
53
+
54
+ ## 6.0.0
55
+
56
+ - [BREAKING] modify `/logout` urls to target Login, a2ec71d
57
+
58
+ ## 5.0.0
59
+
60
+ - [BREAKING] replace Registrations icon
61
+ - Add `mapRegistrationsToExpiredRegistrations` to control them
62
+
63
+ ## 4.11.0
64
+
65
+ - Add `AppsProvider#formatter` and `mapApps`/`mapResourcesToCalendar` formatters to provide a AppsMenu control mechanism to product teams
66
+ - Add `.codes` support for `pco-box`
67
+
68
+ ## 4.9.0
69
+
70
+ - Add support for "Calendar" app
71
+
72
+ ## [Previous entries]
73
+
74
+ 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].
75
+
76
+
77
+
78
+ [7.1.3]: https://github.com/ministrycentered/topbar/compare/v7.1.2..v7.1.3
79
+ [7.1.2]: https://github.com/ministrycentered/topbar/compare/v7.1.1..v7.1.2
80
+ [7.1.1]: https://github.com/ministrycentered/topbar/compare/v7.1.0..v7.1.1
81
+ [7.1.0]: https://github.com/ministrycentered/topbar/compare/v7.0.0..v7.1.0
82
+ [7.0.0]: https://github.com/ministrycentered/topbar/compare/@planningcenter/topbar@6.0.6..v7.0.0
83
+ [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"]}