@atlaskit/user-picker 10.13.6 → 10.14.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 10.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#67525](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67525) [`835694a1696a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/835694a1696a) - Add third party sources to user invited and access requested event attributes
8
+
3
9
  ## 10.13.6
4
10
 
5
11
  ### Patch Changes
@@ -12,7 +12,7 @@ var _utils = require("./components/utils");
12
12
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
13
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
14
  var packageName = "@atlaskit/user-picker";
15
- var packageVersion = "10.13.6";
15
+ var packageVersion = "10.14.0";
16
16
  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}$/;
17
17
  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}$/;
18
18
  var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -13,7 +13,6 @@ var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
13
13
  var _slack = require("../assets/slack");
14
14
  var _google = require("../assets/google");
15
15
  var _microsoft = require("../assets/microsoft");
16
- var _github = require("../assets/github");
17
16
  var _i18n = require("../i18n");
18
17
  var _main = require("./main");
19
18
  /** @jsx jsx */
@@ -57,10 +56,6 @@ var SUPPORTED_SOURCES = [{
57
56
  sourceType: 'microsoft',
58
57
  icon: (0, _react2.jsx)(_microsoft.MicrosoftIcon, null),
59
58
  label: _i18n.messages.microsoftProvider
60
- }, {
61
- sourceType: 'github',
62
- icon: (0, _react2.jsx)(_github.GitHubIcon, null),
63
- label: _i18n.messages.gitHubProvider
64
59
  }];
65
60
  var SourcesTooltipContent = exports.SourcesTooltipContent = function SourcesTooltipContent(_ref) {
66
61
  var sources = _ref.sources,
@@ -2,7 +2,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
2
2
  import { v4 as uuidv4 } from 'uuid';
3
3
  import { isCustom, isExternalUser } from './components/utils';
4
4
  const packageName = "@atlaskit/user-picker";
5
- const packageVersion = "10.13.6";
5
+ const packageVersion = "10.14.0";
6
6
  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}$/;
7
7
  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}$/;
8
8
  const UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -7,7 +7,6 @@ import Spinner from '@atlaskit/spinner/spinner';
7
7
  import { SlackIcon } from '../assets/slack';
8
8
  import { GoogleIcon } from '../assets/google';
9
9
  import { MicrosoftIcon } from '../assets/microsoft';
10
- import { GitHubIcon } from '../assets/github';
11
10
  import { messages } from '../i18n';
12
11
  import { imageContainer } from './main';
