bhd-components 0.5.5 → 0.5.7

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 (117) hide show
  1. package/dist/1bddec89.esm.es5.production.js +72 -0
  2. package/dist/535fc6c5.esm.es5.development.js +95493 -0
  3. package/dist/CustomerService.esm.es5.development.css +2827 -0
  4. package/dist/CustomerService.esm.es5.development.js +3823 -0
  5. package/dist/CustomerService.esm.es5.production.css +1 -0
  6. package/dist/CustomerService.esm.es5.production.js +1 -0
  7. package/dist/vendor.esm.es5.development.esm.es5.development.css +117 -0
  8. package/dist/vendor.esm.es5.production.esm.es5.production.css +9 -0
  9. package/es2017/customerService/contactsList/index.d.ts +13 -0
  10. package/es2017/customerService/contactsList/index.js +313 -0
  11. package/es2017/customerService/contactsList/index.module.less +187 -0
  12. package/es2017/customerService/function.d.ts +17 -0
  13. package/es2017/customerService/function.js +67 -0
  14. package/es2017/customerService/historyFun/index.d.ts +13 -0
  15. package/es2017/customerService/historyFun/index.js +241 -0
  16. package/es2017/customerService/historyFun/index.module.less +189 -0
  17. package/es2017/customerService/images/knowledge_icon.png +0 -0
  18. package/es2017/customerService/images/voice_btn.gif +0 -0
  19. package/es2017/customerService/index.d.ts +16 -0
  20. package/es2017/customerService/index.js +2493 -0
  21. package/es2017/customerService/index.module.less +727 -0
  22. package/es2017/customerService/useMediaRecorder.d.ts +9 -0
  23. package/es2017/customerService/useMediaRecorder.js +78 -0
  24. package/es2017/customerService/voice_btn.gif +0 -0
  25. package/es2017/icons/components/custom-ai_icon.d.ts +4 -0
  26. package/es2017/icons/components/custom-ai_icon.js +58 -0
  27. package/es2017/icons/components/custom-contacts.d.ts +4 -0
  28. package/es2017/icons/components/custom-contacts.js +29 -0
  29. package/es2017/icons/components/custom-copy.d.ts +4 -0
  30. package/es2017/icons/components/custom-copy.js +36 -0
  31. package/es2017/icons/components/custom-dislike.d.ts +4 -0
  32. package/es2017/icons/components/custom-dislike.js +22 -0
  33. package/es2017/icons/components/custom-duihao.d.ts +4 -0
  34. package/es2017/icons/components/custom-duihao.js +22 -0
  35. package/es2017/icons/components/custom-exit_full_screen.d.ts +4 -0
  36. package/es2017/icons/components/custom-exit_full_screen.js +26 -0
  37. package/es2017/icons/components/custom-full_screen.d.ts +4 -0
  38. package/es2017/icons/components/custom-full_screen.js +22 -0
  39. package/es2017/icons/components/custom-like.d.ts +4 -0
  40. package/es2017/icons/components/custom-like.js +22 -0
  41. package/es2017/icons/components/custom-quote.d.ts +4 -0
  42. package/es2017/icons/components/custom-quote.js +31 -0
  43. package/es2017/icons/components/custom-record.d.ts +4 -0
  44. package/es2017/icons/components/custom-record.js +37 -0
  45. package/es2017/icons/components/custom-reloading.d.ts +4 -0
  46. package/es2017/icons/components/custom-reloading.js +26 -0
  47. package/es2017/icons/components/custom-retract.d.ts +4 -0
  48. package/es2017/icons/components/custom-retract.js +27 -0
  49. package/es2017/icons/components/custom-round_close.d.ts +4 -0
  50. package/es2017/icons/components/custom-round_close.js +24 -0
  51. package/es2017/icons/components/custom-sending.d.ts +4 -0
  52. package/es2017/icons/components/custom-sending.js +22 -0
  53. package/es2017/icons/components/custom-sound_recording.d.ts +4 -0
  54. package/es2017/icons/components/custom-sound_recording.js +22 -0
  55. package/es2017/icons/components/index.d.ts +15 -0
  56. package/es2017/icons/components/index.js +15 -0
  57. package/es2017/index.d.ts +1 -0
  58. package/es2017/index.js +1 -0
  59. package/es2017/provider/config.js +3 -3
  60. package/esm/customerService/contactsList/index.d.ts +13 -0
  61. package/esm/customerService/contactsList/index.js +326 -0
  62. package/esm/customerService/contactsList/index.module.less +187 -0
  63. package/esm/customerService/function.d.ts +17 -0
  64. package/esm/customerService/function.js +69 -0
  65. package/esm/customerService/historyFun/index.d.ts +13 -0
  66. package/esm/customerService/historyFun/index.js +256 -0
  67. package/esm/customerService/historyFun/index.module.less +189 -0
  68. package/esm/customerService/images/knowledge_icon.png +0 -0
  69. package/esm/customerService/images/voice_btn.gif +0 -0
  70. package/esm/customerService/index.d.ts +16 -0
  71. package/esm/customerService/index.js +2576 -0
  72. package/esm/customerService/index.module.less +727 -0
  73. package/esm/customerService/useMediaRecorder.d.ts +9 -0
  74. package/esm/customerService/useMediaRecorder.js +121 -0
  75. package/esm/customerService/voice_btn.gif +0 -0
  76. package/esm/icons/components/custom-ai_icon.d.ts +4 -0
  77. package/esm/icons/components/custom-ai_icon.js +60 -0
  78. package/esm/icons/components/custom-contacts.d.ts +4 -0
  79. package/esm/icons/components/custom-contacts.js +31 -0
  80. package/esm/icons/components/custom-copy.d.ts +4 -0
  81. package/esm/icons/components/custom-copy.js +38 -0
  82. package/esm/icons/components/custom-dislike.d.ts +4 -0
  83. package/esm/icons/components/custom-dislike.js +24 -0
  84. package/esm/icons/components/custom-duihao.d.ts +4 -0
  85. package/esm/icons/components/custom-duihao.js +24 -0
  86. package/esm/icons/components/custom-exit_full_screen.d.ts +4 -0
  87. package/esm/icons/components/custom-exit_full_screen.js +28 -0
  88. package/esm/icons/components/custom-full_screen.d.ts +4 -0
  89. package/esm/icons/components/custom-full_screen.js +24 -0
  90. package/esm/icons/components/custom-like.d.ts +4 -0
  91. package/esm/icons/components/custom-like.js +24 -0
  92. package/esm/icons/components/custom-quote.d.ts +4 -0
  93. package/esm/icons/components/custom-quote.js +33 -0
  94. package/esm/icons/components/custom-record.d.ts +4 -0
  95. package/esm/icons/components/custom-record.js +39 -0
  96. package/esm/icons/components/custom-reloading.d.ts +4 -0
  97. package/esm/icons/components/custom-reloading.js +28 -0
  98. package/esm/icons/components/custom-retract.d.ts +4 -0
  99. package/esm/icons/components/custom-retract.js +29 -0
  100. package/esm/icons/components/custom-round_close.d.ts +4 -0
  101. package/esm/icons/components/custom-round_close.js +26 -0
  102. package/esm/icons/components/custom-sending.d.ts +4 -0
  103. package/esm/icons/components/custom-sending.js +24 -0
  104. package/esm/icons/components/custom-sound_recording.d.ts +4 -0
  105. package/esm/icons/components/custom-sound_recording.js +24 -0
  106. package/esm/icons/components/index.d.ts +15 -0
  107. package/esm/icons/components/index.js +15 -0
  108. package/esm/index.d.ts +1 -0
  109. package/esm/index.js +1 -0
  110. package/esm/provider/config.js +3 -3
  111. package/package.json +10 -2
  112. package/dist/1951bd5c.esm.es5.development.js +0 -45417
  113. package/dist/28cd83d3.esm.es5.production.js +0 -256
  114. package/dist/table.esm.es5.development.css +0 -772
  115. package/dist/table.esm.es5.development.js +0 -289
  116. package/dist/table.esm.es5.production.css +0 -1
  117. package/dist/table.esm.es5.production.js +0 -1
