@planningcenter/topbar 8.0.0-alpha.1 → 8.0.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-pre-4.9.0.md +134 -0
- package/CHANGELOG.md +2 -2
- package/README.md +13 -0
- package/dist/topbar.js +1 -1
- package/dist/topbar.js.map +1 -1
- package/dist/topbar.modern.js +1 -1
- package/dist/topbar.modern.js.map +1 -1
- package/dist/topbar.module.js +1 -1
- package/dist/topbar.module.js.map +1 -1
- package/dist/topbar.umd.js +1 -1
- package/dist/topbar.umd.js.map +1 -1
- package/dist/types/modules/components/hoverable_list_item.d.ts +2 -1
- package/dist/types/modules/components/hoverable_list_item.d.ts.map +1 -1
- package/dist/types/modules/components/notification_item.d.ts +1 -1
- package/dist/types/modules/components/notification_item.d.ts.map +1 -1
- package/dist/types/modules/components/notifications_menu.d.ts.map +1 -1
- package/dist/types/modules/hooks/use_notifications.d.ts +2 -2
- package/dist/types/modules/hooks/use_notifications.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const HoverableListItem: ({ component: C, style, ...nativeProps }: {
|
|
2
|
+
declare const HoverableListItem: ({ active, component: C, style, ...nativeProps }: {
|
|
3
|
+
active?: boolean;
|
|
3
4
|
children?: React.ReactNode;
|
|
4
5
|
component?: any;
|
|
5
6
|
href?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hoverable_list_item.d.ts","sourceRoot":"","sources":["../../../../modules/components/hoverable_list_item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,QAAA,MAAM,iBAAiB;
|
|
1
|
+
{"version":3,"file":"hoverable_list_item.d.ts","sourceRoot":"","sources":["../../../../modules/components/hoverable_list_item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,QAAA,MAAM,iBAAiB;aAMZ,OAAO;eACL,MAAM,SAAS;gBACd,GAAG;WACR,MAAM;cACH,GAAG;YACL,MAAM;iBAef,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -4,7 +4,7 @@ declare const NotificationItem: ({ mobile, isLast, onMarkAsRead, onToggleRead, s
|
|
|
4
4
|
isLast?: boolean;
|
|
5
5
|
mobile?: boolean;
|
|
6
6
|
notification: Notification;
|
|
7
|
-
onMarkAsRead?: (notification: Notification) => any
|
|
7
|
+
onMarkAsRead?: (notification: Notification) => Promise<any>;
|
|
8
8
|
onToggleRead: any;
|
|
9
9
|
showBottomBorder?: boolean;
|
|
10
10
|
}) => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification_item.d.ts","sourceRoot":"","sources":["../../../../modules/components/notification_item.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AA2C5C,QAAA,MAAM,gBAAgB;aAQX,OAAO;aACP,OAAO;kBACF,YAAY;kCACI,YAAY,KAAK,GAAG;
|
|
1
|
+
{"version":3,"file":"notification_item.d.ts","sourceRoot":"","sources":["../../../../modules/components/notification_item.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AA2C5C,QAAA,MAAM,gBAAgB;aAQX,OAAO;aACP,OAAO;kBACF,YAAY;kCACI,YAAY,KAAK,QAAQ,GAAG,CAAC;kBAC7C,GAAG;uBACE,OAAO;iBAuG3B,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications_menu.d.ts","sourceRoot":"","sources":["../../../../modules/components/notifications_menu.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,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;AAuJjD,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;iBA0UlB,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -9,8 +9,8 @@ declare type UseNotificationsProps = {
|
|
|
9
9
|
};
|
|
10
10
|
declare const useNotifications: ({ enabled, env, userId, ...props }: UseNotificationsProps) => {
|
|
11
11
|
handleMarkAllAsRead: () => any;
|
|
12
|
-
handleMarkAsRead: (notification: Notification) => any
|
|
13
|
-
handleToggleRead: (notification: Notification) => any
|
|
12
|
+
handleMarkAsRead: (notification: Notification) => Promise<any>;
|
|
13
|
+
handleToggleRead: (notification: Notification) => Promise<any>;
|
|
14
14
|
hasError: boolean;
|
|
15
15
|
isLoading: boolean;
|
|
16
16
|
read: Notification[];
|
|
@@ -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,GAAG;
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planningcenter/topbar",
|
|
3
|
-
"version": "8.0.0-alpha.1",
|
|
4
3
|
"license": "UNLICENSED",
|
|
5
4
|
"description": "Planning Center application Topbar",
|
|
6
5
|
"main": "./dist/topbar.js",
|
|
@@ -14,11 +13,11 @@
|
|
|
14
13
|
"dev": "webpack-cli serve --mode development",
|
|
15
14
|
"prepare": "$npm_execpath run build"
|
|
16
15
|
},
|
|
16
|
+
"author": "Front End Systems Engineering <frontend@planningcenter.com>",
|
|
17
17
|
"files": [
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"repository": "https://github.com/ministrycentered/topbar.git",
|
|
21
|
-
"author": "Michael Chan <mijoch@gmail.com>",
|
|
22
21
|
"private": false,
|
|
23
22
|
"dependencies": {
|
|
24
23
|
"@churchcenter/datetime-fmt": "^1.3.2",
|
|
@@ -58,5 +57,6 @@
|
|
|
58
57
|
"webpack-cli": "^4.9.1",
|
|
59
58
|
"webpack-dev-server": "^4.4.0"
|
|
60
59
|
},
|
|
60
|
+
"version": "8.0.0",
|
|
61
61
|
"types": "dist/types/index.d.ts"
|
|
62
62
|
}
|