@atlaskit/user-picker 10.19.0 → 10.19.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 +12 -0
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/ExternalUserOption/SourcesTooltipContent.js +7 -6
- package/dist/cjs/i18n/vi.js +1 -1
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/ExternalUserOption/SourcesTooltipContent.js +6 -5
- package/dist/es2019/i18n/vi.js +1 -1
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/ExternalUserOption/SourcesTooltipContent.js +6 -5
- package/dist/esm/i18n/vi.js +1 -1
- package/dist/types/components/ExternalUserOption/SourcesTooltipContent.d.ts +0 -2
- package/dist/types-ts4.5/components/ExternalUserOption/SourcesTooltipContent.d.ts +0 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/user-picker
|
|
2
2
|
|
|
3
|
+
## 10.19.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 10.19.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#74482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74482) [`b10803d85d88`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b10803d85d88) - The internal composition of this component has changed. There is no expected change in behaviour.
|
|
14
|
+
|
|
3
15
|
## 10.19.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/cjs/analytics.js
CHANGED
|
@@ -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.19.
|
|
15
|
+
var packageVersion = "10.19.2";
|
|
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}$/;
|
|
@@ -4,7 +4,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.sourceWrapper = exports.SourcesTooltipContent = void 0;
|
|
8
|
+
var _primitives = require("@atlaskit/primitives");
|
|
8
9
|
var _react = _interopRequireDefault(require("react"));
|
|
9
10
|
var _reactIntlNext = require("react-intl-next");
|
|
10
11
|
var _react2 = require("@emotion/react");
|
|
@@ -17,9 +18,9 @@ var _i18n = require("../i18n");
|
|
|
17
18
|
var _main = require("./main");
|
|
18
19
|
/** @jsx jsx */
|
|
19
20
|
|
|
20
|
-
var sourcesTooltipContainer =
|
|
21
|
-
paddingBottom:
|
|
22
|
-
paddingRight:
|
|
21
|
+
var sourcesTooltipContainer = (0, _primitives.xcss)({
|
|
22
|
+
paddingBottom: 'space.050',
|
|
23
|
+
paddingRight: 'space.050'
|
|
23
24
|
});
|
|
24
25
|
var sourceWrapper = exports.sourceWrapper = (0, _react2.css)({
|
|
25
26
|
paddingTop: "var(--ds-space-050, 4px)",
|
|
@@ -65,8 +66,8 @@ var SourcesTooltipContent = exports.SourcesTooltipContent = function SourcesTool
|
|
|
65
66
|
return sources.includes(supportedSource.sourceType);
|
|
66
67
|
});
|
|
67
68
|
}, [sources]);
|
|
68
|
-
return (0, _react2.jsx)(_react.default.Fragment, null, !sourcesLoading && sources.length === 0 ? (0, _react2.jsx)("span", null, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _i18n.messages.externalUserSourcesError)) : (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)("span", null, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _i18n.messages.externalUserSourcesHeading)), (0, _react2.jsx)(
|
|
69
|
-
|
|
69
|
+
return (0, _react2.jsx)(_react.default.Fragment, null, !sourcesLoading && sources.length === 0 ? (0, _react2.jsx)("span", null, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _i18n.messages.externalUserSourcesError)) : (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)("span", null, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _i18n.messages.externalUserSourcesHeading)), (0, _react2.jsx)(_primitives.Box, {
|
|
70
|
+
xcss: sourcesTooltipContainer
|
|
70
71
|
}, sourcesLoading && (0, _react2.jsx)(_spinner.default, {
|
|
71
72
|
size: "small",
|
|
72
73
|
appearance: "invert"
|
package/dist/cjs/i18n/vi.js
CHANGED
|
@@ -29,7 +29,7 @@ var _default = exports.default = {
|
|
|
29
29
|
'fabric.elements.user-picker.microsoft.provider': 'Microsoft',
|
|
30
30
|
'fabric.elements.user-picker.multi.remove-item': 'Xóa',
|
|
31
31
|
'fabric.elements.user-picker.placeholder': 'Nhập người hoặc nhóm...',
|
|
32
|
-
'fabric.elements.user-picker.placeholder.add-more': 'thêm
|
|
32
|
+
'fabric.elements.user-picker.placeholder.add-more': 'thêm người khác...',
|
|
33
33
|
'fabric.elements.user-picker.single.clear': 'Xóa',
|
|
34
34
|
'fabric.elements.user-picker.slack.provider': 'Slack',
|
|
35
35
|
'fabric.elements.user-picker.source.confluence': 'Confluence',
|
package/dist/es2019/analytics.js
CHANGED
|
@@ -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.19.
|
|
5
|
+
const packageVersion = "10.19.2";
|
|
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,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
5
|
import { css, jsx } from '@emotion/react';
|
|
@@ -9,9 +10,9 @@ import { GoogleIcon } from '../assets/google';
|
|
|
9
10
|
import { MicrosoftIcon } from '../assets/microsoft';
|
|
10
11
|
import { messages } from '../i18n';
|
|
11
12
|
import { imageContainer } from './main';
|
|
12
|
-
|
|
13
|
-
paddingBottom:
|
|
14
|
-
paddingRight:
|
|
13
|
+
const sourcesTooltipContainer = xcss({
|
|
14
|
+
paddingBottom: 'space.050',
|
|
15
|
+
paddingRight: 'space.050'
|
|
15
16
|
});
|
|
16
17
|
export const sourceWrapper = css({
|
|
17
18
|
paddingTop: "var(--ds-space-050, 4px)",
|
|
@@ -54,8 +55,8 @@ export const SourcesTooltipContent = ({
|
|
|
54
55
|
sourcesLoading
|
|
55
56
|
}) => {
|
|
56
57
|
const sourcesToRender = React.useMemo(() => SUPPORTED_SOURCES.filter(supportedSource => sources.includes(supportedSource.sourceType)), [sources]);
|
|
57
|
-
return jsx(React.Fragment, null, !sourcesLoading && sources.length === 0 ? jsx("span", null, jsx(FormattedMessage, messages.externalUserSourcesError)) : jsx(React.Fragment, null, jsx("span", null, jsx(FormattedMessage, messages.externalUserSourcesHeading)), jsx(
|
|
58
|
-
|
|
58
|
+
return jsx(React.Fragment, null, !sourcesLoading && sources.length === 0 ? jsx("span", null, jsx(FormattedMessage, messages.externalUserSourcesError)) : jsx(React.Fragment, null, jsx("span", null, jsx(FormattedMessage, messages.externalUserSourcesHeading)), jsx(Box, {
|
|
59
|
+
xcss: sourcesTooltipContainer
|
|
59
60
|
}, sourcesLoading && jsx(Spinner, {
|
|
60
61
|
size: "small",
|
|
61
62
|
appearance: "invert"
|
package/dist/es2019/i18n/vi.js
CHANGED
|
@@ -23,7 +23,7 @@ export default {
|
|
|
23
23
|
'fabric.elements.user-picker.microsoft.provider': 'Microsoft',
|
|
24
24
|
'fabric.elements.user-picker.multi.remove-item': 'Xóa',
|
|
25
25
|
'fabric.elements.user-picker.placeholder': 'Nhập người hoặc nhóm...',
|
|
26
|
-
'fabric.elements.user-picker.placeholder.add-more': 'thêm
|
|
26
|
+
'fabric.elements.user-picker.placeholder.add-more': 'thêm người khác...',
|
|
27
27
|
'fabric.elements.user-picker.single.clear': 'Xóa',
|
|
28
28
|
'fabric.elements.user-picker.slack.provider': 'Slack',
|
|
29
29
|
'fabric.elements.user-picker.source.confluence': 'Confluence',
|
package/dist/esm/analytics.js
CHANGED
|
@@ -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.19.
|
|
8
|
+
var packageVersion = "10.19.2";
|
|
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}$/;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
5
|
import { css, jsx } from '@emotion/react';
|
|
@@ -9,9 +10,9 @@ import { GoogleIcon } from '../assets/google';
|
|
|
9
10
|
import { MicrosoftIcon } from '../assets/microsoft';
|
|
10
11
|
import { messages } from '../i18n';
|
|
11
12
|
import { imageContainer } from './main';
|
|
12
|
-
|
|
13
|
-
paddingBottom:
|
|
14
|
-
paddingRight:
|
|
13
|
+
var sourcesTooltipContainer = xcss({
|
|
14
|
+
paddingBottom: 'space.050',
|
|
15
|
+
paddingRight: 'space.050'
|
|
15
16
|
});
|
|
16
17
|
export var sourceWrapper = css({
|
|
17
18
|
paddingTop: "var(--ds-space-050, 4px)",
|
|
@@ -57,8 +58,8 @@ export var SourcesTooltipContent = function SourcesTooltipContent(_ref) {
|
|
|
57
58
|
return sources.includes(supportedSource.sourceType);
|
|
58
59
|
});
|
|
59
60
|
}, [sources]);
|
|
60
|
-
return jsx(React.Fragment, null, !sourcesLoading && sources.length === 0 ? jsx("span", null, jsx(FormattedMessage, messages.externalUserSourcesError)) : jsx(React.Fragment, null, jsx("span", null, jsx(FormattedMessage, messages.externalUserSourcesHeading)), jsx(
|
|
61
|
-
|
|
61
|
+
return jsx(React.Fragment, null, !sourcesLoading && sources.length === 0 ? jsx("span", null, jsx(FormattedMessage, messages.externalUserSourcesError)) : jsx(React.Fragment, null, jsx("span", null, jsx(FormattedMessage, messages.externalUserSourcesHeading)), jsx(Box, {
|
|
62
|
+
xcss: sourcesTooltipContainer
|
|
62
63
|
}, sourcesLoading && jsx(Spinner, {
|
|
63
64
|
size: "small",
|
|
64
65
|
appearance: "invert"
|
package/dist/esm/i18n/vi.js
CHANGED
|
@@ -23,7 +23,7 @@ export default {
|
|
|
23
23
|
'fabric.elements.user-picker.microsoft.provider': 'Microsoft',
|
|
24
24
|
'fabric.elements.user-picker.multi.remove-item': 'Xóa',
|
|
25
25
|
'fabric.elements.user-picker.placeholder': 'Nhập người hoặc nhóm...',
|
|
26
|
-
'fabric.elements.user-picker.placeholder.add-more': 'thêm
|
|
26
|
+
'fabric.elements.user-picker.placeholder.add-more': 'thêm người khác...',
|
|
27
27
|
'fabric.elements.user-picker.single.clear': 'Xóa',
|
|
28
28
|
'fabric.elements.user-picker.slack.provider': 'Slack',
|
|
29
29
|
'fabric.elements.user-picker.source.confluence': 'Confluence',
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { ExternalUserSourcesData } from '../ExternalUserSourcesContainer';
|
|
4
|
-
export declare const sourcesTooltipContainer: import("@emotion/react").SerializedStyles;
|
|
5
3
|
export declare const sourceWrapper: import("@emotion/react").SerializedStyles;
|
|
6
4
|
export declare const SourcesTooltipContent: React.FC<ExternalUserSourcesData>;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { ExternalUserSourcesData } from '../ExternalUserSourcesContainer';
|
|
4
|
-
export declare const sourcesTooltipContainer: import("@emotion/react").SerializedStyles;
|
|
5
3
|
export declare const sourceWrapper: import("@emotion/react").SerializedStyles;
|
|
6
4
|
export declare const SourcesTooltipContent: React.FC<ExternalUserSourcesData>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/user-picker",
|
|
3
|
-
"version": "10.19.
|
|
3
|
+
"version": "10.19.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/"
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
46
46
|
"@atlaskit/avatar": "^21.5.0",
|
|
47
|
-
"@atlaskit/icon": "^22.
|
|
47
|
+
"@atlaskit/icon": "^22.1.0",
|
|
48
48
|
"@atlaskit/logo": "^13.15.0",
|
|
49
49
|
"@atlaskit/lozenge": "^11.6.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
51
51
|
"@atlaskit/popper": "^5.5.0",
|
|
52
|
-
"@atlaskit/primitives": "^
|
|
52
|
+
"@atlaskit/primitives": "^3.0.0",
|
|
53
53
|
"@atlaskit/select": "^17.1.0",
|
|
54
54
|
"@atlaskit/spinner": "^16.0.0",
|
|
55
55
|
"@atlaskit/teams-avatar": "^1.0.0",
|