@ninetailed/experience.js-react 2.0.0-beta.14 → 2.0.0-beta.17

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
@@ -2523,7 +2523,7 @@ const useJoinExperiment = ({
2523
2523
  const activeExperiments = selectActiveExperiments(experiences, profile);
2524
2524
 
2525
2525
  if (!activeExperiments.length && experiment.type === 'nt_experiment') {
2526
- identify('', {
2526
+ identify(profile.id, {
2527
2527
  [`${EXPERIENCE_TRAIT_PREFIX}${experiment.id}`]: true
2528
2528
  });
2529
2529
  }
package/index.umd.js CHANGED
@@ -2072,7 +2072,7 @@
2072
2072
  var activeExperiments = experience_js.selectActiveExperiments(experiences, profile);
2073
2073
 
2074
2074
  if (!activeExperiments.length && experiment.type === 'nt_experiment') {
2075
- identify('', (_b = {}, _b["".concat(EXPERIENCE_TRAIT_PREFIX).concat(experiment.id)] = true, _b));
2075
+ identify(profile.id, (_b = {}, _b["".concat(EXPERIENCE_TRAIT_PREFIX).concat(experiment.id)] = true, _b));
2076
2076
  }
2077
2077
  }, [experiences]);
2078
2078
  };
@@ -1,5 +1,5 @@
1
- import { ExperienceConfiguration } from './types';
2
1
  import { Profile } from '@ninetailed/experience.js';
2
+ import { ExperienceConfiguration } from './types';
3
3
  declare type UseJoinExperimentArgs = {
4
4
  experiences: ExperienceConfiguration[];
5
5
  };
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@ninetailed/experience.js-react",
3
- "version": "2.0.0-beta.14",
3
+ "version": "2.0.0-beta.17",
4
4
  "peerDependencies": {
5
5
  "react": ">=16.8.0"
6
6
  },
7
7
  "dependencies": {
8
8
  "@analytics/google-analytics": "0.5.3",
9
9
  "react-visibility-sensor": "5.1.1",
10
- "@ninetailed/experience.js": "2.0.0-beta.14",
10
+ "@ninetailed/experience.js": "2.0.0-beta.17",
11
11
  "analytics": "^0.8.0",
12
- "@ninetailed/experience.js-shared": "2.0.0-beta.14",
12
+ "@ninetailed/experience.js-shared": "2.0.0-beta.17",
13
13
  "uuid": "^8.3.2",
14
14
  "ts-toolbelt": "^9.6.0",
15
15
  "locale-enum": "^1.1.1",