@inappstory/react-sdk 1.16.0 → 1.16.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.
@@ -10394,6 +10394,7 @@ const domains = new DomainsManager();
10394
10394
 
10395
10395
 
10396
10396
 
10397
+
10397
10398
  var GamePlaceholderType;
10398
10399
  (function (GamePlaceholderType) {
10399
10400
  GamePlaceholderType["TEXT"] = "text";
@@ -10401,7 +10402,7 @@ var GamePlaceholderType;
10401
10402
  })(GamePlaceholderType || (GamePlaceholderType = {}));
10402
10403
  class GameClientConfig {
10403
10404
  constructor(storyManager) {
10404
- var _a;
10405
+ var _a, _b, _c;
10405
10406
  Object.defineProperty(this, "storyManager", {
10406
10407
  enumerable: true,
10407
10408
  configurable: true,
@@ -10474,8 +10475,20 @@ class GameClientConfig {
10474
10475
  writable: true,
10475
10476
  value: void 0
10476
10477
  });
10478
+ Object.defineProperty(this, "platform", {
10479
+ enumerable: true,
10480
+ configurable: true,
10481
+ writable: true,
10482
+ value: void 0
10483
+ });
10484
+ Object.defineProperty(this, "closeButtonBehavior", {
10485
+ enumerable: true,
10486
+ configurable: true,
10487
+ writable: true,
10488
+ value: void 0
10489
+ });
10477
10490
  const storyManagerConfig = this.storyManager.config;
10478
- const sdkVersion = "1.16.0";
10491
+ const sdkVersion = "1.16.2";
10479
10492
  const placeholders = this.storyManager.rootStore.placeholderStore.placeholders;
10480
10493
  const session = this.storyManager.rootStore.sessionStore.session;
10481
10494
  this.sessionId = session.id;
@@ -10489,6 +10502,8 @@ class GameClientConfig {
10489
10502
  this.userId = (_a = storyManagerConfig.userId) !== null && _a !== void 0 ? _a : "";
10490
10503
  this.lang = storyManagerConfig.lang.toString();
10491
10504
  this.placeholders = placeholders.map(placeholder => this.mapPlaceholder(placeholder));
10505
+ this.platform = (_c = (_b = storyManagerConfig.hybridApp) === null || _b === void 0 ? void 0 : _b.platform) !== null && _c !== void 0 ? _c : HybridAppPlatform.Desktop;
10506
+ this.closeButtonBehavior = storyManagerConfig.gameCloseButtonBehaviour;
10492
10507
  }
10493
10508
  mapPlaceholder(placeholder) {
10494
10509
  return {
@@ -10517,7 +10532,9 @@ class GameClientConfig {
10517
10532
  sdkVersion: this.sdkVersion,
10518
10533
  apiBaseUrl: this.apiBaseUrl,
10519
10534
  userAgent: this.userAgent,
10520
- placeholders: this.placeholders
10535
+ placeholders: this.placeholders,
10536
+ platform: this.platform,
10537
+ closeButtonBehavior: this.closeButtonBehavior
10521
10538
  };
10522
10539
  }
10523
10540
  }
@@ -11084,7 +11101,7 @@ class GameNavigationModule {
11084
11101
  const { url } = (_a = safeJson(payload)) !== null && _a !== void 0 ? _a : { url: "" };
11085
11102
  const event = {
11086
11103
  src: StoryManagerLinkEventSource.GameReader,
11087
- data: { id: game.id, url, gameInstanceId: game.id }
11104
+ data: { id: game.id.toString(), url, gameInstanceId: game.id.toString() }
11088
11105
  };
11089
11106
  this.storyManager.storyLinkClickHandler(event);
11090
11107
  // @deprecated
@@ -14956,10 +14973,28 @@ class LanguageTag {
14956
14973
  }
14957
14974
  }
14958
14975
 
14976
+ ;// ../core/src/domain/storyManagerConfig/types/storyManagerConfigDto.ts
14977
+ var GameCloseButtonBehavior;
14978
+ (function (GameCloseButtonBehavior) {
14979
+ GameCloseButtonBehavior["CloseGame"] = "closeGame";
14980
+ GameCloseButtonBehavior["GoToMain"] = "goToMain";
14981
+ GameCloseButtonBehavior["Hidden"] = "hidden";
14982
+ })(GameCloseButtonBehavior || (GameCloseButtonBehavior = {}));
14983
+ var HybridAppPlatform;
14984
+ (function (HybridAppPlatform) {
14985
+ HybridAppPlatform["Ios"] = "ios";
14986
+ HybridAppPlatform["Android"] = "android";
14987
+ HybridAppPlatform["Desktop"] = "desktop";
14988
+ })(HybridAppPlatform || (HybridAppPlatform = {}));
14989
+
14990
+ ;// ../core/src/domain/storyManagerConfig/types/index.ts
14991
+
14992
+
14993
+
14959
14994
  ;// ../core/src/domain/storyManagerConfig/models/hybridAppConfig.ts
14960
14995
  class HybridAppConfig {
14961
14996
  constructor(dto) {
14962
- var _a, _b;
14997
+ var _a, _b, _c;
14963
14998
  Object.defineProperty(this, "fullscreen", {
14964
14999
  enumerable: true,
14965
15000
  configurable: true,
@@ -14972,8 +15007,15 @@ class HybridAppConfig {
14972
15007
  writable: true,
14973
15008
  value: void 0
14974
15009
  });
15010
+ Object.defineProperty(this, "platform", {
15011
+ enumerable: true,
15012
+ configurable: true,
15013
+ writable: true,
15014
+ value: void 0
15015
+ });
14975
15016
  this.fullscreen = (_a = dto.fullscreen) !== null && _a !== void 0 ? _a : false;
14976
15017
  this.safeAreaInsets = (_b = dto.safeAreaInsets) !== null && _b !== void 0 ? _b : null;
15018
+ this.platform = (_c = dto.platform) !== null && _c !== void 0 ? _c : null;
14977
15019
  }
14978
15020
  }
14979
15021
 
@@ -15062,6 +15104,7 @@ var storyManagerConfig_classPrivateFieldSet = (undefined && undefined.__classPri
15062
15104
 
15063
15105
 
15064
15106
 
15107
+
15065
15108
  let StoryManagerConfig = (() => {
15066
15109
  var _a, _StoryManagerConfig__apiKey_accessor_storage, _StoryManagerConfig__tags_accessor_storage, _StoryManagerConfig__lang_accessor_storage, _StoryManagerConfig__dir_accessor_storage, _StoryManagerConfig__anonymous_accessor_storage, _StoryManagerConfig__options_accessor_storage, _StoryManagerConfig__userId_accessor_storage;
15067
15110
  let _classSuper = events.EventEmitter;
@@ -15172,6 +15215,12 @@ let StoryManagerConfig = (() => {
15172
15215
  writable: true,
15173
15216
  value: null
15174
15217
  });
15218
+ Object.defineProperty(this, "_gameCloseButtonBehaviour", {
15219
+ enumerable: true,
15220
+ configurable: true,
15221
+ writable: true,
15222
+ value: GameCloseButtonBehavior.CloseGame
15223
+ });
15175
15224
  Object.defineProperty(this, "_fontsPrefix", {
15176
15225
  enumerable: true,
15177
15226
  configurable: true,
@@ -15226,6 +15275,9 @@ let StoryManagerConfig = (() => {
15226
15275
  get hybridApp() {
15227
15276
  return this._hybridApp;
15228
15277
  }
15278
+ get gameCloseButtonBehaviour() {
15279
+ return this._gameCloseButtonBehaviour;
15280
+ }
15229
15281
  get options() {
15230
15282
  return this._options;
15231
15283
  }
@@ -15319,7 +15371,7 @@ let StoryManagerConfig = (() => {
15319
15371
  this._hybridApp = dto ? new HybridAppConfig(dto) : null;
15320
15372
  }
15321
15373
  update(configDto) {
15322
- var _b, _c, _d, _e, _f, _g, _h;
15374
+ var _b, _c, _d, _e, _f, _g, _h, _j;
15323
15375
  this._fontsPrefix = (_b = configDto.fontPrefix) !== null && _b !== void 0 ? _b : "";
15324
15376
  this._appPackageId = (_c = configDto.appPackageId) !== null && _c !== void 0 ? _c : "";
15325
15377
  this._disableDeviceId = Boolean(configDto.disableDeviceId);
@@ -15333,7 +15385,8 @@ let StoryManagerConfig = (() => {
15333
15385
  this.setTags((_g = configDto.tags) !== null && _g !== void 0 ? _g : []);
15334
15386
  this.setDir(configDto.dir);
15335
15387
  this.setHybridApp(configDto.hybridApp);
15336
- this._cache = configDto.cache ? Object.assign(Object.assign({}, configDto.cache), { prefetch: (_h = configDto.cache.prefetch) !== null && _h !== void 0 ? _h : true }) : null;
15388
+ this._gameCloseButtonBehaviour = (_h = configDto.gameCloseButtonBehaviour) !== null && _h !== void 0 ? _h : GameCloseButtonBehavior.CloseGame;
15389
+ this._cache = configDto.cache ? Object.assign(Object.assign({}, configDto.cache), { prefetch: (_j = configDto.cache.prefetch) !== null && _j !== void 0 ? _j : true }) : null;
15337
15390
  }
15338
15391
  mapTextPlaceholders(textPlaceholderDtos) {
15339
15392
  const textPlaceholders = [];
@@ -15403,6 +15456,7 @@ let StoryManagerConfig = (() => {
15403
15456
  ;// ../core/src/domain/storyManagerConfig/models/nullStoryManagerConfig.ts
15404
15457
 
15405
15458
 
15459
+
15406
15460
  class NullStoryManagerConfig {
15407
15461
  get userId() {
15408
15462
  return "";
@@ -15449,6 +15503,9 @@ class NullStoryManagerConfig {
15449
15503
  get hybridApp() {
15450
15504
  return null;
15451
15505
  }
15506
+ get gameCloseButtonBehaviour() {
15507
+ return GameCloseButtonBehavior.CloseGame;
15508
+ }
15452
15509
  get options() {
15453
15510
  return {};
15454
15511
  }
@@ -18729,13 +18786,13 @@ let IamMultiSlideMessageViewModel = (() => {
18729
18786
  ;// ../core/src/readers/gameReader/errors.ts
18730
18787
  class IasGameAlreadyOpenError extends Error {
18731
18788
  constructor(gameId) {
18732
- super(`Game with ID ${gameId} has already been open`);
18789
+ super(`Game with ID ${String(gameId)} has already been open`);
18733
18790
  this.name = `IasGameAlreadyOpenError`;
18734
18791
  }
18735
18792
  }
18736
18793
  class IasGameAnonymousOpen extends Error {
18737
18794
  constructor(gameId) {
18738
- super(`[IAS]: You can't open game ${gameId} in anonymous access mode `);
18795
+ super(`[IAS]: You can't open game ${String(gameId)} in anonymous access mode `);
18739
18796
  this.name = "IasGameAnonymousOpen";
18740
18797
  }
18741
18798
  }
@@ -18746,6 +18803,12 @@ class IasNoOpenedGameError extends Error {
18746
18803
  }
18747
18804
  }
18748
18805
 
18806
+ ;// ../core/src/readers/gameReader/consts.ts
18807
+ const GAME_CUSTOM_SCREEN_PREVIEW_ID = Symbol();
18808
+ function isGameCustomScreenPreviewId(id) {
18809
+ return id === GAME_CUSTOM_SCREEN_PREVIEW_ID;
18810
+ }
18811
+
18749
18812
  ;// ../core/src/readers/gameReader/gameReaderViewModel.ts
18750
18813
  var gameReaderViewModel_runInitializers = (undefined && undefined.__runInitializers) || function (thisArg, initializers, value) {
18751
18814
  var useValue = arguments.length > 2;
@@ -18796,6 +18859,8 @@ var gameReaderViewModel_classPrivateFieldSet = (undefined && undefined.__classPr
18796
18859
 
18797
18860
 
18798
18861
 
18862
+
18863
+
18799
18864
  let GameReaderViewModel = (() => {
18800
18865
  var _a, _GameReaderViewModel__isOpened_accessor_storage, _GameReaderViewModel__isGameInited_accessor_storage, _GameReaderViewModel__isGameLoading_accessor_storage, _GameReaderViewModel__game_accessor_storage, _GameReaderViewModel__gameError_accessor_storage, _GameReaderViewModel__closeBtnVisible_accessor_storage, _GameReaderViewModel__gameShouldBeShown_accessor_storage;
18801
18866
  let _classSuper = ViewModel;
@@ -18824,7 +18889,10 @@ let GameReaderViewModel = (() => {
18824
18889
  let _get_needApplySafeAreaInsets_decorators;
18825
18890
  let _get_closeBtnVisible_decorators;
18826
18891
  let _get_dir_decorators;
18892
+ let ___sdkPrivateOpenGameCustomScreen_decorators;
18827
18893
  let _openGame_decorators;
18894
+ let _openGameWithLaunch_decorators;
18895
+ let _launchGameFromDto_decorators;
18828
18896
  let _initGame_decorators;
18829
18897
  let _closeGame_decorators;
18830
18898
  let _reloadGame_decorators;
@@ -18940,7 +19008,7 @@ let GameReaderViewModel = (() => {
18940
19008
  return !gameRequestFullscreen && webviewInFullscreen;
18941
19009
  }
18942
19010
  get closeBtnVisible() {
18943
- return this._closeBtnVisible;
19011
+ return this.storyManager.config.gameCloseButtonBehaviour !== GameCloseButtonBehavior.Hidden && (!this.gameShouldBeShown || this._closeBtnVisible);
18944
19012
  }
18945
19013
  get isGameLoading() {
18946
19014
  return this._isGameLoading;
@@ -18964,21 +19032,24 @@ let GameReaderViewModel = (() => {
18964
19032
  var _b, _c;
18965
19033
  return (_c = (_b = this.game) === null || _b === void 0 ? void 0 : _b.languageDirection) !== null && _c !== void 0 ? _c : this.storyManager.config.dir;
18966
19034
  }
19035
+ async __sdkPrivateOpenGameCustomScreen(gameDto) {
19036
+ await this.openGameWithLaunch(GAME_CUSTOM_SCREEN_PREVIEW_ID, () => this.launchGameFromDto(GAME_CUSTOM_SCREEN_PREVIEW_ID, gameDto));
19037
+ }
18967
19038
  async openGame(gameInstanceId, options = {}) {
18968
- gameInstanceId = String(gameInstanceId);
19039
+ const id = String(gameInstanceId);
19040
+ await this.openGameWithLaunch(id, () => this.launchGameById(id, options));
19041
+ }
19042
+ async openGameWithLaunch(gameInstanceId, launchGame) {
18969
19043
  if (this.isOpenGameInProgress || this.preventReopen(gameInstanceId))
18970
19044
  return;
18971
19045
  try {
18972
19046
  this.isOpenGameInProgress = true;
18973
- await this.ensureCanOpen(gameInstanceId);
18974
- await this.launchGameById(gameInstanceId, options);
19047
+ this.ensureCanOpen(gameInstanceId);
19048
+ await launchGame();
18975
19049
  this._isOpened = true;
18976
19050
  this._gameShouldBeShown = false;
18977
19051
  this.scrollbarHelper.hide();
18978
19052
  }
18979
- catch (error) {
18980
- throw error;
18981
- }
18982
19053
  finally {
18983
19054
  this.isOpenGameInProgress = false;
18984
19055
  }
@@ -18987,13 +19058,13 @@ let GameReaderViewModel = (() => {
18987
19058
  var _b;
18988
19059
  if (id !== ((_b = this.game) === null || _b === void 0 ? void 0 : _b.id))
18989
19060
  return false;
18990
- console.warn(`[IAS]: Prevented reopening of game with ID ${id}`);
19061
+ console.warn(`[IAS]: Prevented reopening of game with ID ${String(id)}`);
18991
19062
  return true;
18992
19063
  }
18993
- async ensureCanOpen(gameInstanceId) {
19064
+ ensureCanOpen(gameInstanceId) {
18994
19065
  const config = this.storyManager.config;
18995
19066
  if (config.anonymous) {
18996
- console.warn(`[IAS]: You can't open game ${gameInstanceId} in anonymous access mode`);
19067
+ console.warn(`[IAS]: You can't open game ${String(gameInstanceId)} in anonymous access mode`);
18997
19068
  throw new IasGameAnonymousOpen(gameInstanceId);
18998
19069
  }
18999
19070
  if (this.game)
@@ -19009,6 +19080,12 @@ let GameReaderViewModel = (() => {
19009
19080
  });
19010
19081
  this._game = new Game(gameInstanceId, this.storyManager, gameDto, options);
19011
19082
  }
19083
+ async launchGameFromDto(gameInstanceId, gameDto) {
19084
+ this._gameError = null;
19085
+ this._isGameLoading = true;
19086
+ await this.storyManager.rootStore.sessionStore.open();
19087
+ this._game = new Game(gameInstanceId, this.storyManager, gameDto, {});
19088
+ }
19012
19089
  async initGame(iframe, params) {
19013
19090
  if (!this._game)
19014
19091
  throw new IasNoOpenedGameError();
@@ -19059,7 +19136,12 @@ let GameReaderViewModel = (() => {
19059
19136
  this._game = null;
19060
19137
  if (!game)
19061
19138
  throw new IasNoOpenedGameError();
19062
- await this.launchGameById(game.id, game.options);
19139
+ if (isGameCustomScreenPreviewId(game.id)) {
19140
+ await this.launchGameFromDto(game.id, game.gameDto);
19141
+ }
19142
+ else {
19143
+ await this.launchGameById(game.id, game.options);
19144
+ }
19063
19145
  }
19064
19146
  handleGameLoadError(error) {
19065
19147
  if (error instanceof GameLoadFailedError && error.canTryReload && this.canRestartGame()) {
@@ -19208,7 +19290,10 @@ let GameReaderViewModel = (() => {
19208
19290
  _get_needApplySafeAreaInsets_decorators = [__WEBPACK_EXTERNAL_MODULE_mobx_computed__];
19209
19291
  _get_closeBtnVisible_decorators = [__WEBPACK_EXTERNAL_MODULE_mobx_computed__];
19210
19292
  _get_dir_decorators = [__WEBPACK_EXTERNAL_MODULE_mobx_computed__];
19293
+ ___sdkPrivateOpenGameCustomScreen_decorators = [__WEBPACK_EXTERNAL_MODULE_mobx_action__];
19211
19294
  _openGame_decorators = [__WEBPACK_EXTERNAL_MODULE_mobx_action__];
19295
+ _openGameWithLaunch_decorators = [__WEBPACK_EXTERNAL_MODULE_mobx_action__];
19296
+ _launchGameFromDto_decorators = [__WEBPACK_EXTERNAL_MODULE_mobx_action__];
19212
19297
  _initGame_decorators = [__WEBPACK_EXTERNAL_MODULE_mobx_action__];
19213
19298
  _closeGame_decorators = [__WEBPACK_EXTERNAL_MODULE_mobx_action__];
19214
19299
  _reloadGame_decorators = [__WEBPACK_EXTERNAL_MODULE_mobx_action__];
@@ -19226,7 +19311,10 @@ let GameReaderViewModel = (() => {
19226
19311
  gameReaderViewModel_esDecorate(_a, null, _get_needApplySafeAreaInsets_decorators, { kind: "getter", name: "needApplySafeAreaInsets", static: false, private: false, access: { has: obj => "needApplySafeAreaInsets" in obj, get: obj => obj.needApplySafeAreaInsets }, metadata: _metadata }, null, _instanceExtraInitializers);
19227
19312
  gameReaderViewModel_esDecorate(_a, null, _get_closeBtnVisible_decorators, { kind: "getter", name: "closeBtnVisible", static: false, private: false, access: { has: obj => "closeBtnVisible" in obj, get: obj => obj.closeBtnVisible }, metadata: _metadata }, null, _instanceExtraInitializers);
19228
19313
  gameReaderViewModel_esDecorate(_a, null, _get_dir_decorators, { kind: "getter", name: "dir", static: false, private: false, access: { has: obj => "dir" in obj, get: obj => obj.dir }, metadata: _metadata }, null, _instanceExtraInitializers);
19314
+ gameReaderViewModel_esDecorate(_a, null, ___sdkPrivateOpenGameCustomScreen_decorators, { kind: "method", name: "__sdkPrivateOpenGameCustomScreen", static: false, private: false, access: { has: obj => "__sdkPrivateOpenGameCustomScreen" in obj, get: obj => obj.__sdkPrivateOpenGameCustomScreen }, metadata: _metadata }, null, _instanceExtraInitializers);
19229
19315
  gameReaderViewModel_esDecorate(_a, null, _openGame_decorators, { kind: "method", name: "openGame", static: false, private: false, access: { has: obj => "openGame" in obj, get: obj => obj.openGame }, metadata: _metadata }, null, _instanceExtraInitializers);
19316
+ gameReaderViewModel_esDecorate(_a, null, _openGameWithLaunch_decorators, { kind: "method", name: "openGameWithLaunch", static: false, private: false, access: { has: obj => "openGameWithLaunch" in obj, get: obj => obj.openGameWithLaunch }, metadata: _metadata }, null, _instanceExtraInitializers);
19317
+ gameReaderViewModel_esDecorate(_a, null, _launchGameFromDto_decorators, { kind: "method", name: "launchGameFromDto", static: false, private: false, access: { has: obj => "launchGameFromDto" in obj, get: obj => obj.launchGameFromDto }, metadata: _metadata }, null, _instanceExtraInitializers);
19230
19318
  gameReaderViewModel_esDecorate(_a, null, _initGame_decorators, { kind: "method", name: "initGame", static: false, private: false, access: { has: obj => "initGame" in obj, get: obj => obj.initGame }, metadata: _metadata }, null, _instanceExtraInitializers);
19231
19319
  gameReaderViewModel_esDecorate(_a, null, _closeGame_decorators, { kind: "method", name: "closeGame", static: false, private: false, access: { has: obj => "closeGame" in obj, get: obj => obj.closeGame }, metadata: _metadata }, null, _instanceExtraInitializers);
19232
19320
  gameReaderViewModel_esDecorate(_a, null, _reloadGame_decorators, { kind: "method", name: "reloadGame", static: false, private: false, access: { has: obj => "reloadGame" in obj, get: obj => obj.reloadGame }, metadata: _metadata }, null, _instanceExtraInitializers);
@@ -19427,6 +19515,7 @@ class GameGeometryFactory {
19427
19515
 
19428
19516
 
19429
19517
 
19518
+
19430
19519
  ;// ../core/src/readers/stackedStoryList/stackFeedStoryViewModel.ts
19431
19520
  class StackFeedStory {
19432
19521
  constructor(story, storyFeed) {
@@ -22028,7 +22117,7 @@ class UgcEditorStore {
22028
22117
  const session = await this.storyManager.rootStore.sessionStore.open();
22029
22118
  const ugcEditorConfigDto = await this.ugcEditorApi.fetchUgcEditorConfig();
22030
22119
  const storyManagerConfig = this.storyManager.config;
22031
- const sdkVersion = "1.16.0";
22120
+ const sdkVersion = "1.16.2";
22032
22121
  this._config = {
22033
22122
  sessionId: session.id,
22034
22123
  apiKey: storyManagerConfig.apiKey,
@@ -22488,11 +22577,11 @@ class StoryManager extends TypedEventEmitter {
22488
22577
  return deviceDescriptor.deviceId;
22489
22578
  }
22490
22579
  get sdkVersionName() {
22491
- const sdkVersionName = "1.16.0";
22580
+ const sdkVersionName = "1.16.2";
22492
22581
  return sdkVersionName || "0.0.0";
22493
22582
  }
22494
22583
  get sdkVersionCode() {
22495
- const sdkVersionCode = 11600;
22584
+ const sdkVersionCode = 11602;
22496
22585
  return sdkVersionCode ? parseInt(sdkVersionCode) : 0;
22497
22586
  }
22498
22587
  get lang() {
@@ -22556,7 +22645,7 @@ class StoryManager extends TypedEventEmitter {
22556
22645
  this.rootStore.storyManagerConfigStore.setConfig(configDto);
22557
22646
  }
22558
22647
  setUserAgent(userAgent) {
22559
- const sdkVersionCode = 11600;
22648
+ const sdkVersionCode = 11602;
22560
22649
  const buildVersion = sdkVersionCode ? parseInt(sdkVersionCode) : 0;
22561
22650
  // According to RFC5987, HTTP header values can legitimately be supplied using the ISO-8859-1 encoding.
22562
22651
  this._userAgent = `${userAgent} ${convertStrToLatin1(navigator.userAgent)}`;
@@ -22595,6 +22684,9 @@ class StoryManager extends TypedEventEmitter {
22595
22684
  async openGame(gameInstanceId, gameOptions = {}) {
22596
22685
  await this.gameReader.openGame(gameInstanceId, gameOptions);
22597
22686
  }
22687
+ async __sdkPrivateOpenGameCustomScreen(gameDto) {
22688
+ await this.gameReader.__sdkPrivateOpenGameCustomScreen(gameDto);
22689
+ }
22598
22690
  async closeGame() {
22599
22691
  return this.gameReader.closeGame();
22600
22692
  }
@@ -24630,7 +24722,7 @@ const GameReader = __WEBPACK_EXTERNAL_MODULE_mobx_react_lite_9dacf130_observer__
24630
24722
  filter: ((_f = options.backdrop) === null || _f === void 0 ? void 0 : _f.blur) ? `blur(${options.backdrop.blur}px)` : "none"
24631
24723
  };
24632
24724
  const backdropColor = (_h = (_g = options.game) === null || _g === void 0 ? void 0 : _g.backdropColor) !== null && _h !== void 0 ? _h : "";
24633
- return __WEBPACK_EXTERNAL_MODULE_react_dom_7dac9eee_createPortal__(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsx__("div", { className: gameReader_module/* game-reader-container */.Pe, style: getRootStyle(), children: __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsxs__("div", { className: gameReaderClasses, style: gameReaderSafeAreaStyle, children: [__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsx__("div", { className: gameReader_module/* game-reader__backdrop */.fN, style: gameBackdropStyle }), __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsxs__(AspectRatioBox, { className: gameReader_module/* game-reader__game-box */.F2, isWidescreen: isWidescreen, geometry: gameGeometry, children: [__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsx__(GameSplashScreen_GameSplashScreen, { onSplashCanBeHidden: notifyGameCanBeStarted, isDesktopGeometry: isDesktopGeometry, isWidescreen: isWidescreen, isGameInited: gameReader.isGameInited, isGameLoading: isGameLoading, isGameLoadingError: Boolean(gameReader.gameError), gameShouldBeShown: gameReader.gameShouldBeShown, game: (_j = gameReader.game) !== null && _j !== void 0 ? _j : undefined, splashImageBackgroundColor: gameReader.game ? backdropColor : gameBackdropStyle.background }), gameError && (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsx__(RefreshIcon, { className: gameReader_module/* game-reader__refresh-btn */.JF, onClick: retryLoadingGame })), (!gameReader.gameShouldBeShown || closeBtnVisible) && (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsx__(CloseButton, { closeButtonPosition: options.closeButtonPosition, dir: gameReader.dir, onCloseGame: closeGame, closeButtonOptions: options.closeButton })), game && (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsxs__(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_Fragment__, { children: [__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsx__("iframe", { src: game.url, onLoad: handleIframeLoaded, style: { opacity: gameReader.gameShouldBeShown ? 1 : 0 }, frameBorder: "0", className: gameReader_module/* game-reader__iframe */.be, sandbox: "allow-same-origin allow-top-navigation allow-forms allow-scripts allow-downloads allow-top-navigation-to-custom-protocols", allow: "fullscreen" }), sharePanelOpeningParams && (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsx__(SharePanel, { dir: gameReader.dir, shareText: sharePanelOpeningParams.shareText, shareType: sharePanelOpeningParams.shareType, shareLink: sharePanelOpeningParams.shareLink, onShareCompelete: handleShareComplete, sharePanelOptions: options.sharePanel }))] }))] }), game && options.forceCheckOrientation && (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsx__(ScreenOrientationLock, { orientation: SCREEN_ORIENTATIONS.PORTRAIT_PRIMARY, onOrientationChange: handleOrientationChange }))] }) }), document.body);
24725
+ return __WEBPACK_EXTERNAL_MODULE_react_dom_7dac9eee_createPortal__(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsx__("div", { className: gameReader_module/* game-reader-container */.Pe, style: getRootStyle(), children: __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsxs__("div", { className: gameReaderClasses, style: gameReaderSafeAreaStyle, children: [__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsx__("div", { className: gameReader_module/* game-reader__backdrop */.fN, style: gameBackdropStyle }), __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsxs__(AspectRatioBox, { className: gameReader_module/* game-reader__game-box */.F2, isWidescreen: isWidescreen, geometry: gameGeometry, children: [__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsx__(GameSplashScreen_GameSplashScreen, { onSplashCanBeHidden: notifyGameCanBeStarted, isDesktopGeometry: isDesktopGeometry, isWidescreen: isWidescreen, isGameInited: gameReader.isGameInited, isGameLoading: isGameLoading, isGameLoadingError: Boolean(gameReader.gameError), gameShouldBeShown: gameReader.gameShouldBeShown, game: (_j = gameReader.game) !== null && _j !== void 0 ? _j : undefined, splashImageBackgroundColor: gameReader.game ? backdropColor : gameBackdropStyle.background }), gameError && (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsx__(RefreshIcon, { className: gameReader_module/* game-reader__refresh-btn */.JF, onClick: retryLoadingGame })), closeBtnVisible && (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsx__(CloseButton, { closeButtonPosition: options.closeButtonPosition, dir: gameReader.dir, onCloseGame: closeGame, closeButtonOptions: options.closeButton })), game && (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsxs__(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_Fragment__, { children: [__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsx__("iframe", { src: game.url, onLoad: handleIframeLoaded, style: { opacity: gameReader.gameShouldBeShown ? 1 : 0 }, frameBorder: "0", className: gameReader_module/* game-reader__iframe */.be, sandbox: "allow-same-origin allow-top-navigation allow-forms allow-scripts allow-downloads allow-top-navigation-to-custom-protocols", allow: "fullscreen" }), sharePanelOpeningParams && (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsx__(SharePanel, { dir: gameReader.dir, shareText: sharePanelOpeningParams.shareText, shareType: sharePanelOpeningParams.shareType, shareLink: sharePanelOpeningParams.shareLink, onShareCompelete: handleShareComplete, sharePanelOptions: options.sharePanel }))] }))] }), game && options.forceCheckOrientation && (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8_jsx__(ScreenOrientationLock, { orientation: SCREEN_ORIENTATIONS.PORTRAIT_PRIMARY, onOrientationChange: handleOrientationChange }))] }) }), document.body);
24634
24726
  });
24635
24727
 
24636
24728
  ;// ./src/GameReader/index.ts