@ninetailed/experience.js-plugin-preview 7.13.0 → 7.14.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.
package/index.cjs.js
CHANGED
|
@@ -132,6 +132,7 @@ class NinetailedPreviewPlugin extends experience_jsPluginAnalytics.NinetailedPlu
|
|
|
132
132
|
this.profile = null;
|
|
133
133
|
this.changes = [];
|
|
134
134
|
this.container = null;
|
|
135
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
135
136
|
this.bridge = null;
|
|
136
137
|
/**
|
|
137
138
|
* Since several instances of the plugin can be created, we need to make sure only one is marked as active.
|
|
@@ -541,7 +542,11 @@ class NinetailedPreviewPlugin extends experience_jsPluginAnalytics.NinetailedPlu
|
|
|
541
542
|
openExperienceEditor(experience) {
|
|
542
543
|
if (this.onOpenExperienceEditor && typeof this.onOpenExperienceEditor === 'function') return this.onOpenExperienceEditor(experience);
|
|
543
544
|
}
|
|
545
|
+
/**
|
|
546
|
+
* @deprecated This method will be removed in a future release. Use `openExperienceEditor` instead to see the experience insights.
|
|
547
|
+
*/
|
|
544
548
|
openExperienceAnalytics(experience) {
|
|
549
|
+
experience_jsShared.logger.warn('The `openExperienceAnalytics` method is deprecated and will be removed in a future release. Use `openExperienceEditor` instead to see the experience insights.');
|
|
545
550
|
window.open(`https://app.ninetailed.io/${this.clientId}/${this.environment}/experiences/${experience.id}`, '_blank');
|
|
546
551
|
}
|
|
547
552
|
openAudienceEditor(audience) {
|
|
@@ -550,7 +555,7 @@ class NinetailedPreviewPlugin extends experience_jsPluginAnalytics.NinetailedPlu
|
|
|
550
555
|
get pluginApi() {
|
|
551
556
|
var _b;
|
|
552
557
|
return {
|
|
553
|
-
version: "7.
|
|
558
|
+
version: "7.14.2" ,
|
|
554
559
|
open: this.open.bind(this),
|
|
555
560
|
close: this.close.bind(this),
|
|
556
561
|
toggle: this.toggle.bind(this),
|
package/index.esm.js
CHANGED
|
@@ -101,6 +101,7 @@ class NinetailedPreviewPlugin extends NinetailedPlugin {
|
|
|
101
101
|
this.profile = null;
|
|
102
102
|
this.changes = [];
|
|
103
103
|
this.container = null;
|
|
104
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
104
105
|
this.bridge = null;
|
|
105
106
|
/**
|
|
106
107
|
* Since several instances of the plugin can be created, we need to make sure only one is marked as active.
|
|
@@ -526,7 +527,12 @@ class NinetailedPreviewPlugin extends NinetailedPlugin {
|
|
|
526
527
|
openExperienceEditor(experience) {
|
|
527
528
|
if (this.onOpenExperienceEditor && typeof this.onOpenExperienceEditor === 'function') return this.onOpenExperienceEditor(experience);
|
|
528
529
|
}
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* @deprecated This method will be removed in a future release. Use `openExperienceEditor` instead to see the experience insights.
|
|
533
|
+
*/
|
|
529
534
|
openExperienceAnalytics(experience) {
|
|
535
|
+
logger.warn('The `openExperienceAnalytics` method is deprecated and will be removed in a future release. Use `openExperienceEditor` instead to see the experience insights.');
|
|
530
536
|
window.open(`https://app.ninetailed.io/${this.clientId}/${this.environment}/experiences/${experience.id}`, '_blank');
|
|
531
537
|
}
|
|
532
538
|
openAudienceEditor(audience) {
|
|
@@ -535,7 +541,7 @@ class NinetailedPreviewPlugin extends NinetailedPlugin {
|
|
|
535
541
|
get pluginApi() {
|
|
536
542
|
var _this$profile;
|
|
537
543
|
return {
|
|
538
|
-
version: "7.
|
|
544
|
+
version: "7.14.2" ,
|
|
539
545
|
open: this.open.bind(this),
|
|
540
546
|
close: this.close.bind(this),
|
|
541
547
|
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.
|
|
3
|
+
"version": "7.14.2",
|
|
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.
|
|
19
|
-
"@ninetailed/experience.js": "7.
|
|
20
|
-
"@ninetailed/experience.js-preview-bridge": "7.
|
|
21
|
-
"@ninetailed/experience.js-plugin-analytics": "7.
|
|
18
|
+
"@ninetailed/experience.js-shared": "7.14.2",
|
|
19
|
+
"@ninetailed/experience.js": "7.14.2",
|
|
20
|
+
"@ninetailed/experience.js-preview-bridge": "7.14.2",
|
|
21
|
+
"@ninetailed/experience.js-plugin-analytics": "7.14.2"
|
|
22
22
|
},
|
|
23
23
|
"module": "./index.esm.js",
|
|
24
24
|
"main": "./index.cjs.js"
|
|
@@ -72,6 +72,9 @@ export declare class NinetailedPreviewPlugin extends NinetailedPlugin implements
|
|
|
72
72
|
}): void;
|
|
73
73
|
getExperienceSelectionMiddleware: BuildExperienceSelectionMiddleware<Reference, Reference>;
|
|
74
74
|
openExperienceEditor(experience: ExperienceConfiguration): void;
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated This method will be removed in a future release. Use `openExperienceEditor` instead to see the experience insights.
|
|
77
|
+
*/
|
|
75
78
|
openExperienceAnalytics(experience: ExperienceConfiguration): void;
|
|
76
79
|
openAudienceEditor(audience: ExposedAudienceDefinition): void;
|
|
77
80
|
private get pluginApi();
|