@planningcenter/topbar 9.5.0-rc.9 → 9.5.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.
Files changed (50) hide show
  1. package/README.md +3 -3
  2. package/dist/topbar.css +1 -1
  3. package/dist/topbar.css.map +1 -1
  4. package/dist/topbar.js +1 -1
  5. package/dist/topbar.js.map +1 -1
  6. package/dist/topbar.modern.js +1 -1
  7. package/dist/topbar.modern.js.map +1 -1
  8. package/dist/topbar.module.js +1 -1
  9. package/dist/topbar.module.js.map +1 -1
  10. package/dist/topbar.umd.js +1 -1
  11. package/dist/topbar.umd.js.map +1 -1
  12. package/dist/types/modules/apps_provider.d.ts +1 -1
  13. package/dist/types/modules/apps_provider.d.ts.map +1 -1
  14. package/dist/types/modules/colors.d.ts +1 -0
  15. package/dist/types/modules/colors.d.ts.map +1 -1
  16. package/dist/types/modules/hooks/jolt.d.ts +2 -1
  17. package/dist/types/modules/hooks/jolt.d.ts.map +1 -1
  18. package/dist/types/modules/hooks/use_notifications.d.ts +1 -1
  19. package/dist/types/modules/hooks/use_notifications.d.ts.map +1 -1
  20. package/dist/types/modules/hooks/use_notifications_has_unread.d.ts +2 -2
  21. package/dist/types/modules/hooks/use_notifications_has_unread.d.ts.map +1 -1
  22. package/dist/types/modules/small_topbar/index.d.ts.map +1 -1
  23. package/dist/types/modules/toolbar/components/user_profile.d.ts +1 -2
  24. package/dist/types/modules/toolbar/components/user_profile.d.ts.map +1 -1
  25. package/dist/types/modules/toolbar/index.d.ts +2 -1
  26. package/dist/types/modules/toolbar/index.d.ts.map +1 -1
  27. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/hooks/use_chat_members.d.ts +1 -1
  28. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/hooks/use_chat_members.d.ts.map +1 -1
  29. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/people.d.ts +1 -1
  30. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/people.d.ts.map +1 -1
  31. package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/list.d.ts.map +1 -1
  32. package/dist/types/modules/toolbar/tools/chat/components/child_notice.d.ts +5 -0
  33. package/dist/types/modules/toolbar/tools/chat/components/child_notice.d.ts.map +1 -0
  34. package/dist/types/modules/toolbar/tools/chat/components/person_list_item/avatar.d.ts +7 -0
  35. package/dist/types/modules/toolbar/tools/chat/components/person_list_item/avatar.d.ts.map +1 -0
  36. package/dist/types/modules/toolbar/tools/chat/components/person_list_item/index.d.ts +3 -0
  37. package/dist/types/modules/toolbar/tools/chat/components/person_list_item/index.d.ts.map +1 -0
  38. package/dist/types/modules/toolbar/tools/chat/components/person_list_item/person.d.ts +8 -0
  39. package/dist/types/modules/toolbar/tools/chat/components/person_list_item/person.d.ts.map +1 -0
  40. package/dist/types/modules/toolbar/tools/chat/components/services/hooks/use_chat_people.d.ts +2 -1
  41. package/dist/types/modules/toolbar/tools/chat/components/services/hooks/use_chat_people.d.ts.map +1 -1
  42. package/dist/types/modules/toolbar/tools/chat/components/services/people.d.ts.map +1 -1
  43. package/dist/types/modules/toolbar/tools/chat/hooks/index.d.ts +1 -0
  44. package/dist/types/modules/toolbar/tools/chat/hooks/index.d.ts.map +1 -1
  45. package/dist/types/modules/toolbar/tools/chat/hooks/use_chat_app_grants.d.ts +7 -0
  46. package/dist/types/modules/toolbar/tools/chat/hooks/use_chat_app_grants.d.ts.map +1 -0
  47. package/dist/types/modules/toolbar/tools/chat/hooks/use_chat_stream_user.d.ts +2 -1
  48. package/dist/types/modules/toolbar/tools/chat/hooks/use_chat_stream_user.d.ts.map +1 -1
  49. package/dist/types/modules/toolbar/tools/tasks.d.ts.map +1 -1
  50. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { AppsProviderProps, TopbarAPIResponse } from "./interfaces";
