@atlaskit/user-picker 11.3.0 → 11.3.2

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,20 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 11.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#178290](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/178290)
8
+ [`24b46e59f20ba`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/24b46e59f20ba) -
9
+ Clean up feature gate user-picker-show-clear-indicator
10
+ - Updated dependencies
11
+
12
+ ## 11.3.1
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 11.3.0
4
19
 
5
20
  ### Minor 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 = "11.2.3";
15
+ var packageVersion = "11.3.1";
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}$/;
@@ -105,7 +105,7 @@ var UserPickerWithoutAnalytics = exports.UserPickerWithoutAnalytics = /*#__PURE_
105
105
  styles: (0, _styles.getStyles)(width, isMulti, this.props.appearance === 'compact', this.props.styles, this.props.isInvalid,
106
106
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
107
107
  (0, _platformFeatureFlags.fg)('platform-component-visual-refresh')),
108
- components: (0, _components.getComponents)(isMulti, anchor, showClearIndicator && (0, _platformFeatureFlags.fg)('user-picker-show-clear-indicator'), (_this$props2 = this.props) !== null && _this$props2 !== void 0 && _this$props2.components ? this.props.components : {}),
108
+ components: (0, _components.getComponents)(isMulti, anchor, showClearIndicator, (_this$props2 = this.props) !== null && _this$props2 !== void 0 && _this$props2.components ? this.props.components : {}),
109
109
  pickerProps: pickerProps
110
110
  })))));
111
111
  }
@@ -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.2.3";
5
+ const packageVersion = "11.3.1";
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}$/;
@@ -11,7 +11,7 @@ import { cancelEvent, clearEvent, createAndFireEventInElementsChannel, deleteEve
11
11
  import { batchByKey } from './batch';
12
12
  import { messages } from './i18n';
13
13
  import { callCallback, extractOptionValue, getOptions, isIterable, isPopupUserPickerByComponent, isDefaultValuePopulated, isSingleValue, optionToSelectableOptions } from './utils';
14
- import { groupOptionsByType } from "../util/group-options-by-type";
14
+ import { groupOptionsByType } from '../util/group-options-by-type';
15
15
  import { userPickerOptionsShownUfoExperience } from '../util/ufoExperiences';
16
16
  const loadingMessage = () => null;
17
17
  const classNamePrefix = 'fabric-user-picker';
@@ -82,7 +82,7 @@ export class UserPickerWithoutAnalytics extends React.Component {
82
82
  styles: getStyles(width, isMulti, this.props.appearance === 'compact', this.props.styles, this.props.isInvalid,
83
83
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
84
84
  fg('platform-component-visual-refresh')),
85
- components: getComponents(isMulti, anchor, showClearIndicator && fg('user-picker-show-clear-indicator'), (_this$props = this.props) !== null && _this$props !== void 0 && _this$props.components ? this.props.components : {}),
85
+ components: getComponents(isMulti, anchor, showClearIndicator, (_this$props = this.props) !== null && _this$props !== void 0 && _this$props.components ? this.props.components : {}),
86
86
  pickerProps: pickerProps
87
87
  })))));
88
88
  }
@@ -1,7 +1,7 @@
1
- import React from "react";
2
- import { FormattedMessage } from "react-intl-next";
3
- import memoizeOne from "memoize-one";
4
- import { messages } from "../../components/i18n";
1
+ import React from 'react';
2
+ import { FormattedMessage } from 'react-intl-next';
3
+ import memoizeOne from 'memoize-one';
4
+ import { messages } from '../../components/i18n';
5
5
  const getLabelForType = type => {
6
6
  switch (type) {
7
7
  case 'user':
@@ -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.2.3";
8
+ var packageVersion = "11.3.1";
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}$/;
@@ -23,7 +23,7 @@ import { cancelEvent, clearEvent, createAndFireEventInElementsChannel, deleteEve
23
23
  import { batchByKey } from './batch';
24
24
  import { messages } from './i18n';
25
25
  import { callCallback, extractOptionValue, getOptions, isIterable, isPopupUserPickerByComponent, isDefaultValuePopulated, isSingleValue, optionToSelectableOptions } from './utils';
26
- import { groupOptionsByType } from "../util/group-options-by-type";
26
+ import { groupOptionsByType } from '../util/group-options-by-type';
27
27
  import { userPickerOptionsShownUfoExperience } from '../util/ufoExperiences';
28
28
  var loadingMessage = function loadingMessage() {
29
29
  return null;
@@ -96,7 +96,7 @@ export var UserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component)
96
96
  styles: getStyles(width, isMulti, this.props.appearance === 'compact', this.props.styles, this.props.isInvalid,
97
97
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
98
98
  fg('platform-component-visual-refresh')),
99
- components: getComponents(isMulti, anchor, showClearIndicator && fg('user-picker-show-clear-indicator'), (_this$props2 = this.props) !== null && _this$props2 !== void 0 && _this$props2.components ? this.props.components : {}),
99
+ components: getComponents(isMulti, anchor, showClearIndicator, (_this$props2 = this.props) !== null && _this$props2 !== void 0 && _this$props2.components ? this.props.components : {}),
100
100
  pickerProps: pickerProps
101
101
  })))));
102
102
  }
@@ -1,7 +1,7 @@
1
- import React from "react";
2
- import { FormattedMessage } from "react-intl-next";
3
- import memoizeOne from "memoize-one";
4
- import { messages } from "../../components/i18n";
1
+ import React from 'react';
2
+ import { FormattedMessage } from 'react-intl-next';
3
+ import memoizeOne from 'memoize-one';
4
+ import { messages } from '../../components/i18n';
5
5
  var getLabelForType = function getLabelForType(type) {
6
6
  switch (type) {
7
7
  case 'user':
@@ -1,2 +1,2 @@
1
- import type { OptionData, Option, GroupedOptions } from "../../types";
1
+ import type { OptionData, Option, GroupedOptions } from '../../types';
2
2
  export declare const groupOptionsByType: import("memoize-one").MemoizedFn<(options: Option[], groupByTypeOrder: NonNullable<OptionData['type']>[]) => Option[] | GroupedOptions[]>;
@@ -1,2 +1,2 @@
1
- import type { OptionData, Option, GroupedOptions } from "../../types";
1
+ import type { OptionData, Option, GroupedOptions } from '../../types';
2
2
  export declare const groupOptionsByType: import("memoize-one").MemoizedFn<(options: Option[], groupByTypeOrder: NonNullable<OptionData['type']>[]) => Option[] | GroupedOptions[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "11.3.0",
3
+ "version": "11.3.2",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -51,14 +51,14 @@
51
51
  "dependencies": {
52
52
  "@atlaskit/analytics-next": "^11.1.0",
53
53
  "@atlaskit/avatar": "^25.1.0",
54
- "@atlaskit/icon": "^27.1.0",
55
- "@atlaskit/logo": "^19.1.0",
54
+ "@atlaskit/icon": "^27.2.0",
55
+ "@atlaskit/logo": "^19.3.0",
56
56
  "@atlaskit/lozenge": "^13.0.0",
57
57
  "@atlaskit/people-teams-ui-public": "^3.1.0",
58
58
  "@atlaskit/platform-feature-flags": "^1.1.0",
59
- "@atlaskit/popper": "^7.0.0",
60
- "@atlaskit/primitives": "^14.9.0",
61
- "@atlaskit/select": "^20.7.0",
59
+ "@atlaskit/popper": "^7.1.0",
60
+ "@atlaskit/primitives": "^14.10.0",
61
+ "@atlaskit/select": "^21.0.0",
62
62
  "@atlaskit/spinner": "^18.0.0",
63
63
  "@atlaskit/teams-avatar": "^2.3.0",
64
64
  "@atlaskit/theme": "^18.0.0",
@@ -112,9 +112,6 @@
112
112
  "platform-component-visual-refresh": {
113
113
  "type": "boolean"
114
114
  },
115
- "user-picker-show-clear-indicator": {
116
- "type": "boolean"
117
- },
118
115
  "support_group_by_type_for_user_picker": {
119
116
  "type": "boolean"
120
117
  }