@miso.ai/client-sdk-ui 1.9.0-beta.3 → 1.9.0-beta.5
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.
- package/dist/cjs/combo/ask/index.js +5 -7
- package/dist/cjs/version.js +1 -1
- package/package.json +2 -2
- package/src/combo/ask/index.js +6 -5
- package/src/version.js +1 -1
|
@@ -42,6 +42,9 @@ class AskCombo extends _base.default {
|
|
|
42
42
|
return this._elements;
|
|
43
43
|
}
|
|
44
44
|
async _start() {
|
|
45
|
+
await (0, _commons.waitForDomContentLoaded)();
|
|
46
|
+
await this.MisoClient.cmdDone;
|
|
47
|
+
|
|
45
48
|
// setup MisoClient
|
|
46
49
|
await this._setupMisoClient();
|
|
47
50
|
|
|
@@ -49,7 +52,7 @@ class AskCombo extends _base.default {
|
|
|
49
52
|
this._renderRootContent();
|
|
50
53
|
|
|
51
54
|
// create client instance
|
|
52
|
-
|
|
55
|
+
this._createClientInstance();
|
|
53
56
|
|
|
54
57
|
// setup workflows
|
|
55
58
|
this._setupWorkflows();
|
|
@@ -94,12 +97,7 @@ class AskCombo extends _base.default {
|
|
|
94
97
|
this._elements = new _elements.default(element);
|
|
95
98
|
}
|
|
96
99
|
async _createClientInstance() {
|
|
97
|
-
|
|
98
|
-
MisoClient,
|
|
99
|
-
resolvedOptions: options
|
|
100
|
-
} = this;
|
|
101
|
-
await MisoClient.cmdDone;
|
|
102
|
-
this._client = new MisoClient(options);
|
|
100
|
+
this._client = new MisoClient(this.resolvedOptions);
|
|
103
101
|
}
|
|
104
102
|
async _setupWorkflows() {
|
|
105
103
|
const {
|
package/dist/cjs/version.js
CHANGED
package/package.json
CHANGED
package/src/combo/ask/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineValues } from '@miso.ai/commons';
|
|
1
|
+
import { defineValues, waitForDomContentLoaded } from '@miso.ai/commons';
|
|
2
2
|
import { fields } from '../../actor/index.js';
|
|
3
3
|
import { ROLE } from '../../constants.js';
|
|
4
4
|
import Combo from '../base.js';
|
|
@@ -41,6 +41,9 @@ export default class AskCombo extends Combo {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
async _start() {
|
|
44
|
+
await waitForDomContentLoaded();
|
|
45
|
+
await this.MisoClient.cmdDone;
|
|
46
|
+
|
|
44
47
|
// setup MisoClient
|
|
45
48
|
await this._setupMisoClient();
|
|
46
49
|
|
|
@@ -48,7 +51,7 @@ export default class AskCombo extends Combo {
|
|
|
48
51
|
this._renderRootContent();
|
|
49
52
|
|
|
50
53
|
// create client instance
|
|
51
|
-
|
|
54
|
+
this._createClientInstance();
|
|
52
55
|
|
|
53
56
|
// setup workflows
|
|
54
57
|
this._setupWorkflows();
|
|
@@ -87,9 +90,7 @@ export default class AskCombo extends Combo {
|
|
|
87
90
|
}
|
|
88
91
|
|
|
89
92
|
async _createClientInstance() {
|
|
90
|
-
|
|
91
|
-
await MisoClient.cmdDone;
|
|
92
|
-
this._client = new MisoClient(options);
|
|
93
|
+
this._client = new MisoClient(this.resolvedOptions);
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
async _setupWorkflows() {
|
package/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.9.0-beta.
|
|
1
|
+
export default '1.9.0-beta.5';
|