@inappstory/react-sdk 1.15.7 → 1.16.0
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/index.esm.mjs +9 -15
- package/dist/index.esm.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +2 -2
package/dist/index.esm.mjs
CHANGED
|
@@ -10475,7 +10475,7 @@ class GameClientConfig {
|
|
|
10475
10475
|
value: void 0
|
|
10476
10476
|
});
|
|
10477
10477
|
const storyManagerConfig = this.storyManager.config;
|
|
10478
|
-
const sdkVersion = "1.
|
|
10478
|
+
const sdkVersion = "1.16.0";
|
|
10479
10479
|
const placeholders = this.storyManager.rootStore.placeholderStore.placeholders;
|
|
10480
10480
|
const session = this.storyManager.rootStore.sessionStore.session;
|
|
10481
10481
|
this.sessionId = session.id;
|
|
@@ -19587,7 +19587,6 @@ var stackedStoryListViewModel_classPrivateFieldSet = (undefined && undefined.__c
|
|
|
19587
19587
|
|
|
19588
19588
|
|
|
19589
19589
|
|
|
19590
|
-
|
|
19591
19590
|
let StackedStoryListViewModel = (() => {
|
|
19592
19591
|
var _a, _StackedStoryListViewModel_topStory_accessor_storage;
|
|
19593
19592
|
let _classSuper = ViewModel;
|
|
@@ -19611,12 +19610,6 @@ let StackedStoryListViewModel = (() => {
|
|
|
19611
19610
|
writable: true,
|
|
19612
19611
|
value: false
|
|
19613
19612
|
});
|
|
19614
|
-
Object.defineProperty(this, "_id", {
|
|
19615
|
-
enumerable: true,
|
|
19616
|
-
configurable: true,
|
|
19617
|
-
writable: true,
|
|
19618
|
-
value: void 0
|
|
19619
|
-
});
|
|
19620
19613
|
Object.defineProperty(this, "storyModels", {
|
|
19621
19614
|
enumerable: true,
|
|
19622
19615
|
configurable: true,
|
|
@@ -19650,7 +19643,6 @@ let StackedStoryListViewModel = (() => {
|
|
|
19650
19643
|
_StackedStoryListViewModel_topStory_accessor_storage.set(this, stackedStoryListViewModel_runInitializers(this, _topStory_initializers, null));
|
|
19651
19644
|
stackedStoryListViewModel_runInitializers(this, _topStory_extraInitializers);
|
|
19652
19645
|
this.options = options;
|
|
19653
|
-
this._id = __WEBPACK_EXTERNAL_MODULE_uuid_v4__();
|
|
19654
19646
|
this.handleShowStory = this.handleShowStory.bind(this);
|
|
19655
19647
|
this.handleCloseStoryReader = this.handleCloseStoryReader.bind(this);
|
|
19656
19648
|
this.subscribeToStoryReader().catch(console.error);
|
|
@@ -19728,7 +19720,7 @@ let StackedStoryListViewModel = (() => {
|
|
|
19728
19720
|
feedSlug: this.options.feed
|
|
19729
19721
|
});
|
|
19730
19722
|
this.emit("endLoad");
|
|
19731
|
-
if (this.storyFeed.stories)
|
|
19723
|
+
if (this.storyFeed.stories.length)
|
|
19732
19724
|
this.handleStoriesChange(this.storyFeed.stories);
|
|
19733
19725
|
}
|
|
19734
19726
|
catch (err) {
|
|
@@ -19738,7 +19730,7 @@ let StackedStoryListViewModel = (() => {
|
|
|
19738
19730
|
update() {
|
|
19739
19731
|
const topStoryModel = this.unreadedStoryModels.values().next().value;
|
|
19740
19732
|
if (!topStoryModel)
|
|
19741
|
-
|
|
19733
|
+
return;
|
|
19742
19734
|
this._activeIndex = this.storyModels.indexOf(topStoryModel);
|
|
19743
19735
|
this.topStory = new StackFeedStory(topStoryModel, this.storyFeed);
|
|
19744
19736
|
this.onUpdateTopStory(this.topStory);
|
|
@@ -19750,6 +19742,8 @@ let StackedStoryListViewModel = (() => {
|
|
|
19750
19742
|
this.markStoryAsShownById(this.top.id);
|
|
19751
19743
|
}
|
|
19752
19744
|
markStoryAsOpened(storyId) {
|
|
19745
|
+
if (!this.storyModels.find(story => story.id === storyId))
|
|
19746
|
+
return;
|
|
19753
19747
|
storyManager.rootStore.storyStore.markIsOpenedById(storyId);
|
|
19754
19748
|
this.markStoryAsShownById(storyId);
|
|
19755
19749
|
this.unreadedStoryModels.delete(storyId);
|
|
@@ -22034,7 +22028,7 @@ class UgcEditorStore {
|
|
|
22034
22028
|
const session = await this.storyManager.rootStore.sessionStore.open();
|
|
22035
22029
|
const ugcEditorConfigDto = await this.ugcEditorApi.fetchUgcEditorConfig();
|
|
22036
22030
|
const storyManagerConfig = this.storyManager.config;
|
|
22037
|
-
const sdkVersion = "1.
|
|
22031
|
+
const sdkVersion = "1.16.0";
|
|
22038
22032
|
this._config = {
|
|
22039
22033
|
sessionId: session.id,
|
|
22040
22034
|
apiKey: storyManagerConfig.apiKey,
|
|
@@ -22494,11 +22488,11 @@ class StoryManager extends TypedEventEmitter {
|
|
|
22494
22488
|
return deviceDescriptor.deviceId;
|
|
22495
22489
|
}
|
|
22496
22490
|
get sdkVersionName() {
|
|
22497
|
-
const sdkVersionName = "1.
|
|
22491
|
+
const sdkVersionName = "1.16.0";
|
|
22498
22492
|
return sdkVersionName || "0.0.0";
|
|
22499
22493
|
}
|
|
22500
22494
|
get sdkVersionCode() {
|
|
22501
|
-
const sdkVersionCode =
|
|
22495
|
+
const sdkVersionCode = 11600;
|
|
22502
22496
|
return sdkVersionCode ? parseInt(sdkVersionCode) : 0;
|
|
22503
22497
|
}
|
|
22504
22498
|
get lang() {
|
|
@@ -22562,7 +22556,7 @@ class StoryManager extends TypedEventEmitter {
|
|
|
22562
22556
|
this.rootStore.storyManagerConfigStore.setConfig(configDto);
|
|
22563
22557
|
}
|
|
22564
22558
|
setUserAgent(userAgent) {
|
|
22565
|
-
const sdkVersionCode =
|
|
22559
|
+
const sdkVersionCode = 11600;
|
|
22566
22560
|
const buildVersion = sdkVersionCode ? parseInt(sdkVersionCode) : 0;
|
|
22567
22561
|
// According to RFC5987, HTTP header values can legitimately be supplied using the ISO-8859-1 encoding.
|
|
22568
22562
|
this._userAgent = `${userAgent} ${convertStrToLatin1(navigator.userAgent)}`;
|