@miso.ai/client-sdk-ui 1.10.4-beta.0 → 1.11.0-beta.1

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.
@@ -100,7 +100,7 @@ class RadioLayout extends _template.default {
100
100
  (0, _commons.requestAnimationFrame)(() => this._syncValueAttribute());
101
101
  }
102
102
  _syncValueAttribute() {
103
- if (!this._state) {
103
+ if (!this._state || !this._view) {
104
104
  return;
105
105
  }
106
106
  const {
@@ -77,6 +77,9 @@ class TypewriterLayout extends _progressive.default {
77
77
  }
78
78
  async _setupForMarkdown() {
79
79
  const context = await this._view._views._extensions.require('markdown');
80
+ if (!this._view) {
81
+ return; // destroyed
82
+ }
80
83
  const cursorClass = (0, _utils.cursorClassName)(this.className);
81
84
  const {
82
85
  onDebug,
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = exports.default = '1.10.4-beta.0';
7
+ var _default = exports.default = '1.11.0-beta.1';
package/package.json CHANGED
@@ -26,7 +26,7 @@
26
26
  "url": "https://github.com/MisoAI/miso-client-js-sdk/issues"
27
27
  },
28
28
  "dependencies": {
29
- "@miso.ai/commons": "1.10.4-beta.0"
29
+ "@miso.ai/commons": "1.11.0-beta.1"
30
30
  },
31
- "version": "1.10.4-beta.0"
31
+ "version": "1.11.0-beta.1"
32
32
  }
@@ -86,7 +86,7 @@ export default class RadioLayout extends TemplateBasedLayout {
86
86
  }
87
87
 
88
88
  _syncValueAttribute() {
89
- if (!this._state) {
89
+ if (!this._state || !this._view) {
90
90
  return;
91
91
  }
92
92
  const { element } = this._view;
@@ -72,6 +72,9 @@ export default class TypewriterLayout extends ProgressiveLayout {
72
72
 
73
73
  async _setupForMarkdown() {
74
74
  const context = await this._view._views._extensions.require('markdown');
75
+ if (!this._view) {
76
+ return; // destroyed
77
+ }
75
78
  const cursorClass = cursorClassName(this.className);
76
79
  const { onDebug, onCitationLink } = this.options;
77
80
  // TODO: options
package/src/version.js CHANGED
@@ -1 +1 @@
1
- export default '1.10.4-beta.0';
1
+ export default '1.11.0-beta.1';