@@ -0,0 +1,26 @@
1
+ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
2
+ import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
3
+ import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
4
+ import * as React from "react";
5
+ import Icon from "@ant-design/icons";
6
+ var CustomRoundCloseSvg = function() {
7
+ return /*#__PURE__*/ _jsx("svg", {
8
+ width: "1em",
9
+ height: "1em",
10
+ viewBox: "0 0 20 20",
11
+ "shape-rendering": "geometricPrecision",
12
+ fill: "currentColor",
13
+ xmlns: "http://www.w3.org/2000/svg",
14
+ children: /*#__PURE__*/ _jsx("path", {
15
+ "fill-rule": "evenodd",
16
+ "clip-rule": "evenodd",
17
+ d: "M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM9.2929 8.23223C9.68343 8.62276 10.3166 8.62276 10.7071 8.23223L11.7678 7.17158C12.0607 6.87869 12.5355 6.87869 12.8284 7.17158C13.1213 7.46447 13.1213 7.93935 12.8284 8.23224L11.7678 9.29289C11.3773 9.68342 11.3773 10.3166 11.7678 10.7071L12.8284 11.7678C13.1213 12.0607 13.1213 12.5355 12.8284 12.8284C12.5355 13.1213 12.0607 13.1213 11.7678 12.8284L10.7071 11.7678C10.3166 11.3772 9.68343 11.3772 9.2929 11.7678L8.23223 12.8284C7.93934 13.1213 7.46447 13.1213 7.17157 12.8284C6.87868 12.5355 6.87868 12.0607 7.17157 11.7678L8.23224 10.7071C8.62277 10.3166 8.62277 9.68342 8.23224 9.29289L7.17158 8.23223C6.87869 7.93934 6.87869 7.46447 7.17158 7.17157C7.46448 6.87868 7.93935 6.87868 8.23224 7.17157L9.2929 8.23223Z"
18
+ })
19
+ });
20
+ };
21
+ var CustomRoundClose = function(props) {
22
+ return /*#__PURE__*/ _jsx(Icon, _object_spread_props(_object_spread({}, props), {
23
+ component: CustomRoundCloseSvg
24
+ }));
25
+ };
26
+ export default CustomRoundClose;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { CustomIconComponentProps } from "@ant-design/icons/lib/components/Icon";
3
+ declare const CustomSending: (props: Partial<CustomIconComponentProps>) => React.JSX.Element;
4
+ export default CustomSending;
@@ -0,0 +1,24 @@
1
+ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
2
+ import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
3
+ import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
4
+ import * as React from "react";
5
+ import Icon from "@ant-design/icons";
6
+ var CustomSendingSvg = function() {
7
+ return /*#__PURE__*/ _jsx("svg", {
8
+ width: "1em",
9
+ height: "1em",
10
+ "shape-rendering": "geometricPrecision",
11
+ fill: "currentColor",
12
+ viewBox: "0 0 20 21",
13
+ xmlns: "http://www.w3.org/2000/svg",
14
+ children: /*#__PURE__*/ _jsx("path", {
15
+ d: "M18.0403 2.308C17.7369 2.15628 17.4335 2.15628 17.2818 2.308L2.1114 9.89316C1.808 9.89316 1.65628 10.1966 1.65628 10.5C1.65628 10.8034 1.808 11.1068 1.9597 11.1068L5.60058 13.3824C5.904 13.5341 6.20741 13.5341 6.51081 13.2307L14.5511 5.94888L14.8545 6.10058L7.57273 13.8375C7.42103 13.9892 7.42103 14.1409 7.42103 14.2926V17.6301C7.42103 17.9335 7.57273 18.2369 7.87614 18.3886C8.17954 18.5403 8.48296 18.3886 8.63466 18.2369L10.4551 16.4164L14.096 18.8437C14.2477 18.9954 14.3994 18.9954 14.5511 18.9954H14.8545C15.1579 18.8437 15.3096 18.692 15.3096 18.3886L18.3437 3.21822C18.3437 2.7631 18.3437 2.4597 18.0403 2.308Z"
16
+ })
17
+ });
18
+ };
19
+ var CustomSending = function(props) {
20
+ return /*#__PURE__*/ _jsx(Icon, _object_spread_props(_object_spread({}, props), {
21
+ component: CustomSendingSvg
22
+ }));
23
+ };
24
+ export default CustomSending;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { CustomIconComponentProps } from "@ant-design/icons/lib/components/Icon";
3
+ declare const CustomSoundRecording: (props: Partial<CustomIconComponentProps>) => React.JSX.Element;
4
+ export default CustomSoundRecording;
@@ -0,0 +1,24 @@
1
+ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
2
+ import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
3
+ import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
4
+ import * as React from "react";
5
+ import Icon from "@ant-design/icons";
6
+ var CustomSoundRecordingSvg = function() {
7
+ return /*#__PURE__*/ _jsx("svg", {
8
+ width: "1em",
9
+ height: "1em",
10
+ viewBox: "0 0 13.33 19.56",
11
+ "shape-rendering": "geometricPrecision",
12
+ fill: "currentColor",
13
+ xmlns: "http://www.w3.org/2000/svg",
14
+ children: /*#__PURE__*/ _jsx("path", {
15
+ d: "M10.6 18V18.8H9.4V18H10.6ZM10.6 16.4V17.6H9.4V16.4H10.6ZM15.4 7.79995C15.4788 7.79995 15.5568 7.81547 15.6296 7.84562C15.7024 7.87578 15.7685 7.91997 15.8243 7.97569C15.88 8.0314 15.9242 8.09755 15.9543 8.17034C15.9845 8.24314 16 8.32116 16 8.39995C16 11.6104 13.636 14.258 10.6 14.5692V16H9.4V14.5696C6.364 14.2584 4 11.6108 4 8.39995C4 8.24082 4.06321 8.08821 4.17574 7.97569C4.28826 7.86316 4.44087 7.79995 4.6 7.79995C4.75913 7.79995 4.91174 7.86316 5.02426 7.97569C5.13679 8.08821 5.2 8.24082 5.2 8.39995C5.2 11.1664 7.354 13.4 10 13.4C12.646 13.4 14.8 11.1664 14.8 8.39995C14.8 8.24082 14.8632 8.08821 14.9757 7.97569C15.0883 7.86316 15.2409 7.79995 15.4 7.79995ZM10 1.19995C10.9548 1.19995 11.8705 1.57924 12.5456 2.25437C13.2207 2.9295 13.6 3.84517 13.6 4.79995V8.39995C13.6 9.35473 13.2207 10.2704 12.5456 10.9455C11.8705 11.6207 10.9548 12 10 12C9.04522 12 8.12955 11.6207 7.45442 10.9455C6.77928 10.2704 6.4 9.35473 6.4 8.39995V4.79995C6.4 3.84517 6.77928 2.9295 7.45442 2.25437C8.12955 1.57924 9.04522 1.19995 10 1.19995Z"
16
+ })
17
+ });
18
+ };
19
+ var CustomSoundRecording = function(props) {
20
+ return /*#__PURE__*/ _jsx(Icon, _object_spread_props(_object_spread({}, props), {
21
+ component: CustomSoundRecordingSvg
22
+ }));
23
+ };
24
+ export default CustomSoundRecording;
@@ -2,3 +2,18 @@ export { default as CustomClose } from "./custom-close";
2
2
  export { default as CustomXuanZuan } from "./custom-xuanzuan";
