cardoctor-call-chat 1.0.7 → 1.0.9

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,5 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
1
3
  interface ChatInitState {
2
4
  user: any | null;
3
5
  loading: boolean;
@@ -9,4 +11,11 @@ interface IPros {
9
11
  }
10
12
  declare function useCallChatInit(props: IPros): ChatInitState;
11
13
 
12
- export { useCallChatInit };
14
+ interface IListGroup {
15
+ tag?: string[];
16
+ limit?: number;
17
+ setSelectGroup: any;
18
+ }
19
+ declare const ListGroup: ({ tag, limit, setSelectGroup }: IListGroup) => react_jsx_runtime.JSX.Element;
20
+
21
+ export { ListGroup, useCallChatInit };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
1
3
  interface ChatInitState {
2
4
  user: any | null;
3
5
  loading: boolean;
@@ -9,4 +11,11 @@ interface IPros {
9
11
  }
10
12
  declare function useCallChatInit(props: IPros): ChatInitState;
11
13
 
12
- export { useCallChatInit };
14
+ interface IListGroup {
15
+ tag?: string[];
16
+ limit?: number;
17
+ setSelectGroup: any;
18
+ }
19
+ declare const ListGroup: ({ tag, limit, setSelectGroup }: IListGroup) => react_jsx_runtime.JSX.Element;
20
+
21
+ 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);
@@ -9640,7 +9641,21 @@ function useCallChatInit(props) {
9640
9641
  var import_chat_uikit_react3 = require("@cometchat/chat-uikit-react");
9641
9642
  var import_chat_sdk_javascript = __toESM(require_CometChat());
9642
9643
  var import_jsx_runtime = require("react/jsx-runtime");
9644
+ var ListGroup = ({
9645
+ tag = [],
9646
+ limit = 20,
9647
+ setSelectGroup
9648
+ }) => {
9649
+ console.log({ tag, limit });
9650
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
9651
+ import_chat_uikit_react3.CometChatGroups,
9652
+ {
9653
+ groupsRequestBuilder: new import_chat_sdk_javascript.CometChat.GroupsRequestBuilder().setLimit(20).setTags([""])
9654
+ }
9655
+ );
9656
+ };
9643
9657
  // Annotate the CommonJS export names for ESM import in node:
9644
9658
  0 && (module.exports = {
9659
+ ListGroup,
9645
9660
  useCallChatInit
9646
9661
  });
package/dist/index.mjs CHANGED
@@ -9627,6 +9627,20 @@ function useCallChatInit(props) {
9627
9627
  var import_chat_sdk_javascript = __toESM(require_CometChat());
9628
9628
  import { CometChatGroups } from "@cometchat/chat-uikit-react";
9629
9629
  import { jsx } from "react/jsx-runtime";
9630
+ var ListGroup = ({
9631
+ tag = [],
9632
+ limit = 20,
9633
+ setSelectGroup
9634
+ }) => {
9635
+ console.log({ tag, limit });
9636
+ return /* @__PURE__ */ jsx(
9637
+ CometChatGroups,
9638
+ {
9639
+ groupsRequestBuilder: new import_chat_sdk_javascript.CometChat.GroupsRequestBuilder().setLimit(20).setTags([""])
9640
+ }
9641
+ );
9642
+ };
9630
9643
  export {
9644
+ ListGroup,
9631
9645
  useCallChatInit
9632
9646
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cardoctor-call-chat",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -8,18 +8,18 @@ interface IListGroup {
8
8
  setSelectGroup: any
9
9
  }
10
10
 
11
- const ListGroup = ({
11
+ export const ListGroup = ({
12
12
  tag = [],
13
13
  limit = 20,
14
14
  setSelectGroup
15
15
  }: IListGroup) => {
16
+
17
+ console.log({tag,limit})
16
18
  return <CometChatGroups
17
19
  groupsRequestBuilder={new CometChat.GroupsRequestBuilder()
18
- .setLimit(limit)
19
- .setTags(tag)
20
+ .setLimit(20)
21
+ .setTags([""])
20
22
  }
21
- onItemClick={e => setSelectGroup(e)}
23
+ // onItemClick={e => setSelectGroup(e)}
22
24
  />
23
- };
24
-
25
- export default ListGroup
25
+ };