@atlaskit/smart-user-picker 6.1.4 → 6.1.6

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlassian/smart-user-picker
2
2
 
3
+ ## 6.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
8
+ - Updated dependencies
9
+
10
+ ## 6.1.5
11
+
12
+ ### Patch Changes
13
+
14
+ - [`f01deb5e6ab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f01deb5e6ab) - Use injected env vars instead of version.json
15
+
3
16
  ## 6.1.4
4
17
 
5
18
  ### Patch Changes
@@ -8,11 +8,10 @@ exports.successfulRequestUsersEvent = exports.startSession = exports.requestUser
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _analyticsNext = require("@atlaskit/analytics-next");
10
10
  var _uuid = require("uuid");
11
- var _version = _interopRequireDefault(require("./version.json"));
12
11
  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; }
13
12
  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; }
14
- var packageName = _version.default.name;
15
- var packageVersion = _version.default.version;
13
+ var packageName = "@atlaskit/smart-user-picker";
14
+ var packageVersion = "6.1.6";
16
15
  var startSession = function startSession() {
17
16
  return {
18
17
  id: (0, _uuid.v4)(),
@@ -1,8 +1,7 @@
1
1
  import { createAndFireEvent } from '@atlaskit/analytics-next';
2
2
  import { v4 as uuid } from 'uuid';
3
- import versionJson from './version.json';
4
- const packageName = versionJson.name;
5
- const packageVersion = versionJson.version;
3
+ const packageName = "@atlaskit/smart-user-picker";
4
+ const packageVersion = "6.1.6";
6
5
  export const startSession = () => ({
7
6
  id: uuid(),
8
7
  start: Date.now(),
@@ -3,9 +3,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
3
3
  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) { _defineProperty(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; }
4
4
  import { createAndFireEvent } from '@atlaskit/analytics-next';
5
5
  import { v4 as uuid } from 'uuid';
6
- import versionJson from './version.json';
7
- var packageName = versionJson.name;
8
- var packageVersion = versionJson.version;
6
+ var packageName = "@atlaskit/smart-user-picker";
7
+ var packageVersion = "6.1.6";
9
8
  export var startSession = function startSession() {
10
9
  return {
11
10
  id: uuid(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-user-picker",
3
- "version": "6.1.4",
3
+ "version": "6.1.6",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -32,7 +32,7 @@
32
32
  "dependencies": {
33
33
  "@atlaskit/analytics-next": "^9.1.0",
34
34
  "@atlaskit/ufo": "^0.2.0",
35
- "@atlaskit/user-picker": "^10.4.0",
35
+ "@atlaskit/user-picker": "^10.6.0",
36
36
  "@babel/runtime": "^7.0.0",
37
37
  "lodash": "^4.17.21",
38
38
  "memoize-one": "^6.0.0",
@@ -55,4 +55,4 @@
55
55
  "typescript": "~4.9.5"
56
56
  },
57
57
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
58
- }
58
+ }
@@ -0,0 +1,268 @@
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
+
7
+ import { ActionTypes } from '@atlaskit/user-picker';
8
+ import { Appearance } from '@atlaskit/user-picker';
9
+ import { AtlasKitSelectChange } from '@atlaskit/user-picker';
10
+ import { AtlaskitSelectValue } from '@atlaskit/user-picker';
11
+ import { DefaultValue } from '@atlaskit/user-picker';
12
+ import { Email } from '@atlaskit/user-picker';
13
+ import { EmailType } from '@atlaskit/user-picker';
14
+ import { EmailValidationResponse } from '@atlaskit/user-picker';
15
+ import { EmailValidator } from '@atlaskit/user-picker';
16
+ import { ExternalUser } from '@atlaskit/user-picker';
17
+ import { Group } from '@atlaskit/user-picker';
18
+ import { GroupHighlight } from '@atlaskit/user-picker';
19
+ import { GroupType } from '@atlaskit/user-picker';
20
+ import { HighlightRange } from '@atlaskit/user-picker';
21
+ import { InputActionTypes } from '@atlaskit/user-picker';
22
+ import { IntlShape } from 'react-intl-next';
23
+ import { isEmail } from '@atlaskit/user-picker';
24
+ import { isTeam } from '@atlaskit/user-picker';
25
+ import { isUser } from '@atlaskit/user-picker';
26
+ import { isValidEmail } from '@atlaskit/user-picker';
27
+ import { LoadOptions } from '@atlaskit/user-picker';
28
+ import { LozengeProps } from '@atlaskit/user-picker';
29
+ import { OnChange } from '@atlaskit/user-picker';
30
+ import { OnInputChange } from '@atlaskit/user-picker';
31
+ import { OnOption } from '@atlaskit/user-picker';
32
+ import { OnPicker } from '@atlaskit/user-picker';
33
+ import { Option as Option_2 } from '@atlaskit/user-picker';
34
+ import { OptionData } from '@atlaskit/user-picker';
35
+ import { OptionIdentifier } from '@atlaskit/user-picker';
36
+ import { PopupUserPickerProps } from '@atlaskit/user-picker';
37
+ import { Promisable } from '@atlaskit/user-picker';
38
+ import { default as React_2 } from 'react';
39
+ import { Target } from '@atlaskit/user-picker';
40
+ import { Team } from '@atlaskit/user-picker';
41
+ import { TeamHighlight } from '@atlaskit/user-picker';
42
+ import { TeamMember } from '@atlaskit/user-picker';
43
+ import { TeamType } from '@atlaskit/user-picker';
44
+ import { User } from '@atlaskit/user-picker';
45
+ import { UserHighlight } from '@atlaskit/user-picker';
46
+ import { UserPickerProps } from '@atlaskit/user-picker';
47
+ import { UserPickerState } from '@atlaskit/user-picker';
48
+ import { UserSource } from '@atlaskit/user-picker';
49
+ import { UserType } from '@atlaskit/user-picker';
50
+ import { Value } from '@atlaskit/user-picker';
51
+ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
52
+
53
+ export { ActionTypes }
54
+
55
+ export { Appearance }
56
+
57
+ export { AtlasKitSelectChange }
58
+
59
+ export { AtlaskitSelectValue }
60
+
61
+ // @public (undocumented)
62
+ interface BitbucketAttributes {
63
+ emailDomain?: string;
64
+ isPublicRepo?: boolean;
65
+ workspaceIds?: string[];
66
+ }
67
+
68
+ // @public (undocumented)
69
+ interface ConfluenceAttributes {
70
+ isEntitledConfluenceExternalCollaborator?: boolean;
71
+ }
72
+
73
+ // @public (undocumented)
74
+ interface Context {
75
+ // (undocumented)
76
+ childObjectId?: string;
77
+ // (undocumented)
78
+ containerId?: string;
79
+ // (undocumented)
80
+ contextType: string;
81
+ // (undocumented)
82
+ objectId?: string;
83
+ // (undocumented)
84
+ organizationId?: string;
85
+ // (undocumented)
86
+ principalId?: string;
87
+ // (undocumented)
88
+ productAttributes?: ProductAttributes;
89
+ // (undocumented)
90
+ productKey: string;
91
+ // (undocumented)
92
+ sessionId?: string;
93
+ // (undocumented)
94
+ siteId: string;
95
+ }
96
+
97
+ export { DefaultValue }
98
+
99
+ export { Email }
100
+
101
+ export { EmailType }
102
+
103
+ export { EmailValidationResponse }
104
+
105
+ export { EmailValidator }
106
+
107
+ export { ExternalUser }
108
+
109
+ // @public (undocumented)
110
+ type FilterOptions = (options: OptionData[], query: string) => OptionData[];
111
+
112
+ // @public (undocumented)
113
+ export const getUserRecommendations: (request: RecommendationRequest, intl: IntlShape) => Promise<OptionData[]>;
114
+
115
+ export { Group }
116
+
117
+ export { GroupHighlight }
118
+
119
+ export { GroupType }
120
+
121
+ export { HighlightRange }
122
+
123
+ // @public (undocumented)
124
+ export function hydrateDefaultValues(baseUrl: string | undefined, value: DefaultValue, productKey: string): Promise<DefaultValue>;
125
+
126
+ export { InputActionTypes }
127
+
128
+ export { isEmail }
129
+
130
+ export { isTeam }
131
+
132
+ export { isUser }
133
+
134
+ export { isValidEmail }
135
+
136
+ export { LoadOptions }
137
+
138
+ export { LozengeProps }
139
+
140
+ export { OnChange }
141
+
142
+ // @public (undocumented)
143
+ type OnEmpty = (query: string) => Promise<OptionData[]>;
144
+
145
+ // @public (undocumented)
146
+ type OnError = (error: any, request: RecommendationRequest) => Promise<OptionData[]> | void;
147
+
148
+ export { OnInputChange }
149
+
150
+ export { OnOption }
151
+
152
+ export { OnPicker }
153
+
154
+ // @public (undocumented)
155
+ type OnValueError = (error: any, defaultValue: DefaultValue) => Promise<OptionData[]> | void;
156
+
157
+ export { Option_2 as Option }
158
+
159
+ export { OptionData }
160
+
161
+ export { OptionIdentifier }
162
+
163
+ export { PopupUserPickerProps }
164
+
165
+ // @public (undocumented)
166
+ type ProductAttributes = BitbucketAttributes | ConfluenceAttributes;
167
+
168
+ export { Promisable }
169
+
170
+ // @public (undocumented)
171
+ export interface Props extends SmartProps, UserPickerProps, WithAnalyticsEventsProps {
172
+ defaultValue?: DefaultValue;
173
+ fieldId: string;
174
+ }
175
+
176
+ // @public (undocumented)
177
+ export interface RecommendationRequest {
178
+ // (undocumented)
179
+ baseUrl?: string;
180
+ // (undocumented)
181
+ context: Context;
182
+ // (undocumented)
183
+ includeGroups?: boolean;
184
+ // (undocumented)
185
+ includeTeams?: boolean;
186
+ // (undocumented)
187
+ includeUsers?: boolean;
188
+ // (undocumented)
189
+ maxNumberOfResults: number;
190
+ // (undocumented)
191
+ query?: string;
192
+ // (undocumented)
193
+ searchQueryFilter?: string;
194
+ }
195
+
196
+ // @public (undocumented)
197
+ interface SmartProps {
198
+ baseUrl?: string;
199
+ bootstrapOptions?: OptionData[];
200
+ childObjectId?: string;
201
+ containerId?: string;
202
+ debounceTime?: number;
203
+ filterOptions?: FilterOptions;
204
+ includeGroups?: boolean;
205
+ includeTeams?: boolean;
206
+ includeUsers?: boolean;
207
+ objectId?: string;
208
+ onEmpty?: OnEmpty;
209
+ onError?: OnError;
210
+ onValueError?: OnValueError;
211
+ orgId?: string;
212
+ prefetch?: boolean;
213
+ principalId?: string;
214
+ productAttributes?: ProductAttributes;
215
+ productKey: string;
216
+ searchQueryFilter?: string;
217
+ siteId: string;
218
+ }
219
+
220
+ // @public (undocumented)
221
+ const SmartUserPickerWithIntlProvider: React_2.FunctionComponent<Props>;
222
+ export default SmartUserPickerWithIntlProvider;
223
+
224
+ // @public (undocumented)
225
+ export interface State {
226
+ // (undocumented)
227
+ bootstrapOptions: OptionData[];
228
+ // (undocumented)
229
+ closed: boolean;
230
+ // (undocumented)
231
+ defaultValue?: DefaultValue;
232
+ // (undocumented)
233
+ loading: boolean;
234
+ // (undocumented)
235
+ query: string;
236
+ // (undocumented)
237
+ sessionId?: string;
238
+ // (undocumented)
239
+ users: OptionData[];
240
+ }
241
+
242
+ export { Target }
243
+
244
+ export { Team }
245
+
246
+ export { TeamHighlight }
247
+
248
+ export { TeamMember }
249
+
250
+ export { TeamType }
251
+
252
+ export { User }
253
+
254
+ export { UserHighlight }
255
+
256
+ export { UserPickerProps }
257
+
258
+ export { UserPickerState }
259
+
260
+ export { UserSource }
261
+
262
+ export { UserType }
263
+
264
+ export { Value }
265
+
266
+ // (No @packageDocumentation comment for this package)
267
+
268
+ ```
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/smart-user-picker",
3
- "version": "6.1.4",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/smart-user-picker",
3
- "version": "6.1.4",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/smart-user-picker",
3
- "version": "6.1.4",
4
- "sideEffects": false
5
- }