@commercetools-frontend/fullstory 2.4.0 → 2.4.1

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.
@@ -76,7 +76,7 @@ function useTrackingEffect() {
76
76
  if (!browser.isInitialized() || disable) {
77
77
  return;
78
78
  }
79
- if (!user?.id) {
79
+ if (!(user !== null && user !== void 0 && user.id)) {
80
80
  browser.FullStory('setIdentity', {
81
81
  anonymous: true
82
82
  });
@@ -85,13 +85,13 @@ function useTrackingEffect() {
85
85
  uid: user.id,
86
86
  properties: _objectSpread$1({
87
87
  environment: cloudEnvironment,
88
- projectKey: project?.key,
88
+ projectKey: project === null || project === void 0 ? void 0 : project.key,
89
89
  userBusinessRole: user.businessRole,
90
90
  userLocale: user.locale
91
91
  }, additionalUserVars)
92
92
  });
93
93
  }
94
- }, [disable, additionalUserVars, cloudEnvironment, project?.key, user?.businessRole, user?.id, user?.locale]);
94
+ }, [disable, additionalUserVars, cloudEnvironment, project === null || project === void 0 ? void 0 : project.key, user === null || user === void 0 ? void 0 : user.businessRole, user === null || user === void 0 ? void 0 : user.id, user === null || user === void 0 ? void 0 : user.locale]);
95
95
  return null;
96
96
  }
97
97
 
@@ -76,7 +76,7 @@ function useTrackingEffect() {
76
76
  if (!browser.isInitialized() || disable) {
77
77
  return;
78
78
  }
79
- if (!user?.id) {
79
+ if (!(user !== null && user !== void 0 && user.id)) {
80
80
  browser.FullStory('setIdentity', {
81
81
  anonymous: true
82
82
  });
@@ -85,13 +85,13 @@ function useTrackingEffect() {
85
85
  uid: user.id,
86
86
  properties: _objectSpread$1({
87
87
  environment: cloudEnvironment,
88
- projectKey: project?.key,
88
+ projectKey: project === null || project === void 0 ? void 0 : project.key,
89
89
  userBusinessRole: user.businessRole,
90
90
  userLocale: user.locale
91
91
  }, additionalUserVars)
92
92
  });
93
93
  }
94
- }, [disable, additionalUserVars, cloudEnvironment, project?.key, user?.businessRole, user?.id, user?.locale]);
94
+ }, [disable, additionalUserVars, cloudEnvironment, project === null || project === void 0 ? void 0 : project.key, user === null || user === void 0 ? void 0 : user.businessRole, user === null || user === void 0 ? void 0 : user.id, user === null || user === void 0 ? void 0 : user.locale]);
95
95
  return null;
96
96
  }
97
97
 
@@ -61,7 +61,7 @@ function useTrackingEffect() {
61
61
  if (!isInitialized() || disable) {
62
62
  return;
63
63
  }
64
- if (!user?.id) {
64
+ if (!(user !== null && user !== void 0 && user.id)) {
65
65
  FullStory('setIdentity', {
66
66
  anonymous: true
67
67
  });
@@ -70,13 +70,13 @@ function useTrackingEffect() {
70
70
  uid: user.id,
71
71
  properties: _objectSpread$1({
72
72
  environment: cloudEnvironment,
73
- projectKey: project?.key,
73
+ projectKey: project === null || project === void 0 ? void 0 : project.key,
74
74
  userBusinessRole: user.businessRole,
75
75
  userLocale: user.locale
76
76
  }, additionalUserVars)
77
77
  });
78
78
  }
79
- }, [disable, additionalUserVars, cloudEnvironment, project?.key, user?.businessRole, user?.id, user?.locale]);
79
+ }, [disable, additionalUserVars, cloudEnvironment, project === null || project === void 0 ? void 0 : project.key, user === null || user === void 0 ? void 0 : user.businessRole, user === null || user === void 0 ? void 0 : user.id, user === null || user === void 0 ? void 0 : user.locale]);
80
80
  return null;
81
81
  }
82
82
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/fullstory",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "A package integrating with the FullStory SDK",
5
5
  "license": "MIT",
6
6
  "main": "dist/commercetools-frontend-fullstory.cjs.js",
@@ -20,20 +20,20 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@apollo/client": "3.7.10",
23
- "@commercetools-frontend/application-shell": "22.17.1",
24
- "@commercetools-frontend/application-shell-connectors": "22.17.1",
25
- "@commercetools-frontend/constants": "22.17.1",
23
+ "@commercetools-frontend/application-shell": "22.23.3",
24
+ "@commercetools-frontend/application-shell-connectors": "22.23.3",
25
+ "@commercetools-frontend/constants": "22.23.3",
26
26
  "@emotion/react": "^11.11.1",
27
27
  "@testing-library/react": "12.1.5",
28
28
  "@testing-library/react-hooks": "8.0.1",
29
29
  "@types/jest": "^29.5.2",
30
- "@types/node": "20.11.5",
31
- "@types/react": "17.0.75",
30
+ "@types/node": "20.12.7",
31
+ "@types/react": "17.0.80",
32
32
  "@types/testing-library__jest-dom": "^5.14.6",
33
33
  "graphql": "16.8.1",
34
34
  "react": "17.0.2",
35
35
  "react-dom": "17.0.2",
36
- "react-intl": "6.6.2",
36
+ "react-intl": "6.6.4",
37
37
  "react-redux": "7.2.9",
38
38
  "react-router-dom": "5.3.4",
39
39
  "redux": "4.2.1",