@atlaskit/user-picker 13.4.0 → 13.4.1
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 +6 -0
- package/compass.yml +38 -0
- package/dist/cjs/analytics.js +1 -1
- package/dist/es2019/analytics.js +1 -1
- package/dist/esm/analytics.js +1 -1
- package/package.json +10 -10
- package/tsconfig.json +2 -0
- package/user-picker.docs.tsx +55 -0
package/CHANGELOG.md
CHANGED
package/compass.yml
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
configVersion: 1
|
|
2
|
+
id: ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/29500385-dad1-418b-988e-f07bb60740e6
|
|
3
|
+
name: '@atlaskit/user-picker'
|
|
4
|
+
ownerId: ari:cloud:identity::team/8c518cea-39e4-4a9e-976b-2eec1db07eb2 # Search PlEx
|
|
5
|
+
labels:
|
|
6
|
+
- platform-code
|
|
7
|
+
- platform-afm
|
|
8
|
+
typeId: OTHER
|
|
9
|
+
fields:
|
|
10
|
+
tier: 4
|
|
11
|
+
lifecycle: Active
|
|
12
|
+
isMonorepoProject: true
|
|
13
|
+
links:
|
|
14
|
+
- name: Root Repository
|
|
15
|
+
type: REPOSITORY
|
|
16
|
+
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master
|
|
17
|
+
- name: Slack Channel
|
|
18
|
+
type: CHAT_CHANNEL
|
|
19
|
+
url: https://atlassian.enterprise.slack.com/archives/CFG8QANL9 # #help-search-plex
|
|
20
|
+
- name: User Picker
|
|
21
|
+
type: REPOSITORY
|
|
22
|
+
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/elements/user-picker
|
|
23
|
+
customFields:
|
|
24
|
+
- name: Department
|
|
25
|
+
type: text
|
|
26
|
+
value: Eng - Search PLEX
|
|
27
|
+
- name: Technical Owner
|
|
28
|
+
type: user
|
|
29
|
+
value: ari:cloud:identity::user/712020:bc050a72-a59d-487f-8b54-73358ba67dd0 # David Lyon
|
|
30
|
+
- name: Required Reviewers Opt In
|
|
31
|
+
type: boolean
|
|
32
|
+
value: true
|
|
33
|
+
- name: Reviewer Selection Mechanism
|
|
34
|
+
type: text
|
|
35
|
+
value: random(2)
|
|
36
|
+
- name: Required Reviewer Approvals
|
|
37
|
+
type: number
|
|
38
|
+
value: 1
|
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 = "13.
|
|
18
|
+
var packageVersion = "13.4.0";
|
|
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}$/;
|
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 = "13.
|
|
9
|
+
const packageVersion = "13.4.0";
|
|
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}$/;
|
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 = "13.
|
|
12
|
+
var packageVersion = "13.4.0";
|
|
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}$/;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/user-picker",
|
|
3
|
-
"version": "13.4.
|
|
3
|
+
"version": "13.4.1",
|
|
4
4
|
"description": "Fabric component for display a dropdown to select a user from",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"@af/integration-testing": "workspace:^",
|
|
17
17
|
"@af/search-test-utils": "workspace:^",
|
|
18
18
|
"@af/visual-regression": "workspace:^",
|
|
19
|
-
"@atlaskit/heading": "^6.
|
|
19
|
+
"@atlaskit/heading": "^6.2.0",
|
|
20
20
|
"@atlassian/a11y-jest-testing": "^0.13.0",
|
|
21
21
|
"@atlassian/a11y-playwright-testing": "^0.10.0",
|
|
22
|
-
"@atlassian/feature-flags-test-utils": "^1.
|
|
22
|
+
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
23
23
|
"@emotion/styled": "^11.0.0",
|
|
24
24
|
"@testing-library/dom": "^10.1.0",
|
|
25
25
|
"@testing-library/jest-dom": "^6.4.5",
|
|
@@ -64,22 +64,22 @@
|
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@atlaskit/afm-i18n-platform-elements-user-picker": "2.168.0",
|
|
67
|
-
"@atlaskit/analytics-next": "^12.
|
|
67
|
+
"@atlaskit/analytics-next": "^12.2.0",
|
|
68
68
|
"@atlaskit/avatar": "^26.1.0",
|
|
69
69
|
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
70
|
-
"@atlaskit/icon": "^
|
|
71
|
-
"@atlaskit/logo": "^21.
|
|
70
|
+
"@atlaskit/icon": "^37.0.0",
|
|
71
|
+
"@atlaskit/logo": "^21.4.0",
|
|
72
72
|
"@atlaskit/lozenge": "^14.1.0",
|
|
73
73
|
"@atlaskit/people-teams-ui-public": "^5.1.0",
|
|
74
74
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
75
75
|
"@atlaskit/popper": "^8.2.0",
|
|
76
|
-
"@atlaskit/primitives": "^20.
|
|
76
|
+
"@atlaskit/primitives": "^20.5.0",
|
|
77
77
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
78
|
-
"@atlaskit/select": "^22.
|
|
78
|
+
"@atlaskit/select": "^22.5.0",
|
|
79
79
|
"@atlaskit/spinner": "^20.1.0",
|
|
80
|
-
"@atlaskit/tag": "^15.
|
|
80
|
+
"@atlaskit/tag": "^15.2.0",
|
|
81
81
|
"@atlaskit/teams-avatar": "^3.1.0",
|
|
82
|
-
"@atlaskit/tokens": "^15.
|
|
82
|
+
"@atlaskit/tokens": "^15.5.0",
|
|
83
83
|
"@atlaskit/tooltip": "^23.1.0",
|
|
84
84
|
"@atlaskit/ufo": "^1.0.0",
|
|
85
85
|
"@babel/runtime": "^7.0.0",
|
package/tsconfig.json
CHANGED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Structured MCP docs for `@atlaskit/user-picker`.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import path from 'path';
|
|
6
|
+
|
|
7
|
+
import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
|
|
8
|
+
|
|
9
|
+
import packageJson from './package.json';
|
|
10
|
+
|
|
11
|
+
const packagePath = path.resolve(__dirname);
|
|
12
|
+
|
|
13
|
+
const documentation: StructuredContentSource = {
|
|
14
|
+
package: {
|
|
15
|
+
package: '@atlaskit/user-picker',
|
|
16
|
+
packagePath,
|
|
17
|
+
packageJson,
|
|
18
|
+
overview:
|
|
19
|
+
'A React component for selecting users, teams, and groups. It provides a searchable dropdown with support for single and multi-select modes, custom options, and external users.',
|
|
20
|
+
},
|
|
21
|
+
components: [
|
|
22
|
+
{
|
|
23
|
+
name: 'UserPicker',
|
|
24
|
+
description: 'The main user picker component.',
|
|
25
|
+
status: 'general-availability',
|
|
26
|
+
import: {
|
|
27
|
+
name: 'default',
|
|
28
|
+
package: '@atlaskit/user-picker',
|
|
29
|
+
type: 'default',
|
|
30
|
+
packagePath,
|
|
31
|
+
packageJson,
|
|
32
|
+
},
|
|
33
|
+
usageGuidelines: [
|
|
34
|
+
'Use `UserPicker` for selecting users or teams in forms or filters.',
|
|
35
|
+
'Supports `isMulti` for selecting multiple items.',
|
|
36
|
+
],
|
|
37
|
+
keywords: ['user-picker', 'select', 'user', 'team'],
|
|
38
|
+
categories: ['elements'],
|
|
39
|
+
examples: [
|
|
40
|
+
{
|
|
41
|
+
name: 'Single user picker',
|
|
42
|
+
description: 'Basic usage of UserPicker in single-select mode.',
|
|
43
|
+
source: path.resolve(packagePath, './examples/00-single.tsx'),
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'Multi user picker',
|
|
47
|
+
description: 'Basic usage of UserPicker in multi-select mode.',
|
|
48
|
+
source: path.resolve(packagePath, './examples/01-multi.tsx'),
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export default documentation;
|