@atlaskit/media-test-helpers 33.0.15 → 33.0.17
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 +64 -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 +6 -5
- package/report.api.md +3 -1
- package/tmp/api-report-tmp.d.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/media-test-helpers
|
|
2
2
|
|
|
3
|
+
## 33.0.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 33.0.16
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#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
|
|
14
|
+
|
|
3
15
|
## 33.0.15
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -10,13 +22,13 @@
|
|
|
10
22
|
|
|
11
23
|
### Patch Changes
|
|
12
24
|
|
|
13
|
-
- [`6900f89eb0e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6900f89eb0e) - Internal changes to use space tokens. There is no expected visual or behaviour change.
|
|
25
|
+
- [#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
26
|
|
|
15
27
|
## 33.0.13
|
|
16
28
|
|
|
17
29
|
### Patch Changes
|
|
18
30
|
|
|
19
|
-
- [`7b6a2c6671b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7b6a2c6671b) - Introducing 'media-state' for handling media internal file state.
|
|
31
|
+
- [#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
32
|
Introducing 'media-client-react' to provide hooks for seamless media-client integration with React.
|
|
21
33
|
Introducing 'MediaCardV2' with a feature flag to replace rxjs based fileState subscription with 'useFileState' hook.
|
|
22
34
|
Removed unused feature flags APIs from 'media-client' and its helper functions from 'media-common'.
|
|
@@ -32,7 +44,7 @@
|
|
|
32
44
|
|
|
33
45
|
### Patch Changes
|
|
34
46
|
|
|
35
|
-
- [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
47
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
36
48
|
- Updated dependencies
|
|
37
49
|
|
|
38
50
|
## 33.0.10
|
|
@@ -45,19 +57,19 @@
|
|
|
45
57
|
|
|
46
58
|
### Patch Changes
|
|
47
59
|
|
|
48
|
-
- [`b9355830504`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9355830504) - Opt out of peer dependency enforcement
|
|
60
|
+
- [#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
61
|
|
|
50
62
|
## 33.0.8
|
|
51
63
|
|
|
52
64
|
### Patch Changes
|
|
53
65
|
|
|
54
|
-
- [`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add postinstall check to enforce internal peer dependencies
|
|
66
|
+
- [#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
67
|
|
|
56
68
|
## 33.0.7
|
|
57
69
|
|
|
58
70
|
### Patch Changes
|
|
59
71
|
|
|
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.
|
|
72
|
+
- [#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
73
|
|
|
62
74
|
## 33.0.6
|
|
63
75
|
|
|
@@ -81,7 +93,7 @@
|
|
|
81
93
|
|
|
82
94
|
### Patch Changes
|
|
83
95
|
|
|
84
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
96
|
+
- [#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
97
|
- Updated dependencies
|
|
86
98
|
|
|
87
99
|
## 33.0.2
|
|
@@ -94,14 +106,14 @@
|
|
|
94
106
|
|
|
95
107
|
### Patch Changes
|
|
96
108
|
|
|
97
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
109
|
+
- [#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
110
|
- Updated dependencies
|
|
99
111
|
|
|
100
112
|
## 33.0.0
|
|
101
113
|
|
|
102
114
|
### Minor Changes
|
|
103
115
|
|
|
104
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
116
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
105
117
|
|
|
106
118
|
### Patch Changes
|
|
107
119
|
|
|
@@ -111,7 +123,7 @@
|
|
|
111
123
|
|
|
112
124
|
### Minor Changes
|
|
113
125
|
|
|
114
|
-
- [`7b0b33845fe`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7b0b33845fe) - Added file state simulation helpers
|
|
126
|
+
- [#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
127
|
|
|
116
128
|
### Patch Changes
|
|
117
129
|
|
|
@@ -121,7 +133,7 @@
|
|
|
121
133
|
|
|
122
134
|
### Major Changes
|
|
123
135
|
|
|
124
|
-
- [`b85816dc2e3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b85816dc2e3) - MEX-2307 Change media-core dependencies in media-test-helpers
|
|
136
|
+
- [#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
137
|
|
|
126
138
|
### Patch Changes
|
|
127
139
|
|
|
@@ -132,7 +144,7 @@
|
|
|
132
144
|
|
|
133
145
|
### Major Changes
|
|
134
146
|
|
|
135
|
-
- [`b37723f2cfa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b37723f2cfa) - FeatureFlagsWrapper no longer filters feature flags. All Media flags will be listed.
|
|
147
|
+
- [#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
148
|
|
|
137
149
|
### Patch Changes
|
|
138
150
|
|
|
@@ -160,7 +172,7 @@
|
|
|
160
172
|
|
|
161
173
|
### Minor Changes
|
|
162
174
|
|
|
163
|
-
- [`79660ee4fa7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79660ee4fa7) - Restructured the Media-Image and added CSS to make doc responsive.
|
|
175
|
+
- [#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
176
|
- [`db73d317050`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db73d317050) - Added ContentTabs component to be used in docs of media components.
|
|
165
177
|
|
|
166
178
|
### Patch Changes
|
|
@@ -183,7 +195,7 @@
|
|
|
183
195
|
|
|
184
196
|
### Patch Changes
|
|
185
197
|
|
|
186
|
-
- [`c59fd9d42f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c59fd9d42f8) - Fix warnings due to jest being defined in non-test environments.
|
|
198
|
+
- [#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
199
|
- Updated dependencies
|
|
188
200
|
|
|
189
201
|
## 30.0.5
|
|
@@ -196,19 +208,19 @@
|
|
|
196
208
|
|
|
197
209
|
### Patch Changes
|
|
198
210
|
|
|
199
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
211
|
+
- [#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
212
|
|
|
201
213
|
## 30.0.3
|
|
202
214
|
|
|
203
215
|
### Patch Changes
|
|
204
216
|
|
|
205
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
217
|
+
- [#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
218
|
|
|
207
219
|
## 30.0.2
|
|
208
220
|
|
|
209
221
|
### Patch Changes
|
|
210
222
|
|
|
211
|
-
- [`baece961cdd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/baece961cdd) - Add media-card example for use by media-pollinator-test
|
|
223
|
+
- [#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
224
|
- Updated dependencies
|
|
213
225
|
|
|
214
226
|
## 30.0.1
|
|
@@ -221,7 +233,7 @@
|
|
|
221
233
|
|
|
222
234
|
### Major Changes
|
|
223
235
|
|
|
224
|
-
- [`593d2d788e5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/593d2d788e5) - [MEX-1413] Remove Media-picker-auth-provider
|
|
236
|
+
- [#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
237
|
- [`ad13b4d0bc6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad13b4d0bc6) - [MEX-1525] Remove userAuth from Media-Core & Media-client
|
|
226
238
|
|
|
227
239
|
### Patch Changes
|
|
@@ -233,7 +245,7 @@
|
|
|
233
245
|
|
|
234
246
|
### Patch Changes
|
|
235
247
|
|
|
236
|
-
- [`a424e62b264`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a424e62b264) - Changes to support Node 16 Typescript definitions from `@types/node`.
|
|
248
|
+
- [#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
249
|
|
|
238
250
|
## 29.4.1
|
|
239
251
|
|
|
@@ -246,7 +258,7 @@
|
|
|
246
258
|
|
|
247
259
|
### Minor Changes
|
|
248
260
|
|
|
249
|
-
- [`eaf810b0560`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eaf810b0560) - [MEX-1398] Remove PopUp implementation from Media-picker
|
|
261
|
+
- [#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
262
|
- [`8f86bfe1961`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f86bfe1961) - [MEX-1389] Remove types & interfaces related to media-picker popup
|
|
251
263
|
- [`a44c7c42fa7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a44c7c42fa7) - Added payload publisher wrapper for logging ufo events in examples
|
|
252
264
|
|
|
@@ -258,7 +270,7 @@
|
|
|
258
270
|
|
|
259
271
|
### Minor Changes
|
|
260
272
|
|
|
261
|
-
- [`f862d5ae7aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f862d5ae7aa) - remove RxJs peer dependency
|
|
273
|
+
- [#19618](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19618) [`f862d5ae7aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f862d5ae7aa) - remove RxJs peer dependency
|
|
262
274
|
- [`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
275
|
It exposes subscribe method that is called with MediaObserver as an argument and returns MediaSubscription.
|
|
264
276
|
MediaSubscription exposes unsubscribe method.
|
|
@@ -343,14 +355,14 @@
|
|
|
343
355
|
|
|
344
356
|
### Patch Changes
|
|
345
357
|
|
|
346
|
-
- [`7b8ba79b71b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7b8ba79b71b) - use mimeType in MediaMock when provided
|
|
358
|
+
- [#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
359
|
- Updated dependencies
|
|
348
360
|
|
|
349
361
|
## 29.2.0
|
|
350
362
|
|
|
351
363
|
### Minor Changes
|
|
352
364
|
|
|
353
|
-
- [`8bf4fdb8ed4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8bf4fdb8ed4) - add renderWithIntl helper
|
|
365
|
+
- [#19019](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19019) [`8bf4fdb8ed4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8bf4fdb8ed4) - add renderWithIntl helper
|
|
354
366
|
- [`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
367
|
- [`94539e589cc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/94539e589cc) - MEX-1105 Migrated @atlaskit/button to @atlaskit/button/standard-button
|
|
356
368
|
|
|
@@ -362,8 +374,8 @@
|
|
|
362
374
|
|
|
363
375
|
### Minor Changes
|
|
364
376
|
|
|
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
|
|
377
|
+
- [#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.
|
|
378
|
+
- [#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
379
|
- [`da72247beeb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/da72247beeb) - remove styled-components from media-ui
|
|
368
380
|
- [`22a39ca6f66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/22a39ca6f66) - expose @atlaskit/media-test-helpers/smart-card-state
|
|
369
381
|
- [`4735277e315`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4735277e315) - Extended FileState factory to update File Id internally
|
|
@@ -377,13 +389,13 @@
|
|
|
377
389
|
|
|
378
390
|
### Patch Changes
|
|
379
391
|
|
|
380
|
-
- [`c55c736ecea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c55c736ecea) - Patch VULN AFP-3486 AFP-3487 AFP-3488 AFP-3489
|
|
392
|
+
- [#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
393
|
|
|
382
394
|
## 29.0.0
|
|
383
395
|
|
|
384
396
|
### Major Changes
|
|
385
397
|
|
|
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
|
|
398
|
+
- [#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
399
|
|
|
388
400
|
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
401
|
Why change was made: As part of a coordinated upgrade effort across AF packages, as react-intl v2 is quite dated.
|
|
@@ -429,7 +441,7 @@
|
|
|
429
441
|
|
|
430
442
|
### Minor Changes
|
|
431
443
|
|
|
432
|
-
- [`1724e1b8277`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1724e1b8277) - Extended fakeMediaClient with getImageUrlSync mock
|
|
444
|
+
- [#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
445
|
|
|
434
446
|
### Patch Changes
|
|
435
447
|
|
|
@@ -439,7 +451,7 @@
|
|
|
439
451
|
|
|
440
452
|
### Patch Changes
|
|
441
453
|
|
|
442
|
-
- [`11df2d9b882`](https://bitbucket.org/atlassian/atlassian-frontend/commits/11df2d9b882) - Re-enabling non stargate url for media examples
|
|
454
|
+
- [#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
455
|
- [`d15fbde3a83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d15fbde3a83) - Reverting media playground url change because of broken regression tests
|
|
444
456
|
- [`e362e52fc66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e362e52fc66) - Updating the media playground urls for media examples, to avoid stargate auth
|
|
445
457
|
- Updated dependencies
|
|
@@ -448,7 +460,7 @@
|
|
|
448
460
|
|
|
449
461
|
### Minor Changes
|
|
450
462
|
|
|
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
|
|
463
|
+
- [#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
464
|
|
|
453
465
|
### Patch Changes
|
|
454
466
|
|
|
@@ -458,42 +470,42 @@
|
|
|
458
470
|
|
|
459
471
|
### Patch Changes
|
|
460
472
|
|
|
461
|
-
- [`4777a174e6d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4777a174e6d) - Added analytics support for customMediaPlayer + screen event + entrypoint for locales
|
|
473
|
+
- [#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
474
|
- Updated dependencies
|
|
463
475
|
|
|
464
476
|
## 28.7.4
|
|
465
477
|
|
|
466
478
|
### Patch Changes
|
|
467
479
|
|
|
468
|
-
- [`254c7ae04bc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/254c7ae04bc) - Refactor CardView in Media Card to group UI elements by status
|
|
480
|
+
- [#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
481
|
- Updated dependencies
|
|
470
482
|
|
|
471
483
|
## 28.7.3
|
|
472
484
|
|
|
473
485
|
### Patch Changes
|
|
474
486
|
|
|
475
|
-
- [`6810728cd53`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6810728cd53) - Ehance test for new auth provider in media-image to prevent re-subscription
|
|
487
|
+
- [#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
488
|
- Updated dependencies
|
|
477
489
|
|
|
478
490
|
## 28.7.2
|
|
479
491
|
|
|
480
492
|
### Patch Changes
|
|
481
493
|
|
|
482
|
-
- [`6be6879ef6d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6be6879ef6d) - Added Media Feature Flags control in examples
|
|
494
|
+
- [#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
495
|
- Updated dependencies
|
|
484
496
|
|
|
485
497
|
## 28.7.1
|
|
486
498
|
|
|
487
499
|
### Patch Changes
|
|
488
500
|
|
|
489
|
-
- [`f0ee7740f45`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f0ee7740f45) - fix fakeMediaClient
|
|
501
|
+
- [#10569](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10569) [`f0ee7740f45`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f0ee7740f45) - fix fakeMediaClient
|
|
490
502
|
- Updated dependencies
|
|
491
503
|
|
|
492
504
|
## 28.7.0
|
|
493
505
|
|
|
494
506
|
### Minor Changes
|
|
495
507
|
|
|
496
|
-
- [`bfd2f542849`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bfd2f542849) - Add JestSpy and JestFunction members
|
|
508
|
+
- [#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
509
|
|
|
498
510
|
### Patch Changes
|
|
499
511
|
|
|
@@ -505,7 +517,7 @@
|
|
|
505
517
|
|
|
506
518
|
### Minor Changes
|
|
507
519
|
|
|
508
|
-
- [`37d4add135f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37d4add135f) - Provide Media Client Error creators
|
|
520
|
+
- [#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
521
|
|
|
510
522
|
### Patch Changes
|
|
511
523
|
|
|
@@ -515,7 +527,7 @@
|
|
|
515
527
|
|
|
516
528
|
### Patch Changes
|
|
517
529
|
|
|
518
|
-
- [`a4e37d0df4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a4e37d0df4) - Fix EDM-1636 again
|
|
530
|
+
- [#7425](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/7425) [`a4e37d0df4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a4e37d0df4) - Fix EDM-1636 again
|
|
519
531
|
- Updated dependencies
|
|
520
532
|
|
|
521
533
|
## 28.5.1
|
|
@@ -528,7 +540,7 @@
|
|
|
528
540
|
|
|
529
541
|
### Minor Changes
|
|
530
542
|
|
|
531
|
-
- [`fa5ef18162`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fa5ef18162) - Fixed media client's DataLoader error handling
|
|
543
|
+
- [#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
544
|
- [`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
545
|
editor-core now exports dedupe which aids in not having duplicate plugins added when initialising an editor
|
|
534
546
|
|
|
@@ -541,13 +553,13 @@
|
|
|
541
553
|
|
|
542
554
|
### Patch Changes
|
|
543
555
|
|
|
544
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
556
|
+
- [#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
557
|
|
|
546
558
|
## 28.4.0
|
|
547
559
|
|
|
548
560
|
### Minor Changes
|
|
549
561
|
|
|
550
|
-
- [`d6f279ecaa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f279ecaa) - Add support for video files in MediaMock
|
|
562
|
+
- [#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
563
|
|
|
552
564
|
### Patch Changes
|
|
553
565
|
|
|
@@ -563,7 +575,7 @@
|
|
|
563
575
|
|
|
564
576
|
### Minor Changes
|
|
565
577
|
|
|
566
|
-
- [`52b1353be9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/52b1353be9) - BMT-611 Added integration test for Giphy cloud files
|
|
578
|
+
- [#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
579
|
- [`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
580
|
|
|
569
581
|
### Patch Changes
|
|
@@ -574,7 +586,7 @@
|
|
|
574
586
|
|
|
575
587
|
### Patch Changes
|
|
576
588
|
|
|
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.
|
|
589
|
+
- [#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
590
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
579
591
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
580
592
|
|
|
@@ -582,13 +594,13 @@
|
|
|
582
594
|
|
|
583
595
|
### Patch Changes
|
|
584
596
|
|
|
585
|
-
- [`b4cf0f9326`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b4cf0f9326) - ED-10439 - Modify loadImageMockSetup to ensure media-ui mock is not hoisted
|
|
597
|
+
- [#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
598
|
|
|
587
599
|
## 28.2.0
|
|
588
600
|
|
|
589
601
|
### Minor Changes
|
|
590
602
|
|
|
591
|
-
- [`821e8edaf8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/821e8edaf8) - Make MediaMock ApiRouter more realistic + replace tall image testing
|
|
603
|
+
- [#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
604
|
- [`9c50fe8fd0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9c50fe8fd0) - Adding Browser integration tests that simulate a using dragging and dropping a folder
|
|
593
605
|
- [`7d831363d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d831363d9) - Migrated to declarative entry points
|
|
594
606
|
|
|
@@ -612,7 +624,7 @@
|
|
|
612
624
|
|
|
613
625
|
### Patch Changes
|
|
614
626
|
|
|
615
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
627
|
+
- [#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
628
|
|
|
617
629
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
618
630
|
to prevent duplicates of tslib being bundled.
|
|
@@ -621,13 +633,13 @@
|
|
|
621
633
|
|
|
622
634
|
### Patch Changes
|
|
623
635
|
|
|
624
|
-
- [`76165ad82f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76165ad82f) - Bump required because of conflicts on wadmal release
|
|
636
|
+
- [#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
637
|
|
|
626
638
|
## 28.1.0
|
|
627
639
|
|
|
628
640
|
### Minor Changes
|
|
629
641
|
|
|
630
|
-
- [`62eb1114c4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62eb1114c4) - Enable passing of MediaFeatureFlags through Editor Renderer via MediaOptions to Media components
|
|
642
|
+
- [#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
643
|
- [`155125a472`](https://bitbucket.org/atlassian/atlassian-frontend/commits/155125a472) - Add flushPromise
|
|
632
644
|
- [`5d20188710`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5d20188710) - Added all supported languages to I18NWrapper
|
|
633
645
|
- [`8cfc88423a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cfc88423a) - Added more zip examples and added error handling for zip previews
|
|
@@ -647,13 +659,13 @@
|
|
|
647
659
|
|
|
648
660
|
### Patch Changes
|
|
649
661
|
|
|
650
|
-
- [`50d947cdae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/50d947cdae) - Added Media Card New Experience behind a feature flag
|
|
662
|
+
- [#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
663
|
|
|
652
664
|
## 28.0.0
|
|
653
665
|
|
|
654
666
|
### Major Changes
|
|
655
667
|
|
|
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.
|
|
668
|
+
- [#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
669
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
658
670
|
|
|
659
671
|
### Patch Changes
|
|
@@ -670,13 +682,13 @@
|
|
|
670
682
|
|
|
671
683
|
### Patch Changes
|
|
672
684
|
|
|
673
|
-
- [`eac08411a3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eac08411a3) - Updated react-redux dependency to 5.1.0
|
|
685
|
+
- [#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
686
|
|
|
675
687
|
## 27.2.1
|
|
676
688
|
|
|
677
689
|
### Patch Changes
|
|
678
690
|
|
|
679
|
-
- [`a2ffde361d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a2ffde361d) - MPT-131: fetch remote preview for files not supported by the browser
|
|
691
|
+
- [#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
692
|
- [`054e719497`](https://bitbucket.org/atlassian/atlassian-frontend/commits/054e719497) - Replace deprecated Media URLs with latest
|
|
681
693
|
- [`54d82b49f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54d82b49f0) - Remove unused dependencies
|
|
682
694
|
- 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=';
|