@ninetailed/experience.js-react 2.0.0-beta.37 → 2.0.0-beta.38

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.esm.js CHANGED
@@ -2622,7 +2622,7 @@ const Experience = _a => {
2622
2622
  })));
2623
2623
  }
2624
2624
 
2625
- if (!experience || !variant) {
2625
+ if (!experience) {
2626
2626
  return /*#__PURE__*/React.createElement(Component, Object.assign({}, baseline, {
2627
2627
  key: baseline.id,
2628
2628
  ninetailed: {
@@ -2634,6 +2634,23 @@ const Experience = _a => {
2634
2634
  }));
2635
2635
  }
2636
2636
 
2637
+ if (!variant) {
2638
+ return /*#__PURE__*/React.createElement(TrackExperience, {
2639
+ experience: experience,
2640
+ variant: baseline,
2641
+ // the profile is definitely defined, otherwise there wouldn't be an experience selected
2642
+ profile: profile
2643
+ }, /*#__PURE__*/React.createElement(Component, Object.assign({}, baseline, {
2644
+ key: baseline.id,
2645
+ ninetailed: {
2646
+ isPersonalized: false,
2647
+ audience: {
2648
+ id: 'baseline'
2649
+ }
2650
+ }
2651
+ })));
2652
+ }
2653
+
2637
2654
  return /*#__PURE__*/React.createElement(TrackExperience, {
2638
2655
  experience: experience,
2639
2656
  variant: variant,
package/index.umd.js CHANGED
@@ -2167,7 +2167,7 @@
2167
2167
  })));
2168
2168
  }
2169
2169
 
2170
- if (!experience || !variant) {
2170
+ if (!experience) {
2171
2171
  return /*#__PURE__*/React__default["default"].createElement(Component, __assign({}, baseline, {
2172
2172
  key: baseline.id,
2173
2173
  ninetailed: {
@@ -2179,6 +2179,23 @@
2179
2179
  }));
2180
2180
  }
2181
2181
 
2182
+ if (!variant) {
2183
+ return /*#__PURE__*/React__default["default"].createElement(TrackExperience, {
2184
+ experience: experience,
2185
+ variant: baseline,
2186
+ // the profile is definitely defined, otherwise there wouldn't be an experience selected
2187
+ profile: profile
2188
+ }, /*#__PURE__*/React__default["default"].createElement(Component, __assign({}, baseline, {
2189
+ key: baseline.id,
2190
+ ninetailed: {
2191
+ isPersonalized: false,
2192
+ audience: {
2193
+ id: 'baseline'
2194
+ }
2195
+ }
2196
+ })));
2197
+ }
2198
+
2182
2199
  return /*#__PURE__*/React__default["default"].createElement(TrackExperience, {
2183
2200
  experience: experience,
2184
2201
  variant: variant,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ninetailed/experience.js-react",
3
- "version": "2.0.0-beta.37",
3
+ "version": "2.0.0-beta.38",
4
4
  "peerDependencies": {
5
5
  "react": ">=16.8.0"
6
6
  },
@@ -8,9 +8,9 @@
8
8
  "@analytics/google-analytics": "0.5.3",
9
9
  "react-visibility-sensor": "5.1.1",
10
10
  "lodash": "^4.17.21",
11
- "@ninetailed/experience.js": "2.0.0-beta.37",
11
+ "@ninetailed/experience.js": "2.0.0-beta.38",
12
12
  "analytics": "^0.8.0",
13
- "@ninetailed/experience.js-shared": "2.0.0-beta.37",
13
+ "@ninetailed/experience.js-shared": "2.0.0-beta.38",
14
14
  "uuid": "^8.3.2",
15
15
  "ts-toolbelt": "^9.6.0",
16
16
  "locale-enum": "^1.1.1",