@messenger-box/platform-browser 0.0.1-alpha.102 → 0.0.1-alpha.112

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 (38) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/lib/components/dashboard/menu_header.d.ts +5 -0
  3. package/lib/components/dashboard/modals/direct_modal.d.ts +9 -0
  4. package/lib/components/dashboard/modals.d.ts +8 -0
  5. package/lib/components/messenger/index.d.ts +1 -0
  6. package/lib/components/messenger/messagesList/index.d.ts +1 -0
  7. package/lib/components/overlay_trigger.d.ts +1 -1
  8. package/lib/components/post/index.d.ts +2 -2
  9. package/lib/containers/Messenger.d.ts +1 -0
  10. package/lib/graphql/id-generation.d.ts +9 -0
  11. package/lib/graphql/policies/channel-policies.d.ts +2 -0
  12. package/lib/graphql/policies/index.d.ts +2 -0
  13. package/lib/graphql/policies/user-policies.d.ts +2 -0
  14. package/lib/index.js +542 -359
  15. package/lib/index.js.map +1 -1
  16. package/lib/style.d.ts +45 -45
  17. package/lib/widgets/overlay_trigger.d.ts +1 -1
  18. package/package.json +3 -3
  19. package/src/components/dashboard/menu_header.tsx +49 -0
  20. package/src/components/dashboard/modals/direct_modal.tsx +47 -0
  21. package/src/components/dashboard/modals.tsx +94 -0
  22. package/src/components/messenger/index.tsx +43 -52
  23. package/src/components/messenger/messagesList/index.tsx +12 -1
  24. package/src/components/post/index.tsx +24 -17
  25. package/src/components/post/post/post.tsx +8 -1
  26. package/src/compute.tsx +8 -7
  27. package/src/containers/Dashboard.tsx +233 -372
  28. package/src/containers/Messenger.tsx +3 -2
  29. package/src/graphql/id-generation.ts +3 -0
  30. package/src/graphql/index.ts +2 -2
  31. package/src/graphql/mutations/channel-mutation.gql +4 -1
  32. package/src/graphql/policies/channel-policies.ts +7 -0
  33. package/src/graphql/policies/index.ts +2 -0
  34. package/src/graphql/policies/user-policies.ts +32 -0
  35. package/src/graphql/queries/channel.gql +2 -1
  36. package/src/graphql/queries/users.gql +19 -1
  37. package/src/graphql/schema/services.graphql +4 -1
  38. package/src/style.ts +48 -48
