bhd-components 0.7.24 → 0.7.26
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/README.md +1 -1
- package/dist/{d4d78cf9.esm.es5.development.js → 05f7c0f3.esm.es5.development.js} +1 -1
- package/dist/{80185fca.esm.es5.production.js → 7b969b44.esm.es5.production.js} +1 -1
- package/dist/index.esm.es5.development.css +505 -493
- package/dist/index.esm.es5.development.js +18 -10
- package/dist/index.esm.es5.production.css +1 -1
- package/dist/index.esm.es5.production.js +1 -1
- package/es2017/customerService/index.js +16 -8
- package/es2017/customerService/index2.module.less +14 -1
- package/esm/customerService/index.js +16 -8
- package/esm/customerService/index2.module.less +14 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z as zhCN, C as ConfigProvider, _ as _extends, a as _object_destructuring_empty, j as jsx, b as _object_spread_props, S as StyleProvider, t as transform, c as _object_spread, d as _sliced_to_array, T as Tooltip, e as Table$2, I as Icon, f as jsxs, m as message, E as ExclamationCircleFilled, P as Pagination, g as Select, h as CaretDownOutlined, M as Modal, i as _inherits, k as _create_super, l as _create_class, n as _class_call_check, o as _define_property, p as _assert_this_initialized, q as _async_to_generator, L as LeftOutlined, R as RightOutlined, r as MinusOutlined, s as PlusOutlined, u as __generator, v as Input, w as SearchOutlined, x as CloseOutlined, X, y as I, H, A as Remarkable, D as Drawer, B as HighlightJS, Z as ZoomInOutlined, F as _to_consumable_array } from './
|
|
2
|
-
export { G as Affix, J as Alert, K as Anchor, aF as App, N as AutoComplete, O as Avatar, U as BackTop, V as Badge, W as Breadcrumb, Y as Button, $ as Calendar, a0 as Card, a1 as Carousel, a2 as Cascader, a3 as Checkbox, a4 as Col, a5 as Collapse, a6 as DatePicker, a7 as Descriptions, a8 as Divider, D as Drawer, a9 as Dropdown, aa as Empty, Q as FloatButton, ab as Form, ac as Grid, ad as Image, v as Input, ae as InputNumber, af as Layout, ag as List, ah as Mentions, ai as Menu, M as Modal, ak as Popconfirm, al as Popover, am as Progress, aM as QRCode, an as Radio, ao as Rate, ap as Result, aq as Row, ar as Segmented, g as Select, as as Skeleton, at as Slider, au as Space, av as Spin, aw as Statistic, ax as Steps, ay as Switch, az as Tabs, aA as Tag, aC as TimePicker, aD as Timeline, T as Tooltip, aE as Tour, aG as Transfer, aH as Tree, aI as TreeSelect, aJ as Typography, aK as Upload, aL as Watermark, aO as en_US, aj as notification, aB as theme, aN as version, z as zh_CN } from './
|
|
1
|
+
import { z as zhCN, C as ConfigProvider, _ as _extends, a as _object_destructuring_empty, j as jsx, b as _object_spread_props, S as StyleProvider, t as transform, c as _object_spread, d as _sliced_to_array, T as Tooltip, e as Table$2, I as Icon, f as jsxs, m as message, E as ExclamationCircleFilled, P as Pagination, g as Select, h as CaretDownOutlined, M as Modal, i as _inherits, k as _create_super, l as _create_class, n as _class_call_check, o as _define_property, p as _assert_this_initialized, q as _async_to_generator, L as LeftOutlined, R as RightOutlined, r as MinusOutlined, s as PlusOutlined, u as __generator, v as Input, w as SearchOutlined, x as CloseOutlined, X, y as I, H, A as Remarkable, D as Drawer, B as HighlightJS, Z as ZoomInOutlined, F as _to_consumable_array } from './05f7c0f3.esm.es5.development.js';
|
|
2
|
+
export { G as Affix, J as Alert, K as Anchor, aF as App, N as AutoComplete, O as Avatar, U as BackTop, V as Badge, W as Breadcrumb, Y as Button, $ as Calendar, a0 as Card, a1 as Carousel, a2 as Cascader, a3 as Checkbox, a4 as Col, a5 as Collapse, a6 as DatePicker, a7 as Descriptions, a8 as Divider, D as Drawer, a9 as Dropdown, aa as Empty, Q as FloatButton, ab as Form, ac as Grid, ad as Image, v as Input, ae as InputNumber, af as Layout, ag as List, ah as Mentions, ai as Menu, M as Modal, ak as Popconfirm, al as Popover, am as Progress, aM as QRCode, an as Radio, ao as Rate, ap as Result, aq as Row, ar as Segmented, g as Select, as as Skeleton, at as Slider, au as Space, av as Spin, aw as Statistic, ax as Steps, ay as Switch, az as Tabs, aA as Tag, aC as TimePicker, aD as Timeline, T as Tooltip, aE as Tour, aG as Transfer, aH as Tree, aI as TreeSelect, aJ as Typography, aK as Upload, aL as Watermark, aO as en_US, aj as notification, aB as theme, aN as version, z as zh_CN } from './05f7c0f3.esm.es5.development.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { useState, useRef, useEffect, useLayoutEffect, forwardRef, useImperativeHandle } from 'react';
|
|
5
5
|
import { Fragment } from 'react/jsx-runtime';
|
|
@@ -3861,7 +3861,17 @@ var CustomerService = function(props) {
|
|
|
3861
3861
|
useEffect(function() {
|
|
3862
3862
|
//老师的聊天窗口不发送打招呼信息
|
|
3863
3863
|
var roomList = contactsList;
|
|
3864
|
-
|
|
3864
|
+
//发送打招呼信息
|
|
3865
|
+
if (!(roomList.length > 0 && roomList[0].roomId != roomId && greetingMessage)) {
|
|
3866
|
+
sendGreetingMessage(1);
|
|
3867
|
+
scrollToBottom();
|
|
3868
|
+
}
|
|
3869
|
+
}, [
|
|
3870
|
+
greetingMessage
|
|
3871
|
+
]);
|
|
3872
|
+
//默认有消息时,展示聊天窗口
|
|
3873
|
+
useEffect(function() {
|
|
3874
|
+
var roomList = contactsList;
|
|
3865
3875
|
var count = 0;
|
|
3866
3876
|
roomList.map(function(item) {
|
|
3867
3877
|
count += item.unreadCount;
|
|
@@ -3869,14 +3879,9 @@ var CustomerService = function(props) {
|
|
|
3869
3879
|
if (count > 0) {
|
|
3870
3880
|
setShowContacts(true);
|
|
3871
3881
|
}
|
|
3872
|
-
//发送打招呼信息
|
|
3873
|
-
if (!(roomList.length > 0 && roomList[0].roomId != roomId && greetingMessage)) {
|
|
3874
|
-
sendGreetingMessage(1);
|
|
3875
|
-
scrollToBottom();
|
|
3876
|
-
}
|
|
3877
3882
|
}, [
|
|
3878
|
-
|
|
3879
|
-
]);
|
|
3883
|
+
contactsList
|
|
3884
|
+
]);
|
|
3880
3885
|
//查找需要复制的代码
|
|
3881
3886
|
var findCopyContent = function(e) {
|
|
3882
3887
|
var source = findParent(e.target, styles.copyCode);
|
|
@@ -6203,6 +6208,9 @@ var CustomerService = function(props) {
|
|
|
6203
6208
|
//发送截图信息
|
|
6204
6209
|
var sendScreenshotData = function(message) {
|
|
6205
6210
|
if (contactsList.length > 0 && contactsList[0].roomId == roomId) {
|
|
6211
|
+
setKeyWord("");
|
|
6212
|
+
setCitationContent({});
|
|
6213
|
+
setBottomRecommendationQuestions([]);
|
|
6206
6214
|
setHistoryMessageList(function(historyMessageList) {
|
|
6207
6215
|
var newHistoryMessageList = historyMessageList.concat({
|
|
6208
6216
|
id: "p" + new Date().getTime(),
|