obi-sdk 0.13.2 → 0.13.3
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/modular/chunks/index-dcd6962d.js +6 -0
- package/dist/modular/chunks/index-dcd6962d.js.map +1 -0
- package/dist/modular/chunks/{obi-widget-d8354869.js → obi-widget-222a1e0d.js} +36 -51
- package/dist/modular/chunks/{obi-widget-d8354869.js.map → obi-widget-222a1e0d.js.map} +1 -1
- package/dist/modular/index.js +1 -1
- package/dist/modular/ui.js +10 -10
- package/dist/obi-sdk.standalone.iife.js +33 -36
- package/dist/obi-sdk.standalone.iife.js.map +1 -1
- package/dist/react.es.js +272 -281
- package/dist/react.es.js.map +1 -1
- package/dist/react.umd.js +87 -90
- package/dist/react.umd.js.map +1 -1
- package/dist/ui/components/obi-widget/obi-widget.d.ts +0 -1
- package/package.json +3 -3
- package/dist/modular/chunks/index-a668ac46.js +0 -6
- package/dist/modular/chunks/index-a668ac46.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-dcd6962d.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -20959,7 +20959,6 @@ class ObiWidget extends i$1 {
|
|
|
20959
20959
|
};
|
|
20960
20960
|
this.databaseConfig = null;
|
|
20961
20961
|
this.configLoaded = false;
|
|
20962
|
-
this.configAllInCode = false;
|
|
20963
20962
|
this.primaryColor = "#9500FF";
|
|
20964
20963
|
this.sessionToken = null;
|
|
20965
20964
|
this.roomToken = null;
|
|
@@ -21189,7 +21188,9 @@ class ObiWidget extends i$1 {
|
|
|
21189
21188
|
}
|
|
21190
21189
|
if (!this.selectedCourse.id) {
|
|
21191
21190
|
const error = "Session ID is missing.";
|
|
21192
|
-
console.error("[SessionStartModal] Validation failed:", error, {
|
|
21191
|
+
console.error("[SessionStartModal] Validation failed:", error, {
|
|
21192
|
+
session: this.selectedCourse
|
|
21193
|
+
});
|
|
21193
21194
|
captureException(error, {
|
|
21194
21195
|
componentName: "SessionStartModal",
|
|
21195
21196
|
handlerName: "handleSessionModalStart",
|
|
@@ -21411,17 +21412,7 @@ class ObiWidget extends i$1 {
|
|
|
21411
21412
|
if (window.obiWidgetConfig.urlBlacklist !== void 0) {
|
|
21412
21413
|
this.urlBlacklist = window.obiWidgetConfig.urlBlacklist;
|
|
21413
21414
|
}
|
|
21414
|
-
|
|
21415
|
-
const hasPrimaryColor = window.obiWidgetConfig.primaryColor !== void 0;
|
|
21416
|
-
const hasLinkOnlyAccess = window.obiWidgetConfig.linkOnlyAccess !== void 0;
|
|
21417
|
-
const hasUrlBlacklist = window.obiWidgetConfig.urlBlacklist !== void 0;
|
|
21418
|
-
this.configAllInCode = hasPosition && hasPrimaryColor && hasLinkOnlyAccess && hasUrlBlacklist;
|
|
21419
|
-
if (this.configAllInCode) {
|
|
21420
|
-
this.configLoaded = true;
|
|
21421
|
-
this.applyFinalConfiguration();
|
|
21422
|
-
} else if (!this.configLoaded) {
|
|
21423
|
-
this.fetchDatabaseConfig();
|
|
21424
|
-
}
|
|
21415
|
+
this.fetchDatabaseConfig();
|
|
21425
21416
|
if (window.obiWidgetConfig.showMenu === true) {
|
|
21426
21417
|
this.state = SDKState.LOADING;
|
|
21427
21418
|
this.showCourseModal = true;
|
|
@@ -21834,63 +21825,60 @@ class ObiWidget extends i$1 {
|
|
|
21834
21825
|
></obi-navigation-bar>
|
|
21835
21826
|
` : E$1}
|
|
21836
21827
|
</div>
|
|
21837
|
-
|
|
21828
|
+
|
|
21838
21829
|
${this.showCourseModal ? x`<obi-course-modal
|
|
21839
21830
|
.onClose=${this.handleCloseModals.bind(this)}
|
|
21840
21831
|
.apiKey=${this.apiKey}
|
|
21841
21832
|
@course-select=${this.handleCourseSelectEvent}
|
|
21842
21833
|
></obi-course-modal>` : E$1}
|
|
21843
|
-
|
|
21844
21834
|
${this.showSessionStartModal && !!this.selectedCourse ? x`
|
|
21845
|
-
|
|
21846
|
-
|
|
21835
|
+
<obi-session-start-modal
|
|
21836
|
+
.session=${this.selectedCourse ? {
|
|
21847
21837
|
id: this.selectedCourse.id,
|
|
21848
21838
|
name: this.selectedCourse.name,
|
|
21849
21839
|
description: this.selectedCourse.description,
|
|
21850
21840
|
agentName: this.databaseConfig?.agentName
|
|
21851
21841
|
} : {}}
|
|
21852
|
-
|
|
21853
|
-
|
|
21854
|
-
|
|
21855
|
-
|
|
21856
|
-
|
|
21857
|
-
|
|
21858
|
-
|
|
21859
|
-
|
|
21860
|
-
|
|
21842
|
+
?open=${this.showSessionStartModal && !!this.selectedCourse}
|
|
21843
|
+
color=${this.primaryColor}
|
|
21844
|
+
@obi-start=${this.handleSessionModalStart}
|
|
21845
|
+
@obi-close=${this.handleSessionModalClose}
|
|
21846
|
+
@obi-error=${this.handleSessionModalError}
|
|
21847
|
+
>
|
|
21848
|
+
</obi-session-start-modal>
|
|
21849
|
+
` : E$1}
|
|
21861
21850
|
${this.showShareMicModal ? x`
|
|
21862
|
-
|
|
21863
|
-
|
|
21851
|
+
<obi-share-mic-modal
|
|
21852
|
+
.session=${this.selectedCourse ? {
|
|
21864
21853
|
id: this.selectedCourse.id,
|
|
21865
21854
|
name: this.selectedCourse.name,
|
|
21866
21855
|
description: this.selectedCourse.description,
|
|
21867
21856
|
agentName: this.databaseConfig?.agentName
|
|
21868
21857
|
} : {}}
|
|
21869
|
-
|
|
21870
|
-
|
|
21871
|
-
|
|
21872
|
-
|
|
21873
|
-
|
|
21874
|
-
|
|
21875
|
-
|
|
21876
|
-
|
|
21877
|
-
|
|
21858
|
+
?open=${this.showShareMicModal}
|
|
21859
|
+
?disabled=${!this.micShareEnabled}
|
|
21860
|
+
color=${this.primaryColor}
|
|
21861
|
+
@obi-continue=${this.handleShareMicModalContinue}
|
|
21862
|
+
@obi-close=${this.handleShareMicModalClose}
|
|
21863
|
+
>
|
|
21864
|
+
</obi-share-mic-modal>
|
|
21865
|
+
` : E$1}
|
|
21878
21866
|
${this.showVoiceGuidanceModal ? x`
|
|
21879
|
-
|
|
21880
|
-
|
|
21867
|
+
<obi-voice-guidance-modal
|
|
21868
|
+
.session=${this.selectedCourse ? {
|
|
21881
21869
|
id: this.selectedCourse.id,
|
|
21882
21870
|
name: this.selectedCourse.name,
|
|
21883
21871
|
description: this.selectedCourse.description,
|
|
21884
21872
|
agentName: this.databaseConfig?.agentName
|
|
21885
21873
|
} : {}}
|
|
21886
|
-
|
|
21887
|
-
|
|
21888
|
-
|
|
21889
|
-
|
|
21890
|
-
|
|
21891
|
-
|
|
21892
|
-
|
|
21893
|
-
|
|
21874
|
+
?open=${this.showVoiceGuidanceModal}
|
|
21875
|
+
?disabled=${!this.voiceGuidanceEnabled}
|
|
21876
|
+
color=${this.primaryColor}
|
|
21877
|
+
@obi-continue=${this.handleVoiceGuidanceModalContinue}
|
|
21878
|
+
@obi-close=${this.handleVoiceGuidanceModalClose}
|
|
21879
|
+
>
|
|
21880
|
+
</obi-voice-guidance-modal>
|
|
21881
|
+
` : E$1}
|
|
21894
21882
|
`;
|
|
21895
21883
|
}
|
|
21896
21884
|
}
|
|
@@ -22107,9 +22095,6 @@ __decorateClass([
|
|
|
22107
22095
|
__decorateClass([
|
|
22108
22096
|
r$1()
|
|
22109
22097
|
], ObiWidget.prototype, "configLoaded", 2);
|
|
22110
|
-
__decorateClass([
|
|
22111
|
-
r$1()
|
|
22112
|
-
], ObiWidget.prototype, "configAllInCode", 2);
|
|
22113
22098
|
__decorateClass([
|
|
22114
22099
|
r$1()
|
|
22115
22100
|
], ObiWidget.prototype, "primaryColor", 2);
|
|
@@ -22143,4 +22128,4 @@ export {
|
|
|
22143
22128
|
withSentryAsyncHandler as w,
|
|
22144
22129
|
x
|
|
22145
22130
|
};
|
|
22146
|
-
//# sourceMappingURL=obi-widget-
|
|
22131
|
+
//# sourceMappingURL=obi-widget-222a1e0d.js.map
|