@planningcenter/topbar 7.3.0-alpha.2 → 7.3.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.md +1 -0
- package/README.md +8 -2
- 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/api_request.d.ts +0 -12
- package/dist/types/modules/api_request.d.ts.map +1 -1
- package/dist/types/modules/apps_provider.d.ts +1 -1
- package/dist/types/modules/apps_provider.d.ts.map +1 -1
- package/dist/types/modules/components/hoverable.d.ts +2 -1
- package/dist/types/modules/components/hoverable.d.ts.map +1 -1
- package/dist/types/modules/components/notification_bell.d.ts +4 -1
- package/dist/types/modules/components/notification_bell.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/dist/types/modules/not_small_topbar.d.ts.map +1 -1
- package/dist/types/modules/small_topbar.d.ts.map +1 -1
- package/dist/types/modules/topbar_context.d.ts +1 -1
- package/dist/types/modules/topbar_context.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
import { Environment } from "@planningcenter/url";
|
|
2
|
-
declare global {
|
|
3
|
-
interface Window {
|
|
4
|
-
Rails?: {
|
|
5
|
-
csrfToken: () => string;
|
|
6
|
-
};
|
|
7
|
-
currentPerson?: {
|
|
8
|
-
id: number;
|
|
9
|
-
};
|
|
10
|
-
railsEnv?: Environment;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
1
|
export declare type Fetch = typeof fetch;
|
|
14
2
|
export declare const defaultFetch: Fetch;
|
|
15
3
|
export declare const railsCsrfFetch: Fetch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_request.d.ts","sourceRoot":"","sources":["../../../modules/api_request.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"api_request.d.ts","sourceRoot":"","sources":["../../../modules/api_request.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK,GAAG,OAAO,KAAK,CAAA;AAEhC,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAA;AAYD,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,MAAM,EACX,EAAE,MAAc,EAAE,IAAW,EAAE;;;CAAK,GACnC,OAAO,CAAC;IAAE,IAAI,EAAE,GAAG,CAAC;IAAC,EAAE,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC,CA0BzD"}
|
|
@@ -3,9 +3,9 @@ import * as React from "react";
|
|
|
3
3
|
import { Fetch } from "./api_request";
|
|
4
4
|
import { App, TopbarAPIResponse } from "./interfaces";
|
|
5
5
|
export declare const AppsProvider: ({ configuredFetch, env, formatter, render, }: {
|
|
6
|
+
configuredFetch?: Fetch;
|
|
6
7
|
env: PCO_URL.Environment;
|
|
7
8
|
formatter?: any;
|
|
8
|
-
configuredFetch?: Fetch;
|
|
9
9
|
render: (apps: object[], { fetch, remove }: {
|
|
10
10
|
fetch: () => any;
|
|
11
11
|
remove: () => any;
|
|
@@ -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,GAAG,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAGrD,eAAO,MAAM,YAAY;
|
|
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,GAAG,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAGrD,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;iBAkB7B,CAAA;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,iBAAiB,SAW7D;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,iBAAiB,SAE9C"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const Hoverable: ({ active, component: C, hover, style, ...nativeProps }: {
|
|
2
|
+
declare const Hoverable: ({ active, component: C, hover, innerRef, style, ...nativeProps }: {
|
|
3
3
|
active?: any;
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
component?: any;
|
|
6
6
|
href?: string;
|
|
7
7
|
hover?: any;
|
|
8
|
+
innerRef?: any;
|
|
8
9
|
onClick?: any;
|
|
9
10
|
style?: object;
|
|
10
11
|
type?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hoverable.d.ts","sourceRoot":"","sources":["../../../../modules/components/hoverable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,SAAS;
|
|
1
|
+
{"version":3,"file":"hoverable.d.ts","sourceRoot":"","sources":["../../../../modules/components/hoverable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,SAAS;aAQJ,GAAG;eACD,MAAM,SAAS;gBACd,GAAG;WACR,MAAM;YACL,GAAG;eACA,GAAG;cACJ,GAAG;YACL,MAAM;WACP,MAAM;iBAqBd,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const NotificationBell: ({ indicatorVisible, style, ...props }: {
|
|
2
|
+
declare const NotificationBell: ({ colors, indicatorVisible, isHover, isOpen, style, ...props }: {
|
|
3
|
+
colors: any;
|
|
3
4
|
indicatorVisible?: boolean;
|
|
5
|
+
isHover?: boolean;
|
|
6
|
+
isOpen?: boolean;
|
|
4
7
|
style?: object;
|
|
5
8
|
}) => JSX.Element;
|
|
6
9
|
export default NotificationBell;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification_bell.d.ts","sourceRoot":"","sources":["../../../../modules/components/notification_bell.tsx"],"names":[],"mappings":";AAIA,QAAA,MAAM,gBAAgB;
|
|
1
|
+
{"version":3,"file":"notification_bell.d.ts","sourceRoot":"","sources":["../../../../modules/components/notification_bell.tsx"],"names":[],"mappings":";AAIA,QAAA,MAAM,gBAAgB;YAQZ,GAAG;uBACQ,OAAO;cAChB,OAAO;aACR,OAAO;YACR,MAAM;iBAgBf,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -2,12 +2,12 @@ import Jolt from "@planningcenter/jolt-client";
|
|
|
2
2
|
import * as PCO_URL from "@planningcenter/url";
|
|
3
3
|
import { Notification } from "../interfaces";
|
|
4
4
|
declare type UseNotificationsProps = {
|
|
5
|
-
|
|
5
|
+
enabled?: boolean;
|
|
6
6
|
env: PCO_URL.Environment;
|
|
7
7
|
joltPromise?: () => Promise<Jolt | undefined | void>;
|
|
8
8
|
userId: string;
|
|
9
9
|
};
|
|
10
|
-
declare const useNotifications: ({
|
|
10
|
+
declare const useNotifications: ({ enabled, env, userId, ...props }: UseNotificationsProps) => {
|
|
11
11
|
handleMarkAllAsRead: () => any;
|
|
12
12
|
handleMarkAsRead: (notification: Notification) => any;
|
|
13
13
|
handleToggleRead: (notification: Notification) => any;
|
|
@@ -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,
|
|
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;qCACpB,YAAY,KAAK,GAAG;cAC3C,OAAO;eACN,OAAO;UACZ,YAAY,EAAE;YACZ,YAAY,EAAE;iBACT,MAAM;CA+NpB,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"not_small_topbar.d.ts","sourceRoot":"","sources":["../../../modules/not_small_topbar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"not_small_topbar.d.ts","sourceRoot":"","sources":["../../../modules/not_small_topbar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAe9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAQhD,UAAU,mBAAmB;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,oBAAoB,CAAC,EAAE,MAAM,GAAG,CAAA;IAChC,MAAM,CAAC,EAAE,GAAG,CAAA;IACZ,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,QAAA,MAAM,MAAM;YAAW,mBAAmB,GAAG,iBAAiB;;;;;;;CA2a7D,CAAA;AASD,QAAA,MAAM,KAAK;YAMD,OAAO;cACL,MAAM,SAAS;YACjB,GAAG;WACJ,MAAM;YACL,MAAM;iBA0Cf,CAAA;AAED,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"small_topbar.d.ts","sourceRoot":"","sources":["../../../modules/small_topbar.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAoChD,UAAU,gBAAgB;IACxB,qBAAqB,CAAC,EAAE,GAAG,CAAA;CAC5B;AAED,QAAA,MAAM,MAAM;YAAW,iBAAiB,GAAG,gBAAgB;;;;
|
|
1
|
+
{"version":3,"file":"small_topbar.d.ts","sourceRoot":"","sources":["../../../modules/small_topbar.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAoChD,UAAU,gBAAgB;IACxB,qBAAqB,CAAC,EAAE,GAAG,CAAA;CAC5B;AAED,QAAA,MAAM,MAAM;YAAW,iBAAiB,GAAG,gBAAgB;;;;CAihB1D,CAAA;AAMD,QAAA,MAAM,KAAK;;;iBAmBV,CAAA;AAED,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topbar_context.d.ts","sourceRoot":"","sources":["../../../modules/topbar_context.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"topbar_context.d.ts","sourceRoot":"","sources":["../../../modules/topbar_context.ts"],"names":[],"mappings":";;;;AAGA,wBAA6D"}
|