@atlaskit/smart-user-picker 10.2.0 → 11.1.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 +37 -0
- package/compass.yml +38 -0
- package/components/package.json +1 -8
- package/default-value-hydration-client/package.json +1 -8
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/userPicker.js +66 -0
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/userPicker.js +5 -0
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/userPicker.js +5 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/{types-ts4.5/index.d.ts → types/userPicker.d.ts} +0 -3
- package/option/package.json +1 -8
- package/package.json +10 -18
- package/recommendation-client/package.json +1 -8
- package/smart-user-picker.docs.tsx +41 -0
- package/tsconfig.json +2 -0
- package/types/package.json +1 -8
- package/user-picker/package.json +8 -0
- package/dist/types-ts4.5/analytics.d.ts +0 -22
- package/dist/types-ts4.5/components/MessagesIntlProvider.d.ts +0 -9
- package/dist/types-ts4.5/components/SmartUserPicker.d.ts +0 -43
- package/dist/types-ts4.5/components/index.d.ts +0 -4
- package/dist/types-ts4.5/config/index.d.ts +0 -6
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -8
- package/dist/types-ts4.5/i18n/da.d.ts +0 -8
- package/dist/types-ts4.5/i18n/de.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -8
- package/dist/types-ts4.5/i18n/es.d.ts +0 -8
- package/dist/types-ts4.5/i18n/et.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/hr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -8
- package/dist/types-ts4.5/i18n/is.d.ts +0 -7
- package/dist/types-ts4.5/i18n/it.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -8
- package/dist/types-ts4.5/i18n/languages.d.ts +0 -27
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -8
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ro.d.ts +0 -7
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sk.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -8
- package/dist/types-ts4.5/i18n/th.d.ts +0 -8
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -8
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -8
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -8
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -8
- package/dist/types-ts4.5/i18n.d.ts +0 -47
- package/dist/types-ts4.5/option.d.ts +0 -2
- package/dist/types-ts4.5/service/atl-attribution.d.ts +0 -20
- package/dist/types-ts4.5/service/constants.d.ts +0 -4
- package/dist/types-ts4.5/service/default-value-hydration-client.d.ts +0 -11
- package/dist/types-ts4.5/service/graphqlUtils.d.ts +0 -16
- package/dist/types-ts4.5/service/index.d.ts +0 -2
- package/dist/types-ts4.5/service/recommendation-client.d.ts +0 -9
- package/dist/types-ts4.5/service/teams-client.d.ts +0 -15
- package/dist/types-ts4.5/service/users-client.d.ts +0 -12
- package/dist/types-ts4.5/service/users-transformer.d.ts +0 -19
- package/dist/types-ts4.5/types.d.ts +0 -320
- package/dist/types-ts4.5/ufoExperiences.d.ts +0 -11
- package/dist/types-ts4.5/util/i18n-util.d.ts +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @atlassian/smart-user-picker
|
|
2
2
|
|
|
3
|
+
## 11.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`b9a7b3350402b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b9a7b3350402b) -
|
|
8
|
+
Autofix: add explicit package exports (barrel removal)
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 11.0.0
|
|
15
|
+
|
|
16
|
+
### Major Changes
|
|
17
|
+
|
|
18
|
+
- [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
|
|
19
|
+
Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
|
|
20
|
+
|
|
21
|
+
Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
|
|
22
|
+
|
|
23
|
+
Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
|
|
24
|
+
|
|
25
|
+
```diff
|
|
26
|
+
- "typesVersions": {
|
|
27
|
+
- ">=4.5 <4.9": {
|
|
28
|
+
- "*": [
|
|
29
|
+
- "dist/types-ts4.5/*",
|
|
30
|
+
- "dist/types-ts4.5/index.d.ts"
|
|
31
|
+
- ]
|
|
32
|
+
- }
|
|
33
|
+
- },
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- Updated dependencies
|
|
39
|
+
|
|
3
40
|
## 10.2.0
|
|
4
41
|
|
|
5
42
|
### Minor Changes
|
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/e5d00ea8-8a61-49ea-a433-df5d5037fb47
|
|
3
|
+
name: '@atlaskit/smart-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: Smart User Picker
|
|
21
|
+
type: REPOSITORY
|
|
22
|
+
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/smart-experiences/smart-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/components/package.json
CHANGED
|
@@ -4,12 +4,5 @@
|
|
|
4
4
|
"module": "../dist/esm/components/index.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/components/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/components/index.d.ts"
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
">=4.5 <5.9": {
|
|
10
|
-
"*": [
|
|
11
|
-
"../dist/types-ts4.5/components/index.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
7
|
+
"types": "../dist/types/components/index.d.ts"
|
|
15
8
|
}
|
|
@@ -4,12 +4,5 @@
|
|
|
4
4
|
"module": "../dist/esm/service/default-value-hydration-client.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/service/default-value-hydration-client.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/service/default-value-hydration-client.d.ts"
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
">=4.5 <5.9": {
|
|
10
|
-
"*": [
|
|
11
|
-
"../dist/types-ts4.5/service/default-value-hydration-client.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
7
|
+
"types": "../dist/types/service/default-value-hydration-client.d.ts"
|
|
15
8
|
}
|
package/dist/cjs/analytics.js
CHANGED
|
@@ -12,7 +12,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
12
12
|
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
|
|
13
13
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
14
14
|
var packageName = "@atlaskit/smart-user-picker";
|
|
15
|
-
var packageVersion = "
|
|
15
|
+
var packageVersion = "11.0.0";
|
|
16
16
|
var startSession = exports.startSession = function startSession() {
|
|
17
17
|
return {
|
|
18
18
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
package/dist/cjs/index.js
CHANGED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "EmailType", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _userPicker.EmailType;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "GroupType", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _userPicker.GroupType;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "TeamType", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _userPicker.TeamType;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "UserType", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _userPicker.UserType;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "isEmail", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _userPicker.isEmail;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "isExternalUser", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _userPicker.isExternalUser;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "isGroup", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _userPicker.isGroup;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "isTeam", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _userPicker.isTeam;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "isUser", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _userPicker.isUser;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "isValidEmail", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function get() {
|
|
63
|
+
return _userPicker.isValidEmail;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
var _userPicker = require("@atlaskit/user-picker");
|
package/dist/es2019/analytics.js
CHANGED
|
@@ -3,7 +3,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
4
4
|
import { v4 as uuid } from 'uuid';
|
|
5
5
|
const packageName = "@atlaskit/smart-user-picker";
|
|
6
|
-
const packageVersion = "
|
|
6
|
+
const packageVersion = "11.0.0";
|
|
7
7
|
export const startSession = () => ({
|
|
8
8
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
9
9
|
id: uuid(),
|
package/dist/es2019/index.js
CHANGED
package/dist/esm/analytics.js
CHANGED
|
@@ -6,7 +6,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
7
7
|
import { v4 as uuid } from 'uuid';
|
|
8
8
|
var packageName = "@atlaskit/smart-user-picker";
|
|
9
|
-
var packageVersion = "
|
|
9
|
+
var packageVersion = "11.0.0";
|
|
10
10
|
export var startSession = function startSession() {
|
|
11
11
|
return {
|
|
12
12
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
package/dist/esm/index.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default } from './components';
|
|
2
2
|
export { getUserRecommendations, hydrateDefaultValues } from './service';
|
|
3
3
|
export type { RecommendationRequest, Props, State, RestrictionFilter } from './types';
|
|
4
|
-
export { isEmail, isTeam, isUser, isExternalUser, isValidEmail, isGroup, EmailType, GroupType, TeamType, UserType, } from '
|
|
5
|
-
export type { ActionTypes, Appearance, AtlasKitSelectChange, AtlaskitSelectValue, DefaultValue, EmailValidationResponse, EmailValidator, InputActionTypes, LozengeProps, OnChange, OnInputChange, OnOption, OnPicker, Option, OptionData, OptionIdentifier, PopupUserPickerProps, Promisable, Target, UserPickerProps, UserPickerState, Value, Email, Group, GroupHighlight, HighlightRange, LoadOptions, Team, TeamHighlight, TeamMember, User, UserHighlight, ExternalUser, UserSource, } from '
|
|
4
|
+
export { isEmail, isTeam, isUser, isExternalUser, isValidEmail, isGroup, EmailType, GroupType, TeamType, UserType, } from './userPicker';
|
|
5
|
+
export type { ActionTypes, Appearance, AtlasKitSelectChange, AtlaskitSelectValue, DefaultValue, EmailValidationResponse, EmailValidator, InputActionTypes, LozengeProps, OnChange, OnInputChange, OnOption, OnPicker, Option, OptionData, OptionIdentifier, PopupUserPickerProps, Promisable, Target, UserPickerProps, UserPickerState, Value, Email, Group, GroupHighlight, HighlightRange, LoadOptions, Team, TeamHighlight, TeamMember, User, UserHighlight, ExternalUser, UserSource, } from './userPicker';
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
export { default } from './components';
|
|
2
|
-
export { getUserRecommendations, hydrateDefaultValues } from './service';
|
|
3
|
-
export type { RecommendationRequest, Props, State, RestrictionFilter } from './types';
|
|
4
1
|
export { isEmail, isTeam, isUser, isExternalUser, isValidEmail, isGroup, EmailType, GroupType, TeamType, UserType, } from '@atlaskit/user-picker';
|
|
5
2
|
export type { ActionTypes, Appearance, AtlasKitSelectChange, AtlaskitSelectValue, DefaultValue, EmailValidationResponse, EmailValidator, InputActionTypes, LozengeProps, OnChange, OnInputChange, OnOption, OnPicker, Option, OptionData, OptionIdentifier, PopupUserPickerProps, Promisable, Target, UserPickerProps, UserPickerState, Value, Email, Group, GroupHighlight, HighlightRange, LoadOptions, Team, TeamHighlight, TeamMember, User, UserHighlight, ExternalUser, UserSource, } from '@atlaskit/user-picker';
|
package/option/package.json
CHANGED
|
@@ -4,12 +4,5 @@
|
|
|
4
4
|
"module": "../dist/esm/option.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/option.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/option.d.ts"
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
">=4.5 <5.9": {
|
|
10
|
-
"*": [
|
|
11
|
-
"../dist/types-ts4.5/option.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
7
|
+
"types": "../dist/types/option.d.ts"
|
|
15
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-user-picker",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,14 +12,6 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
-
"typesVersions": {
|
|
16
|
-
">=4.5 <4.9": {
|
|
17
|
-
"*": [
|
|
18
|
-
"dist/types-ts4.5/*",
|
|
19
|
-
"dist/types-ts4.5/index.d.ts"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
15
|
"sideEffects": false,
|
|
24
16
|
"atlaskit:src": "src/index.ts",
|
|
25
17
|
"atlassian": {
|
|
@@ -34,11 +26,11 @@
|
|
|
34
26
|
}
|
|
35
27
|
},
|
|
36
28
|
"dependencies": {
|
|
37
|
-
"@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker": "2.
|
|
38
|
-
"@atlaskit/analytics-next": "^
|
|
39
|
-
"@atlaskit/platform-feature-flags": "^
|
|
40
|
-
"@atlaskit/ufo": "^0.
|
|
41
|
-
"@atlaskit/user-picker": "^
|
|
29
|
+
"@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker": "2.143.0",
|
|
30
|
+
"@atlaskit/analytics-next": "^12.3.0",
|
|
31
|
+
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
32
|
+
"@atlaskit/ufo": "^1.0.0",
|
|
33
|
+
"@atlaskit/user-picker": "^13.4.0",
|
|
42
34
|
"@babel/runtime": "^7.0.0",
|
|
43
35
|
"lodash": "^4.17.21",
|
|
44
36
|
"memoize-one": "^6.0.0",
|
|
@@ -50,9 +42,9 @@
|
|
|
50
42
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
51
43
|
},
|
|
52
44
|
"devDependencies": {
|
|
53
|
-
"@atlaskit/select": "^
|
|
54
|
-
"@atlaskit/util-data-test": "^
|
|
55
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
45
|
+
"@atlaskit/select": "^22.5.0",
|
|
46
|
+
"@atlaskit/util-data-test": "^19.1.0",
|
|
47
|
+
"@atlassian/a11y-jest-testing": "^0.13.0",
|
|
56
48
|
"@testing-library/dom": "^10.1.0",
|
|
57
49
|
"@testing-library/react": "^16.3.0",
|
|
58
50
|
"@testing-library/user-event": "^14.4.3",
|
|
@@ -62,7 +54,7 @@
|
|
|
62
54
|
"mock-apollo-client": "^0.1.0",
|
|
63
55
|
"react": "^18.2.0",
|
|
64
56
|
"react-dom": "^18.2.0",
|
|
65
|
-
"react-intl": "^
|
|
57
|
+
"react-intl": "^7.0.0"
|
|
66
58
|
},
|
|
67
59
|
"platform-feature-flags": {
|
|
68
60
|
"twcg-444-invite-usd-improvements-m2-gate": {
|
|
@@ -4,12 +4,5 @@
|
|
|
4
4
|
"module": "../dist/esm/service/recommendation-client.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/service/recommendation-client.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/service/recommendation-client.d.ts"
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
">=4.5 <5.9": {
|
|
10
|
-
"*": [
|
|
11
|
-
"../dist/types-ts4.5/service/recommendation-client.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
7
|
+
"types": "../dist/types/service/recommendation-client.d.ts"
|
|
15
8
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
|
|
3
|
+
import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
|
|
4
|
+
|
|
5
|
+
import packageJson from './package.json';
|
|
6
|
+
|
|
7
|
+
const packagePath = path.resolve(__dirname);
|
|
8
|
+
|
|
9
|
+
const documentation: StructuredContentSource = {
|
|
10
|
+
components: [
|
|
11
|
+
{
|
|
12
|
+
name: 'SmartUserPicker',
|
|
13
|
+
description:
|
|
14
|
+
'A user picker component that provides ranked recommendations based on the current context.',
|
|
15
|
+
status: 'general-availability',
|
|
16
|
+
import: {
|
|
17
|
+
name: 'default',
|
|
18
|
+
package: '@atlaskit/smart-user-picker',
|
|
19
|
+
type: 'default',
|
|
20
|
+
packagePath,
|
|
21
|
+
packageJson,
|
|
22
|
+
},
|
|
23
|
+
usageGuidelines: [
|
|
24
|
+
'Use SmartUserPicker to allow users to select other users or teams.',
|
|
25
|
+
'Provides intelligent recommendations to help users find the right person quickly.',
|
|
26
|
+
'Supports searching by name, email, and other criteria.',
|
|
27
|
+
],
|
|
28
|
+
examples: [
|
|
29
|
+
{
|
|
30
|
+
name: 'Basic',
|
|
31
|
+
description: 'Standard smart user picker display.',
|
|
32
|
+
source: path.resolve(packagePath, './examples/00-smart-user-picker.tsx'),
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
keywords: ['user', 'picker', 'recommendations', 'search', 'teams'],
|
|
36
|
+
categories: ['interaction'],
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export default documentation;
|
package/tsconfig.json
CHANGED
package/types/package.json
CHANGED
|
@@ -4,12 +4,5 @@
|
|
|
4
4
|
"module": "../dist/esm/types.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/types.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/types.d.ts"
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
">=4.5 <5.9": {
|
|
10
|
-
"*": [
|
|
11
|
-
"../dist/types-ts4.5/types.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
7
|
+
"types": "../dist/types/types.d.ts"
|
|
15
8
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { UIAnalyticsEvent, type AnalyticsEventPayload, type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import { type Props } from './types';
|
|
3
|
-
export type UserPickerSession = {
|
|
4
|
-
id: string;
|
|
5
|
-
start: number;
|
|
6
|
-
inputChangeTime: number;
|
|
7
|
-
upCount: number;
|
|
8
|
-
downCount: number;
|
|
9
|
-
lastKey?: number;
|
|
10
|
-
};
|
|
11
|
-
export declare const startSession: () => UserPickerSession;
|
|
12
|
-
export declare const createAndFireEventInElementsChannel: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent;
|
|
13
|
-
export interface SmartEventCreator {
|
|
14
|
-
(props: Props, ...args: any[]): AnalyticsEventPayload;
|
|
15
|
-
}
|
|
16
|
-
export declare const preparedUsersLoadedEvent: SmartEventCreator;
|
|
17
|
-
export declare const mountedWithPrefetchEvent: SmartEventCreator;
|
|
18
|
-
export declare const filterUsersEvent: SmartEventCreator;
|
|
19
|
-
export declare const requestUsersEvent: SmartEventCreator;
|
|
20
|
-
export declare const successfulRequestUsersEvent: SmartEventCreator;
|
|
21
|
-
export declare const failedRequestUsersEvent: SmartEventCreator;
|
|
22
|
-
export declare const failedUserResolversEvent: SmartEventCreator;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { type PropsWithChildren } from 'react';
|
|
2
|
-
import { type IntlShape, type WithIntlProps } from 'react-intl';
|
|
3
|
-
export type MessagesIntlProviderProps = PropsWithChildren<{
|
|
4
|
-
intl: IntlShape;
|
|
5
|
-
}>;
|
|
6
|
-
declare const _default_1: React.FC<WithIntlProps<MessagesIntlProviderProps>> & {
|
|
7
|
-
WrappedComponent: React.ComponentType<MessagesIntlProviderProps>;
|
|
8
|
-
};
|
|
9
|
-
export default _default_1;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type MemoizedFn } from 'memoize-one';
|
|
3
|
-
import { type WrappedComponentProps } from 'react-intl';
|
|
4
|
-
import { type UFOExperience } from '@atlaskit/ufo';
|
|
5
|
-
import { type OptionData } from '@atlaskit/user-picker';
|
|
6
|
-
import { type Props, type State, type FilterOptions } from '../types';
|
|
7
|
-
import type { DebouncedFunc } from 'lodash';
|
|
8
|
-
export declare class SmartUserPickerWithoutAnalytics extends React.Component<Props & WrappedComponentProps, State> {
|
|
9
|
-
state: State;
|
|
10
|
-
private lastEmailSearchFoundMatches;
|
|
11
|
-
optionsShownUfoExperienceInstance: UFOExperience;
|
|
12
|
-
static defaultProps: {
|
|
13
|
-
baseUrl: string;
|
|
14
|
-
includeUsers: boolean;
|
|
15
|
-
includeGroups: boolean;
|
|
16
|
-
includeTeams: boolean;
|
|
17
|
-
includeTeamsUpdates: boolean;
|
|
18
|
-
includeNonLicensedUsers: boolean;
|
|
19
|
-
displayEmailInByline: boolean;
|
|
20
|
-
prefetch: boolean;
|
|
21
|
-
principalId: string;
|
|
22
|
-
debounceTime: number;
|
|
23
|
-
userResolvers: never[];
|
|
24
|
-
enableEmailSearch: boolean;
|
|
25
|
-
allowEmailSelectionWhenEmailMatched: boolean;
|
|
26
|
-
verifiedTeams: boolean;
|
|
27
|
-
};
|
|
28
|
-
constructor(props: Props & WrappedComponentProps);
|
|
29
|
-
componentDidMount(): Promise<void>;
|
|
30
|
-
componentDidUpdate(prevProps: Props, prevState: State): void;
|
|
31
|
-
abortOptionsShownUfoExperience: () => void;
|
|
32
|
-
startOptionsShownUfoExperience: () => void;
|
|
33
|
-
private fireEvent;
|
|
34
|
-
filterOptions: (users: OptionData[], query: string, propFilterOptions?: FilterOptions) => OptionData[];
|
|
35
|
-
memoizedFilterOptions: MemoizedFn<(users: OptionData[], query: string, propFilterOptions?: FilterOptions) => OptionData[]>;
|
|
36
|
-
getUsers: DebouncedFunc<() => Promise<void>>;
|
|
37
|
-
onInputChange: (newQuery?: string, sessionId?: string) => void;
|
|
38
|
-
filterUsers: () => OptionData[];
|
|
39
|
-
onFocus: (sessionId?: string) => void;
|
|
40
|
-
onBlur: (sessionId?: string) => void;
|
|
41
|
-
render(): React.JSX.Element;
|
|
42
|
-
}
|
|
43
|
-
export declare const SmartUserPicker: any;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const config: {
|
|
2
|
-
getRecommendationServiceUrl(baseUrl: string): string;
|
|
3
|
-
getUsersServiceUrl(productKey: string, baseUrl?: string): string;
|
|
4
|
-
getGraphQLUrl(baseUrl?: string): string;
|
|
5
|
-
getTeamsUrl(id: string, baseUrl?: string, siteId?: string): string;
|
|
6
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/cs';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/da';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/de';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/en';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/en_GB';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/en_ZZ';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/es';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/fi';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/fr';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/hr';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/hu';
|
|
8
|
-
export default translations;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
'fabric.elements.user-picker.placeholder': string;
|
|
3
|
-
'fabric.elements.user-picker.placeholder.add-more': string;
|
|
4
|
-
'fabric.elements.user-picker.multi.remove-item': string;
|
|
5
|
-
'fabric.elements.user-picker.single.clear': string;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|