@inappstory/react-sdk 1.15.4 → 1.15.5
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
CHANGED
|
@@ -7877,8 +7877,8 @@ let StorySlideViewModel = (() => {
|
|
|
7877
7877
|
async restart() {
|
|
7878
7878
|
try {
|
|
7879
7879
|
this.story.hideErrorScreen();
|
|
7880
|
-
this.commit({ inited: false, started: false, paused: false });
|
|
7881
|
-
await this.init();
|
|
7880
|
+
// this.commit({ inited: false, started: false, paused: false });
|
|
7881
|
+
//await this.init();
|
|
7882
7882
|
await this.slideApi.slideRestart({ muted: this._story.muted });
|
|
7883
7883
|
this.commit({ inited: true, started: true, paused: false });
|
|
7884
7884
|
}
|
|
@@ -7952,6 +7952,7 @@ let StorySlideViewModel = (() => {
|
|
|
7952
7952
|
}
|
|
7953
7953
|
async stopAndCleanup(params) {
|
|
7954
7954
|
try {
|
|
7955
|
+
this._activeLayerIndex = 0;
|
|
7955
7956
|
this.story.touchController.off(TouchControllerEvent.TouchEnd, this.handleTouchEnd);
|
|
7956
7957
|
await this.slideApi.slideStop(params);
|
|
7957
7958
|
}
|
|
@@ -7960,9 +7961,9 @@ let StorySlideViewModel = (() => {
|
|
|
7960
7961
|
}
|
|
7961
7962
|
}
|
|
7962
7963
|
showLayerByIndex(index) {
|
|
7963
|
-
this._activeLayerIndex = index;
|
|
7964
7964
|
this.slideApi.showLayer(index);
|
|
7965
7965
|
this._cover = this.getCoverByLayer();
|
|
7966
|
+
this._activeLayerIndex = index;
|
|
7966
7967
|
}
|
|
7967
7968
|
canGoNext() {
|
|
7968
7969
|
const { canClickNext } = this.slideApi.slideClickHandler(null, "forward");
|
|
@@ -9821,10 +9822,6 @@ let StoryViewModel = (() => {
|
|
|
9821
9822
|
}
|
|
9822
9823
|
async showLayer(index) {
|
|
9823
9824
|
var _b;
|
|
9824
|
-
if (this.activeSlide.activeLayerIndex === index) {
|
|
9825
|
-
await this.activeSlide.restart();
|
|
9826
|
-
return;
|
|
9827
|
-
}
|
|
9828
9825
|
this.statisticV2Service.sendSlideLayout({
|
|
9829
9826
|
layoutIndex: index,
|
|
9830
9827
|
storyId: this.id,
|
|
@@ -10367,7 +10364,7 @@ class GameClientConfig {
|
|
|
10367
10364
|
value: void 0
|
|
10368
10365
|
});
|
|
10369
10366
|
const storyManagerConfig = this.storyManager.config;
|
|
10370
|
-
const sdkVersion = "1.15.
|
|
10367
|
+
const sdkVersion = "1.15.5";
|
|
10371
10368
|
const placeholders = this.storyManager.rootStore.placeholderStore.placeholders;
|
|
10372
10369
|
const session = this.storyManager.rootStore.sessionStore.session;
|
|
10373
10370
|
this.sessionId = session.id;
|
|
@@ -21929,7 +21926,7 @@ class UgcEditorStore {
|
|
|
21929
21926
|
const session = await this.storyManager.rootStore.sessionStore.open();
|
|
21930
21927
|
const ugcEditorConfigDto = await this.ugcEditorApi.fetchUgcEditorConfig();
|
|
21931
21928
|
const storyManagerConfig = this.storyManager.config;
|
|
21932
|
-
const sdkVersion = "1.15.
|
|
21929
|
+
const sdkVersion = "1.15.5";
|
|
21933
21930
|
this._config = {
|
|
21934
21931
|
sessionId: session.id,
|
|
21935
21932
|
apiKey: storyManagerConfig.apiKey,
|
|
@@ -22389,11 +22386,11 @@ class StoryManager extends TypedEventEmitter {
|
|
|
22389
22386
|
return deviceDescriptor.deviceId;
|
|
22390
22387
|
}
|
|
22391
22388
|
get sdkVersionName() {
|
|
22392
|
-
const sdkVersionName = "1.15.
|
|
22389
|
+
const sdkVersionName = "1.15.5";
|
|
22393
22390
|
return sdkVersionName || "0.0.0";
|
|
22394
22391
|
}
|
|
22395
22392
|
get sdkVersionCode() {
|
|
22396
|
-
const sdkVersionCode =
|
|
22393
|
+
const sdkVersionCode = 11505;
|
|
22397
22394
|
return sdkVersionCode ? parseInt(sdkVersionCode) : 0;
|
|
22398
22395
|
}
|
|
22399
22396
|
get lang() {
|
|
@@ -22457,7 +22454,7 @@ class StoryManager extends TypedEventEmitter {
|
|
|
22457
22454
|
this.rootStore.storyManagerConfigStore.setConfig(configDto);
|
|
22458
22455
|
}
|
|
22459
22456
|
setUserAgent(userAgent) {
|
|
22460
|
-
const sdkVersionCode =
|
|
22457
|
+
const sdkVersionCode = 11505;
|
|
22461
22458
|
const buildVersion = sdkVersionCode ? parseInt(sdkVersionCode) : 0;
|
|
22462
22459
|
// According to RFC5987, HTTP header values can legitimately be supplied using the ISO-8859-1 encoding.
|
|
22463
22460
|
this._userAgent = `${userAgent} ${convertStrToLatin1(navigator.userAgent)}`;
|