hoeditor-web 3.0.8 → 3.0.9

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.
@@ -226891,7 +226891,7 @@ var SignNode = __webpack_require__(24701);
226891
226891
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
226892
226892
  var ParagraphNode = __webpack_require__(67945);
226893
226893
  ;// CONCATENATED MODULE: ./src/components/version.ts
226894
- /* harmony default export */ var version = ('3.0.8');
226894
+ /* harmony default export */ var version = ('3.0.9');
226895
226895
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
226896
226896
  var PoperTipText = __webpack_require__(15845);
226897
226897
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -252224,10 +252224,10 @@ var popper = __webpack_require__(95551);
252224
252224
  }).then(function (permissionStatus) {
252225
252225
  // permissionStatus.state 的值是 'granted'、'denied'、'prompt':
252226
252226
  if (permissionStatus.state === 'denied') {
252227
- var _chrome, _chrome$webview, _chrome2, _chrome2$webview;
252228
- (_chrome = chrome) === null || _chrome === void 0 ? void 0 : (_chrome$webview = _chrome.webview) === null || _chrome$webview === void 0 ? void 0 : _chrome$webview.addEventListener('message', _this.getMessage);
252227
+ var _window$top, _window$top$chrome, _window$top$chrome$we, _chrome, _chrome$webview;
252228
+ (_window$top = window.top) === null || _window$top === void 0 ? void 0 : (_window$top$chrome = _window$top.chrome) === null || _window$top$chrome === void 0 ? void 0 : (_window$top$chrome$we = _window$top$chrome.webview) === null || _window$top$chrome$we === void 0 ? void 0 : _window$top$chrome$we.addEventListener('message', _this.getMessage);
252229
252229
  _this.postMessage();
252230
- if ((_chrome2 = chrome) !== null && _chrome2 !== void 0 && (_chrome2$webview = _chrome2.webview) !== null && _chrome2$webview !== void 0 && _chrome2$webview.postMessage) {
252230
+ if ((_chrome = chrome) !== null && _chrome !== void 0 && (_chrome$webview = _chrome.webview) !== null && _chrome$webview !== void 0 && _chrome$webview.postMessage) {
252231
252231
  _this.isWebview = true;
252232
252232
  } else {
252233
252233
  console.warn('当前浏览器不支持,请用 ctrl+ v 粘贴');
@@ -252262,8 +252262,8 @@ var popper = __webpack_require__(95551);
252262
252262
  },
252263
252263
  methods: {
252264
252264
  postMessage: function postMessage() {
252265
- var _chrome3, _chrome3$webview;
252266
- (_chrome3 = chrome) === null || _chrome3 === void 0 ? void 0 : (_chrome3$webview = _chrome3.webview) === null || _chrome3$webview === void 0 ? void 0 : _chrome3$webview.postMessage({
252265
+ var _window$top2, _window$top2$chrome, _window$top2$chrome$w;
252266
+ (_window$top2 = window.top) === null || _window$top2 === void 0 ? void 0 : (_window$top2$chrome = _window$top2.chrome) === null || _window$top2$chrome === void 0 ? void 0 : (_window$top2$chrome$w = _window$top2$chrome.webview) === null || _window$top2$chrome$w === void 0 ? void 0 : _window$top2$chrome$w.postMessage({
252267
252267
  exec: 'clipboard',
252268
252268
  data: ''
252269
252269
  });
@@ -252347,11 +252347,11 @@ var popper = __webpack_require__(95551);
252347
252347
  this.handleClose();
252348
252348
  },
252349
252349
  handleClose: function handleClose() {
252350
- var _window,
252351
- _window$chrome,
252352
- _window$chrome$webvie,
252350
+ var _window$top3,
252351
+ _window$top3$chrome,
252352
+ _window$top3$chrome$w,
252353
252353
  _this2 = this;
252354
- (_window = window) === null || _window === void 0 ? void 0 : (_window$chrome = _window.chrome) === null || _window$chrome === void 0 ? void 0 : (_window$chrome$webvie = _window$chrome.webview) === null || _window$chrome$webvie === void 0 ? void 0 : _window$chrome$webvie.removeEventListener('message', this.getMessage);
252354
+ (_window$top3 = window.top) === null || _window$top3 === void 0 ? void 0 : (_window$top3$chrome = _window$top3.chrome) === null || _window$top3$chrome === void 0 ? void 0 : (_window$top3$chrome$w = _window$top3$chrome.webview) === null || _window$top3$chrome$w === void 0 ? void 0 : _window$top3$chrome$w.removeEventListener('message', this.getMessage);
252355
252355
  this.$nextTick(function () {
252356
252356
  return _this2.$emit('closeRight');
252357
252357
  });