bhd-components 0.8.1 → 0.9.0

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.
Files changed (36) hide show
  1. package/README.md +1 -1
  2. package/dist/{f460f54e.esm.es5.production.js → 256789e0.esm.es5.production.js} +10 -10
  3. package/dist/{3f8529e7.esm.es5.development.js → f8c2008a.esm.es5.development.js} +18 -9
  4. package/dist/index.esm.es5.development.css +2245 -1007
  5. package/dist/index.esm.es5.development.js +506 -141
  6. package/dist/index.esm.es5.production.css +1 -1
  7. package/dist/index.esm.es5.production.js +1 -1
  8. package/dist/vendor.esm.es5.development.esm.es5.development.css +84 -83
  9. package/dist/vendor.esm.es5.production.esm.es5.production.css +10 -8
  10. package/es2017/bhdDatePicker/index.d.ts +17 -0
  11. package/es2017/bhdDatePicker/index.js +360 -0
  12. package/es2017/bhdDatePicker/index.module.less +851 -0
  13. package/es2017/customerService/historyFun.d.ts +1 -1
  14. package/es2017/customerService/historyFun.js +2 -1
  15. package/es2017/customerService/html2canvas.test.js +1234 -1233
  16. package/es2017/customerService/index.d.ts +1 -1
  17. package/es2017/customerService/index.js +14 -11
  18. package/es2017/customerService/index.module.less +7 -5
  19. package/es2017/customerService/index2.module.less +7 -5
  20. package/es2017/customerService/screenshotTool.js +3 -0
  21. package/es2017/index.d.ts +1 -0
  22. package/es2017/index.js +1 -0
  23. package/esm/bhdDatePicker/index.d.ts +17 -0
  24. package/esm/bhdDatePicker/index.js +367 -0
  25. package/esm/bhdDatePicker/index.module.less +851 -0
  26. package/esm/customerService/historyFun.d.ts +1 -1
  27. package/esm/customerService/historyFun.js +2 -1
  28. package/esm/customerService/html2canvas.test.js +34 -34
  29. package/esm/customerService/index.d.ts +1 -1
  30. package/esm/customerService/index.js +14 -11
  31. package/esm/customerService/index.module.less +7 -5
  32. package/esm/customerService/index2.module.less +7 -5
  33. package/esm/customerService/screenshotTool.js +3 -0
  34. package/esm/index.d.ts +1 -0
  35. package/esm/index.js +1 -0
  36. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import "highlight.js/styles/default.css";
