@inappstory/react-sdk 1.16.5 → 1.16.7

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.
@@ -4851,7 +4851,7 @@ class GameClientConfig {
4851
4851
  value: void 0
4852
4852
  });
4853
4853
  const storyManagerConfig = this.storyManager.config;
4854
- const sdkVersion = "1.16.5";
4854
+ const sdkVersion = "1.16.7";
4855
4855
  const placeholders = this.storyManager.rootStore.placeholderStore.placeholders;
4856
4856
  const session = this.storyManager.rootStore.sessionStore.session;
4857
4857
  this.sessionId = session.id;
@@ -5507,8 +5507,6 @@ class GameNavigationModule {
5507
5507
  data: { id: game.id.toString(), url, gameInstanceId: game.id.toString() }
5508
5508
  };
5509
5509
  this.storyManager.storyLinkClickHandler(event);
5510
- // @deprecated
5511
- this.storyManager.emit("clickOnButton", event);
5512
5510
  });
5513
5511
  }
5514
5512
  }
@@ -13983,8 +13981,6 @@ class OpenUrlAction {
13983
13981
  }
13984
13982
  };
13985
13983
  this.storyManager.storyLinkClickHandler(event);
13986
- // @deprecated
13987
- this.storyManager.emit("clickOnButton", event);
13988
13984
  this.iamReader.emit(IamReaderEvent.ClickOnButton, event);
13989
13985
  }
13990
13986
  }
@@ -15453,8 +15449,6 @@ class DeeplinkClickHandler {
15453
15449
  if (this.storyListViewModel.params.listType !== feeds/* StoryFeedType */.Wf.UGC)
15454
15450
  await this.storyFeedStatisticV1Service.sendDeeplinkClickEvent(storyCard.id);
15455
15451
  this.storyManager.storyLinkClickHandler(event);
15456
- // @deprecated
15457
- this.storyManager.emit("clickOnButton", event);
15458
15452
  }
15459
15453
  }
15460
15454
 
@@ -19758,13 +19752,10 @@ class OpenUrlAction {
19758
19752
  }
19759
19753
  };
19760
19754
  this.storyManager.storyLinkClickHandler(event);
19761
- // @deprecated
19762
- this.storyManager.emit("clickOnButton", event);
19763
19755
  }
19764
19756
  }
19765
19757
 
19766
19758
  ;// ../core/src/readers/storyReader/storyViewModel/storySlideApiHandlers/actions/showStoryAction.ts
19767
-
19768
19759
  class ShowStoryAction {
19769
19760
  constructor(storyManager, storyReader, activeStory, storyReaderStatisticV1Service) {
19770
19761
  Object.defineProperty(this, "storyManager", {
@@ -19794,30 +19785,20 @@ class ShowStoryAction {
19794
19785
  }
19795
19786
  async handle(payload) {
19796
19787
  try {
19797
- this.emitClickOnButtonEvent({
19798
- src: types/* StoryManagerLinkEventSource */.yn.StoryReader,
19799
- data: {
19800
- id: payload.storyId,
19801
- index: payload.slideIndex,
19802
- url: payload.storyId.toString()
19803
- }
19804
- });
19788
+ this.sendClickOnButtonEvent();
19805
19789
  await this.storyReader.showStory(payload.storyId);
19806
19790
  }
19807
19791
  catch (error) {
19808
19792
  console.error(error);
19809
19793
  }
19810
19794
  }
19811
- async emitClickOnButtonEvent(event) {
19795
+ async sendClickOnButtonEvent() {
19812
19796
  try {
19813
19797
  this.storyReaderStatisticV1Service.sendClickOnButtonEvent({
19814
19798
  storyId: this.activeStory.id,
19815
19799
  slideIndex: this.activeStory.activeSlideIndex
19816
19800
  });
19817
19801
  await this.storyReaderStatisticV1Service.sendData();
19818
- this.storyManager.storyLinkClickHandler(event);
19819
- // @deprecated
19820
- this.storyManager.emit("clickOnButton", event);
19821
19802
  }
19822
19803
  catch (error) {
19823
19804
  console.error(error);
@@ -23439,7 +23420,7 @@ class UgcEditorStore {
23439
23420
  const session = await this.storyManager.rootStore.sessionStore.open();
23440
23421
  const ugcEditorConfigDto = await this.ugcEditorApi.fetchUgcEditorConfig();
23441
23422
  const storyManagerConfig = this.storyManager.config;
23442
- const sdkVersion = "1.16.5";
23423
+ const sdkVersion = "1.16.7";
23443
23424
  this._config = {
23444
23425
  sessionId: session.id,
23445
23426
  apiKey: storyManagerConfig.apiKey,
@@ -23915,11 +23896,11 @@ class StoryManager extends types/* TypedEventEmitter */.Xl {
23915
23896
  return api/* deviceDescriptor */.c2.deviceId;
23916
23897
  }
23917
23898
  get sdkVersionName() {
23918
- const sdkVersionName = "1.16.5";
23899
+ const sdkVersionName = "1.16.7";
23919
23900
  return sdkVersionName || "0.0.0";
23920
23901
  }
23921
23902
  get sdkVersionCode() {
23922
- const sdkVersionCode = 11605;
23903
+ const sdkVersionCode = 11607;
23923
23904
  return sdkVersionCode ? parseInt(sdkVersionCode) : 0;
23924
23905
  }
23925
23906
  get lang() {
@@ -23983,7 +23964,7 @@ class StoryManager extends types/* TypedEventEmitter */.Xl {
23983
23964
  this.rootStore.storyManagerConfigStore.setConfig(configDto);
23984
23965
  }
23985
23966
  setUserAgent(userAgent) {
23986
- const sdkVersionCode = 11605;
23967
+ const sdkVersionCode = 11607;
23987
23968
  const buildVersion = sdkVersionCode ? parseInt(sdkVersionCode) : 0;
23988
23969
  // According to RFC5987, HTTP header values can legitimately be supplied using the ISO-8859-1 encoding.
23989
23970
  this._userAgent = `${userAgent} ${convertStrToLatin1(navigator.userAgent)}`;