@atlaskit/media-common 9.0.1 → 9.0.3
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 +66 -54
- package/dist/cjs/analytics/constants.js +1 -2
- package/dist/cjs/analytics/withMediaAnalyticsContext.js +2 -3
- package/dist/cjs/downloadUrl.js +2 -3
- package/dist/cjs/mediaFeatureFlag-local.js +2 -3
- package/dist/cjs/mediaFeatureFlags/mediaFeatureFlags.js +3 -6
- package/dist/cjs/mediaFeatureFlags/productKeys.js +2 -3
- package/dist/cjs/mediaFeatureFlags/types.js +1 -2
- package/dist/cjs/mediaTypeUtils/index.js +2 -3
- package/dist/cjs/mediaTypeUtils/isArchive.js +2 -3
- package/dist/cjs/mediaTypeUtils/isMimeTypeSupportedByBrowser.js +6 -11
- package/dist/cjs/mediaTypeUtils/isMimeTypeSupportedByServer.js +7 -13
- package/dist/cjs/test-helpers/dataURIs/smallImageURI.js +1 -2
- package/dist/cjs/test-helpers/dataURIs/smallTransparentImageURI.js +1 -2
- package/dist/cjs/test-helpers/dataURIs/tallImageURI.js +1 -2
- package/dist/cjs/test-helpers/dataURIs/videoPreviewURI.js +1 -2
- package/dist/cjs/test-helpers/dataURIs/videoURI.js +1 -2
- package/dist/cjs/test-helpers/dataURIs/vr_test_small_image.js +1 -2
- package/dist/cjs/test-helpers/dataURIs/wideImageURI.js +1 -2
- package/dist/cjs/test-helpers/dataURIs/wideTransparentImageURI.js +1 -2
- package/dist/cjs/test-helpers/flushPromises.js +2 -3
- package/dist/cjs/test-helpers/getJest.js +2 -3
- package/dist/cjs/test-helpers/jestHelpers.js +11 -17
- package/dist/cjs/test-helpers/nextTick.js +3 -5
- package/dist/cjs/utils/helpers.js +5 -11
- package/dist/es2019/test-helpers/jestHelpers.js +2 -0
- package/dist/es2019/utils/helpers.js +1 -1
- package/dist/esm/test-helpers/jestHelpers.js +2 -0
- package/dist/esm/utils/helpers.js +0 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,28 @@
|
|
|
1
1
|
# @atlaskit/media-common
|
|
2
2
|
|
|
3
|
+
## 9.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#41501](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41501) [`b3cb749dc67`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b3cb749dc67) - Fix TS errors in AFM
|
|
8
|
+
|
|
9
|
+
## 9.0.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#41371](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41371) [`a5766038a35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a5766038a35) - Fix TS errors in AFM
|
|
14
|
+
|
|
3
15
|
## 9.0.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
|
-
- [`ec4867e1376`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ec4867e1376) - Removed captions flag and replaced with a new media prop `allowCaptions`. `allowCaptions` is set to `false` by default and products will need to opt in to be able to use captions from now on.
|
|
19
|
+
- [#39320](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39320) [`ec4867e1376`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ec4867e1376) - Removed captions flag and replaced with a new media prop `allowCaptions`. `allowCaptions` is set to `false` by default and products will need to opt in to be able to use captions from now on.
|
|
8
20
|
|
|
9
21
|
## 9.0.0
|
|
10
22
|
|
|
11
23
|
### Major Changes
|
|
12
24
|
|
|
13
|
-
- [`7b6a2c6671b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7b6a2c6671b) - Introducing 'media-state' for handling media internal file state.
|
|
25
|
+
- [#38532](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38532) [`7b6a2c6671b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7b6a2c6671b) - Introducing 'media-state' for handling media internal file state.
|
|
14
26
|
Introducing 'media-client-react' to provide hooks for seamless media-client integration with React.
|
|
15
27
|
Introducing 'MediaCardV2' with a feature flag to replace rxjs based fileState subscription with 'useFileState' hook.
|
|
16
28
|
Removed unused feature flags APIs from 'media-client' and its helper functions from 'media-common'.
|
|
@@ -19,13 +31,13 @@
|
|
|
19
31
|
|
|
20
32
|
### Minor Changes
|
|
21
33
|
|
|
22
|
-
- [`ede6ee7aaab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ede6ee7aaab) - Updated tests, examples and moving towards /test-helper export in packages to prevent circular dependancies
|
|
34
|
+
- [#39255](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39255) [`ede6ee7aaab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ede6ee7aaab) - Updated tests, examples and moving towards /test-helper export in packages to prevent circular dependancies
|
|
23
35
|
|
|
24
36
|
## 8.1.0
|
|
25
37
|
|
|
26
38
|
### Minor Changes
|
|
27
39
|
|
|
28
|
-
- [`b06cd74349c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b06cd74349c) - # Media Picker
|
|
40
|
+
- [#39007](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39007) [`b06cd74349c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b06cd74349c) - # Media Picker
|
|
29
41
|
|
|
30
42
|
Make Clipboard secured by adding `container` and `onPaste()` to `config` `prop`. These two params address customer dissatisfaction when attachments are pasted duplicated, or to unwanted Jira issues (https://product-fabric.atlassian.net/browse/MEX-2454).
|
|
31
43
|
|
|
@@ -48,49 +60,49 @@
|
|
|
48
60
|
|
|
49
61
|
### Major Changes
|
|
50
62
|
|
|
51
|
-
- [`ed81e630547`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ed81e630547) - MEX-2089 Remove timestamp feature flag on AFP
|
|
63
|
+
- [#37897](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37897) [`ed81e630547`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ed81e630547) - MEX-2089 Remove timestamp feature flag on AFP
|
|
52
64
|
|
|
53
65
|
## 7.1.0
|
|
54
66
|
|
|
55
67
|
### Minor Changes
|
|
56
68
|
|
|
57
|
-
- [`9d91eb4b59b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d91eb4b59b) - MEX-2411 Remove Observed Width feature flag
|
|
69
|
+
- [#36051](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36051) [`9d91eb4b59b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d91eb4b59b) - MEX-2411 Remove Observed Width feature flag
|
|
58
70
|
|
|
59
71
|
## 7.0.0
|
|
60
72
|
|
|
61
73
|
### Major Changes
|
|
62
74
|
|
|
63
|
-
- [`5dcaf51b269`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5dcaf51b269) - Removed memoryCacheLogging feature flag
|
|
75
|
+
- [#34912](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34912) [`5dcaf51b269`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5dcaf51b269) - Removed memoryCacheLogging feature flag
|
|
64
76
|
|
|
65
77
|
## 6.0.0
|
|
66
78
|
|
|
67
79
|
### Major Changes
|
|
68
80
|
|
|
69
|
-
- [`a425ccdeb0c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a425ccdeb0c) - Remove 'newCardExperience' feature flag
|
|
81
|
+
- [#34887](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34887) [`a425ccdeb0c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a425ccdeb0c) - Remove 'newCardExperience' feature flag
|
|
70
82
|
|
|
71
83
|
## 5.0.0
|
|
72
84
|
|
|
73
85
|
### Major Changes
|
|
74
86
|
|
|
75
|
-
- [`e725edbb0d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e725edbb0d9) - Removed feature flag fetchFileStateAfterUpload
|
|
87
|
+
- [#34192](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34192) [`e725edbb0d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e725edbb0d9) - Removed feature flag fetchFileStateAfterUpload
|
|
76
88
|
|
|
77
89
|
## 4.1.2
|
|
78
90
|
|
|
79
91
|
### Patch Changes
|
|
80
92
|
|
|
81
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
93
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
82
94
|
|
|
83
95
|
## 4.1.1
|
|
84
96
|
|
|
85
97
|
### Patch Changes
|
|
86
98
|
|
|
87
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
99
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
88
100
|
|
|
89
101
|
## 4.1.0
|
|
90
102
|
|
|
91
103
|
### Minor Changes
|
|
92
104
|
|
|
93
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
105
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
94
106
|
|
|
95
107
|
### Patch Changes
|
|
96
108
|
|
|
@@ -100,7 +112,7 @@
|
|
|
100
112
|
|
|
101
113
|
### Major Changes
|
|
102
114
|
|
|
103
|
-
- [`b37723f2cfa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b37723f2cfa) - Removed unused method filterFeatureFlagKeysAllProducts
|
|
115
|
+
- [#31299](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31299) [`b37723f2cfa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b37723f2cfa) - Removed unused method filterFeatureFlagKeysAllProducts
|
|
104
116
|
Added new method getFeatureFlagKeysAllProducts
|
|
105
117
|
|
|
106
118
|
### Patch Changes
|
|
@@ -111,7 +123,7 @@
|
|
|
111
123
|
|
|
112
124
|
### Major Changes
|
|
113
125
|
|
|
114
|
-
- [`c2bc38829e1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c2bc38829e1) - Removed mediaUploadApiV2 feature flag (now as a breaking change)
|
|
126
|
+
- [#30248](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30248) [`c2bc38829e1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c2bc38829e1) - Removed mediaUploadApiV2 feature flag (now as a breaking change)
|
|
115
127
|
|
|
116
128
|
### Minor Changes
|
|
117
129
|
|
|
@@ -127,19 +139,19 @@
|
|
|
127
139
|
|
|
128
140
|
### Patch Changes
|
|
129
141
|
|
|
130
|
-
- [`9a88e254997`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9a88e254997) - Recovered Media Feature Flag mediaUploadApiV2
|
|
142
|
+
- [#29320](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29320) [`9a88e254997`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9a88e254997) - Recovered Media Feature Flag mediaUploadApiV2
|
|
131
143
|
|
|
132
144
|
## 2.19.0
|
|
133
145
|
|
|
134
146
|
### Minor Changes
|
|
135
147
|
|
|
136
|
-
- [`2b3859896cc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2b3859896cc) - Added new Feature Flag to control internal Media Client behaviour
|
|
148
|
+
- [#28932](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28932) [`2b3859896cc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2b3859896cc) - Added new Feature Flag to control internal Media Client behaviour
|
|
137
149
|
|
|
138
150
|
## 2.18.0
|
|
139
151
|
|
|
140
152
|
### Minor Changes
|
|
141
153
|
|
|
142
|
-
- [`81573c1dfa7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/81573c1dfa7) - Items call creates a batched metadata trace Id
|
|
154
|
+
- [#28090](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28090) [`81573c1dfa7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/81573c1dfa7) - Items call creates a batched metadata trace Id
|
|
143
155
|
- [`0bccac57db6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0bccac57db6) - remove mediaUploadApiV2 Feature flag
|
|
144
156
|
|
|
145
157
|
### Patch Changes
|
|
@@ -152,7 +164,7 @@
|
|
|
152
164
|
|
|
153
165
|
### Minor Changes
|
|
154
166
|
|
|
155
|
-
- [`2c402e87213`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2c402e87213) - [Experimental] Add traceId in media card get image request.
|
|
167
|
+
- [#25860](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/25860) [`2c402e87213`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2c402e87213) - [Experimental] Add traceId in media card get image request.
|
|
156
168
|
|
|
157
169
|
### Patch Changes
|
|
158
170
|
|
|
@@ -162,52 +174,52 @@
|
|
|
162
174
|
|
|
163
175
|
### Patch Changes
|
|
164
176
|
|
|
165
|
-
- [`42116304154`](https://bitbucket.org/atlassian/atlassian-frontend/commits/42116304154) - Mocks console when it's not available
|
|
177
|
+
- [#24710](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24710) [`42116304154`](https://bitbucket.org/atlassian/atlassian-frontend/commits/42116304154) - Mocks console when it's not available
|
|
166
178
|
- Updated dependencies
|
|
167
179
|
|
|
168
180
|
## 2.16.3
|
|
169
181
|
|
|
170
182
|
### Patch Changes
|
|
171
183
|
|
|
172
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
184
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
173
185
|
|
|
174
186
|
## 2.16.2
|
|
175
187
|
|
|
176
188
|
### Patch Changes
|
|
177
189
|
|
|
178
|
-
- [`c81ee725277`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c81ee725277) - Add attribute fileMediaType into media viewer loadSucceeded event
|
|
190
|
+
- [#24004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24004) [`c81ee725277`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c81ee725277) - Add attribute fileMediaType into media viewer loadSucceeded event
|
|
179
191
|
- Updated dependencies
|
|
180
192
|
|
|
181
193
|
## 2.16.1
|
|
182
194
|
|
|
183
195
|
### Patch Changes
|
|
184
196
|
|
|
185
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
197
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
186
198
|
|
|
187
199
|
## 2.16.0
|
|
188
200
|
|
|
189
201
|
### Minor Changes
|
|
190
202
|
|
|
191
|
-
- [`a332288b5ea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a332288b5ea) - Added analytics for media-card memoryCacheLogging and added relevant featureFlag keys for media-common package.
|
|
203
|
+
- [#23381](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23381) [`a332288b5ea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a332288b5ea) - Added analytics for media-card memoryCacheLogging and added relevant featureFlag keys for media-common package.
|
|
192
204
|
|
|
193
205
|
## 2.15.0
|
|
194
206
|
|
|
195
207
|
### Minor Changes
|
|
196
208
|
|
|
197
|
-
- [`1a76e2839e6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1a76e2839e6) - Default value for mediaUploadApiV2 Media feature flag set to true.
|
|
209
|
+
- [#22029](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22029) [`1a76e2839e6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1a76e2839e6) - Default value for mediaUploadApiV2 Media feature flag set to true.
|
|
198
210
|
|
|
199
211
|
## 2.14.0
|
|
200
212
|
|
|
201
213
|
### Minor Changes
|
|
202
214
|
|
|
203
|
-
- [`bfde909c9b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bfde909c9b4) - Add new feature flag mediaUploadApiV2
|
|
215
|
+
- [#21570](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21570) [`bfde909c9b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bfde909c9b4) - Add new feature flag mediaUploadApiV2
|
|
204
216
|
- [`8d6064cece4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d6064cece4) - Add missing values for the launch darkly feature flags name
|
|
205
217
|
|
|
206
218
|
## 2.13.0
|
|
207
219
|
|
|
208
220
|
### Minor Changes
|
|
209
221
|
|
|
210
|
-
- [`501240ef964`](https://bitbucket.org/atlassian/atlassian-frontend/commits/501240ef964) - Export `filterFeatureFlagKeysAllProducts`
|
|
222
|
+
- [#20721](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20721) [`501240ef964`](https://bitbucket.org/atlassian/atlassian-frontend/commits/501240ef964) - Export `filterFeatureFlagKeysAllProducts`
|
|
211
223
|
- [`a09f961b9b2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a09f961b9b2) - Add filterFeatureFlagNamesWithAllProducts for returning the feature flags for all the products
|
|
212
224
|
- [`a4f822c2d5d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a4f822c2d5d) - Add MediaFeatureFlagMap for Confluence and Jira
|
|
213
225
|
|
|
@@ -215,44 +227,44 @@
|
|
|
215
227
|
|
|
216
228
|
### Patch Changes
|
|
217
229
|
|
|
218
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
230
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
219
231
|
|
|
220
232
|
## 2.12.0
|
|
221
233
|
|
|
222
234
|
### Minor Changes
|
|
223
235
|
|
|
224
|
-
- [`bac667f95d5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bac667f95d5) - Export utility filterFeatureFlagNames and type RequiredMediaFeatureFlags
|
|
236
|
+
- [#20033](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20033) [`bac667f95d5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bac667f95d5) - Export utility filterFeatureFlagNames and type RequiredMediaFeatureFlags
|
|
225
237
|
|
|
226
238
|
## 2.11.0
|
|
227
239
|
|
|
228
240
|
### Minor Changes
|
|
229
241
|
|
|
230
|
-
- [`8742dbe70bd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8742dbe70bd) - MEX-1102 Removed lodash dependencies from media component and converted all to local functions (lightweight helpers)
|
|
242
|
+
- [#19019](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19019) [`8742dbe70bd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8742dbe70bd) - MEX-1102 Removed lodash dependencies from media component and converted all to local functions (lightweight helpers)
|
|
231
243
|
|
|
232
244
|
## 2.10.3
|
|
233
245
|
|
|
234
246
|
### Patch Changes
|
|
235
247
|
|
|
236
|
-
- [`5293a48368e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5293a48368e) - fix image size in layout with ref and width observer
|
|
248
|
+
- [#18526](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18526) [`5293a48368e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5293a48368e) - fix image size in layout with ref and width observer
|
|
237
249
|
|
|
238
250
|
## 2.10.2
|
|
239
251
|
|
|
240
252
|
### Patch Changes
|
|
241
253
|
|
|
242
|
-
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Switched as false default value for FF "Timestamp on video"
|
|
254
|
+
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Switched as false default value for FF "Timestamp on video"
|
|
243
255
|
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Adding a feature flag for TimestampOnVideo
|
|
244
256
|
|
|
245
257
|
## 2.10.1
|
|
246
258
|
|
|
247
259
|
### Patch Changes
|
|
248
260
|
|
|
249
|
-
- [`c55c736ecea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c55c736ecea) - Patch VULN AFP-3486 AFP-3487 AFP-3488 AFP-3489
|
|
261
|
+
- [#17475](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/17475) [`c55c736ecea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c55c736ecea) - Patch VULN AFP-3486 AFP-3487 AFP-3488 AFP-3489
|
|
250
262
|
|
|
251
263
|
## 2.10.0
|
|
252
264
|
|
|
253
265
|
### Minor Changes
|
|
254
266
|
|
|
255
|
-
- [`f461edcfd05`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f461edcfd05) - Added a comparer helper for Media Feature Flags objects
|
|
267
|
+
- [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`f461edcfd05`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f461edcfd05) - Added a comparer helper for Media Feature Flags objects
|
|
256
268
|
|
|
257
269
|
### Patch Changes
|
|
258
270
|
|
|
@@ -266,13 +278,13 @@
|
|
|
266
278
|
|
|
267
279
|
### Patch Changes
|
|
268
280
|
|
|
269
|
-
- [`fe9ced0cd70`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fe9ced0cd70) - Removed feature flags for polling settings
|
|
281
|
+
- [#14777](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14777) [`fe9ced0cd70`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fe9ced0cd70) - Removed feature flags for polling settings
|
|
270
282
|
|
|
271
283
|
## 2.9.0
|
|
272
284
|
|
|
273
285
|
### Minor Changes
|
|
274
286
|
|
|
275
|
-
- [`46d9d2872b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/46d9d2872b4) - Video Analytics - Add UI events for CustomMediaPlayer
|
|
287
|
+
- [#13864](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13864) [`46d9d2872b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/46d9d2872b4) - Video Analytics - Add UI events for CustomMediaPlayer
|
|
276
288
|
|
|
277
289
|
### Patch Changes
|
|
278
290
|
|
|
@@ -284,7 +296,7 @@
|
|
|
284
296
|
|
|
285
297
|
### Minor Changes
|
|
286
298
|
|
|
287
|
-
- [`c74e598326e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c74e598326e) - Add new members (see below). Extra entry point `mediaTypeUtils` for all of them is added.
|
|
299
|
+
- [#11649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11649) [`c74e598326e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c74e598326e) - Add new members (see below). Extra entry point `mediaTypeUtils` for all of them is added.
|
|
288
300
|
|
|
289
301
|
New members:
|
|
290
302
|
|
|
@@ -307,7 +319,7 @@
|
|
|
307
319
|
|
|
308
320
|
### Minor Changes
|
|
309
321
|
|
|
310
|
-
- [`3cd9ee2d15b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3cd9ee2d15b) - Added RxJS compatiblity notice in Media docs
|
|
322
|
+
- [#11113](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11113) [`3cd9ee2d15b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3cd9ee2d15b) - Added RxJS compatiblity notice in Media docs
|
|
311
323
|
|
|
312
324
|
### Patch Changes
|
|
313
325
|
|
|
@@ -317,20 +329,20 @@
|
|
|
317
329
|
|
|
318
330
|
### Patch Changes
|
|
319
331
|
|
|
320
|
-
- [`49363db4abf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/49363db4abf) - Modify getLocalMediaFeature to accept extra param and add unit tests
|
|
332
|
+
- [#10569](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10569) [`49363db4abf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/49363db4abf) - Modify getLocalMediaFeature to accept extra param and add unit tests
|
|
321
333
|
- Updated dependencies
|
|
322
334
|
|
|
323
335
|
## 2.6.1
|
|
324
336
|
|
|
325
337
|
### Patch Changes
|
|
326
338
|
|
|
327
|
-
- [`db441ee18c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db441ee18c3) - Handle localStorage and sessionStorage safely
|
|
339
|
+
- [#10230](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10230) [`db441ee18c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db441ee18c3) - Handle localStorage and sessionStorage safely
|
|
328
340
|
|
|
329
341
|
## 2.6.0
|
|
330
342
|
|
|
331
343
|
### Minor Changes
|
|
332
344
|
|
|
333
|
-
- [`e5413204ba8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e5413204ba8) - Add optional errorDetail to FailAttributes for extra debugging context
|
|
345
|
+
- [#8644](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8644) [`e5413204ba8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e5413204ba8) - Add optional errorDetail to FailAttributes for extra debugging context
|
|
334
346
|
- [`b7b0cdea03f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b7b0cdea03f) - add generic type for MediaAnalyticsContext<DataType>
|
|
335
347
|
- [`f2db5a33953`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f2db5a33953) - Added withMediaAnalyticsContext() in media-common for use by media components
|
|
336
348
|
- [`ce5671da5e7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ce5671da5e7) - keep media analytics fileAttributes nested in attributes
|
|
@@ -350,13 +362,13 @@
|
|
|
350
362
|
|
|
351
363
|
### Patch Changes
|
|
352
364
|
|
|
353
|
-
- [`ab112f3020`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ab112f3020) - Updated media-common analytics exports
|
|
365
|
+
- [#7425](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/7425) [`ab112f3020`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ab112f3020) - Updated media-common analytics exports
|
|
354
366
|
|
|
355
367
|
## 2.5.0
|
|
356
368
|
|
|
357
369
|
### Minor Changes
|
|
358
370
|
|
|
359
|
-
- [`ad2a0e3352`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad2a0e3352) - add common analytics types for media
|
|
371
|
+
- [#7170](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/7170) [`ad2a0e3352`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad2a0e3352) - add common analytics types for media
|
|
360
372
|
|
|
361
373
|
### Patch Changes
|
|
362
374
|
|
|
@@ -368,45 +380,45 @@
|
|
|
368
380
|
|
|
369
381
|
### Patch Changes
|
|
370
382
|
|
|
371
|
-
- [`91061fed3e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/91061fed3e) - Updated default values for Polling feature Flags
|
|
383
|
+
- [#6571](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6571) [`91061fed3e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/91061fed3e) - Updated default values for Polling feature Flags
|
|
372
384
|
- [`11b4fc8033`](https://bitbucket.org/atlassian/atlassian-frontend/commits/11b4fc8033) - ensure maximum media poll interval ms is 3.3min not 33min
|
|
373
385
|
|
|
374
386
|
## 2.4.3
|
|
375
387
|
|
|
376
388
|
### Patch Changes
|
|
377
389
|
|
|
378
|
-
- [`956cf2d5ee`](https://bitbucket.org/atlassian/atlassian-frontend/commits/956cf2d5ee) - HOT-93465 docs(changeset): ensure maximum media poll interval ms is 3.3min not 33min
|
|
390
|
+
- [#6521](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6521) [`956cf2d5ee`](https://bitbucket.org/atlassian/atlassian-frontend/commits/956cf2d5ee) - HOT-93465 docs(changeset): ensure maximum media poll interval ms is 3.3min not 33min
|
|
379
391
|
|
|
380
392
|
## 2.4.2
|
|
381
393
|
|
|
382
394
|
### Patch Changes
|
|
383
395
|
|
|
384
|
-
- [`0698db3a1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0698db3a1f) - Updated default values for Polling feature Flags
|
|
396
|
+
- [#6478](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6478) [`0698db3a1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0698db3a1f) - Updated default values for Polling feature Flags
|
|
385
397
|
|
|
386
398
|
## 2.4.1
|
|
387
399
|
|
|
388
400
|
### Patch Changes
|
|
389
401
|
|
|
390
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
402
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
391
403
|
|
|
392
404
|
## 2.4.0
|
|
393
405
|
|
|
394
406
|
### Minor Changes
|
|
395
407
|
|
|
396
|
-
- [`f2b871e61d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f2b871e61d) - expose NumericalCardDimensions from media-common
|
|
408
|
+
- [#6228](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6228) [`f2b871e61d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f2b871e61d) - expose NumericalCardDimensions from media-common
|
|
397
409
|
|
|
398
410
|
## 2.3.0
|
|
399
411
|
|
|
400
412
|
### Minor Changes
|
|
401
413
|
|
|
402
|
-
- [`bf98a47a0f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bf98a47a0f) - Enhance polling strategy to limit to finite attempts with timing backoff
|
|
414
|
+
- [#5516](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5516) [`bf98a47a0f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bf98a47a0f) - Enhance polling strategy to limit to finite attempts with timing backoff
|
|
403
415
|
- [`73613210d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/73613210d4) - Adding support for Code and Email files so that they are now able to be previewed in the viewer.
|
|
404
416
|
|
|
405
417
|
## 2.2.1
|
|
406
418
|
|
|
407
419
|
### Patch Changes
|
|
408
420
|
|
|
409
|
-
- [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
421
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
410
422
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
411
423
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
412
424
|
|
|
@@ -414,13 +426,13 @@
|
|
|
414
426
|
|
|
415
427
|
### Minor Changes
|
|
416
428
|
|
|
417
|
-
- [`7d831363d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d831363d9) - Migrated to declarative entry points
|
|
429
|
+
- [#4749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4749) [`7d831363d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d831363d9) - Migrated to declarative entry points
|
|
418
430
|
|
|
419
431
|
## 2.1.1
|
|
420
432
|
|
|
421
433
|
### Patch Changes
|
|
422
434
|
|
|
423
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
435
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
424
436
|
|
|
425
437
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
426
438
|
to prevent duplicates of tslib being bundled.
|
|
@@ -429,7 +441,7 @@
|
|
|
429
441
|
|
|
430
442
|
### Minor Changes
|
|
431
443
|
|
|
432
|
-
- [`62eb1114c4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62eb1114c4) - Enable passing of MediaFeatureFlags through Editor Renderer via MediaOptions to Media components
|
|
444
|
+
- [#3823](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3823) [`62eb1114c4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62eb1114c4) - Enable passing of MediaFeatureFlags through Editor Renderer via MediaOptions to Media components
|
|
433
445
|
- [`6faafb144c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6faafb144c) - Introduce MediaFeatureFlags. Refactor components to use.
|
|
434
446
|
- [`2202870181`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2202870181) - Added support for zip previews in media viewer
|
|
435
447
|
|
|
@@ -443,14 +455,14 @@
|
|
|
443
455
|
|
|
444
456
|
### Major Changes
|
|
445
457
|
|
|
446
|
-
- [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
458
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
447
459
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
448
460
|
|
|
449
461
|
## 1.1.0
|
|
450
462
|
|
|
451
463
|
### Minor Changes
|
|
452
464
|
|
|
453
|
-
- [`3ae1f77dd4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ae1f77dd4) - Expose MediaType from media-common
|
|
465
|
+
- [#2137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2137) [`3ae1f77dd4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ae1f77dd4) - Expose MediaType from media-common
|
|
454
466
|
|
|
455
467
|
## 1.0.1
|
|
456
468
|
|
|
@@ -4,5 +4,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ANALYTICS_MEDIA_CHANNEL = void 0;
|
|
7
|
-
var ANALYTICS_MEDIA_CHANNEL = 'media';
|
|
8
|
-
exports.ANALYTICS_MEDIA_CHANNEL = ANALYTICS_MEDIA_CHANNEL;
|
|
7
|
+
var ANALYTICS_MEDIA_CHANNEL = exports.ANALYTICS_MEDIA_CHANNEL = 'media';
|
|
@@ -27,7 +27,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
27
27
|
*
|
|
28
28
|
* @see packages/analytics/analytics-next/src/hocs/withAnalyticsContext.tsx
|
|
29
29
|
*/
|
|
30
|
-
var withMediaAnalyticsContext = function withMediaAnalyticsContext(contextPublicAttributes) {
|
|
30
|
+
var withMediaAnalyticsContext = exports.withMediaAnalyticsContext = function withMediaAnalyticsContext(contextPublicAttributes) {
|
|
31
31
|
return function (WrappedComponent) {
|
|
32
32
|
// forwardRef() allows passing React refs to the wrapped component WithMediaAnalyticsContext
|
|
33
33
|
var WithMediaAnalyticsContext = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
@@ -49,5 +49,4 @@ var withMediaAnalyticsContext = function withMediaAnalyticsContext(contextPublic
|
|
|
49
49
|
WrappedComponent.displayName || WrappedComponent.name, ")");
|
|
50
50
|
return WithMediaAnalyticsContext;
|
|
51
51
|
};
|
|
52
|
-
};
|
|
53
|
-
exports.withMediaAnalyticsContext = withMediaAnalyticsContext;
|
|
52
|
+
};
|
package/dist/cjs/downloadUrl.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.downloadUrl = void 0;
|
|
7
|
-
var downloadUrl = function downloadUrl(url, options) {
|
|
7
|
+
var downloadUrl = exports.downloadUrl = function downloadUrl(url, options) {
|
|
8
8
|
var isIE11 = !!window.MSInputMethodContext && !!document.documentMode;
|
|
9
9
|
var isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
10
10
|
var iframeName = 'media-download-iframe';
|
|
@@ -25,5 +25,4 @@ var downloadUrl = function downloadUrl(url, options) {
|
|
|
25
25
|
document.body.appendChild(link);
|
|
26
26
|
link.click();
|
|
27
27
|
document.body.removeChild(link);
|
|
28
|
-
};
|
|
29
|
-
exports.downloadUrl = downloadUrl;
|
|
28
|
+
};
|
|
@@ -5,12 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getLocalMediaFeatureFlag = void 0;
|
|
7
7
|
// window.localStorage is easier to mock in tests if wrapped in this module
|
|
8
|
-
var getLocalMediaFeatureFlag = function getLocalMediaFeatureFlag(key) {
|
|
8
|
+
var getLocalMediaFeatureFlag = exports.getLocalMediaFeatureFlag = function getLocalMediaFeatureFlag(key) {
|
|
9
9
|
try {
|
|
10
10
|
return typeof window !== 'undefined' && window.localStorage ? window.localStorage.getItem(key) : null;
|
|
11
11
|
} catch (e) {
|
|
12
12
|
// do nothing, return null by default
|
|
13
13
|
}
|
|
14
14
|
return null;
|
|
15
|
-
};
|
|
16
|
-
exports.getLocalMediaFeatureFlag = getLocalMediaFeatureFlag;
|
|
15
|
+
};
|
|
@@ -11,7 +11,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
11
11
|
var _types = require("./types");
|
|
12
12
|
var _productKeys = require("./productKeys");
|
|
13
13
|
var _genericFeatureFlag = require("./genericFeatureFlag");
|
|
14
|
-
var filterFeatureFlagNames = function filterFeatureFlagNames(flags) {
|
|
14
|
+
var filterFeatureFlagNames = exports.filterFeatureFlagNames = function filterFeatureFlagNames(flags) {
|
|
15
15
|
var pairs = Object.entries(flags);
|
|
16
16
|
return pairs.filter(function (_ref) {
|
|
17
17
|
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
|
|
@@ -30,8 +30,7 @@ var filterFeatureFlagNames = function filterFeatureFlagNames(flags) {
|
|
|
30
30
|
* Takes a record of {Media Feature Flag Names → boolean}.
|
|
31
31
|
* Returns the Launch Darkly Keys from all products for each of the flags set as true in the input record.
|
|
32
32
|
* */
|
|
33
|
-
exports.
|
|
34
|
-
var getFeatureFlagKeysAllProducts = function getFeatureFlagKeysAllProducts() {
|
|
33
|
+
var getFeatureFlagKeysAllProducts = exports.getFeatureFlagKeysAllProducts = function getFeatureFlagKeysAllProducts() {
|
|
35
34
|
var productKeys = (0, _productKeys.getProductKeys)();
|
|
36
35
|
var ldFeatureFlags = [];
|
|
37
36
|
_types.supportedProducts.forEach(function (product) {
|
|
@@ -53,8 +52,7 @@ var getFeatureFlagKeysAllProducts = function getFeatureFlagKeysAllProducts() {
|
|
|
53
52
|
* If you must set a flag default = true, whenever you remove that flag
|
|
54
53
|
* that change should be released as a MAJOR, because it's a breaking change.
|
|
55
54
|
*/
|
|
56
|
-
exports.
|
|
57
|
-
var defaultMediaFeatureFlags = {
|
|
55
|
+
var defaultMediaFeatureFlags = exports.defaultMediaFeatureFlags = {
|
|
58
56
|
captions: false,
|
|
59
57
|
mediaInline: false,
|
|
60
58
|
// We can't yet switch this feature on
|
|
@@ -73,7 +71,6 @@ var defaultMediaFeatureFlags = {
|
|
|
73
71
|
*
|
|
74
72
|
* (you will see a warning in console if override used)
|
|
75
73
|
* */
|
|
76
|
-
exports.defaultMediaFeatureFlags = defaultMediaFeatureFlags;
|
|
77
74
|
function getMediaFeatureFlag(flagName, featureFlags) {
|
|
78
75
|
return (0, _genericFeatureFlag.getGenericFeatureFlag)(flagName, defaultMediaFeatureFlags, featureFlags);
|
|
79
76
|
}
|
|
@@ -22,7 +22,6 @@ var productKeys = {
|
|
|
22
22
|
securedClipboard: 'issue.details.media-picker-secured-clipboard'
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
var getProductKeys = function getProductKeys() {
|
|
25
|
+
var getProductKeys = exports.getProductKeys = function getProductKeys() {
|
|
26
26
|
return productKeys;
|
|
27
|
-
};
|
|
28
|
-
exports.getProductKeys = getProductKeys;
|
|
27
|
+
};
|
|
@@ -8,5 +8,4 @@ exports.supportedProducts = void 0;
|
|
|
8
8
|
|
|
9
9
|
// With this type we ensure the object will contain all the flags
|
|
10
10
|
|
|
11
|
-
var supportedProducts = ['confluence', 'jira'];
|
|
12
|
-
exports.supportedProducts = supportedProducts;
|
|
11
|
+
var supportedProducts = exports.supportedProducts = ['confluence', 'jira'];
|
|
@@ -73,7 +73,7 @@ Object.defineProperty(exports, "isVideoMimeTypeSupportedByServer", {
|
|
|
73
73
|
var _isArchive = require("./isArchive");
|
|
74
74
|
var _isMimeTypeSupportedByBrowser = require("./isMimeTypeSupportedByBrowser");
|
|
75
75
|
var _isMimeTypeSupportedByServer = require("./isMimeTypeSupportedByServer");
|
|
76
|
-
var getMediaTypeFromMimeType = function getMediaTypeFromMimeType(mimeType) {
|
|
76
|
+
var getMediaTypeFromMimeType = exports.getMediaTypeFromMimeType = function getMediaTypeFromMimeType(mimeType) {
|
|
77
77
|
if ((0, _isArchive.isArchive)(mimeType)) {
|
|
78
78
|
return 'archive';
|
|
79
79
|
}
|
|
@@ -90,5 +90,4 @@ var getMediaTypeFromMimeType = function getMediaTypeFromMimeType(mimeType) {
|
|
|
90
90
|
return 'video';
|
|
91
91
|
}
|
|
92
92
|
return 'unknown';
|
|
93
|
-
};
|
|
94
|
-
exports.getMediaTypeFromMimeType = getMediaTypeFromMimeType;
|
|
93
|
+
};
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.isArchive = void 0;
|
|
7
7
|
// Based on https://en.wikipedia.org/wiki/List_of_archive_formats
|
|
8
|
-
var isArchive = function isArchive(mimeType) {
|
|
8
|
+
var isArchive = exports.isArchive = function isArchive(mimeType) {
|
|
9
9
|
return ['application/x-archive', 'application/x-cpio', 'application/x-shar', 'application/x-iso9660-image', 'application/x-sbx', 'application/x-tar', 'application/x-bzip2', 'application/gzip', 'application/x-gzip', 'application/x-lzip', 'application/x-lzma', 'application/x-lzop', 'application/x-snappy-framed', 'application/x-xz', 'application/x-compress', 'application/zstd', 'application/x-7z-compressed', 'application/x-ace-compressed', 'application/x-astrotite-afa', 'application/x-alz-compressed', 'application/vnd.android.package-archive', 'application/x-freearc', 'application/x-arj', 'application/x-b1', 'application/vnd.ms-cab-compressed', 'application/x-cfs-compressed', 'application/x-dar', 'application/x-dgc-compressed', 'application/x-apple-diskimage', 'application/x-gca-compressed', 'application/java-archive', 'application/x-lzh', 'application/x-lzx', 'application/x-rar-compressed', 'application/x-stuffit', 'application/x-stuffitx', 'application/x-gtar', 'application/x-ms-wim', 'application/x-xar', 'application/zip', 'application/x-zoo', 'application/x-par2'].indexOf(mimeType.toLowerCase()) > -1;
|
|
10
|
-
};
|
|
11
|
-
exports.isArchive = isArchive;
|
|
10
|
+
};
|
|
@@ -5,17 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.isVideoMimeTypeSupportedByBrowser = exports.isMimeTypeSupportedByBrowser = exports.isImageMimeTypeSupportedByBrowser = exports.isDocumentMimeTypeSupportedByBrowser = exports.isAudioMimeTypeSupportedByBrowser = void 0;
|
|
7
7
|
// Based on https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types
|
|
8
|
-
var isImageMimeTypeSupportedByBrowser = function isImageMimeTypeSupportedByBrowser(mimeType) {
|
|
8
|
+
var isImageMimeTypeSupportedByBrowser = exports.isImageMimeTypeSupportedByBrowser = function isImageMimeTypeSupportedByBrowser(mimeType) {
|
|
9
9
|
return ['image/apng', 'image/bmp', 'image/gif', 'image/x-icon', 'image/jpeg', 'image/png', 'image/webp'
|
|
10
10
|
//'image/svg+xml', // Removed because of https://product-fabric.atlassian.net/browse/BMPT-625
|
|
11
11
|
].indexOf(mimeType.toLowerCase()) > -1;
|
|
12
12
|
};
|
|
13
|
-
exports.
|
|
14
|
-
var isDocumentMimeTypeSupportedByBrowser = function isDocumentMimeTypeSupportedByBrowser(mimeType) {
|
|
13
|
+
var isDocumentMimeTypeSupportedByBrowser = exports.isDocumentMimeTypeSupportedByBrowser = function isDocumentMimeTypeSupportedByBrowser(mimeType) {
|
|
15
14
|
return mimeType.toLowerCase() === 'application/pdf';
|
|
16
15
|
};
|
|
17
|
-
exports.
|
|
18
|
-
var isAudioMimeTypeSupportedByBrowser = function isAudioMimeTypeSupportedByBrowser(mimeType) {
|
|
16
|
+
var isAudioMimeTypeSupportedByBrowser = exports.isAudioMimeTypeSupportedByBrowser = function isAudioMimeTypeSupportedByBrowser(mimeType) {
|
|
19
17
|
return ['audio/aac', 'audio/flac', 'audio/mp4', 'audio/mpeg', 'audio/ogg', 'audio/x-ogg', 'audio/wav', 'audio/x-wav'].indexOf(mimeType.toLowerCase()) > -1;
|
|
20
18
|
};
|
|
21
19
|
|
|
@@ -28,12 +26,9 @@ var isAudioMimeTypeSupportedByBrowser = function isAudioMimeTypeSupportedByBrows
|
|
|
28
26
|
* - https://product-fabric.atlassian.net/browse/EDM-634
|
|
29
27
|
* - https://product-fabric.atlassian.net/browse/EDM-426
|
|
30
28
|
*/
|
|
31
|
-
exports.
|
|
32
|
-
var isVideoMimeTypeSupportedByBrowser = function isVideoMimeTypeSupportedByBrowser(mimeType) {
|
|
29
|
+
var isVideoMimeTypeSupportedByBrowser = exports.isVideoMimeTypeSupportedByBrowser = function isVideoMimeTypeSupportedByBrowser(mimeType) {
|
|
33
30
|
return ['video/mp4', 'video/quicktime'].indexOf(mimeType.toLowerCase()) > -1;
|
|
34
31
|
};
|
|
35
|
-
exports.
|
|
36
|
-
var isMimeTypeSupportedByBrowser = function isMimeTypeSupportedByBrowser(mimeType) {
|
|
32
|
+
var isMimeTypeSupportedByBrowser = exports.isMimeTypeSupportedByBrowser = function isMimeTypeSupportedByBrowser(mimeType) {
|
|
37
33
|
return isDocumentMimeTypeSupportedByBrowser(mimeType) || isImageMimeTypeSupportedByBrowser(mimeType) || isAudioMimeTypeSupportedByBrowser(mimeType) || isVideoMimeTypeSupportedByBrowser(mimeType);
|
|
38
|
-
};
|
|
39
|
-
exports.isMimeTypeSupportedByBrowser = isMimeTypeSupportedByBrowser;
|
|
34
|
+
};
|