cardoctor-call-chat 1.0.5 → 1.0.7

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/index.d.mts CHANGED
@@ -1,6 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React from 'react';
3
-
4
1
  interface ChatInitState {
5
2
  user: any | null;
6
3
  loading: boolean;
@@ -12,13 +9,4 @@ interface IPros {
12
9
  }
13
10
  declare function useCallChatInit(props: IPros): ChatInitState;
14
11
 
15
- interface IListGroup {
16
- tag?: string[];
17
- limit?: number;
18
- setSelectGroup: any;
19
- }
20
- declare const ListGroup: React.MemoExoticComponent<({ tag, limit, setSelectGroup }: IListGroup) => react_jsx_runtime.JSX.Element>;
21
-
22
- declare const ListGroupDemo: () => react_jsx_runtime.JSX.Element;
23
-
24
- export { ListGroup, ListGroupDemo, useCallChatInit };
12
+ export { useCallChatInit };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React from 'react';
3
-
4
1
  interface ChatInitState {
5
2
  user: any | null;
6
3
  loading: boolean;
@@ -12,13 +9,4 @@ interface IPros {
12
9
  }
13
10
  declare function useCallChatInit(props: IPros): ChatInitState;
14
11
 
15
- interface IListGroup {
16
- tag?: string[];
17
- limit?: number;
18
- setSelectGroup: any;
19
- }
20
- declare const ListGroup: React.MemoExoticComponent<({ tag, limit, setSelectGroup }: IListGroup) => react_jsx_runtime.JSX.Element>;
21
-
22
- declare const ListGroupDemo: () => react_jsx_runtime.JSX.Element;
23
-
24
- export { ListGroup, ListGroupDemo, useCallChatInit };
12
+ export { useCallChatInit };
package/dist/index.js CHANGED
@@ -9554,8 +9554,6 @@ var require_CometChat = __commonJS({
9554
9554
  // src/index.ts
9555
9555
  var index_exports = {};
9556
9556
  __export(index_exports, {
9557
- ListGroup: () => ListGroup,
9558
- ListGroupDemo: () => ListGroupDemo,
9559
9557
  useCallChatInit: () => useCallChatInit
9560
9558
  });
9561
9559
  module.exports = __toCommonJS(index_exports);
@@ -9641,31 +9639,8 @@ function useCallChatInit(props) {
9641
9639
  // src/cometchat/components/list.tsx
9642
9640
  var import_chat_uikit_react3 = require("@cometchat/chat-uikit-react");
9643
9641
  var import_chat_sdk_javascript = __toESM(require_CometChat());
9644
- var import_react2 = __toESM(require("react"));
9645
9642
  var import_jsx_runtime = require("react/jsx-runtime");
9646
- var ListGroup = import_react2.default.memo(({
9647
- tag = [],
9648
- limit = 20,
9649
- setSelectGroup
9650
- }) => {
9651
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
9652
- import_chat_uikit_react3.CometChatGroups,
9653
- {
9654
- groupsRequestBuilder: new import_chat_sdk_javascript.CometChat.GroupsRequestBuilder().setLimit(limit).setTags(tag),
9655
- onItemClick: (e) => setSelectGroup(e)
9656
- }
9657
- );
9658
- });
9659
-
9660
- // src/cometchat/list-group.tsx
9661
- var import_chat_uikit_react4 = require("@cometchat/chat-uikit-react");
9662
- var import_jsx_runtime2 = require("react/jsx-runtime");
9663
- var ListGroupDemo = () => {
9664
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_chat_uikit_react4.CometChatGroups, {});
9665
- };
9666
9643
  // Annotate the CommonJS export names for ESM import in node:
9667
9644
  0 && (module.exports = {
9668
- ListGroup,
9669
- ListGroupDemo,
9670
9645
  useCallChatInit
9671
9646
  });
package/dist/index.mjs CHANGED
@@ -9626,30 +9626,7 @@ function useCallChatInit(props) {
9626
9626
  // src/cometchat/components/list.tsx
9627
9627
  var import_chat_sdk_javascript = __toESM(require_CometChat());
9628
9628
  import { CometChatGroups } from "@cometchat/chat-uikit-react";
9629
- import React from "react";
9630
9629
  import { jsx } from "react/jsx-runtime";
9631
- var ListGroup = React.memo(({
9632
- tag = [],
9633
- limit = 20,
9634
- setSelectGroup
9635
- }) => {
9636
- return /* @__PURE__ */ jsx(
9637
- CometChatGroups,
9638
- {
9639
- groupsRequestBuilder: new import_chat_sdk_javascript.CometChat.GroupsRequestBuilder().setLimit(limit).setTags(tag),
9640
- onItemClick: (e) => setSelectGroup(e)
9641
- }
9642
- );
9643
- });
9644
-
9645
- // src/cometchat/list-group.tsx
9646
- import { CometChatGroups as CometChatGroups2 } from "@cometchat/chat-uikit-react";
9647
- import { jsx as jsx2 } from "react/jsx-runtime";
9648
- var ListGroupDemo = () => {
9649
- return /* @__PURE__ */ jsx2(CometChatGroups2, {});
9650
- };
9651
9630
  export {
9652
- ListGroup,
9653
- ListGroupDemo,
9654
9631
  useCallChatInit
9655
9632
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cardoctor-call-chat",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -1,11 +1,9 @@
1
1
  import { CometChatMessageComposer } from "@cometchat/chat-uikit-react";
2
2
 
3
- const CometChatCompose = ({group}: {group:any}) => {
3
+ export const CometChatCompose = ({group}: {group:any}) => {
4
4
  return (
5
5
  <>
6
6
  <CometChatMessageComposer group={group}/>
7
7
  </>
8
8
  );
9
- }
10
-
11
- export default CometChatCompose;
9
+ }
@@ -1,8 +1,8 @@
1
1
  import { CometChatMessageHeader } from "@cometchat/chat-uikit-react"
2
2
 
3
- export default function CometChatHeader({group}: {
3
+ export const CometChatHeader = ({group}: {
4
4
  group: any
5
- }) {
5
+ }) => {
6
6
 
7
7
  return(
8
8
  <CometChatMessageHeader group={group}/>
@@ -8,7 +8,7 @@ interface IListGroup {
8
8
  setSelectGroup: any
9
9
  }
10
10
 
11
- export const ListGroup = React.memo(({
11
+ const ListGroup = ({
12
12
  tag = [],
13
13
  limit = 20,
14
14
  setSelectGroup
@@ -20,6 +20,6 @@ export const ListGroup = React.memo(({
20
20
  }
21
21
  onItemClick={e => setSelectGroup(e)}
22
22
  />
23
- });
24
-
25
- // export default ListGroup;
23
+ };
24
+
25
+ export default ListGroup
@@ -1,11 +1,9 @@
1
1
  import { CometChatMessageList } from "@cometchat/chat-uikit-react";
2
2
 
3
- const CometChatMessage = ({group}: {group:any}) => {
3
+ export const CometChatMessage = ({group}: {group:any}) => {
4
4
  return (
5
5
  <div className="h-[800px] scroll-auto overflow-scroll">
6
6
  <CometChatMessageList group={group} />
7
7
  </div>
8
8
  );
9
- }
10
-
11
- export default CometChatMessage;
9
+ }
package/src/index.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from "./cometchat/use-call-chat-init";
2
- export * from "./cometchat/components/list"
3
- export * from "./cometchat/list-group"
2
+ export * from "./cometchat/components/list"
@@ -1,7 +0,0 @@
1
- import { CometChatGroups } from "@cometchat/chat-uikit-react"
2
-
3
- export const ListGroupDemo = () => {
4
- return(
5
- <CometChatGroups />
6
- )
7
- }