package/CHANGELOG.md CHANGED
@@ -3,6 +3,38 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.0.1-alpha.112](https://github.com/cdmbase/messenger-box/compare/v0.0.1-alpha.111...v0.0.1-alpha.112) (2022-01-06)
7
+
8
+ **Note:** Version bump only for package @messenger-box/platform-browser
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.0.1-alpha.110](https://github.com/cdmbase/messenger-box/compare/v0.0.1-alpha.109...v0.0.1-alpha.110) (2021-12-29)
15
+
16
+ **Note:** Version bump only for package @messenger-box/platform-browser
17
+
18
+
19
+
20
+
21
+
22
+ ## [0.0.1-alpha.108](https://github.com/cdmbase/messenger-box/compare/v0.0.1-alpha.107...v0.0.1-alpha.108) (2021-12-09)
23
+
24
+ **Note:** Version bump only for package @messenger-box/platform-browser
25
+
26
+
27
+
28
+
29
+
30
+ ## [0.0.1-alpha.107](https://github.com/cdmbase/messenger-box/compare/v0.0.1-alpha.106...v0.0.1-alpha.107) (2021-12-07)
31
+
32
+ **Note:** Version bump only for package @messenger-box/platform-browser
33
+
34
+
35
+
36
+
37
+
6
38
  ## [0.0.1-alpha.102](https://github.com/cdmbase/messenger-box/compare/v0.0.1-alpha.101...v0.0.1-alpha.102) (2021-12-03)
7
39
 
8
40
  **Note:** Version bump only for package @messenger-box/platform-browser
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const MenuHeader: ({ clickedChannel, handleClass }: {
3
+ clickedChannel: any;
4
+ handleClass: any;
5
+ }) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare const DirectModal: ({ showDirectChl, handleClose, selectedValues, handleSelect, options, handleGo }: {
3
+ showDirectChl: any;
4
+ handleClose: any;
5
+ selectedValues: any;
6
+ handleSelect: any;
7
+ options: any;
8
+ handleGo: any;
9
+ }) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare const Modals: ({ directMoreModal, publicChlModal, handleClose, handleChange, handleCreate }: {
3
+ directMoreModal: any;
4
+ publicChlModal: any;
5
+ handleClose: any;
6
+ handleChange: any;
7
+ handleCreate: any;
8
+ }) => JSX.Element;
@@ -3,6 +3,7 @@ import 'emoji-mart/css/emoji-mart.css';
3
3
  interface PropsTypes {
4
4
  channel: any;
5
5
  isRefetch: boolean;
6
+ currentUsrId: string;
6
7
  }
7
8
  export declare const MessengerComponent: FC<PropsTypes>;
8
9
  export {};
@@ -7,6 +7,7 @@ interface IProps {
7
7
  handleDeleteMessage: any;
8
8
  handleEditMessage: any;
9
9
  channel: any;
10
+ currentUsrId: string;
10
11
  }
11
12
  export declare const MessagesList: FC<IProps>;
12
13
  export {};
@@ -6,5 +6,5 @@ export declare type BaseOverlayTrigger = OriginalOverlayTrigger & {
6
6
  declare const OverlayTrigger: React.ForwardRefExoticComponent<Pick<OriginalOverlayTrigger.OverlayTriggerProps & {
7
7
  disabled?: boolean;
8
8
  className?: string;
9
- }, "children" | "key" | "className" | "disabled" | "placement" | "animation" | "container" | "onEnter" | "onEntered" | "onEntering" | "onExit" | "onExited" | "onExiting" | "trigger" | "overlay" | "containerPadding" | "defaultOverlayShown" | "delay" | "delayHide" | "delayShow" | "rootClose"> & React.RefAttributes<OriginalOverlayTrigger>>;
9
+ }, "children" | "key" | "className" | "disabled" | "animation" | "container" | "onEnter" | "onEntered" | "onEntering" | "onExit" | "onExited" | "onExiting" | "trigger" | "placement" | "overlay" | "containerPadding" | "defaultOverlayShown" | "delay" | "delayHide" | "delayShow" | "rootClose"> & React.RefAttributes<OriginalOverlayTrigger>>;
10
10
  export default OverlayTrigger;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const PostViewPage: ({ channel, refetchCall }: {
2
+ export declare const PostViewPage: ({ channel, currentUsrId }: {
3
3
  channel: any;
4
- refetchCall: any;
4
+ currentUsrId: any;
5
5
  }) => JSX.Element;
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  interface ChannelProps {
3
3
  channel: any;
4
4
  isRefetch: boolean;
5
+ currentUsrId: string;
5
6
  }
6
7
  declare const Messenger: React.FC<ChannelProps>;
7
8
  export default Messenger;
@@ -2,4 +2,13 @@ export declare const dataIdFromObject: {
2
2
  Post: ({ id }: {
3
3
  id: any;
4
4
  }) => string;
5
+ Channel: ({ id }: {
6
+ id: any;
7
+ }) => string;
8
+ ChannelMember: ({ id }: {
9
+ id: any;
10
+ }) => string;
11
+ UserAccount: ({ id }: {
12
+ id: any;
13
+ }) => string;
5
14
  };
@@ -0,0 +1,2 @@
1
+ import { TypePolicies } from '@apollo/client';
2
+ export declare const channelPolicies: TypePolicies;
@@ -1 +1,3 @@
1
1
  export * from './posts-policies';
2
+ export * from './user-policies';
3
+ export * from './channel-policies';
@@ -0,0 +1,2 @@
1
+ import { TypePolicies } from '@apollo/client';
2
+ export declare const userPolicies: TypePolicies;