bhd-components 0.10.33 → 0.10.35

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.
@@ -29,14 +29,13 @@ import { Remarkable } from "remarkable";
29
29
  import hljs from "highlight.js";
30
30
  import "highlight.js/styles/github.css";
31
31
  import mermaid from "mermaid";
32
- import ViewMemaid from "./viewMemaid";
33
32
  import { render } from "react-dom";
34
33
  import Provider from "../provider";
35
34
  var TextArea = Input.TextArea;
36
35
  // import './html2canvas.test.js';
37
36
  import knowledge_icon from "./images/knowledge_icon.png";
38
37
  // import { useMediaRecorder } from "./useMediaRecorder"; //录音使用文件
39
- import { readMessage, getByteLen, serverUrl, copyText, getDataTime, getQuery, resetStyles, findParent, delegate, urlToBase64, toHashString } from "./function"; //一些方法
38
+ import { readMessage, getByteLen, serverUrl, copyText, getDataTime, getQuery, resetStyles, findParent, delegate, urlToBase64, toHashString, removeMermaidBlockComments, handleRenderSyntaxBlock } from "./function"; //一些方法
40
39
  // import html2canvas from "html2canvas";
41
40
  // const screenShot = require('./screenShotPlugin.esm')
42
41
  import ScreenShot from "./js-screen-shot/main";
@@ -64,8 +63,13 @@ mermaid.initialize({
64
63
  theme: "default",
65
64
  securityLevel: "loose",
66
65
  flowchart: {
66
+ useMaxWidth: true,
67
67
  htmlLabels: true,
68
68
  curve: "basis"
69
+ },
70
+ pie: {
71
+ useMaxWidth: true,
72
+ useWidth: 360
69
73
  }
70
74
  });