3
3
  export { default as CustomDownLoad } from "./custom-download";
4
4
  export { default as CustomArrow } from "./custom-arrow";
5
+ export { default as CustomRecord } from "./custom-record";
6
+ export { default as CustomFullScreen } from "./custom-full_screen";
7
+ export { default as CustomExitFullScreen } from "./custom-exit_full_screen";
8
+ export { default as CustomReloading } from "./custom-reloading";
9
+ export { default as CustomCopy } from "./custom-copy";
10
+ export { default as CustomLike } from "./custom-like";
11
+ export { default as CustomDislike } from "./custom-dislike";
12
+ export { default as CustomQuote } from "./custom-quote";
13
+ export { default as CustomSending } from "./custom-sending";
14
+ export { default as CustomSoundRecording } from "./custom-sound_recording";
15
+ export { default as CustomRetract } from "./custom-retract";
16
+ export { default as CustomContacts } from "./custom-contacts";
17
+ export { default as CustomDuihao } from "./custom-duihao";
18
+ export { default as CustomRoundClose } from "./custom-round_close";
19
+ export { default as CustomAiIcon } from "./custom-ai_icon";
@@ -2,3 +2,18 @@
2
2
  export { default as CustomXuanZuan } from "./custom-xuanzuan";
3
3
  export { default as CustomDownLoad } from "./custom-download";
