@inappstory/react-sdk 1.8.0-rc.11 → 1.8.0-rc.12

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.
@@ -7974,9 +7974,6 @@ let StorySlideViewModel = (() => {
7974
7974
  }
7975
7975
  });
7976
7976
  }
7977
- get state() {
7978
- return this.slideApi.state;
7979
- }
7980
7977
  get index() {
7981
7978
  return this._index;
7982
7979
  }
@@ -8206,17 +8203,20 @@ let StorySlideViewModel = (() => {
8206
8203
  }
8207
8204
  }
8208
8205
  async destroy() {
8206
+ const release = await this.mutex.acquire();
8209
8207
  try {
8210
8208
  this.isStarted = false;
8211
8209
  this.isInited = false;
8212
8210
  this.story.touchController.off(TouchControllerEvent.TouchEnd, this.handleTouchEnd);
8213
8211
  if (this.cacheManager)
8214
8212
  this.slide.restoreOriginalResourceUrls();
8215
- await this.slideApi.destroy();
8216
8213
  }
8217
8214
  catch (error) {
8218
8215
  console.error(error);
8219
8216
  }
8217
+ finally {
8218
+ release();
8219
+ }
8220
8220
  }
8221
8221
  getNavigationDirection(event, currentTarget) {
8222
8222
  const xPercent = this.getClickPosition(event, currentTarget);
@@ -10172,8 +10172,6 @@ let StoryViewModel = (() => {
10172
10172
  async onSlideChange(index) {
10173
10173
  var _b;
10174
10174
  try {
10175
- if (!this.isInited || !this.isStarted)
10176
- return;
10177
10175
  const lastSlide = this.getSlideByIndex(this._activeSlideIndex);
10178
10176
  const activeSlide = this.getSlideByIndex(index);
10179
10177
  this._activeSlideIndex = index;
@@ -10709,7 +10707,7 @@ class GameClientConfig {
10709
10707
  value: void 0
10710
10708
  });
10711
10709
  const storyManagerConfig = this.storyManager.config;
10712
- const sdkVersion = "1.8.0-rc.11";
10710
+ const sdkVersion = "1.8.0-rc.12";
10713
10711
  const placeholders = this.storyManager.rootStore.placeholderStore.placeholders;
10714
10712
  const session = this.storyManager.rootStore.sessionStore.session;
10715
10713
  this.sessionId = session.id;
@@ -20982,7 +20980,7 @@ class UgcEditorStore {
20982
20980
  const session = await this.storyManager.rootStore.sessionStore.open();
20983
20981
  const ugcEditorConfigDto = await this.ugcEditorApi.fetchUgcEditorConfig();
20984
20982
  const storyManagerConfig = this.storyManager.config;
20985
- const sdkVersion = "1.8.0-rc.11";
20983
+ const sdkVersion = "1.8.0-rc.12";
20986
20984
  this._config = {
20987
20985
  sessionId: session.id,
20988
20986
  apiKey: storyManagerConfig.apiKey,
@@ -21413,7 +21411,7 @@ class StoryManager extends TypedEventEmitter {
21413
21411
  return this._userAgent;
21414
21412
  }
21415
21413
  get sdkVersionName() {
21416
- const sdkVersionName = "1.8.0-rc.11";
21414
+ const sdkVersionName = "1.8.0-rc.12";
21417
21415
  return sdkVersionName || "0.0.0";
21418
21416
  }
21419
21417
  get sdkVersionCode() {