bhd-components 0.7.4 → 0.7.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.
@@ -128688,7 +128688,7 @@ function requireD () {
128688
128688
  + 'pragma private protected public pure ref return scope shared static struct '
128689
128689
  + 'super switch synchronized template this throw try typedef typeid typeof union '
128690
128690
  + 'unittest version void volatile while with __FILE__ __LINE__ __gshared|10 '
128691
- + '__thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ "0.7.4"',
128691
+ + '__thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ "0.7.6"',
128692
128692
  built_in:
128693
128693
  'bool cdouble cent cfloat char creal dchar delegate double dstring float function '
128694
128694
  + 'idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar '
@@ -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, B as html2canvas, D as Drawer, F as HighlightJS, Z as ZoomInOutlined, G as _to_consumable_array } from './4d37fec9.esm.es5.development.js';
2
- export { J as Affix, K as Alert, N as Anchor, aG as App, O as AutoComplete, Q as Avatar, V as BackTop, W as Badge, Y as Breadcrumb, $ as Button, a0 as Calendar, a1 as Card, a2 as Carousel, a3 as Cascader, a4 as Checkbox, a5 as Col, a6 as Collapse, a7 as DatePicker, a8 as Descriptions, a9 as Divider, D as Drawer, aa as Dropdown, ab as Empty, U as FloatButton, ac as Form, ad as Grid, ae as Image, v as Input, af as InputNumber, ag as Layout, ah as List, ai as Mentions, aj as Menu, M as Modal, al as Popconfirm, am as Popover, an as Progress, aN as QRCode, ao as Radio, ap as Rate, aq as Result, ar as Row, as as Segmented, g as Select, at as Skeleton, au as Slider, av as Space, aw as Spin, ax as Statistic, ay as Steps, az as Switch, aA as Tabs, aB as Tag, aD as TimePicker, aE as Timeline, T as Tooltip, aF as Tour, aH as Transfer, aI as Tree, aJ as TreeSelect, aK as Typography, aL as Upload, aM as Watermark, aP as en_US, ak as notification, aC as theme, aO as version, z as zh_CN } from './4d37fec9.esm.es5.development.js';
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, B as html2canvas, D as Drawer, F as HighlightJS, Z as ZoomInOutlined, G as _to_consumable_array } from './e316787c.esm.es5.development.js';
2
+ export { J as Affix, K as Alert, N as Anchor, aG as App, O as AutoComplete, Q as Avatar, V as BackTop, W as Badge, Y as Breadcrumb, $ as Button, a0 as Calendar, a1 as Card, a2 as Carousel, a3 as Cascader, a4 as Checkbox, a5 as Col, a6 as Collapse, a7 as DatePicker, a8 as Descriptions, a9 as Divider, D as Drawer, aa as Dropdown, ab as Empty, U as FloatButton, ac as Form, ad as Grid, ae as Image, v as Input, af as InputNumber, ag as Layout, ah as List, ai as Mentions, aj as Menu, M as Modal, al as Popconfirm, am as Popover, an as Progress, aN as QRCode, ao as Radio, ap as Rate, aq as Result, ar as Row, as as Segmented, g as Select, at as Skeleton, au as Slider, av as Space, aw as Spin, ax as Statistic, ay as Steps, az as Switch, aA as Tabs, aB as Tag, aD as TimePicker, aE as Timeline, T as Tooltip, aF as Tour, aH as Transfer, aI as Tree, aJ as TreeSelect, aK as Typography, aL as Upload, aM as Watermark, aP as en_US, ak as notification, aC as theme, aO as version, z as zh_CN } from './e316787c.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';
@@ -4198,21 +4198,22 @@ var CustomerService = function(props) {
4198
4198
  useEffect(function() {
4199
4199
  console.log(showType, "showTypeshowTypeshowType");
4200
4200
  if (showType == 5) {
4201
- //document.querySelector("#__docusaurus")
4202
- setTimeout(function() {
4203
- html2canvas(document.getElementsByTagName("body")[0], {
4204
- allowTaint: true,
4205
- useCORS: true,
4206
- scale: 1 // 图片比例
4207
- }).then(function(canvas) {
4208
- document.body.appendChild(canvas);
4209
- var base64URL = canvas.toDataURL("image/jpeg");
4210
- var image = new Image();
4211
- image.src = base64URL; // 将'your_image_url'替换为你自己的图片URL
4212
- console.log(base64URL);
4213
- setImgBese64(base64URL);
4214
- });
4215
- }, 1000);
4201
+ //document.querySelector("#rootWrapper")
4202
+ //document.getElementsByTagName('body')[0]
4203
+ // setTimeout(()=>{
4204
+ html2canvas(document.querySelector("#rootWrapper"), {
4205
+ allowTaint: true,
4206
+ useCORS: true,
4207
+ scale: 1 // 图片比例
4208
+ }).then(function(canvas) {
4209
+ document.body.appendChild(canvas);
4210
+ var base64URL = canvas.toDataURL("image/jpeg");
4211
+ var image = new Image();
4212
+ image.src = base64URL; // 将'your_image_url'替换为你自己的图片URL
4213
+ console.log(base64URL);
4214
+ setImgBese64(base64URL);
4215
+ });
4216
+ // },1000)
4216
4217
  }
4217
4218
  if (showType != 1 && !firstLoad && pageCount > 0) {
4218
4219
  setFirstLoad(true);
@@ -4803,7 +4804,6 @@ var CustomerService = function(props) {
4803
4804
  setTimeout(function() {
4804
4805
  setQuestionsList([]);
4805
4806
  }, 2000);
4806
- // console.log(pageNumHistory,44444444444444);
4807
4807
  //占位信息
4808
4808
  if (pageNumHistory <= 1) {
4809
4809
  setHistoryMessageList(function(historyMessageList) {
@@ -4843,8 +4843,8 @@ var CustomerService = function(props) {
4843
4843
  headers: {
4844
4844
  "Content-Type": "application/json",
4845
4845
  Accept: "text/event-stream,application/json",
4846
- // "X-Auth-Jwt": window.localStorage.getItem("usertoken") || "",
4847
- "X-Auth-Jwt": sessionStorage.getItem("jwt") || "",
4846
+ "X-Auth-Jwt": window.localStorage.getItem("usertoken") || "",
4847
+ // "X-Auth-Jwt": sessionStorage.getItem('jwt') || "",
4848
4848
  "Auth-Token": userData.token,
4849
4849
  "X-Module-Id": userData.modules.find(function(ele) {
4850
4850
  return ele.short == "IntelligentCustomerService";
@@ -5338,7 +5338,7 @@ var CustomerService = function(props) {
5338
5338
  page: 1,
5339
5339
  maxPageSize: 4,
5340
5340
  question: value,
5341
- sectionId: getQuery("s_id") || 325569
5341
+ sectionId: getQuery("s_id")
5342
5342
  };
5343
5343
  } else if (flag == 4) {
5344
5344
  data = {
@@ -5385,8 +5385,8 @@ var CustomerService = function(props) {
5385
5385
  var params = config.params;
5386
5386
  var videoId = params.videoPageData.videoId;
5387
5387
  var watchTime = params.videoPageData.videoProgress;
5388
- var courseId = getQuery("yc_id") || 10;
5389
- var sectionId = getQuery("s_id") || 20;
5388
+ var courseId = getQuery("yc_id");
5389
+ var sectionId = getQuery("s_id");
5390
5390
  if (videoId && watchTime && courseId && sectionId) {
5391
5391
  console.log("请求接口2222");
5392
5392
  http.post("".concat(urllocation, "/chat-service/public/v1.0/knowledge-base/questions:recommend"), {