4
4
  export { default as CustomArrow } from "./custom-arrow";
5
+ export { default as CustomRecord } from "./custom-record";
6
+ export { default as CustomFullScreen } from "./custom-full_screen";
7
+ export { default as CustomExitFullScreen } from "./custom-exit_full_screen";
8
+ export { default as CustomReloading } from "./custom-reloading";
9
+ export { default as CustomCopy } from "./custom-copy";
10
+ export { default as CustomLike } from "./custom-like";
11
+ export { default as CustomDislike } from "./custom-dislike";
12
+ export { default as CustomQuote } from "./custom-quote";
13
+ export { default as CustomSending } from "./custom-sending";
14
+ export { default as CustomSoundRecording } from "./custom-sound_recording";
15
+ export { default as CustomRetract } from "./custom-retract";
16
+ export { default as CustomContacts } from "./custom-contacts";
17
+ export { default as CustomDuihao } from "./custom-duihao";
18
+ export { default as CustomRoundClose } from "./custom-round_close";
19
+ export { default as CustomAiIcon } from "./custom-ai_icon";
package/esm/index.d.ts CHANGED
@@ -77,3 +77,4 @@ export { default as ViewImage } from "./viewImage";
77
77
  export { default as BhdTipModal } from "./bhdTipModal";
78
78
  export { default as BhdSelect } from './bhdSelect';
