@atlaskit/media-test-helpers 33.0.14 → 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 +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,16 +1,28 @@
|
|
|
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
|
+
|
|
9
|
+
## 33.0.15
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 33.0.14
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
|
-
- [`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.
|
|
8
20
|
|
|
9
21
|
## 33.0.13
|
|
10
22
|
|
|
11
23
|
### Patch Changes
|
|
12
24
|
|
|
13
|
-
- [`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.
|
|
14
26
|
Introducing 'media-client-react' to provide hooks for seamless media-client integration with React.
|
|
15
27
|
Introducing 'MediaCardV2' with a feature flag to replace rxjs based fileState subscription with 'useFileState' hook.
|
|
16
28
|
Removed unused feature flags APIs from 'media-client' and its helper functions from 'media-common'.
|
|
@@ -26,7 +38,7 @@
|
|
|
26
38
|
|
|
27
39
|
### Patch Changes
|
|
28
40
|
|
|
29
|
-
- [`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
|
|
30
42
|
- Updated dependencies
|
|
31
43
|
|
|
32
44
|
## 33.0.10
|
|
@@ -39,19 +51,19 @@
|
|
|
39
51
|
|
|
40
52
|
### Patch Changes
|
|
41
53
|
|
|
42
|
-
- [`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
|
|
43
55
|
|
|
44
56
|
## 33.0.8
|
|
45
57
|
|
|
46
58
|
### Patch Changes
|
|
47
59
|
|
|
48
|
-
- [`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
|
|
49
61
|
|
|
50
62
|
## 33.0.7
|
|
51
63
|
|
|
52
64
|
### Patch Changes
|
|
53
65
|
|
|
54
|
-
- [`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.
|
|
55
67
|
|
|
56
68
|
## 33.0.6
|
|
57
69
|
|
|
@@ -75,7 +87,7 @@
|
|
|
75
87
|
|
|
76
88
|
### Patch Changes
|
|
77
89
|
|
|
78
|
-
- [`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
|
|
79
91
|
- Updated dependencies
|
|
80
92
|
|
|
81
93
|
## 33.0.2
|
|
@@ -88,14 +100,14 @@
|
|
|
88
100
|
|
|
89
101
|
### Patch Changes
|
|
90
102
|
|
|
91
|
-
- [`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`
|
|
92
104
|
- Updated dependencies
|
|
93
105
|
|
|
94
106
|
## 33.0.0
|
|
95
107
|
|
|
96
108
|
### Minor Changes
|
|
97
109
|
|
|
98
|
-
- [`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
|
|
99
111
|
|
|
100
112
|
### Patch Changes
|
|
101
113
|
|
|
@@ -105,7 +117,7 @@
|
|
|
105
117
|
|
|
106
118
|
### Minor Changes
|
|
107
119
|
|
|
108
|
-
- [`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
|
|
109
121
|
|
|
110
122
|
### Patch Changes
|
|
111
123
|
|
|
@@ -115,7 +127,7 @@
|
|
|
115
127
|
|
|
116
128
|
### Major Changes
|
|
117
129
|
|
|
118
|
-
- [`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
|
|
119
131
|
|
|
120
132
|
### Patch Changes
|
|
121
133
|
|
|
@@ -126,7 +138,7 @@
|
|
|
126
138
|
|
|
127
139
|
### Major Changes
|
|
128
140
|
|
|
129
|
-
- [`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.
|
|
130
142
|
|
|
131
143
|
### Patch Changes
|
|
132
144
|
|
|
@@ -154,7 +166,7 @@
|
|
|
154
166
|
|
|
155
167
|
### Minor Changes
|
|
156
168
|
|
|
157
|
-
- [`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.
|
|
158
170
|
- [`db73d317050`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db73d317050) - Added ContentTabs component to be used in docs of media components.
|
|
159
171
|
|
|
160
172
|
### Patch Changes
|
|
@@ -177,7 +189,7 @@
|
|
|
177
189
|
|
|
178
190
|
### Patch Changes
|
|
179
191
|
|
|
180
|
-
- [`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.
|
|
181
193
|
- Updated dependencies
|
|
182
194
|
|
|
183
195
|
## 30.0.5
|
|
@@ -190,19 +202,19 @@
|
|
|
190
202
|
|
|
191
203
|
### Patch Changes
|
|
192
204
|
|
|
193
|
-
- [`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`
|
|
194
206
|
|
|
195
207
|
## 30.0.3
|
|
196
208
|
|
|
197
209
|
### Patch Changes
|
|
198
210
|
|
|
199
|
-
- [`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`.
|
|
200
212
|
|
|
201
213
|
## 30.0.2
|
|
202
214
|
|
|
203
215
|
### Patch Changes
|
|
204
216
|
|
|
205
|
-
- [`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
|
|
206
218
|
- Updated dependencies
|
|
207
219
|
|
|
208
220
|
## 30.0.1
|
|
@@ -215,7 +227,7 @@
|
|
|
215
227
|
|
|
216
228
|
### Major Changes
|
|
217
229
|
|
|
218
|
-
- [`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
|
|
219
231
|
- [`ad13b4d0bc6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad13b4d0bc6) - [MEX-1525] Remove userAuth from Media-Core & Media-client
|
|
220
232
|
|
|
221
233
|
### Patch Changes
|
|
@@ -227,7 +239,7 @@
|
|
|
227
239
|
|
|
228
240
|
### Patch Changes
|
|
229
241
|
|
|
230
|
-
- [`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`.
|
|
231
243
|
|
|
232
244
|
## 29.4.1
|
|
233
245
|
|
|
@@ -240,7 +252,7 @@
|
|
|
240
252
|
|
|
241
253
|
### Minor Changes
|
|
242
254
|
|
|
243
|
-
- [`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
|
|
244
256
|
- [`8f86bfe1961`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f86bfe1961) - [MEX-1389] Remove types & interfaces related to media-picker popup
|
|
245
257
|
- [`a44c7c42fa7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a44c7c42fa7) - Added payload publisher wrapper for logging ufo events in examples
|
|
246
258
|
|
|
@@ -252,7 +264,7 @@
|
|
|
252
264
|
|
|
253
265
|
### Minor Changes
|
|
254
266
|
|
|
255
|
-
- [`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
|
|
256
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).
|
|
257
269
|
It exposes subscribe method that is called with MediaObserver as an argument and returns MediaSubscription.
|
|
258
270
|
MediaSubscription exposes unsubscribe method.
|
|
@@ -337,14 +349,14 @@
|
|
|
337
349
|
|
|
338
350
|
### Patch Changes
|
|
339
351
|
|
|
340
|
-
- [`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
|
|
341
353
|
- Updated dependencies
|
|
342
354
|
|
|
343
355
|
## 29.2.0
|
|
344
356
|
|
|
345
357
|
### Minor Changes
|
|
346
358
|
|
|
347
|
-
- [`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
|
|
348
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)
|
|
349
361
|
- [`94539e589cc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/94539e589cc) - MEX-1105 Migrated @atlaskit/button to @atlaskit/button/standard-button
|
|
350
362
|
|
|
@@ -356,8 +368,8 @@
|
|
|
356
368
|
|
|
357
369
|
### Minor Changes
|
|
358
370
|
|
|
359
|
-
- [`3ad0bbf0f93`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ad0bbf0f93) - Log media ssr getImageURLSync error in global variable ssr data.
|
|
360
|
-
- [`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
|
|
361
373
|
- [`da72247beeb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/da72247beeb) - remove styled-components from media-ui
|
|
362
374
|
- [`22a39ca6f66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/22a39ca6f66) - expose @atlaskit/media-test-helpers/smart-card-state
|
|
363
375
|
- [`4735277e315`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4735277e315) - Extended FileState factory to update File Id internally
|
|
@@ -371,13 +383,13 @@
|
|
|
371
383
|
|
|
372
384
|
### Patch Changes
|
|
373
385
|
|
|
374
|
-
- [`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
|
|
375
387
|
|
|
376
388
|
## 29.0.0
|
|
377
389
|
|
|
378
390
|
### Major Changes
|
|
379
391
|
|
|
380
|
-
- [`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
|
|
381
393
|
|
|
382
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.
|
|
383
395
|
Why change was made: As part of a coordinated upgrade effort across AF packages, as react-intl v2 is quite dated.
|
|
@@ -423,7 +435,7 @@
|
|
|
423
435
|
|
|
424
436
|
### Minor Changes
|
|
425
437
|
|
|
426
|
-
- [`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
|
|
427
439
|
|
|
428
440
|
### Patch Changes
|
|
429
441
|
|
|
@@ -433,7 +445,7 @@
|
|
|
433
445
|
|
|
434
446
|
### Patch Changes
|
|
435
447
|
|
|
436
|
-
- [`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
|
|
437
449
|
- [`d15fbde3a83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d15fbde3a83) - Reverting media playground url change because of broken regression tests
|
|
438
450
|
- [`e362e52fc66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e362e52fc66) - Updating the media playground urls for media examples, to avoid stargate auth
|
|
439
451
|
- Updated dependencies
|
|
@@ -442,7 +454,7 @@
|
|
|
442
454
|
|
|
443
455
|
### Minor Changes
|
|
444
456
|
|
|
445
|
-
- [`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
|
|
446
458
|
|
|
447
459
|
### Patch Changes
|
|
448
460
|
|
|
@@ -452,42 +464,42 @@
|
|
|
452
464
|
|
|
453
465
|
### Patch Changes
|
|
454
466
|
|
|
455
|
-
- [`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
|
|
456
468
|
- Updated dependencies
|
|
457
469
|
|
|
458
470
|
## 28.7.4
|
|
459
471
|
|
|
460
472
|
### Patch Changes
|
|
461
473
|
|
|
462
|
-
- [`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
|
|
463
475
|
- Updated dependencies
|
|
464
476
|
|
|
465
477
|
## 28.7.3
|
|
466
478
|
|
|
467
479
|
### Patch Changes
|
|
468
480
|
|
|
469
|
-
- [`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
|
|
470
482
|
- Updated dependencies
|
|
471
483
|
|
|
472
484
|
## 28.7.2
|
|
473
485
|
|
|
474
486
|
### Patch Changes
|
|
475
487
|
|
|
476
|
-
- [`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
|
|
477
489
|
- Updated dependencies
|
|
478
490
|
|
|
479
491
|
## 28.7.1
|
|
480
492
|
|
|
481
493
|
### Patch Changes
|
|
482
494
|
|
|
483
|
-
- [`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
|
|
484
496
|
- Updated dependencies
|
|
485
497
|
|
|
486
498
|
## 28.7.0
|
|
487
499
|
|
|
488
500
|
### Minor Changes
|
|
489
501
|
|
|
490
|
-
- [`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
|
|
491
503
|
|
|
492
504
|
### Patch Changes
|
|
493
505
|
|
|
@@ -499,7 +511,7 @@
|
|
|
499
511
|
|
|
500
512
|
### Minor Changes
|
|
501
513
|
|
|
502
|
-
- [`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
|
|
503
515
|
|
|
504
516
|
### Patch Changes
|
|
505
517
|
|
|
@@ -509,7 +521,7 @@
|
|
|
509
521
|
|
|
510
522
|
### Patch Changes
|
|
511
523
|
|
|
512
|
-
- [`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
|
|
513
525
|
- Updated dependencies
|
|
514
526
|
|
|
515
527
|
## 28.5.1
|
|
@@ -522,7 +534,7 @@
|
|
|
522
534
|
|
|
523
535
|
### Minor Changes
|
|
524
536
|
|
|
525
|
-
- [`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
|
|
526
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!
|
|
527
539
|
editor-core now exports dedupe which aids in not having duplicate plugins added when initialising an editor
|
|
528
540
|
|
|
@@ -535,13 +547,13 @@
|
|
|
535
547
|
|
|
536
548
|
### Patch Changes
|
|
537
549
|
|
|
538
|
-
- [`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
|
|
539
551
|
|
|
540
552
|
## 28.4.0
|
|
541
553
|
|
|
542
554
|
### Minor Changes
|
|
543
555
|
|
|
544
|
-
- [`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
|
|
545
557
|
|
|
546
558
|
### Patch Changes
|
|
547
559
|
|
|
@@ -557,7 +569,7 @@
|
|
|
557
569
|
|
|
558
570
|
### Minor Changes
|
|
559
571
|
|
|
560
|
-
- [`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
|
|
561
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.
|
|
562
574
|
|
|
563
575
|
### Patch Changes
|
|
@@ -568,7 +580,7 @@
|
|
|
568
580
|
|
|
569
581
|
### Patch Changes
|
|
570
582
|
|
|
571
|
-
- [`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.
|
|
572
584
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
573
585
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
574
586
|
|
|
@@ -576,13 +588,13 @@
|
|
|
576
588
|
|
|
577
589
|
### Patch Changes
|
|
578
590
|
|
|
579
|
-
- [`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
|
|
580
592
|
|
|
581
593
|
## 28.2.0
|
|
582
594
|
|
|
583
595
|
### Minor Changes
|
|
584
596
|
|
|
585
|
-
- [`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
|
|
586
598
|
- [`9c50fe8fd0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9c50fe8fd0) - Adding Browser integration tests that simulate a using dragging and dropping a folder
|
|
587
599
|
- [`7d831363d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d831363d9) - Migrated to declarative entry points
|
|
588
600
|
|
|
@@ -606,7 +618,7 @@
|
|
|
606
618
|
|
|
607
619
|
### Patch Changes
|
|
608
620
|
|
|
609
|
-
- [`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
|
|
610
622
|
|
|
611
623
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
612
624
|
to prevent duplicates of tslib being bundled.
|
|
@@ -615,13 +627,13 @@
|
|
|
615
627
|
|
|
616
628
|
### Patch Changes
|
|
617
629
|
|
|
618
|
-
- [`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
|
|
619
631
|
|
|
620
632
|
## 28.1.0
|
|
621
633
|
|
|
622
634
|
### Minor Changes
|
|
623
635
|
|
|
624
|
-
- [`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
|
|
625
637
|
- [`155125a472`](https://bitbucket.org/atlassian/atlassian-frontend/commits/155125a472) - Add flushPromise
|
|
626
638
|
- [`5d20188710`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5d20188710) - Added all supported languages to I18NWrapper
|
|
627
639
|
- [`8cfc88423a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cfc88423a) - Added more zip examples and added error handling for zip previews
|
|
@@ -641,13 +653,13 @@
|
|
|
641
653
|
|
|
642
654
|
### Patch Changes
|
|
643
655
|
|
|
644
|
-
- [`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
|
|
645
657
|
|
|
646
658
|
## 28.0.0
|
|
647
659
|
|
|
648
660
|
### Major Changes
|
|
649
661
|
|
|
650
|
-
- [`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.
|
|
651
663
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
652
664
|
|
|
653
665
|
### Patch Changes
|
|
@@ -664,13 +676,13 @@
|
|
|
664
676
|
|
|
665
677
|
### Patch Changes
|
|
666
678
|
|
|
667
|
-
- [`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
|
|
668
680
|
|
|
669
681
|
## 27.2.1
|
|
670
682
|
|
|
671
683
|
### Patch Changes
|
|
672
684
|
|
|
673
|
-
- [`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
|
|
674
686
|
- [`054e719497`](https://bitbucket.org/atlassian/atlassian-frontend/commits/054e719497) - Replace deprecated Media URLs with latest
|
|
675
687
|
- [`54d82b49f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54d82b49f0) - Remove unused dependencies
|
|
676
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=';
|