@ninetailed/experience.js-plugin-preview 4.0.0-beta.4 → 4.0.0-beta.5

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.
Files changed (3) hide show
  1. package/index.cjs +4 -4
  2. package/index.js +4 -4
  3. package/package.json +7 -7
package/index.cjs CHANGED
@@ -3196,10 +3196,6 @@ class NinetailedPreviewPlugin extends experience_jsPluginAnalytics.NinetailedPlu
3196
3196
  console.log(`You cannot deactivate an unkown audience (id: ${id}). How did you get it in the first place?`);
3197
3197
  return;
3198
3198
  }
3199
- this.audienceOverwrites = Object.assign(Object.assign({}, this.audienceOverwrites), {
3200
- [id]: false
3201
- });
3202
- this.onChange();
3203
3199
  // When a audience is deactivated, the normal state will be that the experience goes into the control
3204
3200
  this.experiences.filter(experience => {
3205
3201
  var _b;
@@ -3210,6 +3206,10 @@ class NinetailedPreviewPlugin extends experience_jsPluginAnalytics.NinetailedPlu
3210
3206
  variantIndex: 0
3211
3207
  });
3212
3208
  });
3209
+ this.audienceOverwrites = Object.assign(Object.assign({}, this.audienceOverwrites), {
3210
+ [id]: false
3211
+ });
3212
+ this.onChange();
3213
3213
  }
3214
3214
  resetAudience(id) {
3215
3215
  if (!this.isKnownAudience(id)) {
package/index.js CHANGED
@@ -3174,10 +3174,6 @@ class NinetailedPreviewPlugin extends NinetailedPlugin {
3174
3174
  console.log(`You cannot deactivate an unkown audience (id: ${id}). How did you get it in the first place?`);
3175
3175
  return;
3176
3176
  }
3177
- this.audienceOverwrites = Object.assign(Object.assign({}, this.audienceOverwrites), {
3178
- [id]: false
3179
- });
3180
- this.onChange();
3181
3177
  // When a audience is deactivated, the normal state will be that the experience goes into the control
3182
3178
  this.experiences.filter(experience => {
3183
3179
  var _b;
@@ -3188,6 +3184,10 @@ class NinetailedPreviewPlugin extends NinetailedPlugin {
3188
3184
  variantIndex: 0
3189
3185
  });
3190
3186
  });
3187
+ this.audienceOverwrites = Object.assign(Object.assign({}, this.audienceOverwrites), {
3188
+ [id]: false
3189
+ });
3190
+ this.onChange();
3191
3191
  }
3192
3192
  resetAudience(id) {
3193
3193
  if (!this.isKnownAudience(id)) {
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@ninetailed/experience.js-plugin-preview",
3
- "version": "4.0.0-beta.4",
3
+ "version": "4.0.0-beta.5",
4
4
  "module": "./index.js",
5
5
  "main": "./index.cjs",
6
6
  "type": "module",
7
7
  "types": "./index.d.ts",
8
8
  "dependencies": {
9
- "@ninetailed/experience.js-shared": "4.0.0-beta.4",
10
- "@ninetailed/experience.js": "4.0.0-beta.4",
11
- "@ninetailed/experience.js-plugin-analytics": "4.0.0-beta.4",
12
- "@ninetailed/experience.js-utils": "4.0.0-beta.3",
13
- "@ninetailed/experience.js-react": "4.0.0-beta.4",
14
- "@ninetailed/experience.js-preview-bridge": "4.0.0-beta.4",
9
+ "@ninetailed/experience.js-shared": "4.0.0-beta.5",
10
+ "@ninetailed/experience.js": "4.0.0-beta.5",
11
+ "@ninetailed/experience.js-plugin-analytics": "4.0.0-beta.5",
12
+ "@ninetailed/experience.js-utils": "4.0.0-beta.4",
13
+ "@ninetailed/experience.js-react": "4.0.0-beta.5",
14
+ "@ninetailed/experience.js-preview-bridge": "4.0.0-beta.5",
15
15
  "react": "18.2.0",
16
16
  "uuid": "9.0.0"
17
17
  },