cardoctor-call-chat 1.0.4 → 1.0.6

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
@@ -12,6 +12,14 @@ interface IPros {
12
12
  }
13
13
  declare function useCallChatInit(props: IPros): ChatInitState;
14
14
 
15
+ declare const CometChatCompose: ({ group }: {
16
+ group: any;
17
+ }) => react_jsx_runtime.JSX.Element;
18
+
19
+ declare const CometChatHeader: ({ group }: {
20
+ group: any;
21
+ }) => react_jsx_runtime.JSX.Element;
22
+
15
23
  interface IListGroup {
16
24
  tag?: string[];
17
25
  limit?: number;
@@ -19,4 +27,8 @@ interface IListGroup {
19
27
  }
20
28
  declare const ListGroup: React.MemoExoticComponent<({ tag, limit, setSelectGroup }: IListGroup) => react_jsx_runtime.JSX.Element>;
21
29
 
22
- export { ListGroup, useCallChatInit };
30
+ declare const CometChatMessage: ({ group }: {
31
+ group: any;
32
+ }) => react_jsx_runtime.JSX.Element;
33
+
34
+ export { CometChatCompose, CometChatHeader, CometChatMessage, ListGroup, useCallChatInit };
package/dist/index.d.ts CHANGED
@@ -12,6 +12,14 @@ interface IPros {
12
12
  }
13
13
  declare function useCallChatInit(props: IPros): ChatInitState;
14
14
 
15
+ declare const CometChatCompose: ({ group }: {
16
+ group: any;
17
+ }) => react_jsx_runtime.JSX.Element;
18
+
19
+ declare const CometChatHeader: ({ group }: {
20
+ group: any;
21
+ }) => react_jsx_runtime.JSX.Element;
22
+
15
23
  interface IListGroup {
16
24
  tag?: string[];
17
25
  limit?: number;
@@ -19,4 +27,8 @@ interface IListGroup {
19
27
  }
20
28
  declare const ListGroup: React.MemoExoticComponent<({ tag, limit, setSelectGroup }: IListGroup) => react_jsx_runtime.JSX.Element>;
21
29
 
22
- export { ListGroup, useCallChatInit };
30
+ declare const CometChatMessage: ({ group }: {
31
+ group: any;
32
+ }) => react_jsx_runtime.JSX.Element;
33
+
34
+ export { CometChatCompose, CometChatHeader, CometChatMessage, ListGroup, useCallChatInit };
package/dist/index.js CHANGED
@@ -9554,6 +9554,9 @@ var require_CometChat = __commonJS({
9554
9554
  // src/index.ts
9555
9555
  var index_exports = {};
9556
9556
  __export(index_exports, {
9557
+ CometChatCompose: () => CometChatCompose,
9558
+ CometChatHeader: () => CometChatHeader,
9559
+ CometChatMessage: () => CometChatMessage,
9557
9560
  ListGroup: () => ListGroup,
9558
9561
  useCallChatInit: () => useCallChatInit
9559
9562
  });
@@ -9637,26 +9640,50 @@ function useCallChatInit(props) {
9637
9640
  return { user, loading };
9638
9641
  }
9639
9642
 
9640
- // src/cometchat/components/list.tsx
9643
+ // src/cometchat/components/compose.tsx
9641
9644
  var import_chat_uikit_react3 = require("@cometchat/chat-uikit-react");
9645
+ var import_jsx_runtime = require("react/jsx-runtime");
9646
+ var CometChatCompose = ({ group }) => {
9647
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_chat_uikit_react3.CometChatMessageComposer, { group }) });
9648
+ };
9649
+
9650
+ // src/cometchat/components/header.tsx
9651
+ var import_chat_uikit_react4 = require("@cometchat/chat-uikit-react");
9652
+ var import_jsx_runtime2 = require("react/jsx-runtime");
9653
+ var CometChatHeader = ({ group }) => {
9654
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_chat_uikit_react4.CometChatMessageHeader, { group });
9655
+ };
9656
+
9657
+ // src/cometchat/components/list.tsx
9658
+ var import_chat_uikit_react5 = require("@cometchat/chat-uikit-react");
9642
9659
  var import_chat_sdk_javascript = __toESM(require_CometChat());
9643
9660
  var import_react2 = __toESM(require("react"));
