@miso.ai/client-sdk-ui 1.11.5-beta.4 → 1.11.5-beta.6

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.
@@ -28,11 +28,12 @@ class DataActor {
28
28
  return this._source;
29
29
  }
30
30
  _handleSession(session) {
31
- // protocol: inactive -> no reaction
31
+ // this is mandatory in any case
32
+ /*
32
33
  if (!this.active) {
33
34
  return;
34
35
  }
35
-
36
+ */
36
37
  // abort ongoing data fetch if any
37
38
  if (!this._session || session.index !== this._session.index) {
38
39
  // new session, abort preview data fetch if necessary
@@ -44,6 +45,7 @@ class DataActor {
44
45
  }
45
46
  this._session = session;
46
47
 
48
+ // TODO: move this to workflow
47
49
  // reflect session update
48
50
  this._emitResponse({
49
51
  session
@@ -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.11.5-beta.4';
7
+ var _default = exports.default = '1.11.5-beta.6';
@@ -20,17 +20,19 @@ function injectLogger(hub, callback) {
20
20
  trigger
21
21
  } = hub;
22
22
  hub.update = (name, state, options) => {
23
+ const result = update.call(hub, name, state, options);
23
24
  if (!options || !options.silent) {
24
25
  callback('update', name, state, options);
25
26
  }
26
- return update.call(hub, name, state, options);
27
+ return result;
27
28
  };
28
29
  hub.trigger = function () {
29
30
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
30
31
  args[_key] = arguments[_key];
31
32
  }
33
+ const result = trigger.apply(hub, args);
32
34
  callback('trigger', ...args);
33
- return trigger.apply(hub, args);
35
+ return result;
34
36
  };
35
37
  return hub;
36
38
  }
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.11.5-beta.4"
29
+ "@miso.ai/commons": "1.11.5-beta.6"
30
30
  },
31
- "version": "1.11.5-beta.4"
31
+ "version": "1.11.5-beta.6"
32
32
  }
package/src/actor/data.js CHANGED
@@ -22,11 +22,12 @@ export default class DataActor {
22
22
  }
23
23
 
24
24
  _handleSession(session) {
25
- // protocol: inactive -> no reaction
25
+ // this is mandatory in any case
26
+ /*
26
27
  if (!this.active) {
27
28
  return;
28
29
  }
29
-
30
+ */
30
31
  // abort ongoing data fetch if any
31
32
  if (!this._session || (session.index !== this._session.index)) {
32
33
  // new session, abort preview data fetch if necessary
@@ -38,6 +39,7 @@ export default class DataActor {
38
39
  }
39
40
  this._session = session;
40
41
 
42
+ // TODO: move this to workflow
41
43
  // reflect session update
42
44
  this._emitResponse({ session });
43
45
  }
package/src/version.js CHANGED
@@ -1 +1 @@
1
- export default '1.11.5-beta.4';
1
+ export default '1.11.5-beta.6';
@@ -10,14 +10,16 @@ import { getRevision, writeDataStatus, writeMisoIdToMeta, buildBaseInteraction,
10
10
  function injectLogger(hub, callback) {
11
11
  const { update, trigger } = hub;
12
12
  hub.update = (name, state, options) => {
13
+ const result = update.call(hub, name, state, options);
13
14
  if (!options || !options.silent) {
14
15
  callback('update', name, state, options);
15
16
  }
16
- return update.call(hub, name, state, options);
17
+ return result;
17
18
  }
18
19
  hub.trigger = (...args) => {
20
+ const result = trigger.apply(hub, args);
19
21
  callback('trigger', ...args);
20
- return trigger.apply(hub, args);
22
+ return result;
21
23
  }
22
24
  return hub;
23
25
  }