@atlaskit/user-picker 11.3.3 → 11.4.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,17 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 11.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#185784](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/185784)
8
+ [`7b6c046532f88`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7b6c046532f88) -
9
+ remove fg support_group_by_type_for_user_picker
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 11.3.3
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1,69 @@
1
+ {
2
+ "extends": "../../../../tsconfig.entry-points.rovo-extension.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "outDir": "../../../../../rovo-extension/tsDist/@atlaskit__user-picker/app",
7
+ "rootDir": "../",
8
+ "composite": true
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*"
18
+ ],
19
+ "references": [
20
+ {
21
+ "path": "../../../analytics/analytics-next/afm-rovo-extension/tsconfig.json"
22
+ },
23
+ {
24
+ "path": "../../../design-system/avatar/afm-rovo-extension/tsconfig.json"
25
+ },
26
+ {
27
+ "path": "../../../design-system/icon/afm-rovo-extension/tsconfig.json"
28
+ },
29
+ {
30
+ "path": "../../../design-system/logo/afm-rovo-extension/tsconfig.json"
31
+ },
32
+ {
33
+ "path": "../../../design-system/lozenge/afm-rovo-extension/tsconfig.json"
34
+ },
35
+ {
36
+ "path": "../../../people-and-teams/people-teams-ui-public/afm-rovo-extension/tsconfig.json"
37
+ },
38
+ {
39
+ "path": "../../../platform/feature-flags/afm-rovo-extension/tsconfig.json"
40
+ },
41
+ {
42
+ "path": "../../../design-system/popper/afm-rovo-extension/tsconfig.json"
43
+ },
44
+ {
45
+ "path": "../../../design-system/primitives/afm-rovo-extension/tsconfig.json"
46
+ },
47
+ {
48
+ "path": "../../../design-system/select/afm-rovo-extension/tsconfig.json"
49
+ },
50
+ {
51
+ "path": "../../../design-system/spinner/afm-rovo-extension/tsconfig.json"
52
+ },
53
+ {
54
+ "path": "../../../people-and-teams/teams-avatar/afm-rovo-extension/tsconfig.json"
55
+ },
56
+ {
57
+ "path": "../../../design-system/theme/afm-rovo-extension/tsconfig.json"
58
+ },
59
+ {
60
+ "path": "../../../design-system/tokens/afm-rovo-extension/tsconfig.json"
61
+ },
62
+ {
63
+ "path": "../../../design-system/tooltip/afm-rovo-extension/tsconfig.json"
64
+ },
65
+ {
66
+ "path": "../../../data/ufo-external/afm-rovo-extension/tsconfig.json"
67
+ }
68
+ ]
69
+ }
@@ -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 = "11.3.2";
15
+ var packageVersion = "11.3.3";
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 _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
13
13
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
14
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
15
  var _analyticsNext = require("@atlaskit/analytics-next");
16
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
16
  var _ufo = require("@atlaskit/ufo");
18
17
  var _debounce = _interopRequireDefault(require("lodash/debounce"));
19
18
  var _react = _interopRequireDefault(require("react"));
