@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 +6 -0
- package/analytics/package.json +1 -0
- package/dist/cjs/analytics.js +3 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/analytics.js +3 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/analytics.js +3 -2
- package/dist/esm/version.json +1 -1
- package/package.json +1 -1
- package/types/package.json +1 -0
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
|
package/analytics/package.json
CHANGED
package/dist/cjs/analytics.js
CHANGED
|
@@ -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
|
|
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
|
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/analytics.js
CHANGED
|
@@ -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) {
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/analytics.js
CHANGED
|
@@ -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
|
|
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
|
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED