@atlaskit/user-picker 9.0.4 → 9.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 9.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9b66179b615`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9b66179b615) - Removed potential logging of PII in the external user hover analytics event.
8
+
3
9
  ## 9.0.4
4
10
 
5
11
  ### Patch Changes
@@ -3,5 +3,6 @@
3
3
  "main": "../dist/cjs/analytics.js",
4
4
  "module": "../dist/esm/analytics.js",
5
5
  "module:es2019": "../dist/es2019/analytics.js",
6
+ "sideEffects": false,
6
7
  "types": "../dist/types/analytics.d.ts"
7
8
  }
@@ -23,7 +23,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
23
23
 
24
24
  var UUID_REGEXP_TEAMS_GROUPS = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
25
25
  var UUID_REGEXP_OLD_AAID = /^[a-fA-F0-9]{1,8}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
26
- var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}/;
26
+ var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
27
27
 
28
28
  var startSession = function startSession() {
29
29
  return {
@@ -176,7 +176,8 @@ exports.failedEvent = failedEvent;
176
176
  var userInfoEvent = function userInfoEvent(sources, accountId) {
177
177
  return createEvent('ui', 'displayed', 'userInfo', {
178
178
  sources: sources,
179
- accountId: accountId
179
+ // accountId can be PII if it is an email so check that it's an AAID first
180
+ accountId: checkValidId(accountId) ? accountId : null
180
181
  });
181
182
  };
182
183
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "9.0.4",
3
+ "version": "9.0.5",
4
4
  "sideEffects": false
5
5
  }
@@ -4,7 +4,7 @@ import { name as packageName, version as packageVersion } from './version.json';
4
4
  import { isExternalUser } from './components/utils';
5
5
  const UUID_REGEXP_TEAMS_GROUPS = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
6
6
  const UUID_REGEXP_OLD_AAID = /^[a-fA-F0-9]{1,8}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
7
- const UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}/;
7
+ const UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
8
8
  export const startSession = () => ({
9
9
  id: uuidv4(),
10
10
  start: Date.now(),
@@ -117,7 +117,8 @@ export const failedEvent = (props, _, session, journeyId) => createEvent('operat
117
117
  });
118
118
  export const userInfoEvent = (sources, accountId) => createEvent('ui', 'displayed', 'userInfo', {
119
119
  sources,
120
- accountId
120
+ // accountId can be PII if it is an email so check that it's an AAID first
121
+ accountId: checkValidId(accountId) ? accountId : null
121
122
  });
122
123
 
123
124
  function queryLength(state) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "9.0.4",
3
+ "version": "9.0.5",
4
4
  "sideEffects": false
5
5
  }
@@ -10,7 +10,7 @@ import { name as packageName, version as packageVersion } from './version.json';
10
10
  import { isExternalUser } from './components/utils';
11
11
  var UUID_REGEXP_TEAMS_GROUPS = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
12
12
  var UUID_REGEXP_OLD_AAID = /^[a-fA-F0-9]{1,8}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
13
- var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}/;
13
+ var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
14
14
  export var startSession = function startSession() {
15
15
  return {
16
16
  id: uuidv4(),
@@ -138,7 +138,8 @@ export var failedEvent = function failedEvent(props, _, session, journeyId) {
138
138
  export var userInfoEvent = function userInfoEvent(sources, accountId) {
139
139
  return createEvent('ui', 'displayed', 'userInfo', {
140
140
  sources: sources,
141
- accountId: accountId
141
+ // accountId can be PII if it is an email so check that it's an AAID first
142
+ accountId: checkValidId(accountId) ? accountId : null
142
143
  });
143
144
  };
144
145
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "9.0.4",
3
+ "version": "9.0.5",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "9.0.4",
3
+ "version": "9.0.5",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -3,5 +3,6 @@
3
3
  "main": "../dist/cjs/types.js",
4
4
  "module": "../dist/esm/types.js",
5
5
  "module:es2019": "../dist/es2019/types.js",
6
+ "sideEffects": false,
6
7
  "types": "../dist/types/types.d.ts"
7
8
  }