obi-sdk 0.11.0 → 0.11.1
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-45f4d445.js +6 -0
- package/dist/modular/chunks/index-45f4d445.js.map +1 -0
- package/dist/modular/chunks/{obi-widget-585f773a.js → obi-widget-00df4624.js} +25 -8
- package/dist/modular/chunks/{obi-widget-585f773a.js.map → obi-widget-00df4624.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 +2 -2
- package/dist/obi-sdk.standalone.iife.js.map +1 -1
- package/dist/react.es.js +5 -5
- package/dist/react.es.js.map +1 -1
- package/dist/react.umd.js +2 -2
- package/dist/react.umd.js.map +1 -1
- package/dist/ui/components/obi-widget/obi-widget.d.ts +1 -1
- package/package.json +1 -1
- package/dist/modular/chunks/index-4be516d9.js +0 -6
- package/dist/modular/chunks/index-4be516d9.js.map +0 -1
package/dist/react.es.js
CHANGED
|
@@ -28752,7 +28752,7 @@ let Ce = class extends Ft {
|
|
|
28752
28752
|
speaker: "ASSISTANT",
|
|
28753
28753
|
volume: 0,
|
|
28754
28754
|
spectrum: []
|
|
28755
|
-
}, this.databaseConfig = null, this.configLoaded = !1, this.
|
|
28755
|
+
}, this.databaseConfig = null, this.configLoaded = !1, this.configAllInCode = !1, this.sessionToken = null, this.roomToken = null, this.roomUrl = null, this.boundSaveSessionData = null, this.obiClient = null, this.closeNavTimeoutRef = null, this.researchingTimeoutRef = null, this.urlCheckInterval = null, this.currentUrl = "", this.connectObi = li(
|
|
28756
28756
|
async (e) => {
|
|
28757
28757
|
if (this.activeSession) {
|
|
28758
28758
|
ne("connection_already_exists", { sessionToken: e }, "ObiWidget"), console.log("Connection already exists");
|
|
@@ -28950,9 +28950,9 @@ let Ce = class extends Ft {
|
|
|
28950
28950
|
}
|
|
28951
28951
|
updateFromConfig() {
|
|
28952
28952
|
if (window.obiWidgetConfig) {
|
|
28953
|
-
this.apiKey = window.obiWidgetConfig.apiKey || this.apiKey;
|
|
28953
|
+
this.apiKey = window.obiWidgetConfig.apiKey || this.apiKey, window.obiWidgetConfig.position !== void 0 && (this.position = window.obiWidgetConfig.position, this.setAttribute("position", this.position)), window.obiWidgetConfig.primaryColor !== void 0 && (this.style.setProperty("--obi-primary", window.obiWidgetConfig.primaryColor), this.generateColorVariables(window.obiWidgetConfig.primaryColor)), window.obiWidgetConfig.user !== void 0 && (this.user = window.obiWidgetConfig.user), window.obiWidgetConfig.isActive !== void 0 && (this.isActive = window.obiWidgetConfig.isActive), window.obiWidgetConfig.linkOnlyAccess !== void 0 && (this.linkOnlyAccess = window.obiWidgetConfig.linkOnlyAccess), window.obiWidgetConfig.urlBlacklist !== void 0 && (this.urlBlacklist = window.obiWidgetConfig.urlBlacklist);
|
|
28954
28954
|
const e = window.obiWidgetConfig.position !== void 0, t = window.obiWidgetConfig.primaryColor !== void 0, n = window.obiWidgetConfig.linkOnlyAccess !== void 0, i = window.obiWidgetConfig.urlBlacklist !== void 0;
|
|
28955
|
-
this.
|
|
28955
|
+
this.configAllInCode = e && t && n && i, this.configAllInCode ? (this.configLoaded = !0, this.applyFinalConfiguration()) : this.configLoaded || this.fetchDatabaseConfig(), window.obiWidgetConfig.showMenu === !0 && (this.state = O.LOADING, this.showCourseModal = !0, window.obiWidgetConfig.showMenu = !1);
|
|
28956
28956
|
} else
|
|
28957
28957
|
this.configLoaded || this.fetchDatabaseConfig();
|
|
28958
28958
|
}
|
|
@@ -29063,7 +29063,7 @@ let Ce = class extends Ft {
|
|
|
29063
29063
|
}
|
|
29064
29064
|
handleConfigUpdate(e) {
|
|
29065
29065
|
const i = e.detail.isActive && !this.isActive;
|
|
29066
|
-
this.updateFromConfig(),
|
|
29066
|
+
this.updateFromConfig(), i && !Pr(this.urlBlacklist) && this.sessionConnectionCheck(), this.requestUpdate();
|
|
29067
29067
|
}
|
|
29068
29068
|
handleMouseEnter() {
|
|
29069
29069
|
this.isHovering = !0, this.navVisible = !0;
|
|
@@ -29390,7 +29390,7 @@ Qe([
|
|
|
29390
29390
|
], Ce.prototype, "configLoaded", 2);
|
|
29391
29391
|
Qe([
|
|
29392
29392
|
oe()
|
|
29393
|
-
], Ce.prototype, "
|
|
29393
|
+
], Ce.prototype, "configAllInCode", 2);
|
|
29394
29394
|
customElements.get("obi-widget") || customElements.define("obi-widget", Ce);
|
|
29395
29395
|
const X_ = Ji({
|
|
29396
29396
|
tagName: "obi-course-modal",
|