@@ -351,9 +350,9 @@ var BaseUserPickerWithoutAnalytics = exports.BaseUserPickerWithoutAnalytics = /*
351
350
  return valueIds.indexOf(option.data.id) === -1;
352
351
  });
353
352
  }
354
- return groupByTypeOrder && (0, _platformFeatureFlags.fg)('support_group_by_type_for_user_picker') ? (0, _groupOptionsByType.groupOptionsByType)(filteredOptions.slice(0, maxOptions), groupByTypeOrder) : filteredOptions.slice(0, maxOptions);
353
+ return groupByTypeOrder ? (0, _groupOptionsByType.groupOptionsByType)(filteredOptions.slice(0, maxOptions), groupByTypeOrder) : filteredOptions.slice(0, maxOptions);
355
354
  }
356
- return groupByTypeOrder && (0, _platformFeatureFlags.fg)('support_group_by_type_for_user_picker') ? (0, _groupOptionsByType.groupOptionsByType)(options, groupByTypeOrder) : options;
355
+ return groupByTypeOrder ? (0, _groupOptionsByType.groupOptionsByType)(options, groupByTypeOrder) : options;
357
356
  });
358
357
  (0, _defineProperty2.default)(_this, "getAppearance", function () {
359
358
  return _this.props.appearance ? _this.props.appearance : 'normal';
@@ -14,6 +14,8 @@ var _slack = require("../assets/slack");
14
14
  var _google = require("../assets/google");
15
15
  var _microsoft = require("../assets/microsoft");
16
16
  var _i18n = require("../i18n");
17
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
18
+
17
19
  var sourcesTooltipContainer = (0, _primitives.xcss)({
18
20
  paddingBottom: 'space.050',
19
21
  paddingRight: 'space.050'
@@ -27,7 +27,8 @@ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0,
27
27
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
28
28
  * @jsxRuntime classic
29
29
  * @jsx jsx
30
- */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
30
+ */ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
31
32
  var scrollToValue = exports.scrollToValue = function scrollToValue(valueContainer, control) {
32
33
  var _valueContainer$getBo = valueContainer.getBoundingClientRect(),
33
34
  top = _valueContainer$getBo.top,
@@ -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 = "11.3.2";
5
+ const packageVersion = "11.3.3";
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}$/;
@@ -1,7 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
4
- import { fg } from '@atlaskit/platform-feature-flags';
5
4
  import { UFOExperienceState } from '@atlaskit/ufo';
6
5
  import debounce from 'lodash/debounce';
7
6
  import React from 'react';
@@ -341,9 +340,9 @@ export class BaseUserPickerWithoutAnalytics extends React.Component {
341
340
  const valueIds = value.map(item => item.data.id);
342
341
  filteredOptions = options.filter(option => valueIds.indexOf(option.data.id) === -1);
343
342
  }
344
- return groupByTypeOrder && fg('support_group_by_type_for_user_picker') ? groupOptionsByType(filteredOptions.slice(0, maxOptions), groupByTypeOrder) : filteredOptions.slice(0, maxOptions);
343
+ return groupByTypeOrder ? groupOptionsByType(filteredOptions.slice(0, maxOptions), groupByTypeOrder) : filteredOptions.slice(0, maxOptions);
345
344
  }
346
- return groupByTypeOrder && fg('support_group_by_type_for_user_picker') ? groupOptionsByType(options, groupByTypeOrder) : options;
345
+ return groupByTypeOrder ? groupOptionsByType(options, groupByTypeOrder) : options;
347
346
  });
348
347
  _defineProperty(this, "getAppearance", () => this.props.appearance ? this.props.appearance : 'normal');
349
348
  _defineProperty(this, "handleClickDraggableParentComponent", () => {
@@ -1,3 +1,4 @@
1
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
1
2
  import { Box, xcss } from '@atlaskit/primitives';
2
3
  import React from 'react';
3
4
  import { FormattedMessage } from 'react-intl-next';
@@ -5,6 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
5
  * @jsx jsx
6
6
  */
7
7
  import React from 'react';
8
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
8
9
  import { Box, Inline, xcss } from '@atlaskit/primitives';
9
10
  import { components } from '@atlaskit/select';
10
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -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 = "11.3.2";
8
+ var packageVersion = "11.3.3";
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}$/;
@@ -13,7 +13,6 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
13
13
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
14
14
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
15
15
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
16
- import { fg } from '@atlaskit/platform-feature-flags';
17
16
  import { UFOExperienceState } from '@atlaskit/ufo';
18
17
  import debounce from 'lodash/debounce';
19
18
  import React from 'react';
@@ -344,9 +343,9 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
344
343
  return valueIds.indexOf(option.data.id) === -1;
345
344
  });
