@planningcenter/topbar 8.0.0-alpha.0 → 8.0.0-alpha.3
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/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/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/apps_provider.d.ts +2 -3
- package/dist/types/modules/apps_provider.d.ts.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 +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { railsCsrfFetch } from "./modules/api_request";
|
|
2
|
-
export { AppsProvider, mapApps
|
|
2
|
+
export { AppsProvider, mapApps } from "./modules/apps_provider";
|
|
3
3
|
export { ConnectedPeopleProvider } from "./modules/connected_people_provider";
|
|
4
4
|
export { DisplaySwitch } from "./modules/display_switch";
|
|
5
5
|
export { Route as NotSmallRoute, Topbar as NotSmallTopbar, } from "./modules/not_small_topbar";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAA;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EACL,KAAK,IAAI,aAAa,EACtB,MAAM,IAAI,cAAc,GACzB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACL,OAAO,IAAI,qBAAqB,EAChC,aAAa,IAAI,kCAAkC,EACnD,kBAAkB,IAAI,0BAA0B,GACjD,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,mBAAmB,EACnB,aAAa,IAAI,gCAAgC,EACjD,kBAAkB,IAAI,yBAAyB,EAC/C,mBAAmB,IAAI,qCAAqC,GAC7D,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACL,KAAK,IAAI,UAAU,EACnB,MAAM,IAAI,WAAW,GACtB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,IAAI,IAAI,QAAQ,EAChB,QAAQ,IAAI,YAAY,EACxB,CAAC,IAAI,KAAK,GACX,MAAM,mBAAmB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as PCO_URL from "@planningcenter/url";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { Fetch } from "./api_request";
|
|
4
|
-
import {
|
|
4
|
+
import { TopbarAPIResponse } from "./interfaces";
|
|
5
5
|
export declare const AppsProvider: ({ configuredFetch, env, formatter, render, }: {
|
|
6
6
|
configuredFetch?: Fetch;
|
|
7
7
|
env: PCO_URL.Environment;
|
|
@@ -11,6 +11,5 @@ export declare const AppsProvider: ({ configuredFetch, env, formatter, render, }
|
|
|
11
11
|
remove: () => any;
|
|
12
12
|
}) => React.ReactElement<any>;
|
|
13
13
|
}) => JSX.Element;
|
|
14
|
-
export declare function
|
|
15
|
-
export declare function mapApps(resp: TopbarAPIResponse): App[];
|
|
14
|
+
export declare function mapApps(resp: TopbarAPIResponse): import("./interfaces").App[];
|
|
16
15
|
//# sourceMappingURL=apps_provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps_provider.d.ts","sourceRoot":"","sources":["../../../modules/apps_provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAA;AAC9C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAgB,KAAK,EAAE,MAAM,eAAe,CAAA;AAEnD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"apps_provider.d.ts","sourceRoot":"","sources":["../../../modules/apps_provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAA;AAC9C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAgB,KAAK,EAAE,MAAM,eAAe,CAAA;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAGhD,eAAO,MAAM,YAAY;sBAML,KAAK;SAClB,QAAQ,WAAW;gBACZ,GAAG;mBAEP,MAAM,EAAE;eACc,MAAM,GAAG;gBAAU,MAAM,GAAG;UACrD,MAAM,YAAY,CAAC,GAAG,CAAC;iBAuB7B,CAAA;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,iBAAiB,gCAE9C"}
|
|
@@ -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"}
|