@atlaskit/user-picker 11.25.9 → 12.0.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 +21 -0
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/BaseUserPicker.js +3 -3
- package/dist/cjs/components/EmailOption/main.js +2 -2
- package/dist/cjs/components/ExternalUserOption/SourcesTooltipContent.js +4 -4
- package/dist/cjs/components/GroupOption/main.js +3 -3
- package/dist/cjs/components/MessagesIntlProvider.js +3 -3
- package/dist/cjs/components/MultiValue.js +3 -3
- package/dist/cjs/components/MultiValueContainer.js +2 -2
- package/dist/cjs/components/SingleValue.js +2 -2
- package/dist/cjs/components/TeamOption/main.js +9 -9
- package/dist/cjs/components/UserOption.js +1 -1
- package/dist/cjs/components/i18n.js +2 -2
- package/dist/cjs/util/group-options-by-type/index.js +7 -7
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/BaseUserPicker.js +1 -1
- package/dist/es2019/components/EmailOption/main.js +1 -1
- package/dist/es2019/components/ExternalUserOption/SourcesTooltipContent.js +1 -1
- package/dist/es2019/components/GroupOption/main.js +1 -1
- package/dist/es2019/components/MessagesIntlProvider.js +1 -1
- package/dist/es2019/components/MultiValue.js +1 -1
- package/dist/es2019/components/MultiValueContainer.js +1 -1
- package/dist/es2019/components/SingleValue.js +1 -1
- package/dist/es2019/components/TeamOption/main.js +1 -1
- package/dist/es2019/components/UserOption.js +1 -1
- package/dist/es2019/components/i18n.js +1 -1
- package/dist/es2019/util/group-options-by-type/index.js +1 -1
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/BaseUserPicker.js +1 -1
- package/dist/esm/components/EmailOption/main.js +1 -1
- package/dist/esm/components/ExternalUserOption/SourcesTooltipContent.js +1 -1
- package/dist/esm/components/GroupOption/main.js +1 -1
- package/dist/esm/components/MessagesIntlProvider.js +1 -1
- package/dist/esm/components/MultiValue.js +1 -1
- package/dist/esm/components/MultiValueContainer.js +1 -1
- package/dist/esm/components/SingleValue.js +1 -1
- package/dist/esm/components/TeamOption/main.js +1 -1
- package/dist/esm/components/UserOption.js +1 -1
- package/dist/esm/components/i18n.js +1 -1
- package/dist/esm/util/group-options-by-type/index.js +1 -1
- package/dist/types/components/CustomOption/index.d.ts +2 -1
- package/dist/types/components/EmailOption/index.d.ts +2 -1
- package/dist/types/components/GroupOption/index.d.ts +2 -1
- package/dist/types/components/TeamOption/index.d.ts +2 -1
- package/dist/types/components/UserPicker.d.ts +30 -23
- package/dist/types/components/creatable.d.ts +2 -2
- package/dist/types/components/creatableEmailSuggestion.d.ts +7 -6
- package/dist/types/components/i18n.d.ts +82 -82
- package/dist/types/components/styles.d.ts +3 -2
- package/dist/types/components/utils.d.ts +2 -1
- package/dist/types/util/group-options-by-type/index.d.ts +2 -1
- package/dist/types-ts4.5/components/CustomOption/index.d.ts +2 -1
- package/dist/types-ts4.5/components/EmailOption/index.d.ts +2 -1
- package/dist/types-ts4.5/components/GroupOption/index.d.ts +2 -1
- package/dist/types-ts4.5/components/TeamOption/index.d.ts +2 -1
- package/dist/types-ts4.5/components/UserPicker.d.ts +30 -23
- package/dist/types-ts4.5/components/creatable.d.ts +2 -2
- package/dist/types-ts4.5/components/creatableEmailSuggestion.d.ts +7 -6
- package/dist/types-ts4.5/components/i18n.d.ts +82 -82
- package/dist/types-ts4.5/components/styles.d.ts +3 -2
- package/dist/types-ts4.5/components/utils.d.ts +2 -1
- package/dist/types-ts4.5/util/group-options-by-type/index.d.ts +2 -1
- package/docs/0-intro.tsx +1 -1
- package/docs/1-smart-user-picker.tsx +1 -1
- package/package.json +10 -10
- package/report.api.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/user-picker
|
|
2
2
|
|
|
3
|
+
## 12.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`deb3d6a6498e8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/deb3d6a6498e8) -
|
|
8
|
+
Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
|
|
9
|
+
|
|
10
|
+
What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
|
|
11
|
+
removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
|
|
12
|
+
to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
|
|
13
|
+
|
|
14
|
+
How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
|
|
15
|
+
`^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
|
|
16
|
+
can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
|
|
17
|
+
|
|
18
|
+
## 11.25.10
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 11.25.9
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/dist/cjs/analytics.js
CHANGED
|
@@ -15,7 +15,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
15
15
|
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; } // eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
16
16
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
17
17
|
var packageName = "@atlaskit/user-picker";
|
|
18
|
-
var packageVersion = "
|
|
18
|
+
var packageVersion = "0.0.0-development";
|
|
19
19
|
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}$/;
|
|
20
20
|
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}$/;
|
|
21
21
|
var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
|
|
@@ -18,7 +18,7 @@ var _analyticsNext = require("@atlaskit/analytics-next");
|
|
|
18
18
|
var _ufo = require("@atlaskit/ufo");
|
|
19
19
|
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
20
20
|
var _react = _interopRequireDefault(require("react"));
|
|
21
|
-
var
|
|
21
|
+
var _reactIntl = require("react-intl");
|
|
22
22
|
var _uuid = require("uuid");
|
|
23
23
|
var _analytics = require("../analytics");
|
|
24
24
|
var _batch = require("./batch");
|
|
@@ -618,7 +618,7 @@ var BaseUserPickerWithoutAnalytics = exports.BaseUserPickerWithoutAnalytics = /*
|
|
|
618
618
|
isLoading: count > 0 || resolving || isLoading,
|
|
619
619
|
loadingMessage: loadingMessage,
|
|
620
620
|
menuPlacement: "auto",
|
|
621
|
-
placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : /*#__PURE__*/_react.default.createElement(
|
|
621
|
+
placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _i18n.messages.placeholder),
|
|
622
622
|
label: ariaLabel,
|
|
623
623
|
addMoreMessage: addMoreMessage,
|
|
624
624
|
classNamePrefix: classNamePrefix,
|
|
@@ -695,7 +695,7 @@ var BaseUserPickerWithoutAnalytics = exports.BaseUserPickerWithoutAnalytics = /*
|
|
|
695
695
|
textFieldBackgroundColor: false,
|
|
696
696
|
isClearable: true,
|
|
697
697
|
loadOptionsErrorMessage: function loadOptionsErrorMessage() {
|
|
698
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
698
|
+
return /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _i18n.messages.errorMessage);
|
|
699
699
|
},
|
|
700
700
|
openMenuOnClick: false
|
|
701
701
|
});
|
|
@@ -12,7 +12,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
12
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
var
|
|
15
|
+
var _reactIntl = require("react-intl");
|
|
16
16
|
var _react2 = require("@emotion/react");
|
|
17
17
|
var _AddOptionAvatar = require("../AddOptionAvatar");
|
|
18
18
|
var _AvatarItemOption = require("../AvatarItemOption");
|
|
@@ -75,7 +75,7 @@ var EmailOption = exports.EmailOption = /*#__PURE__*/function (_React$PureCompon
|
|
|
75
75
|
var _this$props = this.props,
|
|
76
76
|
label = _this$props.label,
|
|
77
77
|
emailValidity = _this$props.emailValidity;
|
|
78
|
-
return label !== undefined ? this.renderOption(label) : (0, _react2.jsx)(
|
|
78
|
+
return label !== undefined ? this.renderOption(label) : (0, _react2.jsx)(_reactIntl.FormattedMessage, getAddEmailMessage(emailValidity), function (label) {
|
|
79
79
|
return _this2.renderOption(label);
|
|
80
80
|
});
|
|
81
81
|
}
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.SourcesTooltipContent = void 0;
|
|
8
8
|
var _primitives = require("@atlaskit/primitives");
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var
|
|
10
|
+
var _reactIntl = require("react-intl");
|
|
11
11
|
var _logo = require("@atlaskit/logo");
|
|
12
12
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
|
|
13
13
|
var _slack = require("../assets/slack");
|
|
@@ -108,9 +108,9 @@ var SourcesTooltipContent = exports.SourcesTooltipContent = function SourcesTool
|
|
|
108
108
|
}, [sources]);
|
|
109
109
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !sourcesLoading && sources.length === 0 ? /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
110
110
|
as: "span"
|
|
111
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
111
|
+
}, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _i18n.messages.externalUserSourcesError)) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
112
112
|
as: "span"
|
|
113
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
113
|
+
}, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _i18n.messages.externalUserSourcesHeading)), /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
114
114
|
xcss: sourcesTooltipContainer
|
|
115
115
|
}, sourcesLoading && /*#__PURE__*/_react.default.createElement(_spinner.default, {
|
|
116
116
|
size: "small",
|
|
@@ -127,6 +127,6 @@ var SourcesTooltipContent = exports.SourcesTooltipContent = function SourcesTool
|
|
|
127
127
|
xcss: imageContainerStyles
|
|
128
128
|
}, icon), /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
129
129
|
as: "span"
|
|
130
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
130
|
+
}, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, label)));
|
|
131
131
|
}))));
|
|
132
132
|
};
|
|
@@ -13,7 +13,7 @@ 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 _react = _interopRequireDefault(require("react"));
|
|
16
|
-
var
|
|
16
|
+
var _reactIntl = require("react-intl");
|
|
17
17
|
var _react2 = require("@emotion/react");
|
|
18
18
|
var _peopleGroup = _interopRequireDefault(require("@atlaskit/icon/core/people-group"));
|
|
19
19
|
var _verifiedTeamIcon = require("@atlaskit/people-teams-ui-public/verified-team-icon");
|
|
@@ -81,13 +81,13 @@ var GroupOption = exports.GroupOption = /*#__PURE__*/function (_React$PureCompon
|
|
|
81
81
|
includeTeamsUpdates = _this$props2.includeTeamsUpdates;
|
|
82
82
|
var getGroupByline = function getGroupByline() {
|
|
83
83
|
if (includeTeamsUpdates) {
|
|
84
|
-
return (0, _react2.jsx)(
|
|
84
|
+
return (0, _react2.jsx)(_reactIntl.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.adminManagedGroupByline, {
|
|
85
85
|
values: {
|
|
86
86
|
verifiedIcon: _this.renderVerifiedIcon()
|
|
87
87
|
}
|
|
88
88
|
}));
|
|
89
89
|
} else {
|
|
90
|
-
return (0, _react2.jsx)(
|
|
90
|
+
return (0, _react2.jsx)(_reactIntl.FormattedMessage, _i18n.messages.groupByline);
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
return (0, _react2.jsx)("span", {
|
|
@@ -9,7 +9,7 @@ exports.default = void 0;
|
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var
|
|
12
|
+
var _reactIntl = require("react-intl");
|
|
13
13
|
var _i18nUtil = require("../util/i18n-util");
|
|
14
14
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
15
15
|
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; }
|
|
@@ -38,13 +38,13 @@ var useI18n = function useI18n(locale) {
|
|
|
38
38
|
return messages;
|
|
39
39
|
};
|
|
40
40
|
var MessagesIntlProvider = function MessagesIntlProvider(props) {
|
|
41
|
-
var intl = (0,
|
|
41
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
42
42
|
var children = props.children;
|
|
43
43
|
var messages = useI18n(intl.locale);
|
|
44
44
|
var mergedMessages = (0, _react.useMemo)(function () {
|
|
45
45
|
return _objectSpread(_objectSpread({}, intl.messages), messages);
|
|
46
46
|
}, [intl.messages, messages]);
|
|
47
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
47
|
+
return /*#__PURE__*/_react.default.createElement(_reactIntl.IntlProvider, {
|
|
48
48
|
locale: intl.locale,
|
|
49
49
|
messages: mergedMessages
|
|
50
50
|
}, children);
|
|
@@ -29,7 +29,7 @@ var _utils = require("./utils");
|
|
|
29
29
|
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
|
|
30
30
|
var _peopleGroup = _interopRequireDefault(require("@atlaskit/icon/core/people-group"));
|
|
31
31
|
var _verifiedTeamIcon = require("@atlaskit/people-teams-ui-public/verified-team-icon");
|
|
32
|
-
var
|
|
32
|
+
var _reactIntl = require("react-intl");
|
|
33
33
|
var _i18n = require("./i18n");
|
|
34
34
|
var _excluded = ["children", "innerProps", "removeProps", "data"];
|
|
35
35
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -131,7 +131,7 @@ var MultiValue = exports.MultiValue = /*#__PURE__*/function (_React$Component) {
|
|
|
131
131
|
xcss: archivedLozengeWrapper
|
|
132
132
|
}, (0, _react2.jsx)(_lozenge.default, {
|
|
133
133
|
appearance: "default"
|
|
134
|
-
}, (0, _react2.jsx)(
|
|
134
|
+
}, (0, _react2.jsx)(_reactIntl.FormattedMessage, _i18n.messages.archivedLozenge)));
|
|
135
135
|
}
|
|
136
136
|
return null;
|
|
137
137
|
});
|
|
@@ -266,7 +266,7 @@ var MultiValue = exports.MultiValue = /*#__PURE__*/function (_React$Component) {
|
|
|
266
266
|
xcss: archivedLozengeWrapper
|
|
267
267
|
}, (0, _react2.jsx)(_lozenge.default, {
|
|
268
268
|
appearance: "default"
|
|
269
|
-
}, (0, _react2.jsx)(
|
|
269
|
+
}, (0, _react2.jsx)(_reactIntl.FormattedMessage, _i18n.messages.archivedLozenge))) : null) : (0, _react2.jsx)(_tag.AvatarTag, {
|
|
270
270
|
type: "user",
|
|
271
271
|
text: label,
|
|
272
272
|
isRemovable: !isDisabled,
|
|
@@ -19,7 +19,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
19
19
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
20
20
|
var _select = require("@atlaskit/select");
|
|
21
21
|
var _react = _interopRequireWildcard(require("react"));
|
|
22
|
-
var
|
|
22
|
+
var _reactIntl = require("react-intl");
|
|
23
23
|
var _i18n = require("./i18n");
|
|
24
24
|
var _utils = require("./utils");
|
|
25
25
|
var _ValueContainerWrapper = _interopRequireDefault(require("./ValueContainerWrapper"));
|
|
@@ -68,7 +68,7 @@ var MultiValueContainer = exports.MultiValueContainer = /*#__PURE__*/function (_
|
|
|
68
68
|
return _this.props.children;
|
|
69
69
|
}
|
|
70
70
|
if (addMoreMessage === undefined) {
|
|
71
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
71
|
+
return /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _i18n.messages.addMore, function (addMore) {
|
|
72
72
|
var _join, _addMoreMessages;
|
|
73
73
|
var addMoreMessages = addMore;
|
|
74
74
|
if (addMore && typeof addMore === 'string') {
|
|
@@ -18,7 +18,7 @@ var _utils = require("./utils");
|
|
|
18
18
|
var _avatar = require("@atlaskit/avatar");
|
|
19
19
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
20
|
var _verifiedTeamIcon = require("@atlaskit/people-teams-ui-public/verified-team-icon");
|
|
21
|
-
var
|
|
21
|
+
var _reactIntl = require("react-intl");
|
|
22
22
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
23
23
|
var _i18n = require("./i18n");
|
|
24
24
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -73,5 +73,5 @@ var SingleValue = exports.SingleValue = function SingleValue(props) {
|
|
|
73
73
|
xcss: styles.archivedLozengeWrapper
|
|
74
74
|
}, /*#__PURE__*/React.createElement(_lozenge.default, {
|
|
75
75
|
appearance: "default"
|
|
76
|
-
}, /*#__PURE__*/React.createElement(
|
|
76
|
+
}, /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _i18n.messages.archivedLozenge))) : null)))))) : null;
|
|
77
77
|
};
|
|
@@ -16,7 +16,7 @@ var _compiled = require("@atlaskit/primitives/compiled");
|
|
|
16
16
|
var _verifiedTeamIcon = require("@atlaskit/people-teams-ui-public/verified-team-icon");
|
|
17
17
|
var _react = require("@emotion/react");
|
|
18
18
|
var _react2 = _interopRequireDefault(require("react"));
|
|
19
|
-
var
|
|
19
|
+
var _reactIntl = require("react-intl");
|
|
20
20
|
var _AvatarItemOption = require("../AvatarItemOption");
|
|
21
21
|
var _HighlightText = require("../HighlightText");
|
|
22
22
|
var _i18n = require("../i18n");
|
|
@@ -72,20 +72,20 @@ var TeamOption = exports.TeamOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
72
72
|
} else {
|
|
73
73
|
if (includesYou === true) {
|
|
74
74
|
if (memberCount > 50) {
|
|
75
|
-
return _this.getBylineComponent(isSelected, hasTeamTypeName ? (0, _react.jsx)(
|
|
75
|
+
return _this.getBylineComponent(isSelected, hasTeamTypeName ? (0, _react.jsx)(_reactIntl.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.officialPlus50MembersWithYou, {
|
|
76
76
|
values: {
|
|
77
77
|
verifiedIcon: verifiedIcon,
|
|
78
78
|
teamTypeName: teamTypeName
|
|
79
79
|
}
|
|
80
|
-
})) : (0, _react.jsx)(
|
|
80
|
+
})) : (0, _react.jsx)(_reactIntl.FormattedMessage, _i18n.messages.plus50MembersWithYou));
|
|
81
81
|
} else {
|
|
82
|
-
return _this.getBylineComponent(isSelected, hasTeamTypeName ? (0, _react.jsx)(
|
|
82
|
+
return _this.getBylineComponent(isSelected, hasTeamTypeName ? (0, _react.jsx)(_reactIntl.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.officialMemberCountWithYou, {
|
|
83
83
|
values: {
|
|
84
84
|
verifiedIcon: verifiedIcon,
|
|
85
85
|
count: memberCount,
|
|
86
86
|
teamTypeName: teamTypeName
|
|
87
87
|
}
|
|
88
|
-
})) : (0, _react.jsx)(
|
|
88
|
+
})) : (0, _react.jsx)(_reactIntl.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.memberCountWithYou, {
|
|
89
89
|
values: {
|
|
90
90
|
count: memberCount
|
|
91
91
|
}
|
|
@@ -93,20 +93,20 @@ var TeamOption = exports.TeamOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
93
93
|
}
|
|
94
94
|
} else {
|
|
95
95
|
if (memberCount > 50) {
|
|
96
|
-
return _this.getBylineComponent(isSelected, hasTeamTypeName ? (0, _react.jsx)(
|
|
96
|
+
return _this.getBylineComponent(isSelected, hasTeamTypeName ? (0, _react.jsx)(_reactIntl.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.officialPlus50MembersWithoutYou, {
|
|
97
97
|
values: {
|
|
98
98
|
verifiedIcon: verifiedIcon,
|
|
99
99
|
teamTypeName: teamTypeName
|
|
100
100
|
}
|
|
101
|
-
})) : (0, _react.jsx)(
|
|
101
|
+
})) : (0, _react.jsx)(_reactIntl.FormattedMessage, _i18n.messages.plus50MembersWithoutYou));
|
|
102
102
|
} else {
|
|
103
|
-
return _this.getBylineComponent(isSelected, hasTeamTypeName ? (0, _react.jsx)(
|
|
103
|
+
return _this.getBylineComponent(isSelected, hasTeamTypeName ? (0, _react.jsx)(_reactIntl.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.officialMemberCountWithoutYou, {
|
|
104
104
|
values: {
|
|
105
105
|
verifiedIcon: verifiedIcon,
|
|
106
106
|
count: memberCount,
|
|
107
107
|
teamTypeName: teamTypeName
|
|
108
108
|
}
|
|
109
|
-
})) : (0, _react.jsx)(
|
|
109
|
+
})) : (0, _react.jsx)(_reactIntl.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.memberCountWithoutYou, {
|
|
110
110
|
values: {
|
|
111
111
|
count: memberCount
|
|
112
112
|
}
|
|
@@ -24,7 +24,7 @@ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0,
|
|
|
24
24
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
25
25
|
* @jsxRuntime classic
|
|
26
26
|
* @jsx jsx
|
|
27
|
-
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
27
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766
|
|
28
28
|
var styles = function styles(color) {
|
|
29
29
|
return (0, _react.css)({
|
|
30
30
|
display: 'inline',
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.messages = void 0;
|
|
7
|
-
var
|
|
8
|
-
var messages = exports.messages = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
9
9
|
placeholder: {
|
|
10
10
|
id: 'fabric.elements.user-picker.placeholder',
|
|
11
11
|
defaultMessage: 'Enter people or teams...',
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.groupOptionsByType = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
|
-
var
|
|
10
|
+
var _reactIntl = require("react-intl");
|
|
11
11
|
var _memoizeOne = _interopRequireDefault(require("memoize-one"));
|
|
12
12
|
var _i18n = require("../../components/i18n");
|
|
13
13
|
var getLabelForType = function getLabelForType(type, customLabels) {
|
|
@@ -16,17 +16,17 @@ var getLabelForType = function getLabelForType(type, customLabels) {
|
|
|
16
16
|
}
|
|
17
17
|
switch (type) {
|
|
18
18
|
case 'user':
|
|
19
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _i18n.messages.userTypeLabel);
|
|
20
20
|
case 'team':
|
|
21
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _i18n.messages.teamTypeLabel);
|
|
22
22
|
case 'group':
|
|
23
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
23
|
+
return /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _i18n.messages.groupTypeLabel);
|
|
24
24
|
case 'custom':
|
|
25
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _i18n.messages.customTypeLabel);
|
|
26
26
|
case 'external_user':
|
|
27
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
27
|
+
return /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _i18n.messages.externalUserTypeLabel);
|
|
28
28
|
default:
|
|
29
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
29
|
+
return /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _i18n.messages.otherTypeLabel);
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
var groupOptionsByType = exports.groupOptionsByType = (0, _memoizeOne.default)(function (options, groupByTypeOrder, customGroupLabels) {
|
package/dist/es2019/analytics.js
CHANGED
|
@@ -6,7 +6,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
6
6
|
import { v4 as uuidv4 } from 'uuid';
|
|
7
7
|
import { isCustom, isExternalUser } from './components/utils';
|
|
8
8
|
const packageName = "@atlaskit/user-picker";
|
|
9
|
-
const packageVersion = "
|
|
9
|
+
const packageVersion = "0.0.0-development";
|
|
10
10
|
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}$/;
|
|
11
11
|
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}$/;
|
|
12
12
|
const UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
|
|
@@ -5,7 +5,7 @@ import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
|
5
5
|
import { UFOExperienceState } from '@atlaskit/ufo';
|
|
6
6
|
import debounce from 'lodash/debounce';
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import { FormattedMessage } from 'react-intl
|
|
8
|
+
import { FormattedMessage } from 'react-intl';
|
|
9
9
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
10
10
|
import { v4 as uuidv4 } from 'uuid';
|
|
11
11
|
import { cancelEvent, clearEvent, createAndFireEventInElementsChannel, deleteEvent, failedEvent, focusEvent, searchedEvent, selectEvent, startSession } from '../analytics';
|
|
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { FormattedMessage } from 'react-intl
|
|
7
|
+
import { FormattedMessage } from 'react-intl';
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import { AddOptionAvatar } from '../AddOptionAvatar';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
2
2
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { FormattedMessage } from 'react-intl
|
|
4
|
+
import { FormattedMessage } from 'react-intl';
|
|
5
5
|
import { AtlassianIcon, ConfluenceIcon, JiraIcon } from '@atlaskit/logo';
|
|
6
6
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
7
7
|
import { SlackIcon } from '../assets/slack';
|
|
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
5
5
|
* @jsx jsx
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import { FormattedMessage } from 'react-intl
|
|
8
|
+
import { FormattedMessage } from 'react-intl';
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import PeopleIcon from '@atlaskit/icon/core/people-group';
|
|
@@ -21,7 +21,7 @@ import { getAvatarUrl, isEmail, isGroup, isTeam } from './utils';
|
|
|
21
21
|
import Lozenge from '@atlaskit/lozenge';
|
|
22
22
|
import PeopleIcon from '@atlaskit/icon/core/people-group';
|
|
23
23
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
24
|
-
import { FormattedMessage } from 'react-intl
|
|
24
|
+
import { FormattedMessage } from 'react-intl';
|
|
25
25
|
import { messages } from './i18n';
|
|
26
26
|
export const scrollToValue = (valueContainer, control) => {
|
|
27
27
|
const {
|
|
@@ -5,7 +5,7 @@ import "./MultiValueContainer.compiled.css";
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { components } from '@atlaskit/select';
|
|
7
7
|
import React, { Fragment } from 'react';
|
|
8
|
-
import { FormattedMessage } from 'react-intl
|
|
8
|
+
import { FormattedMessage } from 'react-intl';
|
|
9
9
|
import { messages } from './i18n';
|
|
10
10
|
import { isChildInput } from './utils';
|
|
11
11
|
import ValueContainerWrapper from './ValueContainerWrapper';
|
|
@@ -10,7 +10,7 @@ import { getAvatarUrl, isTeam, isGroup } from './utils';
|
|
|
10
10
|
import { getAppearanceForAppType } from '@atlaskit/avatar';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
12
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
13
|
-
import { FormattedMessage } from 'react-intl
|
|
13
|
+
import { FormattedMessage } from 'react-intl';
|
|
14
14
|
import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
|
|
15
15
|
import { messages } from './i18n';
|
|
16
16
|
const styles = {
|
|
@@ -10,7 +10,7 @@ import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
import { jsx } from '@emotion/react';
|
|
12
12
|
import React from 'react';
|
|
13
|
-
import { FormattedMessage } from 'react-intl
|
|
13
|
+
import { FormattedMessage } from 'react-intl';
|
|
14
14
|
import { AvatarItemOption, textWrapper } from '../AvatarItemOption';
|
|
15
15
|
import { HighlightText } from '../HighlightText';
|
|
16
16
|
import { messages } from '../i18n';
|
|
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
6
|
import { getAppearanceForAppType } from '@atlaskit/avatar';
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { AvatarItemOption, textWrapper } from './AvatarItemOption';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
-
import { FormattedMessage } from 'react-intl
|
|
3
|
+
import { FormattedMessage } from 'react-intl';
|
|
4
4
|
import memoizeOne from 'memoize-one';
|
|
5
5
|
import { messages } from '../../components/i18n';
|
|
6
6
|
const getLabelForType = (type, customLabels) => {
|
package/dist/esm/analytics.js
CHANGED
|
@@ -9,7 +9,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
9
9
|
import { v4 as uuidv4 } from 'uuid';
|
|
10
10
|
import { isCustom, isExternalUser } from './components/utils';
|
|
11
11
|
var packageName = "@atlaskit/user-picker";
|
|
12
|
-
var packageVersion = "
|
|
12
|
+
var packageVersion = "0.0.0-development";
|
|
13
13
|
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}$/;
|
|
14
14
|
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}$/;
|
|
15
15
|
var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
|
|
@@ -19,7 +19,7 @@ import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
|
19
19
|
import { UFOExperienceState } from '@atlaskit/ufo';
|
|
20
20
|
import debounce from 'lodash/debounce';
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { FormattedMessage } from 'react-intl
|
|
22
|
+
import { FormattedMessage } from 'react-intl';
|
|
23
23
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
24
24
|
import { v4 as uuidv4 } from 'uuid';
|
|
25
25
|
import { cancelEvent, clearEvent, createAndFireEventInElementsChannel, deleteEvent, failedEvent, focusEvent, searchedEvent, selectEvent, startSession } from '../analytics';
|
|
@@ -11,7 +11,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
11
11
|
* @jsx jsx
|
|
12
12
|
*/
|
|
13
13
|
import React from 'react';
|
|
14
|
-
import { FormattedMessage } from 'react-intl
|
|
14
|
+
import { FormattedMessage } from 'react-intl';
|
|
15
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
16
16
|
import { jsx } from '@emotion/react';
|
|
17
17
|
import { AddOptionAvatar } from '../AddOptionAvatar';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
2
2
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { FormattedMessage } from 'react-intl
|
|
4
|
+
import { FormattedMessage } from 'react-intl';
|
|
5
5
|
import { AtlassianIcon, ConfluenceIcon, JiraIcon } from '@atlaskit/logo';
|
|
6
6
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
7
7
|
import { SlackIcon } from '../assets/slack';
|
|
@@ -12,7 +12,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
12
12
|
* @jsx jsx
|
|
13
13
|
*/
|
|
14
14
|
import React from 'react';
|
|
15
|
-
import { FormattedMessage } from 'react-intl
|
|
15
|
+
import { FormattedMessage } from 'react-intl';
|
|
16
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
17
17
|
import { css, jsx } from '@emotion/react';
|
|
18
18
|
import PeopleIcon from '@atlaskit/icon/core/people-group';
|
|
@@ -3,7 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
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; }
|
|
4
4
|
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) { _defineProperty(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; }
|
|
5
5
|
import React, { useMemo } from 'react';
|
|
6
|
-
import { useIntl, IntlProvider } from 'react-intl
|
|
6
|
+
import { useIntl, IntlProvider } from 'react-intl';
|
|
7
7
|
import { getMessagesForLocale } from '../util/i18n-util';
|
|
8
8
|
var EMPTY = {};
|
|
9
9
|
var useI18n = function useI18n(locale) {
|
|
@@ -30,7 +30,7 @@ import { getAvatarUrl, isEmail, isGroup, isTeam } from './utils';
|
|
|
30
30
|
import Lozenge from '@atlaskit/lozenge';
|
|
31
31
|
import PeopleIcon from '@atlaskit/icon/core/people-group';
|
|
32
32
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
33
|
-
import { FormattedMessage } from 'react-intl
|
|
33
|
+
import { FormattedMessage } from 'react-intl';
|
|
34
34
|
import { messages } from './i18n';
|
|
35
35
|
export var scrollToValue = function scrollToValue(valueContainer, control) {
|
|
36
36
|
var _valueContainer$getBo = valueContainer.getBoundingClientRect(),
|
|
@@ -16,7 +16,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
16
16
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
17
17
|
import { components } from '@atlaskit/select';
|
|
18
18
|
import React, { Fragment } from 'react';
|
|
19
|
-
import { FormattedMessage } from 'react-intl
|
|
19
|
+
import { FormattedMessage } from 'react-intl';
|
|
20
20
|
import { messages } from './i18n';
|
|
21
21
|
import { isChildInput } from './utils';
|
|
22
22
|
import ValueContainerWrapper from './ValueContainerWrapper';
|
|
@@ -10,7 +10,7 @@ import { getAvatarUrl, isTeam, isGroup } from './utils';
|
|
|
10
10
|
import { getAppearanceForAppType } from '@atlaskit/avatar';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
12
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
13
|
-
import { FormattedMessage } from 'react-intl
|
|
13
|
+
import { FormattedMessage } from 'react-intl';
|
|
14
14
|
import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
|
|
15
15
|
import { messages } from './i18n';
|
|
16
16
|
var styles = {
|
|
@@ -17,7 +17,7 @@ import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team
|
|
|
17
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
18
|
import { jsx } from '@emotion/react';
|
|
19
19
|
import React from 'react';
|
|
20
|
-
import { FormattedMessage } from 'react-intl
|
|
20
|
+
import { FormattedMessage } from 'react-intl';
|
|
21
21
|
import { AvatarItemOption, textWrapper } from '../AvatarItemOption';
|
|
22
22
|
import { HighlightText } from '../HighlightText';
|
|
23
23
|
import { messages } from '../i18n';
|
|
@@ -11,7 +11,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
11
11
|
* @jsx jsx
|
|
12
12
|
*/
|
|
13
13
|
import { getAppearanceForAppType } from '@atlaskit/avatar';
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766
|
|
15
15
|
import { css, jsx } from '@emotion/react';
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import { AvatarItemOption, textWrapper } from './AvatarItemOption';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
-
import { FormattedMessage } from 'react-intl
|
|
3
|
+
import { FormattedMessage } from 'react-intl';
|
|
4
4
|
import memoizeOne from 'memoize-one';
|
|
5
5
|
import { messages } from '../../components/i18n';
|
|
6
6
|
var getLabelForType = function getLabelForType(type, customLabels) {
|