3
- export declare const AppsProvider: ({ configuredFetch, env, formatter, joltPromise, render, userId, }: AppsProviderProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
3
+ export declare const AppsProvider: ({ configuredFetch, enableJoltLogging, env, formatter, joltPromise, wssEndpoint, render, userId, }: AppsProviderProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
4
4
  export declare function mapApps(resp: TopbarAPIResponse): import("./interfaces").App[];
5
5
  //# sourceMappingURL=apps_provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"apps_provider.d.ts","sourceRoot":"","sources":["../../../modules/apps_provider.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAInE,eAAO,MAAM,YAAY,sEAOtB,iBAAiB,2FA2EnB,CAAA;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,iBAAiB,gCAE9C"}
1
+ {"version":3,"file":"apps_provider.d.ts","sourceRoot":"","sources":["../../../modules/apps_provider.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAGnE,eAAO,MAAM,YAAY,sGAStB,iBAAiB,2FA8EnB,CAAA;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,iBAAiB,gCAE9C"}
@@ -40,6 +40,7 @@ declare const colors: {
40
40
  success27: string;
41
41
  success91: string;
42
42
  success97: string;
43
+ warning20: string;
43
44
  warning49: string;
44
45
  warning55: string;
45
46
  warning63: string;
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../modules/colors.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CX,CAAA;AAED,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../modules/colors.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CX,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -6,10 +6,11 @@ type UseJoltChannelSubscriptionProps = {
6
6
  enableJoltLogging?: boolean;
7
7
  enabled?: boolean;
8
8
  env: PCO_URL.Environment;
9
+ wssEndpoint?: string;
9
10
  fetchSubscribeToken: (cid: string) => Promise<string>;
10
11
  joltPromise?: () => Promise<Jolt | undefined | void>;
11
12
  };
12
- export declare const useJoltChannelSubscription: ({ channelName, enableJoltLogging, enabled, env, fetchSubscribeToken, joltPromise, }: UseJoltChannelSubscriptionProps) => JoltLib.ChannelSubscription;
13
+ export declare const useJoltChannelSubscription: ({ channelName, enableJoltLogging, enabled, env, wssEndpoint, fetchSubscribeToken, joltPromise, }: UseJoltChannelSubscriptionProps) => JoltLib.ChannelSubscription;
13
14
  export declare const useJoltEffect: (channelSubscription: JoltLib.ChannelSubscription, eventName: string, callback: (data: JoltMessage) => unknown) => void;
14
15
  export {};
15
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,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,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,wFAOpC,+BAA+B,KAAG,QAAQ,mBA4E5C,CAAA;AAED,eAAO,MAAM,aAAa,wBACH,QAAQ,mBAAmB,aACrC,MAAM,mBACA,WAAW,KAAK,OAAO,SAWzC,CAAA"}
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,5 +1,5 @@
1
- import * as PCO_URL from "@planningcenter/url";
2
1
  import { ChannelSubscription } from "@planningcenter/jolt-client";
2
+ import * as PCO_URL from "@planningcenter/url";
3
3
  import { Notification } from "../interfaces";
4
4
  export type NotificationsHookProps = {
5
5
  enabled?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"use_notifications.d.ts","sourceRoot":"","sources":["../../../../modules/hooks/use_notifications.ts"],"names":[],"mappings":"AAAA,OAAe,KAAK,OAAO,MAAM,qBAAqB,CAAA;AAEtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAGjE,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;CAmOvB,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,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,10 +1,10 @@
1
- import * as PCO_URL from "@planningcenter/url";
2
1
  import { ChannelSubscription } from "@planningcenter/jolt-client";
2
+ import * as PCO_URL from "@planningcenter/url";
3
3
  type NotificationsHookProps = {
4
4
  enabled?: boolean;
5
5
  env: PCO_URL.Environment;
6
6
  joltChannel: ChannelSubscription;
7
7
  };
8
- export declare const useNotificationsHasUnread: ({ env, enabled, joltChannel, }: NotificationsHookProps) => boolean;
8
+ export declare const useNotificationsHasUnread: ({ enabled, joltChannel, }: NotificationsHookProps) => boolean;
9
9
  export {};
10
10
  //# sourceMappingURL=use_notifications_has_unread.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use_notifications_has_unread.d.ts","sourceRoot":"","sources":["../../../../modules/hooks/use_notifications_has_unread.ts"],"names":[],"mappings":"AACA,OAAe,KAAK,OAAO,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AASjE,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,mCAInC,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,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/small_topbar/index.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAoCjD,UAAU,gBAAgB;IACxB,qBAAqB,CAAC,EAAE,GAAG,CAAA;CAC5B;AAMD,QAAA,MAAM,MAAM;YAAW,iBAAiB,GAAG,gBAAgB;;;;;CA+T1D,CAAA;AAOD,QAAA,MAAM,KAAK;;;iBAmBV,CAAA;AAED,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../modules/small_topbar/index.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAoCjD,UAAU,gBAAgB;IACxB,qBAAqB,CAAC,EAAE,GAAG,CAAA;CAC5B;AAMD,QAAA,MAAM,MAAM;YAAW,iBAAiB,GAAG,gBAAgB;;;;;CAmU1D,CAAA;AAOD,QAAA,MAAM,KAAK;;;iBAmBV,CAAA;AAED,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA"}
@@ -5,8 +5,7 @@ interface Props {
5
5
  logoutUrl: string;
6
6
  profileUrl: string;
7
7
  userAvatarPath: string;
8
- userName: string;
9
8
  }
10
- export declare function UserProfile({ closeDrawer, linkToProfile, loginSettingsUrl, logoutUrl, profileUrl, userName, userAvatarPath, }: Props): JSX.Element;
9
+ export declare function UserProfile({ closeDrawer, linkToProfile, loginSettingsUrl, logoutUrl, profileUrl, userAvatarPath, }: Props): JSX.Element;
11
10
  export {};
12
11
  //# sourceMappingURL=user_profile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user_profile.d.ts","sourceRoot":"","sources":["../../../../../modules/toolbar/components/user_profile.tsx"],"names":[],"mappings":"AAmBA,UAAU,KAAK;IACb,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,aAAa,EAAE,OAAO,CAAA;IACtB,gBAAgB,EAAE,MAAM,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,WAAW,CAAC,EAC1B,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,QAAQ,EACR,cAAc,GACf,EAAE,KAAK,eAuGP"}
1
+ {"version":3,"file":"user_profile.d.ts","sourceRoot":"","sources":["../../../../../modules/toolbar/components/user_profile.tsx"],"names":[],"mappings":"AAmBA,UAAU,KAAK;IACb,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,aAAa,EAAE,OAAO,CAAA;IACtB,gBAAgB,EAAE,MAAM,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,MAAM,CAAA;CACvB;AAED,wBAAgB,WAAW,CAAC,EAC1B,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,cAAc,GACf,EAAE,KAAK,eAuGP"}
@@ -1,11 +1,12 @@
1
1
  import { Environment } from "@planningcenter/url";
2
2
  type ToolbarProps = {
3
3
  appName: string;
4
+ enableJoltLogging: boolean;
4
5
  env: Environment;
5
6
  linkToProfile?: boolean;
6
7
  userAvatarPath: string;
7
8
  userName: string;
8
9
  };
9
- export declare function Toolbar({ appName, env, linkToProfile, userAvatarPath, userName, }: ToolbarProps): JSX.Element;
10
+ export declare function Toolbar({ appName, enableJoltLogging, env, linkToProfile, userAvatarPath, userName, }: ToolbarProps): JSX.Element;
10
11
  export {};
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -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;AAmBzD,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,GAAG,EAAE,WAAW,CAAA;IAChB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,cAAc,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAiBD,wBAAgB,OAAO,CAAC,EACtB,OAAO,EACP,GAAG,EACH,aAAoB,EACpB,cAAc,EACd,QAAQ,GACT,EAAE,YAAY,GAAG,GAAG,CAAC,OAAO,CA0U5B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../modules/toolbar/index.tsx"],"names":[],"mappings":"AAWA,OAAe,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAmBzD,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,iBAAiB,EAAE,OAAO,CAAA;IAC1B,GAAG,EAAE,WAAW,CAAA;IAChB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,cAAc,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAiBD,wBAAgB,OAAO,CAAC,EACtB,OAAO,EACP,iBAAiB,EACjB,GAAG,EACH,aAAoB,EACpB,cAAc,EACd,QAAQ,GACT,EAAE,YAAY,GAAG,GAAG,CAAC,OAAO,CA0U5B"}
@@ -1,6 +1,6 @@
1
1
  import type { Channel, User } from "stream-chat";
2
2
  type ChatUser = ChatMember & User;
3
- type ChatMember = {
3
+ export type ChatMember = {
4
4
  child: boolean;
5
5
  image: string;
6
6
  stream_member_id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"use_chat_members.d.ts","sourceRoot":"","sources":["../../../../../../../../../modules/toolbar/tools/chat/components/channel_details_view/hooks/use_chat_members.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAqB,IAAI,EAAE,MAAM,aAAa,CAAA;AAKnE,KAAK,QAAQ,GAAG,UAAU,GAAG,IAAI,CAAA;AAEjC,KAAK,UAAU,GAAG;IAChB,KAAK,EAAE,OAAO,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,gBAAgB,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,cAAc,YAAa,OAAO,KAAG,QAAQ,EA8BzD,CAAA"}
1
+ {"version":3,"file":"use_chat_members.d.ts","sourceRoot":"","sources":["../../../../../../../../../modules/toolbar/tools/chat/components/channel_details_view/hooks/use_chat_members.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAqB,IAAI,EAAE,MAAM,aAAa,CAAA;AAKnE,KAAK,QAAQ,GAAG,UAAU,GAAG,IAAI,CAAA;AAEjC,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,OAAO,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,gBAAgB,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,cAAc,YAAa,OAAO,KAAG,QAAQ,EA8BzD,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import type { User as StreamChatUser } from "stream-chat";
2
- interface User extends StreamChatUser {
2
+ export interface User extends StreamChatUser {
3
3
  image: string;
4
4
  }
5
5
  interface PeopleProps {
@@ -1 +1 @@
1
- {"version":3,"file":"people.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_details_view/people.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,IAAI,cAAc,EAAE,MAAM,aAAa,CAAA;AAKzD,UAAU,IAAK,SAAQ,cAAc;IACnC,KAAK,EAAE,MAAM,CAAA;CACd;AAED,UAAU,WAAW;IACnB,MAAM,EAAE,IAAI,EAAE,CAAA;CACf;AAED,eAAO,MAAM,MAAM,eAAgB,WAAW,gBAqB7C,CAAA"}
1
+ {"version":3,"file":"people.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_details_view/people.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,IAAI,cAAc,EAAE,MAAM,aAAa,CAAA;AAMzD,MAAM,WAAW,IAAK,SAAQ,cAAc;IAC1C,KAAK,EAAE,MAAM,CAAA;CACd;AAED,UAAU,WAAW;IACnB,MAAM,EAAE,IAAI,EAAE,CAAA;CACf;AAED,eAAO,MAAM,MAAM,eAAgB,WAAW,gBAY7C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_list_view/list.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAO7D,eAAO,MAAM,IAAI,UAAW,kBAAkB,yBAAyB,CAAC,gBAsBvE,CAAA"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_list_view/list.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAO7D,eAAO,MAAM,IAAI,UAAW,kBAAkB,yBAAyB,CAAC,gBAyBvE,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { type ListItemPerson } from "./person_list_item";
2
+ export declare const ChildNotice: ({ childPeople, }: {
3
+ childPeople: ListItemPerson[];
4
+ }) => JSX.Element;
5
+ //# sourceMappingURL=child_notice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"child_notice.d.ts","sourceRoot":"","sources":["../../../../../../../modules/toolbar/tools/chat/components/child_notice.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,cAAc,EAAU,MAAM,oBAAoB,CAAA;AAIhE,eAAO,MAAM,WAAW;iBAGT,cAAc,EAAE;iBA8D9B,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { type ListItemPerson } from "./person";
2
+ declare const Avatar: ({ person, size, }: {
3
+ person: ListItemPerson;
4
+ size?: "sm" | "md";
5
+ }) => JSX.Element;
6
+ export { Avatar };
7
+ //# sourceMappingURL=avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/person_list_item/avatar.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAA;AAa9C,QAAA,MAAM,MAAM;YAIF,cAAc;WACf,IAAI,GAAG,IAAI;iBAiBnB,CAAA;AAED,OAAO,EAAE,MAAM,EAAE,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { Avatar } from "./avatar";
2
+ export { type ListItemPerson, Person } from "./person";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/person_list_item/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { type User } from "../channel_details_view/people";
2
+ import { type Person } from "../services/hooks/use_chat_people";
3
+ type ListItemPerson = Person | User;
4
+ declare const Person: ({ person }: {
5
+ person: ListItemPerson;
6
+ }) => JSX.Element;
7
+ export { type ListItemPerson, Person };
8
+ //# sourceMappingURL=person.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/person_list_item/person.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,gCAAgC,CAAA;AAC1D,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAG/D,KAAK,cAAc,GAAG,MAAM,GAAG,IAAI,CAAA;AAEnC,QAAA,MAAM,MAAM;YAA0B,cAAc;iBAGnD,CAAA;AA8BD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,EAAE,CAAA"}
@@ -2,8 +2,9 @@ interface Source {
2
2
  id: number;
3
3
  type: string;
4
4
  }
5
- interface Person {
5
+ export interface Person {
6
6
  avatar: string | null;
7
+ child: boolean;
7
8
  id: number;
8
9
  name: string;
9
10
  source: Source[];
@@ -1 +1 @@
1
- {"version":3,"file":"use_chat_people.d.ts","sourceRoot":"","sources":["../../../../../../../../../modules/toolbar/tools/chat/components/services/hooks/use_chat_people.ts"],"names":[],"mappings":"AAIA,UAAU,MAAM;IACd,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAA;CACb;AAED,UAAU,MAAM;IACd,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAA;CACjB;AAWD,UAAU,UAAU;IAClB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAA;CACjB;AAED,eAAO,MAAM,aAAa,mBAAa,UA4DtC,CAAA"}
1
+ {"version":3,"file":"use_chat_people.d.ts","sourceRoot":"","sources":["../../../../../../../../../modules/toolbar/tools/chat/components/services/hooks/use_chat_people.ts"],"names":[],"mappings":"AAIA,UAAU,MAAM;IACd,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,MAAM;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,KAAK,EAAE,OAAO,CAAA;IACd,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,EAAE,CAAA;CACjB;AAWD,UAAU,UAAU;IAClB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAA;CACjB;AAED,eAAO,MAAM,aAAa,mBAAa,UA4DtC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"people.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/services/people.tsx"],"names":[],"mappings":"AAsBA,eAAO,MAAM,MAAM;;iBAoClB,CAAA"}
1
+ {"version":3,"file":"people.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/services/people.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,MAAM;;iBAyClB,CAAA"}
@@ -1,5 +1,6 @@
1
1
  export { useChannelsLoading } from "./use_channels_loading";
2
2
  export { useChat } from "./use_chat";
3
+ export { useChatAppGrants } from "./use_chat_app_grants";
3
4
  export { useChatApi } from './use_chat_api';
4
5
  export { useChatStreamUser } from './use_chat_stream_user';
5
6
  export { useClient } from "./use_client";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../modules/toolbar/tools/chat/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../modules/toolbar/tools/chat/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA"}
@@ -0,0 +1,7 @@
1
+ type AppName = "Services";
2
+ interface ChatAppGrants {
3
+ canCreateChat: (appName: AppName) => boolean;
4
+ }
5
+ export declare const useChatAppGrants: () => ChatAppGrants;
6
+ export {};
7
+ //# sourceMappingURL=use_chat_app_grants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use_chat_app_grants.d.ts","sourceRoot":"","sources":["../../../../../../../modules/toolbar/tools/chat/hooks/use_chat_app_grants.ts"],"names":[],"mappings":"AAGA,KAAK,OAAO,GAAG,UAAU,CAAA;AAWzB,UAAU,aAAa;IACrB,aAAa,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAA;CAC7C;AAED,eAAO,MAAM,gBAAgB,QAAO,aAkBnC,CAAA"}
@@ -1,4 +1,5 @@
1
- export declare const useChatStreamUser: ({ env, userId, isEnabled, joltPromise }: {
1
+ export declare const useChatStreamUser: ({ enableJoltLogging, env, userId, isEnabled, joltPromise }: {
2
+ enableJoltLogging: any;
2
3
  env: any;
3
4
  userId: any;
4
5
  isEnabled: any;
@@ -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;;;;;;SA8C7B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../../../../modules/toolbar/tools/tasks.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAkFtC,QAAA,MAAM,KAAK,EAAE,WAOZ,CAAA;AAED,OAAO,EAAE,KAAK,EAAE,CAAA"}
1
+ {"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../../../../modules/toolbar/tools/tasks.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAqFtC,QAAA,MAAM,KAAK,EAAE,WAOZ,CAAA;AAED,OAAO,EAAE,KAAK,EAAE,CAAA"}
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "@churchcenter/datetime-fmt": "^1.3.2",
14
14
  "@emotion/cache": "^11.10.5",
15
15
  "@emotion/react": "^11.10.5",
16
- "@planningcenter/icons": "15.0.0",
16
+ "@planningcenter/icons": "^15.7.0",
17
17
  "@planningcenter/jolt-client": "^1.3.1",
18
18
  "@planningcenter/url": "^2.7.0",
19
19
  "nanoid": "^4.0.2",
@@ -63,7 +63,7 @@
63
63
  "webpack-cli": "^4.9.1",
64
64
  "webpack-dev-server": "^4.4.0"
65
65
  },
66
- "version": "9.5.0-rc.9",
66
+ "version": "9.5.0",
67
67
  "peerDependencies": {
68
68
  "@planningcenter/add-ons": "~3",
69
69
  "@planningcenter/tapestry-react": "^2.10.0",