@atlaskit/media-test-helpers 33.0.15 → 33.0.16
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 +58 -52
- package/dist/cjs/I18nWrapper.js +2 -3
- package/dist/cjs/authProvider.js +2 -3
- package/dist/cjs/clipboardEventMocks.js +12 -13
- package/dist/cjs/collectionNames.js +5 -10
- package/dist/cjs/createMouseEvent.js +2 -3
- package/dist/cjs/createTouchEvent.js +2 -3
- package/dist/cjs/dataURIs/smallImageURI.js +1 -2
- package/dist/cjs/dataURIs/smallTransparentImageURI.js +1 -2
- package/dist/cjs/dataURIs/tallImageURI.js +1 -2
- package/dist/cjs/dataURIs/videoPreviewURI.js +1 -2
- package/dist/cjs/dataURIs/videoURI.js +1 -2
- package/dist/cjs/dataURIs/vr_test_small_image.js +1 -2
- package/dist/cjs/dataURIs/wideImageURI.js +1 -2
- package/dist/cjs/dataURIs/wideTransparentImageURI.js +1 -2
- package/dist/cjs/docs-content-tabs.js +2 -3
- package/dist/cjs/example-mediaFeatureFlags.js +1 -2
- package/dist/cjs/exampleMediaItems.js +48 -91
- package/dist/cjs/fakeI18n.js +2 -3
- package/dist/cjs/fakeMediaClient.js +3 -5
- package/dist/cjs/featureFlagsWrapper/dropdown.js +1 -2
- package/dist/cjs/featureFlagsWrapper/helpers.js +5 -9
- package/dist/cjs/featureFlagsWrapper/index.js +1 -2
- package/dist/cjs/fileReader.js +5 -9
- package/dist/cjs/fileStateFactory/factory/createFileState.js +2 -3
- package/dist/cjs/fileStateFactory/factory/factory.js +3 -5
- package/dist/cjs/fileStateFactory/factory/helpers.js +4 -7
- package/dist/cjs/fileStateFactory/fileSimulation/fileSimulation.js +1 -2
- package/dist/cjs/fileStateFactory/fileSimulation/simulations.js +13 -23
- package/dist/cjs/flushPromises.js +2 -3
- package/dist/cjs/getAuthFromContextProvider.js +2 -3
- package/dist/cjs/getJest.js +2 -3
- package/dist/cjs/globalEventEmitterListeners.js +2 -3
- package/dist/cjs/images.js +1 -2
- package/dist/cjs/index.js +1 -2
- package/dist/cjs/jestHelpers.js +9 -17
- package/dist/cjs/keyboardEventWithKeyCode.js +1 -2
- package/dist/cjs/mediaClientErrors.js +4 -7
- package/dist/cjs/mediaClientProvider.js +7 -13
- package/dist/cjs/mediaPickerAuthProvider.js +3 -5
- package/dist/cjs/mockData/handlers/copyWithToken.js +2 -3
- package/dist/cjs/mockData/handlers/getFile.js +2 -3
- package/dist/cjs/mockData/handlers/getFileImage.js +2 -3
- package/dist/cjs/mockData/handlers/tenantAuth.js +2 -3
- package/dist/cjs/mockData/handlers/userCollectionFetch.js +2 -3
- package/dist/cjs/mockData/index.js +2 -3
- package/dist/cjs/mockData/matchers.js +6 -11
- package/dist/cjs/mockData/staticCommon.js +4 -7
- package/dist/cjs/mockData/utils.js +3 -5
- package/dist/cjs/mockLoadImage.js +5 -9
- package/dist/cjs/mocks/database/collection-item.js +1 -2
- package/dist/cjs/mocks/database/index.js +4 -8
- package/dist/cjs/mocks/fileAndDirectoriesUtils.js +4 -7
- package/dist/cjs/mocks/media-mock.js +5 -9
- package/dist/cjs/mocks/routers/api-router.js +2 -2
- package/dist/cjs/mocks/websockets/messages.js +5 -9
- package/dist/cjs/mocks/websockets/remote-upload-server.js +2 -3
- package/dist/cjs/mountWithIntlContext.js +4 -7
- package/dist/cjs/nextTick.js +3 -5
- package/dist/cjs/renderWithIntl.js +2 -3
- package/dist/cjs/smart-card-state.js +3 -5
- package/dist/cjs/story-list.js +2 -3
- package/dist/cjs/story-styles.js +1 -2
- package/dist/cjs/styled.js +1 -2
- package/dist/cjs/ufoLogger.js +2 -3
- package/dist/cjs/utils/logging.js +1 -2
- package/dist/cjs/utils/mockData.js +12 -23
- package/dist/cjs/waitUntil.js +1 -2
- package/dist/es2019/clipboardEventMocks.js +7 -2
- package/dist/es2019/mocks/routers/api-router.js +1 -1
- package/dist/esm/clipboardEventMocks.js +6 -2
- package/dist/esm/mocks/routers/api-router.js +1 -1
- package/dist/types/clipboardEventMocks.d.ts +2 -1
- package/dist/types-ts4.5/clipboardEventMocks.d.ts +2 -1
- package/package.json +5 -4
- package/report.api.md +3 -1
- package/tmp/api-report-tmp.d.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/media-test-helpers
|
|
2
2
|
|
|
3
|
+
## 33.0.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#41932](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41932) [`756dd90f1a3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/756dd90f1a3) - 1. Deprecate withMediaClient HOC in media-client and migrated it to media-client-react 2. clean up deprecated imports from media-client
|
|
8
|
+
|
|
3
9
|
## 33.0.15
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -10,13 +16,13 @@
|
|
|
10
16
|
|
|
11
17
|
### Patch Changes
|
|
12
18
|
|
|
13
|
-
- [`6900f89eb0e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6900f89eb0e) - Internal changes to use space tokens. There is no expected visual or behaviour change.
|
|
19
|
+
- [#39787](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39787) [`6900f89eb0e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6900f89eb0e) - Internal changes to use space tokens. There is no expected visual or behaviour change.
|
|
14
20
|
|
|
15
21
|
## 33.0.13
|
|
16
22
|
|
|
17
23
|
### Patch Changes
|
|
18
24
|
|
|
19
|
-
- [`7b6a2c6671b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7b6a2c6671b) - Introducing 'media-state' for handling media internal file state.
|
|
25
|
+
- [#38532](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38532) [`7b6a2c6671b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7b6a2c6671b) - Introducing 'media-state' for handling media internal file state.
|
|
20
26
|
Introducing 'media-client-react' to provide hooks for seamless media-client integration with React.
|
|
21
27
|
Introducing 'MediaCardV2' with a feature flag to replace rxjs based fileState subscription with 'useFileState' hook.
|
|
22
28
|
Removed unused feature flags APIs from 'media-client' and its helper functions from 'media-common'.
|
|
@@ -32,7 +38,7 @@
|
|
|
32
38
|
|
|
33
39
|
### Patch Changes
|
|
34
40
|
|
|
35
|
-
- [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
41
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
36
42
|
- Updated dependencies
|
|
37
43
|
|
|
38
44
|
## 33.0.10
|
|
@@ -45,19 +51,19 @@
|
|
|
45
51
|
|
|
46
52
|
### Patch Changes
|
|
47
53
|
|
|
48
|
-
- [`b9355830504`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9355830504) - Opt out of peer dependency enforcement
|
|
54
|
+
- [#37340](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37340) [`b9355830504`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9355830504) - Opt out of peer dependency enforcement
|
|
49
55
|
|
|
50
56
|
## 33.0.8
|
|
51
57
|
|
|
52
58
|
### Patch Changes
|
|
53
59
|
|
|
54
|
-
- [`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add postinstall check to enforce internal peer dependencies
|
|
60
|
+
- [#36757](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36757) [`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add postinstall check to enforce internal peer dependencies
|
|
55
61
|
|
|
56
62
|
## 33.0.7
|
|
57
63
|
|
|
58
64
|
### Patch Changes
|
|
59
65
|
|
|
60
|
-
- [`48e4a655534`](https://bitbucket.org/atlassian/atlassian-frontend/commits/48e4a655534) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
|
|
66
|
+
- [#33728](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33728) [`48e4a655534`](https://bitbucket.org/atlassian/atlassian-frontend/commits/48e4a655534) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
|
|
61
67
|
|
|
62
68
|
## 33.0.6
|
|
63
69
|
|
|
@@ -81,7 +87,7 @@
|
|
|
81
87
|
|
|
82
88
|
### Patch Changes
|
|
83
89
|
|
|
84
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
90
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
85
91
|
- Updated dependencies
|
|
86
92
|
|
|
87
93
|
## 33.0.2
|
|
@@ -94,14 +100,14 @@
|
|
|
94
100
|
|
|
95
101
|
### Patch Changes
|
|
96
102
|
|
|
97
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
103
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
98
104
|
- Updated dependencies
|
|
99
105
|
|
|
100
106
|
## 33.0.0
|
|
101
107
|
|
|
102
108
|
### Minor Changes
|
|
103
109
|
|
|
104
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
110
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
105
111
|
|
|
106
112
|
### Patch Changes
|
|
107
113
|
|
|
@@ -111,7 +117,7 @@
|
|
|
111
117
|
|
|
112
118
|
### Minor Changes
|
|
113
119
|
|
|
114
|
-
- [`7b0b33845fe`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7b0b33845fe) - Added file state simulation helpers
|
|
120
|
+
- [#33004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33004) [`7b0b33845fe`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7b0b33845fe) - Added file state simulation helpers
|
|
115
121
|
|
|
116
122
|
### Patch Changes
|
|
117
123
|
|
|
@@ -121,7 +127,7 @@
|
|
|
121
127
|
|
|
122
128
|
### Major Changes
|
|
123
129
|
|
|
124
|
-
- [`b85816dc2e3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b85816dc2e3) - MEX-2307 Change media-core dependencies in media-test-helpers
|
|
130
|
+
- [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424) [`b85816dc2e3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b85816dc2e3) - MEX-2307 Change media-core dependencies in media-test-helpers
|
|
125
131
|
|
|
126
132
|
### Patch Changes
|
|
127
133
|
|
|
@@ -132,7 +138,7 @@
|
|
|
132
138
|
|
|
133
139
|
### Major Changes
|
|
134
140
|
|
|
135
|
-
- [`b37723f2cfa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b37723f2cfa) - FeatureFlagsWrapper no longer filters feature flags. All Media flags will be listed.
|
|
141
|
+
- [#31299](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31299) [`b37723f2cfa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b37723f2cfa) - FeatureFlagsWrapper no longer filters feature flags. All Media flags will be listed.
|
|
136
142
|
|
|
137
143
|
### Patch Changes
|
|
138
144
|
|
|
@@ -160,7 +166,7 @@
|
|
|
160
166
|
|
|
161
167
|
### Minor Changes
|
|
162
168
|
|
|
163
|
-
- [`79660ee4fa7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79660ee4fa7) - Restructured the Media-Image and added CSS to make doc responsive.
|
|
169
|
+
- [#28090](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28090) [`79660ee4fa7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79660ee4fa7) - Restructured the Media-Image and added CSS to make doc responsive.
|
|
164
170
|
- [`db73d317050`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db73d317050) - Added ContentTabs component to be used in docs of media components.
|
|
165
171
|
|
|
166
172
|
### Patch Changes
|
|
@@ -183,7 +189,7 @@
|
|
|
183
189
|
|
|
184
190
|
### Patch Changes
|
|
185
191
|
|
|
186
|
-
- [`c59fd9d42f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c59fd9d42f8) - Fix warnings due to jest being defined in non-test environments.
|
|
192
|
+
- [#26712](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26712) [`c59fd9d42f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c59fd9d42f8) - Fix warnings due to jest being defined in non-test environments.
|
|
187
193
|
- Updated dependencies
|
|
188
194
|
|
|
189
195
|
## 30.0.5
|
|
@@ -196,19 +202,19 @@
|
|
|
196
202
|
|
|
197
203
|
### Patch Changes
|
|
198
204
|
|
|
199
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
205
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
200
206
|
|
|
201
207
|
## 30.0.3
|
|
202
208
|
|
|
203
209
|
### Patch Changes
|
|
204
210
|
|
|
205
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
211
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
206
212
|
|
|
207
213
|
## 30.0.2
|
|
208
214
|
|
|
209
215
|
### Patch Changes
|
|
210
216
|
|
|
211
|
-
- [`baece961cdd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/baece961cdd) - Add media-card example for use by media-pollinator-test
|
|
217
|
+
- [#23381](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23381) [`baece961cdd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/baece961cdd) - Add media-card example for use by media-pollinator-test
|
|
212
218
|
- Updated dependencies
|
|
213
219
|
|
|
214
220
|
## 30.0.1
|
|
@@ -221,7 +227,7 @@
|
|
|
221
227
|
|
|
222
228
|
### Major Changes
|
|
223
229
|
|
|
224
|
-
- [`593d2d788e5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/593d2d788e5) - [MEX-1413] Remove Media-picker-auth-provider
|
|
230
|
+
- [#20721](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20721) [`593d2d788e5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/593d2d788e5) - [MEX-1413] Remove Media-picker-auth-provider
|
|
225
231
|
- [`ad13b4d0bc6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad13b4d0bc6) - [MEX-1525] Remove userAuth from Media-Core & Media-client
|
|
226
232
|
|
|
227
233
|
### Patch Changes
|
|
@@ -233,7 +239,7 @@
|
|
|
233
239
|
|
|
234
240
|
### Patch Changes
|
|
235
241
|
|
|
236
|
-
- [`a424e62b264`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a424e62b264) - Changes to support Node 16 Typescript definitions from `@types/node`.
|
|
242
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`a424e62b264`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a424e62b264) - Changes to support Node 16 Typescript definitions from `@types/node`.
|
|
237
243
|
|
|
238
244
|
## 29.4.1
|
|
239
245
|
|
|
@@ -246,7 +252,7 @@
|
|
|
246
252
|
|
|
247
253
|
### Minor Changes
|
|
248
254
|
|
|
249
|
-
- [`eaf810b0560`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eaf810b0560) - [MEX-1398] Remove PopUp implementation from Media-picker
|
|
255
|
+
- [#20033](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20033) [`eaf810b0560`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eaf810b0560) - [MEX-1398] Remove PopUp implementation from Media-picker
|
|
250
256
|
- [`8f86bfe1961`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f86bfe1961) - [MEX-1389] Remove types & interfaces related to media-picker popup
|
|
251
257
|
- [`a44c7c42fa7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a44c7c42fa7) - Added payload publisher wrapper for logging ufo events in examples
|
|
252
258
|
|
|
@@ -258,7 +264,7 @@
|
|
|
258
264
|
|
|
259
265
|
### Minor Changes
|
|
260
266
|
|
|
261
|
-
- [`f862d5ae7aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f862d5ae7aa) - remove RxJs peer dependency
|
|
267
|
+
- [#19618](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19618) [`f862d5ae7aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f862d5ae7aa) - remove RxJs peer dependency
|
|
262
268
|
- [`118f3af101f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/118f3af101f) - Media Client APIs has been updated to use MediaSubscribable which provides subscription functionality (similar to RxJs observables).
|
|
263
269
|
It exposes subscribe method that is called with MediaObserver as an argument and returns MediaSubscription.
|
|
264
270
|
MediaSubscription exposes unsubscribe method.
|
|
@@ -343,14 +349,14 @@
|
|
|
343
349
|
|
|
344
350
|
### Patch Changes
|
|
345
351
|
|
|
346
|
-
- [`7b8ba79b71b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7b8ba79b71b) - use mimeType in MediaMock when provided
|
|
352
|
+
- [#19796](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19796) [`7b8ba79b71b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7b8ba79b71b) - use mimeType in MediaMock when provided
|
|
347
353
|
- Updated dependencies
|
|
348
354
|
|
|
349
355
|
## 29.2.0
|
|
350
356
|
|
|
351
357
|
### Minor Changes
|
|
352
358
|
|
|
353
|
-
- [`8bf4fdb8ed4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8bf4fdb8ed4) - add renderWithIntl helper
|
|
359
|
+
- [#19019](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19019) [`8bf4fdb8ed4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8bf4fdb8ed4) - add renderWithIntl helper
|
|
354
360
|
- [`8742dbe70bd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8742dbe70bd) - MEX-1102 Removed lodash dependencies from media component and converted all to local functions (lightweight helpers)
|
|
355
361
|
- [`94539e589cc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/94539e589cc) - MEX-1105 Migrated @atlaskit/button to @atlaskit/button/standard-button
|
|
356
362
|
|
|
@@ -362,8 +368,8 @@
|
|
|
362
368
|
|
|
363
369
|
### Minor Changes
|
|
364
370
|
|
|
365
|
-
- [`3ad0bbf0f93`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ad0bbf0f93) - Log media ssr getImageURLSync error in global variable ssr data.
|
|
366
|
-
- [`2f682970bfe`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2f682970bfe) - Filestates Factory accepts options for MediaClientMock constructor
|
|
371
|
+
- [#18526](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18526) [`3ad0bbf0f93`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ad0bbf0f93) - Log media ssr getImageURLSync error in global variable ssr data.
|
|
372
|
+
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`2f682970bfe`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2f682970bfe) - Filestates Factory accepts options for MediaClientMock constructor
|
|
367
373
|
- [`da72247beeb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/da72247beeb) - remove styled-components from media-ui
|
|
368
374
|
- [`22a39ca6f66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/22a39ca6f66) - expose @atlaskit/media-test-helpers/smart-card-state
|
|
369
375
|
- [`4735277e315`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4735277e315) - Extended FileState factory to update File Id internally
|
|
@@ -377,13 +383,13 @@
|
|
|
377
383
|
|
|
378
384
|
### Patch Changes
|
|
379
385
|
|
|
380
|
-
- [`c55c736ecea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c55c736ecea) - Patch VULN AFP-3486 AFP-3487 AFP-3488 AFP-3489
|
|
386
|
+
- [#17475](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/17475) [`c55c736ecea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c55c736ecea) - Patch VULN AFP-3486 AFP-3487 AFP-3488 AFP-3489
|
|
381
387
|
|
|
382
388
|
## 29.0.0
|
|
383
389
|
|
|
384
390
|
### Major Changes
|
|
385
391
|
|
|
386
|
-
- [`47f58da5946`](https://bitbucket.org/atlassian/atlassian-frontend/commits/47f58da5946) - ED-13322, ED-13324, ED-13326, ED-13323, ED-13204: Upgrade and support react-intl@^5.18.1 including breaking API changes, types and tests in atlassian-frontend packages
|
|
392
|
+
- [#14810](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14810) [`47f58da5946`](https://bitbucket.org/atlassian/atlassian-frontend/commits/47f58da5946) - ED-13322, ED-13324, ED-13326, ED-13323, ED-13204: Upgrade and support react-intl@^5.18.1 including breaking API changes, types and tests in atlassian-frontend packages
|
|
387
393
|
|
|
388
394
|
What changed: Upgraded our react-intl support from ^2.6.0 to ^5.18.1. This means editor packages now rely on consumers installing ^5.18.1, otherwise editor usage of react-intl will mismatch with actual installed react-intl APIs.
|
|
389
395
|
Why change was made: As part of a coordinated upgrade effort across AF packages, as react-intl v2 is quite dated.
|
|
@@ -429,7 +435,7 @@
|
|
|
429
435
|
|
|
430
436
|
### Minor Changes
|
|
431
437
|
|
|
432
|
-
- [`1724e1b8277`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1724e1b8277) - Extended fakeMediaClient with getImageUrlSync mock
|
|
438
|
+
- [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`1724e1b8277`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1724e1b8277) - Extended fakeMediaClient with getImageUrlSync mock
|
|
433
439
|
|
|
434
440
|
### Patch Changes
|
|
435
441
|
|
|
@@ -439,7 +445,7 @@
|
|
|
439
445
|
|
|
440
446
|
### Patch Changes
|
|
441
447
|
|
|
442
|
-
- [`11df2d9b882`](https://bitbucket.org/atlassian/atlassian-frontend/commits/11df2d9b882) - Re-enabling non stargate url for media examples
|
|
448
|
+
- [#14777](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14777) [`11df2d9b882`](https://bitbucket.org/atlassian/atlassian-frontend/commits/11df2d9b882) - Re-enabling non stargate url for media examples
|
|
443
449
|
- [`d15fbde3a83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d15fbde3a83) - Reverting media playground url change because of broken regression tests
|
|
444
450
|
- [`e362e52fc66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e362e52fc66) - Updating the media playground urls for media examples, to avoid stargate auth
|
|
445
451
|
- Updated dependencies
|
|
@@ -448,7 +454,7 @@
|
|
|
448
454
|
|
|
449
455
|
### Minor Changes
|
|
450
456
|
|
|
451
|
-
- [`cf853e39278`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cf853e39278) - Make `fakeIntl`'s `defaultMessage` member to be a `jest.fn` with default behvaiour returning provided `{defaultMessage}` argument with `fakeIntl[]` wrapping
|
|
457
|
+
- [#14319](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14319) [`cf853e39278`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cf853e39278) - Make `fakeIntl`'s `defaultMessage` member to be a `jest.fn` with default behvaiour returning provided `{defaultMessage}` argument with `fakeIntl[]` wrapping
|
|
452
458
|
|
|
453
459
|
### Patch Changes
|
|
454
460
|
|
|
@@ -458,42 +464,42 @@
|
|
|
458
464
|
|
|
459
465
|
### Patch Changes
|
|
460
466
|
|
|
461
|
-
- [`4777a174e6d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4777a174e6d) - Added analytics support for customMediaPlayer + screen event + entrypoint for locales
|
|
467
|
+
- [#13864](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13864) [`4777a174e6d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4777a174e6d) - Added analytics support for customMediaPlayer + screen event + entrypoint for locales
|
|
462
468
|
- Updated dependencies
|
|
463
469
|
|
|
464
470
|
## 28.7.4
|
|
465
471
|
|
|
466
472
|
### Patch Changes
|
|
467
473
|
|
|
468
|
-
- [`254c7ae04bc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/254c7ae04bc) - Refactor CardView in Media Card to group UI elements by status
|
|
474
|
+
- [#12837](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12837) [`254c7ae04bc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/254c7ae04bc) - Refactor CardView in Media Card to group UI elements by status
|
|
469
475
|
- Updated dependencies
|
|
470
476
|
|
|
471
477
|
## 28.7.3
|
|
472
478
|
|
|
473
479
|
### Patch Changes
|
|
474
480
|
|
|
475
|
-
- [`6810728cd53`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6810728cd53) - Ehance test for new auth provider in media-image to prevent re-subscription
|
|
481
|
+
- [#12328](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12328) [`6810728cd53`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6810728cd53) - Ehance test for new auth provider in media-image to prevent re-subscription
|
|
476
482
|
- Updated dependencies
|
|
477
483
|
|
|
478
484
|
## 28.7.2
|
|
479
485
|
|
|
480
486
|
### Patch Changes
|
|
481
487
|
|
|
482
|
-
- [`6be6879ef6d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6be6879ef6d) - Added Media Feature Flags control in examples
|
|
488
|
+
- [#11113](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11113) [`6be6879ef6d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6be6879ef6d) - Added Media Feature Flags control in examples
|
|
483
489
|
- Updated dependencies
|
|
484
490
|
|
|
485
491
|
## 28.7.1
|
|
486
492
|
|
|
487
493
|
### Patch Changes
|
|
488
494
|
|
|
489
|
-
- [`f0ee7740f45`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f0ee7740f45) - fix fakeMediaClient
|
|
495
|
+
- [#10569](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10569) [`f0ee7740f45`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f0ee7740f45) - fix fakeMediaClient
|
|
490
496
|
- Updated dependencies
|
|
491
497
|
|
|
492
498
|
## 28.7.0
|
|
493
499
|
|
|
494
500
|
### Minor Changes
|
|
495
501
|
|
|
496
|
-
- [`bfd2f542849`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bfd2f542849) - Add JestSpy and JestFunction members
|
|
502
|
+
- [#9510](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9510) [`bfd2f542849`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bfd2f542849) - Add JestSpy and JestFunction members
|
|
497
503
|
|
|
498
504
|
### Patch Changes
|
|
499
505
|
|
|
@@ -505,7 +511,7 @@
|
|
|
505
511
|
|
|
506
512
|
### Minor Changes
|
|
507
513
|
|
|
508
|
-
- [`37d4add135f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37d4add135f) - Provide Media Client Error creators
|
|
514
|
+
- [#8644](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8644) [`37d4add135f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37d4add135f) - Provide Media Client Error creators
|
|
509
515
|
|
|
510
516
|
### Patch Changes
|
|
511
517
|
|
|
@@ -515,7 +521,7 @@
|
|
|
515
521
|
|
|
516
522
|
### Patch Changes
|
|
517
523
|
|
|
518
|
-
- [`a4e37d0df4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a4e37d0df4) - Fix EDM-1636 again
|
|
524
|
+
- [#7425](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/7425) [`a4e37d0df4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a4e37d0df4) - Fix EDM-1636 again
|
|
519
525
|
- Updated dependencies
|
|
520
526
|
|
|
521
527
|
## 28.5.1
|
|
@@ -528,7 +534,7 @@
|
|
|
528
534
|
|
|
529
535
|
### Minor Changes
|
|
530
536
|
|
|
531
|
-
- [`fa5ef18162`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fa5ef18162) - Fixed media client's DataLoader error handling
|
|
537
|
+
- [#6571](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6571) [`fa5ef18162`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fa5ef18162) - Fixed media client's DataLoader error handling
|
|
532
538
|
- [`dfd440f4b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dfd440f4b5) - [ux] New functionality to add and remove captions to images and videos. Select an image or video in the editor to start using it!
|
|
533
539
|
editor-core now exports dedupe which aids in not having duplicate plugins added when initialising an editor
|
|
534
540
|
|
|
@@ -541,13 +547,13 @@
|
|
|
541
547
|
|
|
542
548
|
### Patch Changes
|
|
543
549
|
|
|
544
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
550
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
545
551
|
|
|
546
552
|
## 28.4.0
|
|
547
553
|
|
|
548
554
|
### Minor Changes
|
|
549
555
|
|
|
550
|
-
- [`d6f279ecaa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f279ecaa) - Add support for video files in MediaMock
|
|
556
|
+
- [#6228](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6228) [`d6f279ecaa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f279ecaa) - Add support for video files in MediaMock
|
|
551
557
|
|
|
552
558
|
### Patch Changes
|
|
553
559
|
|
|
@@ -563,7 +569,7 @@
|
|
|
563
569
|
|
|
564
570
|
### Minor Changes
|
|
565
571
|
|
|
566
|
-
- [`52b1353be9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/52b1353be9) - BMT-611 Added integration test for Giphy cloud files
|
|
572
|
+
- [#5516](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5516) [`52b1353be9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/52b1353be9) - BMT-611 Added integration test for Giphy cloud files
|
|
567
573
|
- [`73613210d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/73613210d4) - Adding support for Code and Email files so that they are now able to be previewed in the viewer.
|
|
568
574
|
|
|
569
575
|
### Patch Changes
|
|
@@ -574,7 +580,7 @@
|
|
|
574
580
|
|
|
575
581
|
### Patch Changes
|
|
576
582
|
|
|
577
|
-
- [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
583
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
578
584
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
579
585
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
580
586
|
|
|
@@ -582,13 +588,13 @@
|
|
|
582
588
|
|
|
583
589
|
### Patch Changes
|
|
584
590
|
|
|
585
|
-
- [`b4cf0f9326`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b4cf0f9326) - ED-10439 - Modify loadImageMockSetup to ensure media-ui mock is not hoisted
|
|
591
|
+
- [#5224](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5224) [`b4cf0f9326`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b4cf0f9326) - ED-10439 - Modify loadImageMockSetup to ensure media-ui mock is not hoisted
|
|
586
592
|
|
|
587
593
|
## 28.2.0
|
|
588
594
|
|
|
589
595
|
### Minor Changes
|
|
590
596
|
|
|
591
|
-
- [`821e8edaf8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/821e8edaf8) - Make MediaMock ApiRouter more realistic + replace tall image testing
|
|
597
|
+
- [#4749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4749) [`821e8edaf8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/821e8edaf8) - Make MediaMock ApiRouter more realistic + replace tall image testing
|
|
592
598
|
- [`9c50fe8fd0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9c50fe8fd0) - Adding Browser integration tests that simulate a using dragging and dropping a folder
|
|
593
599
|
- [`7d831363d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d831363d9) - Migrated to declarative entry points
|
|
594
600
|
|
|
@@ -612,7 +618,7 @@
|
|
|
612
618
|
|
|
613
619
|
### Patch Changes
|
|
614
620
|
|
|
615
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
621
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
616
622
|
|
|
617
623
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
618
624
|
to prevent duplicates of tslib being bundled.
|
|
@@ -621,13 +627,13 @@
|
|
|
621
627
|
|
|
622
628
|
### Patch Changes
|
|
623
629
|
|
|
624
|
-
- [`76165ad82f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76165ad82f) - Bump required because of conflicts on wadmal release
|
|
630
|
+
- [#4393](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4393) [`76165ad82f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76165ad82f) - Bump required because of conflicts on wadmal release
|
|
625
631
|
|
|
626
632
|
## 28.1.0
|
|
627
633
|
|
|
628
634
|
### Minor Changes
|
|
629
635
|
|
|
630
|
-
- [`62eb1114c4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62eb1114c4) - Enable passing of MediaFeatureFlags through Editor Renderer via MediaOptions to Media components
|
|
636
|
+
- [#3823](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3823) [`62eb1114c4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62eb1114c4) - Enable passing of MediaFeatureFlags through Editor Renderer via MediaOptions to Media components
|
|
631
637
|
- [`155125a472`](https://bitbucket.org/atlassian/atlassian-frontend/commits/155125a472) - Add flushPromise
|
|
632
638
|
- [`5d20188710`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5d20188710) - Added all supported languages to I18NWrapper
|
|
633
639
|
- [`8cfc88423a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cfc88423a) - Added more zip examples and added error handling for zip previews
|
|
@@ -647,13 +653,13 @@
|
|
|
647
653
|
|
|
648
654
|
### Patch Changes
|
|
649
655
|
|
|
650
|
-
- [`50d947cdae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/50d947cdae) - Added Media Card New Experience behind a feature flag
|
|
656
|
+
- [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428) [`50d947cdae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/50d947cdae) - Added Media Card New Experience behind a feature flag
|
|
651
657
|
|
|
652
658
|
## 28.0.0
|
|
653
659
|
|
|
654
660
|
### Major Changes
|
|
655
661
|
|
|
656
|
-
- [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
662
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
657
663
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
658
664
|
|
|
659
665
|
### Patch Changes
|
|
@@ -670,13 +676,13 @@
|
|
|
670
676
|
|
|
671
677
|
### Patch Changes
|
|
672
678
|
|
|
673
|
-
- [`eac08411a3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eac08411a3) - Updated react-redux dependency to 5.1.0
|
|
679
|
+
- [#3229](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3229) [`eac08411a3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eac08411a3) - Updated react-redux dependency to 5.1.0
|
|
674
680
|
|
|
675
681
|
## 27.2.1
|
|
676
682
|
|
|
677
683
|
### Patch Changes
|
|
678
684
|
|
|
679
|
-
- [`a2ffde361d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a2ffde361d) - MPT-131: fetch remote preview for files not supported by the browser
|
|
685
|
+
- [#2137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2137) [`a2ffde361d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a2ffde361d) - MPT-131: fetch remote preview for files not supported by the browser
|
|
680
686
|
- [`054e719497`](https://bitbucket.org/atlassian/atlassian-frontend/commits/054e719497) - Replace deprecated Media URLs with latest
|
|
681
687
|
- [`54d82b49f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54d82b49f0) - Remove unused dependencies
|
|
682
688
|
- Updated dependencies
|
package/dist/cjs/I18nWrapper.js
CHANGED
|
@@ -25,7 +25,7 @@ var selectableLocales = _LocaleSelect.defaultLocales.reduce(function (result, lo
|
|
|
25
25
|
}
|
|
26
26
|
return [].concat((0, _toConsumableArray2.default)(result), [locale]);
|
|
27
27
|
}, []);
|
|
28
|
-
var I18NWrapper = function I18NWrapper(_ref) {
|
|
28
|
+
var I18NWrapper = exports.I18NWrapper = function I18NWrapper(_ref) {
|
|
29
29
|
var children = _ref.children;
|
|
30
30
|
var _useState = (0, _react.useState)({
|
|
31
31
|
label: 'en',
|
|
@@ -52,5 +52,4 @@ var I18NWrapper = function I18NWrapper(_ref) {
|
|
|
52
52
|
,
|
|
53
53
|
key: locale.value
|
|
54
54
|
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children)));
|
|
55
|
-
};
|
|
56
|
-
exports.I18NWrapper = I18NWrapper;
|
|
55
|
+
};
|
package/dist/cjs/authProvider.js
CHANGED
|
@@ -12,7 +12,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
12
12
|
var _collectionNames = require("./collectionNames");
|
|
13
13
|
var cachedAuths = {};
|
|
14
14
|
var authProviderBaseURL = 'https://media-playground.dev.atl-paas.net/';
|
|
15
|
-
var StoryBookAuthProvider = /*#__PURE__*/function () {
|
|
15
|
+
var StoryBookAuthProvider = exports.StoryBookAuthProvider = /*#__PURE__*/function () {
|
|
16
16
|
function StoryBookAuthProvider() {
|
|
17
17
|
(0, _classCallCheck2.default)(this, StoryBookAuthProvider);
|
|
18
18
|
}
|
|
@@ -67,5 +67,4 @@ var StoryBookAuthProvider = /*#__PURE__*/function () {
|
|
|
67
67
|
}
|
|
68
68
|
}]);
|
|
69
69
|
return StoryBookAuthProvider;
|
|
70
|
-
}();
|
|
71
|
-
exports.StoryBookAuthProvider = StoryBookAuthProvider;
|
|
70
|
+
}();
|
|
@@ -16,7 +16,9 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
16
16
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
17
17
|
// this isn't implemented by JSDOM so we've implemented it to make Typescript happy
|
|
18
18
|
// see https://github.com/tmpvar/jsdom/issues/1568
|
|
19
|
-
|
|
19
|
+
// TODO: remove this `Omit` usage once TS fixes File class regression.
|
|
20
|
+
// https://github.com/microsoft/TypeScript/issues/52166
|
|
21
|
+
var ClipboardMockFile = exports.ClipboardMockFile = /*#__PURE__*/function () {
|
|
20
22
|
function ClipboardMockFile() {
|
|
21
23
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
22
24
|
type: '',
|
|
@@ -24,6 +26,9 @@ var ClipboardMockFile = /*#__PURE__*/function () {
|
|
|
24
26
|
};
|
|
25
27
|
(0, _classCallCheck2.default)(this, ClipboardMockFile);
|
|
26
28
|
(0, _defineProperty2.default)(this, "lastModified", 1234);
|
|
29
|
+
// TODO: remove this property once TS fixes File class regression.
|
|
30
|
+
// https://github.com/microsoft/TypeScript/issues/52166
|
|
31
|
+
(0, _defineProperty2.default)(this, "prototype", File.prototype);
|
|
27
32
|
this.type = options.type;
|
|
28
33
|
this.name = options.name;
|
|
29
34
|
this.size = 0;
|
|
@@ -45,8 +50,7 @@ var ClipboardMockFile = /*#__PURE__*/function () {
|
|
|
45
50
|
value: function arrayBuffer() {
|
|
46
51
|
return Promise.resolve(new ArrayBuffer(0));
|
|
47
52
|
}
|
|
48
|
-
|
|
49
|
-
// @ts-expect-error Property 'stream' in type 'ClipboardMockFile' is not assignable to the same property in base type 'File'.
|
|
53
|
+
// @ts-ignore: https://github.com/microsoft/TypeScript/issues/52166
|
|
50
54
|
}, {
|
|
51
55
|
key: "stream",
|
|
52
56
|
value: function stream() {
|
|
@@ -67,8 +71,7 @@ var ClipboardMockFile = /*#__PURE__*/function () {
|
|
|
67
71
|
return ClipboardMockFile;
|
|
68
72
|
}(); // this isn't implemented by JSDOM so we've implemented it to make Typescript happy
|
|
69
73
|
// see https://github.com/tmpvar/jsdom/issues/1568
|
|
70
|
-
exports.
|
|
71
|
-
var MockFileList = /*#__PURE__*/function (_Array) {
|
|
74
|
+
var MockFileList = exports.MockFileList = /*#__PURE__*/function (_Array) {
|
|
72
75
|
(0, _inherits2.default)(MockFileList, _Array);
|
|
73
76
|
var _super = _createSuper(MockFileList);
|
|
74
77
|
function MockFileList() {
|
|
@@ -93,8 +96,7 @@ var MockFileList = /*#__PURE__*/function (_Array) {
|
|
|
93
96
|
return MockFileList;
|
|
94
97
|
}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Array)); // this isn't implemented by JSDOM so we've implemented it to make Typescript happy
|
|
95
98
|
// see https://github.com/tmpvar/jsdom/issues/1568
|
|
96
|
-
exports.
|
|
97
|
-
var MockDataTransfer = /*#__PURE__*/function () {
|
|
99
|
+
var MockDataTransfer = exports.MockDataTransfer = /*#__PURE__*/function () {
|
|
98
100
|
function MockDataTransfer(files) {
|
|
99
101
|
var types = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
100
102
|
var items = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
@@ -130,8 +132,7 @@ var MockDataTransfer = /*#__PURE__*/function () {
|
|
|
130
132
|
}(); // this isn't implemented by JSDOM, and JSDOM .dispatchEvent() requires that event is an instanceof event,
|
|
131
133
|
// so we've implemented it to make Typescript happy
|
|
132
134
|
// see https://github.com/tmpvar/jsdom/issues/1568
|
|
133
|
-
exports.
|
|
134
|
-
var getMockClipboardEvent = function getMockClipboardEvent() {
|
|
135
|
+
var getMockClipboardEvent = exports.getMockClipboardEvent = function getMockClipboardEvent() {
|
|
135
136
|
return /*#__PURE__*/function (_Event) {
|
|
136
137
|
(0, _inherits2.default)(MockClipboardEvent, _Event);
|
|
137
138
|
var _super2 = _createSuper(MockClipboardEvent);
|
|
@@ -147,8 +148,7 @@ var getMockClipboardEvent = function getMockClipboardEvent() {
|
|
|
147
148
|
return (0, _createClass2.default)(MockClipboardEvent);
|
|
148
149
|
}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Event));
|
|
149
150
|
};
|
|
150
|
-
exports.
|
|
151
|
-
var MockDragEvent = function MockDragEvent() {
|
|
151
|
+
var MockDragEvent = exports.MockDragEvent = function MockDragEvent() {
|
|
152
152
|
return /*#__PURE__*/function (_MouseEvent) {
|
|
153
153
|
(0, _inherits2.default)(MockDragEvent, _MouseEvent);
|
|
154
154
|
var _super3 = _createSuper(MockDragEvent);
|
|
@@ -173,5 +173,4 @@ var MockDragEvent = function MockDragEvent() {
|
|
|
173
173
|
}]);
|
|
174
174
|
return MockDragEvent;
|
|
175
175
|
}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(MouseEvent));
|
|
176
|
-
};
|
|
177
|
-
exports.MockDragEvent = MockDragEvent;
|
|
176
|
+
};
|
|
@@ -4,13 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.onlyAnimatedGifsCollectionName = exports.fileCollectionName = exports.defaultMediaPickerCollectionName = exports.defaultCollectionName = exports.collectionNames = void 0;
|
|
7
|
-
var defaultCollectionName = 'MediaServicesSample';
|
|
8
|
-
exports.
|
|
9
|
-
var
|
|
10
|
-
exports.
|
|
11
|
-
var
|
|
12
|
-
exports.fileCollectionName = fileCollectionName;
|
|
13
|
-
var defaultMediaPickerCollectionName = 'mediapicker-test';
|
|
14
|
-
exports.defaultMediaPickerCollectionName = defaultMediaPickerCollectionName;
|
|
15
|
-
var collectionNames = [defaultCollectionName, 'MediaServicesSampleAtlaskit', 'MediaServicesSampleHulk', 'MediaServicesSampleFabric', fileCollectionName, onlyAnimatedGifsCollectionName, defaultMediaPickerCollectionName];
|
|
16
|
-
exports.collectionNames = collectionNames;
|
|
7
|
+
var defaultCollectionName = exports.defaultCollectionName = 'MediaServicesSample';
|
|
8
|
+
var onlyAnimatedGifsCollectionName = exports.onlyAnimatedGifsCollectionName = 'only-animated-gifs';
|
|
9
|
+
var fileCollectionName = exports.fileCollectionName = "".concat(defaultCollectionName, "Files");
|
|
10
|
+
var defaultMediaPickerCollectionName = exports.defaultMediaPickerCollectionName = 'mediapicker-test';
|
|
11
|
+
var collectionNames = exports.collectionNames = [defaultCollectionName, 'MediaServicesSampleAtlaskit', 'MediaServicesSampleHulk', 'MediaServicesSampleFabric', fileCollectionName, onlyAnimatedGifsCollectionName, defaultMediaPickerCollectionName];
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.createMouseEvent = void 0;
|
|
7
|
-
var createMouseEvent = function createMouseEvent(name) {
|
|
7
|
+
var createMouseEvent = exports.createMouseEvent = function createMouseEvent(name) {
|
|
8
8
|
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9
9
|
var mb = props.mouseButton,
|
|
10
10
|
cx = props.clientX,
|
|
@@ -21,5 +21,4 @@ var createMouseEvent = function createMouseEvent(name) {
|
|
|
21
21
|
clientX: cx || 0,
|
|
22
22
|
clientY: cy || 0
|
|
23
23
|
});
|
|
24
|
-
};
|
|
25
|
-
exports.createMouseEvent = createMouseEvent;
|
|
24
|
+
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.createTouchEvent = void 0;
|
|
7
|
-
var createTouchEvent = function createTouchEvent(name) {
|
|
7
|
+
var createTouchEvent = exports.createTouchEvent = function createTouchEvent(name) {
|
|
8
8
|
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
9
9
|
touches: []
|
|
10
10
|
};
|
|
@@ -17,5 +17,4 @@ var createTouchEvent = function createTouchEvent(name) {
|
|
|
17
17
|
changedTouches: touches,
|
|
18
18
|
shiftKey: true
|
|
19
19
|
});
|
|
20
|
-
};
|
|
21
|
-
exports.createTouchEvent = createTouchEvent;
|
|
20
|
+
};
|
|
@@ -4,5 +4,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.smallImage = void 0;
|
|
7
|
-
var smallImage = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAMAAAAbzM5ZAAAACVBMVEWs3t4AVFpMkZTmA5phAAAAUElEQVQokWNgxAIYGBkwAPUEGRkxBcG2oglC3YIiCHchkiCSu+GCKL4hYOYAC+IIJTRBsE4mIAKxmBB+hyIkmpAgDu0MyIIQi8hxJxZBLAAAEuQA45SJc9sAAAAASUVORK5CYII=';
|
|
8
|
-
exports.smallImage = smallImage;
|
|
7
|
+
var smallImage = exports.smallImage = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAMAAAAbzM5ZAAAACVBMVEWs3t4AVFpMkZTmA5phAAAAUElEQVQokWNgxAIYGBkwAPUEGRkxBcG2oglC3YIiCHchkiCSu+GCKL4hYOYAC+IIJTRBsE4mIAKxmBB+hyIkmpAgDu0MyIIQi8hxJxZBLAAAEuQA45SJc9sAAAAASUVORK5CYII=';
|