obi-sdk 0.13.1 → 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-d596380b.js → obi-widget-222a1e0d.js} +44 -52
- package/dist/modular/chunks/{obi-widget-d596380b.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 +276 -285
- 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 +2 -2
- package/dist/modular/chunks/index-14b8cc26.js +0 -6
- package/dist/modular/chunks/index-14b8cc26.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;
|
|
@@ -21060,6 +21059,7 @@ class ObiWidget extends i$1 {
|
|
|
21060
21059
|
this.activeSession = null;
|
|
21061
21060
|
}
|
|
21062
21061
|
this.state = SDKState.READY;
|
|
21062
|
+
this.terminateSession();
|
|
21063
21063
|
this.showCourseModal = false;
|
|
21064
21064
|
this.showSessionStartModal = false;
|
|
21065
21065
|
this.showShareMicModal = false;
|
|
@@ -21070,6 +21070,9 @@ class ObiWidget extends i$1 {
|
|
|
21070
21070
|
this.showCourseModal = false;
|
|
21071
21071
|
this.showSessionStartModal = true;
|
|
21072
21072
|
this.showShareMicModal = false;
|
|
21073
|
+
this.micShareEnabled = false;
|
|
21074
|
+
this.showVoiceGuidanceModal = false;
|
|
21075
|
+
this.voiceGuidanceEnabled = false;
|
|
21073
21076
|
};
|
|
21074
21077
|
this.handleUrlSessionEvent = withSentryAsyncHandler(
|
|
21075
21078
|
async (sessionToken) => {
|
|
@@ -21106,6 +21109,10 @@ class ObiWidget extends i$1 {
|
|
|
21106
21109
|
};
|
|
21107
21110
|
this.state = SDKState.LOADING;
|
|
21108
21111
|
this.showSessionStartModal = true;
|
|
21112
|
+
this.showShareMicModal = false;
|
|
21113
|
+
this.micShareEnabled = false;
|
|
21114
|
+
this.showVoiceGuidanceModal = false;
|
|
21115
|
+
this.voiceGuidanceEnabled = false;
|
|
21109
21116
|
trackEvent(
|
|
21110
21117
|
"matching_session_found",
|
|
21111
21118
|
{
|
|
@@ -21181,7 +21188,9 @@ class ObiWidget extends i$1 {
|
|
|
21181
21188
|
}
|
|
21182
21189
|
if (!this.selectedCourse.id) {
|
|
21183
21190
|
const error = "Session ID is missing.";
|
|
21184
|
-
console.error("[SessionStartModal] Validation failed:", error, {
|
|
21191
|
+
console.error("[SessionStartModal] Validation failed:", error, {
|
|
21192
|
+
session: this.selectedCourse
|
|
21193
|
+
});
|
|
21185
21194
|
captureException(error, {
|
|
21186
21195
|
componentName: "SessionStartModal",
|
|
21187
21196
|
handlerName: "handleSessionModalStart",
|
|
@@ -21403,17 +21412,7 @@ class ObiWidget extends i$1 {
|
|
|
21403
21412
|
if (window.obiWidgetConfig.urlBlacklist !== void 0) {
|
|
21404
21413
|
this.urlBlacklist = window.obiWidgetConfig.urlBlacklist;
|
|
21405
21414
|
}
|
|
21406
|
-
|
|
21407
|
-
const hasPrimaryColor = window.obiWidgetConfig.primaryColor !== void 0;
|
|
21408
|
-
const hasLinkOnlyAccess = window.obiWidgetConfig.linkOnlyAccess !== void 0;
|
|
21409
|
-
const hasUrlBlacklist = window.obiWidgetConfig.urlBlacklist !== void 0;
|
|
21410
|
-
this.configAllInCode = hasPosition && hasPrimaryColor && hasLinkOnlyAccess && hasUrlBlacklist;
|
|
21411
|
-
if (this.configAllInCode) {
|
|
21412
|
-
this.configLoaded = true;
|
|
21413
|
-
this.applyFinalConfiguration();
|
|
21414
|
-
} else if (!this.configLoaded) {
|
|
21415
|
-
this.fetchDatabaseConfig();
|
|
21416
|
-
}
|
|
21415
|
+
this.fetchDatabaseConfig();
|
|
21417
21416
|
if (window.obiWidgetConfig.showMenu === true) {
|
|
21418
21417
|
this.state = SDKState.LOADING;
|
|
21419
21418
|
this.showCourseModal = true;
|
|
@@ -21686,7 +21685,6 @@ class ObiWidget extends i$1 {
|
|
|
21686
21685
|
handleItemSelect(id, itemIsActive) {
|
|
21687
21686
|
if (id === "experiences") {
|
|
21688
21687
|
this.showCourseModal = true;
|
|
21689
|
-
this.showShareMicModal = false;
|
|
21690
21688
|
return;
|
|
21691
21689
|
}
|
|
21692
21690
|
z$3([id, itemIsActive]).with(["pause", true], () => {
|
|
@@ -21827,63 +21825,60 @@ class ObiWidget extends i$1 {
|
|
|
21827
21825
|
></obi-navigation-bar>
|
|
21828
21826
|
` : E$1}
|
|
21829
21827
|
</div>
|
|
21830
|
-
|
|
21828
|
+
|
|
21831
21829
|
${this.showCourseModal ? x`<obi-course-modal
|
|
21832
21830
|
.onClose=${this.handleCloseModals.bind(this)}
|
|
21833
21831
|
.apiKey=${this.apiKey}
|
|
21834
21832
|
@course-select=${this.handleCourseSelectEvent}
|
|
21835
21833
|
></obi-course-modal>` : E$1}
|
|
21836
|
-
|
|
21837
21834
|
${this.showSessionStartModal && !!this.selectedCourse ? x`
|
|
21838
|
-
|
|
21839
|
-
|
|
21835
|
+
<obi-session-start-modal
|
|
21836
|
+
.session=${this.selectedCourse ? {
|
|
21840
21837
|
id: this.selectedCourse.id,
|
|
21841
21838
|
name: this.selectedCourse.name,
|
|
21842
21839
|
description: this.selectedCourse.description,
|
|
21843
21840
|
agentName: this.databaseConfig?.agentName
|
|
21844
21841
|
} : {}}
|
|
21845
|
-
|
|
21846
|
-
|
|
21847
|
-
|
|
21848
|
-
|
|
21849
|
-
|
|
21850
|
-
|
|
21851
|
-
|
|
21852
|
-
|
|
21853
|
-
|
|
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}
|
|
21854
21850
|
${this.showShareMicModal ? x`
|
|
21855
|
-
|
|
21856
|
-
|
|
21851
|
+
<obi-share-mic-modal
|
|
21852
|
+
.session=${this.selectedCourse ? {
|
|
21857
21853
|
id: this.selectedCourse.id,
|
|
21858
21854
|
name: this.selectedCourse.name,
|
|
21859
21855
|
description: this.selectedCourse.description,
|
|
21860
21856
|
agentName: this.databaseConfig?.agentName
|
|
21861
21857
|
} : {}}
|
|
21862
|
-
|
|
21863
|
-
|
|
21864
|
-
|
|
21865
|
-
|
|
21866
|
-
|
|
21867
|
-
|
|
21868
|
-
|
|
21869
|
-
|
|
21870
|
-
|
|
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}
|
|
21871
21866
|
${this.showVoiceGuidanceModal ? x`
|
|
21872
|
-
|
|
21873
|
-
|
|
21867
|
+
<obi-voice-guidance-modal
|
|
21868
|
+
.session=${this.selectedCourse ? {
|
|
21874
21869
|
id: this.selectedCourse.id,
|
|
21875
21870
|
name: this.selectedCourse.name,
|
|
21876
21871
|
description: this.selectedCourse.description,
|
|
21877
21872
|
agentName: this.databaseConfig?.agentName
|
|
21878
21873
|
} : {}}
|
|
21879
|
-
|
|
21880
|
-
|
|
21881
|
-
|
|
21882
|
-
|
|
21883
|
-
|
|
21884
|
-
|
|
21885
|
-
|
|
21886
|
-
|
|
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}
|
|
21887
21882
|
`;
|
|
21888
21883
|
}
|
|
21889
21884
|
}
|
|
@@ -22100,9 +22095,6 @@ __decorateClass([
|
|
|
22100
22095
|
__decorateClass([
|
|
22101
22096
|
r$1()
|
|
22102
22097
|
], ObiWidget.prototype, "configLoaded", 2);
|
|
22103
|
-
__decorateClass([
|
|
22104
|
-
r$1()
|
|
22105
|
-
], ObiWidget.prototype, "configAllInCode", 2);
|
|
22106
22098
|
__decorateClass([
|
|
22107
22099
|
r$1()
|
|
22108
22100
|
], ObiWidget.prototype, "primaryColor", 2);
|
|
@@ -22136,4 +22128,4 @@ export {
|
|
|
22136
22128
|
withSentryAsyncHandler as w,
|
|
22137
22129
|
x
|
|
22138
22130
|
};
|
|
22139
|
-
//# sourceMappingURL=obi-widget-
|
|
22131
|
+
//# sourceMappingURL=obi-widget-222a1e0d.js.map
|