@planningcenter/topbar 9.14.0 → 10.0.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.
Files changed (37) hide show
  1. package/dist/topbar.css +15 -11
  2. package/dist/topbar.css.map +1 -1
  3. package/dist/topbar.js +1 -1
  4. package/dist/topbar.js.map +1 -1
  5. package/dist/topbar.modern.js +1 -1
  6. package/dist/topbar.modern.js.map +1 -1
  7. package/dist/topbar.module.js +1 -1
  8. package/dist/topbar.module.js.map +1 -1
  9. package/dist/topbar.umd.js +1 -1
  10. package/dist/topbar.umd.js.map +1 -1
  11. package/dist/types/modules/hooks/use_cookie.d.ts +3 -0
  12. package/dist/types/modules/hooks/use_cookie.d.ts.map +1 -0
  13. package/dist/types/modules/hooks/use_fragment_routing.d.ts +5 -0
  14. package/dist/types/modules/hooks/use_fragment_routing.d.ts.map +1 -0
  15. package/dist/types/modules/toolbar/hooks/use_pco_meta.d.ts.map +1 -1
  16. package/dist/types/modules/toolbar/hooks/use_toolbar_reducer.d.ts +0 -1
  17. package/dist/types/modules/toolbar/hooks/use_toolbar_reducer.d.ts.map +1 -1
  18. package/dist/types/modules/toolbar/index.d.ts.map +1 -1
  19. package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_reaction_options.d.ts +6 -0
  20. package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_reaction_options.d.ts.map +1 -0
  21. package/dist/types/modules/toolbar/tools/chat/components/channel_view/emoji_data.d.ts +10 -0
  22. package/dist/types/modules/toolbar/tools/chat/components/channel_view/emoji_data.d.ts.map +1 -0
  23. package/dist/types/modules/toolbar/tools/chat/components/channel_view/message_input.d.ts.map +1 -1
  24. package/dist/types/modules/toolbar/tools/tasks.d.ts.map +1 -1
  25. package/dist/types/modules/utils.d.ts +1 -0
  26. package/dist/types/modules/utils.d.ts.map +1 -1
  27. package/package.json +6 -2
  28. package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_reaction_selector.d.ts +0 -4
  29. package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_reaction_selector.d.ts.map +0 -1
  30. package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_reactions_list.d.ts +0 -3
  31. package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_reactions_list.d.ts.map +0 -1
  32. package/dist/types/modules/toolbar/tools/chat/components/channel_view/hooks/index.d.ts +0 -3
  33. package/dist/types/modules/toolbar/tools/chat/components/channel_view/hooks/index.d.ts.map +0 -1
  34. package/dist/types/modules/toolbar/tools/chat/components/channel_view/hooks/use_emojis.d.ts +0 -4
  35. package/dist/types/modules/toolbar/tools/chat/components/channel_view/hooks/use_emojis.d.ts.map +0 -1
  36. package/dist/types/modules/toolbar/tools/chat/components/channel_view/hooks/use_reactions.d.ts +0 -4
  37. package/dist/types/modules/toolbar/tools/chat/components/channel_view/hooks/use_reactions.d.ts.map +0 -1
@@ -0,0 +1,3 @@
1
+ export declare function useCookie(name: string): readonly [string, (newValue: string) => void];
2
+ export declare function useJSONCookie(name: string): readonly [any, (newValue: object) => void];
3
+ //# sourceMappingURL=use_cookie.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use_cookie.d.ts","sourceRoot":"","sources":["../../../../modules/hooks/use_cookie.tsx"],"names":[],"mappings":"AAkBA,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,gCAEE,MAAM,WAQ7C;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,6BAe3B,MAAM,WAKpB"}
@@ -0,0 +1,5 @@
1
+ export declare function useFragmentRouting(): readonly [{
2
+ path: string;
3
+ tool: string;
4
+ }, (tool: string, path?: string) => void, () => void];
5
+ //# sourceMappingURL=use_fragment_routing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use_fragment_routing.d.ts","sourceRoot":"","sources":["../../../../modules/hooks/use_fragment_routing.tsx"],"names":[],"mappings":"AA6BA,wBAAgB,kBAAkB;;;UAIS,MAAM,SAAQ,MAAM,uBAsB9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"use_pco_meta.d.ts","sourceRoot":"","sources":["../../../../../modules/toolbar/hooks/use_pco_meta.ts"],"names":[],"mappings":"AAGA,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAwDD,wBAAgB,UAAU,YAMzB"}
1
+ {"version":3,"file":"use_pco_meta.d.ts","sourceRoot":"","sources":["../../../../../modules/toolbar/hooks/use_pco_meta.ts"],"names":[],"mappings":"AAIA,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAiDD,wBAAgB,UAAU,YAMzB"}
@@ -4,7 +4,6 @@ declare enum ActionType {
4
4
  close = "close",
5
5
  mount = "mount",
6
6
  open = "open",
7
- set = "set",
8
7
  unmount = "unmount"
9
8
  }