2
+ import "highlight.js/styles/github.css";
3
3
  interface data {
4
4
  type: number;
5
5
  roomId: String | number;
@@ -4,7 +4,8 @@ import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
4
4
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@ice/jsx-runtime/jsx-runtime";
5
5
  import React, { useEffect, useState, useRef } from "react";
6
6
  import styles from "./index.module.less";
7
- import "highlight.js/styles/default.css";
7
+ //import "highlight.js/styles/default.css";
8
+ import "highlight.js/styles/github.css";
8
9
  import { Input } from "antd";
9
10
  import { CustomClose, CustomExpand, CustomAiIcon } from "../icons/index";
10
11
  import { SearchOutlined } from "@ant-design/icons";
@@ -1,4 +1,4 @@
1
- import { _ as _instanceof } from "@swc/helpers/_/_instanceof";
1
+ var _instanceof = require("@swc/helpers/cjs/_instanceof.cjs")._;
2
2
  /*!
3
3
  * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
4
4
  * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
@@ -8,66 +8,50 @@ import { _ as _instanceof } from "@swc/helpers/_/_instanceof";
8
8
  })(this, function() {
9
9
  "use strict";
10
10
  var __extends = function __extends(d, b) {
11
+ var __ = function __() {
12
+ this.constructor = d;
13
+ };
11
14
  if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
15
  extendStatics(d, b);
13
- function __() {
14
- this.constructor = d;
15
- }
16
16
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
17
17
  };
18
18
  var __awaiter = function __awaiter(thisArg, _arguments, P, generator) {
19
- function adopt(value) {
19
+ var adopt = function adopt(value) {
20
20
  return _instanceof(value, P) ? value : new P(function(resolve) {
21
21
  resolve(value);
22
22
  });
23
- }
23
+ };
24
24
  return new (P || (P = Promise))(function(resolve, reject) {
25
- function fulfilled(value) {
25
+ var fulfilled = function fulfilled(value) {
26
26
  try {
27
27
  step(generator.next(value));
28
28
  } catch (e) {
29
29
  reject(e);
30
30
  }
31
- }
32
- function rejected(value) {
31
+ };
32
+ var rejected = function rejected(value) {
33
33
  try {
34
34
  step(generator["throw"](value));
35
35
  } catch (e) {
36
36
  reject(e);
37
37
  }
38
- }
39
- function step(result) {
38
+ };
39
+ var step = function step(result) {
40
40
  result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
41
- }
41
+ };
42
42
  step((generator = generator.apply(thisArg, _arguments || [])).next());
43
43
  });
44
44
  };
45
45
  var __generator = function __generator(thisArg, body) {
46
- var _ = {
47
- label: 0,
48
- sent: function sent() {
49
- if (t[0] & 1) throw t[1];
50
- return t[1];
51
- },
52
- trys: [],
53
- ops: []
54
- }, f, y, t, g;
55
- return g = {
56
- next: verb(0),
57
- "throw": verb(1),
58
- "return": verb(2)
59
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
60
- return this;
61
- }), g;
62
- function verb(n) {
46
+ var verb = function verb(n) {
63
47
  return function(v) {
64
48
  return step([
65
49
  n,
66
50
  v
67
51
  ]);
68
52
  };
69
- }
70
- function step(op) {
53
+ };
54
+ var step = function step(op) {
71
55
  if (f) throw new TypeError("Generator is already executing.");
72
56
  while(_)try {
73
57
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
@@ -135,7 +119,23 @@ import { _ as _instanceof } from "@swc/helpers/_/_instanceof";
135
119
  value: op[0] ? op[1] : void 0,
136
120
  done: true
137
121
  };
138
- }
122
+ };
123
+ var _ = {
124
+ label: 0,
125
+ sent: function sent() {
126
+ if (t[0] & 1) throw t[1];
127
+ return t[1];
128
+ },
129
+ trys: [],
130
+ ops: []
131
+ }, f, y, t, g;
132
+ return g = {
133
+ next: verb(0),
134
+ "throw": verb(1),
135
+ "return": verb(2)
136
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
137
+ return this;
138
+ }), g;
139
139
  };
140
140
  var __spreadArray = function __spreadArray(to, from, pack) {
141
141
  if (pack || arguments.length === 2) for(var i = 0, l = from.length, ar; i < l; i++){
@@ -824,8 +824,7 @@ import { _ as _instanceof } from "@swc/helpers/_/_instanceof";
824
824
  return BREAK_NOT_ALLOWED$1;
825
825
  }
826
826
  // LB25 Do not break between the following pairs of classes relevant to numbers:
827
- if (// (PR | PO) × ( OP | HY )? NU
828
- [
827
+ if ([
829
828
  PR,
830
829
  PO
831
830
  ].indexOf(current) !== -1 && (next === NU || [
@@ -8579,3 +8578,4 @@ import { _ as _instanceof } from "@swc/helpers/_/_instanceof";
8579
8578
  };
8580
8579
  return html2canvas;
8581
8580
  }); //# sourceMappingURL=html2canvas.js.map
8581
+ //# sourceMappingURL=html2canvas.test.js.map
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import "highlight.js/styles/default.css";
2
+ import "highlight.js/styles/github.css";
3
3
  interface Service {
4
4
  type: string;
5
5
  params: any;
@@ -22,7 +22,8 @@ import TeacherList from "./teacherList";
22
22
  import { parseDate } from "../utils/Date";
23
23
  import { Remarkable } from "remarkable";
24
24
  import hljs from "highlight.js";
25
- import "highlight.js/styles/default.css";
25
+ //import "highlight.js/styles/default.css";
26
+ import "highlight.js/styles/github.css";
26
27
  import { render } from "react-dom";
27
28
  import Provider from "../provider";
28
29
  var TextArea = Input.TextArea;
@@ -194,6 +195,7 @@ var CustomerService = function(props) {
194
195
  if (content) {
195
196
  content.removeEventListener("scroll", handleScroll);
196
197
  }
198
+ // window.removeEventListener('resize',handlerHtml2canvas)
197
199
  };
198
200
  }, [
199
201
  historyMessageList,
@@ -1722,11 +1724,18 @@ var CustomerService = function(props) {
1722
1724
  /*#__PURE__*/ _jsxs("div", {
1723
1725
  className: styles.operate,
1724
1726
  children: [
1725
- /*#__PURE__*/ _jsx("i", {
1727
+ /*#__PURE__*/ _jsxs("i", {
1728
+ className: styles.popover_main,
1726
1729
  onClick: function() {
1727
1730
  setShowHistory(true);
1728
1731
  },
1729
- children: /*#__PURE__*/ _jsx(CustomRecord, {})
1732
+ children: [
1733
+ /*#__PURE__*/ _jsx(CustomRecord, {}),
1734
+ /*#__PURE__*/ _jsx("span", {
1735
+ className: styles.popover,
1736
+ children: "历史记录"
1737
+ })
1738
+ ]
1730
1739
  }),
1731
1740
  /*#__PURE__*/ _jsx("span", {
1732
1741
  className: styles.line
@@ -1746,20 +1755,14 @@ var CustomerService = function(props) {
1746
1755
  })
1747
1756
  ]
1748
1757
  }),
1749
- /*#__PURE__*/ _jsxs("i", {
1758
+ /*#__PURE__*/ _jsx("i", {
1750
1759
  className: styles.popover_main,
1751
1760
  onClick: function() {
1752
1761
  onEvent(serverName + serverUrl(), "click_智能问答_退出全屏", "提交");
1753
1762
  setShowType(3);
1754
1763
  setFirstLoad(false); //重启滚动条在最上方
1755
1764
  },
1756
- children: [
1757
- /*#__PURE__*/ _jsx(CloseOutlined, {}),
1758
- /*#__PURE__*/ _jsx("span", {
1759
- className: styles.popover,
1760
- children: "退出全屏"
1761
- })
1762
- ]
1765
+ children: /*#__PURE__*/ _jsx(CloseOutlined, {})
1763
1766
  })
1764
1767
  ]
1765
1768
  })
@@ -1177,8 +1177,8 @@
1177
1177
  max-height: 36px;
1178
1178
  word-break: break-all;
1179
1179
 
1180
- display: flex;
1181
- align-items: center;
1180
+ //display: flex;
1181
+ //align-items: center;
1182
1182
  img{
1183
1183
  margin-right: 8px;
1184
1184
  width: 60px;
@@ -1866,7 +1866,7 @@
1866
1866
  width: 417px;
1867
1867
  height: calc(100% - 48px);
1868
1868
  right: 0;
1869
- top: 48px;
1869
+ top: 38px;
1870
1870
  border-radius: 0;
1871
1871
  background: transparent;
1872
1872
  overflow: visible;
@@ -1918,7 +1918,7 @@
1918
1918
  background-color: transparent !important;
1919
1919
  // background-color: burlywood;
1920
1920
  .ReactCrop{
1921
-
1921
+ cursor: default !important;
1922
1922
  }
1923
1923
  :global{
1924
1924
  .ReactCrop__child-wrapper{
@@ -1926,7 +1926,8 @@
1926
1926
  width: 100% !important;
1927
1927
  height: 100% !important;
1928
1928
  top: 0 !important;
1929
- left: 0 !important
1929
+ left: 0 !important;
1930
+ cursor: default !important;
1930
1931
  }
1931
1932
  }
1932
1933
  :global{
@@ -1935,6 +1936,7 @@
1935
1936
  height: 100% !important;
1936
1937
  top: 0 !important;
1937
1938
  left: 0 !important;
1939
+ cursor: default !important;
1938
1940
  }
1939
1941
 
1940
1942
  }
@@ -1175,8 +1175,8 @@
1175
1175
  max-height: 36px;
1176
1176
  word-break: break-all;
1177
1177
 
1178
- display: flex;
1179
- align-items: center;
1178
+ //display: flex;
1179
+ //align-items: center;
1180
1180
  img{
1181
1181
  margin-right: 8px;
1182
1182
  width: 60px;
@@ -1860,7 +1860,7 @@
1860
1860
  width: 417px;
1861
1861
  height: calc(100% - 48px);
1862
1862
  right: 0;
1863
- top: 48px;
1863
+ top: 38px;
1864
1864
  border-radius: 0;
1865
1865
  background: transparent;
1866
1866
  overflow: visible;
@@ -1904,7 +1904,7 @@
1904
1904
  background-color: transparent !important;
1905
1905
  // background-color: burlywood;
1906
1906
  .ReactCrop{
1907
-
1907
+ cursor: default !important;
1908
1908
  }
1909
1909
  :global{
1910
1910
  .ReactCrop__child-wrapper{
@@ -1912,7 +1912,8 @@
1912
1912
  width: 100% !important;
1913
1913
  height: 100% !important;
1914
1914
  top: 0 !important;
1915
- left: 0 !important
1915
+ left: 0 !important;
1916
+ cursor: default !important;
1916
1917
  }
1917
1918
  }
1918
1919
  :global{
@@ -1921,6 +1922,7 @@
1921
1922
  height: 100% !important;
1922
1923
  top: 0 !important;
1923
1924
  left: 0 !important;
1925
+ cursor: default !important;
1924
1926
  }
1925
1927
 
1926
1928
  }
@@ -102,6 +102,9 @@ var ScreenshotTool = /*#__PURE__*/ forwardRef(function(props, ref) {
102
102
  minWidth: 100,
103
103
  children: /*#__PURE__*/ _jsx("img", {
104
104
  alt: "Crop me",
105
+ style: {
106
+ display: "none"
107
+ },
105
108
  src: imgBese64,
106
109
  onLoad: onImageLoad
107
110
  })
package/esm/index.d.ts CHANGED
@@ -80,3 +80,4 @@ export { default as BhdTipModal } from "./bhdTipModal";
80
80
  export { default as BhdSelect } from "./bhdSelect";
81
81
  export { default as BhdAppLayout } from "./bhdAppLayout";
82
82
  export { default as CustomerService } from "./customerService";
83
+ export { default as BhdDatePicker } from "./bhdDatePicker";
package/esm/index.js CHANGED
@@ -85,3 +85,4 @@ export { default as BhdTipModal } from "./bhdTipModal/index"; //提示框
85
85
  export { default as BhdSelect } from "./bhdSelect/index"; //封装 bhdSelect
86
86
  export { default as BhdAppLayout } from "./bhdAppLayout/index"; //封装 BhdAppLayout
87
87
  export { default as CustomerService } from "./customerService/index"; //封装 智能客服
88
+ export { default as BhdDatePicker } from "./bhdDatePicker/index"; //封装 日历组件
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bhd-components",
3
- "version": "0.8.1",
3
+ "version": "0.9.0",
4
4
  "description": "组件功能描述",
5
5
  "files": [
6
6
  "esm",