@miso.ai/client-sdk-core 1.8.0-beta.0 → 1.8.0-beta.11

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.
@@ -18,7 +18,7 @@ class MisoClient extends _commons.Component {
18
18
  if (window.MisoClient) {
19
19
  if (window.MisoClient !== MisoClient) {
20
20
  // TODO: check version as well
21
- console.warn(`Use already defined window.MisoClient (${window.MisoClient.version}).`);
21
+ console.warn(`window.MisoClient already exists: (${window.MisoClient.version}).`);
22
22
  }
23
23
  return;
24
24
  }
@@ -101,6 +101,7 @@ class PluginRoot extends _commons.Registry {
101
101
  }
102
102
  if (typeof instance.config === 'function') {
103
103
  instance.config(options);
104
+ this._events.emit('config', [instance, options]);
104
105
  } else {
105
106
  this._warn(`Attempt to pass options to plugin "${instance.id}", which offers no config() method.`);
106
107
  }
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = '1.8.0-beta.0';
7
+ var _default = '1.8.0-beta.11';
8
8
  exports.default = _default;
package/dist/es/client.js CHANGED
@@ -9,7 +9,7 @@ class MisoClient extends Component {
9
9
  if (window.MisoClient) {
10
10
  if (window.MisoClient !== MisoClient) {
11
11
  // TODO: check version as well
12
- console.warn(`Use already defined window.MisoClient (${window.MisoClient.version}).`);
12
+ console.warn(`window.MisoClient already exists: (${window.MisoClient.version}).`);
13
13
  }
14
14
  return;
15
15
  }
@@ -94,6 +94,7 @@ export default class PluginRoot extends Registry {
94
94
  }
95
95
  if (typeof instance.config === 'function') {
96
96
  instance.config(options);
97
+ this._events.emit('config', [instance, options]);
97
98
  } else {
98
99
  this._warn(`Attempt to pass options to plugin "${instance.id}", which offers no config() method.`);
99
100
  }
@@ -1 +1 @@
1
- export default '1.8.0-beta.0';
1
+ export default '1.8.0-beta.11';
package/package.json CHANGED
@@ -29,7 +29,7 @@
29
29
  "url": "https://github.com/MisoAI/miso-client-js-sdk/issues"
30
30
  },
31
31
  "dependencies": {
32
- "@miso.ai/commons": "1.8.0-beta.0"
32
+ "@miso.ai/commons": "1.8.0-beta.11"
33
33
  },
34
- "version": "1.8.0-beta.0"
34
+ "version": "1.8.0-beta.11"
35
35
  }