@commercetools-frontend/fullstory 2.3.0 → 2.4.0

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.
@@ -66,12 +66,10 @@ function useTrackingEffect() {
66
66
  const _useApplicationContex = applicationShellConnectors.useApplicationContext(context => ({
67
67
  user: context.user,
68
68
  project: context.project,
69
- tenant: context.environment.tenant,
70
69
  cloudEnvironment: context.environment.cloudEnvironment
71
70
  })),
72
71
  project = _useApplicationContex.project,
73
72
  user = _useApplicationContex.user,
74
- tenant = _useApplicationContex.tenant,
75
73
  cloudEnvironment = _useApplicationContex.cloudEnvironment;
76
74
  react.useEffect(() => {
77
75
  // It's not safe to invoke any FullStory SDK methods.
@@ -86,15 +84,14 @@ function useTrackingEffect() {
86
84
  browser.FullStory('setIdentity', {
87
85
  uid: user.id,
88
86
  properties: _objectSpread$1({
89
- environment: tenant,
90
- cloudEnvironment: cloudEnvironment,
87
+ environment: cloudEnvironment,
91
88
  projectKey: project?.key,
92
89
  userBusinessRole: user.businessRole,
93
90
  userLocale: user.locale
94
91
  }, additionalUserVars)
95
92
  });
96
93
  }
97
- }, [disable, additionalUserVars, tenant, cloudEnvironment, project?.key, user?.businessRole, user?.id, user?.locale]);
94
+ }, [disable, additionalUserVars, cloudEnvironment, project?.key, user?.businessRole, user?.id, user?.locale]);
98
95
  return null;
99
96
  }
100
97
 
@@ -66,12 +66,10 @@ function useTrackingEffect() {
66
66
  const _useApplicationContex = applicationShellConnectors.useApplicationContext(context => ({
67
67
  user: context.user,
68
68
  project: context.project,
69
- tenant: context.environment.tenant,
70
69
  cloudEnvironment: context.environment.cloudEnvironment
71
70
  })),
72
71
  project = _useApplicationContex.project,
73
72
  user = _useApplicationContex.user,
74
- tenant = _useApplicationContex.tenant,
75
73
  cloudEnvironment = _useApplicationContex.cloudEnvironment;
76
74
  react.useEffect(() => {
77
75
  // It's not safe to invoke any FullStory SDK methods.
@@ -86,15 +84,14 @@ function useTrackingEffect() {
86
84
  browser.FullStory('setIdentity', {
87
85
  uid: user.id,
88
86
  properties: _objectSpread$1({
89
- environment: tenant,
90
- cloudEnvironment: cloudEnvironment,
87
+ environment: cloudEnvironment,
91
88
  projectKey: project?.key,
92
89
  userBusinessRole: user.businessRole,
93
90
  userLocale: user.locale
94
91
  }, additionalUserVars)
95
92
  });
96
93
  }
97
- }, [disable, additionalUserVars, tenant, cloudEnvironment, project?.key, user?.businessRole, user?.id, user?.locale]);
94
+ }, [disable, additionalUserVars, cloudEnvironment, project?.key, user?.businessRole, user?.id, user?.locale]);
98
95
  return null;
99
96
  }
100
97
 
@@ -51,12 +51,10 @@ function useTrackingEffect() {
51
51
  const _useApplicationContex = useApplicationContext(context => ({
52
52
  user: context.user,
53
53
  project: context.project,
54
- tenant: context.environment.tenant,
55
54
  cloudEnvironment: context.environment.cloudEnvironment
56
55
  })),
57
56
  project = _useApplicationContex.project,
58
57
  user = _useApplicationContex.user,
59
- tenant = _useApplicationContex.tenant,
60
58
  cloudEnvironment = _useApplicationContex.cloudEnvironment;
61
59
  useEffect(() => {
62
60
  // It's not safe to invoke any FullStory SDK methods.
@@ -71,15 +69,14 @@ function useTrackingEffect() {
71
69
  FullStory('setIdentity', {
72
70
  uid: user.id,
73
71
  properties: _objectSpread$1({
74
- environment: tenant,
75
- cloudEnvironment: cloudEnvironment,
72
+ environment: cloudEnvironment,
76
73
  projectKey: project?.key,
77
74
  userBusinessRole: user.businessRole,
78
75
  userLocale: user.locale
79
76
  }, additionalUserVars)
80
77
  });
81
78
  }
82
- }, [disable, additionalUserVars, tenant, cloudEnvironment, project?.key, user?.businessRole, user?.id, user?.locale]);
79
+ }, [disable, additionalUserVars, cloudEnvironment, project?.key, user?.businessRole, user?.id, user?.locale]);
83
80
  return null;
84
81
  }
85
82
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/fullstory",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "A package integrating with the FullStory SDK",
5
5
  "license": "MIT",
6
6
  "main": "dist/commercetools-frontend-fullstory.cjs.js",
@@ -16,13 +16,13 @@
16
16
  "@babel/core": "^7.22.11",
17
17
  "@babel/runtime": "^7.21.0",
18
18
  "@babel/runtime-corejs3": "^7.21.0",
19
- "@fullstory/browser": "2.0.1"
19
+ "@fullstory/browser": "2.0.3"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@apollo/client": "3.7.10",
23
- "@commercetools-frontend/application-shell": "22.16.0",
24
- "@commercetools-frontend/application-shell-connectors": "22.16.0",
25
- "@commercetools-frontend/constants": "22.16.0",
23
+ "@commercetools-frontend/application-shell": "22.17.1",
24
+ "@commercetools-frontend/application-shell-connectors": "22.17.1",
25
+ "@commercetools-frontend/constants": "22.17.1",
26
26
  "@emotion/react": "^11.11.1",
27
27
  "@testing-library/react": "12.1.5",
28
28
  "@testing-library/react-hooks": "8.0.1",
@@ -33,7 +33,7 @@
33
33
  "graphql": "16.8.1",
34
34
  "react": "17.0.2",
35
35
  "react-dom": "17.0.2",
36
- "react-intl": "6.6.1",
36
+ "react-intl": "6.6.2",
37
37
  "react-redux": "7.2.9",
38
38
  "react-router-dom": "5.3.4",
39
39
  "redux": "4.2.1",