cardoctor-call-chat 1.0.6 → 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 +1 -23
- package/dist/index.d.ts +1 -23
- package/dist/index.js +2 -45
- package/dist/index.mjs +1 -40
- package/package.json +1 -1
- package/src/cometchat/components/list.tsx +4 -2
- package/src/index.ts +1 -1
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,23 +9,4 @@ interface IPros {
|
|
12
9
|
}
|
13
10
|
declare function useCallChatInit(props: IPros): ChatInitState;
|
14
11
|
|
15
|
-
|
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
|
-
|
23
|
-
interface IListGroup {
|
24
|
-
tag?: string[];
|
25
|
-
limit?: number;
|
26
|
-
setSelectGroup: any;
|
27
|
-
}
|
28
|
-
declare const ListGroup: React.MemoExoticComponent<({ tag, limit, setSelectGroup }: IListGroup) => react_jsx_runtime.JSX.Element>;
|
29
|
-
|
30
|
-
declare const CometChatMessage: ({ group }: {
|
31
|
-
group: any;
|
32
|
-
}) => react_jsx_runtime.JSX.Element;
|
33
|
-
|
34
|
-
export { CometChatCompose, CometChatHeader, CometChatMessage, ListGroup, 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,23 +9,4 @@ interface IPros {
|
|
12
9
|
}
|
13
10
|
declare function useCallChatInit(props: IPros): ChatInitState;
|
14
11
|
|
15
|
-
|
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
|
-
|
23
|
-
interface IListGroup {
|
24
|
-
tag?: string[];
|
25
|
-
limit?: number;
|
26
|
-
setSelectGroup: any;
|
27
|
-
}
|
28
|
-
declare const ListGroup: React.MemoExoticComponent<({ tag, limit, setSelectGroup }: IListGroup) => react_jsx_runtime.JSX.Element>;
|
29
|
-
|
30
|
-
declare const CometChatMessage: ({ group }: {
|
31
|
-
group: any;
|
32
|
-
}) => react_jsx_runtime.JSX.Element;
|
33
|
-
|
34
|
-
export { CometChatCompose, CometChatHeader, CometChatMessage, ListGroup, useCallChatInit };
|
12
|
+
export { useCallChatInit };
|
package/dist/index.js
CHANGED
@@ -9554,10 +9554,6 @@ 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,
|
9560
|
-
ListGroup: () => ListGroup,
|
9561
9557
|
useCallChatInit: () => useCallChatInit
|
9562
9558
|
});
|
9563
9559
|
module.exports = __toCommonJS(index_exports);
|
@@ -9640,50 +9636,11 @@ function useCallChatInit(props) {
|
|
9640
9636
|
return { user, loading };
|
9641
9637
|
}
|
9642
9638
|
|
9643
|
-
// src/cometchat/components/compose.tsx
|
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
9639
|
// src/cometchat/components/list.tsx
|
9658
|
-
var
|
9640
|
+
var import_chat_uikit_react3 = require("@cometchat/chat-uikit-react");
|
9659
9641
|
var import_chat_sdk_javascript = __toESM(require_CometChat());
|
9660
|
-
var
|
9661
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
9662
|
-
var ListGroup = import_react2.default.memo(({
|
9663
|
-
tag = [],
|
9664
|
-
limit = 20,
|
9665
|
-
setSelectGroup
|
9666
|
-
}) => {
|
9667
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
9668
|
-
import_chat_uikit_react5.CometChatGroups,
|
9669
|
-
{
|
9670
|
-
groupsRequestBuilder: new import_chat_sdk_javascript.CometChat.GroupsRequestBuilder().setLimit(limit).setTags(tag),
|
9671
|
-
onItemClick: (e) => setSelectGroup(e)
|
9672
|
-
}
|
9673
|
-
);
|
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
|
-
};
|
9642
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
9682
9643
|
// Annotate the CommonJS export names for ESM import in node:
|
9683
9644
|
0 && (module.exports = {
|
9684
|
-
CometChatCompose,
|
9685
|
-
CometChatHeader,
|
9686
|
-
CometChatMessage,
|
9687
|
-
ListGroup,
|
9688
9645
|
useCallChatInit
|
9689
9646
|
});
|
package/dist/index.mjs
CHANGED
@@ -9623,49 +9623,10 @@ 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
|
-
|
9640
9626
|
// src/cometchat/components/list.tsx
|
9641
9627
|
var import_chat_sdk_javascript = __toESM(require_CometChat());
|
9642
9628
|
import { CometChatGroups } from "@cometchat/chat-uikit-react";
|
9643
|
-
import
|
9644
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
9645
|
-
var ListGroup = React.memo(({
|
9646
|
-
tag = [],
|
9647
|
-
limit = 20,
|
9648
|
-
setSelectGroup
|
9649
|
-
}) => {
|
9650
|
-
return /* @__PURE__ */ jsx3(
|
9651
|
-
CometChatGroups,
|
9652
|
-
{
|
9653
|
-
groupsRequestBuilder: new import_chat_sdk_javascript.CometChat.GroupsRequestBuilder().setLimit(limit).setTags(tag),
|
9654
|
-
onItemClick: (e) => setSelectGroup(e)
|
9655
|
-
}
|
9656
|
-
);
|
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
|
-
};
|
9629
|
+
import { jsx } from "react/jsx-runtime";
|
9665
9630
|
export {
|
9666
|
-
CometChatCompose,
|
9667
|
-
CometChatHeader,
|
9668
|
-
CometChatMessage,
|
9669
|
-
ListGroup,
|
9670
9631
|
useCallChatInit
|
9671
9632
|
};
|
package/package.json
CHANGED
@@ -8,7 +8,7 @@ interface IListGroup {
|
|
8
8
|
setSelectGroup: any
|
9
9
|
}
|
10
10
|
|
11
|
-
|
11
|
+
const ListGroup = ({
|
12
12
|
tag = [],
|
13
13
|
limit = 20,
|
14
14
|
setSelectGroup
|
@@ -20,4 +20,6 @@ export const ListGroup = React.memo(({
|
|
20
20
|
}
|
21
21
|
onItemClick={e => setSelectGroup(e)}
|
22
22
|
/>
|
23
|
-
}
|
23
|
+
};
|
24
|
+
|
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"
|