@atlaskit/media-client 23.2.0 → 24.0.1
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 +93 -74
- package/dist/cjs/client/file-fetcher/error.js +1 -2
- package/dist/cjs/client/file-fetcher/index.js +113 -38
- package/dist/cjs/client/media-client.js +20 -9
- package/dist/cjs/client/media-store/error.js +1 -2
- package/dist/cjs/client/media-store/index.js +5 -9
- package/dist/cjs/client/media-store/resolveAuth.js +4 -7
- package/dist/cjs/client/mobile-upload.js +40 -5
- package/dist/cjs/client/stargate-client.js +2 -3
- package/dist/cjs/constants.js +6 -12
- package/dist/cjs/file-streams-cache.js +3 -5
- package/dist/cjs/globalMediaEventEmitter.js +2 -3
- package/dist/cjs/identifier.js +4 -7
- package/dist/cjs/index.js +17 -20
- package/dist/cjs/models/artifacts.js +2 -3
- package/dist/cjs/models/errors/index.js +2 -3
- package/dist/cjs/models/file-state.js +10 -19
- package/dist/cjs/models/media.js +3 -5
- package/dist/cjs/test-helpers/authProvider.js +2 -3
- package/dist/cjs/test-helpers/collectionNames.js +5 -10
- package/dist/cjs/test-helpers/exampleMediaItems.js +48 -91
- package/dist/cjs/test-helpers/fakeMediaClient.js +3 -5
- package/dist/cjs/test-helpers/index.js +1 -2
- package/dist/cjs/test-helpers/mediaClientProvider.js +7 -13
- package/dist/cjs/test-helpers/mediaPickerAuthProvider.js +4 -7
- package/dist/cjs/upload-controller.js +2 -3
- package/dist/cjs/uploader/calculateChunkSize.js +4 -5
- package/dist/cjs/uploader/error.js +1 -2
- package/dist/cjs/uploader/index.js +3 -4
- package/dist/cjs/utils/checkWebpSupport.js +2 -3
- package/dist/cjs/utils/convertBase64ToBlob.js +2 -3
- package/dist/cjs/utils/createFileDataLoader.js +2 -4
- package/dist/cjs/utils/detectEmptyFile.js +2 -2
- package/dist/cjs/utils/getDimensionsFromBlob.js +2 -3
- package/dist/cjs/utils/getImageDimensionsFromBlob.js +2 -3
- package/dist/cjs/utils/getMediaTypeFromUploadableFile.js +2 -3
- package/dist/cjs/utils/getVideoDimensionsFromBlob.js +2 -3
- package/dist/cjs/utils/hashing/hasherCreator.js +3 -5
- package/dist/cjs/utils/hashing/simpleHasher.js +4 -4
- package/dist/cjs/utils/hashing/workerHasher.js +2 -3
- package/dist/cjs/utils/imageResizeModeToFileImageMode.js +2 -3
- package/dist/cjs/utils/isImageRemote.js +2 -3
- package/dist/cjs/utils/mediaSubscribable/toPromise.js +2 -3
- package/dist/cjs/utils/mobileUpload/error.js +1 -2
- package/dist/cjs/utils/mobileUpload/helpers.js +3 -5
- package/dist/cjs/utils/mobileUpload/stateMachine/index.js +1 -2
- package/dist/cjs/utils/mobileUpload/stateMachine/states/error.js +2 -3
- package/dist/cjs/utils/mobileUpload/stateMachine/states/processed.js +2 -3
- package/dist/cjs/utils/mobileUpload/stateMachine/states/processing.js +2 -3
- package/dist/cjs/utils/mobileUpload/stateMachine/states/processingFailed.js +2 -3
- package/dist/cjs/utils/mobileUpload/stateMachine/states/uploading.js +2 -3
- package/dist/cjs/utils/overrideMediaTypeIfUnknown.js +2 -3
- package/dist/cjs/utils/polling/errors.js +1 -2
- package/dist/cjs/utils/polling/index.js +3 -5
- package/dist/cjs/utils/request/errors.js +1 -2
- package/dist/cjs/utils/request/helpers.js +4 -5
- package/dist/cjs/utils/safeUnsubscribe.js +2 -3
- package/dist/cjs/utils/setTimeoutPromise.js +3 -5
- package/dist/cjs/utils/url.js +5 -9
- package/dist/cjs/utils/with-media-client-hoc.js +9 -19
- package/dist/es2019/client/file-fetcher/index.js +101 -28
- package/dist/es2019/client/media-client.js +15 -7
- package/dist/es2019/client/media-store/index.js +1 -2
- package/dist/es2019/client/mobile-upload.js +33 -2
- package/dist/es2019/index.js +1 -0
- package/dist/es2019/utils/hashing/simpleHasher.js +2 -1
- package/dist/es2019/utils/request/helpers.js +1 -1
- package/dist/es2019/utils/with-media-client-hoc.js +8 -16
- package/dist/esm/client/file-fetcher/index.js +107 -31
- package/dist/esm/client/media-client.js +19 -7
- package/dist/esm/client/media-store/index.js +1 -2
- package/dist/esm/client/mobile-upload.js +38 -2
- package/dist/esm/index.js +1 -0
- package/dist/esm/uploader/index.js +2 -2
- package/dist/esm/utils/hashing/simpleHasher.js +2 -1
- package/dist/esm/utils/request/helpers.js +1 -1
- package/dist/esm/utils/with-media-client-hoc.js +8 -16
- package/dist/types/client/events.d.ts +1 -1
- package/dist/types/client/file-fetcher/index.d.ts +10 -6
- package/dist/types/client/media-client.d.ts +10 -5
- package/dist/types/client/media-store/index.d.ts +3 -4
- package/dist/types/client/mobile-upload.d.ts +6 -2
- package/dist/types/file-streams-cache.d.ts +1 -1
- package/dist/types/index.d.ts +4 -2
- package/dist/types/models/artifacts.d.ts +1 -14
- package/dist/types/models/file-state.d.ts +4 -73
- package/dist/types/models/media.d.ts +1 -1
- package/dist/types/models/mobile-upload.d.ts +1 -1
- package/dist/types/utils/createMediaSubject.d.ts +1 -1
- package/dist/types/utils/mediaSubscribable/fromObservable.d.ts +1 -1
- package/dist/types/utils/mediaSubscribable/toPromise.d.ts +1 -1
- package/dist/types/utils/mediaSubscribable/types.d.ts +1 -1
- package/dist/types/utils/mobileUpload/helpers.d.ts +1 -1
- package/dist/types/utils/mobileUpload/stateMachine/index.d.ts +1 -1
- package/dist/types/utils/mobileUpload/stateMachine/types.d.ts +1 -1
- package/dist/types/utils/overrideMediaTypeIfUnknown.d.ts +1 -1
- package/dist/types/utils/shouldFetchRemoteFileStates.d.ts +1 -1
- package/dist/types/utils/with-media-client-hoc.d.ts +2 -3
- package/package.json +5 -3
- package/report.api.md +51 -168
- package/dist/types-ts4.5/client/__mocks__/collection-fetcher.d.ts +0 -8
- package/dist/types-ts4.5/client/__mocks__/file-fetcher.d.ts +0 -10
- package/dist/types-ts4.5/client/__mocks__/media-client.d.ts +0 -11
- package/dist/types-ts4.5/client/events.d.ts +0 -14
- package/dist/types-ts4.5/client/file-fetcher/error.d.ts +0 -29
- package/dist/types-ts4.5/client/file-fetcher/index.d.ts +0 -58
- package/dist/types-ts4.5/client/media-client.d.ts +0 -27
- package/dist/types-ts4.5/client/media-store/error.d.ts +0 -16
- package/dist/types-ts4.5/client/media-store/index.d.ts +0 -169
- package/dist/types-ts4.5/client/media-store/resolveAuth.d.ts +0 -4
- package/dist/types-ts4.5/client/mobile-upload.d.ts +0 -11
- package/dist/types-ts4.5/client/stargate-client.d.ts +0 -15
- package/dist/types-ts4.5/constants.d.ts +0 -6
- package/dist/types-ts4.5/file-streams-cache.d.ts +0 -15
- package/dist/types-ts4.5/globalMediaEventEmitter.d.ts +0 -6
- package/dist/types-ts4.5/identifier.d.ts +0 -15
- package/dist/types-ts4.5/index.d.ts +0 -87
- package/dist/types-ts4.5/models/artifacts.d.ts +0 -15
- package/dist/types-ts4.5/models/auth-headers.d.ts +0 -11
- package/dist/types-ts4.5/models/auth-query-parameters.d.ts +0 -11
- package/dist/types-ts4.5/models/errors/helpers.d.ts +0 -6
- package/dist/types-ts4.5/models/errors/index.d.ts +0 -11
- package/dist/types-ts4.5/models/errors/types.d.ts +0 -15
- package/dist/types-ts4.5/models/file-state.d.ts +0 -94
- package/dist/types-ts4.5/models/item.d.ts +0 -25
- package/dist/types-ts4.5/models/media.d.ts +0 -48
- package/dist/types-ts4.5/models/mobile-upload.d.ts +0 -28
- package/dist/types-ts4.5/test-helpers/_numbers.d.ts +0 -1
- package/dist/types-ts4.5/test-helpers/authProvider.d.ts +0 -6
- package/dist/types-ts4.5/test-helpers/collectionNames.d.ts +0 -5
- package/dist/types-ts4.5/test-helpers/exampleMediaItems.d.ts +0 -53
- package/dist/types-ts4.5/test-helpers/fakeMediaClient.d.ts +0 -4
- package/dist/types-ts4.5/test-helpers/index.d.ts +0 -7
- package/dist/types-ts4.5/test-helpers/mediaClientProvider.d.ts +0 -23
- package/dist/types-ts4.5/test-helpers/mediaPickerAuthProvider.d.ts +0 -5
- package/dist/types-ts4.5/upload-controller.d.ts +0 -7
- package/dist/types-ts4.5/uploader/calculateChunkSize.d.ts +0 -11
- package/dist/types-ts4.5/uploader/error.d.ts +0 -29
- package/dist/types-ts4.5/uploader/index.d.ts +0 -23
- package/dist/types-ts4.5/utils/checkWebpSupport.d.ts +0 -1
- package/dist/types-ts4.5/utils/convertBase64ToBlob.d.ts +0 -1
- package/dist/types-ts4.5/utils/createFileDataLoader.d.ts +0 -30
- package/dist/types-ts4.5/utils/createMediaSubject.d.ts +0 -3
- package/dist/types-ts4.5/utils/detectEmptyFile.d.ts +0 -16
- package/dist/types-ts4.5/utils/getDimensionsFromBlob.d.ts +0 -6
- package/dist/types-ts4.5/utils/getImageDimensionsFromBlob.d.ts +0 -5
- package/dist/types-ts4.5/utils/getMediaTypeFromUploadableFile.d.ts +0 -3
- package/dist/types-ts4.5/utils/getVideoDimensionsFromBlob.d.ts +0 -5
- package/dist/types-ts4.5/utils/hashing/hasher.d.ts +0 -3
- package/dist/types-ts4.5/utils/hashing/hasherCreator.d.ts +0 -3
- package/dist/types-ts4.5/utils/hashing/simpleHasher.d.ts +0 -4
- package/dist/types-ts4.5/utils/hashing/workerHasher.d.ts +0 -16
- package/dist/types-ts4.5/utils/imageResizeModeToFileImageMode.d.ts +0 -3
- package/dist/types-ts4.5/utils/isImageRemote.d.ts +0 -1
- package/dist/types-ts4.5/utils/mediaSubscribable/fromObservable.d.ts +0 -5
- package/dist/types-ts4.5/utils/mediaSubscribable/index.d.ts +0 -3
- package/dist/types-ts4.5/utils/mediaSubscribable/toPromise.d.ts +0 -10
- package/dist/types-ts4.5/utils/mediaSubscribable/types.d.ts +0 -17
- package/dist/types-ts4.5/utils/mobileUpload/error.d.ts +0 -29
- package/dist/types-ts4.5/utils/mobileUpload/helpers.d.ts +0 -8
- package/dist/types-ts4.5/utils/mobileUpload/index.d.ts +0 -5
- package/dist/types-ts4.5/utils/mobileUpload/servicesCache.d.ts +0 -4
- package/dist/types-ts4.5/utils/mobileUpload/stateMachine/index.d.ts +0 -7
- package/dist/types-ts4.5/utils/mobileUpload/stateMachine/states/error.d.ts +0 -3
- package/dist/types-ts4.5/utils/mobileUpload/stateMachine/states/processed.d.ts +0 -3
- package/dist/types-ts4.5/utils/mobileUpload/stateMachine/states/processing.d.ts +0 -3
- package/dist/types-ts4.5/utils/mobileUpload/stateMachine/states/processingFailed.d.ts +0 -3
- package/dist/types-ts4.5/utils/mobileUpload/stateMachine/states/uploading.d.ts +0 -3
- package/dist/types-ts4.5/utils/mobileUpload/stateMachine/types.d.ts +0 -69
- package/dist/types-ts4.5/utils/overrideMediaTypeIfUnknown.d.ts +0 -5
- package/dist/types-ts4.5/utils/polling/errors.d.ts +0 -12
- package/dist/types-ts4.5/utils/polling/index.d.ts +0 -33
- package/dist/types-ts4.5/utils/polling/types.d.ts +0 -7
- package/dist/types-ts4.5/utils/request/errors.d.ts +0 -20
- package/dist/types-ts4.5/utils/request/helpers.d.ts +0 -46
- package/dist/types-ts4.5/utils/request/index.d.ts +0 -5
- package/dist/types-ts4.5/utils/request/types.d.ts +0 -46
- package/dist/types-ts4.5/utils/safeUnsubscribe.d.ts +0 -2
- package/dist/types-ts4.5/utils/setTimeoutPromise.d.ts +0 -2
- package/dist/types-ts4.5/utils/shouldFetchRemoteFileStates.d.ts +0 -14
- package/dist/types-ts4.5/utils/url.d.ts +0 -17
- package/dist/types-ts4.5/utils/with-media-client-hoc.d.ts +0 -16
- package/tmp/api-report-tmp.d.ts +0 -1334
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,29 @@
|
|
|
1
1
|
# @atlaskit/media-client
|
|
2
2
|
|
|
3
|
+
## 24.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#41371](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41371) [`a5766038a35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a5766038a35) - Fix TS errors in AFM
|
|
8
|
+
|
|
9
|
+
## 24.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- [#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
|
+
Introducing 'media-client-react' to provide hooks for seamless media-client integration with React.
|
|
15
|
+
Introducing 'MediaCardV2' with a feature flag to replace rxjs based fileState subscription with 'useFileState' hook.
|
|
16
|
+
Removed unused feature flags APIs from 'media-client' and its helper functions from 'media-common'.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 23.2.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
|
6
25
|
|
|
7
|
-
- [`ede6ee7aaab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ede6ee7aaab) - Updated tests, examples and moving towards /test-helper export in packages to prevent circular dependancies
|
|
26
|
+
- [#39255](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39255) [`ede6ee7aaab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ede6ee7aaab) - Updated tests, examples and moving towards /test-helper export in packages to prevent circular dependancies
|
|
8
27
|
|
|
9
28
|
### Patch Changes
|
|
10
29
|
|
|
@@ -20,25 +39,25 @@
|
|
|
20
39
|
|
|
21
40
|
### Patch Changes
|
|
22
41
|
|
|
23
|
-
- [`b9355830504`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9355830504) - Opt out of peer dependency enforcement
|
|
42
|
+
- [#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
|
|
24
43
|
|
|
25
44
|
## 23.1.1
|
|
26
45
|
|
|
27
46
|
### Patch Changes
|
|
28
47
|
|
|
29
|
-
- [`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add postinstall check to enforce internal peer dependencies
|
|
48
|
+
- [#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
|
|
30
49
|
|
|
31
50
|
## 23.1.0
|
|
32
51
|
|
|
33
52
|
### Minor Changes
|
|
34
53
|
|
|
35
|
-
- [`195c473dd37`](https://bitbucket.org/atlassian/atlassian-frontend/commits/195c473dd37) - Exposed helper to create Request errors externally
|
|
54
|
+
- [#35121](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35121) [`195c473dd37`](https://bitbucket.org/atlassian/atlassian-frontend/commits/195c473dd37) - Exposed helper to create Request errors externally
|
|
36
55
|
|
|
37
56
|
## 23.0.2
|
|
38
57
|
|
|
39
58
|
### Patch Changes
|
|
40
59
|
|
|
41
|
-
- [`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.
|
|
60
|
+
- [#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.
|
|
42
61
|
|
|
43
62
|
## 23.0.1
|
|
44
63
|
|
|
@@ -50,7 +69,7 @@
|
|
|
50
69
|
|
|
51
70
|
### Major Changes
|
|
52
71
|
|
|
53
|
-
- [`eedf90fbaa9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eedf90fbaa9) - 'isPreviewableType' no longer requires feature flags to be passed as an argument since we are removing the new card experience feature flag
|
|
72
|
+
- [#34887](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34887) [`eedf90fbaa9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eedf90fbaa9) - 'isPreviewableType' no longer requires feature flags to be passed as an argument since we are removing the new card experience feature flag
|
|
54
73
|
|
|
55
74
|
### Patch Changes
|
|
56
75
|
|
|
@@ -60,19 +79,19 @@
|
|
|
60
79
|
|
|
61
80
|
### Patch Changes
|
|
62
81
|
|
|
63
|
-
- [`a7281dbb78f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a7281dbb78f) - Moved onFileRejection prop to Upload params and added file-size-limit API changes to /upload endpoint
|
|
82
|
+
- [#34814](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34814) [`a7281dbb78f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a7281dbb78f) - Moved onFileRejection prop to Upload params and added file-size-limit API changes to /upload endpoint
|
|
64
83
|
|
|
65
84
|
## 22.0.4
|
|
66
85
|
|
|
67
86
|
### Patch Changes
|
|
68
87
|
|
|
69
|
-
- [`4d139e63f12`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4d139e63f12) - [ux] As part of migrating from the classic card experience to the new card experience, media of type 'doc' displays a preview by default
|
|
88
|
+
- [#34644](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34644) [`4d139e63f12`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4d139e63f12) - [ux] As part of migrating from the classic card experience to the new card experience, media of type 'doc' displays a preview by default
|
|
70
89
|
|
|
71
90
|
## 22.0.3
|
|
72
91
|
|
|
73
92
|
### Patch Changes
|
|
74
93
|
|
|
75
|
-
- [`b098a252236`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b098a252236) - Add emptyFileName as a reason to FileFetcherError.
|
|
94
|
+
- [#34192](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34192) [`b098a252236`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b098a252236) - Add emptyFileName as a reason to FileFetcherError.
|
|
76
95
|
- [`e725edbb0d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e725edbb0d9) - Media Client now fetch remote file state regardless of file browser support (removed feature flag, permanent change)
|
|
77
96
|
- [`9425ed86eb7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9425ed86eb7) - File size limit is now verified in the backend, no longer the frontend
|
|
78
97
|
- Updated dependencies
|
|
@@ -81,21 +100,21 @@
|
|
|
81
100
|
|
|
82
101
|
### Patch Changes
|
|
83
102
|
|
|
84
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
103
|
+
- [#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
104
|
- Updated dependencies
|
|
86
105
|
|
|
87
106
|
## 22.0.1
|
|
88
107
|
|
|
89
108
|
### Patch Changes
|
|
90
109
|
|
|
91
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
110
|
+
- [#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
111
|
- Updated dependencies
|
|
93
112
|
|
|
94
113
|
## 22.0.0
|
|
95
114
|
|
|
96
115
|
### Minor Changes
|
|
97
116
|
|
|
98
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
117
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
99
118
|
|
|
100
119
|
### Patch Changes
|
|
101
120
|
|
|
@@ -105,13 +124,13 @@
|
|
|
105
124
|
|
|
106
125
|
### Minor Changes
|
|
107
126
|
|
|
108
|
-
- [`1df7534fc12`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1df7534fc12) - [ux] Introduce file size limits when uploading
|
|
127
|
+
- [#33004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33004) [`1df7534fc12`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1df7534fc12) - [ux] Introduce file size limits when uploading
|
|
109
128
|
|
|
110
129
|
## 21.0.0
|
|
111
130
|
|
|
112
131
|
### Major Changes
|
|
113
132
|
|
|
114
|
-
- [`0f99ed9df35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0f99ed9df35) - BREAKING CHANGES:
|
|
133
|
+
- [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424) [`0f99ed9df35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0f99ed9df35) - BREAKING CHANGES:
|
|
115
134
|
|
|
116
135
|
- Media Store class no longer exposes getCollectionItems method
|
|
117
136
|
|
|
@@ -146,13 +165,13 @@
|
|
|
146
165
|
|
|
147
166
|
### Minor Changes
|
|
148
167
|
|
|
149
|
-
- [`0e2981295ce`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0e2981295ce) - Media Client accepts a feature flags object in the upload method overriding internal flags
|
|
168
|
+
- [#31582](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31582) [`0e2981295ce`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0e2981295ce) - Media Client accepts a feature flags object in the upload method overriding internal flags
|
|
150
169
|
|
|
151
170
|
## 20.1.0
|
|
152
171
|
|
|
153
172
|
### Minor Changes
|
|
154
173
|
|
|
155
|
-
- [`894e1910ed4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/894e1910ed4) - Deprecation notice: Media Client and Media Store classes will no longer expose collection items listing methods. They will be removed in the next release
|
|
174
|
+
- [#30248](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30248) [`894e1910ed4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/894e1910ed4) - Deprecation notice: Media Client and Media Store classes will no longer expose collection items listing methods. They will be removed in the next release
|
|
156
175
|
|
|
157
176
|
### Patch Changes
|
|
158
177
|
|
|
@@ -162,26 +181,26 @@
|
|
|
162
181
|
|
|
163
182
|
### Patch Changes
|
|
164
183
|
|
|
165
|
-
- [`4fdaa8a4645`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4fdaa8a4645) - update default chunk size from 4mb to 5mb
|
|
184
|
+
- [#31194](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31194) [`4fdaa8a4645`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4fdaa8a4645) - update default chunk size from 4mb to 5mb
|
|
166
185
|
|
|
167
186
|
## 20.0.2
|
|
168
187
|
|
|
169
188
|
### Patch Changes
|
|
170
189
|
|
|
171
|
-
- [`cdd0445e5a5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cdd0445e5a5) - Fixed instantiation logic when feature flags object is passed
|
|
190
|
+
- [#30177](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30177) [`cdd0445e5a5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cdd0445e5a5) - Fixed instantiation logic when feature flags object is passed
|
|
172
191
|
|
|
173
192
|
## 20.0.1
|
|
174
193
|
|
|
175
194
|
### Patch Changes
|
|
176
195
|
|
|
177
|
-
- [`90f6203e794`](https://bitbucket.org/atlassian/atlassian-frontend/commits/90f6203e794) - Media Client now fetch remote file state regardless of file browser support (behind feature flag)
|
|
196
|
+
- [#28932](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28932) [`90f6203e794`](https://bitbucket.org/atlassian/atlassian-frontend/commits/90f6203e794) - Media Client now fetch remote file state regardless of file browser support (behind feature flag)
|
|
178
197
|
- Updated dependencies
|
|
179
198
|
|
|
180
199
|
## 20.0.0
|
|
181
200
|
|
|
182
201
|
### Major Changes
|
|
183
202
|
|
|
184
|
-
- [`2e902a363ad`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e902a363ad) - MEX-1649 Update uploadChunk and probeChunk functions in mediastore with mandatory params - uploadId and partNumber
|
|
203
|
+
- [#28374](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28374) [`2e902a363ad`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e902a363ad) - MEX-1649 Update uploadChunk and probeChunk functions in mediastore with mandatory params - uploadId and partNumber
|
|
185
204
|
|
|
186
205
|
### Patch Changes
|
|
187
206
|
|
|
@@ -191,13 +210,13 @@
|
|
|
191
210
|
|
|
192
211
|
### Patch Changes
|
|
193
212
|
|
|
194
|
-
- [`6455cf006b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6455cf006b3) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving performance.
|
|
213
|
+
- [#28324](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28324) [`6455cf006b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6455cf006b3) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving performance.
|
|
195
214
|
|
|
196
215
|
## 19.1.0
|
|
197
216
|
|
|
198
217
|
### Minor Changes
|
|
199
218
|
|
|
200
|
-
- [`81573c1dfa7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/81573c1dfa7) - Items call creates a batched metadata trace Id
|
|
219
|
+
- [#28090](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28090) [`81573c1dfa7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/81573c1dfa7) - Items call creates a batched metadata trace Id
|
|
201
220
|
- [`0bccac57db6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0bccac57db6) - remove mediaUploadApiV2 Feature flag
|
|
202
221
|
|
|
203
222
|
### Patch Changes
|
|
@@ -210,7 +229,7 @@
|
|
|
210
229
|
|
|
211
230
|
### Major Changes
|
|
212
231
|
|
|
213
|
-
- [`5eb06146a4e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5eb06146a4e) - Added support traceContext to be supplied to all request endpoint points.
|
|
232
|
+
- [#26712](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26712) [`5eb06146a4e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5eb06146a4e) - Added support traceContext to be supplied to all request endpoint points.
|
|
214
233
|
|
|
215
234
|
### Patch Changes
|
|
216
235
|
|
|
@@ -220,7 +239,7 @@
|
|
|
220
239
|
|
|
221
240
|
### Minor Changes
|
|
222
241
|
|
|
223
|
-
- [`2c402e87213`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2c402e87213) - [Experimental] Add traceId in media card get image request.
|
|
242
|
+
- [#25860](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/25860) [`2c402e87213`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2c402e87213) - [Experimental] Add traceId in media card get image request.
|
|
224
243
|
|
|
225
244
|
### Patch Changes
|
|
226
245
|
|
|
@@ -231,7 +250,7 @@
|
|
|
231
250
|
|
|
232
251
|
### Major Changes
|
|
233
252
|
|
|
234
|
-
- [`37ff149ab87`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37ff149ab87) - Remove exposing StreamsCache class
|
|
253
|
+
- [#24710](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24710) [`37ff149ab87`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37ff149ab87) - Remove exposing StreamsCache class
|
|
235
254
|
|
|
236
255
|
### Patch Changes
|
|
237
256
|
|
|
@@ -242,27 +261,27 @@
|
|
|
242
261
|
|
|
243
262
|
### Patch Changes
|
|
244
263
|
|
|
245
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
264
|
+
- [#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`
|
|
246
265
|
- Updated dependencies
|
|
247
266
|
|
|
248
267
|
## 17.1.2
|
|
249
268
|
|
|
250
269
|
### Patch Changes
|
|
251
270
|
|
|
252
|
-
- [`45b6d35ea96`](https://bitbucket.org/atlassian/atlassian-frontend/commits/45b6d35ea96) - [ME-1327] Added new upload methods to editor mobile bridge to support previews and progress for media cards.
|
|
271
|
+
- [#24004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24004) [`45b6d35ea96`](https://bitbucket.org/atlassian/atlassian-frontend/commits/45b6d35ea96) - [ME-1327] Added new upload methods to editor mobile bridge to support previews and progress for media cards.
|
|
253
272
|
|
|
254
273
|
## 17.1.1
|
|
255
274
|
|
|
256
275
|
### Patch Changes
|
|
257
276
|
|
|
258
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
277
|
+
- [#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`.
|
|
259
278
|
- Updated dependencies
|
|
260
279
|
|
|
261
280
|
## 17.1.0
|
|
262
281
|
|
|
263
282
|
### Minor Changes
|
|
264
283
|
|
|
265
|
-
- [`c07a8176ddf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c07a8176ddf) - New BlobType SlicedBlob that includes partnumber introduced and used for uploading chunks
|
|
284
|
+
- [#22642](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22642) [`c07a8176ddf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c07a8176ddf) - New BlobType SlicedBlob that includes partnumber introduced and used for uploading chunks
|
|
266
285
|
- [`a2e6bd37426`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a2e6bd37426) - add uploadId to prob function to support new media upload api
|
|
267
286
|
|
|
268
287
|
### Patch Changes
|
|
@@ -275,7 +294,7 @@
|
|
|
275
294
|
|
|
276
295
|
### Major Changes
|
|
277
296
|
|
|
278
|
-
- [`a718050239e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a718050239e) - Media Client Uploader enforces a hard limit of 2Tb files.
|
|
297
|
+
- [#22029](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22029) [`a718050239e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a718050239e) - Media Client Uploader enforces a hard limit of 2Tb files.
|
|
279
298
|
|
|
280
299
|
To mitigate these changes:
|
|
281
300
|
|
|
@@ -296,7 +315,7 @@
|
|
|
296
315
|
|
|
297
316
|
### Patch Changes
|
|
298
317
|
|
|
299
|
-
- [`12d0af77572`](https://bitbucket.org/atlassian/atlassian-frontend/commits/12d0af77572) - Store media environment in session storage
|
|
318
|
+
- [#21570](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21570) [`12d0af77572`](https://bitbucket.org/atlassian/atlassian-frontend/commits/12d0af77572) - Store media environment in session storage
|
|
300
319
|
- [`325e210e59f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/325e210e59f) - Revert changes made in MEX-1638-revert-update-media-store-class-with-new-endpoint-parameters
|
|
301
320
|
- [`b73f20ed703`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b73f20ed703) - EDM-3073: Fix collab for media inline and copy-paste regression
|
|
302
321
|
- [`c2ede50a80a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c2ede50a80a) - Add media region and environment returned from media API response into failed analytic events.
|
|
@@ -306,7 +325,7 @@
|
|
|
306
325
|
|
|
307
326
|
### Major Changes
|
|
308
327
|
|
|
309
|
-
- [`b6d47de3fd9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b6d47de3fd9) - [MEX-1417] remove access to media file streams cache
|
|
328
|
+
- [#20721](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20721) [`b6d47de3fd9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b6d47de3fd9) - [MEX-1417] remove access to media file streams cache
|
|
310
329
|
|
|
311
330
|
### Minor Changes
|
|
312
331
|
|
|
@@ -323,7 +342,7 @@
|
|
|
323
342
|
|
|
324
343
|
### Patch Changes
|
|
325
344
|
|
|
326
|
-
- [`a424e62b264`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a424e62b264) - Changes to support Node 16 Typescript definitions from `@types/node`.
|
|
345
|
+
- [#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`.
|
|
327
346
|
|
|
328
347
|
## 15.1.0
|
|
329
348
|
|
|
@@ -340,7 +359,7 @@
|
|
|
340
359
|
|
|
341
360
|
### Major Changes
|
|
342
361
|
|
|
343
|
-
- [`fdc41ee7a0b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fdc41ee7a0b) - Stop exposing observableToPromise from media client API.
|
|
362
|
+
- [#19618](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19618) [`fdc41ee7a0b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fdc41ee7a0b) - Stop exposing observableToPromise from media client API.
|
|
344
363
|
mediaSubscribableToPromise is used internally.
|
|
345
364
|
- [`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).
|
|
346
365
|
It exposes subscribe method that is called with MediaObserver as an argument and returns MediaSubscription.
|
|
@@ -430,7 +449,7 @@
|
|
|
430
449
|
|
|
431
450
|
### Minor Changes
|
|
432
451
|
|
|
433
|
-
- [`7d2943a6038`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d2943a6038) - Created MediaSubscribable wrapper around RxJs Observable
|
|
452
|
+
- [#19019](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19019) [`7d2943a6038`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d2943a6038) - Created MediaSubscribable wrapper around RxJs Observable
|
|
434
453
|
|
|
435
454
|
### Patch Changes
|
|
436
455
|
|
|
@@ -440,13 +459,13 @@
|
|
|
440
459
|
|
|
441
460
|
### Patch Changes
|
|
442
461
|
|
|
443
|
-
- [`59a14d364b1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/59a14d364b1) - Bump query-string@^6.14.1
|
|
462
|
+
- [#17344](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/17344) [`59a14d364b1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/59a14d364b1) - Bump query-string@^6.14.1
|
|
444
463
|
|
|
445
464
|
## 14.3.1
|
|
446
465
|
|
|
447
466
|
### Patch Changes
|
|
448
467
|
|
|
449
|
-
- [`586b7869085`](https://bitbucket.org/atlassian/atlassian-frontend/commits/586b7869085) - Pass initialAuth to MediaStore
|
|
468
|
+
- [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`586b7869085`](https://bitbucket.org/atlassian/atlassian-frontend/commits/586b7869085) - Pass initialAuth to MediaStore
|
|
450
469
|
- [`dc1f9d42903`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dc1f9d42903) - Updated typeguard
|
|
451
470
|
- [`f461edcfd05`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f461edcfd05) - Update CardLoader to use react-loadable
|
|
452
471
|
Add SSR feature prop to be passed in renderer and media card
|
|
@@ -456,7 +475,7 @@
|
|
|
456
475
|
|
|
457
476
|
### Minor Changes
|
|
458
477
|
|
|
459
|
-
- [`b51fc0a9062`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b51fc0a9062) - New helper to convert ImageResizeMode into FileImageMode
|
|
478
|
+
- [#14777](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14777) [`b51fc0a9062`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b51fc0a9062) - New helper to convert ImageResizeMode into FileImageMode
|
|
460
479
|
- [`269ee940b87`](https://bitbucket.org/atlassian/atlassian-frontend/commits/269ee940b87) - redesign error UI on new media card experience
|
|
461
480
|
|
|
462
481
|
### Patch Changes
|
|
@@ -468,7 +487,7 @@
|
|
|
468
487
|
|
|
469
488
|
### Minor Changes
|
|
470
489
|
|
|
471
|
-
- [`381deea2aab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/381deea2aab) - MEX-710 Added mobileUpload API to media-client
|
|
490
|
+
- [#13864](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13864) [`381deea2aab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/381deea2aab) - MEX-710 Added mobileUpload API to media-client
|
|
472
491
|
|
|
473
492
|
### Patch Changes
|
|
474
493
|
|
|
@@ -479,13 +498,13 @@
|
|
|
479
498
|
|
|
480
499
|
### Patch Changes
|
|
481
500
|
|
|
482
|
-
- [`e6689b61735`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e6689b61735) - Added a new authProviderTimeout parameter within resolveAuth to control the timeout duration.
|
|
501
|
+
- [#13973](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13973) [`e6689b61735`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e6689b61735) - Added a new authProviderTimeout parameter within resolveAuth to control the timeout duration.
|
|
483
502
|
|
|
484
503
|
## 14.1.0
|
|
485
504
|
|
|
486
505
|
### Minor Changes
|
|
487
506
|
|
|
488
|
-
- [`17776bda189`](https://bitbucket.org/atlassian/atlassian-frontend/commits/17776bda189) - - Improve Smart Links providers and batch requests mechanism
|
|
507
|
+
- [#13302](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13302) [`17776bda189`](https://bitbucket.org/atlassian/atlassian-frontend/commits/17776bda189) - - Improve Smart Links providers and batch requests mechanism
|
|
489
508
|
- Remove non-functional props that impact reloading
|
|
490
509
|
|
|
491
510
|
### Patch Changes
|
|
@@ -496,7 +515,7 @@
|
|
|
496
515
|
|
|
497
516
|
### Minor Changes
|
|
498
517
|
|
|
499
|
-
- [`531dcf9459d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/531dcf9459d) - Media Client allows sync operations by using initial Auth credentials when the consumer needs it _inmediatelly_ after instantiation (e.g., Server Side Rendering).
|
|
518
|
+
- [#12837](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12837) [`531dcf9459d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/531dcf9459d) - Media Client allows sync operations by using initial Auth credentials when the consumer needs it _inmediatelly_ after instantiation (e.g., Server Side Rendering).
|
|
500
519
|
MediaClientConfig requires the "initialAuth" attribute to provide an Auth object that does not come from an async Auth provider.
|
|
501
520
|
Example:
|
|
502
521
|
|
|
@@ -517,19 +536,19 @@
|
|
|
517
536
|
|
|
518
537
|
### Patch Changes
|
|
519
538
|
|
|
520
|
-
- [`f50b26327dd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f50b26327dd) - Remove Expired check from Media Client
|
|
539
|
+
- [#13080](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13080) [`f50b26327dd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f50b26327dd) - Remove Expired check from Media Client
|
|
521
540
|
|
|
522
541
|
## 13.3.0
|
|
523
542
|
|
|
524
543
|
### Minor Changes
|
|
525
544
|
|
|
526
|
-
- [`10932f6ae07`](https://bitbucket.org/atlassian/atlassian-frontend/commits/10932f6ae07) - SPFE-561: Remove the URLSearchParams polyfill
|
|
545
|
+
- [#12328](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12328) [`10932f6ae07`](https://bitbucket.org/atlassian/atlassian-frontend/commits/10932f6ae07) - SPFE-561: Remove the URLSearchParams polyfill
|
|
527
546
|
|
|
528
547
|
## 13.2.1
|
|
529
548
|
|
|
530
549
|
### Patch Changes
|
|
531
550
|
|
|
532
|
-
- [`8cba1694b5e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cba1694b5e) - Remove pollingMaxFailuresExceeded error from implementation and feature flags
|
|
551
|
+
- [#11649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11649) [`8cba1694b5e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cba1694b5e) - Remove pollingMaxFailuresExceeded error from implementation and feature flags
|
|
533
552
|
- [`50cc05dde71`](https://bitbucket.org/atlassian/atlassian-frontend/commits/50cc05dde71) - Mark the following members as deprecated:
|
|
534
553
|
|
|
535
554
|
- getMediaTypeFromMimeType
|
|
@@ -549,7 +568,7 @@
|
|
|
549
568
|
|
|
550
569
|
### Minor Changes
|
|
551
570
|
|
|
552
|
-
- [`65c76061dc0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/65c76061dc0) - Verifiy token expiration before performing requests or providing URLs
|
|
571
|
+
- [#11113](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11113) [`65c76061dc0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/65c76061dc0) - Verifiy token expiration before performing requests or providing URLs
|
|
553
572
|
|
|
554
573
|
### Patch Changes
|
|
555
574
|
|
|
@@ -561,31 +580,31 @@
|
|
|
561
580
|
|
|
562
581
|
### Patch Changes
|
|
563
582
|
|
|
564
|
-
- [`8eefb856389`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8eefb856389) - Added emptyItems failReason to media-client
|
|
583
|
+
- [#10569](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10569) [`8eefb856389`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8eefb856389) - Added emptyItems failReason to media-client
|
|
565
584
|
|
|
566
585
|
## 13.1.1
|
|
567
586
|
|
|
568
587
|
### Patch Changes
|
|
569
588
|
|
|
570
|
-
- [`277ed9667b2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/277ed9667b2) - Fixed media bundle names following atlassian-frontend linting rules
|
|
589
|
+
- [#10230](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10230) [`277ed9667b2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/277ed9667b2) - Fixed media bundle names following atlassian-frontend linting rules
|
|
571
590
|
|
|
572
591
|
## 13.1.0
|
|
573
592
|
|
|
574
593
|
### Minor Changes
|
|
575
594
|
|
|
576
|
-
- [`abc38bc9990`](https://bitbucket.org/atlassian/atlassian-frontend/commits/abc38bc9990) - Added request metadata to failed frontend SLIs
|
|
595
|
+
- [#9510](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9510) [`abc38bc9990`](https://bitbucket.org/atlassian/atlassian-frontend/commits/abc38bc9990) - Added request metadata to failed frontend SLIs
|
|
577
596
|
|
|
578
597
|
## 13.0.1
|
|
579
598
|
|
|
580
599
|
### Patch Changes
|
|
581
600
|
|
|
582
|
-
- [`d6b31d9713d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6b31d9713d) - Fixed uncaught exceptions when uploading MP4/HEVC
|
|
601
|
+
- [#9083](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9083) [`d6b31d9713d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6b31d9713d) - Fixed uncaught exceptions when uploading MP4/HEVC
|
|
583
602
|
|
|
584
603
|
## 13.0.0
|
|
585
604
|
|
|
586
605
|
### Major Changes
|
|
587
606
|
|
|
588
|
-
- [`1a37545d238`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1a37545d238) - File Fetcher is now emitting errors from upload/copyFile operations from ReplaySubject instead of creating an ErrorFileState
|
|
607
|
+
- [#8644](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8644) [`1a37545d238`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1a37545d238) - File Fetcher is now emitting errors from upload/copyFile operations from ReplaySubject instead of creating an ErrorFileState
|
|
589
608
|
|
|
590
609
|
### Minor Changes
|
|
591
610
|
|
|
@@ -605,14 +624,14 @@
|
|
|
605
624
|
|
|
606
625
|
### Patch Changes
|
|
607
626
|
|
|
608
|
-
- [`dfc79cafa6c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dfc79cafa6c) - Fixed failures on /upload/createWithFiles not aborting upload
|
|
627
|
+
- [#8178](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8178) [`dfc79cafa6c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dfc79cafa6c) - Fixed failures on /upload/createWithFiles not aborting upload
|
|
609
628
|
- Updated dependencies
|
|
610
629
|
|
|
611
630
|
## 12.4.0
|
|
612
631
|
|
|
613
632
|
### Minor Changes
|
|
614
633
|
|
|
615
|
-
- [`b37190888c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b37190888c) - ensure polling errors trigger more graceful UX
|
|
634
|
+
- [#7170](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/7170) [`b37190888c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b37190888c) - ensure polling errors trigger more graceful UX
|
|
616
635
|
- [`a26afbd493`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a26afbd493) - Added getMediaClientFailReason() helper
|
|
617
636
|
|
|
618
637
|
### Patch Changes
|
|
@@ -626,13 +645,13 @@
|
|
|
626
645
|
|
|
627
646
|
### Minor Changes
|
|
628
647
|
|
|
629
|
-
- [`56693486a3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56693486a3) - [ux] Rate Limited UI for the MediaViewer. Also moved a MediaCard function into MediaClient so that that functionality can be used across multiple packages
|
|
648
|
+
- [#6930](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6930) [`56693486a3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56693486a3) - [ux] Rate Limited UI for the MediaViewer. Also moved a MediaCard function into MediaClient so that that functionality can be used across multiple packages
|
|
630
649
|
|
|
631
650
|
## 12.2.0
|
|
632
651
|
|
|
633
652
|
### Minor Changes
|
|
634
653
|
|
|
635
|
-
- [`7736346d88`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7736346d88) - Added strongly typed errors to Media Client
|
|
654
|
+
- [#6571](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6571) [`7736346d88`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7736346d88) - Added strongly typed errors to Media Client
|
|
636
655
|
|
|
637
656
|
### Patch Changes
|
|
638
657
|
|
|
@@ -643,20 +662,20 @@
|
|
|
643
662
|
|
|
644
663
|
### Patch Changes
|
|
645
664
|
|
|
646
|
-
- [`956cf2d5ee`](https://bitbucket.org/atlassian/atlassian-frontend/commits/956cf2d5ee) - HOT-93465 docs(changeset): ensure maximum media poll interval ms is 3.3min not 33min
|
|
665
|
+
- [#6521](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6521) [`956cf2d5ee`](https://bitbucket.org/atlassian/atlassian-frontend/commits/956cf2d5ee) - HOT-93465 docs(changeset): ensure maximum media poll interval ms is 3.3min not 33min
|
|
647
666
|
|
|
648
667
|
## 12.1.1
|
|
649
668
|
|
|
650
669
|
### Patch Changes
|
|
651
670
|
|
|
652
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
671
|
+
- [#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
|
|
653
672
|
- Updated dependencies
|
|
654
673
|
|
|
655
674
|
## 12.1.0
|
|
656
675
|
|
|
657
676
|
### Minor Changes
|
|
658
677
|
|
|
659
|
-
- [`3c263cb2df`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3c263cb2df) - Added error handling when calling media client getCurrentState()
|
|
678
|
+
- [#6228](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6228) [`3c263cb2df`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3c263cb2df) - Added error handling when calling media client getCurrentState()
|
|
660
679
|
|
|
661
680
|
### Patch Changes
|
|
662
681
|
|
|
@@ -672,7 +691,7 @@
|
|
|
672
691
|
|
|
673
692
|
### Minor Changes
|
|
674
693
|
|
|
675
|
-
- [`3f0dd38c9d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f0dd38c9d) - BMPT-626 Fixed fetching remote preview for non-supported documents in classic Media Card experience
|
|
694
|
+
- [#5516](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5516) [`3f0dd38c9d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f0dd38c9d) - BMPT-626 Fixed fetching remote preview for non-supported documents in classic Media Card experience
|
|
676
695
|
|
|
677
696
|
### Patch Changes
|
|
678
697
|
|
|
@@ -683,7 +702,7 @@
|
|
|
683
702
|
|
|
684
703
|
### Patch Changes
|
|
685
704
|
|
|
686
|
-
- [`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.
|
|
705
|
+
- [#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.
|
|
687
706
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
688
707
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
689
708
|
- Updated dependencies
|
|
@@ -692,7 +711,7 @@
|
|
|
692
711
|
|
|
693
712
|
### Minor Changes
|
|
694
713
|
|
|
695
|
-
- [`7d831363d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d831363d9) - Migrated to declarative entry points
|
|
714
|
+
- [#4749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4749) [`7d831363d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d831363d9) - Migrated to declarative entry points
|
|
696
715
|
|
|
697
716
|
### Patch Changes
|
|
698
717
|
|
|
@@ -702,26 +721,26 @@
|
|
|
702
721
|
|
|
703
722
|
### Minor Changes
|
|
704
723
|
|
|
705
|
-
- [`8687140735`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8687140735) - [ux] Fix for file processing blocking pages and tickets from saving.
|
|
724
|
+
- [#4769](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4769) [`8687140735`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8687140735) - [ux] Fix for file processing blocking pages and tickets from saving.
|
|
706
725
|
|
|
707
726
|
## 10.0.0
|
|
708
727
|
|
|
709
728
|
### Major Changes
|
|
710
729
|
|
|
711
|
-
- [`2ddfbcd92b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2ddfbcd92b) - Removed SVG local previews due to XSS vulnerability
|
|
730
|
+
- [#4455](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4455) [`2ddfbcd92b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2ddfbcd92b) - Removed SVG local previews due to XSS vulnerability
|
|
712
731
|
|
|
713
732
|
## 9.0.3
|
|
714
733
|
|
|
715
734
|
### Patch Changes
|
|
716
735
|
|
|
717
|
-
- [`1434c4e094`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1434c4e094) - Fixed cloud files rendering when publishing page in CF
|
|
736
|
+
- [#4424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4424) [`1434c4e094`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1434c4e094) - Fixed cloud files rendering when publishing page in CF
|
|
718
737
|
- [`21b9d3d336`](https://bitbucket.org/atlassian/atlassian-frontend/commits/21b9d3d336) - Fixed RAR/non-ZIP files not recognised as archives
|
|
719
738
|
|
|
720
739
|
## 9.0.2
|
|
721
740
|
|
|
722
741
|
### Patch Changes
|
|
723
742
|
|
|
724
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
743
|
+
- [#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
|
|
725
744
|
|
|
726
745
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
727
746
|
to prevent duplicates of tslib being bundled.
|
|
@@ -730,13 +749,13 @@
|
|
|
730
749
|
|
|
731
750
|
### Patch Changes
|
|
732
751
|
|
|
733
|
-
- [`76165ad82f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76165ad82f) - Bump required because of conflicts on wadmal release
|
|
752
|
+
- [#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
|
|
734
753
|
|
|
735
754
|
## 9.0.0
|
|
736
755
|
|
|
737
756
|
### Major Changes
|
|
738
757
|
|
|
739
|
-
- [`caf46c7c45`](https://bitbucket.org/atlassian/atlassian-frontend/commits/caf46c7c45) - Improved remote preview functionality for media-card redesign.
|
|
758
|
+
- [#3823](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3823) [`caf46c7c45`](https://bitbucket.org/atlassian/atlassian-frontend/commits/caf46c7c45) - Improved remote preview functionality for media-card redesign.
|
|
740
759
|
Breaking change: renamed type of argument "SourceFile" to "CopySourceFile" in the method "copyFile" of media-client.
|
|
741
760
|
|
|
742
761
|
### Minor Changes
|
|
@@ -757,14 +776,14 @@
|
|
|
757
776
|
|
|
758
777
|
### Patch Changes
|
|
759
778
|
|
|
760
|
-
- [`b73317b63c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b73317b63c) - Increased polling interval for processing files
|
|
779
|
+
- [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428) [`b73317b63c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b73317b63c) - Increased polling interval for processing files
|
|
761
780
|
- [`4543f920b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4543f920b0) - Disabled previews for redesign; fixed not initially showing a doc icon when uploading a document
|
|
762
781
|
|
|
763
782
|
## 8.0.0
|
|
764
783
|
|
|
765
784
|
### Major Changes
|
|
766
785
|
|
|
767
|
-
- [`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.
|
|
786
|
+
- [#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.
|
|
768
787
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
769
788
|
|
|
770
789
|
### Patch Changes
|
|
@@ -775,7 +794,7 @@
|
|
|
775
794
|
|
|
776
795
|
### Major Changes
|
|
777
796
|
|
|
778
|
-
- [`6658272d94`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6658272d94) - Remove Promise<string> from FileIdentifier to just be string
|
|
797
|
+
- [#2763](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2763) [`6658272d94`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6658272d94) - Remove Promise<string> from FileIdentifier to just be string
|
|
779
798
|
|
|
780
799
|
## Before
|
|
781
800
|
|
|
@@ -797,25 +816,25 @@
|
|
|
797
816
|
|
|
798
817
|
### Patch Changes
|
|
799
818
|
|
|
800
|
-
- [`81c6a2fcb2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/81c6a2fcb2) - Fixed potential exception when synchronously accessing uninitialized RxJS subscription.
|
|
819
|
+
- [#2979](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2979) [`81c6a2fcb2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/81c6a2fcb2) - Fixed potential exception when synchronously accessing uninitialized RxJS subscription.
|
|
801
820
|
|
|
802
821
|
## 6.2.2
|
|
803
822
|
|
|
804
823
|
### Patch Changes
|
|
805
824
|
|
|
806
|
-
- [`328902687e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/328902687e) - Remove stack traces from media analytic events
|
|
825
|
+
- [#2443](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2443) [`328902687e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/328902687e) - Remove stack traces from media analytic events
|
|
807
826
|
|
|
808
827
|
## 6.2.1
|
|
809
828
|
|
|
810
829
|
### Patch Changes
|
|
811
830
|
|
|
812
|
-
- [`64e7f3f077`](https://bitbucket.org/atlassian/atlassian-frontend/commits/64e7f3f077) - Bump dependency query-string to ^5.1.0
|
|
831
|
+
- [#2959](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2959) [`64e7f3f077`](https://bitbucket.org/atlassian/atlassian-frontend/commits/64e7f3f077) - Bump dependency query-string to ^5.1.0
|
|
813
832
|
|
|
814
833
|
## 6.2.0
|
|
815
834
|
|
|
816
835
|
### Minor Changes
|
|
817
836
|
|
|
818
|
-
- [`a2ffde361d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a2ffde361d) - MPT-131: fetch remote preview for files not supported by the browser
|
|
837
|
+
- [#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
|
|
819
838
|
- [`928dd60d5d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/928dd60d5d) - Add optional createdAt property to FileState interface
|
|
820
839
|
- [`c3b799c7eb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c3b799c7eb) - add optional createdAt field
|
|
821
840
|
|
|
@@ -14,7 +14,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
14
14
|
var _errors = require("../../models/errors");
|
|
15
15
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
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
|
-
var FileFetcherError = /*#__PURE__*/function (_BaseMediaClientError) {
|
|
17
|
+
var FileFetcherError = exports.FileFetcherError = /*#__PURE__*/function (_BaseMediaClientError) {
|
|
18
18
|
(0, _inherits2.default)(FileFetcherError, _BaseMediaClientError);
|
|
19
19
|
var _super = _createSuper(FileFetcherError);
|
|
20
20
|
function FileFetcherError(reason, id, metadata) {
|
|
@@ -45,7 +45,6 @@ var FileFetcherError = /*#__PURE__*/function (_BaseMediaClientError) {
|
|
|
45
45
|
}]);
|
|
46
46
|
return FileFetcherError;
|
|
47
47
|
}(_errors.BaseMediaClientError);
|
|
48
|
-
exports.FileFetcherError = FileFetcherError;
|
|
49
48
|
function isFileFetcherError(err) {
|
|
50
49
|
return err instanceof FileFetcherError;
|
|
51
50
|
}
|