@ninetailed/experience.js-plugin-preview 7.14.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
@@ -542,7 +542,11 @@ class NinetailedPreviewPlugin extends experience_jsPluginAnalytics.NinetailedPlu
542
542
  openExperienceEditor(experience) {
543
543
  if (this.onOpenExperienceEditor && typeof this.onOpenExperienceEditor === 'function') return this.onOpenExperienceEditor(experience);
544
544
  }
545
+ /**
546
+ * @deprecated This method will be removed in a future release. Use `openExperienceEditor` instead to see the experience insights.
547
+ */
545
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.');
546
550
  window.open(`https://app.ninetailed.io/${this.clientId}/${this.environment}/experiences/${experience.id}`, '_blank');
547
551
  }
548
552
  openAudienceEditor(audience) {
@@ -551,7 +555,7 @@ class NinetailedPreviewPlugin extends experience_jsPluginAnalytics.NinetailedPlu
551
555
  get pluginApi() {
552
556
  var _b;
553
557
  return {
554
- version: "7.14.0" ,
558
+ version: "7.14.2" ,
555
559
  open: this.open.bind(this),
556
560
  close: this.close.bind(this),
557
561
  toggle: this.toggle.bind(this),
package/index.esm.js CHANGED
@@ -527,7 +527,12 @@ class NinetailedPreviewPlugin extends NinetailedPlugin {
527
527
  openExperienceEditor(experience) {
528
528
  if (this.onOpenExperienceEditor && typeof this.onOpenExperienceEditor === 'function') return this.onOpenExperienceEditor(experience);
529
529
  }
530
+
531
+ /**
532
+ * @deprecated This method will be removed in a future release. Use `openExperienceEditor` instead to see the experience insights.
533
+ */
530
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.');
531
536
  window.open(`https://app.ninetailed.io/${this.clientId}/${this.environment}/experiences/${experience.id}`, '_blank');
532
537
  }
533
538
  openAudienceEditor(audience) {
@@ -536,7 +541,7 @@ class NinetailedPreviewPlugin extends NinetailedPlugin {
536
541
  get pluginApi() {
537
542
  var _this$profile;
538
543
  return {
539
- version: "7.14.0" ,
544
+ version: "7.14.2" ,
540
545
  open: this.open.bind(this),
541
546
  close: this.close.bind(this),
542
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.14.0",
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.14.0",
19
- "@ninetailed/experience.js": "7.14.0",
20
- "@ninetailed/experience.js-preview-bridge": "7.14.0",
21
- "@ninetailed/experience.js-plugin-analytics": "7.14.0"
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();