@tencentcloud/chat-uikit-react 3.0.1 → 3.0.2
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/CHANGELOG.md +11 -0
- package/dist/{ChatSetting-79tDbXT3.js → ChatSetting-BtQwjHr0.js} +3211 -3198
- package/dist/components/Chat/Chat.js +1 -1
- package/dist/components/ChatHeader/ChatHeader.js +1 -1
- package/dist/components/ChatHeader/ChatHeaderActions/ChatHeaderActions.js +1 -1
- package/dist/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.js +1 -1
- package/dist/components/IconFont/Icon.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/PopupNew/Popup.js +1 -1
- package/dist/components/Profile/Profile.js +1 -1
- package/dist/components/Profile/ProfileDefault.js +1 -1
- package/dist/components/Profile/myProfile/MyProfile.js +1 -1
- package/dist/constant/avatar.d.ts +2 -1
- package/dist/constant/avatar.js +2 -1
- package/dist/context/ChatContext.js +1 -1
- package/dist/external_modules/{mui-CbGEJVT2.js → mui-BcA3SBHM.js} +1 -1
- package/dist/external_modules/{zustand-Dvydplxp.js → zustand-CDmQR4co.js} +7 -7
- package/dist/index.js +1039 -1027
- package/dist/states/ChatHeaderState.js +19 -19
- package/dist/states/UIManagerState.js +1 -1
- package/dist/styles/ChatSetting.css +1 -1
- package/package.json +2 -2
- package/src/constant/avatar.ts +2 -1
- package/src/states/ChatHeaderState.ts +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { E as a, m as e } from "../../ChatSetting-
|
|
2
|
+
import { E as a, m as e } from "../../ChatSetting-BtQwjHr0.js";
|
|
3
3
|
import "@tencentcloud/uikit-base-component-react";
|
|
4
4
|
import "@tencentcloud/chat-uikit-engine";
|
|
5
5
|
import "@tencentcloud/tui-core";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect as h } from "react";
|
|
3
3
|
import { TUIUserService as v } from "@tencentcloud/chat-uikit-engine";
|
|
4
|
-
import { j as C } from "../../ChatSetting-
|
|
4
|
+
import { j as C } from "../../ChatSetting-BtQwjHr0.js";
|
|
5
5
|
import "@tencentcloud/uikit-base-component-react";
|
|
6
6
|
import "@tencentcloud/tui-core";
|
|
7
7
|
import "@tencentcloud/chat";
|
|
@@ -4,7 +4,7 @@ import { CallMediaType as m } from "@tencentcloud/call-uikit-react";
|
|
|
4
4
|
import w from "@tencentcloud/chat-uikit-engine";
|
|
5
5
|
import E, { TUIConstants as T } from "@tencentcloud/tui-core";
|
|
6
6
|
import { useUIKit as U, IconHorizontalMoreTwo as b, IconSearch as D, IconCall1 as x, IconVideoDefault as y } from "@tencentcloud/uikit-base-component-react";
|
|
7
|
-
import { i as z, E as N, p as A, m as M } from "../../../ChatSetting-
|
|
7
|
+
import { i as z, E as N, p as A, m as M } from "../../../ChatSetting-BtQwjHr0.js";
|
|
8
8
|
import "@tencentcloud/chat";
|
|
9
9
|
import { c as p } from "../../../external_modules/classnames-HRMVOjAa.js";
|
|
10
10
|
import '../../../styles/ChatHeaderActions.css';const C = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { useUIKit as O, IconChevronLeft as U } from "@tencentcloud/uikit-base-component-react";
|
|
3
|
-
import { i as g, E as I, m as a, V as T } from "../../../ChatSetting-
|
|
3
|
+
import { i as g, E as I, m as a, V as T } from "../../../ChatSetting-BtQwjHr0.js";
|
|
4
4
|
import "@tencentcloud/chat-uikit-engine";
|
|
5
5
|
import "@tencentcloud/tui-core";
|
|
6
6
|
import "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import d from "react";
|
|
3
3
|
import { c as n } from "../../external_modules/classnames-HRMVOjAa.js";
|
|
4
|
-
import { B as h } from "../../external_modules/mui-
|
|
4
|
+
import { B as h } from "../../external_modules/mui-BcA3SBHM.js";
|
|
5
5
|
import '../../styles/Icon2.css';const i = {
|
|
6
6
|
"icon-font": "uikit-icon-font",
|
|
7
7
|
"icon-button": "uikit-icon-button"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a, Fragment as k } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as v, useState as m, useRef as p, useEffect as b } from "react";
|
|
3
3
|
import { c as u } from "../../external_modules/classnames-HRMVOjAa.js";
|
|
4
|
-
import { M as x } from "../../external_modules/mui-
|
|
4
|
+
import { M as x } from "../../external_modules/mui-BcA3SBHM.js";
|
|
5
5
|
import { C as A } from "../../external_modules/react-vendors-3raCpd-g.js";
|
|
6
6
|
import '../../styles/Modal.css';const E = "uikit-root", N = "uikit-backdrop", R = "uikit-backdropEnterActive", t = {
|
|
7
7
|
root: E,
|
|
@@ -3,7 +3,7 @@ import p from "react";
|
|
|
3
3
|
import { MyProfile as P } from "./myProfile/MyProfile.js";
|
|
4
4
|
import { useMyProfile as s } from "./hooks/useMyProfile.js";
|
|
5
5
|
import { TUIProfileDefault as a } from "./ProfileDefault.js";
|
|
6
|
-
import { i as c } from "../../ChatSetting-
|
|
6
|
+
import { i as c } from "../../ChatSetting-BtQwjHr0.js";
|
|
7
7
|
import "@tencentcloud/uikit-base-component-react";
|
|
8
8
|
import "@tencentcloud/chat-uikit-engine";
|
|
9
9
|
import "@tencentcloud/tui-core";
|
|
@@ -2,7 +2,7 @@ import { jsx as i, jsxs as s } from "react/jsx-runtime";
|
|
|
2
2
|
import W, { useState as x } from "react";
|
|
3
3
|
import a from "@tencentcloud/chat-uikit-engine";
|
|
4
4
|
import { useUIKit as R, IconChevronLeft as F } from "@tencentcloud/uikit-base-component-react";
|
|
5
|
-
import { i as G, V as B } from "../../ChatSetting-
|
|
5
|
+
import { i as G, V as B } from "../../ChatSetting-BtQwjHr0.js";
|
|
6
6
|
import "@tencentcloud/tui-core";
|
|
7
7
|
import "@tencentcloud/chat";
|
|
8
8
|
import { DivWithEdit as L } from "../DivWithEdit/DivWithEdit.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { defaultUserAvatar as s } from "../../../constant/avatar.js";
|
|
3
|
-
import { V as t } from "../../../ChatSetting-
|
|
3
|
+
import { V as t } from "../../../ChatSetting-BtQwjHr0.js";
|
|
4
4
|
import { IconHorizontalMoreTwo as c } from "@tencentcloud/uikit-base-component-react";
|
|
5
5
|
import "@tencentcloud/chat-uikit-engine";
|
|
6
6
|
import "@tencentcloud/tui-core";
|
|
@@ -2,4 +2,5 @@ export declare const defaultGroupAvatarWork = "https://web.sdk.qcloud.com/im/dem
|
|
|
2
2
|
export declare const defaultGroupAvatarPublic = "https://web.sdk.qcloud.com/im/demo/TUIkit/react-static/images/group_avatar_public.png";
|
|
3
3
|
export declare const defaultGroupAvatarMeeting = "https://web.sdk.qcloud.com/im/demo/TUIkit/react-static/images/group_avatar_meeting.png";
|
|
4
4
|
export declare const defaultGroupAvatarAVChatRoom = "https://web.sdk.qcloud.com/im/demo/TUIkit/react-static/images/group_avatar_AVChatRoom.png";
|
|
5
|
-
export declare const defaultUserAvatar = "https://web.sdk.qcloud.com/component/TUIKit/assets/
|
|
5
|
+
export declare const defaultUserAvatar = "https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_16.png";
|
|
6
|
+
export declare const DEFAULT_GROUP_COMMON_AVATAR = "https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.png";
|
package/dist/constant/avatar.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
const t = "https://web.sdk.qcloud.com/im/demo/TUIkit/react-static/images/group_avatar_work.png", a = "https://web.sdk.qcloud.com/im/demo/TUIkit/react-static/images/group_avatar_public.png", o = "https://web.sdk.qcloud.com/im/demo/TUIkit/react-static/images/group_avatar_meeting.png", e = "https://web.sdk.qcloud.com/im/demo/TUIkit/react-static/images/group_avatar_AVChatRoom.png", s = "https://web.sdk.qcloud.com/component/TUIKit/assets/
|
|
1
|
+
const t = "https://web.sdk.qcloud.com/im/demo/TUIkit/react-static/images/group_avatar_work.png", a = "https://web.sdk.qcloud.com/im/demo/TUIkit/react-static/images/group_avatar_public.png", o = "https://web.sdk.qcloud.com/im/demo/TUIkit/react-static/images/group_avatar_meeting.png", e = "https://web.sdk.qcloud.com/im/demo/TUIkit/react-static/images/group_avatar_AVChatRoom.png", s = "https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_16.png", c = "https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.png";
|
|
2
2
|
export {
|
|
3
|
+
c as DEFAULT_GROUP_COMMON_AVATAR,
|
|
3
4
|
e as defaultGroupAvatarAVChatRoom,
|
|
4
5
|
o as defaultGroupAvatarMeeting,
|
|
5
6
|
a as defaultGroupAvatarPublic,
|
|
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { createContext as i, useMemo as s, useContext as u } from "react";
|
|
3
3
|
import { useUIManagerState as a } from "../states/UIManagerState.js";
|
|
4
4
|
import "@tencentcloud/chat-uikit-engine";
|
|
5
|
-
import "../ChatSetting-
|
|
5
|
+
import "../ChatSetting-BtQwjHr0.js";
|
|
6
6
|
import "@tencentcloud/uikit-base-component-react";
|
|
7
7
|
import "@tencentcloud/tui-core";
|
|
8
8
|
import "@tencentcloud/chat";
|
|
@@ -303,7 +303,7 @@ const qt = function(e) {
|
|
|
303
303
|
const F = (((y = s.flip) == null ? void 0 : y.index) || 0) + 1, B = S[F];
|
|
304
304
|
if (B && (!(d === "alignment" ? R !== z(B) : !1) || // We leave the current main axis only if every placement on that axis
|
|
305
305
|
// overflows the main axis.
|
|
306
|
-
L.every((O) => O.overflows[0] > 0
|
|
306
|
+
L.every((O) => z(O.placement) === R ? O.overflows[0] > 0 : !0)))
|
|
307
307
|
return {
|
|
308
308
|
data: {
|
|
309
309
|
index: F,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "react";
|
|
2
2
|
const f = (e) => {
|
|
3
3
|
let t;
|
|
4
|
-
const n = /* @__PURE__ */ new Set(),
|
|
4
|
+
const n = /* @__PURE__ */ new Set(), a = (s, r) => {
|
|
5
5
|
const c = typeof s == "function" ? s(t) : s;
|
|
6
6
|
if (!Object.is(c, t)) {
|
|
7
7
|
const l = t;
|
|
8
8
|
t = r ?? (typeof c != "object" || c === null) ? c : Object.assign({}, t, c), n.forEach((b) => b(t, l));
|
|
9
9
|
}
|
|
10
|
-
},
|
|
10
|
+
}, u = () => t, i = { setState: a, getState: u, getInitialState: () => S, subscribe: (s) => (n.add(s), () => n.delete(s)) }, S = t = e(a, u, i);
|
|
11
11
|
return i;
|
|
12
12
|
}, j = (e) => f, g = (e) => e;
|
|
13
13
|
function m(e, t = g) {
|
|
14
|
-
const n =
|
|
14
|
+
const n = o.useSyncExternalStore(
|
|
15
15
|
e.subscribe,
|
|
16
|
-
() => t(e.getState()),
|
|
17
|
-
() => t(e.getInitialState())
|
|
16
|
+
o.useCallback(() => t(e.getState()), [e, t]),
|
|
17
|
+
o.useCallback(() => t(e.getInitialState()), [e, t])
|
|
18
18
|
);
|
|
19
|
-
return
|
|
19
|
+
return o.useDebugValue(n), n;
|
|
20
20
|
}
|
|
21
21
|
export {
|
|
22
22
|
j as c,
|