@planningcenter/topbar 9.8.0-rc.4 → 9.8.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.css +1 -1
- package/dist/topbar.css.map +1 -1
- 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_view/index.d.ts.map +1 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/message_input.d.ts.map +1 -1
- package/dist/types/modules/toolbar/tools/helpdesk/components/CustomSearchBox.d.ts.map +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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_view/index.tsx"],"names":[],"mappings":"AAoBA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_view/index.tsx"],"names":[],"mappings":"AAoBA,eAAO,MAAM,WAAW,mBAkGvB,CAAA"}
|
package/dist/types/modules/toolbar/tools/chat/components/channel_view/message_input.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message_input.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_view/message_input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"message_input.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_view/message_input.tsx"],"names":[],"mappings":"AAsBA,eAAO,MAAM,YAAY,mBA8FxB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomSearchBox.d.ts","sourceRoot":"","sources":["../../../../../../../modules/toolbar/tools/helpdesk/components/CustomSearchBox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EAMhB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,QAAQ;UACb,eAAe;aACZ,eAAe;CACzB,CAAA;
|
|
1
|
+
{"version":3,"file":"CustomSearchBox.d.ts","sourceRoot":"","sources":["../../../../../../../modules/toolbar/tools/helpdesk/components/CustomSearchBox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EAMhB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,QAAQ;UACb,eAAe;aACZ,eAAe;CACzB,CAAA;AAqGD,eAAO,MAAM,eAAe;oBAIV,MAAM;eACX,MAAM;iBAqElB,CAAA"}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@emotion/cache": "^11.10.5",
|
|
19
19
|
"@emotion/react": "^11.10.5",
|
|
20
20
|
"@planningcenter/icons": "^15.7.0",
|
|
21
|
-
"@planningcenter/jolt-client": "^
|
|
21
|
+
"@planningcenter/jolt-client": "^1.3.1",
|
|
22
22
|
"@planningcenter/url": "^2.7.0",
|
|
23
23
|
"algoliasearch": "^4.20.0",
|
|
24
24
|
"instantsearch.js": "^4.57.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"webpack-cli": "^4.9.1",
|
|
73
73
|
"webpack-dev-server": "^4.4.0"
|
|
74
74
|
},
|
|
75
|
-
"version": "9.8.0
|
|
75
|
+
"version": "9.8.0",
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"@planningcenter/add-ons": "~3",
|
|
78
78
|
"@planningcenter/tapestry-react": "^2.10.0",
|
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
"scripts": {
|
|
85
85
|
"build": "microbundle --jsx React.createElement --jsxFragment React.Fragment",
|
|
86
86
|
"dev": "webpack-cli serve --mode development",
|
|
87
|
+
"prepare": "$npm_execpath run build",
|
|
87
88
|
"test": "jest",
|
|
88
89
|
"lint": "npx eslint modules",
|
|
89
90
|
"lint:fix": "yarn lint --fix",
|