10
9
  type ToolbarState = {
@@ -1 +1 @@
1
- {"version":3,"file":"use_toolbar_reducer.d.ts","sourceRoot":"","sources":["../../../../../modules/toolbar/hooks/use_toolbar_reducer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAEtC,aAAK,UAAU;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,OAAO,YAAY;CACpB;AAED,KAAK,YAAY,GAAG;IAClB,cAAc,EAAE,WAAW,GAAG,IAAI,CAAA;IAClC,IAAI,EAAE,OAAO,CAAA;CACd,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,OAAO,CAAC,EAAE,GAAG,CAAA;IACb,IAAI,EAAE,UAAU,CAAA;CACjB,CAAA;AAyBD,QAAA,MAAM,iBAAiB,eAAgB,QAAQ,YAAY,CAAC,oDACE,CAAA;AAE9D,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAA"}
1
+ {"version":3,"file":"use_toolbar_reducer.d.ts","sourceRoot":"","sources":["../../../../../modules/toolbar/hooks/use_toolbar_reducer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAEtC,aAAK,UAAU;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;IACb,OAAO,YAAY;CACpB;AAED,KAAK,YAAY,GAAG;IAClB,cAAc,EAAE,WAAW,GAAG,IAAI,CAAA;IAClC,IAAI,EAAE,OAAO,CAAA;CACd,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,OAAO,CAAC,EAAE,GAAG,CAAA;IACb,IAAI,EAAE,UAAU,CAAA;CACjB,CAAA;AAuBD,QAAA,MAAM,iBAAiB,eAAgB,QAAQ,YAAY,CAAC,oDACE,CAAA;AAE9D,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,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;AAgBzD,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;AAQD,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,CAkU5B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../modules/toolbar/index.tsx"],"names":[],"mappings":"AAWA,OAAe,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAmBzD,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;AAcD,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,CAgX5B"}
@@ -0,0 +1,6 @@
1
+ export declare const customReactionOptions: {
2
+ Component: () => JSX.Element;
3
+ name: string;
4
+ type: string;
5
+ }[];
6
+ //# sourceMappingURL=custom_reaction_options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom_reaction_options.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_view/custom_reaction_options.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB;;;;GA0BjC,CAAA"}
@@ -0,0 +1,10 @@
1
+ export declare const emojiSearchIndex: {
2
+ search: (value: any, { maxResults, caller }?: {
3
+ maxResults: any;
4
+ caller: any;
5
+ }) => Promise<any>;
6
+ _get2: (emojiId: any) => any;
7
+ reset: () => void;
8
+ SHORTCODES_REGEX: RegExp;
9
+ };
10
+ //# sourceMappingURL=emoji_data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emoji_data.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_view/emoji_data.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB;;;;;;;;CAAc,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"message_input.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_view/message_input.tsx"],"names":[],"mappings":"AAwBA,eAAO,MAAM,YAAY,mBA8FxB,CAAA"}
1
+ {"version":3,"file":"message_input.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_view/message_input.tsx"],"names":[],"mappings":"AAuBA,eAAO,MAAM,YAAY,mBA4FxB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../../../../modules/toolbar/tools/tasks.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,WAAW,EAAoB,MAAM,UAAU,CAAA;AA0HxD,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":"AAkBA,OAAO,EAAE,WAAW,EAAoB,MAAM,UAAU,CAAA;AA8HxD,QAAA,MAAM,KAAK,EAAE,WAOZ,CAAA;AAED,OAAO,EAAE,KAAK,EAAE,CAAA"}
@@ -1,4 +1,5 @@
1
1
  export declare const capitalize: (s: string) => string;
2
2
  export declare const HSLtoHSLA: (hsl: string, a?: number) => string;
3
3
  export declare const debounce: (func: any, wait: any) => (...args: any) => void;
4
+ export declare function shallowCompare<O extends object>(a: O, b: O): boolean;
4
5
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../modules/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,MAAO,MAAM,WAA2C,CAAA;AAE/E,eAAO,MAAM,SAAS,QAAS,MAAM,MAAK,MAAM,WAO/C,CAAA;AAED,eAAO,MAAM,QAAQ,sCAGO,GAAG,SAe9B,CAAA"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../modules/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,MAAO,MAAM,WAA2C,CAAA;AAE/E,eAAO,MAAM,SAAS,QAAS,MAAM,MAAK,MAAM,WAO/C,CAAA;AAED,eAAO,MAAM,QAAQ,sCAGO,GAAG,SAe9B,CAAA;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,WAK1D"}
package/package.json CHANGED
@@ -14,6 +14,9 @@
14
14
  "module": "./dist/topbar.module.js",
