@inappstory/react-sdk 1.8.0-rc.12 → 1.8.0-rc.13
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 +47 -13
- package/dist/index.esm.mjs.map +1 -1
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.esm.mjs
CHANGED
|
@@ -2406,11 +2406,39 @@ function queryCache(originalMethod, context) {
|
|
|
2406
2406
|
};
|
|
2407
2407
|
}
|
|
2408
2408
|
|
|
2409
|
+
;// CONCATENATED MODULE: ../core/src/helpers/decorators/safeCustomElement.ts
|
|
2410
|
+
/**
|
|
2411
|
+
* HMR-safe version of @customElement
|
|
2412
|
+
* Prevents an error when re-registering a component.
|
|
2413
|
+
*/
|
|
2414
|
+
function safeCustomElement(tagName) {
|
|
2415
|
+
return function (classDef, context) {
|
|
2416
|
+
const defineIfNeeded = (ctor) => {
|
|
2417
|
+
if (!customElements.get(tagName)) {
|
|
2418
|
+
customElements.define(tagName, ctor);
|
|
2419
|
+
}
|
|
2420
|
+
else {
|
|
2421
|
+
console.warn(`[IAS] Element "${tagName}" is already registered. Skipping re-definition`);
|
|
2422
|
+
}
|
|
2423
|
+
};
|
|
2424
|
+
// New decorator specification: context is available and has addInitializer
|
|
2425
|
+
if (context && typeof context.addInitializer === "function") {
|
|
2426
|
+
context.addInitializer(() => defineIfNeeded(classDef));
|
|
2427
|
+
}
|
|
2428
|
+
else {
|
|
2429
|
+
// Legacy-style decorators: just call define right away
|
|
2430
|
+
defineIfNeeded(classDef);
|
|
2431
|
+
}
|
|
2432
|
+
return classDef;
|
|
2433
|
+
};
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2409
2436
|
;// CONCATENATED MODULE: ../core/src/helpers/decorators/index.ts
|
|
2410
2437
|
|
|
2411
2438
|
|
|
2412
2439
|
|
|
2413
2440
|
|
|
2441
|
+
|
|
2414
2442
|
;// CONCATENATED MODULE: ../core/src/helpers/encodeSvg.ts
|
|
2415
2443
|
const symbols = /[\r\n%#()<>?[\\\]^`{|}]/g;
|
|
2416
2444
|
function encodeSVG(data, externalQuotesValue = "double") {
|
|
@@ -10707,7 +10735,7 @@ class GameClientConfig {
|
|
|
10707
10735
|
value: void 0
|
|
10708
10736
|
});
|
|
10709
10737
|
const storyManagerConfig = this.storyManager.config;
|
|
10710
|
-
const sdkVersion = "1.8.0-rc.
|
|
10738
|
+
const sdkVersion = "1.8.0-rc.13";
|
|
10711
10739
|
const placeholders = this.storyManager.rootStore.placeholderStore.placeholders;
|
|
10712
10740
|
const session = this.storyManager.rootStore.sessionStore.session;
|
|
10713
10741
|
this.sessionId = session.id;
|
|
@@ -20980,7 +21008,7 @@ class UgcEditorStore {
|
|
|
20980
21008
|
const session = await this.storyManager.rootStore.sessionStore.open();
|
|
20981
21009
|
const ugcEditorConfigDto = await this.ugcEditorApi.fetchUgcEditorConfig();
|
|
20982
21010
|
const storyManagerConfig = this.storyManager.config;
|
|
20983
|
-
const sdkVersion = "1.8.0-rc.
|
|
21011
|
+
const sdkVersion = "1.8.0-rc.13";
|
|
20984
21012
|
this._config = {
|
|
20985
21013
|
sessionId: session.id,
|
|
20986
21014
|
apiKey: storyManagerConfig.apiKey,
|
|
@@ -21411,7 +21439,7 @@ class StoryManager extends TypedEventEmitter {
|
|
|
21411
21439
|
return this._userAgent;
|
|
21412
21440
|
}
|
|
21413
21441
|
get sdkVersionName() {
|
|
21414
|
-
const sdkVersionName = "1.8.0-rc.
|
|
21442
|
+
const sdkVersionName = "1.8.0-rc.13";
|
|
21415
21443
|
return sdkVersionName || "0.0.0";
|
|
21416
21444
|
}
|
|
21417
21445
|
get sdkVersionCode() {
|
|
@@ -26854,7 +26882,7 @@ var decorators_js_x = (y) => {
|
|
|
26854
26882
|
var x = {}; __webpack_require__.d(x, y); return x
|
|
26855
26883
|
}
|
|
26856
26884
|
var decorators_js_y = (x) => (() => (x))
|
|
26857
|
-
const decorators_js_namespaceObject = decorators_js_x({ ["
|
|
26885
|
+
const decorators_js_namespaceObject = decorators_js_x({ ["property"]: () => (__WEBPACK_EXTERNAL_MODULE_lit_decorators_js_226d44c5__.property), ["query"]: () => (__WEBPACK_EXTERNAL_MODULE_lit_decorators_js_226d44c5__.query), ["state"]: () => (__WEBPACK_EXTERNAL_MODULE_lit_decorators_js_226d44c5__.state) });
|
|
26858
26886
|
;// CONCATENATED MODULE: ./src/InAppMessaging/controllers/viewportController.ts
|
|
26859
26887
|
class ViewportController {
|
|
26860
26888
|
constructor(host) {
|
|
@@ -27064,7 +27092,7 @@ var BottomSheet_classPrivateFieldSet = (undefined && undefined.__classPrivateFie
|
|
|
27064
27092
|
|
|
27065
27093
|
let BottomSheet = (() => {
|
|
27066
27094
|
var _BottomSheet_open_accessor_storage, _BottomSheet_disableClose_accessor_storage, _BottomSheet_geometry_accessor_storage, _BottomSheet_appearanceOptions_accessor_storage, _BottomSheet_touchController_accessor_storage, _BottomSheet_desktopMode_accessor_storage, _BottomSheet_isVisible_accessor_storage, _BottomSheet_isClosed_accessor_storage, _BottomSheet_backdropRef_accessor_storage, _BottomSheet_bottomSheetBoxRef_accessor_storage, _BottomSheet_bottomSheetRef_accessor_storage;
|
|
27067
|
-
let _classDecorators = [(
|
|
27095
|
+
let _classDecorators = [safeCustomElement("iam-bottom-sheet")];
|
|
27068
27096
|
let _classDescriptor;
|
|
27069
27097
|
let _classExtraInitializers = [];
|
|
27070
27098
|
let _classThis;
|
|
@@ -27343,9 +27371,10 @@ var ModalCloseButton_classPrivateFieldSet = (undefined && undefined.__classPriva
|
|
|
27343
27371
|
|
|
27344
27372
|
|
|
27345
27373
|
|
|
27374
|
+
|
|
27346
27375
|
let Modal = (() => {
|
|
27347
27376
|
var _Modal_closeBtnPosition_accessor_storage, _Modal_dir_accessor_storage;
|
|
27348
|
-
let _classDecorators = [(
|
|
27377
|
+
let _classDecorators = [safeCustomElement("iam-modal-close-btn")];
|
|
27349
27378
|
let _classDescriptor;
|
|
27350
27379
|
let _classExtraInitializers = [];
|
|
27351
27380
|
let _classThis;
|
|
@@ -27463,9 +27492,10 @@ var Modal_classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet)
|
|
|
27463
27492
|
|
|
27464
27493
|
const ANIMATION_DURATION = 350;
|
|
27465
27494
|
|
|
27495
|
+
|
|
27466
27496
|
let Modal_Modal = (() => {
|
|
27467
27497
|
var _Modal_open_accessor_storage, _Modal_disableClose_accessor_storage, _Modal_fullscreen_accessor_storage, _Modal_geometry_accessor_storage, _Modal_appearanceOptions_accessor_storage, _Modal_dir_accessor_storage, _Modal_isVisible_accessor_storage, _Modal_isClosed_accessor_storage, _Modal_backdropRef_accessor_storage;
|
|
27468
|
-
let _classDecorators = [(
|
|
27498
|
+
let _classDecorators = [safeCustomElement("iam-modal")];
|
|
27469
27499
|
let _classDescriptor;
|
|
27470
27500
|
let _classExtraInitializers = [];
|
|
27471
27501
|
let _classThis;
|
|
@@ -27715,9 +27745,10 @@ var FullscreenModal_classPrivateFieldSet = (undefined && undefined.__classPrivat
|
|
|
27715
27745
|
|
|
27716
27746
|
|
|
27717
27747
|
|
|
27748
|
+
|
|
27718
27749
|
let FullscreenModal = (() => {
|
|
27719
27750
|
var _FullscreenModal_open_accessor_storage, _FullscreenModal_geometry_accessor_storage, _FullscreenModal_appearanceOptions_accessor_storage;
|
|
27720
|
-
let _classDecorators = [(
|
|
27751
|
+
let _classDecorators = [safeCustomElement("iam-fullscreen-modal")];
|
|
27721
27752
|
let _classDescriptor;
|
|
27722
27753
|
let _classExtraInitializers = [];
|
|
27723
27754
|
let _classThis;
|
|
@@ -27834,9 +27865,10 @@ var MessageViewFactory_classPrivateFieldSet = (undefined && undefined.__classPri
|
|
|
27834
27865
|
|
|
27835
27866
|
|
|
27836
27867
|
|
|
27868
|
+
|
|
27837
27869
|
let MessageViewFactory = (() => {
|
|
27838
27870
|
var _MessageViewFactory_appearanceOptions_accessor_storage, _MessageViewFactory_type_accessor_storage, _MessageViewFactory_open_accessor_storage, _MessageViewFactory_disableClose_accessor_storage, _MessageViewFactory_geometry_accessor_storage, _MessageViewFactory_touchController_accessor_storage, _MessageViewFactory_desktopMode_accessor_storage, _MessageViewFactory_dir_accessor_storage;
|
|
27839
|
-
let _classDecorators = [(
|
|
27871
|
+
let _classDecorators = [safeCustomElement("message-view-factory")];
|
|
27840
27872
|
let _classDescriptor;
|
|
27841
27873
|
let _classExtraInitializers = [];
|
|
27842
27874
|
let _classThis;
|
|
@@ -28017,7 +28049,7 @@ var MessageSlide_classPrivateFieldSet = (undefined && undefined.__classPrivateFi
|
|
|
28017
28049
|
|
|
28018
28050
|
let MessageSlide = (() => {
|
|
28019
28051
|
var _MessageSlide_message_accessor_storage, _MessageSlide_styleContext_accessor_storage, _MessageSlide_geometry_accessor_storage, _MessageSlide_slidesContainer_accessor_storage;
|
|
28020
|
-
let _classDecorators = [(
|
|
28052
|
+
let _classDecorators = [safeCustomElement("message-slide")];
|
|
28021
28053
|
let _classDescriptor;
|
|
28022
28054
|
let _classExtraInitializers = [];
|
|
28023
28055
|
let _classThis;
|
|
@@ -28173,9 +28205,10 @@ var RefreshIcon_classPrivateFieldSet = (undefined && undefined.__classPrivateFie
|
|
|
28173
28205
|
};
|
|
28174
28206
|
|
|
28175
28207
|
|
|
28208
|
+
|
|
28176
28209
|
let RefreshIcon_RefreshIcon = (() => {
|
|
28177
28210
|
var _RefreshIcon_className_accessor_storage;
|
|
28178
|
-
let _classDecorators = [(
|
|
28211
|
+
let _classDecorators = [safeCustomElement("iam-refresh-icon")];
|
|
28179
28212
|
let _classDescriptor;
|
|
28180
28213
|
let _classExtraInitializers = [];
|
|
28181
28214
|
let _classThis;
|
|
@@ -28275,9 +28308,10 @@ var Loader_classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet
|
|
|
28275
28308
|
|
|
28276
28309
|
|
|
28277
28310
|
|
|
28311
|
+
|
|
28278
28312
|
let Loader_Loader = (() => {
|
|
28279
28313
|
var _Loader_background_accessor_storage, _Loader_color_accessor_storage, _Loader_needShowErrorScreen_accessor_storage, _Loader_needShowLoaderScreen_accessor_storage;
|
|
28280
|
-
let _classDecorators = [(
|
|
28314
|
+
let _classDecorators = [safeCustomElement("iam-loader")];
|
|
28281
28315
|
let _classDescriptor;
|
|
28282
28316
|
let _classExtraInitializers = [];
|
|
28283
28317
|
let _classThis;
|
|
@@ -28426,7 +28460,7 @@ var InAppMessagingReader_classPrivateFieldSet = (undefined && undefined.__classP
|
|
|
28426
28460
|
|
|
28427
28461
|
let InAppMessagingReader = (() => {
|
|
28428
28462
|
var _InAppMessagingReader_options_accessor_storage, _InAppMessagingReader_desktopMode_accessor_storage, _InAppMessagingReader_dir_accessor_storage, _InAppMessagingReader_viewModel_accessor_storage, _InAppMessagingReader_open_accessor_storage;
|
|
28429
|
-
let _classDecorators = [(
|
|
28463
|
+
let _classDecorators = [safeCustomElement("iam-reader"), mobxObserver];
|
|
28430
28464
|
let _classDescriptor;
|
|
28431
28465
|
let _classExtraInitializers = [];
|
|
28432
28466
|
let _classThis;
|