obi-sdk 0.13.0 → 0.13.2

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-d8354869.js";
2
+ import "./types-f38a47f6.js";
3
+ export {
4
+ O as ObiWidget
5
+ };
6
+ //# sourceMappingURL=index-a668ac46.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-a668ac46.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -21055,7 +21055,12 @@ 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;
21063
+ this.terminateSession();
21059
21064
  this.showCourseModal = false;
21060
21065
  this.showSessionStartModal = false;
21061
21066
  this.showShareMicModal = false;
@@ -21066,6 +21071,9 @@ class ObiWidget extends i$1 {
21066
21071
  this.showCourseModal = false;
21067
21072
  this.showSessionStartModal = true;
21068
21073
  this.showShareMicModal = false;
21074
+ this.micShareEnabled = false;
21075
+ this.showVoiceGuidanceModal = false;
21076
+ this.voiceGuidanceEnabled = false;
21069
21077
  };
21070
21078
  this.handleUrlSessionEvent = withSentryAsyncHandler(
21071
21079
  async (sessionToken) => {
@@ -21102,6 +21110,10 @@ class ObiWidget extends i$1 {
21102
21110
  };
21103
21111
  this.state = SDKState.LOADING;
21104
21112
  this.showSessionStartModal = true;
21113
+ this.showShareMicModal = false;
21114
+ this.micShareEnabled = false;
21115
+ this.showVoiceGuidanceModal = false;
21116
+ this.voiceGuidanceEnabled = false;
21105
21117
  trackEvent(
21106
21118
  "matching_session_found",
21107
21119
  {
@@ -21682,7 +21694,6 @@ class ObiWidget extends i$1 {
21682
21694
  handleItemSelect(id, itemIsActive) {
21683
21695
  if (id === "experiences") {
21684
21696
  this.showCourseModal = true;
21685
- this.showShareMicModal = false;
21686
21697
  return;
21687
21698
  }
21688
21699
  z$3([id, itemIsActive]).with(["pause", true], () => {
@@ -21823,6 +21834,7 @@ class ObiWidget extends i$1 {
21823
21834
  ></obi-navigation-bar>
21824
21835
  ` : E$1}
21825
21836
  </div>
21837
+
21826
21838
  ${this.showCourseModal ? x`<obi-course-modal
21827
21839
  .onClose=${this.handleCloseModals.bind(this)}
21828
21840
  .apiKey=${this.apiKey}
@@ -22131,4 +22143,4 @@ export {
22131
22143
  withSentryAsyncHandler as w,
22132
22144
  x
22133
22145
  };
22134
- //# sourceMappingURL=obi-widget-5c728b05.js.map
22146
+ //# sourceMappingURL=obi-widget-d8354869.js.map