15
15
  "style": "./dist/topbar.css",
16
16
  "dependencies": {
17
+ "@churchcenter/datetime-fmt": "^1.3.2",
18
+ "@emoji-mart/data": "^1.2.1",
19
+ "@emoji-mart/react": "^1.1.1",
17
20
  "@emotion/cache": "^11.10.5",
18
21
  "@emotion/react": "^11.10.5",
19
22
  "@planningcenter/datetime-fmt": "^1.3.6",
@@ -21,6 +24,7 @@
21
24
  "@planningcenter/jolt-client": "^2.1.0",
22
25
  "@planningcenter/url": "^2.7.0",
23
26
  "algoliasearch": "^4.20.0",
27
+ "emoji-mart": "^5.6.0",
24
28
  "instantsearch.js": "^4.57.0",
25
29
  "nanoid": "^4.0.2",
26
30
  "react-calendly": "^4.2.0",
@@ -31,7 +35,7 @@
31
35
  "react-instantsearch-dom": "^6.40.4",
32
36
  "react-transition-group": "^4.4.2",
33
37
  "stream-chat": "^8.36.0",
34
- "stream-chat-react": "~10.22.3",
38
+ "stream-chat-react": "^11.23.2",
35
39
  "tslint-config-prettier": "^1.18.0",
36
40
  "use-sync-external-store": "^1.2.0"
37
41
  },
@@ -78,7 +82,7 @@
78
82
  "webpack-cli": "^4.9.1",
79
83
  "webpack-dev-server": "^4.4.0"
80
84
  },
81
- "version": "9.14.0",
85
+ "version": "10.0.0-rc.0",
82
86
  "peerDependencies": {
83
87
  "@planningcenter/add-ons": "^5",
84
88
  "@planningcenter/tapestry-react": "^4",
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { ReactionSelectorProps } from "stream-chat-react";
3
- export declare const CustomReactionSelector: React.ForwardRefExoticComponent<ReactionSelectorProps<import("stream-chat-react/dist/types/types").DefaultStreamChatGenerics> & React.RefAttributes<HTMLDivElement>>;
4
- //# sourceMappingURL=custom_reaction_selector.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"custom_reaction_selector.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_view/custom_reaction_selector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAoB,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAI3E,eAAO,MAAM,sBAAsB,sKAelC,CAAA"}
@@ -1,3 +0,0 @@
1
- import { ReactionsListProps } from "stream-chat-react";
2
- export declare const CustomReactionsList: (props: ReactionsListProps) => JSX.Element;
3
- //# sourceMappingURL=custom_reactions_list.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"custom_reactions_list.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_view/custom_reactions_list.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAIrE,eAAO,MAAM,mBAAmB,UAAW,kBAAkB,gBAI5D,CAAA"}
@@ -1,3 +0,0 @@
1
- export { useEmojis } from './use_emojis';
2
- export { useReactions } from './use_reactions';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../modules/toolbar/tools/chat/components/channel_view/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA"}
@@ -1,4 +0,0 @@
1
- type Emoji = Record<string, any>;
2
- export declare const useEmojis: (names: string[]) => Emoji[];
3
- export {};
4
- //# sourceMappingURL=use_emojis.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use_emojis.d.ts","sourceRoot":"","sources":["../../../../../../../../../modules/toolbar/tools/chat/components/channel_view/hooks/use_emojis.ts"],"names":[],"mappings":"AAGA,KAAK,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAEhC,eAAO,MAAM,SAAS,UAAW,MAAM,EAAE,KAAG,KAAK,EAiBhD,CAAA"}
@@ -1,4 +0,0 @@
1
- export declare const useReactions: () => {
2
- [x: string]: any;
3
- }[];
4
- //# sourceMappingURL=use_reactions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use_reactions.d.ts","sourceRoot":"","sources":["../../../../../../../../../modules/toolbar/tools/chat/components/channel_view/hooks/use_reactions.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;GAA8B,CAAA"}