@atlaskit/media-client 26.3.0 → 27.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 +1052 -683
- package/dist/cjs/client/file-fetcher/index.js +15 -5
- package/dist/es2019/client/file-fetcher/index.js +9 -2
- package/dist/esm/client/file-fetcher/index.js +15 -5
- package/dist/types/client/__mocks__/media-client.d.ts +2 -2
- package/dist/types/client/events.d.ts +1 -1
- package/dist/types/client/file-fetcher/index.d.ts +11 -11
- package/dist/types/client/media-client.d.ts +7 -7
- package/dist/types/client/media-store/MediaStore.d.ts +4 -4
- package/dist/types/client/media-store/resolveAuth.d.ts +1 -1
- package/dist/types/client/media-store/types.d.ts +6 -6
- package/dist/types/client/mobile-upload.d.ts +3 -3
- package/dist/types/file-streams-cache.d.ts +3 -3
- package/dist/types/globalMediaEventEmitter.d.ts +1 -1
- package/dist/types/models/artifacts.d.ts +1 -1
- package/dist/types/models/auth-headers.d.ts +1 -1
- package/dist/types/models/auth-query-parameters.d.ts +1 -1
- package/dist/types/models/errors/helpers.d.ts +1 -1
- package/dist/types/models/errors/index.d.ts +1 -1
- package/dist/types/models/file-state.d.ts +4 -4
- package/dist/types/models/item.d.ts +1 -1
- package/dist/types/models/media.d.ts +2 -2
- package/dist/types/models/mobile-upload.d.ts +1 -1
- package/dist/types/uploader/index.d.ts +3 -3
- package/dist/types/utils/createFileDataLoader.d.ts +2 -2
- package/dist/types/utils/createMediaSubject.d.ts +1 -1
- package/dist/types/utils/detectEmptyFile.d.ts +1 -1
- package/dist/types/utils/getDimensionsFromBlob.d.ts +1 -1
- package/dist/types/utils/getMediaTypeFromUploadableFile.d.ts +2 -2
- package/dist/types/utils/hashing/hasherCreator.d.ts +1 -1
- package/dist/types/utils/hashing/sha256SimpleHasher.d.ts +1 -1
- package/dist/types/utils/hashing/simpleHasher.d.ts +1 -1
- package/dist/types/utils/hashing/workerHasher.d.ts +1 -1
- package/dist/types/utils/imageResizeModeToFileImageMode.d.ts +1 -1
- package/dist/types/utils/mediaSubscribable/fromObservable.d.ts +3 -3
- package/dist/types/utils/mediaSubscribable/toPromise.d.ts +2 -2
- package/dist/types/utils/mediaSubscribable/types.d.ts +1 -1
- package/dist/types/utils/mobileUpload/helpers.d.ts +5 -5
- package/dist/types/utils/mobileUpload/servicesCache.d.ts +2 -2
- package/dist/types/utils/mobileUpload/stateMachine/index.d.ts +5 -5
- package/dist/types/utils/mobileUpload/stateMachine/states/error.d.ts +2 -2
- package/dist/types/utils/mobileUpload/stateMachine/states/processed.d.ts +2 -2
- package/dist/types/utils/mobileUpload/stateMachine/states/processing.d.ts +2 -2
- package/dist/types/utils/mobileUpload/stateMachine/states/processingFailed.d.ts +2 -2
- package/dist/types/utils/mobileUpload/stateMachine/states/uploading.d.ts +2 -2
- package/dist/types/utils/mobileUpload/stateMachine/types.d.ts +2 -2
- package/dist/types/utils/overrideMediaTypeIfUnknown.d.ts +2 -2
- package/dist/types/utils/polling/errors.d.ts +1 -1
- package/dist/types/utils/polling/index.d.ts +1 -1
- package/dist/types/utils/request/errors.d.ts +1 -1
- package/dist/types/utils/request/helpers.d.ts +3 -3
- package/dist/types/utils/request/index.d.ts +1 -1
- package/dist/types/utils/request/types.d.ts +1 -1
- package/dist/types/utils/shouldFetchRemoteFileStates.d.ts +2 -2
- package/dist/types-ts4.5/client/__mocks__/media-client.d.ts +2 -2
- package/dist/types-ts4.5/client/events.d.ts +1 -1
- package/dist/types-ts4.5/client/file-fetcher/index.d.ts +11 -11
- package/dist/types-ts4.5/client/media-client.d.ts +7 -7
- package/dist/types-ts4.5/client/media-store/MediaStore.d.ts +4 -4
- package/dist/types-ts4.5/client/media-store/resolveAuth.d.ts +1 -1
- package/dist/types-ts4.5/client/media-store/types.d.ts +6 -6
- package/dist/types-ts4.5/client/mobile-upload.d.ts +3 -3
- package/dist/types-ts4.5/file-streams-cache.d.ts +3 -3
- package/dist/types-ts4.5/globalMediaEventEmitter.d.ts +1 -1
- package/dist/types-ts4.5/models/artifacts.d.ts +1 -1
- package/dist/types-ts4.5/models/auth-headers.d.ts +1 -1
- package/dist/types-ts4.5/models/auth-query-parameters.d.ts +1 -1
- package/dist/types-ts4.5/models/errors/helpers.d.ts +1 -1
- package/dist/types-ts4.5/models/errors/index.d.ts +1 -1
- package/dist/types-ts4.5/models/file-state.d.ts +4 -4
- package/dist/types-ts4.5/models/item.d.ts +1 -1
- package/dist/types-ts4.5/models/media.d.ts +2 -2
- package/dist/types-ts4.5/models/mobile-upload.d.ts +1 -1
- package/dist/types-ts4.5/uploader/index.d.ts +3 -3
- package/dist/types-ts4.5/utils/createFileDataLoader.d.ts +2 -2
- package/dist/types-ts4.5/utils/createMediaSubject.d.ts +1 -1
- package/dist/types-ts4.5/utils/detectEmptyFile.d.ts +1 -1
- package/dist/types-ts4.5/utils/getDimensionsFromBlob.d.ts +1 -1
- package/dist/types-ts4.5/utils/getMediaTypeFromUploadableFile.d.ts +2 -2
- package/dist/types-ts4.5/utils/hashing/hasherCreator.d.ts +1 -1
- package/dist/types-ts4.5/utils/hashing/sha256SimpleHasher.d.ts +1 -1
- package/dist/types-ts4.5/utils/hashing/simpleHasher.d.ts +1 -1
- package/dist/types-ts4.5/utils/hashing/workerHasher.d.ts +1 -1
- package/dist/types-ts4.5/utils/imageResizeModeToFileImageMode.d.ts +1 -1
- package/dist/types-ts4.5/utils/mediaSubscribable/fromObservable.d.ts +3 -3
- package/dist/types-ts4.5/utils/mediaSubscribable/toPromise.d.ts +2 -2
- package/dist/types-ts4.5/utils/mediaSubscribable/types.d.ts +1 -1
- package/dist/types-ts4.5/utils/mobileUpload/helpers.d.ts +5 -5
- package/dist/types-ts4.5/utils/mobileUpload/servicesCache.d.ts +2 -2
- package/dist/types-ts4.5/utils/mobileUpload/stateMachine/index.d.ts +5 -5
- package/dist/types-ts4.5/utils/mobileUpload/stateMachine/states/error.d.ts +2 -2
- package/dist/types-ts4.5/utils/mobileUpload/stateMachine/states/processed.d.ts +2 -2
- package/dist/types-ts4.5/utils/mobileUpload/stateMachine/states/processing.d.ts +2 -2
- package/dist/types-ts4.5/utils/mobileUpload/stateMachine/states/processingFailed.d.ts +2 -2
- package/dist/types-ts4.5/utils/mobileUpload/stateMachine/states/uploading.d.ts +2 -2
- package/dist/types-ts4.5/utils/mobileUpload/stateMachine/types.d.ts +2 -2
- package/dist/types-ts4.5/utils/overrideMediaTypeIfUnknown.d.ts +2 -2
- package/dist/types-ts4.5/utils/polling/errors.d.ts +1 -1
- package/dist/types-ts4.5/utils/polling/index.d.ts +1 -1
- package/dist/types-ts4.5/utils/request/errors.d.ts +1 -1
- package/dist/types-ts4.5/utils/request/helpers.d.ts +3 -3
- package/dist/types-ts4.5/utils/request/index.d.ts +1 -1
- package/dist/types-ts4.5/utils/request/types.d.ts +1 -1
- package/dist/types-ts4.5/utils/shouldFetchRemoteFileStates.d.ts +2 -2
- package/example-helpers/styles.ts +74 -75
- package/example-helpers/stylesWrapper.tsx +2 -2
- package/package.json +11 -4
- package/dist/cjs/test-helpers/MockedMediaApi/MockedMediaApi.js +0 -455
- package/dist/cjs/test-helpers/MockedMediaApi/helpers.js +0 -184
- package/dist/cjs/test-helpers/MockedMediaApi/index.js +0 -55
- package/dist/cjs/test-helpers/_numbers.js +0 -9
- package/dist/cjs/test-helpers/authProvider.js +0 -70
- package/dist/cjs/test-helpers/collectionNames.js +0 -11
- package/dist/cjs/test-helpers/exampleMediaItems.js +0 -274
- package/dist/cjs/test-helpers/fakeMediaClient.js +0 -75
- package/dist/cjs/test-helpers/index.js +0 -422
- package/dist/cjs/test-helpers/mediaClientProvider.js +0 -54
- package/dist/cjs/test-helpers/mediaPickerAuthProvider.js +0 -92
- package/dist/es2019/test-helpers/MockedMediaApi/MockedMediaApi.js +0 -166
- package/dist/es2019/test-helpers/MockedMediaApi/helpers.js +0 -167
- package/dist/es2019/test-helpers/MockedMediaApi/index.js +0 -2
- package/dist/es2019/test-helpers/_numbers.js +0 -3
- package/dist/es2019/test-helpers/authProvider.js +0 -34
- package/dist/es2019/test-helpers/collectionNames.js +0 -5
- package/dist/es2019/test-helpers/exampleMediaItems.js +0 -268
- package/dist/es2019/test-helpers/fakeMediaClient.js +0 -63
- package/dist/es2019/test-helpers/index.js +0 -8
- package/dist/es2019/test-helpers/mediaClientProvider.js +0 -42
- package/dist/es2019/test-helpers/mediaPickerAuthProvider.js +0 -56
- package/dist/esm/test-helpers/MockedMediaApi/MockedMediaApi.js +0 -448
- package/dist/esm/test-helpers/MockedMediaApi/helpers.js +0 -177
- package/dist/esm/test-helpers/MockedMediaApi/index.js +0 -2
- package/dist/esm/test-helpers/_numbers.js +0 -3
- package/dist/esm/test-helpers/authProvider.js +0 -63
- package/dist/esm/test-helpers/collectionNames.js +0 -5
- package/dist/esm/test-helpers/exampleMediaItems.js +0 -268
- package/dist/esm/test-helpers/fakeMediaClient.js +0 -69
- package/dist/esm/test-helpers/index.js +0 -8
- package/dist/esm/test-helpers/mediaClientProvider.js +0 -48
- package/dist/esm/test-helpers/mediaPickerAuthProvider.js +0 -85
- package/dist/types/test-helpers/MockedMediaApi/MockedMediaApi.d.ts +0 -16
- package/dist/types/test-helpers/MockedMediaApi/helpers.d.ts +0 -23
- package/dist/types/test-helpers/MockedMediaApi/index.d.ts +0 -3
- package/dist/types/test-helpers/_numbers.d.ts +0 -1
- package/dist/types/test-helpers/authProvider.d.ts +0 -6
- package/dist/types/test-helpers/collectionNames.d.ts +0 -5
- package/dist/types/test-helpers/exampleMediaItems.d.ts +0 -53
- package/dist/types/test-helpers/fakeMediaClient.d.ts +0 -4
- package/dist/types/test-helpers/index.d.ts +0 -9
- package/dist/types/test-helpers/mediaClientProvider.d.ts +0 -23
- package/dist/types/test-helpers/mediaPickerAuthProvider.d.ts +0 -5
- package/dist/types-ts4.5/test-helpers/MockedMediaApi/MockedMediaApi.d.ts +0 -16
- package/dist/types-ts4.5/test-helpers/MockedMediaApi/helpers.d.ts +0 -23
- package/dist/types-ts4.5/test-helpers/MockedMediaApi/index.d.ts +0 -3
- 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 -9
- 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/CHANGELOG.md
CHANGED
|
@@ -1,1223 +1,1570 @@
|
|
|
1
1
|
# @atlaskit/media-client
|
|
2
2
|
|
|
3
|
+
## 27.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#103775](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103775)
|
|
8
|
+
[`ce306a2407b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ce306a2407b0) -
|
|
9
|
+
Fix updateExternal function never resolves
|
|
10
|
+
|
|
11
|
+
## 27.0.0
|
|
12
|
+
|
|
13
|
+
### Major Changes
|
|
14
|
+
|
|
15
|
+
- [#97923](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97923)
|
|
16
|
+
[`81075dd79e7f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/81075dd79e7f) -
|
|
17
|
+
BREAKING CHANGE: Attribute `preview` (used for local previews during file upload) is now set
|
|
18
|
+
unnconditionally in the file state. No longer when it's supported by the broswer. If your
|
|
19
|
+
application relies on this attribute, check the file mimetype to ensure that you are using it
|
|
20
|
+
properly.
|
|
21
|
+
|
|
3
22
|
## 26.3.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
|
6
25
|
|
|
7
|
-
-
|
|
26
|
+
- [#87494](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87494)
|
|
27
|
+
[`050f1e462e17`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/050f1e462e17) -
|
|
28
|
+
Added Get Binary endpoint to Media API class
|
|
8
29
|
|
|
9
30
|
## 26.2.3
|
|
10
31
|
|
|
11
32
|
### Patch Changes
|
|
12
33
|
|
|
13
|
-
-
|
|
34
|
+
- [#86762](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86762)
|
|
35
|
+
[`f3d1602fa574`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f3d1602fa574) -
|
|
36
|
+
CXP-2655 Implemented a change to an endpoint for Mocked Media API
|
|
14
37
|
|
|
15
38
|
## 26.2.2
|
|
16
39
|
|
|
17
40
|
### Patch Changes
|
|
18
41
|
|
|
19
|
-
-
|
|
42
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
43
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
44
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
20
45
|
|
|
21
46
|
## 26.2.1
|
|
22
47
|
|
|
23
48
|
### Patch Changes
|
|
24
49
|
|
|
25
|
-
-
|
|
50
|
+
- [#77668](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77668)
|
|
51
|
+
[`c8a08df51a9f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c8a08df51a9f) -
|
|
52
|
+
Add password protected pdf support for media viewer
|
|
26
53
|
|
|
27
54
|
## 26.2.0
|
|
28
55
|
|
|
29
56
|
### Minor Changes
|
|
30
57
|
|
|
31
|
-
-
|
|
58
|
+
- [#70414](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70414)
|
|
59
|
+
[`2125e318f970`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2125e318f970) -
|
|
60
|
+
Adding the option to use SHA256 for file uploads to ensure Media is FedRAMP compliant. If not
|
|
61
|
+
specified the system will default to SHA1 to preserve backwards compatibiilty.
|
|
32
62
|
|
|
33
63
|
### Patch Changes
|
|
34
64
|
|
|
35
|
-
-
|
|
65
|
+
- Updated dependencies
|
|
36
66
|
|
|
37
67
|
## 26.1.2
|
|
38
68
|
|
|
39
69
|
### Patch Changes
|
|
40
70
|
|
|
41
|
-
-
|
|
71
|
+
- [#71336](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71336)
|
|
72
|
+
[`9abd05a91e25`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9abd05a91e25) -
|
|
73
|
+
Fixed image load performance issue where setting max age in getFileImageURL params to undefined
|
|
74
|
+
would override the default
|
|
42
75
|
|
|
43
76
|
## 26.1.1
|
|
44
77
|
|
|
45
78
|
### Patch Changes
|
|
46
79
|
|
|
47
|
-
-
|
|
80
|
+
- [#65817](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65817)
|
|
81
|
+
[`3be0ec786219`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3be0ec786219) -
|
|
82
|
+
Updated mocked Media Api mothod
|
|
48
83
|
|
|
49
84
|
## 26.1.0
|
|
50
85
|
|
|
51
86
|
### Minor Changes
|
|
52
87
|
|
|
53
|
-
-
|
|
54
|
-
|
|
88
|
+
- [#60253](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60253)
|
|
89
|
+
[`2d535695b891`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2d535695b891) -
|
|
90
|
+
Exposed MediaApi type
|
|
91
|
+
- [#60253](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60253)
|
|
92
|
+
[`662b6d273ec0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/662b6d273ec0) -
|
|
93
|
+
Breaking change: Updated interface for Test Helper "createMockedMediaApi". This is not a
|
|
94
|
+
production-code breaking change
|
|
55
95
|
|
|
56
96
|
## 26.0.0
|
|
57
97
|
|
|
58
98
|
### Major Changes
|
|
59
99
|
|
|
60
|
-
-
|
|
61
|
-
|
|
62
|
-
|
|
100
|
+
- [#60352](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60352)
|
|
101
|
+
[`ff9488b450dd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ff9488b450dd) -
|
|
102
|
+
WHAT: Media has removed the ability to probe for existing file chunks.
|
|
103
|
+
WHY: This is to support the work to deprecate SHA1 usage and make the Media Platform comply with
|
|
104
|
+
FedRAMP moderate controls. HOW: Remove any calls you have directly to probing, instead upload
|
|
105
|
+
all files directly. If you upload files via MediaPicker no changes are required.
|
|
63
106
|
|
|
64
107
|
### Patch Changes
|
|
65
108
|
|
|
66
|
-
-
|
|
109
|
+
- Updated dependencies
|
|
67
110
|
|
|
68
111
|
## 25.1.0
|
|
69
112
|
|
|
70
113
|
### Minor Changes
|
|
71
114
|
|
|
72
|
-
-
|
|
115
|
+
- [#43817](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43817)
|
|
116
|
+
[`048aca70499`](https://bitbucket.org/atlassian/atlassian-frontend/commits/048aca70499) - new
|
|
117
|
+
Mocked Media Api utility for tests
|
|
73
118
|
|
|
74
119
|
## 25.0.3
|
|
75
120
|
|
|
76
121
|
### Patch Changes
|
|
77
122
|
|
|
78
|
-
-
|
|
123
|
+
- [#43076](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43076)
|
|
124
|
+
[`43317a91142`](https://bitbucket.org/atlassian/atlassian-frontend/commits/43317a91142) - Added
|
|
125
|
+
new internal interface MediaApi
|
|
79
126
|
|
|
80
127
|
## 25.0.2
|
|
81
128
|
|
|
82
129
|
### Patch Changes
|
|
83
130
|
|
|
84
|
-
-
|
|
131
|
+
- Updated dependencies
|
|
85
132
|
|
|
86
133
|
## 25.0.1
|
|
87
134
|
|
|
88
135
|
### Patch Changes
|
|
89
136
|
|
|
90
|
-
-
|
|
137
|
+
- Updated dependencies
|
|
91
138
|
|
|
92
139
|
## 25.0.0
|
|
93
140
|
|
|
94
141
|
### Major Changes
|
|
95
142
|
|
|
96
|
-
-
|
|
143
|
+
- [#41659](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41659)
|
|
144
|
+
[`a0c97a19dba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a0c97a19dba) - Remove
|
|
145
|
+
unused utils and depreciated exports in mediaClient.
|
|
97
146
|
|
|
98
147
|
## 24.0.3
|
|
99
148
|
|
|
100
149
|
### Patch Changes
|
|
101
150
|
|
|
102
|
-
-
|
|
151
|
+
- [#41932](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41932)
|
|
152
|
+
[`756dd90f1a3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/756dd90f1a3) - 1.
|
|
153
|
+
Deprecate withMediaClient HOC in media-client and migrated it to media-client-react 2. clean up
|
|
154
|
+
deprecated imports from media-client
|
|
103
155
|
|
|
104
156
|
## 24.0.2
|
|
105
157
|
|
|
106
158
|
### Patch Changes
|
|
107
159
|
|
|
108
|
-
-
|
|
160
|
+
- [#41501](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41501)
|
|
161
|
+
[`b3cb749dc67`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b3cb749dc67) - Fix TS
|
|
162
|
+
errors in AFM
|
|
109
163
|
|
|
110
164
|
## 24.0.1
|
|
111
165
|
|
|
112
166
|
### Patch Changes
|
|
113
167
|
|
|
114
|
-
-
|
|
168
|
+
- [#41371](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41371)
|
|
169
|
+
[`a5766038a35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a5766038a35) - Fix TS
|
|
170
|
+
errors in AFM
|
|
115
171
|
|
|
116
172
|
## 24.0.0
|
|
117
173
|
|
|
118
174
|
### Major Changes
|
|
119
175
|
|
|
120
|
-
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
176
|
+
- [#38532](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38532)
|
|
177
|
+
[`7b6a2c6671b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7b6a2c6671b) -
|
|
178
|
+
Introducing 'media-state' for handling media internal file state. Introducing
|
|
179
|
+
'media-client-react' to provide hooks for seamless media-client integration with React.
|
|
180
|
+
Introducing 'MediaCardV2' with a feature flag to replace rxjs based fileState subscription with
|
|
181
|
+
'useFileState' hook. Removed unused feature flags APIs from 'media-client' and its helper
|
|
182
|
+
functions from 'media-common'.
|
|
124
183
|
|
|
125
184
|
### Patch Changes
|
|
126
185
|
|
|
127
|
-
-
|
|
186
|
+
- Updated dependencies
|
|
128
187
|
|
|
129
188
|
## 23.2.0
|
|
130
189
|
|
|
131
190
|
### Minor Changes
|
|
132
191
|
|
|
133
|
-
-
|
|
192
|
+
- [#39255](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39255)
|
|
193
|
+
[`ede6ee7aaab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ede6ee7aaab) -
|
|
194
|
+
Updated tests, examples and moving towards /test-helper export in packages to prevent circular
|
|
195
|
+
dependancies
|
|
134
196
|
|
|
135
197
|
### Patch Changes
|
|
136
198
|
|
|
137
|
-
-
|
|
199
|
+
- Updated dependencies
|
|
138
200
|
|
|
139
201
|
## 23.1.3
|
|
140
202
|
|
|
141
203
|
### Patch Changes
|
|
142
204
|
|
|
143
|
-
-
|
|
205
|
+
- Updated dependencies
|
|
144
206
|
|
|
145
207
|
## 23.1.2
|
|
146
208
|
|
|
147
209
|
### Patch Changes
|
|
148
210
|
|
|
149
|
-
-
|
|
211
|
+
- [#37340](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37340)
|
|
212
|
+
[`b9355830504`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9355830504) - Opt
|
|
213
|
+
out of peer dependency enforcement
|
|
150
214
|
|
|
151
215
|
## 23.1.1
|
|
152
216
|
|
|
153
217
|
### Patch Changes
|
|
154
218
|
|
|
155
|
-
-
|
|
219
|
+
- [#36757](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36757)
|
|
220
|
+
[`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add
|
|
221
|
+
postinstall check to enforce internal peer dependencies
|
|
156
222
|
|
|
157
223
|
## 23.1.0
|
|
158
224
|
|
|
159
225
|
### Minor Changes
|
|
160
226
|
|
|
161
|
-
-
|
|
227
|
+
- [#35121](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35121)
|
|
228
|
+
[`195c473dd37`](https://bitbucket.org/atlassian/atlassian-frontend/commits/195c473dd37) -
|
|
229
|
+
Exposed helper to create Request errors externally
|
|
162
230
|
|
|
163
231
|
## 23.0.2
|
|
164
232
|
|
|
165
233
|
### Patch Changes
|
|
166
234
|
|
|
167
|
-
-
|
|
235
|
+
- [#33728](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33728)
|
|
236
|
+
[`48e4a655534`](https://bitbucket.org/atlassian/atlassian-frontend/commits/48e4a655534) -
|
|
237
|
+
Internal change to enforce token usage for spacing properties. There is no expected visual or
|
|
238
|
+
behaviour change.
|
|
168
239
|
|
|
169
240
|
## 23.0.1
|
|
170
241
|
|
|
171
242
|
### Patch Changes
|
|
172
243
|
|
|
173
|
-
-
|
|
244
|
+
- Updated dependencies
|
|
174
245
|
|
|
175
246
|
## 23.0.0
|
|
176
247
|
|
|
177
248
|
### Major Changes
|
|
178
249
|
|
|
179
|
-
-
|
|
250
|
+
- [#34887](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34887)
|
|
251
|
+
[`eedf90fbaa9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eedf90fbaa9) -
|
|
252
|
+
'isPreviewableType' no longer requires feature flags to be passed as an argument since we are
|
|
253
|
+
removing the new card experience feature flag
|
|
180
254
|
|
|
181
255
|
### Patch Changes
|
|
182
256
|
|
|
183
|
-
-
|
|
257
|
+
- Updated dependencies
|
|
184
258
|
|
|
185
259
|
## 22.0.5
|
|
186
260
|
|
|
187
261
|
### Patch Changes
|
|
188
262
|
|
|
189
|
-
-
|
|
263
|
+
- [#34814](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34814)
|
|
264
|
+
[`a7281dbb78f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a7281dbb78f) - Moved
|
|
265
|
+
onFileRejection prop to Upload params and added file-size-limit API changes to /upload endpoint
|
|
190
266
|
|
|
191
267
|
## 22.0.4
|
|
192
268
|
|
|
193
269
|
### Patch Changes
|
|
194
270
|
|
|
195
|
-
-
|
|
271
|
+
- [#34644](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34644)
|
|
272
|
+
[`4d139e63f12`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4d139e63f12) - [ux]
|
|
273
|
+
As part of migrating from the classic card experience to the new card experience, media of type
|
|
274
|
+
'doc' displays a preview by default
|
|
196
275
|
|
|
197
276
|
## 22.0.3
|
|
198
277
|
|
|
199
278
|
### Patch Changes
|
|
200
279
|
|
|
201
|
-
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
-
|
|
280
|
+
- [#34192](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34192)
|
|
281
|
+
[`b098a252236`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b098a252236) - Add
|
|
282
|
+
emptyFileName as a reason to FileFetcherError.
|
|
283
|
+
- [`e725edbb0d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e725edbb0d9) - Media
|
|
284
|
+
Client now fetch remote file state regardless of file browser support (removed feature flag,
|
|
285
|
+
permanent change)
|
|
286
|
+
- [`9425ed86eb7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9425ed86eb7) - File
|
|
287
|
+
size limit is now verified in the backend, no longer the frontend
|
|
288
|
+
- Updated dependencies
|
|
205
289
|
|
|
206
290
|
## 22.0.2
|
|
207
291
|
|
|
208
292
|
### Patch Changes
|
|
209
293
|
|
|
210
|
-
-
|
|
211
|
-
-
|
|
294
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
295
|
+
[`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
|
|
296
|
+
legacy types are published for TS 4.5-4.8
|
|
297
|
+
- Updated dependencies
|
|
212
298
|
|
|
213
299
|
## 22.0.1
|
|
214
300
|
|
|
215
301
|
### Patch Changes
|
|
216
302
|
|
|
217
|
-
-
|
|
218
|
-
-
|
|
303
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
304
|
+
[`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) -
|
|
305
|
+
Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
306
|
+
- Updated dependencies
|
|
219
307
|
|
|
220
308
|
## 22.0.0
|
|
221
309
|
|
|
222
310
|
### Minor Changes
|
|
223
311
|
|
|
224
|
-
-
|
|
312
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
313
|
+
[`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
|
|
314
|
+
minor dependency bump
|
|
225
315
|
|
|
226
316
|
### Patch Changes
|
|
227
317
|
|
|
228
|
-
-
|
|
318
|
+
- Updated dependencies
|
|
229
319
|
|
|
230
320
|
## 21.1.0
|
|
231
321
|
|
|
232
322
|
### Minor Changes
|
|
233
323
|
|
|
234
|
-
-
|
|
324
|
+
- [#33004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33004)
|
|
325
|
+
[`1df7534fc12`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1df7534fc12) - [ux]
|
|
326
|
+
Introduce file size limits when uploading
|
|
235
327
|
|
|
236
328
|
## 21.0.0
|
|
237
329
|
|
|
238
330
|
### Major Changes
|
|
239
331
|
|
|
240
|
-
-
|
|
332
|
+
- [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424)
|
|
333
|
+
[`0f99ed9df35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0f99ed9df35) -
|
|
334
|
+
BREAKING CHANGES:
|
|
241
335
|
|
|
242
|
-
|
|
336
|
+
- Media Store class no longer exposes getCollectionItems method
|
|
243
337
|
|
|
244
|
-
|
|
338
|
+
- `MediaClient.collection.removeFile` method is now accessible through the replacement method
|
|
339
|
+
`MediaClient.removeFileFromCollection`
|
|
245
340
|
|
|
246
|
-
|
|
341
|
+
- `MediaClient.collection` has been fully removed. The following classes, types and utils have
|
|
342
|
+
been also removed:
|
|
247
343
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
344
|
+
- MediaCollection
|
|
345
|
+
- MediaCollectionItem
|
|
346
|
+
- MediaCollectionItems
|
|
347
|
+
- MediaCollectionItemDetails
|
|
348
|
+
- MediaCollectionItemMinimalDetails
|
|
349
|
+
- isMediaCollectionItemFullDetails
|
|
254
350
|
|
|
255
|
-
|
|
351
|
+
- Renamed type `MediaCollectionItemFullDetails` to `MediaItemDetails`
|
|
256
352
|
|
|
257
|
-
|
|
353
|
+
- `MediaSubscribable` is no longer be a generic type. It now only works with `FileState`.
|
|
258
354
|
|
|
259
|
-
|
|
355
|
+
- Removed `MediaSubscribableItem` type
|
|
260
356
|
|
|
261
357
|
### Patch Changes
|
|
262
358
|
|
|
263
|
-
-
|
|
359
|
+
- Updated dependencies
|
|
264
360
|
|
|
265
361
|
## 20.2.1
|
|
266
362
|
|
|
267
363
|
### Patch Changes
|
|
268
364
|
|
|
269
|
-
-
|
|
365
|
+
- Updated dependencies
|
|
270
366
|
|
|
271
367
|
## 20.2.0
|
|
272
368
|
|
|
273
369
|
### Minor Changes
|
|
274
370
|
|
|
275
|
-
-
|
|
371
|
+
- [#31582](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31582)
|
|
372
|
+
[`0e2981295ce`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0e2981295ce) - Media
|
|
373
|
+
Client accepts a feature flags object in the upload method overriding internal flags
|
|
276
374
|
|
|
277
375
|
## 20.1.0
|
|
278
376
|
|
|
279
377
|
### Minor Changes
|
|
280
378
|
|
|
281
|
-
-
|
|
379
|
+
- [#30248](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30248)
|
|
380
|
+
[`894e1910ed4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/894e1910ed4) -
|
|
381
|
+
Deprecation notice: Media Client and Media Store classes will no longer expose collection items
|
|
382
|
+
listing methods. They will be removed in the next release
|
|
282
383
|
|
|
283
384
|
### Patch Changes
|
|
284
385
|
|
|
285
|
-
-
|
|
386
|
+
- Updated dependencies
|
|
286
387
|
|
|
287
388
|
## 20.0.3
|
|
288
389
|
|
|
289
390
|
### Patch Changes
|
|
290
391
|
|
|
291
|
-
-
|
|
392
|
+
- [#31194](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31194)
|
|
393
|
+
[`4fdaa8a4645`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4fdaa8a4645) - update
|
|
394
|
+
default chunk size from 4mb to 5mb
|
|
292
395
|
|
|
293
396
|
## 20.0.2
|
|
294
397
|
|
|
295
398
|
### Patch Changes
|
|
296
399
|
|
|
297
|
-
-
|
|
400
|
+
- [#30177](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30177)
|
|
401
|
+
[`cdd0445e5a5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cdd0445e5a5) - Fixed
|
|
402
|
+
instantiation logic when feature flags object is passed
|
|
298
403
|
|
|
299
404
|
## 20.0.1
|
|
300
405
|
|
|
301
406
|
### Patch Changes
|
|
302
407
|
|
|
303
|
-
-
|
|
304
|
-
-
|
|
408
|
+
- [#28932](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28932)
|
|
409
|
+
[`90f6203e794`](https://bitbucket.org/atlassian/atlassian-frontend/commits/90f6203e794) - Media
|
|
410
|
+
Client now fetch remote file state regardless of file browser support (behind feature flag)
|
|
411
|
+
- Updated dependencies
|
|
305
412
|
|
|
306
413
|
## 20.0.0
|
|
307
414
|
|
|
308
415
|
### Major Changes
|
|
309
416
|
|
|
310
|
-
-
|
|
417
|
+
- [#28374](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28374)
|
|
418
|
+
[`2e902a363ad`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e902a363ad) -
|
|
419
|
+
MEX-1649 Update uploadChunk and probeChunk functions in mediastore with mandatory params -
|
|
420
|
+
uploadId and partNumber
|
|
311
421
|
|
|
312
422
|
### Patch Changes
|
|
313
423
|
|
|
314
|
-
-
|
|
424
|
+
- Updated dependencies
|
|
315
425
|
|
|
316
426
|
## 19.1.1
|
|
317
427
|
|
|
318
428
|
### Patch Changes
|
|
319
429
|
|
|
320
|
-
-
|
|
430
|
+
- [#28324](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28324)
|
|
431
|
+
[`6455cf006b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6455cf006b3) - Builds
|
|
432
|
+
for this package now pass through a tokens babel plugin, removing runtime invocations of the
|
|
433
|
+
tokens() function and improving performance.
|
|
321
434
|
|
|
322
435
|
## 19.1.0
|
|
323
436
|
|
|
324
437
|
### Minor Changes
|
|
325
438
|
|
|
326
|
-
-
|
|
327
|
-
|
|
439
|
+
- [#28090](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28090)
|
|
440
|
+
[`81573c1dfa7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/81573c1dfa7) - Items
|
|
441
|
+
call creates a batched metadata trace Id
|
|
442
|
+
- [`0bccac57db6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0bccac57db6) - remove
|
|
443
|
+
mediaUploadApiV2 Feature flag
|
|
328
444
|
|
|
329
445
|
### Patch Changes
|
|
330
446
|
|
|
331
|
-
-
|
|
332
|
-
|
|
333
|
-
-
|
|
447
|
+
- [`a8eeb045e3a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a8eeb045e3a) - adding
|
|
448
|
+
media only callouts to docs
|
|
449
|
+
- [`3d40d5e9b37`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3d40d5e9b37) - Adopt
|
|
450
|
+
updated version of getRandomHex function for generating traceId
|
|
451
|
+
- Updated dependencies
|
|
334
452
|
|
|
335
453
|
## 19.0.0
|
|
336
454
|
|
|
337
455
|
### Major Changes
|
|
338
456
|
|
|
339
|
-
-
|
|
457
|
+
- [#26712](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26712)
|
|
458
|
+
[`5eb06146a4e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5eb06146a4e) - Added
|
|
459
|
+
support traceContext to be supplied to all request endpoint points.
|
|
340
460
|
|
|
341
461
|
### Patch Changes
|
|
342
462
|
|
|
343
|
-
-
|
|
463
|
+
- [`358de54a124`](https://bitbucket.org/atlassian/atlassian-frontend/commits/358de54a124) - Allow
|
|
464
|
+
collection-fetcher endpoints to pass traceContext
|
|
344
465
|
|
|
345
466
|
## 18.1.0
|
|
346
467
|
|
|
347
468
|
### Minor Changes
|
|
348
469
|
|
|
349
|
-
-
|
|
470
|
+
- [#25860](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/25860)
|
|
471
|
+
[`2c402e87213`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2c402e87213) -
|
|
472
|
+
[Experimental] Add traceId in media card get image request.
|
|
350
473
|
|
|
351
474
|
### Patch Changes
|
|
352
475
|
|
|
353
|
-
-
|
|
354
|
-
|
|
476
|
+
- [`bf8302c838a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bf8302c838a) -
|
|
477
|
+
Implemented internal functionality to create local video preview.
|
|
478
|
+
- Updated dependencies
|
|
355
479
|
|
|
356
480
|
## 18.0.0
|
|
357
481
|
|
|
358
482
|
### Major Changes
|
|
359
483
|
|
|
360
|
-
-
|
|
484
|
+
- [#24710](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24710)
|
|
485
|
+
[`37ff149ab87`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37ff149ab87) - Remove
|
|
486
|
+
exposing StreamsCache class
|
|
361
487
|
|
|
362
488
|
### Patch Changes
|
|
363
489
|
|
|
364
|
-
-
|
|
365
|
-
-
|
|
490
|
+
- [`153829bfcb3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/153829bfcb3) -
|
|
491
|
+
Upgrade caching algorithm library lru-fast to lru_map.
|
|
492
|
+
- Updated dependencies
|
|
366
493
|
|
|
367
494
|
## 17.1.3
|
|
368
495
|
|
|
369
496
|
### Patch Changes
|
|
370
497
|
|
|
371
|
-
-
|
|
372
|
-
-
|
|
498
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
|
|
499
|
+
[`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) -
|
|
500
|
+
Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
501
|
+
- Updated dependencies
|
|
373
502
|
|
|
374
503
|
## 17.1.2
|
|
375
504
|
|
|
376
505
|
### Patch Changes
|
|
377
506
|
|
|
378
|
-
-
|
|
507
|
+
- [#24004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24004)
|
|
508
|
+
[`45b6d35ea96`](https://bitbucket.org/atlassian/atlassian-frontend/commits/45b6d35ea96) -
|
|
509
|
+
[ME-1327] Added new upload methods to editor mobile bridge to support previews and progress for
|
|
510
|
+
media cards.
|
|
379
511
|
|
|
380
512
|
## 17.1.1
|
|
381
513
|
|
|
382
514
|
### Patch Changes
|
|
383
515
|
|
|
384
|
-
-
|
|
385
|
-
-
|
|
516
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
|
|
517
|
+
[`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) -
|
|
518
|
+
Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
519
|
+
- Updated dependencies
|
|
386
520
|
|
|
387
521
|
## 17.1.0
|
|
388
522
|
|
|
389
523
|
### Minor Changes
|
|
390
524
|
|
|
391
|
-
-
|
|
392
|
-
|
|
525
|
+
- [#22642](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22642)
|
|
526
|
+
[`c07a8176ddf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c07a8176ddf) - New
|
|
527
|
+
BlobType SlicedBlob that includes partnumber introduced and used for uploading chunks
|
|
528
|
+
- [`a2e6bd37426`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a2e6bd37426) - add
|
|
529
|
+
uploadId to prob function to support new media upload api
|
|
393
530
|
|
|
394
531
|
### Patch Changes
|
|
395
532
|
|
|
396
|
-
-
|
|
397
|
-
|
|
398
|
-
-
|
|
533
|
+
- [`e80f52696fe`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e80f52696fe) -
|
|
534
|
+
Migrated styled-components to emotion
|
|
535
|
+
- [`de9dc9e7cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/de9dc9e7cbd) -
|
|
536
|
+
Renamed internal helpers and files
|
|
537
|
+
- Updated dependencies
|
|
399
538
|
|
|
400
539
|
## 17.0.0
|
|
401
540
|
|
|
402
541
|
### Major Changes
|
|
403
542
|
|
|
404
|
-
-
|
|
543
|
+
- [#22029](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22029)
|
|
544
|
+
[`a718050239e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a718050239e) - Media
|
|
545
|
+
Client Uploader enforces a hard limit of 2Tb files.
|
|
405
546
|
|
|
406
|
-
|
|
547
|
+
To mitigate these changes:
|
|
407
548
|
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
Media Picker.
|
|
549
|
+
- Set the feature flag mediaUploadApiV2 as false or Revert to a previous version for affected
|
|
550
|
+
consumers and methods; Media Client uploadFile method. Media Client File Fetcher upload
|
|
551
|
+
method. Media Picker.
|
|
412
552
|
|
|
413
|
-
-
|
|
414
|
-
|
|
553
|
+
- [`e4d0b89cd8b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e4d0b89cd8b) -
|
|
554
|
+
Additional parameters and changes to the way parameters are passed to MediaStore.uploadChunk and
|
|
555
|
+
MediaStore.probeChunks.
|
|
556
|
+
- [`d07442a7ff7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d07442a7ff7) -
|
|
557
|
+
Breaking change to media-client uploadFile method, chunkSize and processingBatchSize as
|
|
558
|
+
parameters removed from uploadFile.
|
|
415
559
|
|
|
416
560
|
### Patch Changes
|
|
417
561
|
|
|
418
|
-
-
|
|
419
|
-
|
|
562
|
+
- [`61cf857a95a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cf857a95a) - A util
|
|
563
|
+
function for dynamically calculating chunkSizes.
|
|
564
|
+
- Updated dependencies
|
|
420
565
|
|
|
421
566
|
## 16.0.1
|
|
422
567
|
|
|
423
568
|
### Patch Changes
|
|
424
569
|
|
|
425
|
-
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
-
|
|
429
|
-
|
|
570
|
+
- [#21570](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21570)
|
|
571
|
+
[`12d0af77572`](https://bitbucket.org/atlassian/atlassian-frontend/commits/12d0af77572) - Store
|
|
572
|
+
media environment in session storage
|
|
573
|
+
- [`325e210e59f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/325e210e59f) - Revert
|
|
574
|
+
changes made in MEX-1638-revert-update-media-store-class-with-new-endpoint-parameters
|
|
575
|
+
- [`b73f20ed703`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b73f20ed703) -
|
|
576
|
+
EDM-3073: Fix collab for media inline and copy-paste regression
|
|
577
|
+
- [`c2ede50a80a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c2ede50a80a) - Add
|
|
578
|
+
media region and environment returned from media API response into failed analytic events.
|
|
579
|
+
- Updated dependencies
|
|
430
580
|
|
|
431
581
|
## 16.0.0
|
|
432
582
|
|
|
433
583
|
### Major Changes
|
|
434
584
|
|
|
435
|
-
-
|
|
585
|
+
- [#20721](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20721)
|
|
586
|
+
[`b6d47de3fd9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b6d47de3fd9) -
|
|
587
|
+
[MEX-1417] remove access to media file streams cache
|
|
436
588
|
|
|
437
589
|
### Minor Changes
|
|
438
590
|
|
|
439
|
-
-
|
|
591
|
+
- [`5e249d1ad05`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5e249d1ad05) -
|
|
592
|
+
Exposed media environment
|
|
440
593
|
|
|
441
594
|
### Patch Changes
|
|
442
595
|
|
|
443
|
-
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
-
|
|
596
|
+
- [`bde94d1a336`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bde94d1a336) - When
|
|
597
|
+
chunkinator has multiple processing batches of chunks, file will only be finalised uploading for
|
|
598
|
+
once.
|
|
599
|
+
- [`567b33b2eeb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/567b33b2eeb) - stripe
|
|
600
|
+
out null and undefined params when calling media server
|
|
601
|
+
- [`c4c75f5a769`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c4c75f5a769) -
|
|
602
|
+
Removed query string from media client
|
|
603
|
+
- Updated dependencies
|
|
447
604
|
|
|
448
605
|
## 15.1.1
|
|
449
606
|
|
|
450
607
|
### Patch Changes
|
|
451
608
|
|
|
452
|
-
-
|
|
609
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
|
|
610
|
+
[`a424e62b264`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a424e62b264) -
|
|
611
|
+
Changes to support Node 16 Typescript definitions from `@types/node`.
|
|
453
612
|
|
|
454
613
|
## 15.1.0
|
|
455
614
|
|
|
456
615
|
### Minor Changes
|
|
457
616
|
|
|
458
|
-
-
|
|
617
|
+
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Export
|
|
618
|
+
`WithMediaClient` type to resolve a deep import path d.ts reference
|
|
459
619
|
|
|
460
620
|
### Patch Changes
|
|
461
621
|
|
|
462
|
-
-
|
|
463
|
-
|
|
622
|
+
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) -
|
|
623
|
+
Upgrade to TypeScript 4.2.4
|
|
624
|
+
- Updated dependencies
|
|
464
625
|
|
|
465
626
|
## 15.0.0
|
|
466
627
|
|
|
467
628
|
### Major Changes
|
|
468
629
|
|
|
469
|
-
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
630
|
+
- [#19618](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19618)
|
|
631
|
+
[`fdc41ee7a0b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fdc41ee7a0b) - Stop
|
|
632
|
+
exposing observableToPromise from media client API. mediaSubscribableToPromise is used
|
|
633
|
+
internally.
|
|
634
|
+
- [`118f3af101f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/118f3af101f) - Media
|
|
635
|
+
Client APIs has been updated to use MediaSubscribable which provides subscription functionality
|
|
636
|
+
(similar to RxJs observables). It exposes subscribe method that is called with MediaObserver as
|
|
637
|
+
an argument and returns MediaSubscription. MediaSubscription exposes unsubscribe method.
|
|
474
638
|
|
|
475
|
-
|
|
476
|
-
|
|
639
|
+
getFileState: The returned type of this function has changed from RxJs ReplaySubject to
|
|
640
|
+
MediaSubscribable.
|
|
477
641
|
|
|
478
|
-
|
|
479
|
-
|
|
642
|
+
```
|
|
643
|
+
import { MediaClient, MediaObserver, MediaSubscribable, MediaSubscription } from '@atlaskit/media-client';
|
|
480
644
|
|
|
481
|
-
|
|
645
|
+
const mediaClient = new MediaClient({ authProvider });
|
|
482
646
|
|
|
483
|
-
|
|
647
|
+
const fileStateSubscribable: MediaSubscribable<FileState> = mediaClient.file.getFileState(id);
|
|
484
648
|
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
649
|
+
const mediaObserver: MediaObserver<FileState> = {
|
|
650
|
+
next: (fileState) => {
|
|
651
|
+
nextCallback(fileState)
|
|
652
|
+
},
|
|
653
|
+
error: (error) => {
|
|
654
|
+
errorCallback(error)
|
|
655
|
+
},
|
|
656
|
+
};
|
|
493
657
|
|
|
494
|
-
|
|
658
|
+
const subscription: MediaSubscription = fileStateSubscribable.subscribe(mediaObserver);
|
|
495
659
|
|
|
496
|
-
|
|
497
|
-
|
|
660
|
+
subscription.unsubscribe();
|
|
661
|
+
```
|
|
498
662
|
|
|
499
|
-
|
|
500
|
-
|
|
663
|
+
upload: The returned type of this function has changed from RxJs ReplaySubject to
|
|
664
|
+
MediaSubscribable.
|
|
501
665
|
|
|
502
|
-
|
|
503
|
-
|
|
666
|
+
```
|
|
667
|
+
import { MediaClient, MediaObserver, MediaSubscribable, MediaSubscription } from '@atlaskit/media-client';
|
|
504
668
|
|
|
505
|
-
|
|
669
|
+
const mediaClient = new MediaClient({ authProvider });
|
|
506
670
|
|
|
507
|
-
|
|
671
|
+
const uploadFileSubscribable: MediaSubscribable<FileState> = mediaClient.file.upload(uploadableFile);
|
|
508
672
|
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
673
|
+
const mediaObserver: MediaObserver<FileState> = {
|
|
674
|
+
next: (fileState) => {
|
|
675
|
+
nextCallback(fileState)
|
|
676
|
+
},
|
|
677
|
+
error: (error) => {
|
|
678
|
+
errorCallback(error)
|
|
679
|
+
},
|
|
680
|
+
};
|
|
517
681
|
|
|
518
|
-
|
|
682
|
+
const subscription: MediaSubscription = uploadFileSubscribable.subscribe(mediaObserver);
|
|
519
683
|
|
|
520
|
-
|
|
521
|
-
|
|
684
|
+
subscription.unsubscribe();
|
|
685
|
+
```
|
|
522
686
|
|
|
523
|
-
|
|
524
|
-
|
|
687
|
+
getItems: The returned type of this function has changed from RxJs ReplaySubject to
|
|
688
|
+
MediaSubscribable.
|
|
525
689
|
|
|
526
|
-
|
|
527
|
-
|
|
690
|
+
```
|
|
691
|
+
import { MediaClient, MediaObserver, MediaSubscribable, MediaSubscription } from '@atlaskit/media-client';
|
|
528
692
|
|
|
529
|
-
|
|
693
|
+
const mediaClient = new MediaClient({ authProvider });
|
|
530
694
|
|
|
531
|
-
|
|
695
|
+
const collectionItemsSubscribable: MediaSubscribable<MediaCollectionItem[]> = mediaClient.collection.getItems(collectionName);
|
|
532
696
|
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
697
|
+
const mediaObserver: MediaObserver<MediaCollectionItem[]> = {
|
|
698
|
+
next: (items) => {
|
|
699
|
+
nextCallback(items)
|
|
700
|
+
},
|
|
701
|
+
error: (error) => {
|
|
702
|
+
errorCallback(error)
|
|
703
|
+
},
|
|
704
|
+
};
|
|
541
705
|
|
|
542
|
-
|
|
706
|
+
const subscription: MediaSubscription = collectionItemsSubscribable.subscribe(mediaObserver);
|
|
543
707
|
|
|
544
|
-
|
|
545
|
-
|
|
708
|
+
subscription.unsubscribe();
|
|
709
|
+
```
|
|
546
710
|
|
|
547
711
|
### Minor Changes
|
|
548
712
|
|
|
549
|
-
-
|
|
713
|
+
- [`f862d5ae7aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f862d5ae7aa) - remove
|
|
714
|
+
RxJs peer dependency
|
|
550
715
|
|
|
551
716
|
### Patch Changes
|
|
552
717
|
|
|
553
|
-
-
|
|
718
|
+
- Updated dependencies
|
|
554
719
|
|
|
555
720
|
## 14.4.0
|
|
556
721
|
|
|
557
722
|
### Minor Changes
|
|
558
723
|
|
|
559
|
-
-
|
|
724
|
+
- [#19019](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19019)
|
|
725
|
+
[`7d2943a6038`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d2943a6038) -
|
|
726
|
+
Created MediaSubscribable wrapper around RxJs Observable
|
|
560
727
|
|
|
561
728
|
### Patch Changes
|
|
562
729
|
|
|
563
|
-
-
|
|
730
|
+
- Updated dependencies
|
|
564
731
|
|
|
565
732
|
## 14.3.2
|
|
566
733
|
|
|
567
734
|
### Patch Changes
|
|
568
735
|
|
|
569
|
-
-
|
|
736
|
+
- [#17344](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/17344)
|
|
737
|
+
[`59a14d364b1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/59a14d364b1) - Bump
|
|
738
|
+
query-string@^6.14.1
|
|
570
739
|
|
|
571
740
|
## 14.3.1
|
|
572
741
|
|
|
573
742
|
### Patch Changes
|
|
574
743
|
|
|
575
|
-
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
744
|
+
- [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998)
|
|
745
|
+
[`586b7869085`](https://bitbucket.org/atlassian/atlassian-frontend/commits/586b7869085) - Pass
|
|
746
|
+
initialAuth to MediaStore
|
|
747
|
+
- [`dc1f9d42903`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dc1f9d42903) -
|
|
748
|
+
Updated typeguard
|
|
749
|
+
- [`f461edcfd05`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f461edcfd05) - Update
|
|
750
|
+
CardLoader to use react-loadable Add SSR feature prop to be passed in renderer and media card
|
|
751
|
+
- Updated dependencies
|
|
580
752
|
|
|
581
753
|
## 14.3.0
|
|
582
754
|
|
|
583
755
|
### Minor Changes
|
|
584
756
|
|
|
585
|
-
-
|
|
586
|
-
|
|
757
|
+
- [#14777](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14777)
|
|
758
|
+
[`b51fc0a9062`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b51fc0a9062) - New
|
|
759
|
+
helper to convert ImageResizeMode into FileImageMode
|
|
760
|
+
- [`269ee940b87`](https://bitbucket.org/atlassian/atlassian-frontend/commits/269ee940b87) -
|
|
761
|
+
redesign error UI on new media card experience
|
|
587
762
|
|
|
588
763
|
### Patch Changes
|
|
589
764
|
|
|
590
|
-
-
|
|
591
|
-
|
|
765
|
+
- [`fe9ced0cd70`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fe9ced0cd70) -
|
|
766
|
+
Removed feature flags for polling settings
|
|
767
|
+
- Updated dependencies
|
|
592
768
|
|
|
593
769
|
## 14.2.0
|
|
594
770
|
|
|
595
771
|
### Minor Changes
|
|
596
772
|
|
|
597
|
-
-
|
|
773
|
+
- [#13864](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13864)
|
|
774
|
+
[`381deea2aab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/381deea2aab) -
|
|
775
|
+
MEX-710 Added mobileUpload API to media-client
|
|
598
776
|
|
|
599
777
|
### Patch Changes
|
|
600
778
|
|
|
601
|
-
-
|
|
602
|
-
|
|
779
|
+
- [`c2ae093a067`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c2ae093a067) - Fixed
|
|
780
|
+
unit test taking more than 10secs
|
|
781
|
+
- Updated dependencies
|
|
603
782
|
|
|
604
783
|
## 14.1.1
|
|
605
784
|
|
|
606
785
|
### Patch Changes
|
|
607
786
|
|
|
608
|
-
-
|
|
787
|
+
- [#13973](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13973)
|
|
788
|
+
[`e6689b61735`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e6689b61735) - Added
|
|
789
|
+
a new authProviderTimeout parameter within resolveAuth to control the timeout duration.
|
|
609
790
|
|
|
610
791
|
## 14.1.0
|
|
611
792
|
|
|
612
793
|
### Minor Changes
|
|
613
794
|
|
|
614
|
-
-
|
|
615
|
-
|
|
795
|
+
- [#13302](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13302)
|
|
796
|
+
[`17776bda189`](https://bitbucket.org/atlassian/atlassian-frontend/commits/17776bda189) - -
|
|
797
|
+
Improve Smart Links providers and batch requests mechanism
|
|
798
|
+
- Remove non-functional props that impact reloading
|
|
616
799
|
|
|
617
800
|
### Patch Changes
|
|
618
801
|
|
|
619
|
-
-
|
|
802
|
+
- [`7d869388cfe`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d869388cfe) - Added
|
|
803
|
+
timeout to auth provider
|
|
620
804
|
|
|
621
805
|
## 14.0.0
|
|
622
806
|
|
|
623
807
|
### Minor Changes
|
|
624
808
|
|
|
625
|
-
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
809
|
+
- [#12837](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12837)
|
|
810
|
+
[`531dcf9459d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/531dcf9459d) - Media
|
|
811
|
+
Client allows sync operations by using initial Auth credentials when the consumer needs it
|
|
812
|
+
_inmediatelly_ after instantiation (e.g., Server Side Rendering). MediaClientConfig requires the
|
|
813
|
+
"initialAuth" attribute to provide an Auth object that does not come from an async Auth
|
|
814
|
+
provider. Example:
|
|
815
|
+
|
|
816
|
+
```
|
|
817
|
+
const mediaClientConfig = {
|
|
818
|
+
authProvider: myAuthProvider,
|
|
819
|
+
initialAuth: myAuth
|
|
820
|
+
}
|
|
821
|
+
const mediaClient = new MediaClient(mediaClientConfig);
|
|
822
|
+
const imageUrl = mediaClient.getImageUrlSync(myFileId, myParams);
|
|
823
|
+
```
|
|
637
824
|
|
|
638
825
|
### Patch Changes
|
|
639
826
|
|
|
640
|
-
-
|
|
827
|
+
- Updated dependencies
|
|
641
828
|
|
|
642
829
|
## 13.3.1
|
|
643
830
|
|
|
644
831
|
### Patch Changes
|
|
645
832
|
|
|
646
|
-
-
|
|
833
|
+
- [#13080](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13080)
|
|
834
|
+
[`f50b26327dd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f50b26327dd) - Remove
|
|
835
|
+
Expired check from Media Client
|
|
647
836
|
|
|
648
837
|
## 13.3.0
|
|
649
838
|
|
|
650
839
|
### Minor Changes
|
|
651
840
|
|
|
652
|
-
-
|
|
841
|
+
- [#12328](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12328)
|
|
842
|
+
[`10932f6ae07`](https://bitbucket.org/atlassian/atlassian-frontend/commits/10932f6ae07) -
|
|
843
|
+
SPFE-561: Remove the URLSearchParams polyfill
|
|
653
844
|
|
|
654
845
|
## 13.2.1
|
|
655
846
|
|
|
656
847
|
### Patch Changes
|
|
657
848
|
|
|
658
|
-
-
|
|
659
|
-
|
|
849
|
+
- [#11649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11649)
|
|
850
|
+
[`8cba1694b5e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cba1694b5e) - Remove
|
|
851
|
+
pollingMaxFailuresExceeded error from implementation and feature flags
|
|
852
|
+
- [`50cc05dde71`](https://bitbucket.org/atlassian/atlassian-frontend/commits/50cc05dde71) - Mark
|
|
853
|
+
the following members as deprecated:
|
|
660
854
|
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
855
|
+
- getMediaTypeFromMimeType
|
|
856
|
+
- isImageMimeTypeSupportedByBrowser
|
|
857
|
+
- isDocumentMimeTypeSupportedByBrowser
|
|
858
|
+
- isMimeTypeSupportedByBrowser
|
|
859
|
+
- isImageMimeTypeSupportedByServer
|
|
860
|
+
- isDocumentMimeTypeSupportedByServer
|
|
861
|
+
- isAudioMimeTypeSupportedByServer
|
|
862
|
+
- isVideoMimeTypeSupportedByServer
|
|
863
|
+
- isUnknownMimeTypeSupportedByServer
|
|
864
|
+
- isMimeTypeSupportedByServer
|
|
671
865
|
|
|
672
|
-
-
|
|
866
|
+
- Updated dependencies
|
|
673
867
|
|
|
674
868
|
## 13.2.0
|
|
675
869
|
|
|
676
870
|
### Minor Changes
|
|
677
871
|
|
|
678
|
-
-
|
|
872
|
+
- [#11113](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11113)
|
|
873
|
+
[`65c76061dc0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/65c76061dc0) -
|
|
874
|
+
Verifiy token expiration before performing requests or providing URLs
|
|
679
875
|
|
|
680
876
|
### Patch Changes
|
|
681
877
|
|
|
682
|
-
-
|
|
683
|
-
|
|
684
|
-
-
|
|
878
|
+
- [`78125228ee2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/78125228ee2) - Fixed
|
|
879
|
+
token expiration criteria
|
|
880
|
+
- [`3cd9ee2d15b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3cd9ee2d15b) - Added
|
|
881
|
+
RxJS compatiblity notice in Media docs
|
|
882
|
+
- Updated dependencies
|
|
685
883
|
|
|
686
884
|
## 13.1.2
|
|
687
885
|
|
|
688
886
|
### Patch Changes
|
|
689
887
|
|
|
690
|
-
-
|
|
888
|
+
- [#10569](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10569)
|
|
889
|
+
[`8eefb856389`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8eefb856389) - Added
|
|
890
|
+
emptyItems failReason to media-client
|
|
691
891
|
|
|
692
892
|
## 13.1.1
|
|
693
893
|
|
|
694
894
|
### Patch Changes
|
|
695
895
|
|
|
696
|
-
-
|
|
896
|
+
- [#10230](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10230)
|
|
897
|
+
[`277ed9667b2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/277ed9667b2) - Fixed
|
|
898
|
+
media bundle names following atlassian-frontend linting rules
|
|
697
899
|
|
|
698
900
|
## 13.1.0
|
|
699
901
|
|
|
700
902
|
### Minor Changes
|
|
701
903
|
|
|
702
|
-
-
|
|
904
|
+
- [#9510](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9510)
|
|
905
|
+
[`abc38bc9990`](https://bitbucket.org/atlassian/atlassian-frontend/commits/abc38bc9990) - Added
|
|
906
|
+
request metadata to failed frontend SLIs
|
|
703
907
|
|
|
704
908
|
## 13.0.1
|
|
705
909
|
|
|
706
910
|
### Patch Changes
|
|
707
911
|
|
|
708
|
-
-
|
|
912
|
+
- [#9083](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9083)
|
|
913
|
+
[`d6b31d9713d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6b31d9713d) - Fixed
|
|
914
|
+
uncaught exceptions when uploading MP4/HEVC
|
|
709
915
|
|
|
710
916
|
## 13.0.0
|
|
711
917
|
|
|
712
918
|
### Major Changes
|
|
713
919
|
|
|
714
|
-
-
|
|
920
|
+
- [#8644](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8644)
|
|
921
|
+
[`1a37545d238`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1a37545d238) - File
|
|
922
|
+
Fetcher is now emitting errors from upload/copyFile operations from ReplaySubject instead of
|
|
923
|
+
creating an ErrorFileState
|
|
715
924
|
|
|
716
925
|
### Minor Changes
|
|
717
926
|
|
|
718
|
-
-
|
|
719
|
-
|
|
720
|
-
-
|
|
927
|
+
- [`1d09c9ed549`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1d09c9ed549) -
|
|
928
|
+
refactor media-viewer for better analytics and error handling
|
|
929
|
+
- [`37d4add135f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37d4add135f) -
|
|
930
|
+
Refactored Media Client Error interface and types
|
|
931
|
+
- [`398fee1d575`](https://bitbucket.org/atlassian/atlassian-frontend/commits/398fee1d575) - detect
|
|
932
|
+
zero version (empty) files in media-client, throw FileFetcherError
|
|
721
933
|
|
|
722
934
|
### Patch Changes
|
|
723
935
|
|
|
724
|
-
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
-
|
|
936
|
+
- [`3a350428814`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3a350428814) - Moved
|
|
937
|
+
request error reason "clientExhaustedRetries" into an attribute to not obscure original error
|
|
938
|
+
- [`ce5671da5e7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ce5671da5e7) - keep
|
|
939
|
+
media analytics fileAttributes nested in attributes move FileStatus from media-client to
|
|
940
|
+
media-common, maintaing export from media-client
|
|
941
|
+
- [`6611b6b3975`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6611b6b3975) - Fixed
|
|
942
|
+
isMediaClientError method to accept any type as input
|
|
943
|
+
- Updated dependencies
|
|
729
944
|
|
|
730
945
|
## 12.4.1
|
|
731
946
|
|
|
732
947
|
### Patch Changes
|
|
733
948
|
|
|
734
|
-
-
|
|
735
|
-
-
|
|
949
|
+
- [#8178](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8178)
|
|
950
|
+
[`dfc79cafa6c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dfc79cafa6c) - Fixed
|
|
951
|
+
failures on /upload/createWithFiles not aborting upload
|
|
952
|
+
- Updated dependencies
|
|
736
953
|
|
|
737
954
|
## 12.4.0
|
|
738
955
|
|
|
739
956
|
### Minor Changes
|
|
740
957
|
|
|
741
|
-
-
|
|
742
|
-
|
|
958
|
+
- [#7170](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/7170)
|
|
959
|
+
[`b37190888c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b37190888c) - ensure
|
|
960
|
+
polling errors trigger more graceful UX
|
|
961
|
+
- [`a26afbd493`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a26afbd493) - Added
|
|
962
|
+
getMediaClientFailReason() helper
|
|
743
963
|
|
|
744
964
|
### Patch Changes
|
|
745
965
|
|
|
746
|
-
-
|
|
747
|
-
|
|
748
|
-
-
|
|
749
|
-
-
|
|
966
|
+
- [`758aa08653`](https://bitbucket.org/atlassian/atlassian-frontend/commits/758aa08653) - Polling
|
|
967
|
+
Fuction throws the inner error instead of wrapping it
|
|
968
|
+
- [`7c44d1e585`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7c44d1e585) - Fixed
|
|
969
|
+
cards with non web-friendly MP4/MOV videos not mounting
|
|
970
|
+
- [`8dfcc55dce`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8dfcc55dce) -
|
|
971
|
+
Refactored error enums to be types for code clarity
|
|
972
|
+
- Updated dependencies
|
|
750
973
|
|
|
751
974
|
## 12.3.0
|
|
752
975
|
|
|
753
976
|
### Minor Changes
|
|
754
977
|
|
|
755
|
-
-
|
|
978
|
+
- [#6930](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6930)
|
|
979
|
+
[`56693486a3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56693486a3) - [ux]
|
|
980
|
+
Rate Limited UI for the MediaViewer. Also moved a MediaCard function into MediaClient so that
|
|
981
|
+
that functionality can be used across multiple packages
|
|
756
982
|
|
|
757
983
|
## 12.2.0
|
|
758
984
|
|
|
759
985
|
### Minor Changes
|
|
760
986
|
|
|
761
|
-
-
|
|
987
|
+
- [#6571](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6571)
|
|
988
|
+
[`7736346d88`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7736346d88) - Added
|
|
989
|
+
strongly typed errors to Media Client
|
|
762
990
|
|
|
763
991
|
### Patch Changes
|
|
764
992
|
|
|
765
|
-
-
|
|
766
|
-
|
|
993
|
+
- [`fa5ef18162`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fa5ef18162) - Fixed
|
|
994
|
+
media client's DataLoader error handling
|
|
995
|
+
- [`11b4fc8033`](https://bitbucket.org/atlassian/atlassian-frontend/commits/11b4fc8033) - ensure
|
|
996
|
+
maximum media poll interval ms is 3.3min not 33min
|
|
767
997
|
|
|
768
998
|
## 12.1.2
|
|
769
999
|
|
|
770
1000
|
### Patch Changes
|
|
771
1001
|
|
|
772
|
-
-
|
|
1002
|
+
- [#6521](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6521)
|
|
1003
|
+
[`956cf2d5ee`](https://bitbucket.org/atlassian/atlassian-frontend/commits/956cf2d5ee) -
|
|
1004
|
+
HOT-93465 docs(changeset): ensure maximum media poll interval ms is 3.3min not 33min
|
|
773
1005
|
|
|
774
1006
|
## 12.1.1
|
|
775
1007
|
|
|
776
1008
|
### Patch Changes
|
|
777
1009
|
|
|
778
|
-
-
|
|
779
|
-
-
|
|
1010
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857)
|
|
1011
|
+
[`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) -
|
|
1012
|
+
Transpile packages using babel rather than tsc
|
|
1013
|
+
- Updated dependencies
|
|
780
1014
|
|
|
781
1015
|
## 12.1.0
|
|
782
1016
|
|
|
783
1017
|
### Minor Changes
|
|
784
1018
|
|
|
785
|
-
-
|
|
1019
|
+
- [#6228](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6228)
|
|
1020
|
+
[`3c263cb2df`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3c263cb2df) - Added
|
|
1021
|
+
error handling when calling media client getCurrentState()
|
|
786
1022
|
|
|
787
1023
|
### Patch Changes
|
|
788
1024
|
|
|
789
|
-
-
|
|
1025
|
+
- Updated dependencies
|
|
790
1026
|
|
|
791
1027
|
## 12.0.0
|
|
792
1028
|
|
|
793
1029
|
### Patch Changes
|
|
794
1030
|
|
|
795
|
-
-
|
|
1031
|
+
- Updated dependencies
|
|
796
1032
|
|
|
797
1033
|
## 11.1.0
|
|
798
1034
|
|
|
799
1035
|
### Minor Changes
|
|
800
1036
|
|
|
801
|
-
-
|
|
1037
|
+
- [#5516](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5516)
|
|
1038
|
+
[`3f0dd38c9d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f0dd38c9d) - BMPT-626
|
|
1039
|
+
Fixed fetching remote preview for non-supported documents in classic Media Card experience
|
|
802
1040
|
|
|
803
1041
|
### Patch Changes
|
|
804
1042
|
|
|
805
|
-
-
|
|
806
|
-
|
|
1043
|
+
- [`bf98a47a0f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bf98a47a0f) - Enhance
|
|
1044
|
+
polling strategy to limit to finite attempts with timing backoff
|
|
1045
|
+
- Updated dependencies
|
|
807
1046
|
|
|
808
1047
|
## 11.0.1
|
|
809
1048
|
|
|
810
1049
|
### Patch Changes
|
|
811
1050
|
|
|
812
|
-
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
1051
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497)
|
|
1052
|
+
[`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export
|
|
1053
|
+
types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules
|
|
1054
|
+
compiler option. This requires version 3.8 of Typescript, read more about how we handle
|
|
1055
|
+
Typescript versions here: https://atlaskit.atlassian.com/get-started Also add `typescript` to
|
|
1056
|
+
`devDependencies` to denote version that the package was built with.
|
|
1057
|
+
- Updated dependencies
|
|
816
1058
|
|
|
817
1059
|
## 11.0.0
|
|
818
1060
|
|
|
819
1061
|
### Minor Changes
|
|
820
1062
|
|
|
821
|
-
-
|
|
1063
|
+
- [#4749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4749)
|
|
1064
|
+
[`7d831363d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d831363d9) - Migrated
|
|
1065
|
+
to declarative entry points
|
|
822
1066
|
|
|
823
1067
|
### Patch Changes
|
|
824
1068
|
|
|
825
|
-
-
|
|
1069
|
+
- Updated dependencies
|
|
826
1070
|
|
|
827
1071
|
## 10.1.0
|
|
828
1072
|
|
|
829
1073
|
### Minor Changes
|
|
830
1074
|
|
|
831
|
-
-
|
|
1075
|
+
- [#4769](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4769)
|
|
1076
|
+
[`8687140735`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8687140735) - [ux] Fix
|
|
1077
|
+
for file processing blocking pages and tickets from saving.
|
|
832
1078
|
|
|
833
1079
|
## 10.0.0
|
|
834
1080
|
|
|
835
1081
|
### Major Changes
|
|
836
1082
|
|
|
837
|
-
-
|
|
1083
|
+
- [#4455](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4455)
|
|
1084
|
+
[`2ddfbcd92b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2ddfbcd92b) - Removed
|
|
1085
|
+
SVG local previews due to XSS vulnerability
|
|
838
1086
|
|
|
839
1087
|
## 9.0.3
|
|
840
1088
|
|
|
841
1089
|
### Patch Changes
|
|
842
1090
|
|
|
843
|
-
-
|
|
844
|
-
|
|
1091
|
+
- [#4424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4424)
|
|
1092
|
+
[`1434c4e094`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1434c4e094) - Fixed
|
|
1093
|
+
cloud files rendering when publishing page in CF
|
|
1094
|
+
- [`21b9d3d336`](https://bitbucket.org/atlassian/atlassian-frontend/commits/21b9d3d336) - Fixed
|
|
1095
|
+
RAR/non-ZIP files not recognised as archives
|
|
845
1096
|
|
|
846
1097
|
## 9.0.2
|
|
847
1098
|
|
|
848
1099
|
### Patch Changes
|
|
849
1100
|
|
|
850
|
-
-
|
|
1101
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885)
|
|
1102
|
+
[`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded
|
|
1103
|
+
to TypeScript 3.9.6 and tslib to 2.0.0
|
|
851
1104
|
|
|
852
|
-
|
|
853
|
-
|
|
1105
|
+
Since tslib is a dependency for all our packages we recommend that products also follow this
|
|
1106
|
+
tslib upgrade to prevent duplicates of tslib being bundled.
|
|
854
1107
|
|
|
855
1108
|
## 9.0.1
|
|
856
1109
|
|
|
857
1110
|
### Patch Changes
|
|
858
1111
|
|
|
859
|
-
-
|
|
1112
|
+
- [#4393](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4393)
|
|
1113
|
+
[`76165ad82f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76165ad82f) - Bump
|
|
1114
|
+
required because of conflicts on wadmal release
|
|
860
1115
|
|
|
861
1116
|
## 9.0.0
|
|
862
1117
|
|
|
863
1118
|
### Major Changes
|
|
864
1119
|
|
|
865
|
-
-
|
|
866
|
-
|
|
1120
|
+
- [#3823](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3823)
|
|
1121
|
+
[`caf46c7c45`](https://bitbucket.org/atlassian/atlassian-frontend/commits/caf46c7c45) - Improved
|
|
1122
|
+
remote preview functionality for media-card redesign. Breaking change: renamed type of argument
|
|
1123
|
+
"SourceFile" to "CopySourceFile" in the method "copyFile" of media-client.
|
|
867
1124
|
|
|
868
1125
|
### Minor Changes
|
|
869
1126
|
|
|
870
|
-
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
-
|
|
874
|
-
|
|
1127
|
+
- [`0c1bb3fa88`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0c1bb3fa88) - Fixed
|
|
1128
|
+
mocked response for "/file/copy/withToken" in MediaMock. Added
|
|
1129
|
+
isMediaCollectionItemFullDetails() to media-client.
|
|
1130
|
+
- [`878d4126c2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/878d4126c2) - Added
|
|
1131
|
+
mime types supported by Media API file preview
|
|
1132
|
+
- [`02757a0d09`](https://bitbucket.org/atlassian/atlassian-frontend/commits/02757a0d09) - Add
|
|
1133
|
+
mediaStore instance as an optional dependency of copyFile to avoid calls to constructor inside
|
|
1134
|
+
the method
|
|
1135
|
+
- [`2202870181`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2202870181) - Added
|
|
1136
|
+
support for zip previews in media viewer
|
|
1137
|
+
- [`b8695823e3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b8695823e3) - Fixed
|
|
1138
|
+
Giphy images display as plain text when inserted into Editor
|
|
875
1139
|
|
|
876
1140
|
### Patch Changes
|
|
877
1141
|
|
|
878
|
-
-
|
|
879
|
-
|
|
880
|
-
-
|
|
1142
|
+
- [`fa6fb5dfbb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fa6fb5dfbb) - Removing
|
|
1143
|
+
unused code to be published
|
|
1144
|
+
- [`87459b57ba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87459b57ba) - Fixed
|
|
1145
|
+
insertion failure of processing file from recent files into Editor
|
|
1146
|
+
- Updated dependencies
|
|
881
1147
|
|
|
882
1148
|
## 8.0.1
|
|
883
1149
|
|
|
884
1150
|
### Patch Changes
|
|
885
1151
|
|
|
886
|
-
-
|
|
887
|
-
|
|
1152
|
+
- [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428)
|
|
1153
|
+
[`b73317b63c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b73317b63c) -
|
|
1154
|
+
Increased polling interval for processing files
|
|
1155
|
+
- [`4543f920b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4543f920b0) - Disabled
|
|
1156
|
+
previews for redesign; fixed not initially showing a doc icon when uploading a document
|
|
888
1157
|
|
|
889
1158
|
## 8.0.0
|
|
890
1159
|
|
|
891
1160
|
### Major Changes
|
|
892
1161
|
|
|
893
|
-
-
|
|
894
|
-
|
|
1162
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335)
|
|
1163
|
+
[`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) -
|
|
1164
|
+
Officially dropping IE11 support, from this version onwards there are no warranties of the
|
|
1165
|
+
package working in IE11. For more information see:
|
|
1166
|
+
https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
895
1167
|
|
|
896
1168
|
### Patch Changes
|
|
897
1169
|
|
|
898
|
-
-
|
|
1170
|
+
- Updated dependencies
|
|
899
1171
|
|
|
900
1172
|
## 7.0.0
|
|
901
1173
|
|
|
902
1174
|
### Major Changes
|
|
903
1175
|
|
|
904
|
-
-
|
|
1176
|
+
- [#2763](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2763)
|
|
1177
|
+
[`6658272d94`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6658272d94) - Remove
|
|
1178
|
+
Promise<string> from FileIdentifier to just be string
|
|
905
1179
|
|
|
906
|
-
|
|
1180
|
+
## Before
|
|
907
1181
|
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
1182
|
+
```
|
|
1183
|
+
FileIdentifier {
|
|
1184
|
+
id: string | Promise<string>;
|
|
1185
|
+
}
|
|
1186
|
+
```
|
|
913
1187
|
|
|
914
|
-
|
|
1188
|
+
## Now
|
|
915
1189
|
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
1190
|
+
```
|
|
1191
|
+
FileIdentifier {
|
|
1192
|
+
id: string;
|
|
1193
|
+
}
|
|
1194
|
+
```
|
|
921
1195
|
|
|
922
1196
|
## 6.2.3
|
|
923
1197
|
|
|
924
1198
|
### Patch Changes
|
|
925
1199
|
|
|
926
|
-
-
|
|
1200
|
+
- [#2979](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2979)
|
|
1201
|
+
[`81c6a2fcb2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/81c6a2fcb2) - Fixed
|
|
1202
|
+
potential exception when synchronously accessing uninitialized RxJS subscription.
|
|
927
1203
|
|
|
928
1204
|
## 6.2.2
|
|
929
1205
|
|
|
930
1206
|
### Patch Changes
|
|
931
1207
|
|
|
932
|
-
-
|
|
1208
|
+
- [#2443](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2443)
|
|
1209
|
+
[`328902687e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/328902687e) - Remove
|
|
1210
|
+
stack traces from media analytic events
|
|
933
1211
|
|
|
934
1212
|
## 6.2.1
|
|
935
1213
|
|
|
936
1214
|
### Patch Changes
|
|
937
1215
|
|
|
938
|
-
-
|
|
1216
|
+
- [#2959](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2959)
|
|
1217
|
+
[`64e7f3f077`](https://bitbucket.org/atlassian/atlassian-frontend/commits/64e7f3f077) - Bump
|
|
1218
|
+
dependency query-string to ^5.1.0
|
|
939
1219
|
|
|
940
1220
|
## 6.2.0
|
|
941
1221
|
|
|
942
1222
|
### Minor Changes
|
|
943
1223
|
|
|
944
|
-
-
|
|
945
|
-
|
|
946
|
-
|
|
1224
|
+
- [#2137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2137)
|
|
1225
|
+
[`a2ffde361d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a2ffde361d) - MPT-131:
|
|
1226
|
+
fetch remote preview for files not supported by the browser
|
|
1227
|
+
- [`928dd60d5d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/928dd60d5d) - Add
|
|
1228
|
+
optional createdAt property to FileState interface
|
|
1229
|
+
- [`c3b799c7eb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c3b799c7eb) - add
|
|
1230
|
+
optional createdAt field
|
|
947
1231
|
|
|
948
1232
|
### Patch Changes
|
|
949
1233
|
|
|
950
|
-
-
|
|
951
|
-
|
|
1234
|
+
- [`0eb38a0ebd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0eb38a0ebd) - minor
|
|
1235
|
+
code styling changes in media-client
|
|
1236
|
+
- Updated dependencies
|
|
952
1237
|
|
|
953
1238
|
## 6.1.0
|
|
954
1239
|
|
|
955
1240
|
### Minor Changes
|
|
956
1241
|
|
|
957
|
-
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
### Patch Changes
|
|
962
|
-
|
|
963
|
-
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
- Updated dependencies
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
-
|
|
982
|
-
|
|
983
|
-
-
|
|
984
|
-
|
|
985
|
-
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
1242
|
+
- [minor][11ff95c0f0](https://bitbucket.org/atlassian/atlassian-frontend/commits/11ff95c0f0):
|
|
1243
|
+
|
|
1244
|
+
Using media api region in analytics events
|
|
1245
|
+
|
|
1246
|
+
### Patch Changes
|
|
1247
|
+
|
|
1248
|
+
- [patch][5f8e3caf72](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f8e3caf72):
|
|
1249
|
+
|
|
1250
|
+
EDM-475: Handle items call error to prevent error cards-
|
|
1251
|
+
[patch][692692ba24](https://bitbucket.org/atlassian/atlassian-frontend/commits/692692ba24):
|
|
1252
|
+
|
|
1253
|
+
Replace Chunkinator-
|
|
1254
|
+
[patch][109004a98e](https://bitbucket.org/atlassian/atlassian-frontend/commits/109004a98e):
|
|
1255
|
+
|
|
1256
|
+
Deletes internal package @atlaskit/type-helpers and removes all usages. @atlaskit/type-helpers
|
|
1257
|
+
has been superseded by native typescript helper utilities.-
|
|
1258
|
+
[patch][fd782b0705](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd782b0705):
|
|
1259
|
+
|
|
1260
|
+
Fix transition from External to Internal files in Media Viewer-
|
|
1261
|
+
[patch][d80b8e8fdb](https://bitbucket.org/atlassian/atlassian-frontend/commits/d80b8e8fdb):
|
|
1262
|
+
|
|
1263
|
+
Use @atlaskit/media-common- Updated dependencies
|
|
1264
|
+
[6a6a991904](https://bitbucket.org/atlassian/atlassian-frontend/commits/6a6a991904):
|
|
1265
|
+
|
|
1266
|
+
- Updated dependencies
|
|
1267
|
+
[84f82f7015](https://bitbucket.org/atlassian/atlassian-frontend/commits/84f82f7015):
|
|
1268
|
+
- Updated dependencies
|
|
1269
|
+
[168b5f90e5](https://bitbucket.org/atlassian/atlassian-frontend/commits/168b5f90e5):
|
|
1270
|
+
- Updated dependencies
|
|
1271
|
+
[109004a98e](https://bitbucket.org/atlassian/atlassian-frontend/commits/109004a98e):
|
|
1272
|
+
- Updated dependencies
|
|
1273
|
+
[e5c869ee31](https://bitbucket.org/atlassian/atlassian-frontend/commits/e5c869ee31):
|
|
1274
|
+
- Updated dependencies
|
|
1275
|
+
[69b678b38c](https://bitbucket.org/atlassian/atlassian-frontend/commits/69b678b38c):
|
|
1276
|
+
- Updated dependencies
|
|
1277
|
+
[b2402fc3a2](https://bitbucket.org/atlassian/atlassian-frontend/commits/b2402fc3a2):
|
|
1278
|
+
- Updated dependencies
|
|
1279
|
+
[d38212e1be](https://bitbucket.org/atlassian/atlassian-frontend/commits/d38212e1be):
|
|
1280
|
+
- Updated dependencies
|
|
1281
|
+
[bb2fe95478](https://bitbucket.org/atlassian/atlassian-frontend/commits/bb2fe95478):
|
|
1282
|
+
- Updated dependencies
|
|
1283
|
+
[4aca202534](https://bitbucket.org/atlassian/atlassian-frontend/commits/4aca202534):
|
|
1284
|
+
- Updated dependencies
|
|
1285
|
+
[12112907b5](https://bitbucket.org/atlassian/atlassian-frontend/commits/12112907b5):
|
|
1286
|
+
- Updated dependencies
|
|
1287
|
+
[c28ff17fbd](https://bitbucket.org/atlassian/atlassian-frontend/commits/c28ff17fbd):
|
|
1288
|
+
- Updated dependencies
|
|
1289
|
+
[7e363d5aba](https://bitbucket.org/atlassian/atlassian-frontend/commits/7e363d5aba):
|
|
1290
|
+
- @atlaskit/media-test-helpers@27.2.0
|
|
1291
|
+
- @atlaskit/docs@8.5.1
|
|
1292
|
+
- @atlaskit/button@13.3.10
|
|
1293
|
+
- @atlaskit/media-card@67.2.0
|
|
1294
|
+
- @atlaskit/media-common@1.0.1
|
|
1295
|
+
- @atlaskit/chunkinator@1.1.0
|
|
993
1296
|
|
|
994
1297
|
## 6.0.0
|
|
995
1298
|
|
|
996
1299
|
### Minor Changes
|
|
997
1300
|
|
|
998
|
-
-
|
|
1301
|
+
- [minor][eb962d2c36](https://bitbucket.org/atlassian/atlassian-frontend/commits/eb962d2c36):
|
|
999
1302
|
|
|
1000
|
-
|
|
1001
|
-
|
|
1303
|
+
- Add MAX_RESOLUTION constant. Can be imported via direct entry point
|
|
1304
|
+
`import { MAX_RESOLUTION } from '@atlaskit/media-client/constants';`
|
|
1305
|
+
- `Preview` class (`preview` prop in most `FileState`) now has optional field `origin` that
|
|
1306
|
+
can be either `local` or `remote`-
|
|
1307
|
+
[minor][6dcad31e41](https://bitbucket.org/atlassian/atlassian-frontend/commits/6dcad31e41):
|
|
1002
1308
|
|
|
1003
|
-
|
|
1004
|
-
|
|
1309
|
+
- Added Stargate integration to MediaPicker popup.
|
|
1310
|
+
- Added `useMediaPickerPopup` option to Editor which enables using MediaPicker popup even when
|
|
1311
|
+
userAuthProvider is not provided.
|
|
1005
1312
|
|
|
1006
|
-
|
|
1313
|
+
### Using Stargate Integration
|
|
1007
1314
|
|
|
1008
|
-
|
|
1315
|
+
Stargate integration is enabled by default as long as an `userAuthProvider` is not provided to
|
|
1316
|
+
`MediaClient`.
|
|
1009
1317
|
|
|
1010
|
-
|
|
1318
|
+
By default it uses the current domain as base URL. If you need to use a different base URL you
|
|
1319
|
+
can provide a `stargateBaseUrl` configuration:
|
|
1011
1320
|
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1321
|
+
```
|
|
1322
|
+
import { MediaClient } from '@atlaskit/media-client';
|
|
1323
|
+
const mediaClient = new MediaClient({ authProvider, stargateBaseUrl: 'http://stargate-url' });
|
|
1324
|
+
```
|
|
1016
1325
|
|
|
1017
|
-
|
|
1018
|
-
|
|
1326
|
+
_Note_: Editor default behaviour is falling back to native file upload when `userAuthProvider`
|
|
1327
|
+
is not provided. In order to avoid that, and being able to use Stargate, you need to set Media
|
|
1328
|
+
option `useMediaPickerPopup` to true.
|
|
1019
1329
|
|
|
1020
1330
|
### Patch Changes
|
|
1021
1331
|
|
|
1022
|
-
-
|
|
1332
|
+
- [patch][70b68943d1](https://bitbucket.org/atlassian/atlassian-frontend/commits/70b68943d1):
|
|
1023
1333
|
|
|
1024
|
-
|
|
1334
|
+
text/plain files now match media api and return a doc mediaType- Updated dependencies
|
|
1335
|
+
[9d2da865dd](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d2da865dd):
|
|
1025
1336
|
|
|
1026
|
-
-
|
|
1027
|
-
|
|
1028
|
-
-
|
|
1029
|
-
|
|
1030
|
-
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1337
|
+
- Updated dependencies
|
|
1338
|
+
[dae900bf82](https://bitbucket.org/atlassian/atlassian-frontend/commits/dae900bf82):
|
|
1339
|
+
- Updated dependencies
|
|
1340
|
+
[9a93eff8e6](https://bitbucket.org/atlassian/atlassian-frontend/commits/9a93eff8e6):
|
|
1341
|
+
- Updated dependencies
|
|
1342
|
+
[d49ebd7c7a](https://bitbucket.org/atlassian/atlassian-frontend/commits/d49ebd7c7a):
|
|
1343
|
+
- Updated dependencies
|
|
1344
|
+
[6dcad31e41](https://bitbucket.org/atlassian/atlassian-frontend/commits/6dcad31e41):
|
|
1345
|
+
- Updated dependencies
|
|
1346
|
+
[8c9e4f1ec6](https://bitbucket.org/atlassian/atlassian-frontend/commits/8c9e4f1ec6):
|
|
1347
|
+
- Updated dependencies
|
|
1348
|
+
[3cbc8a49a2](https://bitbucket.org/atlassian/atlassian-frontend/commits/3cbc8a49a2):
|
|
1349
|
+
- @atlaskit/media-card@67.1.1
|
|
1350
|
+
- @atlaskit/build-utils@2.6.4
|
|
1351
|
+
- @atlaskit/media-test-helpers@27.1.0
|
|
1352
|
+
- @atlaskit/media-core@31.1.0
|
|
1353
|
+
- @atlaskit/docs@8.5.0
|
|
1037
1354
|
|
|
1038
1355
|
## 5.0.2
|
|
1039
1356
|
|
|
1040
1357
|
### Patch Changes
|
|
1041
1358
|
|
|
1042
|
-
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
-
|
|
1048
|
-
|
|
1049
|
-
-
|
|
1050
|
-
|
|
1051
|
-
-
|
|
1052
|
-
|
|
1053
|
-
-
|
|
1054
|
-
|
|
1055
|
-
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1359
|
+
- [patch][b408e050ab](https://bitbucket.org/atlassian/atlassian-frontend/commits/b408e050ab):
|
|
1360
|
+
|
|
1361
|
+
Emit ErrorFileState when file has failed to upload- Updated dependencies
|
|
1362
|
+
[66dcced7a0](https://bitbucket.org/atlassian/atlassian-frontend/commits/66dcced7a0):
|
|
1363
|
+
|
|
1364
|
+
- Updated dependencies
|
|
1365
|
+
[196500df34](https://bitbucket.org/atlassian/atlassian-frontend/commits/196500df34):
|
|
1366
|
+
- Updated dependencies
|
|
1367
|
+
[be57ca3829](https://bitbucket.org/atlassian/atlassian-frontend/commits/be57ca3829):
|
|
1368
|
+
- Updated dependencies
|
|
1369
|
+
[d7ed7b1513](https://bitbucket.org/atlassian/atlassian-frontend/commits/d7ed7b1513):
|
|
1370
|
+
- Updated dependencies
|
|
1371
|
+
[41a2496393](https://bitbucket.org/atlassian/atlassian-frontend/commits/41a2496393):
|
|
1372
|
+
- Updated dependencies
|
|
1373
|
+
[39ee28797d](https://bitbucket.org/atlassian/atlassian-frontend/commits/39ee28797d):
|
|
1374
|
+
- Updated dependencies
|
|
1375
|
+
[bbf5eb8824](https://bitbucket.org/atlassian/atlassian-frontend/commits/bbf5eb8824):
|
|
1376
|
+
- Updated dependencies
|
|
1377
|
+
[eea5e9bd8c](https://bitbucket.org/atlassian/atlassian-frontend/commits/eea5e9bd8c):
|
|
1378
|
+
- Updated dependencies
|
|
1379
|
+
[695e1c1c31](https://bitbucket.org/atlassian/atlassian-frontend/commits/695e1c1c31):
|
|
1380
|
+
- Updated dependencies
|
|
1381
|
+
[6b06a7baa9](https://bitbucket.org/atlassian/atlassian-frontend/commits/6b06a7baa9):
|
|
1382
|
+
- Updated dependencies
|
|
1383
|
+
[8b34c7371d](https://bitbucket.org/atlassian/atlassian-frontend/commits/8b34c7371d):
|
|
1384
|
+
- @atlaskit/docs@8.4.0
|
|
1385
|
+
- @atlaskit/media-test-helpers@27.0.0
|
|
1386
|
+
- @atlaskit/media-card@67.1.0
|
|
1387
|
+
- @atlaskit/media-core@31.0.5
|
|
1388
|
+
- @atlaskit/button@13.3.9
|
|
1061
1389
|
|
|
1062
1390
|
## 5.0.1
|
|
1063
1391
|
|
|
1064
1392
|
### Patch Changes
|
|
1065
1393
|
|
|
1066
|
-
-
|
|
1394
|
+
- [patch][6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
1067
1395
|
|
|
1068
|
-
|
|
1396
|
+
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
1397
|
+
[6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
1069
1398
|
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1399
|
+
- @atlaskit/docs@8.3.2
|
|
1400
|
+
- @atlaskit/button@13.3.7
|
|
1401
|
+
- @atlaskit/type-helpers@4.2.3
|
|
1402
|
+
- @atlaskit/media-card@67.0.3
|
|
1403
|
+
- @atlaskit/media-core@31.0.4
|
|
1404
|
+
- @atlaskit/media-test-helpers@26.1.1
|
|
1076
1405
|
|
|
1077
1406
|
## 5.0.0
|
|
1078
1407
|
|
|
1079
1408
|
### Major Changes
|
|
1080
1409
|
|
|
1081
|
-
-
|
|
1410
|
+
- [major][6ee177aeb4](https://bitbucket.org/atlassian/atlassian-frontend/commits/6ee177aeb4):
|
|
1082
1411
|
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1412
|
+
Stream caches in media-client now use ReplaySubjects instead of Observables. For the most part,
|
|
1413
|
+
this is just the interface that's being updated, as under the hood ReplaySubject was already
|
|
1414
|
+
getting used. ReplaySubjects better suit our use case because they track 1 version of history of
|
|
1415
|
+
the file state. As a consumer, there shouldn't be any necessary code changes. ReplaySubjects
|
|
1416
|
+
extend Observable, so the current usage should continue to work.
|
|
1086
1417
|
|
|
1087
1418
|
### Patch Changes
|
|
1088
1419
|
|
|
1089
|
-
-
|
|
1090
|
-
|
|
1091
|
-
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1420
|
+
- Updated dependencies
|
|
1421
|
+
[5504a7da8c](https://bitbucket.org/atlassian/atlassian-frontend/commits/5504a7da8c):
|
|
1422
|
+
- Updated dependencies
|
|
1423
|
+
[966622bd45](https://bitbucket.org/atlassian/atlassian-frontend/commits/966622bd45):
|
|
1424
|
+
- Updated dependencies
|
|
1425
|
+
[d2b8166208](https://bitbucket.org/atlassian/atlassian-frontend/commits/d2b8166208):
|
|
1426
|
+
- Updated dependencies
|
|
1427
|
+
[6ee177aeb4](https://bitbucket.org/atlassian/atlassian-frontend/commits/6ee177aeb4):
|
|
1428
|
+
- @atlaskit/media-card@67.0.1
|
|
1429
|
+
- @atlaskit/media-test-helpers@26.0.0
|
|
1430
|
+
- @atlaskit/docs@8.3.0
|
|
1431
|
+
- @atlaskit/media-core@31.0.3
|
|
1097
1432
|
|
|
1098
1433
|
## 4.3.0
|
|
1099
1434
|
|
|
1100
1435
|
### Minor Changes
|
|
1101
1436
|
|
|
1102
|
-
-
|
|
1437
|
+
- [minor][8c7f8fcf92](https://bitbucket.org/atlassian/atlassian-frontend/commits/8c7f8fcf92):
|
|
1103
1438
|
|
|
1104
|
-
|
|
1439
|
+
Exposes an utilitary function `createFileStateSubject` which can be used to create ReplaySubject
|
|
1440
|
+
objects of type FileState
|
|
1105
1441
|
|
|
1106
1442
|
### Patch Changes
|
|
1107
1443
|
|
|
1108
|
-
-
|
|
1444
|
+
- [patch][a47d750b5d](https://bitbucket.org/atlassian/atlassian-frontend/commits/a47d750b5d):
|
|
1109
1445
|
|
|
1110
|
-
|
|
1446
|
+
dont make collection a required param in getAttrsFromUrl - @atlaskit/media-test-helpers@25.2.7
|
|
1111
1447
|
|
|
1112
1448
|
## 4.2.2
|
|
1113
1449
|
|
|
1114
1450
|
### Patch Changes
|
|
1115
1451
|
|
|
1116
|
-
-
|
|
1117
|
-
|
|
1118
|
-
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1452
|
+
- Updated dependencies
|
|
1453
|
+
[486a5aec29](https://bitbucket.org/atlassian/atlassian-frontend/commits/486a5aec29):
|
|
1454
|
+
- Updated dependencies
|
|
1455
|
+
[03c917044e](https://bitbucket.org/atlassian/atlassian-frontend/commits/03c917044e):
|
|
1456
|
+
- Updated dependencies
|
|
1457
|
+
[d3f4c97f6a](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3f4c97f6a):
|
|
1458
|
+
- Updated dependencies
|
|
1459
|
+
[4a223473c5](https://bitbucket.org/atlassian/atlassian-frontend/commits/4a223473c5):
|
|
1460
|
+
- @atlaskit/media-card@67.0.0
|
|
1461
|
+
- @atlaskit/button@13.3.5
|
|
1462
|
+
- @atlaskit/media-core@31.0.2
|
|
1463
|
+
- @atlaskit/media-test-helpers@25.2.6
|
|
1124
1464
|
|
|
1125
1465
|
## 4.2.1
|
|
1126
1466
|
|
|
1127
1467
|
### Patch Changes
|
|
1128
1468
|
|
|
1129
|
-
-
|
|
1469
|
+
- [patch][36f6e99c5b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/36f6e99c5b):
|
|
1130
1470
|
|
|
1131
|
-
|
|
1471
|
+
Fix type errors caused when generating declaration files
|
|
1132
1472
|
|
|
1133
1473
|
## 4.2.0
|
|
1134
1474
|
|
|
1135
1475
|
### Minor Changes
|
|
1136
1476
|
|
|
1137
|
-
-
|
|
1477
|
+
- [minor][24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
|
|
1138
1478
|
|
|
1139
|
-
|
|
1479
|
+
fixed media client retrying aborted request-
|
|
1480
|
+
[minor][24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
|
|
1140
1481
|
|
|
1141
|
-
|
|
1482
|
+
export safeUnsubscribe util to prevent exceptions when unsubscribing from RXJS Subscriptions
|
|
1142
1483
|
|
|
1143
1484
|
### Patch Changes
|
|
1144
1485
|
|
|
1145
|
-
-
|
|
1486
|
+
- [patch][24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
|
|
1146
1487
|
|
|
1147
|
-
|
|
1488
|
+
Check if the subscription is defined before calling unsubscribe in utils observableToPromise-
|
|
1489
|
+
Updated dependencies
|
|
1490
|
+
[24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
|
|
1148
1491
|
|
|
1149
|
-
|
|
1492
|
+
- @atlaskit/media-card@66.1.2
|
|
1150
1493
|
|
|
1151
1494
|
## 4.1.1
|
|
1152
1495
|
|
|
1153
1496
|
### Patch Changes
|
|
1154
1497
|
|
|
1155
|
-
-
|
|
1498
|
+
- [patch][579779f5aa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/579779f5aa):
|
|
1156
1499
|
|
|
1157
|
-
|
|
1500
|
+
MS-2423 add retries on 5xx errors and network errors to HTTP calls
|
|
1158
1501
|
|
|
1159
1502
|
## 4.1.0
|
|
1160
1503
|
|
|
1161
1504
|
### Minor Changes
|
|
1162
1505
|
|
|
1163
|
-
-
|
|
1506
|
+
- [minor][ed9aafe0e2](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ed9aafe0e2):
|
|
1164
1507
|
|
|
1165
|
-
|
|
1508
|
+
Fix withMediaClient to allow external files to work when mediaClientConfig is not defined
|
|
1166
1509
|
|
|
1167
1510
|
## 4.0.1
|
|
1168
1511
|
|
|
1169
1512
|
### Patch Changes
|
|
1170
1513
|
|
|
1171
|
-
-
|
|
1514
|
+
- [patch][c0da69b4dc](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c0da69b4dc):
|
|
1172
1515
|
|
|
1173
|
-
|
|
1516
|
+
[MS-2626] Fix objectToQueryString when there is an object using null as value
|
|
1174
1517
|
|
|
1175
1518
|
## 4.0.0
|
|
1176
1519
|
|
|
1177
1520
|
### Minor Changes
|
|
1178
1521
|
|
|
1179
|
-
-
|
|
1522
|
+
- [minor][cbe5316ac9](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cbe5316ac9):
|
|
1180
1523
|
|
|
1181
|
-
|
|
1524
|
+
http failures now return Error instances rather than the Response-
|
|
1525
|
+
[minor][51dfee6d35](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/51dfee6d35):
|
|
1182
1526
|
|
|
1183
|
-
|
|
1527
|
+
Image, Binary and Artifact files will be cached for 30 days
|
|
1184
1528
|
|
|
1185
1529
|
### Patch Changes
|
|
1186
1530
|
|
|
1187
|
-
-
|
|
1531
|
+
- [patch][436b46929e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/436b46929e):
|
|
1188
1532
|
|
|
1189
|
-
|
|
1533
|
+
Removed auth credentials from query params in GET requests. Now they are being sent in the heder
|
|
1534
|
+
to help on browser caching.
|
|
1190
1535
|
|
|
1191
|
-
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1536
|
+
- Updated dependencies
|
|
1537
|
+
[24b8ea2667](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24b8ea2667):
|
|
1538
|
+
- @atlaskit/media-test-helpers@25.2.2
|
|
1539
|
+
- @atlaskit/media-card@66.0.1
|
|
1540
|
+
- @atlaskit/media-core@31.0.0
|
|
1195
1541
|
|
|
1196
1542
|
## 3.0.1
|
|
1197
1543
|
|
|
1198
1544
|
### Patch Changes
|
|
1199
1545
|
|
|
1200
|
-
-
|
|
1546
|
+
- [patch][f1bbcf3847](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f1bbcf3847):
|
|
1201
1547
|
|
|
1202
|
-
|
|
1548
|
+
dont log id when is not a valid uuid in FileFetcher getFileState
|
|
1203
1549
|
|
|
1204
1550
|
## 3.0.0
|
|
1205
1551
|
|
|
1206
1552
|
### Major Changes
|
|
1207
1553
|
|
|
1208
|
-
-
|
|
1554
|
+
- [major][ae4f336a3a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ae4f336a3a):
|
|
1209
1555
|
|
|
1210
1556
|
**FABDODGEM-13 Editor Damask Release** - [Internal post](http://go.atlassian.com/damask-release)
|
|
1211
1557
|
|
|
1212
1558
|
**BREAKING CHANGES**
|
|
1213
1559
|
|
|
1214
|
-
-
|
|
1215
|
-
|
|
1216
|
-
-
|
|
1217
|
-
|
|
1218
|
-
-
|
|
1219
|
-
-
|
|
1220
|
-
-
|
|
1560
|
+
- **Media:** Removed deprecated "context" property from media components in favor of
|
|
1561
|
+
"mediaClientConfig". This affects all public media UI components.
|
|
1562
|
+
- https://product-fabric.atlassian.net/browse/MS-2038
|
|
1563
|
+
- **Tasks & Decisions:** Removed containerAri for task-decisions components.
|
|
1564
|
+
- https://product-fabric.atlassian.net/browse/ED-7631
|
|
1565
|
+
- **Renderer:** Adapts to task-decision changes.
|
|
1566
|
+
- **Editor Mobile Bridge:** Adapts to task-decision changes.
|
|
1567
|
+
- **Util Data Test:** Adapts to task-decision changes.
|
|
1221
1568
|
|
|
1222
1569
|
---
|
|
1223
1570
|
|
|
@@ -1227,170 +1574,175 @@ tables, media, mobile, emoji, tasks & decisions, analytics
|
|
|
1227
1574
|
|
|
1228
1575
|
**Editor**
|
|
1229
1576
|
|
|
1230
|
-
-
|
|
1231
|
-
|
|
1232
|
-
-
|
|
1233
|
-
|
|
1234
|
-
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
-
|
|
1244
|
-
|
|
1245
|
-
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1577
|
+
- Support nested actions in stage-0 schema; Change DOM representation of actions
|
|
1578
|
+
- https://product-fabric.atlassian.net/browse/ED-7674
|
|
1579
|
+
- Updated i18n translations
|
|
1580
|
+
- https://product-fabric.atlassian.net/browse/ED-7750
|
|
1581
|
+
- Improved analytics & crash reporting (via a new error boundary)
|
|
1582
|
+
- https://product-fabric.atlassian.net/browse/ED-7766
|
|
1583
|
+
- https://product-fabric.atlassian.net/browse/ED-7806
|
|
1584
|
+
- Improvements to heading anchor links.
|
|
1585
|
+
- https://product-fabric.atlassian.net/browse/ED-7849
|
|
1586
|
+
- https://product-fabric.atlassian.net/browse/ED-7860
|
|
1587
|
+
- Copy/Paste improvements
|
|
1588
|
+
- https://product-fabric.atlassian.net/browse/ED-7840
|
|
1589
|
+
- https://product-fabric.atlassian.net/browse/ED-7849
|
|
1590
|
+
- Fixes for the selection state of Smart links.
|
|
1591
|
+
- https://product-fabric.atlassian.net/browse/ED-7602?src=confmacro
|
|
1592
|
+
- Improvements for table resizing & column creation.
|
|
1593
|
+
- https://product-fabric.atlassian.net/browse/ED-7698
|
|
1594
|
+
- https://product-fabric.atlassian.net/browse/ED-7319
|
|
1595
|
+
- https://product-fabric.atlassian.net/browse/ED-7799
|
|
1249
1596
|
|
|
1250
1597
|
**Mobile**
|
|
1251
1598
|
|
|
1252
|
-
-
|
|
1253
|
-
|
|
1254
|
-
-
|
|
1255
|
-
|
|
1599
|
+
- GASv3 Analytics Events are now relayed from the web to the native context, ready for
|
|
1600
|
+
dispatching.
|
|
1601
|
+
- https://product-fabric.atlassian.net/browse/FM-2502
|
|
1602
|
+
- Hybrid Renderer Recycler view now handles invalid ADF nodes gracefully.
|
|
1603
|
+
- https://product-fabric.atlassian.net/browse/FM-2370
|
|
1256
1604
|
|
|
1257
1605
|
**Media**
|
|
1258
1606
|
|
|
1259
|
-
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
-
|
|
1265
|
-
|
|
1266
|
-
-
|
|
1267
|
-
|
|
1268
|
-
-
|
|
1269
|
-
|
|
1270
|
-
-
|
|
1271
|
-
|
|
1607
|
+
- Improved analytics
|
|
1608
|
+
- https://product-fabric.atlassian.net/browse/MS-2036
|
|
1609
|
+
- https://product-fabric.atlassian.net/browse/MS-2145
|
|
1610
|
+
- https://product-fabric.atlassian.net/browse/MS-2416
|
|
1611
|
+
- https://product-fabric.atlassian.net/browse/MS-2487
|
|
1612
|
+
- Added shouldOpenMediaViewer property to renderer
|
|
1613
|
+
- https://product-fabric.atlassian.net/browse/MS-2393
|
|
1614
|
+
- Implemented analytics for file copy
|
|
1615
|
+
- https://product-fabric.atlassian.net/browse/MS-2036
|
|
1616
|
+
- New `media-viewed` event dispatched when media is interacted with via the media card or viewer.
|
|
1617
|
+
- https://product-fabric.atlassian.net/browse/MS-2284
|
|
1618
|
+
- Support for `alt` text attribute on media image elements.
|
|
1619
|
+
- https://product-fabric.atlassian.net/browse/ED-7776
|
|
1272
1620
|
|
|
1273
1621
|
**i18n-tools**
|
|
1274
1622
|
|
|
1275
1623
|
Bumped dependencies.
|
|
1276
1624
|
|
|
1277
|
-
-
|
|
1625
|
+
- [major][e7b5c917de](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e7b5c917de):
|
|
1278
1626
|
|
|
1279
|
-
|
|
1627
|
+
## Breaking change
|
|
1280
1628
|
|
|
1281
|
-
|
|
1629
|
+
> remove Context related method and types from public api in favour of mediaClientConfig
|
|
1282
1630
|
|
|
1283
|
-
|
|
1631
|
+
### Removed
|
|
1284
1632
|
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1633
|
+
```
|
|
1634
|
+
* WithContextOrMediaClientConfig
|
|
1635
|
+
* WithContextOrMediaClientConfigProps
|
|
1636
|
+
```
|
|
1289
1637
|
|
|
1290
|
-
|
|
1638
|
+
### Added
|
|
1291
1639
|
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1640
|
+
```
|
|
1641
|
+
* WithMediaClientConfig
|
|
1642
|
+
* WithMediaClientConfigProps
|
|
1643
|
+
```
|
|
1296
1644
|
|
|
1297
|
-
|
|
1645
|
+
### Changed
|
|
1298
1646
|
|
|
1299
|
-
|
|
1647
|
+
**getMediaClient**
|
|
1300
1648
|
|
|
1301
|
-
|
|
1649
|
+
- Before
|
|
1302
1650
|
|
|
1303
|
-
|
|
1651
|
+
> works with passing either mediaClientConfig or context
|
|
1304
1652
|
|
|
1305
|
-
|
|
1306
|
-
|
|
1653
|
+
```
|
|
1654
|
+
import {getMediaClient} from '@atlaskit/media-client'
|
|
1307
1655
|
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1656
|
+
const mediaClientFromMediaClientConfig = getMediaClient({
|
|
1657
|
+
mediaClientConfig: {
|
|
1658
|
+
authProvider: () => Promise.resolve()
|
|
1659
|
+
}
|
|
1660
|
+
})
|
|
1313
1661
|
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1662
|
+
const mediaClientFromContext = getMediaClient({
|
|
1663
|
+
context: {
|
|
1664
|
+
authProvider: () => Promise.resolve()
|
|
1665
|
+
}
|
|
1666
|
+
})
|
|
1667
|
+
```
|
|
1320
1668
|
|
|
1321
|
-
|
|
1669
|
+
- Now
|
|
1322
1670
|
|
|
1323
|
-
|
|
1671
|
+
> only accepts mediaClientConfig as the only param
|
|
1324
1672
|
|
|
1325
|
-
|
|
1326
|
-
|
|
1673
|
+
```
|
|
1674
|
+
import {getMediaClient} from '@atlaskit/media-client'
|
|
1327
1675
|
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1676
|
+
const mediaClient = getMediaClient({
|
|
1677
|
+
authProvider: () => Promise.resolve()
|
|
1678
|
+
})
|
|
1679
|
+
```
|
|
1332
1680
|
|
|
1333
1681
|
### Minor Changes
|
|
1334
1682
|
|
|
1335
|
-
-
|
|
1683
|
+
- [minor][0b62e854d7](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0b62e854d7):
|
|
1336
1684
|
|
|
1337
|
-
|
|
1685
|
+
New event `media-viewed` with type `UploadEventPayloadMap` is added to
|
|
1686
|
+
`globalMediaEventEmitter`-
|
|
1687
|
+
[minor][550d260bfc](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/550d260bfc):
|
|
1338
1688
|
|
|
1339
|
-
|
|
1689
|
+
Introducing support for alt-text in media.
|
|
1340
1690
|
|
|
1341
|
-
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1691
|
+
- Updated dependencies
|
|
1692
|
+
[c3e65f1b9e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c3e65f1b9e):
|
|
1693
|
+
- @atlaskit/media-core@30.0.17
|
|
1694
|
+
- @atlaskit/media-test-helpers@25.2.0
|
|
1695
|
+
- @atlaskit/media-card@66.0.0
|
|
1345
1696
|
|
|
1346
1697
|
## 2.3.2
|
|
1347
1698
|
|
|
1348
1699
|
### Patch Changes
|
|
1349
1700
|
|
|
1350
|
-
-
|
|
1701
|
+
- [patch][35d2229b2a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/35d2229b2a):
|
|
1351
1702
|
|
|
1352
|
-
|
|
1703
|
+
Adding missing license to packages and update to Copyright 2019 Atlassian Pty Ltd.
|
|
1353
1704
|
|
|
1354
1705
|
## 2.3.1
|
|
1355
1706
|
|
|
1356
1707
|
### Patch Changes
|
|
1357
1708
|
|
|
1358
|
-
-
|
|
1709
|
+
- [patch][a2d0043716](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a2d0043716):
|
|
1359
1710
|
|
|
1360
|
-
|
|
1711
|
+
Updated version of analytics-next to fix potential incompatibilities with TS 3.6
|
|
1361
1712
|
|
|
1362
1713
|
## 2.3.0
|
|
1363
1714
|
|
|
1364
1715
|
### Minor Changes
|
|
1365
1716
|
|
|
1366
|
-
-
|
|
1717
|
+
- [minor][65ada7f318](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/65ada7f318):
|
|
1367
1718
|
|
|
1368
|
-
|
|
1719
|
+
**FABDODGEM-12 Editor Cashmere Release**
|
|
1369
1720
|
|
|
1370
|
-
|
|
1721
|
+
- [Internal post](http://go.atlassian.com/cashmere-release)
|
|
1371
1722
|
|
|
1372
|
-
|
|
1723
|
+
**Affected editor components:**
|
|
1373
1724
|
|
|
1374
|
-
|
|
1725
|
+
tables, media, mobile, text color, emoji, copy/paste, analytics
|
|
1375
1726
|
|
|
1376
|
-
|
|
1727
|
+
**Performance**
|
|
1377
1728
|
|
|
1378
|
-
|
|
1379
|
-
|
|
1729
|
+
- Async import for code blocks and task items on renderer
|
|
1730
|
+
- https://product-fabric.atlassian.net/browse/ED-7155
|
|
1380
1731
|
|
|
1381
|
-
|
|
1732
|
+
**Table**
|
|
1382
1733
|
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1734
|
+
- Add support to sort tables that contains smart links
|
|
1735
|
+
- https://product-fabric.atlassian.net/browse/ED-7449
|
|
1736
|
+
- Scale table when changing to full width mode
|
|
1737
|
+
- https://product-fabric.atlassian.net/browse/ED-7724
|
|
1387
1738
|
|
|
1388
|
-
|
|
1739
|
+
**Text color**
|
|
1389
1740
|
|
|
1390
|
-
|
|
1391
|
-
|
|
1741
|
+
- Update text color toolbar with right color when text is inside a list, panel, etc.
|
|
1742
|
+
- https://product-fabric.atlassian.net/browse/FM-1752
|
|
1392
1743
|
|
|
1393
|
-
**Mobile** - Implement undo/redo interface on Hybrid Editor -
|
|
1744
|
+
**Mobile** - Implement undo/redo interface on Hybrid Editor -
|
|
1745
|
+
https://product-fabric.atlassian.net/browse/FM-2393
|
|
1394
1746
|
|
|
1395
1747
|
**Copy and Paste**
|
|
1396
1748
|
|
|
@@ -1405,17 +1757,17 @@ Bumped dependencies.
|
|
|
1405
1757
|
|
|
1406
1758
|
**Media**
|
|
1407
1759
|
|
|
1408
|
-
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
-
|
|
1416
|
-
|
|
1417
|
-
-
|
|
1418
|
-
|
|
1760
|
+
- Add analytics events and error reporting [NEW BIG FEATURE]
|
|
1761
|
+
- https://product-fabric.atlassian.net/browse/MS-2275
|
|
1762
|
+
- https://product-fabric.atlassian.net/browse/MS-2329
|
|
1763
|
+
- https://product-fabric.atlassian.net/browse/MS-2330
|
|
1764
|
+
- https://product-fabric.atlassian.net/browse/MS-2331
|
|
1765
|
+
- https://product-fabric.atlassian.net/browse/MS-2332
|
|
1766
|
+
- https://product-fabric.atlassian.net/browse/MS-2390
|
|
1767
|
+
- Fixed issue where we can’t insert same file from MediaPicker twice
|
|
1768
|
+
- https://product-fabric.atlassian.net/browse/MS-2080
|
|
1769
|
+
- Disable upload of external files to media
|
|
1770
|
+
- https://product-fabric.atlassian.net/browse/MS-2372
|
|
1419
1771
|
|
|
1420
1772
|
**Notable Bug Fixes**
|
|
1421
1773
|
|
|
@@ -1430,256 +1782,273 @@ Bumped dependencies.
|
|
|
1430
1782
|
- Fixed bug where custom emojis are not been showed on the editor
|
|
1431
1783
|
- https://product-fabric.atlassian.net/browse/ED-7726
|
|
1432
1784
|
|
|
1433
|
-
-
|
|
1785
|
+
- [minor][02dd8e6c76](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/02dd8e6c76):
|
|
1434
1786
|
|
|
1435
|
-
|
|
1787
|
+
Add RECENTS_COLLECTION constant with the name of user's recents collection
|
|
1436
1788
|
|
|
1437
1789
|
## 2.2.1
|
|
1438
1790
|
|
|
1439
1791
|
### Patch Changes
|
|
1440
1792
|
|
|
1441
|
-
-
|
|
1793
|
+
- [patch][598fde647a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/598fde647a):
|
|
1442
1794
|
|
|
1443
|
-
|
|
1795
|
+
dont append file attrs to url in Safari
|
|
1444
1796
|
|
|
1445
1797
|
## 2.2.0
|
|
1446
1798
|
|
|
1447
1799
|
### Minor Changes
|
|
1448
1800
|
|
|
1449
|
-
-
|
|
1801
|
+
- [minor][8e6bce4da8](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/8e6bce4da8):
|
|
1450
1802
|
|
|
1451
|
-
|
|
1803
|
+
New fetchMaxRes parameter for getImage method allows to set default download params (4096 width
|
|
1804
|
+
and height and 'fit' mode)-
|
|
1805
|
+
[minor][d9abdd3030](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d9abdd3030):
|
|
1452
1806
|
|
|
1453
|
-
|
|
1807
|
+
Expose url helpers for copy&paste and stringify params
|
|
1454
1808
|
|
|
1455
1809
|
## 2.1.2
|
|
1456
1810
|
|
|
1457
|
-
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1811
|
+
- Updated dependencies
|
|
1812
|
+
[af72468517](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/af72468517):
|
|
1813
|
+
- @atlaskit/media-core@30.0.14
|
|
1814
|
+
- @atlaskit/media-test-helpers@25.1.1
|
|
1815
|
+
- @atlaskit/media-card@65.0.0
|
|
1461
1816
|
|
|
1462
1817
|
## 2.1.1
|
|
1463
1818
|
|
|
1464
1819
|
### Patch Changes
|
|
1465
1820
|
|
|
1466
|
-
-
|
|
1821
|
+
- [patch][9c28ef71fe](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9c28ef71fe):
|
|
1467
1822
|
|
|
1468
|
-
|
|
1823
|
+
Add missing peerDependency in package.json
|
|
1469
1824
|
|
|
1470
1825
|
## 2.1.0
|
|
1471
1826
|
|
|
1472
1827
|
### Minor Changes
|
|
1473
1828
|
|
|
1474
|
-
-
|
|
1829
|
+
- [minor][e5c3f6ae3e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e5c3f6ae3e):
|
|
1475
1830
|
|
|
1476
|
-
|
|
1831
|
+
ED-6216: External images will now be uploaded to media services if possible
|
|
1477
1832
|
|
|
1478
1833
|
## 2.0.5
|
|
1479
1834
|
|
|
1480
1835
|
### Patch Changes
|
|
1481
1836
|
|
|
1482
|
-
-
|
|
1837
|
+
- [patch][097b696613](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/097b696613):
|
|
1483
1838
|
|
|
1484
|
-
|
|
1839
|
+
Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving
|
|
1840
|
+
non-relative imports as relative imports
|
|
1485
1841
|
|
|
1486
1842
|
## 2.0.4
|
|
1487
1843
|
|
|
1488
1844
|
### Patch Changes
|
|
1489
1845
|
|
|
1490
|
-
-
|
|
1846
|
+
- [patch][0d7d459f1a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0d7d459f1a):
|
|
1491
1847
|
|
|
1492
|
-
|
|
1848
|
+
Fixes type errors which were incompatible with TS 3.6
|
|
1493
1849
|
|
|
1494
1850
|
## 2.0.3
|
|
1495
1851
|
|
|
1496
1852
|
### Patch Changes
|
|
1497
1853
|
|
|
1498
|
-
-
|
|
1854
|
+
- [patch][ecca4d1dbb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ecca4d1dbb):
|
|
1499
1855
|
|
|
1500
|
-
|
|
1856
|
+
Upgraded Typescript to 3.3.x
|
|
1501
1857
|
|
|
1502
1858
|
## 2.0.2
|
|
1503
1859
|
|
|
1504
|
-
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1860
|
+
- Updated dependencies
|
|
1861
|
+
[3624730f44](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3624730f44):
|
|
1862
|
+
- @atlaskit/media-core@30.0.11
|
|
1863
|
+
- @atlaskit/media-test-helpers@25.0.2
|
|
1864
|
+
- @atlaskit/media-card@64.0.0
|
|
1508
1865
|
|
|
1509
1866
|
## 2.0.1
|
|
1510
1867
|
|
|
1511
|
-
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1868
|
+
- Updated dependencies
|
|
1869
|
+
[69586b5353](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/69586b5353):
|
|
1870
|
+
- @atlaskit/media-card@63.3.11
|
|
1871
|
+
- @atlaskit/media-core@30.0.10
|
|
1872
|
+
- @atlaskit/media-test-helpers@25.0.0
|
|
1515
1873
|
|
|
1516
1874
|
## 2.0.0
|
|
1517
1875
|
|
|
1518
1876
|
### Major Changes
|
|
1519
1877
|
|
|
1520
|
-
-
|
|
1878
|
+
- [major][ee804f3eeb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ee804f3eeb):
|
|
1521
1879
|
|
|
1522
|
-
|
|
1880
|
+
Remove getCurrentState method from FileStreamCache
|
|
1523
1881
|
|
|
1524
|
-
|
|
1882
|
+
Before you could do:
|
|
1525
1883
|
|
|
1526
|
-
|
|
1527
|
-
|
|
1884
|
+
```
|
|
1885
|
+
import {getFileStreamsCache} from '@atlaskit/media-client'
|
|
1528
1886
|
|
|
1529
|
-
|
|
1530
|
-
|
|
1887
|
+
const currentFileState = await getFileStreamsCache().getCurrentState('some-uuid');
|
|
1888
|
+
```
|
|
1531
1889
|
|
|
1532
|
-
|
|
1533
|
-
|
|
1890
|
+
That will return the last state from that fileState in a promise rather than having to use
|
|
1891
|
+
Observables to subscribe and get the last event.
|
|
1534
1892
|
|
|
1535
|
-
|
|
1893
|
+
Now you could just use the already existing method getCurrentState from mediaClient:
|
|
1536
1894
|
|
|
1537
|
-
|
|
1538
|
-
|
|
1895
|
+
```
|
|
1896
|
+
import {getMediaClient} from '@atlaskit/media-client';
|
|
1539
1897
|
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1898
|
+
const mediaClient = getMediaClient({
|
|
1899
|
+
mediaClientConfig: {} // Some MediaClientConfig
|
|
1900
|
+
});
|
|
1901
|
+
const state = await mediaClient.file.getCurrentState('some-uuid');
|
|
1902
|
+
```
|
|
1545
1903
|
|
|
1546
1904
|
## 1.5.3
|
|
1547
1905
|
|
|
1548
1906
|
### Patch Changes
|
|
1549
1907
|
|
|
1550
|
-
-
|
|
1908
|
+
- [patch][13eed9b89c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/13eed9b89c):
|
|
1551
1909
|
|
|
1552
|
-
|
|
1910
|
+
populate media cache when using FileFetcher:copyFile
|
|
1553
1911
|
|
|
1554
1912
|
## 1.5.2
|
|
1555
1913
|
|
|
1556
1914
|
### Patch Changes
|
|
1557
1915
|
|
|
1558
|
-
-
|
|
1916
|
+
- [patch][6742fbf2cc](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6742fbf2cc):
|
|
1559
1917
|
|
|
1560
|
-
|
|
1918
|
+
bugfix, fixes missing version.json file
|
|
1561
1919
|
|
|
1562
1920
|
## 1.5.1
|
|
1563
1921
|
|
|
1564
1922
|
### Patch Changes
|
|
1565
1923
|
|
|
1566
|
-
-
|
|
1924
|
+
- [patch][18dfac7332](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18dfac7332):
|
|
1567
1925
|
|
|
1568
|
-
|
|
1926
|
+
In this PR, we are:
|
|
1569
1927
|
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1928
|
+
- Re-introducing dist build folders
|
|
1929
|
+
- Adding back cjs
|
|
1930
|
+
- Replacing es5 by cjs and es2015 by esm
|
|
1931
|
+
- Creating folders at the root for entry-points
|
|
1932
|
+
- Removing the generation of the entry-points at the root Please see this
|
|
1933
|
+
[ticket](https://product-fabric.atlassian.net/browse/BUILDTOOLS-118) or this
|
|
1934
|
+
[page](https://hello.atlassian.net/wiki/spaces/FED/pages/452325500/Finishing+Atlaskit+multiple+entry+points)
|
|
1935
|
+
for further details
|
|
1576
1936
|
|
|
1577
1937
|
## 1.5.0
|
|
1578
1938
|
|
|
1579
1939
|
### Minor Changes
|
|
1580
1940
|
|
|
1581
|
-
-
|
|
1941
|
+
- [minor][60af38e3f7](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/60af38e3f7):
|
|
1582
1942
|
|
|
1583
|
-
|
|
1943
|
+
Expose globalMediaEventEmitter to allow consumers to subscribe to global events rather than per
|
|
1944
|
+
context/mediaClient instance
|
|
1584
1945
|
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1946
|
+
```
|
|
1947
|
+
//
|
|
1948
|
+
// BEFORE
|
|
1949
|
+
//
|
|
1950
|
+
import {ContextFactory} from '@atlaskit/media-core'
|
|
1590
1951
|
|
|
1591
|
-
|
|
1952
|
+
const context = ContextFactory.create();
|
|
1592
1953
|
|
|
1593
|
-
|
|
1594
|
-
|
|
1954
|
+
// Events happen per instance
|
|
1955
|
+
context.on('file-added', ...)
|
|
1595
1956
|
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1957
|
+
//
|
|
1958
|
+
// NOW
|
|
1959
|
+
//
|
|
1599
1960
|
|
|
1600
|
-
|
|
1961
|
+
import {globalMediaEventEmitter} from '@atlaskit/media-client';
|
|
1601
1962
|
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1963
|
+
// Context happens globally on any upload. This is needed since there might be multiple mediaClient instances at runtime
|
|
1964
|
+
globalMediaEventEmitter.on('file-added', ...);
|
|
1965
|
+
```
|
|
1605
1966
|
|
|
1606
1967
|
## 1.4.0
|
|
1607
1968
|
|
|
1608
1969
|
### Minor Changes
|
|
1609
1970
|
|
|
1610
|
-
-
|
|
1971
|
+
- [minor][02185fba43](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/02185fba43):
|
|
1611
1972
|
|
|
1612
|
-
|
|
1973
|
+
getMediaClient is now exposed
|
|
1613
1974
|
|
|
1614
1975
|
## 1.3.0
|
|
1615
1976
|
|
|
1616
1977
|
### Minor Changes
|
|
1617
1978
|
|
|
1618
|
-
-
|
|
1979
|
+
- [minor][61ed1951ce](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/61ed1951ce):
|
|
1619
1980
|
|
|
1620
|
-
|
|
1981
|
+
Expose getFileBinaryURL method in mediaClient.file.getFileBinaryURL
|
|
1621
1982
|
|
|
1622
1983
|
## 1.2.1
|
|
1623
1984
|
|
|
1624
|
-
-
|
|
1985
|
+
- [patch][b0ef06c685](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0ef06c685):
|
|
1625
1986
|
|
|
1626
|
-
|
|
1987
|
+
- This is just a safety release in case anything strange happened in in the previous one. See
|
|
1988
|
+
Pull Request #5942 for details
|
|
1627
1989
|
|
|
1628
1990
|
## 1.2.0
|
|
1629
1991
|
|
|
1630
|
-
-
|
|
1992
|
+
- [minor][dcda79d48c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/dcda79d48c):
|
|
1631
1993
|
|
|
1632
|
-
|
|
1994
|
+
- `withMediaClient` and associated Props are introduced to make possible soft transition from
|
|
1995
|
+
Context based media components to Media Client Config ones.
|
|
1633
1996
|
|
|
1634
|
-
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1997
|
+
- Updated dependencies
|
|
1998
|
+
[9ecfef12ac](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9ecfef12ac):
|
|
1999
|
+
- @atlaskit/media-card@63.1.0
|
|
2000
|
+
- @atlaskit/media-core@30.0.3
|
|
2001
|
+
- @atlaskit/media-test-helpers@24.0.0
|
|
1638
2002
|
|
|
1639
2003
|
## 1.1.5
|
|
1640
2004
|
|
|
1641
|
-
-
|
|
2005
|
+
- [patch][af1cbd4ce4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/af1cbd4ce4):
|
|
1642
2006
|
|
|
1643
|
-
|
|
2007
|
+
- Removing unnecessary deps and dev deps in media-core and media-client
|
|
1644
2008
|
|
|
1645
2009
|
## 1.1.4
|
|
1646
2010
|
|
|
1647
|
-
-
|
|
2011
|
+
- [patch][12aa76d5b5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/12aa76d5b5):
|
|
1648
2012
|
|
|
1649
|
-
|
|
2013
|
+
- ED-6814: fixed rendering mediaSingle without collection
|
|
1650
2014
|
|
|
1651
2015
|
## 1.1.3
|
|
1652
2016
|
|
|
1653
|
-
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
2017
|
+
- Updated dependencies
|
|
2018
|
+
[ed3f034232](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ed3f034232):
|
|
2019
|
+
- @atlaskit/media-card@63.0.2
|
|
2020
|
+
- @atlaskit/media-core@30.0.1
|
|
2021
|
+
- @atlaskit/media-test-helpers@23.0.0
|
|
1657
2022
|
|
|
1658
2023
|
## 1.1.2
|
|
1659
2024
|
|
|
1660
|
-
-
|
|
2025
|
+
- [patch][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
|
|
1661
2026
|
|
|
1662
|
-
|
|
2027
|
+
- Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
|
|
2028
|
+
this package, please ensure you use at least this version of react and react-dom.
|
|
1663
2029
|
|
|
1664
2030
|
## 1.1.1
|
|
1665
2031
|
|
|
1666
|
-
-
|
|
2032
|
+
- [patch][2f58d39758](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2f58d39758):
|
|
1667
2033
|
|
|
1668
|
-
|
|
2034
|
+
- Fix problem with double exporting one of the existing items
|
|
1669
2035
|
|
|
1670
2036
|
## 1.1.0
|
|
1671
2037
|
|
|
1672
|
-
-
|
|
2038
|
+
- [minor][8536258182](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/8536258182):
|
|
1673
2039
|
|
|
1674
|
-
|
|
2040
|
+
- expose on + off + emit methods on client in order to communicate events with integrators. At
|
|
2041
|
+
this point the only emitted event is 'file-added'
|
|
1675
2042
|
|
|
1676
2043
|
## 1.0.0
|
|
1677
2044
|
|
|
1678
|
-
-
|
|
2045
|
+
- [major][e38d662f7d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e38d662f7d):
|
|
1679
2046
|
|
|
1680
|
-
|
|
2047
|
+
- Media API Web Client Library initial release. It contains mostly combined code from
|
|
2048
|
+
media-core and media-store.
|
|
1681
2049
|
|
|
1682
|
-
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
2050
|
+
- Updated dependencies
|
|
2051
|
+
[e7292ab444](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e7292ab444):
|
|
2052
|
+
- @atlaskit/media-card@61.0.0
|
|
2053
|
+
- @atlaskit/media-test-helpers@21.3.0
|
|
2054
|
+
- @atlaskit/media-core@29.2.0
|