@atlaskit/user-picker 8.7.0 → 8.7.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 8.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`dace9a85101`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dace9a85101) - Add new attribute to analytics events
8
+
3
9
  ## 8.7.0
4
10
 
5
11
  ### Minor Changes
@@ -64,7 +64,8 @@ var optionData2Analytics = function optionData2Analytics(option) {
64
64
  if ((0, _utils.isExternalUser)(option)) {
65
65
  return {
66
66
  type: 'external_user',
67
- sources: option.sources
67
+ sources: option.sources,
68
+ externalUserType: option.externalUserType
68
69
  };
69
70
  } else {
70
71
  // id's of email types are emails which is PII
package/dist/cjs/index.js CHANGED
@@ -63,6 +63,12 @@ Object.defineProperty(exports, "isEmail", {
63
63
  return _utils.isEmail;
64
64
  }
65
65
  });
66
+ Object.defineProperty(exports, "isExternalUser", {
67
+ enumerable: true,
68
+ get: function get() {
69
+ return _utils.isExternalUser;
70
+ }
71
+ });
66
72
  Object.defineProperty(exports, "isTeam", {
67
73
  enumerable: true,
68
74
  get: function get() {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "8.7.0",
3
+ "version": "8.7.1",
4
4
  "sideEffects": false
5
5
  }
@@ -39,7 +39,8 @@ const optionData2Analytics = option => {
39
39
  if (isExternalUser(option)) {
40
40
  return {
41
41
  type: 'external_user',
42
- sources: option.sources
42
+ sources: option.sources,
43
+ externalUserType: option.externalUserType
43
44
  };
44
45
  } else {
45
46
  // id's of email types are emails which is PII
@@ -2,6 +2,6 @@ export { isValidEmail } from './components/emailValidation';
2
2
  export { UserPicker as default } from './components/UserPicker';
3
3
  export { getUserRecommendations, hydrateDefaultValues, SmartUserPicker, setSmartUserPickerEnv } from './components/smart-user-picker/index';
4
4
  export { PopupUserPicker } from './components/PopupUserPicker';
5
- export { isEmail, isTeam, isUser } from './components/utils';
5
+ export { isEmail, isExternalUser, isTeam, isUser } from './components/utils';
6
6
  export { // Constants
7
7
  EmailType, GroupType, TeamType, UserType } from './types';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "8.7.0",
3
+ "version": "8.7.1",
4
4
  "sideEffects": false
5
5
  }
@@ -47,7 +47,8 @@ var optionData2Analytics = function optionData2Analytics(option) {
47
47
  if (isExternalUser(option)) {
48
48
  return {
49
49
  type: 'external_user',
50
- sources: option.sources
50
+ sources: option.sources,
51
+ externalUserType: option.externalUserType
51
52
  };
52
53
  } else {
53
54
  // id's of email types are emails which is PII
package/dist/esm/index.js CHANGED
@@ -2,6 +2,6 @@ export { isValidEmail } from './components/emailValidation';
2
2
  export { UserPicker as default } from './components/UserPicker';
3
3
  export { getUserRecommendations, hydrateDefaultValues, SmartUserPicker, setSmartUserPickerEnv } from './components/smart-user-picker/index';
4
4
  export { PopupUserPicker } from './components/PopupUserPicker';
5
- export { isEmail, isTeam, isUser } from './components/utils';
5
+ export { isEmail, isExternalUser, isTeam, isUser } from './components/utils';
6
6
  export { // Constants
7
7
  EmailType, GroupType, TeamType, UserType } from './types';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "8.7.0",
3
+ "version": "8.7.1",
4
4
  "sideEffects": false
5
5
  }
@@ -4,6 +4,6 @@ export { UserPicker as default } from './components/UserPicker';
4
4
  export { getUserRecommendations, hydrateDefaultValues, SmartUserPicker, setSmartUserPickerEnv, } from './components/smart-user-picker/index';
5
5
  export type { RecommendationRequest, SmartUserPickerProps, SupportedProduct, } from './components/smart-user-picker/index';
6
6
  export { PopupUserPicker } from './components/PopupUserPicker';
7
- export { isEmail, isTeam, isUser } from './components/utils';
7
+ export { isEmail, isExternalUser, isTeam, isUser } from './components/utils';
8
8
  export { EmailType, GroupType, TeamType, UserType, } from './types';
9
9
  export type { ActionTypes, Appearance, AtlasKitSelectChange, AtlaskitSelectValue, DefaultValue, InputActionTypes, LozengeProps, OnChange, OnInputChange, OnOption, OnPicker, Option, OptionData, OptionIdentifier, PopupUserPickerProps, Promisable, Target, UserPickerProps, UserPickerState, Value, Email, Group, GroupHighlight, HighlightRange, LoadOptions, Team, TeamHighlight, User, UserHighlight, ExternalUser, UserSource, } from './types';
@@ -204,6 +204,7 @@ export interface OptionData {
204
204
  export declare const UserType = "user";
205
205
  export declare type UserSource = 'google' | 'slack' | 'microsoft' | 'github' | 'jira' | 'confluence' | 'other-atlassian';
206
206
  export interface ExternalUser extends User {
207
+ externalUserType?: 'crossSite' | 'thirdParty';
207
208
  requiresSourceHydration?: boolean;
208
209
  sources: UserSource[];
209
210
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "8.7.0",
3
+ "version": "8.7.1",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"