cardoctor-call-chat 1.0.3 → 1.0.4

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,3 +1,6 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+
1
4
  interface ChatInitState {
2
5
  user: any | null;
3
6
  loading: boolean;
@@ -9,4 +12,11 @@ interface IPros {
9
12
  }
10
13
  declare function useCallChatInit(props: IPros): ChatInitState;
11
14
 
12
- export { useCallChatInit };
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
+ export { ListGroup, useCallChatInit };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+
1
4
  interface ChatInitState {
2
5
  user: any | null;
3
6
  loading: boolean;
@@ -9,4 +12,11 @@ interface IPros {
9
12
  }
10
13
  declare function useCallChatInit(props: IPros): ChatInitState;
11
14
 
12
- export { useCallChatInit };
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
+ export { ListGroup, useCallChatInit };
package/dist/index.js CHANGED
@@ -9554,6 +9554,7 @@ var require_CometChat = __commonJS({
9554
9554
  // src/index.ts
9555
9555
  var index_exports = {};
9556
9556
  __export(index_exports, {
9557
+ ListGroup: () => ListGroup,
9557
9558
  useCallChatInit: () => useCallChatInit
9558
9559
  });
9559
9560
  module.exports = __toCommonJS(index_exports);
@@ -9636,37 +9637,26 @@ function useCallChatInit(props) {
9636
9637
  return { user, loading };
9637
9638
  }
9638
9639
 
9639
- // src/cometchat/components/compose.tsx
9640
- var import_chat_uikit_react3 = require("@cometchat/chat-uikit-react");
9641
- var import_jsx_runtime = require("react/jsx-runtime");
9642
-
9643
- // src/cometchat/components/header.tsx
9644
- var import_chat_uikit_react4 = require("@cometchat/chat-uikit-react");
9645
- var import_jsx_runtime2 = require("react/jsx-runtime");
9646
-
9647
9640
  // src/cometchat/components/list.tsx
9648
- var import_chat_uikit_react5 = require("@cometchat/chat-uikit-react");
9641
+ var import_chat_uikit_react3 = require("@cometchat/chat-uikit-react");
9649
9642
  var import_chat_sdk_javascript = __toESM(require_CometChat());
9650
9643
  var import_react2 = __toESM(require("react"));
9651
- var import_jsx_runtime3 = require("react/jsx-runtime");
9644
+ var import_jsx_runtime = require("react/jsx-runtime");
9652
9645
  var ListGroup = import_react2.default.memo(({
9653
9646
  tag = [],
9654
9647
  limit = 20,
9655
9648
  setSelectGroup
9656
9649
  }) => {
9657
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
9658
- import_chat_uikit_react5.CometChatGroups,
9650
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
9651
+ import_chat_uikit_react3.CometChatGroups,
9659
9652
  {
9660
9653
  groupsRequestBuilder: new import_chat_sdk_javascript.CometChat.GroupsRequestBuilder().setLimit(limit).setTags(tag),
9661
9654
  onItemClick: (e) => setSelectGroup(e)
9662
9655
  }
9663
9656
  );
9664
9657
  });
9665
-
9666
- // src/cometchat/components/message.tsx
9667
- var import_chat_uikit_react6 = require("@cometchat/chat-uikit-react");
9668
- var import_jsx_runtime4 = require("react/jsx-runtime");
9669
9658
  // Annotate the CommonJS export names for ESM import in node:
9670
9659
  0 && (module.exports = {
9660
+ ListGroup,
9671
9661
  useCallChatInit
9672
9662
  });
package/dist/index.mjs CHANGED
@@ -9623,25 +9623,17 @@ function useCallChatInit(props) {
9623
9623
  return { user, loading };
9624
9624
  }
9625
9625
 
9626
- // src/cometchat/components/compose.tsx
9627
- import { CometChatMessageComposer } from "@cometchat/chat-uikit-react";
9628
- import { Fragment, jsx } from "react/jsx-runtime";
9629
-
9630
- // src/cometchat/components/header.tsx
9631
- import { CometChatMessageHeader } from "@cometchat/chat-uikit-react";
9632
- import { jsx as jsx2 } from "react/jsx-runtime";
9633
-
9634
9626
  // src/cometchat/components/list.tsx
9635
9627
  var import_chat_sdk_javascript = __toESM(require_CometChat());
9636
9628
  import { CometChatGroups } from "@cometchat/chat-uikit-react";
9637
9629
  import React from "react";
9638
- import { jsx as jsx3 } from "react/jsx-runtime";
9630
+ import { jsx } from "react/jsx-runtime";
9639
9631
  var ListGroup = React.memo(({
9640
9632
  tag = [],
9641
9633
  limit = 20,
9642
9634
  setSelectGroup
9643
9635
  }) => {
9644
- return /* @__PURE__ */ jsx3(
9636
+ return /* @__PURE__ */ jsx(
9645
9637
  CometChatGroups,
9646
9638
  {
9647
9639
  groupsRequestBuilder: new import_chat_sdk_javascript.CometChat.GroupsRequestBuilder().setLimit(limit).setTags(tag),
@@ -9649,10 +9641,7 @@ var ListGroup = React.memo(({
9649
9641
  }
9650
9642
  );
9651
9643
  });
9652
-
9653
- // src/cometchat/components/message.tsx
9654
- import { CometChatMessageList } from "@cometchat/chat-uikit-react";
9655
- import { jsx as jsx4 } from "react/jsx-runtime";
9656
9644
  export {
9645
+ ListGroup,
9657
9646
  useCallChatInit
9658
9647
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cardoctor-call-chat",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -8,7 +8,7 @@ interface IListGroup {
8
8
  setSelectGroup: any
9
9
  }
10
10
 
11
- const ListGroup = React.memo(({
11
+ export const ListGroup = React.memo(({
12
12
  tag = [],
13
13
  limit = 20,
14
14
  setSelectGroup
@@ -22,4 +22,4 @@ const ListGroup = React.memo(({
22
22
  />
23
23
  });
24
24
 
25
- export default ListGroup;
25
+ // export default ListGroup;
package/src/index.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export * from "./cometchat/use-call-chat-init";
2
- export * from "./cometchat/components"
2
+ export * from "./cometchat/components/list"