@digipair/skill-web-chatbot 0.38.2 → 0.38.4
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/index.cjs2.js +4 -16
- package/index.esm2.js +4 -16
- package/package.json +1 -1
package/index.cjs2.js
CHANGED
|
@@ -59199,7 +59199,7 @@ class ChatbotElement extends s$3 {
|
|
|
59199
59199
|
}
|
|
59200
59200
|
const data = JSON.parse(message.data);
|
|
59201
59201
|
if (data.type === 'step') {
|
|
59202
|
-
this.loadingStep =
|
|
59202
|
+
this.loadingStep = data.content;
|
|
59203
59203
|
}
|
|
59204
59204
|
if (data.type === 'message') {
|
|
59205
59205
|
this.pushMessage(data.content);
|
|
@@ -59208,14 +59208,8 @@ class ChatbotElement extends s$3 {
|
|
|
59208
59208
|
body: JSON.stringify({
|
|
59209
59209
|
userId: this.userId
|
|
59210
59210
|
}),
|
|
59211
|
-
async onopen (response) {
|
|
59212
|
-
console.log('open', response);
|
|
59213
|
-
},
|
|
59214
|
-
onclose () {
|
|
59215
|
-
console.log('close');
|
|
59216
|
-
},
|
|
59217
59211
|
onerror (err) {
|
|
59218
|
-
console.error('Error:', err);
|
|
59212
|
+
console.error('[Digipair] SSE Error:', err);
|
|
59219
59213
|
}
|
|
59220
59214
|
});
|
|
59221
59215
|
}
|
|
@@ -59706,7 +59700,7 @@ class DigipairFullElement extends s$3 {
|
|
|
59706
59700
|
}
|
|
59707
59701
|
const data = JSON.parse(message.data);
|
|
59708
59702
|
if (data.type === 'step') {
|
|
59709
|
-
this.loadingStep =
|
|
59703
|
+
this.loadingStep = data.content;
|
|
59710
59704
|
}
|
|
59711
59705
|
if (data.type === 'message') {
|
|
59712
59706
|
this.pushMessage(data.content);
|
|
@@ -59715,14 +59709,8 @@ class DigipairFullElement extends s$3 {
|
|
|
59715
59709
|
body: JSON.stringify({
|
|
59716
59710
|
userId: this.userId
|
|
59717
59711
|
}),
|
|
59718
|
-
async onopen (response) {
|
|
59719
|
-
console.log('open', response);
|
|
59720
|
-
},
|
|
59721
|
-
onclose () {
|
|
59722
|
-
console.log('close');
|
|
59723
|
-
},
|
|
59724
59712
|
onerror (err) {
|
|
59725
|
-
console.error('Error:', err);
|
|
59713
|
+
console.error('[Digipair] SSE Error:', err);
|
|
59726
59714
|
}
|
|
59727
59715
|
});
|
|
59728
59716
|
}
|
package/index.esm2.js
CHANGED
|
@@ -59179,7 +59179,7 @@ class ChatbotElement extends s$3 {
|
|
|
59179
59179
|
}
|
|
59180
59180
|
const data = JSON.parse(message.data);
|
|
59181
59181
|
if (data.type === 'step') {
|
|
59182
|
-
this.loadingStep =
|
|
59182
|
+
this.loadingStep = data.content;
|
|
59183
59183
|
}
|
|
59184
59184
|
if (data.type === 'message') {
|
|
59185
59185
|
this.pushMessage(data.content);
|
|
@@ -59188,14 +59188,8 @@ class ChatbotElement extends s$3 {
|
|
|
59188
59188
|
body: JSON.stringify({
|
|
59189
59189
|
userId: this.userId
|
|
59190
59190
|
}),
|
|
59191
|
-
async onopen (response) {
|
|
59192
|
-
console.log('open', response);
|
|
59193
|
-
},
|
|
59194
|
-
onclose () {
|
|
59195
|
-
console.log('close');
|
|
59196
|
-
},
|
|
59197
59191
|
onerror (err) {
|
|
59198
|
-
console.error('Error:', err);
|
|
59192
|
+
console.error('[Digipair] SSE Error:', err);
|
|
59199
59193
|
}
|
|
59200
59194
|
});
|
|
59201
59195
|
}
|
|
@@ -59686,7 +59680,7 @@ class DigipairFullElement extends s$3 {
|
|
|
59686
59680
|
}
|
|
59687
59681
|
const data = JSON.parse(message.data);
|
|
59688
59682
|
if (data.type === 'step') {
|
|
59689
|
-
this.loadingStep =
|
|
59683
|
+
this.loadingStep = data.content;
|
|
59690
59684
|
}
|
|
59691
59685
|
if (data.type === 'message') {
|
|
59692
59686
|
this.pushMessage(data.content);
|
|
@@ -59695,14 +59689,8 @@ class DigipairFullElement extends s$3 {
|
|
|
59695
59689
|
body: JSON.stringify({
|
|
59696
59690
|
userId: this.userId
|
|
59697
59691
|
}),
|
|
59698
|
-
async onopen (response) {
|
|
59699
|
-
console.log('open', response);
|
|
59700
|
-
},
|
|
59701
|
-
onclose () {
|
|
59702
|
-
console.log('close');
|
|
59703
|
-
},
|
|
59704
59692
|
onerror (err) {
|
|
59705
|
-
console.error('Error:', err);
|
|
59693
|
+
console.error('[Digipair] SSE Error:', err);
|
|
59706
59694
|
}
|
|
59707
59695
|
});
|
|
59708
59696
|
}
|