@difizen/libro-code-editor 0.1.13 → 0.1.14

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.
@@ -86,7 +86,7 @@ export var CodeEditorView = (_dec = transient(), _dec2 = view('code-editor-view'
86
86
  };
87
87
  _this.onViewUnmount = function () {
88
88
  var _this$editorHostRef;
89
- if (_this.editor.dispose) {
89
+ if (_this.editor) {
90
90
  _this.editor.dispose();
91
91
  }
92
92
  var node = (_this$editorHostRef = _this.editorHostRef) === null || _this$editorHostRef === void 0 ? void 0 : _this$editorHostRef.current;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@difizen/libro-code-editor",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "libro",
@@ -34,7 +34,7 @@
34
34
  "dependencies": {
35
35
  "@difizen/mana-app": "latest",
36
36
  "@difizen/mana-l10n": "latest",
37
- "@difizen/libro-common": "^0.1.13",
37
+ "@difizen/libro-common": "^0.1.14",
38
38
  "uuid": "^9.0.0"
39
39
  },
40
40
  "peerDependencies": {
@@ -148,7 +148,7 @@ export class CodeEditorView extends BaseView {
148
148
  };
149
149
 
150
150
  override onViewUnmount = () => {
151
- if (this.editor.dispose) {
151
+ if (this.editor) {
152
152
  this.editor.dispose();
153
153
  }
154
154