79
79
  export { default as BhdAppLayout } from './bhdAppLayout';
80
+ export { default as CustomerService } from './customerService';
package/esm/index.js CHANGED
@@ -82,3 +82,4 @@ export { default as ViewImage } from "./viewImage/index"; //查看大图
82
82
  export { default as BhdTipModal } from "./bhdTipModal/index"; //提示框
83
83
  export { default as BhdSelect } from "./bhdSelect/index"; //封装 bhdSelect
84
84
  export { default as BhdAppLayout } from "./bhdAppLayout/index"; //封装 BhdAppLayout
85
+ export { default as CustomerService } from "./customerService/index"; //封装 智能客服
@@ -15,8 +15,8 @@ var config = {
15
15
  fontSizeHeading2: 24,
16
16
  fontSizeHeading3: 20,
17
17
  fontSizeHeading4: 18,
18
- lineHeight: 1.5,
19
- lineHeightSM: 1.5,
18
+ // lineHeight: 1.5,
19
+ // lineHeightSM: 1.5,
20
20
  colorInfoActive: "#3D7DE8",
21
21
  colorInfoHover: "#7EAEFF",
22
22
  colorInfoBorderHover: "#7EAEFF",
@@ -27,7 +27,7 @@ var config = {
27
27
  colorTextQuaternary: "rgba(0, 0, 0, 0.25)",
28
28
  colorBorder: "rgba(0, 0, 0, 0.15)",
29
29
  colorBorderSecondary: "rgba(0, 0, 0, 0.05)",
30
- fontFamily: 'PingFang SC", "helvetica neue", "Source Han Sans CN","hiragino sans gb", "arial", "microsoft yahei ui","microsoft yahei", "simsun", "sans-serif'
30
+ fontFamily: '"PingFang SC", "helvetica neue", "Source Han Sans CN","hiragino sans gb", "arial", "microsoft yahei ui","microsoft yahei", "simsun", "sans-serif"'
31
31
  },
32
32
  components: {
33
33
  Button: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bhd-components",
3
- "version": "0.5.5",
3
+ "version": "0.5.7",
4
4
  "description": "组件功能描述",
5
5
  "files": [
6
6
  "esm",
@@ -33,6 +33,7 @@
33
33
  "scripts": {
34
34
  "start": "ice-pkg start",
35
35
  "build": "ice-pkg build",
36
+ "build:online":"cross-env NODE_TYPE=online ice-pkg build ",
36
37
  "prepublishOnly": "npm run build",
37
38
  "eslint": "eslint --cache --ext .js,.jsx,.ts,.tsx ./",
38
39
  "eslint:fix": "npm run eslint -- --fix",
@@ -48,11 +49,18 @@
48
49
  "@ant-design/cssinjs": "1.12.0",
49
50
  "@ant-design/icons": "5.0.1",
50
51
  "@ice/jsx-runtime": "^0.2.0",
52
+ "@microsoft/fetch-event-source": "^2.0.1",
53
+ "@rangermauve/fetch-event-source": "^1.0.3",
51
54
  "@swc/helpers": "^0.5.1",
52
55
  "antd": "5.6.1",
56
+ "axios": "^1.6.0",
57
+ "cross-env": "^7.0.3",
58
+ "dayjs": "^1.11.10",
59
+ "highlight.js": "^11.9.0",
53
60
  "less": "^4.1.3",
54
61
  "less-loader": "^11.1.0",
55
- "raw-loader": "^4.0.2"
62
+ "raw-loader": "^4.0.2",
63
+ "remarkable": "^2.0.1"
56
64
  },
57
65
  "devDependencies": {
58
66
  "@ice/pkg": "^1.0.0",