@planningcenter/topbar 9.7.0 → 9.8.0-rc.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.
@@ -1,4 +1,5 @@
1
- import Jolt, * as JoltLib from "@planningcenter/jolt-client";
1
+ import Jolt from "@planningcenter/jolt-client";
2
+ import { JoltSubscription } from "@planningcenter/jolt-client/dist/types/JoltSubscription";
2
3
  import * as PCO_URL from "@planningcenter/url";
3
4
  import { JoltMessage } from "../interfaces";
4
5
  type UseJoltChannelSubscriptionProps = {
@@ -6,11 +7,11 @@ type UseJoltChannelSubscriptionProps = {
6
7
  enableJoltLogging?: boolean;
7
8
  enabled?: boolean;
8
9
  env: PCO_URL.Environment;
9
- wssEndpoint?: string;
10
10
  fetchSubscribeToken: (cid: string) => Promise<string>;
11
11
  joltPromise?: () => Promise<Jolt | undefined | void>;
12
+ wssEndpoint?: string;
12
13
  };
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;
14
+ export declare const useJoltChannelSubscription: ({ channelName, enableJoltLogging, enabled, env, wssEndpoint, fetchSubscribeToken, joltPromise, }: UseJoltChannelSubscriptionProps) => JoltSubscription;
15
+ export declare const useJoltEffect: (channelSubscription: JoltSubscription, eventName: string, callback: (data: JoltMessage) => void) => void;
15
16
  export {};
16
17
  //# 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,EAAE,KAAK,OAAO,MAAM,6BAA6B,CAAA;AAC5D,OAAe,KAAK,OAAO,MAAM,qBAAqB,CAAA;AAItD,OAAO,EAAE,WAAW,EAAE,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,eAAO,MAAM,0BAA0B,qGAQpC,+BAA+B,qBAuEjC,CAAA;AAED,eAAO,MAAM,aAAa,wBACH,gBAAgB,aAC1B,MAAM,mBACA,WAAW,KAAK,IAAI,SAWtC,CAAA"}
@@ -1,10 +1,10 @@
1
- import { ChannelSubscription } from "@planningcenter/jolt-client";
1
+ import { JoltSubscription } from "@planningcenter/jolt-client/dist/types/JoltSubscription";
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: ChannelSubscription;
7
+ joltChannel: JoltSubscription;
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,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
+ {"version":3,"file":"use_notifications.d.ts","sourceRoot":"","sources":["../../../../modules/hooks/use_notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAA;AAC1F,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,gBAAgB,CAAA;CAC9B,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;CAqOvB,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -1,9 +1,9 @@
1
- import { ChannelSubscription } from "@planningcenter/jolt-client";
1
+ import { JoltSubscription } from "@planningcenter/jolt-client/dist/types/JoltSubscription";
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: ChannelSubscription;
6
+ joltChannel: JoltSubscription;
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,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
+ {"version":3,"file":"use_notifications_has_unread.d.ts","sourceRoot":"","sources":["../../../../modules/hooks/use_notifications_has_unread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAA;AAC1F,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,gBAAgB,CAAA;CAC9B,CAAA;AAED,eAAO,MAAM,yBAAyB,8BAGnC,sBAAsB,KAAG,OAyC3B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../modules/toolbar/index.tsx"],"names":[],"mappings":"AAWA,OAAe,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAYzD,OAAO,EAAE,cAAc,EAAiC,MAAM,SAAS,CAAA;AAOvE,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,GAAG,EAAE,WAAW,CAAA;IAChB,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,oBAAoB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/C,cAAc,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAuBD,wBAAgB,OAAO,CAAC,EACtB,OAAO,EACP,aAAa,EACb,iBAAiB,EACjB,GAAG,EACH,cAAmB,EACnB,aAAoB,EACpB,cAAc,EACd,QAAQ,EACR,oBAAoB,GACrB,EAAE,YAAY,GAAG,GAAG,CAAC,OAAO,CA0X5B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../modules/toolbar/index.tsx"],"names":[],"mappings":"AAWA,OAAe,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAYzD,OAAO,EAAE,cAAc,EAAiC,MAAM,SAAS,CAAA;AAOvE,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,GAAG,EAAE,WAAW,CAAA;IAChB,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,oBAAoB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/C,cAAc,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAuBD,wBAAgB,OAAO,CAAC,EACtB,OAAO,EACP,aAAa,EACb,iBAAiB,EACjB,GAAG,EACH,cAAmB,EACnB,aAAoB,EACpB,cAAc,EACd,QAAQ,EACR,oBAAoB,GACrB,EAAE,YAAY,GAAG,GAAG,CAAC,OAAO,CA2X5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"teams.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/services/teams.tsx"],"names":[],"mappings":"AAmBA,eAAO,MAAM,KAAK;;;;iBA+HjB,CAAA"}
1
+ {"version":3,"file":"teams.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/services/teams.tsx"],"names":[],"mappings":"AA8BA,eAAO,MAAM,KAAK;;;;iBAoIjB,CAAA"}
@@ -1,8 +1,9 @@
1
- export declare const useChatStreamUser: ({ enableJoltLogging, env, userId, isEnabled, joltPromise }: {
1
+ export declare const useChatStreamUser: ({ enableJoltLogging, env, userId, isEnabled, joltPromise, onConnectionFailure, }: {
2
2
  enableJoltLogging: any;
3
3
  env: any;
4
4
  userId: any;
5
5
  isEnabled: any;
6
6
  joltPromise: any;
7
+ onConnectionFailure?: () => void;
7
8
  }) => any;
8
9
  //# sourceMappingURL=use_chat_stream_user.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use_chat_stream_user.d.ts","sourceRoot":"","sources":["../../../../../../../modules/toolbar/tools/chat/hooks/use_chat_stream_user.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,iBAAiB;;;;;;SA8C7B,CAAA"}
1
+ {"version":3,"file":"use_chat_stream_user.d.ts","sourceRoot":"","sources":["../../../../../../../modules/toolbar/tools/chat/hooks/use_chat_stream_user.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,iBAAiB;;;;;;;SA0D7B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../modules/toolbar/tools/chat/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAoB,MAAM,aAAa,CAAA;AAoG3D,QAAA,MAAM,IAAI,EAAE,WAOX,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../modules/toolbar/tools/chat/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAoB,MAAM,aAAa,CAAA;AAmG3D,QAAA,MAAM,IAAI,EAAE,WAOX,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
package/package.json CHANGED
@@ -2,19 +2,23 @@
2
2
  "amdName": "PLANNINGCENTER.Topbar",
3
3
  "description": "Planning Center application Topbar",
4
4
  "author": "Front End Systems Engineering <frontend@planningcenter.com>",
5
- "exports": "./dist/topbar.modern.js",
5
+ "exports": {
6
+ ".": "./dist/topbar.modern.js",
7
+ "./dist/topbar.css": "./dist/topbar.css"
8
+ },
6
9
  "files": [
7
10
  "dist"
8
11
  ],
9
12
  "license": "UNLICENSED",
10
13
  "main": "./dist/topbar.js",
11
14
  "module": "./dist/topbar.module.js",
15
+ "style": "./dist/topbar.css",
12
16
  "dependencies": {
13
17
  "@churchcenter/datetime-fmt": "^1.3.2",
14
18
  "@emotion/cache": "^11.10.5",
15
19
  "@emotion/react": "^11.10.5",
16
20
  "@planningcenter/icons": "^15.7.0",
17
- "@planningcenter/jolt-client": "^1.3.1",
21
+ "@planningcenter/jolt-client": "^2.1.0",
18
22
  "@planningcenter/url": "^2.7.0",
19
23
  "algoliasearch": "^4.20.0",
20
24
  "instantsearch.js": "^4.57.0",
@@ -68,7 +72,7 @@
68
72
  "webpack-cli": "^4.9.1",
69
73
  "webpack-dev-server": "^4.4.0"
70
74
  },
71
- "version": "9.7.0",
75
+ "version": "9.8.0-rc.0",
72
76
  "peerDependencies": {
73
77
  "@planningcenter/add-ons": "~3",
74
78
  "@planningcenter/tapestry-react": "^2.10.0",
@@ -80,7 +84,6 @@
80
84
  "scripts": {
81
85
  "build": "microbundle --jsx React.createElement --jsxFragment React.Fragment",
82
86
  "dev": "webpack-cli serve --mode development",
83
- "prepare": "$npm_execpath run build",
84
87
  "test": "jest",
85
88
  "lint": "npx eslint modules",
86
89
  "lint:fix": "yarn lint --fix",