obi-sdk 0.13.0 → 0.13.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.
@@ -0,0 +1,6 @@
1
+ import { O } from "./obi-widget-d596380b.js";
2
+ import "./types-f38a47f6.js";
3
+ export {
4
+ O as ObiWidget
5
+ };
6
+ //# sourceMappingURL=index-14b8cc26.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-14b8cc26.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -21055,6 +21055,10 @@ class ObiWidget extends i$1 {
21055
21055
  "ObiWidget"
21056
21056
  );
21057
21057
  this.handleCloseModals = () => {
21058
+ if (this.activeSession) {
21059
+ this.activeSession.disconnect();
21060
+ this.activeSession = null;
21061
+ }
21058
21062
  this.state = SDKState.READY;
21059
21063
  this.showCourseModal = false;
21060
21064
  this.showSessionStartModal = false;
@@ -21823,6 +21827,7 @@ class ObiWidget extends i$1 {
21823
21827
  ></obi-navigation-bar>
21824
21828
  ` : E$1}
21825
21829
  </div>
21830
+
21826
21831
  ${this.showCourseModal ? x`<obi-course-modal
21827
21832
  .onClose=${this.handleCloseModals.bind(this)}
21828
21833
  .apiKey=${this.apiKey}
@@ -22131,4 +22136,4 @@ export {
22131
22136
  withSentryAsyncHandler as w,
22132
22137
  x
22133
22138
  };
22134
- //# sourceMappingURL=obi-widget-5c728b05.js.map
22139
+ //# sourceMappingURL=obi-widget-d596380b.js.map