@atlaskit/media-picker 66.2.9 → 66.2.11

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,17 @@
1
1
  # @atlaskit/media-picker
2
2
 
3
+ ## 66.2.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 66.2.10
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 66.2.9
4
16
 
5
17
  ### Patch Changes
@@ -9,7 +9,7 @@ var _mediaClient = require("@atlaskit/media-client");
9
9
  // Component name will be prefixed with "media-picker-" in logs. Check ufoExperiences in utils files
10
10
 
11
11
  var packageName = "@atlaskit/media-picker";
12
- var packageVersion = "66.2.9";
12
+ var packageVersion = "66.2.11";
13
13
  function getPackageAttributes(componentName) {
14
14
  return {
15
15
  packageName: packageName,
@@ -12,7 +12,7 @@ var _mediaClient = require("@atlaskit/media-client");
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/media-picker";
15
- var packageVersion = "66.2.9";
15
+ var packageVersion = "66.2.11";
16
16
  var ufoExperience;
17
17
  var initExperience = function initExperience(id, componentName) {
18
18
  if (!ufoExperience) {
@@ -3,7 +3,7 @@ import { isRequestError } from '@atlaskit/media-client';
3
3
  // Component name will be prefixed with "media-picker-" in logs. Check ufoExperiences in utils files
4
4
 
5
5
  const packageName = "@atlaskit/media-picker";
6
- const packageVersion = "66.2.9";
6
+ const packageVersion = "66.2.11";
7
7
  export function getPackageAttributes(componentName) {
8
8
  return {
9
9
  packageName,
@@ -2,7 +2,7 @@ import { ConcurrentExperience, ExperiencePerformanceTypes, ExperienceTypes } fro
2
2
  import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
3
3
  import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
4
4
  const packageName = "@atlaskit/media-picker";
5
- const packageVersion = "66.2.9";
5
+ const packageVersion = "66.2.11";
6
6
  let ufoExperience;
7
7
  const initExperience = (id, componentName) => {
8
8
  if (!ufoExperience) {
@@ -3,7 +3,7 @@ import { isRequestError } from '@atlaskit/media-client';
3
3
  // Component name will be prefixed with "media-picker-" in logs. Check ufoExperiences in utils files
4
4
 
5
5
  var packageName = "@atlaskit/media-picker";
6
- var packageVersion = "66.2.9";
6
+ var packageVersion = "66.2.11";
7
7
  export function getPackageAttributes(componentName) {
8
8
  return {
9
9
  packageName: packageName,
@@ -5,7 +5,7 @@ import { ConcurrentExperience, ExperiencePerformanceTypes, ExperienceTypes } fro
5
5
  import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
6
6
  import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
7
7
  var packageName = "@atlaskit/media-picker";
8
- var packageVersion = "66.2.9";
8
+ var packageVersion = "66.2.11";
9
9
  var ufoExperience;
10
10
  var initExperience = function initExperience(id, componentName) {
11
11
  if (!ufoExperience) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-picker",
3
- "version": "66.2.9",
3
+ "version": "66.2.11",
4
4
  "description": "Library for handling file uploads",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,13 +36,13 @@
36
36
  "dependencies": {
37
37
  "@atlaskit/analytics-next": "^9.1.0",
38
38
  "@atlaskit/flag": "^15.1.0",
39
- "@atlaskit/icon": "^21.11.0",
40
- "@atlaskit/media-client": "^25.0.0",
41
- "@atlaskit/media-client-react": "^1.4.0",
39
+ "@atlaskit/icon": "^22.0.0",
40
+ "@atlaskit/media-client": "^25.1.0",
41
+ "@atlaskit/media-client-react": "^2.0.0",
42
42
  "@atlaskit/media-common": "^11.0.0",
43
43
  "@atlaskit/media-ui": "^25.0.0",
44
44
  "@atlaskit/theme": "^12.6.0",
45
- "@atlaskit/tokens": "^1.28.0",
45
+ "@atlaskit/tokens": "^1.29.0",
46
46
  "@atlaskit/ufo": "^0.2.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "eventemitter2": "^4.1.0",
@@ -61,7 +61,7 @@
61
61
  "devDependencies": {
62
62
  "@atlaskit/analytics-listeners": "^8.7.0",
63
63
  "@atlaskit/analytics-namespaced-context": "^6.7.0",
64
- "@atlaskit/button": "^16.15.0",
64
+ "@atlaskit/button": "^16.17.0",
65
65
  "@atlaskit/media-core": "^34.1.0",
66
66
  "@atlaskit/media-test-helpers": "^33.0.0",
67
67
  "@atlaskit/ssr": "*",
@@ -1,297 +0,0 @@
1
- ## API Report File for "@atlaskit/media-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 { MediaClient } from '@atlaskit/media-client';
8
- import { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
9
- import { MediaFeatureFlags as MediaFeatureFlags_2 } from '@atlaskit/media-common';
10
- import { MediaTraceContext } from '@atlaskit/media-common';
11
- import { default as React_2 } from 'react';
12
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
13
- import { WithMediaClientConfigProps } from '@atlaskit/media-client-react';
14
-
15
- // @public (undocumented)
16
- export class Browser extends React_2.PureComponent<BrowserWithMediaClientConfigProps, State_3> {
17
- // (undocumented)
18
- static Browser?: BrowserWithMediaClientConfigComponent;
19
- // (undocumented)
20
- componentDidMount(): void;
21
- // (undocumented)
22
- componentWillUnmount(): void;
23
- // (undocumented)
24
- static displayName: string;
25
- // (undocumented)
26
- render(): JSX.Element | null;
27
- // (undocumented)
28
- state: {
29
- Browser: BrowserWithMediaClientConfigComponent | undefined;
30
- };
31
- // (undocumented)
32
- UNSAFE_componentWillMount(): Promise<void>;
33
- }
34
-
35
- // @public (undocumented)
36
- export interface BrowserConfig extends LocalUploadConfig {
37
- // (undocumented)
38
- readonly fileExtensions?: Array<string>;
39
- // (undocumented)
40
- readonly multiple?: boolean;
41
- // (undocumented)
42
- readonly replaceFileId?: string;
43
- }
44
-
45
- // @public (undocumented)
46
- interface BrowserOwnProps {
47
- // (undocumented)
48
- children?: (browse: () => void) => React_2.ReactChild;
49
- // (undocumented)
50
- config: BrowserConfig;
51
- isOpen?: boolean;
52
- onBrowseFn?: (browse: () => void) => void;
53
- // (undocumented)
54
- onCancelFn?: (cancel: (uniqueIdentifier: string) => void) => void;
55
- // (undocumented)
56
- onClose?: () => void;
57
- }
58
-
59
- // @public (undocumented)
60
- type BrowserProps = LocalUploadComponentBaseProps & BrowserOwnProps;
61
-
62
- // @public (undocumented)
63
- type BrowserWithMediaClientConfigComponent = React_2.ComponentType<BrowserWithMediaClientConfigProps>;
64
-
65
- // @public (undocumented)
66
- type BrowserWithMediaClientConfigProps = WithMediaClientConfigProps<Omit<BrowserProps, 'config'> & {
67
- config?: BrowserConfig;
68
- }>;
69
-
70
- // @public (undocumented)
71
- class Clipboard_2 extends React_2.PureComponent<ClipboardWithMediaClientConfigProps, State_2> {
72
- // (undocumented)
73
- static Clipboard?: ClipboardWithMediaClientConfigComponent;
74
- // (undocumented)
75
- static displayName: string;
76
- // (undocumented)
77
- render(): JSX.Element | null;
78
- // (undocumented)
79
- state: {
80
- Clipboard: ClipboardWithMediaClientConfigComponent | undefined;
81
- };
82
- // (undocumented)
83
- UNSAFE_componentWillMount(): Promise<void>;
84
- }
85
- export { Clipboard_2 as Clipboard }
86
-
87
- // @public (undocumented)
88
- export interface ClipboardConfig extends LocalUploadConfig {
89
- // (undocumented)
90
- container?: HTMLElement;
91
- // (undocumented)
92
- onPaste?: (event: ClipboardEvent) => boolean | undefined;
93
- }
94
-
95
- // @public (undocumented)
96
- type ClipboardProps = LocalUploadComponentBaseProps & {
97
- config: ClipboardConfig;
98
- };
99
-
100
- // @public (undocumented)
101
- type ClipboardWithMediaClientConfigComponent = React_2.ComponentType<ClipboardWithMediaClientConfigProps>;
102
-
103
- // @public (undocumented)
104
- type ClipboardWithMediaClientConfigProps = WithMediaClientConfigProps<Omit<ClipboardProps, 'config'> & {
105
- config?: ClipboardConfig;
106
- }>;
107
-
108
- // @public (undocumented)
109
- export class Dropzone extends React_2.PureComponent<DropzoneWithMediaClientConfigProps, State> {
110
- // (undocumented)
111
- static displayName: string;
112
- // (undocumented)
113
- static Dropzone?: DropzoneWithMediaClientConfigComponent;
114
- // (undocumented)
115
- static MediaPickerErrorBoundary?: MediaPickerErrorBoundaryComponent;
116
- // (undocumented)
117
- render(): JSX.Element | null;
118
- // (undocumented)
119
- state: {
120
- Dropzone: DropzoneWithMediaClientConfigComponent | undefined;
121
- MediaPickerErrorBoundary: MediaPickerErrorBoundaryComponent | undefined;
122
- };
123
- // (undocumented)
124
- UNSAFE_componentWillMount(): Promise<void>;
125
- }
126
-
127
- // @public (undocumented)
128
- export interface DropzoneConfig extends LocalUploadConfig {
129
- // (undocumented)
130
- container?: HTMLElement;
131
- // (undocumented)
132
- headless?: boolean;
133
- }
134
-
135
- // @public (undocumented)
136
- interface DropzoneDragEnterEventPayload {
137
- // (undocumented)
138
- length: number;
139
- }
140
-
141
- // @public (undocumented)
142
- interface DropzoneDragLeaveEventPayload {
143
- // (undocumented)
144
- length: number;
145
- }
146
-
147
- // @public (undocumented)
148
- type DropzoneProps = LocalUploadComponentBaseProps & {
149
- config: DropzoneConfig;
150
- onDrop?: () => void;
151
- onDragEnter?: (payload: DropzoneDragEnterEventPayload) => void;
152
- onDragLeave?: (payload: DropzoneDragLeaveEventPayload) => void;
153
- onCancelFn?: (cancel: (uniqueIdentifier: string) => void) => void;
154
- };
155
-
156
- // @public (undocumented)
157
- type DropzoneWithMediaClientConfigComponent = React_2.ComponentType<DropzoneWithMediaClientConfigProps>;
158
-
159
- // @public (undocumented)
160
- type DropzoneWithMediaClientConfigProps = WithMediaClientConfigProps<DropzoneProps>;
161
-
162
- // @public (undocumented)
163
- export type ImagePreview = NonImagePreview & {
164
- readonly dimensions: {
165
- readonly width: number;
166
- readonly height: number;
167
- };
168
- readonly scaleFactor: number;
169
- };
170
-
171
- // @public (undocumented)
172
- export const isImagePreview: (preview: Preview) => preview is ImagePreview;
173
-
174
- // @public (undocumented)
175
- type LocalUploadComponentBaseProps = {
176
- mediaClient: MediaClient;
177
- config: LocalUploadConfig;
178
- onUploadsStart?: (payload: UploadsStartEventPayload) => void;
179
- onPreviewUpdate?: (payload: UploadPreviewUpdateEventPayload) => void;
180
- onEnd?: (payload: UploadEndEventPayload) => void;
181
- onError?: (payload: UploadErrorEventPayload) => void;
182
- featureFlags?: MediaFeatureFlags_2;
183
- } & WithAnalyticsEventsProps;
184
-
185
- // @public (undocumented)
186
- export interface LocalUploadConfig {
187
- // (undocumented)
188
- featureFlags?: MediaFeatureFlags;
189
- // (undocumented)
190
- shouldCopyFileToRecents?: boolean;
191
- // (undocumented)
192
- uploadParams: UploadParams;
193
- }
194
-
195
- // @public (undocumented)
196
- type MediaError_2 = {
197
- readonly fileId?: string;
198
- readonly name: MediaErrorName;
199
- readonly description: string;
200
- readonly rawError?: Error;
201
- };
202
- export { MediaError_2 as MediaError }
203
-
204
- // @public (undocumented)
205
- export type MediaErrorName = 'invalid_uuid' | 'metadata_fetch_fail' | 'object_create_fail' | 'remote_upload_fail' | 'token_fetch_fail' | 'token_source_empty' | 'token_update_fail' | 'upload_fail' | 'user_token_fetch_fail';
206
-
207
- // @public (undocumented)
208
- export type MediaFile = {
209
- readonly id: string;
210
- readonly name: string;
211
- readonly size: number;
212
- readonly creationDate: number;
213
- readonly type: string;
214
- readonly occurrenceKey?: string;
215
- };
216
-
217
- // @public (undocumented)
218
- type MediaPickerAnalyticsErrorBoundaryProps = {
219
- data?: {
220
- [k: string]: any;
221
- };
222
- };
223
-
224
- // @public (undocumented)
225
- type MediaPickerErrorBoundaryComponent = React_2.ComponentType<MediaPickerAnalyticsErrorBoundaryProps>;
226
-
227
- // @public (undocumented)
228
- export type NonImagePreview = {
229
- readonly file?: Blob;
230
- };
231
-
232
- // @public (undocumented)
233
- export type Preview = ImagePreview | NonImagePreview;
234
-
235
- // @public (undocumented)
236
- type State = {
237
- Dropzone?: DropzoneWithMediaClientConfigComponent;
238
- MediaPickerErrorBoundary?: MediaPickerErrorBoundaryComponent;
239
- };
240
-
241
- // @public (undocumented)
242
- type State_2 = {
243
- Clipboard?: ClipboardWithMediaClientConfigComponent;
244
- };
245
-
246
- // @public (undocumented)
247
- type State_3 = {
248
- Browser?: BrowserWithMediaClientConfigComponent;
249
- };
250
-
251
- // @public (undocumented)
252
- export type UploadEndEventPayload = {
253
- readonly file: MediaFile;
254
- readonly traceContext?: MediaTraceContext;
255
- };
256
-
257
- // @public (undocumented)
258
- export type UploadErrorEventPayload = {
259
- readonly fileId: string;
260
- readonly error: MediaError_2;
261
- readonly traceContext?: MediaTraceContext;
262
- };
263
-
264
- // @public (undocumented)
265
- export interface UploadParams {
266
- // (undocumented)
267
- collection?: string;
268
- // (undocumented)
269
- expireAfter?: number;
270
- // (undocumented)
271
- onUploadRejection?: (data: UploadRejectionData) => boolean;
272
- }
273
-
274
- // @public (undocumented)
275
- export type UploadPreviewUpdateEventPayload = {
276
- readonly file: MediaFile & {
277
- readonly collectionName?: string;
278
- };
279
- readonly preview: Preview;
280
- };
281
-
282
- // @public (undocumented)
283
- export type UploadRejectionData = {
284
- reason: 'fileSizeLimitExceeded';
285
- fileName: string;
286
- limit: number;
287
- };
288
-
289
- // @public (undocumented)
290
- export type UploadsStartEventPayload = {
291
- readonly files: MediaFile[];
292
- readonly traceContext?: MediaTraceContext;
293
- };
294
-
295
- // (No @packageDocumentation comment for this package)
296
-
297
- ```