71
75
  var CustomerService = function(props) {
@@ -140,9 +144,9 @@ var CustomerService = function(props) {
140
144
  html: true,
141
145
  highlight: function highlight(str, lang) {
142
146
  // 特殊处理 mermaid 代码块
143
- if (lang === "mermaid") {
144
- return str; // 不高亮 mermaid 代码
145
- }
147
+ // if (lang === 'mermaid') {
148
+ // return str; // 不高亮 mermaid 代码
149
+ // }
146
150
  if (lang && hljs.getLanguage(lang)) {
147
151
  try {
148
152
  return hljs.highlight(lang, str).value;
@@ -156,10 +160,18 @@ var CustomerService = function(props) {
156
160
  });
157
161
  // 添加自定义规则来处理 mermaid 代码块
158
162
  remarkable.renderer.rules.fence_custom = {
159
- mermaid: function mermaid(tokens, idx) {
163
+ mermaid: function mermaid1(tokens, idx) {
160
164
  var token = tokens[idx];
161
- var id = "mermaid_" + toHashString(token.content);
162
- return '<span class="'.concat(styles.maskZoomBox, '"><pre class="').concat(styles.mermaid, '" id="').concat(id, '">').concat(token.content, '</pre><span class="').concat(styles.zoomBox, '" onclick="openViewMemaid(\'').concat(id, '\')"><svg viewBox="64 64 896 896" focusable="false" data-icon="zoom-in" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"></path></svg></span></span>');
165
+ try {
166
+ if (mermaid.parse(token.content)) {
167
+ var id = "mermaid_" + toHashString(token.content);
168
+ return '<span class="'.concat(styles.maskZoomBox, '"><pre class="').concat(styles.mermaid, '" id="').concat(id, '">').concat(token.content, '</pre><span class="').concat(styles.zoomBox, '" onclick="openViewMemaid(\'').concat(id, '\')"><svg viewBox="64 64 896 896" focusable="false" data-icon="zoom-in" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"></path></svg></span></span>');
169
+ } else {
170
+ return '<pre><code class="language-mermaid">'.concat(token.content, "</code></pre>");
171
+ }
172
+ } catch (error) {
173
+ return '<pre><code class="language-mermaid">'.concat(token.content, "</code></pre>");
174
+ }
163
175
  }
164
176
  };
165
177
  remarkable.renderer.rules.image = function(tokens, idx) {
@@ -187,10 +199,18 @@ var CustomerService = function(props) {
187
199
  };
188
200
  // 添加自定义规则来处理 mermaid 代码块
189
201
  newRemarkable.renderer.rules.fence_custom = {
190
- mermaid: function mermaid(tokens, idx) {
202
+ mermaid: function mermaid1(tokens, idx) {
191
203
  var token = tokens[idx];
192
- var id = "mermaid_" + toHashString(token.content);
193
- return '<span class="'.concat(styles.maskZoomBox, '"><pre class="').concat(styles.mermaid, '" id="').concat(id, '">').concat(token.content, '</pre><span class="').concat(styles.zoomBox, '" onclick="openViewMemaid(\'').concat(id, '\')"><svg viewBox="64 64 896 896" focusable="false" data-icon="zoom-in" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"></path></svg></span></span>');
204
+ try {
205
+ if (mermaid.parse(token.content)) {
206
+ var id = "mermaid_" + toHashString(token.content);
207
+ return '<span class="'.concat(styles.maskZoomBox, '"><pre class="').concat(styles.mermaid, '" id="').concat(id, '">').concat(token.content, '</pre><span class="').concat(styles.zoomBox, '" onclick="openViewMemaid(\'').concat(id, '\')"><svg viewBox="64 64 896 896" focusable="false" data-icon="zoom-in" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"></path></svg></span></span>');
208
+ } else {
209
+ return '<pre><code class="language-mermaid">'.concat(token.content, "</code></pre>");
210
+ }
211
+ } catch (error) {
212
+ return '<pre><code class="language-mermaid">'.concat(token.content, "</code></pre>");
213
+ }
194
214
  }
195
215
  };
196
216
  remarkable.renderer.rules.image = function(tokens, idx) {
@@ -405,38 +425,44 @@ var CustomerService = function(props) {
405
425
  setVisible(true);
406
426
  };
407
427
  var openViewMemaid = function openViewMemaid(id) {
408
- var _document_querySelector, _svgDomClone;
409
- console.log("openViewMemaid");
410
- var svgDomClone = (_document_querySelector = document.querySelector("#".concat(id, " svg"))) === null || _document_querySelector === void 0 ? void 0 : _document_querySelector.cloneNode(true);
411
- if (!svgDomClone) {
412
- return;
428
+ try {
429
+ var _document_querySelector, _svgDomClone;
430
+ console.log("openViewMemaid");
431
+ var svgDomClone = (_document_querySelector = document.querySelector("#".concat(id, " svg"))) === null || _document_querySelector === void 0 ? void 0 : _document_querySelector.cloneNode(true);
432
+ if (!svgDomClone) {
433
+ return;
434
+ }
435
+ svgDomClone.style.backgroundColor = "#fafafa";
436
+ svgDomClone.style.width = "auto";
437
+ svgDomClone.style.height = "auto";
438
+ var viewBox = svgDomClone.getAttribute("viewBox");
439
+ var _ref = _sliced_to_array(viewBox ? viewBox.split(" ").map(Number) : [
440
+ 0,
441
+ 0,
442
+ 0,
443
+ 0
444
+ ], 4), x = _ref[0], y = _ref[1], width = _ref[2], height = _ref[3];
445
+ x -= 10;
446
+ y -= 10;
447
+ width += 20;
448
+ height += 20;
449
+ svgDomClone.setAttribute("viewBox", "".concat(x, " ").concat(y, " ").concat(width, " ").concat(height));
450
+ var svgString = ((_svgDomClone = svgDomClone) === null || _svgDomClone === void 0 ? void 0 : _svgDomClone.outerHTML.toString()) || "";
451
+ var blob = new Blob([
452
+ svgString
453
+ ], {
454
+ type: "image/svg+xml;charset=utf-8"
455
+ });
456
+ console.log("blob", blob);
457
+ var blobUrl = URL.createObjectURL(blob);
458
+ console.log("blobUrl", blobUrl);
459
+ setViewBase64(blobUrl);
460
+ setVisible(true);
461
+ // setMemaidContent(id);
462
+ // setShowMemaid(true);
463
+ } catch (error) {
464
+ console.log("error", error);
413
465
  }
414
- svgDomClone.style.backgroundColor = "#fafafa";
415
- svgDomClone.style.width = "auto";
416
- svgDomClone.style.height = "auto";
417
- var viewBox = svgDomClone.getAttribute("viewBox");
418
- var _ref = _sliced_to_array(viewBox ? viewBox.split(" ").map(Number) : [
419
- 0,
420
- 0,
421
- 0,
422
- 0
423
- ], 4), x = _ref[0], y = _ref[1], width = _ref[2], height = _ref[3];
424
- x -= 10;
425
- y -= 10;
426
- width += 20;
427
- height += 20;
428
- svgDomClone.setAttribute("viewBox", "".concat(x, " ").concat(y, " ").concat(width, " ").concat(height));
429
- var svgString = ((_svgDomClone = svgDomClone) === null || _svgDomClone === void 0 ? void 0 : _svgDomClone.outerHTML.toString()) || "";
430
- var blob = new Blob([
431
- svgString
432
- ], {
433
- type: "image/svg+xml;charset=utf-8"
434
- });
435
- var blobUrl = URL.createObjectURL(blob);
436
- setViewBase64(blobUrl);
437
- setVisible(true);
438
- // setMemaidContent(id);
439
- // setShowMemaid(true);
440
466
  };
441
467
  //|| showScreenshot
442
468
  if (showType == 5 || showScreenshot) {
@@ -473,13 +499,7 @@ var CustomerService = function(props) {
473
499
  ]);
474
500
  useEffect(function() {
475
501
  historyMessageListRef.current = historyMessageList;
476
- var timer = setTimeout(function() {
477
- mermaid.init({
478
- querySelector: ".".concat(styles.mermaid, ':not([data-processed="true"])'),
479
- suppressErrors: true
480
- }, ".".concat(styles.mermaid, ':not([data-processed="true"])'));
481
- clearTimeout(timer);
482
- }, 500);
502
+ renderMermaid(500);
483
503
  }, [
484
504
  historyMessageList
485
505
  ]);
@@ -616,6 +636,7 @@ var CustomerService = function(props) {
616
636
  if (!message) return;
617
637
  var codeConment = "";
618
638
  var i = 0;
639
+ message = removeMermaidBlockComments(message);
619
640
  message.replaceAll(new RegExp(/```(?:.|\n)*?```/, "ig"), function(con) {
620
641
  i++;
621
642
  if (i == position) {
@@ -1514,6 +1535,10 @@ var CustomerService = function(props) {
1514
1535
  //发送结束
1515
1536
  finishedRef.current = true;
1516
1537
  setFinished(true);
1538
+ renderMermaid();
1539
+ setTimeout(function() {
1540
+ scrollToBottom();
1541
+ }, 500);
1517
1542
  }
1518
1543
  };
1519
1544
  //问题记录到实验报告中
@@ -2367,6 +2392,16 @@ var CustomerService = function(props) {
2367
2392
  // setRoomId(id);
2368
2393
  // }
2369
2394
  };
2395
+ var renderMermaid = function() {
2396
+ var duration = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 100;
2397
+ var t = setTimeout(function() {
2398
+ mermaid.init({
2399
+ querySelector: ".".concat(styles.mermaid, ':not([data-processed="true"])'),
2400
+ suppressErrors: true
2401
+ }, ".".concat(styles.mermaid, ':not([data-processed="true"])'));
2402
+ clearTimeout(t);
2403
+ }, duration);
2404
+ };
2370
2405
  //渲染问答
2371
2406
  var renderQuestion = function() {
2372
2407
  var itemContent = function itemContent(index, item) {
@@ -2411,6 +2446,8 @@ var CustomerService = function(props) {
2411
2446
  // let code = message.split("```");
2412
2447
  // code = code[1];
2413
2448
  // console.log(code,888888888);
2449
+ message = removeMermaidBlockComments(message);
2450
+ message = handleRenderSyntaxBlock(message, finishedRef.current || i != historyMessageList.length - 1);
2414
2451
  if (lastId == item.id && keyWordProblem != "") {
2415
2452
  //点击历史记录时,找到关键字,防止关键字和标签名重复
2416
2453
  // let key_sign = 'sign_'+new Date().getTime();+'sign';
@@ -2431,13 +2468,6 @@ var CustomerService = function(props) {
2431
2468
  var text = "<p class='".concat(styles.copyCode, " copyCodeFun' data-id=").concat(item.id, " data-position=").concat(position, ">\n <span class='").concat(styles.icon, ' copy\' >\n <svg\n width="1em"\n height="1em"\n viewBox="0 0 14 14"\n shape-rendering="geometricPrecision"\n fill="currentColor"\n xmlns="http://www.w3.org/2000/svg"\n >\n <g clip-path="url(#clip0_518_8403)">\n <path\n d="M6.16666 1.66666H13.1667C13.4761 1.66666 13.7728 1.78957 13.9916 2.00837C14.2104 2.22716 14.3333 2.5239 14.3333 2.83332V9.83332C14.3333 10.1427 14.2104 10.4395 13.9916 10.6583C13.7728 10.8771 13.4761 11 13.1667 11H6.16666C5.85724 11 5.5605 10.8771 5.34171 10.6583C5.12291 10.4395 5 10.1427 5 9.83332V2.83332C5 2.5239 5.12291 2.22716 5.34171 2.00837C5.5605 1.78957 5.85724 1.66666 6.16666 1.66666ZM6.16666 2.66666C6.12246 2.66666 6.08007 2.68422 6.04881 2.71547C6.01756 2.74673 6 2.78912 6 2.83332V9.83332C6 9.85521 6.00431 9.87688 6.01268 9.8971C6.02106 9.91732 6.03334 9.9357 6.04881 9.95117C6.06429 9.96665 6.08266 9.97893 6.10288 9.9873C6.1231 9.99568 6.14478 9.99999 6.16666 9.99999H13.1667C13.2109 9.99999 13.2533 9.98243 13.2845 9.95117C13.3158 9.91992 13.3333 9.87753 13.3333 9.83332V2.83332C13.3333 2.78912 13.3158 2.74673 13.2845 2.71547C13.2533 2.68422 13.2109 2.66666 13.1667 2.66666H6.16666ZM10 12C10 11.8674 10.0527 11.7402 10.1464 11.6464C10.2402 11.5527 10.3674 11.5 10.5 11.5C10.6326 11.5 10.7598 11.5527 10.8536 11.6464C10.9473 11.7402 11 11.8674 11 12V13.1667C11 13.4761 10.8771 13.7728 10.6583 13.9916C10.4395 14.2104 10.1427 14.3333 9.83333 14.3333H2.83333C2.52391 14.3333 2.22717 14.2104 2.00837 13.9916C1.78958 13.7728 1.66666 13.4761 1.66666 13.1667V6.16666C1.66666 5.85724 1.78958 5.56049 2.00837 5.3417C2.22717 5.12291 2.52391 4.99999 2.83333 4.99999H4C4.13261 4.99999 4.25978 5.05267 4.35355 5.14644C4.44732 5.2402 4.5 5.36738 4.5 5.49999C4.5 5.6326 4.44732 5.75978 4.35355 5.85354C4.25978 5.94731 4.13261 5.99999 4 5.99999H2.83333C2.78913 5.99999 2.74674 6.01755 2.71548 6.04881C2.68422 6.08006 2.66666 6.12245 2.66666 6.16666V13.1667C2.66666 13.2109 2.68422 13.2533 2.71548 13.2845C2.74674 13.3158 2.78913 13.3333 2.83333 13.3333H9.83333C9.87753 13.3333 9.91993 13.3158 9.95118 13.2845C9.98244 13.2533 10 13.2109 10 13.1667V12Z"\n />\n </g>\n <defs>\n <clipPath id="clip0_518_8403">\n <rect width="16" height="16" />\n </clipPath>\n </defs>\n </svg>\n </span>\n <span class=\'').concat(styles.icon, ' copy_success_flag\'>\n <svg\n width="1em"\n height="1em"\n shape-rendering="geometricPrecision"\n fill="currentColor"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path d="M11.2242 0.375687C11.4586 0.610002 11.4586 0.989901 11.2242 1.22422L4.82424 7.62422C4.58992 7.85853 4.21003 7.85853 3.97571 7.62422L0.775712 4.42422C0.541397 4.1899 0.541397 3.81 0.775712 3.57569C1.01003 3.34137 1.38993 3.34137 1.62424 3.57569L4.39998 6.35142L10.3757 0.375687C10.61 0.141373 10.9899 0.141373 11.2242 0.375687Z" />\n </svg>\n </span><span class="copyCode">复制代码</span></p><pre');
2432
2469
  return text;
2433
2470
  });
2434
- // message = message.replaceAll(
2435
- // new RegExp(`<img`, "ig"),
2436
- // (i: any, index: any) => {
2437
- // let text = `<div class='${styles.a}'><img`;
2438
- // return text;
2439
- // }
2440
- // );
2441
2471
  if (item.sender == mid) {
2442
2472
  //只有引用和复制功能
2443
2473
  li = /*#__PURE__*/ _jsxs(_Fragment, {
@@ -2864,13 +2894,7 @@ var CustomerService = function(props) {
2864
2894
  },
2865
2895
  initialItemCount: 10,
2866
2896
  itemsRendered: function() {
2867
- var t = setTimeout(function() {
2868
- mermaid.init({
2869
- querySelector: ".".concat(styles.mermaid, ':not([data-processed="true"])'),
2870
- suppressErrors: true
2871
- }, ".".concat(styles.mermaid, ':not([data-processed="true"])'));
2872
- clearTimeout(t);
2873
- }, 100);
2897
+ renderMermaid();
2874
2898
  },
2875
2899
  // startReached={(index) => {
2876
2900
  // console.log('atTopStateChange-startReached',index,lastIdRef.current)
@@ -2944,7 +2968,7 @@ var CustomerService = function(props) {
2944
2968
  },
2945
2969
  // context={{ loading }}
2946
2970
  firstItemIndex: firstItemIndex,
2947
- logLevel: 0,
2971
+ // logLevel={0}
2948
2972
  overscan: {
2949
2973
  main: 1000,
2950
2974
  reverse: 1000
@@ -4362,14 +4386,6 @@ var CustomerService = function(props) {
4362
4386
  resolve(viewBase64);
4363
4387
  });
4364
4388
  }
4365
- }),
4366
- showMemaid && memaidContent && /*#__PURE__*/ _jsx(ViewMemaid, {
4367
- visible: showMemaid,
4368
- onCancel: function() {
4369
- return setShowMemaid(false);
4370
- },
4371
- className: "",
4372
- content: memaidContent
4373
4389
  })
4374
4390
  ]
4375
4391
  });
@@ -503,7 +503,6 @@
503
503
  margin-bottom: 8px;
504
504
  border-radius: 0 0 4px 4px;
505
505
  &.mermaid{
506
- text-align: center;
507
506
  border-top: 1px solid rgba(0, 0, 0, 0.06);
508
507
  border-radius: 4px;
509
508
  margin: 0;
@@ -524,6 +523,8 @@
524
523
  display: inline-block;
525
524
  max-width: 100%;
526
525
  padding: 0 !important;
526
+ margin-top: 8px;
527
+ margin-bottom: 8px;
527
528
  >img{
528
529
  max-width: 100%;
529
530
  }
@@ -496,7 +496,6 @@
496
496
  margin-bottom: 8px;
497
497
  border-radius: 0 0 4px 4px;
498
498
  &.mermaid{
499
- text-align: center;
500
499
  border-top: 1px solid rgba(0, 0, 0, 0.06);
501
500
  border-radius: 4px;
502
501
  margin:0;
@@ -518,6 +517,8 @@
518
517
  display: inline-block;
519
518
  max-width: 100%;
520
519
  padding: 0 !important;
520
+ margin-top: 8px;
521
+ margin-bottom: 8px;
521
522
  >img{
522
523
  max-width: 100%;
523
524
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bhd-components",
3
- "version": "0.10.33",
3
+ "version": "0.10.35",
4
4
  "description": "组件功能描述",
5
5
  "config": {
6
6
  "commitizen": {
@@ -42,8 +42,7 @@
42
42
  "scripts": {
43
43
  "start:large-memory": "node --max-old-space-size=8192 node_modules/.bin/ice-pkg start",
44
44
  "start": "ice-pkg start",
45
- "build:1": "ice-pkg build",
46
- "build":"node --max-old-space-size=8192 node_modules/.bin/ice-pkg build",
45
+ "build": "node --max-old-space-size=8192 node_modules/.bin/ice-pkg build",
47
46
  "build:esm": "cross-env NODE_TYPE=esm ice-pkg build",
48
47
  "build:online": "cross-env NODE_TYPE=online ice-pkg build ",
49
48
  "build:online_dev": "cross-env NODE_TYPE=online_dev ice-pkg build ",