@planningcenter/topbar 9.7.0-rc.2 → 9.7.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/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/hooks/jolt.d.ts +4 -5
- package/dist/types/modules/hooks/jolt.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/hooks/use_notifications_has_unread.d.ts +2 -2
- package/dist/types/modules/hooks/use_notifications_has_unread.d.ts.map +1 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/index.d.ts +1 -1
- package/package.json +3 -2
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import Jolt from "@planningcenter/jolt-client";
|
|
2
|
-
import { JoltSubscription } from "@planningcenter/jolt-client/dist/types/JoltSubscription";
|
|
1
|
+
import Jolt, * as JoltLib from "@planningcenter/jolt-client";
|
|
3
2
|
import * as PCO_URL from "@planningcenter/url";
|
|
4
3
|
import { JoltMessage } from "../interfaces";
|
|
5
4
|
type UseJoltChannelSubscriptionProps = {
|
|
@@ -7,11 +6,11 @@ type UseJoltChannelSubscriptionProps = {
|
|
|
7
6
|
enableJoltLogging?: boolean;
|
|
8
7
|
enabled?: boolean;
|
|
9
8
|
env: PCO_URL.Environment;
|
|
9
|
+
wssEndpoint?: string;
|
|
10
10
|
fetchSubscribeToken: (cid: string) => Promise<string>;
|
|
11
11
|
joltPromise?: () => Promise<Jolt | undefined | void>;
|
|
12
|
-
wssEndpoint?: string;
|
|
13
12
|
};
|
|
14
|
-
export declare const useJoltChannelSubscription: ({ channelName, enableJoltLogging, enabled, env, wssEndpoint, fetchSubscribeToken, joltPromise, }: UseJoltChannelSubscriptionProps) =>
|
|
15
|
-
export declare const useJoltEffect: (channelSubscription:
|
|
13
|
+
export declare const useJoltChannelSubscription: ({ channelName, enableJoltLogging, enabled, env, wssEndpoint, fetchSubscribeToken, joltPromise, }: UseJoltChannelSubscriptionProps) => JoltLib.ChannelSubscription;
|
|
14
|
+
export declare const useJoltEffect: (channelSubscription: JoltLib.ChannelSubscription, eventName: string, callback: (data: JoltMessage) => unknown) => void;
|
|
16
15
|
export {};
|
|
17
16
|
//# sourceMappingURL=jolt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jolt.d.ts","sourceRoot":"","sources":["../../../../modules/hooks/jolt.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"jolt.d.ts","sourceRoot":"","sources":["../../../../modules/hooks/jolt.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,KAAK,OAAO,MAAM,6BAA6B,CAAA;AAC5D,OAAe,KAAK,OAAO,MAAM,qBAAqB,CAAA;AAItD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAc3C,KAAK,+BAA+B,GAAG;IACrC,WAAW,EAAE,MAAM,CAAA;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,EAAE,OAAO,CAAC,WAAW,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mBAAmB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;IACrD,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC,CAAA;CACrD,CAAA;AAED,eAAO,MAAM,0BAA0B,qGAQpC,+BAA+B,KAAG,QAAQ,mBA0E5C,CAAA;AAED,eAAO,MAAM,aAAa,wBACH,QAAQ,mBAAmB,aACrC,MAAM,mBACA,WAAW,KAAK,OAAO,SAWzC,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChannelSubscription } from "@planningcenter/jolt-client";
|
|
2
2
|
import * as PCO_URL from "@planningcenter/url";
|
|
3
3
|
import { Notification } from "../interfaces";
|
|
4
4
|
export type NotificationsHookProps = {
|
|
5
5
|
enabled?: boolean;
|
|
6
6
|
env: PCO_URL.Environment;
|
|
7
|
-
joltChannel:
|
|
7
|
+
joltChannel: ChannelSubscription;
|
|
8
8
|
};
|
|
9
9
|
declare const useNotifications: ({ enabled, env, joltChannel, }: NotificationsHookProps) => {
|
|
10
10
|
handleMarkAllAsRead: () => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_notifications.d.ts","sourceRoot":"","sources":["../../../../modules/hooks/use_notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"use_notifications.d.ts","sourceRoot":"","sources":["../../../../modules/hooks/use_notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAe,KAAK,OAAO,MAAM,qBAAqB,CAAA;AAItD,OAAO,EAGL,YAAY,EACb,MAAM,eAAe,CAAA;AA0DtB,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,EAAE,OAAO,CAAC,WAAW,CAAA;IACxB,WAAW,EAAE,mBAAmB,CAAA;CACjC,CAAA;AAED,QAAA,MAAM,gBAAgB,mCAInB,sBAAsB;yBACF,MAAM,GAAG;qCACG,YAAY,KAAK,QAAQ,GAAG,CAAC;qCAC7B,YAAY,KAAK,QAAQ,GAAG,CAAC;cACpD,OAAO;eACN,OAAO;UACZ,YAAY,EAAE;YACZ,YAAY,EAAE;CA+NvB,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChannelSubscription } from "@planningcenter/jolt-client";
|
|
2
2
|
import * as PCO_URL from "@planningcenter/url";
|
|
3
3
|
type NotificationsHookProps = {
|
|
4
4
|
enabled?: boolean;
|
|
5
5
|
env: PCO_URL.Environment;
|
|
6
|
-
joltChannel:
|
|
6
|
+
joltChannel: ChannelSubscription;
|
|
7
7
|
};
|
|
8
8
|
export declare const useNotificationsHasUnread: ({ enabled, joltChannel, }: NotificationsHookProps) => boolean;
|
|
9
9
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_notifications_has_unread.d.ts","sourceRoot":"","sources":["../../../../modules/hooks/use_notifications_has_unread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"use_notifications_has_unread.d.ts","sourceRoot":"","sources":["../../../../modules/hooks/use_notifications_has_unread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAA;AAU9C,KAAK,sBAAsB,GAAG;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,EAAE,OAAO,CAAC,WAAW,CAAA;IACxB,WAAW,EAAE,mBAAmB,CAAA;CACjC,CAAA;AAED,eAAO,MAAM,yBAAyB,8BAGnC,sBAAsB,KAAG,OAyC3B,CAAA"}
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@emotion/cache": "^11.10.5",
|
|
15
15
|
"@emotion/react": "^11.10.5",
|
|
16
16
|
"@planningcenter/icons": "^15.7.0",
|
|
17
|
-
"@planningcenter/jolt-client": "^3.
|
|
17
|
+
"@planningcenter/jolt-client": "^1.3.1",
|
|
18
18
|
"@planningcenter/url": "^2.7.0",
|
|
19
19
|
"algoliasearch": "^4.20.0",
|
|
20
20
|
"instantsearch.js": "^4.57.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"webpack-cli": "^4.9.1",
|
|
69
69
|
"webpack-dev-server": "^4.4.0"
|
|
70
70
|
},
|
|
71
|
-
"version": "9.7.0
|
|
71
|
+
"version": "9.7.0",
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"@planningcenter/add-ons": "~3",
|
|
74
74
|
"@planningcenter/tapestry-react": "^2.10.0",
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
"scripts": {
|
|
81
81
|
"build": "microbundle --jsx React.createElement --jsxFragment React.Fragment",
|
|
82
82
|
"dev": "webpack-cli serve --mode development",
|
|
83
|
+
"prepare": "$npm_execpath run build",
|
|
83
84
|
"test": "jest",
|
|
84
85
|
"lint": "npx eslint modules",
|
|
85
86
|
"lint:fix": "yarn lint --fix",
|