@atlaskit/smart-user-picker 5.1.0 → 5.1.3
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 +18 -0
- package/dist/cjs/analytics.js +6 -3
- package/dist/cjs/components/SmartUserPicker.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/analytics.js +3 -1
- package/dist/es2019/components/SmartUserPicker.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/analytics.js +3 -1
- package/dist/esm/components/SmartUserPicker.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types.d.ts +1 -1
- package/package.json +4 -4
- package/report.api.md +206 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlassian/smart-user-picker
|
|
2
2
|
|
|
3
|
+
## 5.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`977329d177c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/977329d177c) - Import version json and use attributes rather than importing directly
|
|
8
|
+
|
|
9
|
+
## 5.1.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`7536b86964b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7536b86964b) - Update context key for URS from orgId to organizationId
|
|
14
|
+
|
|
15
|
+
## 5.1.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`ff97c74b6f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff97c74b6f0) - Add TeamMember as export from user-picker
|
|
20
|
+
|
|
3
21
|
## 5.1.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/dist/cjs/analytics.js
CHANGED
|
@@ -13,12 +13,15 @@ var _analyticsNext = require("@atlaskit/analytics-next");
|
|
|
13
13
|
|
|
14
14
|
var _uuid = require("uuid");
|
|
15
15
|
|
|
16
|
-
var _version = require("./version.json");
|
|
16
|
+
var _version = _interopRequireDefault(require("./version.json"));
|
|
17
17
|
|
|
18
18
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
19
|
|
|
20
20
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
21
|
|
|
22
|
+
var packageName = _version.default.name;
|
|
23
|
+
var packageVersion = _version.default.version;
|
|
24
|
+
|
|
22
25
|
var startSession = function startSession() {
|
|
23
26
|
return {
|
|
24
27
|
id: (0, _uuid.v4)(),
|
|
@@ -41,8 +44,8 @@ var createEvent = function createEvent(eventType, action, actionSubject) {
|
|
|
41
44
|
action: action,
|
|
42
45
|
actionSubject: actionSubject,
|
|
43
46
|
attributes: _objectSpread({
|
|
44
|
-
packageName:
|
|
45
|
-
packageVersion:
|
|
47
|
+
packageName: packageName,
|
|
48
|
+
packageVersion: packageVersion
|
|
46
49
|
}, attributes)
|
|
47
50
|
};
|
|
48
51
|
};
|
|
@@ -155,7 +155,7 @@ var SmartUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component) {
|
|
|
155
155
|
principalId: principalId,
|
|
156
156
|
productKey: productKey,
|
|
157
157
|
siteId: siteId,
|
|
158
|
-
|
|
158
|
+
organizationId: orgId,
|
|
159
159
|
childObjectId: childObjectId,
|
|
160
160
|
sessionId: sessionId,
|
|
161
161
|
productAttributes: productAttributes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/analytics.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { v4 as uuid } from 'uuid';
|
|
3
|
-
import
|
|
3
|
+
import versionJson from './version.json';
|
|
4
|
+
const packageName = versionJson.name;
|
|
5
|
+
const packageVersion = versionJson.version;
|
|
4
6
|
export const startSession = () => ({
|
|
5
7
|
id: uuid(),
|
|
6
8
|
start: Date.now(),
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/analytics.js
CHANGED
|
@@ -6,7 +6,9 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6
6
|
|
|
7
7
|
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
8
8
|
import { v4 as uuid } from 'uuid';
|
|
9
|
-
import
|
|
9
|
+
import versionJson from './version.json';
|
|
10
|
+
var packageName = versionJson.name;
|
|
11
|
+
var packageVersion = versionJson.version;
|
|
10
12
|
export var startSession = function startSession() {
|
|
11
13
|
return {
|
|
12
14
|
id: uuid(),
|
|
@@ -134,7 +134,7 @@ export var SmartUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compo
|
|
|
134
134
|
principalId: principalId,
|
|
135
135
|
productKey: productKey,
|
|
136
136
|
siteId: siteId,
|
|
137
|
-
|
|
137
|
+
organizationId: orgId,
|
|
138
138
|
childObjectId: childObjectId,
|
|
139
139
|
sessionId: sessionId,
|
|
140
140
|
productAttributes: productAttributes
|
package/dist/esm/version.json
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ export { default } from './components';
|
|
|
2
2
|
export { getUserRecommendations, hydrateDefaultValues } from './service';
|
|
3
3
|
export type { RecommendationRequest, Props, State } from './types';
|
|
4
4
|
export { isEmail, isTeam, isUser, isValidEmail, EmailType, GroupType, TeamType, UserType, } from '@atlaskit/user-picker';
|
|
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, User, UserHighlight, ExternalUser, UserSource, } from '@atlaskit/user-picker';
|
|
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 '@atlaskit/user-picker';
|
|
6
6
|
export { setSmartUserPickerEnv } from './config';
|
package/dist/types/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-user-picker",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
26
26
|
"@atlaskit/ufo": "^0.1.0",
|
|
27
|
-
"@atlaskit/user-picker": "^9.
|
|
27
|
+
"@atlaskit/user-picker": "^9.2.0",
|
|
28
28
|
"@babel/runtime": "^7.0.0",
|
|
29
29
|
"lodash": "^4.17.21",
|
|
30
30
|
"memoize-one": "^6.0.0",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"@atlaskit/docs": "*",
|
|
41
41
|
"@atlaskit/elements-test-helpers": "^0.7.0",
|
|
42
42
|
"@atlaskit/modal-dialog": "^12.2.0",
|
|
43
|
-
"@atlaskit/select": "^15.
|
|
43
|
+
"@atlaskit/select": "^15.3.0",
|
|
44
44
|
"@atlaskit/textfield": "^5.0.0",
|
|
45
45
|
"@atlaskit/theme": "^12.1.0",
|
|
46
|
-
"@atlaskit/util-data-test": "^17.
|
|
46
|
+
"@atlaskit/util-data-test": "^17.3.0",
|
|
47
47
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
48
48
|
"enzyme": "^3.10.0",
|
|
49
49
|
"enzyme-react-intl": "^2.0.6",
|
package/report.api.md
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/smart-user-picker"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import { ActionTypes } from '@atlaskit/user-picker';
|
|
7
|
+
import { Appearance } from '@atlaskit/user-picker';
|
|
8
|
+
import { AtlasKitSelectChange } from '@atlaskit/user-picker';
|
|
9
|
+
import { AtlaskitSelectValue } from '@atlaskit/user-picker';
|
|
10
|
+
import { DefaultValue } from '@atlaskit/user-picker';
|
|
11
|
+
import { Email } from '@atlaskit/user-picker';
|
|
12
|
+
import { EmailType } from '@atlaskit/user-picker';
|
|
13
|
+
import { EmailValidationResponse } from '@atlaskit/user-picker';
|
|
14
|
+
import { EmailValidator } from '@atlaskit/user-picker';
|
|
15
|
+
import { ExternalUser } from '@atlaskit/user-picker';
|
|
16
|
+
import { Group } from '@atlaskit/user-picker';
|
|
17
|
+
import { GroupHighlight } from '@atlaskit/user-picker';
|
|
18
|
+
import { GroupType } from '@atlaskit/user-picker';
|
|
19
|
+
import { HighlightRange } from '@atlaskit/user-picker';
|
|
20
|
+
import { InputActionTypes } from '@atlaskit/user-picker';
|
|
21
|
+
import { IntlShape } from 'react-intl-next';
|
|
22
|
+
import { isEmail } from '@atlaskit/user-picker';
|
|
23
|
+
import { isTeam } from '@atlaskit/user-picker';
|
|
24
|
+
import { isUser } from '@atlaskit/user-picker';
|
|
25
|
+
import { isValidEmail } from '@atlaskit/user-picker';
|
|
26
|
+
import { LoadOptions } from '@atlaskit/user-picker';
|
|
27
|
+
import { LozengeProps } from '@atlaskit/user-picker';
|
|
28
|
+
import { OnChange } from '@atlaskit/user-picker';
|
|
29
|
+
import { OnInputChange } from '@atlaskit/user-picker';
|
|
30
|
+
import { OnOption } from '@atlaskit/user-picker';
|
|
31
|
+
import { OnPicker } from '@atlaskit/user-picker';
|
|
32
|
+
import { Option as Option_2 } from '@atlaskit/user-picker';
|
|
33
|
+
import { OptionData } from '@atlaskit/user-picker';
|
|
34
|
+
import { OptionIdentifier } from '@atlaskit/user-picker';
|
|
35
|
+
import { PopupUserPickerProps } from '@atlaskit/user-picker';
|
|
36
|
+
import { Promisable } from '@atlaskit/user-picker';
|
|
37
|
+
import { default as React_2 } from 'react';
|
|
38
|
+
import { Target } from '@atlaskit/user-picker';
|
|
39
|
+
import { Team } from '@atlaskit/user-picker';
|
|
40
|
+
import { TeamHighlight } from '@atlaskit/user-picker';
|
|
41
|
+
import { TeamMember } from '@atlaskit/user-picker';
|
|
42
|
+
import { TeamType } from '@atlaskit/user-picker';
|
|
43
|
+
import { User } from '@atlaskit/user-picker';
|
|
44
|
+
import { UserHighlight } from '@atlaskit/user-picker';
|
|
45
|
+
import { UserPickerProps } from '@atlaskit/user-picker';
|
|
46
|
+
import { UserPickerState } from '@atlaskit/user-picker';
|
|
47
|
+
import { UserSource } from '@atlaskit/user-picker';
|
|
48
|
+
import { UserType } from '@atlaskit/user-picker';
|
|
49
|
+
import { Value } from '@atlaskit/user-picker';
|
|
50
|
+
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
51
|
+
|
|
52
|
+
export { ActionTypes };
|
|
53
|
+
|
|
54
|
+
export { Appearance };
|
|
55
|
+
|
|
56
|
+
export { AtlasKitSelectChange };
|
|
57
|
+
|
|
58
|
+
export { AtlaskitSelectValue };
|
|
59
|
+
|
|
60
|
+
export { DefaultValue };
|
|
61
|
+
|
|
62
|
+
export { Email };
|
|
63
|
+
|
|
64
|
+
export { EmailType };
|
|
65
|
+
|
|
66
|
+
export { EmailValidationResponse };
|
|
67
|
+
|
|
68
|
+
export { EmailValidator };
|
|
69
|
+
|
|
70
|
+
export { ExternalUser };
|
|
71
|
+
|
|
72
|
+
// @public (undocumented)
|
|
73
|
+
export const getUserRecommendations: (
|
|
74
|
+
request: RecommendationRequest,
|
|
75
|
+
intl: IntlShape,
|
|
76
|
+
) => Promise<OptionData[]>;
|
|
77
|
+
|
|
78
|
+
export { Group };
|
|
79
|
+
|
|
80
|
+
export { GroupHighlight };
|
|
81
|
+
|
|
82
|
+
export { GroupType };
|
|
83
|
+
|
|
84
|
+
export { HighlightRange };
|
|
85
|
+
|
|
86
|
+
// @public (undocumented)
|
|
87
|
+
export function hydrateDefaultValues(
|
|
88
|
+
baseUrl: string | undefined,
|
|
89
|
+
value: DefaultValue,
|
|
90
|
+
productKey: string,
|
|
91
|
+
): Promise<DefaultValue>;
|
|
92
|
+
|
|
93
|
+
export { InputActionTypes };
|
|
94
|
+
|
|
95
|
+
export { isEmail };
|
|
96
|
+
|
|
97
|
+
export { isTeam };
|
|
98
|
+
|
|
99
|
+
export { isUser };
|
|
100
|
+
|
|
101
|
+
export { isValidEmail };
|
|
102
|
+
|
|
103
|
+
export { LoadOptions };
|
|
104
|
+
|
|
105
|
+
export { LozengeProps };
|
|
106
|
+
|
|
107
|
+
export { OnChange };
|
|
108
|
+
|
|
109
|
+
export { OnInputChange };
|
|
110
|
+
|
|
111
|
+
export { OnOption };
|
|
112
|
+
|
|
113
|
+
export { OnPicker };
|
|
114
|
+
|
|
115
|
+
export { Option_2 as Option };
|
|
116
|
+
|
|
117
|
+
export { OptionData };
|
|
118
|
+
|
|
119
|
+
export { OptionIdentifier };
|
|
120
|
+
|
|
121
|
+
export { PopupUserPickerProps };
|
|
122
|
+
|
|
123
|
+
export { Promisable };
|
|
124
|
+
|
|
125
|
+
// @public (undocumented)
|
|
126
|
+
export interface Props
|
|
127
|
+
extends SmartProps,
|
|
128
|
+
UserPickerProps,
|
|
129
|
+
WithAnalyticsEventsProps {
|
|
130
|
+
defaultValue?: DefaultValue;
|
|
131
|
+
fieldId: string;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// @public (undocumented)
|
|
135
|
+
export interface RecommendationRequest {
|
|
136
|
+
// (undocumented)
|
|
137
|
+
baseUrl?: string;
|
|
138
|
+
// (undocumented)
|
|
139
|
+
context: Context;
|
|
140
|
+
// (undocumented)
|
|
141
|
+
includeGroups?: boolean;
|
|
142
|
+
// (undocumented)
|
|
143
|
+
includeTeams?: boolean;
|
|
144
|
+
// (undocumented)
|
|
145
|
+
includeUsers?: boolean;
|
|
146
|
+
// (undocumented)
|
|
147
|
+
maxNumberOfResults: number;
|
|
148
|
+
// (undocumented)
|
|
149
|
+
query?: string;
|
|
150
|
+
// (undocumented)
|
|
151
|
+
searchQueryFilter?: string;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// @public (undocumented)
|
|
155
|
+
export const setSmartUserPickerEnv: (
|
|
156
|
+
newEnv: 'prod' | 'local',
|
|
157
|
+
) => 'prod' | 'local';
|
|
158
|
+
|
|
159
|
+
// @public (undocumented)
|
|
160
|
+
const SmartUserPickerWithIntlProvider: React_2.FunctionComponent<Props>;
|
|
161
|
+
export default SmartUserPickerWithIntlProvider;
|
|
162
|
+
|
|
163
|
+
// @public (undocumented)
|
|
164
|
+
export interface State {
|
|
165
|
+
// (undocumented)
|
|
166
|
+
bootstrapOptions: OptionData[];
|
|
167
|
+
// (undocumented)
|
|
168
|
+
closed: boolean;
|
|
169
|
+
// (undocumented)
|
|
170
|
+
defaultValue?: DefaultValue;
|
|
171
|
+
// (undocumented)
|
|
172
|
+
loading: boolean;
|
|
173
|
+
// (undocumented)
|
|
174
|
+
query: string;
|
|
175
|
+
// (undocumented)
|
|
176
|
+
sessionId?: string;
|
|
177
|
+
// (undocumented)
|
|
178
|
+
users: OptionData[];
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export { Target };
|
|
182
|
+
|
|
183
|
+
export { Team };
|
|
184
|
+
|
|
185
|
+
export { TeamHighlight };
|
|
186
|
+
|
|
187
|
+
export { TeamMember };
|
|
188
|
+
|
|
189
|
+
export { TeamType };
|
|
190
|
+
|
|
191
|
+
export { User };
|
|
192
|
+
|
|
193
|
+
export { UserHighlight };
|
|
194
|
+
|
|
195
|
+
export { UserPickerProps };
|
|
196
|
+
|
|
197
|
+
export { UserPickerState };
|
|
198
|
+
|
|
199
|
+
export { UserSource };
|
|
200
|
+
|
|
201
|
+
export { UserType };
|
|
202
|
+
|
|
203
|
+
export { Value };
|
|
204
|
+
|
|
205
|
+
// (No @packageDocumentation comment for this package)
|
|
206
|
+
```
|