@lvce-editor/renderer-process 21.11.0 → 21.12.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.
@@ -116,8 +116,8 @@ const execCopy = async () => {
116
116
  await writeText(text);
117
117
  };
118
118
 
119
- const prompt$1 = message => {
120
- return confirm(message);
119
+ const confirm = message => {
120
+ return window.confirm(message);
121
121
  };
122
122
 
123
123
  const state$9 = {
@@ -660,6 +660,9 @@ const renderDomElement = (element, eventMap, newEventMap) => {
660
660
  };
661
661
  const renderReferenceNode = element => {
662
662
  const instance = get$1$1(element.uid);
663
+ if (!instance || !instance.state) {
664
+ return document.createTextNode('Reference node not found');
665
+ }
663
666
  const $Node = instance.state.$Viewlet;
664
667
  return $Node;
665
668
  };
@@ -9810,7 +9813,7 @@ const commandMap = {
9810
9813
  'ClipBoard.write': write$1,
9811
9814
  'ClipBoard.writeImage': writeImage,
9812
9815
  'ClipBoard.writeText': writeText,
9813
- 'ConfirmPrompt.prompt': prompt$1,
9816
+ 'ConfirmPrompt.prompt': confirm,
9814
9817
  'Css.addCssStyleSheet': addCssStyleSheet,
9815
9818
  'Css.getSelectionText': getSelectionText,
9816
9819
  'Developer.showState': showState,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "21.11.0",
3
+ "version": "21.12.0",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"