9644
- var import_jsx_runtime = require("react/jsx-runtime");
9661
+ var import_jsx_runtime3 = require("react/jsx-runtime");
9645
9662
  var ListGroup = import_react2.default.memo(({
9646
9663
  tag = [],
9647
9664
  limit = 20,
9648
9665
  setSelectGroup
9649
9666
  }) => {
9650
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
9651
- import_chat_uikit_react3.CometChatGroups,
9667
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
9668
+ import_chat_uikit_react5.CometChatGroups,
9652
9669
  {
9653
9670
  groupsRequestBuilder: new import_chat_sdk_javascript.CometChat.GroupsRequestBuilder().setLimit(limit).setTags(tag),
9654
9671
  onItemClick: (e) => setSelectGroup(e)
9655
9672
  }
9656
9673
  );
9657
9674
  });
9675
+
9676
+ // src/cometchat/components/message.tsx
9677
+ var import_chat_uikit_react6 = require("@cometchat/chat-uikit-react");
9678
+ var import_jsx_runtime4 = require("react/jsx-runtime");
9679
+ var CometChatMessage = ({ group }) => {
9680
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "h-[800px] scroll-auto overflow-scroll", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_chat_uikit_react6.CometChatMessageList, { group }) });
9681
+ };
9658
9682
  // Annotate the CommonJS export names for ESM import in node:
9659
9683
  0 && (module.exports = {
9684
+ CometChatCompose,
9685
+ CometChatHeader,
9686
+ CometChatMessage,
9660
9687
  ListGroup,
9661
9688
  useCallChatInit
9662
9689
  });
package/dist/index.mjs CHANGED
@@ -9623,17 +9623,31 @@ 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
+ var CometChatCompose = ({ group }) => {
9630
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(CometChatMessageComposer, { group }) });
9631
+ };
9632
+
9633
+ // src/cometchat/components/header.tsx
9634
+ import { CometChatMessageHeader } from "@cometchat/chat-uikit-react";
9635
+ import { jsx as jsx2 } from "react/jsx-runtime";
9636
+ var CometChatHeader = ({ group }) => {
9637
+ return /* @__PURE__ */ jsx2(CometChatMessageHeader, { group });
9638
+ };
9639
+
9626
9640
  // src/cometchat/components/list.tsx
9627
9641
  var import_chat_sdk_javascript = __toESM(require_CometChat());
9628
9642
  import { CometChatGroups } from "@cometchat/chat-uikit-react";
9629
9643
  import React from "react";
9630
- import { jsx } from "react/jsx-runtime";
9644
+ import { jsx as jsx3 } from "react/jsx-runtime";
9631
9645
  var ListGroup = React.memo(({
9632
9646
  tag = [],
9633
9647
  limit = 20,
9634
9648
  setSelectGroup
9635
9649
  }) => {
9636
- return /* @__PURE__ */ jsx(
9650
+ return /* @__PURE__ */ jsx3(
9637
9651
  CometChatGroups,
9638
9652
  {
9639
9653
  groupsRequestBuilder: new import_chat_sdk_javascript.CometChat.GroupsRequestBuilder().setLimit(limit).setTags(tag),
@@ -9641,7 +9655,17 @@ var ListGroup = React.memo(({
9641
9655
  }
9642
9656
  );
9643
9657
  });
9658
+
9659
+ // src/cometchat/components/message.tsx
9660
+ import { CometChatMessageList } from "@cometchat/chat-uikit-react";
9661
+ import { jsx as jsx4 } from "react/jsx-runtime";
9662
+ var CometChatMessage = ({ group }) => {
9663
+ return /* @__PURE__ */ jsx4("div", { className: "h-[800px] scroll-auto overflow-scroll", children: /* @__PURE__ */ jsx4(CometChatMessageList, { group }) });
9664
+ };
9644
9665
  export {
9666
+ CometChatCompose,
9667
+ CometChatHeader,
9668
+ CometChatMessage,
9645
9669
  ListGroup,
9646
9670
  useCallChatInit
9647
9671
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cardoctor-call-chat",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
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}/>
@@ -20,6 +20,4 @@ export const ListGroup = React.memo(({
20
20
  }
21
21
  onItemClick={e => setSelectGroup(e)}
22
22
  />
23
- });
24
-
25
- // export default ListGroup;
23
+ });
@@ -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,2 +1,2 @@
1
1
  export * from "./cometchat/use-call-chat-init";
2
- export * from "./cometchat/components/list"
2
+ export * from "./cometchat/components"