346
345
  }
347
- return groupByTypeOrder && fg('support_group_by_type_for_user_picker') ? groupOptionsByType(filteredOptions.slice(0, maxOptions), groupByTypeOrder) : filteredOptions.slice(0, maxOptions);
346
+ return groupByTypeOrder ? groupOptionsByType(filteredOptions.slice(0, maxOptions), groupByTypeOrder) : filteredOptions.slice(0, maxOptions);
348
347
  }
349
- return groupByTypeOrder && fg('support_group_by_type_for_user_picker') ? groupOptionsByType(options, groupByTypeOrder) : options;
348
+ return groupByTypeOrder ? groupOptionsByType(options, groupByTypeOrder) : options;
350
349
  });
351
350
  _defineProperty(_this, "getAppearance", function () {
352
351
  return _this.props.appearance ? _this.props.appearance : 'normal';
@@ -1,3 +1,4 @@
1
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
1
2
  import { Box, xcss } from '@atlaskit/primitives';
2
3
  import React from 'react';
3
4
  import { FormattedMessage } from 'react-intl-next';
@@ -14,6 +14,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
14
14
  * @jsx jsx
15
15
  */
16
16
  import React from 'react';
17
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
17
18
  import { Box, Inline, xcss } from '@atlaskit/primitives';
18
19
  import { components } from '@atlaskit/select';
19
20
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -66,11 +66,6 @@ export declare class BaseUserPickerWithoutAnalytics extends React.Component<Base
66
66
  }
67
67
  export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
68
68
  fieldId: string | null;
69
- /**
70
- * @deprecated This is a temporary prop to enable user-pickers to work in Draggable elements in react-beautiful-dnd.
71
- * See https://product-fabric.atlassian.net/browse/DSP-15701 for more details.
72
- * It may be removed in a future minor or patch when a longer-term workaround is found.
73
- */
74
69
  options?: OptionData[] | undefined;
75
70
  width?: string | number | undefined;
76
71
  menuMinWidth?: number | undefined;
@@ -66,11 +66,6 @@ export declare class BaseUserPickerWithoutAnalytics extends React.Component<Base
66
66
  }
67
67
  export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
68
68
  fieldId: string | null;
69
- /**
70
- * @deprecated This is a temporary prop to enable user-pickers to work in Draggable elements in react-beautiful-dnd.
71
- * See https://product-fabric.atlassian.net/browse/DSP-15701 for more details.
72
- * It may be removed in a future minor or patch when a longer-term workaround is found.
73
- */
74
69
  options?: OptionData[] | undefined;
75
70
  width?: string | number | undefined;
76
71
  menuMinWidth?: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "11.3.3",
3
+ "version": "11.4.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/"
@@ -57,11 +57,11 @@
57
57
  "@atlaskit/platform-feature-flags": "^1.1.0",
58
58
  "@atlaskit/popper": "^7.1.0",
59
59
  "@atlaskit/primitives": "^14.10.0",
60
- "@atlaskit/select": "^21.1.0",
60
+ "@atlaskit/select": "^21.2.0",
61
61
  "@atlaskit/spinner": "^18.0.0",
62
62
  "@atlaskit/teams-avatar": "^2.3.0",
63
63
  "@atlaskit/theme": "^19.0.0",
64
- "@atlaskit/tokens": "^5.4.0",
64
+ "@atlaskit/tokens": "^5.5.0",
65
65
  "@atlaskit/tooltip": "^20.3.0",
66
66
  "@atlaskit/ufo": "^0.4.0",
67
67
  "@babel/runtime": "^7.0.0",
@@ -110,9 +110,6 @@
110
110
  "platform-feature-flags": {
111
111
  "platform-component-visual-refresh": {
112
112
  "type": "boolean"
113
- },
114
- "support_group_by_type_for_user_picker": {
115
- "type": "boolean"
116
113
  }
117
114
  }
118
115
  }