cardoctor-call-chat 1.0.7 → 1.0.8
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 +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +15 -0
- package/dist/index.mjs +14 -0
- package/package.json +1 -1
- package/src/cometchat/components/list.tsx +2 -4
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
|
-
|
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
|
-
|
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
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
9650
|
+
import_chat_uikit_react3.CometChatGroups,
|
9651
|
+
{
|
9652
|
+
groupsRequestBuilder: new import_chat_sdk_javascript.CometChat.GroupsRequestBuilder().setLimit(limit).setTags(tag),
|
9653
|
+
onItemClick: (e) => setSelectGroup(e)
|
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
|
+
return /* @__PURE__ */ jsx(
|
9636
|
+
CometChatGroups,
|
9637
|
+
{
|
9638
|
+
groupsRequestBuilder: new import_chat_sdk_javascript.CometChat.GroupsRequestBuilder().setLimit(limit).setTags(tag),
|
9639
|
+
onItemClick: (e) => setSelectGroup(e)
|
9640
|
+
}
|
9641
|
+
);
|
9642
|
+
};
|
9630
9643
|
export {
|
9644
|
+
ListGroup,
|
9631
9645
|
useCallChatInit
|
9632
9646
|
};
|
package/package.json
CHANGED
@@ -8,7 +8,7 @@ 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
|
@@ -20,6 +20,4 @@ const ListGroup = ({
|
|
20
20
|
}
|
21
21
|
onItemClick={e => setSelectGroup(e)}
|
22
22
|
/>
|
23
|
-
};
|
24
|
-
|
25
|
-
export default ListGroup
|
23
|
+
};
|