@ninetailed/experience.js-plugin-preview 7.9.2 → 7.9.4-beta.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/index.cjs.js +3 -2
- package/index.esm.js +3 -2
- package/package.json +5 -5
- package/src/lib/plugin/WidgetContainer.d.ts +1 -1
package/index.cjs.js
CHANGED
|
@@ -80,6 +80,7 @@ class WidgetContainer {
|
|
|
80
80
|
this.container.style.bottom = `${BUTTON_BOTTOM_POSITION}px`;
|
|
81
81
|
this.container.style.width = `${CONTAINER_WIDTH}px`;
|
|
82
82
|
this.container.style.height = `${BUTTON_HEIGHT}px`;
|
|
83
|
+
this.container.style.overflow = 'hidden';
|
|
83
84
|
if ((_b = (_a = options.ui) === null || _a === void 0 ? void 0 : _a.opener) === null || _b === void 0 ? void 0 : _b.hide) {
|
|
84
85
|
this.container.style.transform = TRANSFORM_CLOSED_HIDE;
|
|
85
86
|
} else {
|
|
@@ -313,7 +314,7 @@ class NinetailedPreviewPlugin extends experience_jsPluginAnalytics.NinetailedPlu
|
|
|
313
314
|
return;
|
|
314
315
|
}
|
|
315
316
|
if (!this.isKnownAudience(id)) {
|
|
316
|
-
experience_jsShared.logger.warn(`You cannot deactivate an
|
|
317
|
+
experience_jsShared.logger.warn(`You cannot deactivate an unknown audience (id: ${id}). How did you get it in the first place?`);
|
|
317
318
|
return;
|
|
318
319
|
}
|
|
319
320
|
this.experienceVariantIndexOverwrites = Object.entries(this.experienceVariantIndexOverwrites).filter(([key, _]) => {
|
|
@@ -418,7 +419,7 @@ class NinetailedPreviewPlugin extends experience_jsPluginAnalytics.NinetailedPlu
|
|
|
418
419
|
get pluginApi() {
|
|
419
420
|
var _b;
|
|
420
421
|
return {
|
|
421
|
-
version: "7.9.
|
|
422
|
+
version: "7.9.4-beta.0" ,
|
|
422
423
|
open: this.open.bind(this),
|
|
423
424
|
close: this.close.bind(this),
|
|
424
425
|
toggle: this.toggle.bind(this),
|
package/index.esm.js
CHANGED
|
@@ -49,6 +49,7 @@ class WidgetContainer {
|
|
|
49
49
|
this.container.style.bottom = `${BUTTON_BOTTOM_POSITION}px`;
|
|
50
50
|
this.container.style.width = `${CONTAINER_WIDTH}px`;
|
|
51
51
|
this.container.style.height = `${BUTTON_HEIGHT}px`;
|
|
52
|
+
this.container.style.overflow = 'hidden';
|
|
52
53
|
if ((_options$ui = options.ui) != null && (_options$ui = _options$ui.opener) != null && _options$ui.hide) {
|
|
53
54
|
this.container.style.transform = TRANSFORM_CLOSED_HIDE;
|
|
54
55
|
} else {
|
|
@@ -285,7 +286,7 @@ class NinetailedPreviewPlugin extends NinetailedPlugin {
|
|
|
285
286
|
return;
|
|
286
287
|
}
|
|
287
288
|
if (!this.isKnownAudience(id)) {
|
|
288
|
-
logger.warn(`You cannot deactivate an
|
|
289
|
+
logger.warn(`You cannot deactivate an unknown audience (id: ${id}). How did you get it in the first place?`);
|
|
289
290
|
return;
|
|
290
291
|
}
|
|
291
292
|
this.experienceVariantIndexOverwrites = Object.entries(this.experienceVariantIndexOverwrites).filter(([key, _]) => {
|
|
@@ -386,7 +387,7 @@ class NinetailedPreviewPlugin extends NinetailedPlugin {
|
|
|
386
387
|
get pluginApi() {
|
|
387
388
|
var _this$profile;
|
|
388
389
|
return {
|
|
389
|
-
version: "7.9.
|
|
390
|
+
version: "7.9.4-beta.0" ,
|
|
390
391
|
open: this.open.bind(this),
|
|
391
392
|
close: this.close.bind(this),
|
|
392
393
|
toggle: this.toggle.bind(this),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ninetailed/experience.js-plugin-preview",
|
|
3
|
-
"version": "7.9.
|
|
3
|
+
"version": "7.9.4-beta.0",
|
|
4
4
|
"description": "Ninetailed SDK plugin for preview",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"a/b testing"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@ninetailed/experience.js-shared": "7.9.
|
|
19
|
-
"@ninetailed/experience.js": "7.9.
|
|
20
|
-
"@ninetailed/experience.js-preview-bridge": "7.9.
|
|
21
|
-
"@ninetailed/experience.js-plugin-analytics": "7.9.
|
|
18
|
+
"@ninetailed/experience.js-shared": "7.9.4-beta.0",
|
|
19
|
+
"@ninetailed/experience.js": "7.9.4-beta.0",
|
|
20
|
+
"@ninetailed/experience.js-preview-bridge": "7.9.4-beta.0",
|
|
21
|
+
"@ninetailed/experience.js-plugin-analytics": "7.9.4-beta.0"
|
|
22
22
|
},
|
|
23
23
|
"module": "./index.esm.js",
|
|
24
24
|
"main": "./index.cjs.js"
|
|
@@ -8,7 +8,7 @@ type WidgetContainerOptions = {
|
|
|
8
8
|
export declare class WidgetContainer {
|
|
9
9
|
private readonly options;
|
|
10
10
|
private static CONTAINER_CLASS;
|
|
11
|
-
private container;
|
|
11
|
+
private readonly container;
|
|
12
12
|
constructor(options: WidgetContainerOptions);
|
|
13
13
|
open(): void;
|
|
14
14
|
close(): void;
|