cardoctor-call-chat 1.0.3 → 1.0.5

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,13 @@ 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
+ declare const ListGroupDemo: () => react_jsx_runtime.JSX.Element;
23
+
24
+ export { ListGroup, ListGroupDemo, 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,13 @@ 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
+ declare const ListGroupDemo: () => react_jsx_runtime.JSX.Element;
23
+
24
+ export { ListGroup, ListGroupDemo, useCallChatInit };
package/dist/index.js CHANGED
@@ -9554,6 +9554,8 @@ 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,
9557
9559
  useCallChatInit: () => useCallChatInit
9558
9560
  });
9559
9561
  module.exports = __toCommonJS(index_exports);
@@ -9636,26 +9638,18 @@ function useCallChatInit(props) {
9636
9638
  return { user, loading };
9637
9639
  }
9638
9640
 
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
9641
  // src/cometchat/components/list.tsx
9648
- var import_chat_uikit_react5 = require("@cometchat/chat-uikit-react");
9642
+ var import_chat_uikit_react3 = require("@cometchat/chat-uikit-react");
9649
9643
  var import_chat_sdk_javascript = __toESM(require_CometChat());
9650
9644
  var import_react2 = __toESM(require("react"));
9651
- var import_jsx_runtime3 = require("react/jsx-runtime");
9645
+ var import_jsx_runtime = require("react/jsx-runtime");
9652
9646
  var ListGroup = import_react2.default.memo(({
9653
9647
  tag = [],
9654
9648
  limit = 20,
9655
9649
  setSelectGroup
9656
9650
  }) => {
9657
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
9658
- import_chat_uikit_react5.CometChatGroups,
9651
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
9652
+ import_chat_uikit_react3.CometChatGroups,
9659
9653
  {
9660
9654
  groupsRequestBuilder: new import_chat_sdk_javascript.CometChat.GroupsRequestBuilder().setLimit(limit).setTags(tag),
9661
9655
  onItemClick: (e) => setSelectGroup(e)
@@ -9663,10 +9657,15 @@ var ListGroup = import_react2.default.memo(({
9663
9657
  );
9664
9658
  });
9665
9659
 
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");
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
+ };
9669
9666
  // Annotate the CommonJS export names for ESM import in node:
9670
9667
  0 && (module.exports = {
9668
+ ListGroup,
9669
+ ListGroupDemo,
9671
9670
  useCallChatInit
9672
9671
  });
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),
@@ -9650,9 +9642,14 @@ var ListGroup = React.memo(({
9650
9642
  );
9651
9643
  });
9652
9644
 
9653
- // src/cometchat/components/message.tsx
9654
- import { CometChatMessageList } from "@cometchat/chat-uikit-react";
9655
- import { jsx as jsx4 } from "react/jsx-runtime";
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
+ };
9656
9651
  export {
9652
+ ListGroup,
9653
+ ListGroupDemo,
9657
9654
  useCallChatInit
9658
9655
  };
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.5",
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;
@@ -0,0 +1,7 @@
1
+ import { CometChatGroups } from "@cometchat/chat-uikit-react"
2
+
3
+ export const ListGroupDemo = () => {
4
+ return(
5
+ <CometChatGroups />
6
+ )
7
+ }
package/src/index.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from "./cometchat/use-call-chat-init";
2
- export * from "./cometchat/components"
2
+ export * from "./cometchat/components/list"
3
+ export * from "./cometchat/list-group"