13
12
  export const sourcesTooltipContainer = css({
@@ -49,10 +48,6 @@ const SUPPORTED_SOURCES = [{
49
48
  sourceType: 'microsoft',
50
49
  icon: jsx(MicrosoftIcon, null),
51
50
  label: messages.microsoftProvider
52
- }, {
53
- sourceType: 'github',
54
- icon: jsx(GitHubIcon, null),
55
- label: messages.gitHubProvider
56
51
  }];
57
52
  export const SourcesTooltipContent = ({
58
53
  sources,
@@ -5,7 +5,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
5
5
  import { v4 as uuidv4 } from 'uuid';
6
6
  import { isCustom, isExternalUser } from './components/utils';
7
7
  var packageName = "@atlaskit/user-picker";
8
- var packageVersion = "10.13.6";
8
+ var packageVersion = "10.14.0";
9
9
  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}$/;
10
10
  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}$/;
11
11
  var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -7,7 +7,6 @@ import Spinner from '@atlaskit/spinner/spinner';
7
7
  import { SlackIcon } from '../assets/slack';
8
8
  import { GoogleIcon } from '../assets/google';
9
9
  import { MicrosoftIcon } from '../assets/microsoft';
10
- import { GitHubIcon } from '../assets/github';
11
10
  import { messages } from '../i18n';
12
11
  import { imageContainer } from './main';
13
12
  export var sourcesTooltipContainer = css({
@@ -49,10 +48,6 @@ var SUPPORTED_SOURCES = [{
49
48
  sourceType: 'microsoft',
50
49
  icon: jsx(MicrosoftIcon, null),
51
50
  label: messages.microsoftProvider
52
- }, {
53
- sourceType: 'github',
54
- icon: jsx(GitHubIcon, null),
55
- label: messages.gitHubProvider
56
51
  }];
57
52
  export var SourcesTooltipContent = function SourcesTooltipContent(_ref) {
58
53
  var sources = _ref.sources,
@@ -238,10 +238,10 @@ export interface OptionData {
238
238
  isDisabled?: boolean;
239
239
  lozenge?: string | LozengeProps | ReactNode;
240
240
  name: string;
241
- type?: 'user' | 'team' | 'email' | 'group' | 'custom';
241
+ type?: 'user' | 'team' | 'email' | 'group' | 'custom' | 'external_user';
242
242
  }
243
243
  export declare const UserType = "user";
244
- export type UserSource = 'google' | 'slack' | 'microsoft' | 'github' | 'jira' | 'confluence' | 'other-atlassian';
244
+ export type UserSource = 'google' | 'slack' | 'microsoft' | 'jira' | 'confluence' | 'other-atlassian';
245
245
  export interface ExternalUser extends User {
246
246
  externalUserType?: 'crossSite' | 'thirdParty';
247
247
  requiresSourceHydration?: boolean;
@@ -253,7 +253,7 @@ export interface User extends OptionData {
253
253
  publicName?: string;
254
254
  highlight?: UserHighlight;
255
255
  byline?: string;
256
- type?: 'user';
256
+ type?: 'user' | 'external_user';
257
257
  email?: string;
258
258
  isExternal?: boolean;
259
259
  }
@@ -241,10 +241,10 @@ export interface OptionData {
241
241
  isDisabled?: boolean;
242
242
  lozenge?: string | LozengeProps | ReactNode;
243
243
  name: string;
244
- type?: 'user' | 'team' | 'email' | 'group' | 'custom';
244
+ type?: 'user' | 'team' | 'email' | 'group' | 'custom' | 'external_user';
245
245
  }
246
246
  export declare const UserType = "user";
247
- export type UserSource = 'google' | 'slack' | 'microsoft' | 'github' | 'jira' | 'confluence' | 'other-atlassian';
247
+ export type UserSource = 'google' | 'slack' | 'microsoft' | 'jira' | 'confluence' | 'other-atlassian';
248
248
  export interface ExternalUser extends User {
249
249
  externalUserType?: 'crossSite' | 'thirdParty';
250
250
  requiresSourceHydration?: boolean;
@@ -256,7 +256,7 @@ export interface User extends OptionData {
256
256
  publicName?: string;
257
257
  highlight?: UserHighlight;
258
258
  byline?: string;
259
- type?: 'user';
259
+ type?: 'user' | 'external_user';
260
260
  email?: string;
261
261
  isExternal?: boolean;
262
262
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "10.13.6",
3
+ "version": "10.14.0",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
7
7
  },
8
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
8
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
9
  "author": "Atlassian Pty Ltd",
10
10
  "license": "Apache-2.0",
11
11
  "main": "dist/cjs/index.js",
@@ -47,7 +47,7 @@
47
47
  "@atlaskit/select": "^17.0.3",
48
48
  "@atlaskit/spinner": "^16.0.0",
49
49
  "@atlaskit/theme": "^12.6.0",
50
- "@atlaskit/tokens": "^1.33.0",
50
+ "@atlaskit/tokens": "^1.34.0",
51
51
  "@atlaskit/tooltip": "^18.1.0",
52
52
  "@atlaskit/ufo": "^0.2.0",
53
53
  "@babel/runtime": "^7.0.0",
@@ -64,8 +64,8 @@
64
64
  "devDependencies": {
65
65
  "@atlaskit/analytics-viewer": "^0.5.0",
66
66
  "@atlaskit/elements-test-helpers": "^0.7.0",
67
- "@atlaskit/heading": "^1.4.0",
68
- "@atlaskit/primitives": "^1.17.0",
67
+ "@atlaskit/heading": "^1.5.0",
68
+ "@atlaskit/primitives": "^1.18.0",
69
69
  "@atlaskit/visual-regression": "*",
70
70
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
71
71
  "@emotion/styled": "^11.0.0",