@atlaskit/media-common 9.0.0 → 9.0.2
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 +65 -53
- 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 +9 -17
- package/dist/cjs/test-helpers/nextTick.js +3 -5
- package/dist/cjs/utils/helpers.js +5 -11
- package/dist/es2019/utils/helpers.js +1 -1
- package/dist/esm/utils/helpers.js +0 -1
- package/dist/types/mediaFeatureFlags/types.d.ts +4 -0
- package/package.json +1 -1
- package/report.api.md +1 -1
- package/dist/types-ts4.5/analytics/constants.d.ts +0 -1
- package/dist/types-ts4.5/analytics/index.d.ts +0 -3
- package/dist/types-ts4.5/analytics/types.d.ts +0 -81
- package/dist/types-ts4.5/analytics/withMediaAnalyticsContext.d.ts +0 -15
- package/dist/types-ts4.5/docs/index.d.ts +0 -3
- package/dist/types-ts4.5/docs/media-use-only.d.ts +0 -5
- package/dist/types-ts4.5/docs/rxjs-notice.d.ts +0 -2
- package/dist/types-ts4.5/docs/singleton-notice.d.ts +0 -2
- package/dist/types-ts4.5/downloadUrl.d.ts +0 -4
- package/dist/types-ts4.5/index.d.ts +0 -19
- package/dist/types-ts4.5/mediaFeatureFlag-local.d.ts +0 -1
- package/dist/types-ts4.5/mediaFeatureFlags/genericFeatureFlag.d.ts +0 -7
- package/dist/types-ts4.5/mediaFeatureFlags/index.d.ts +0 -2
- package/dist/types-ts4.5/mediaFeatureFlags/mediaFeatureFlags.d.ts +0 -30
- package/dist/types-ts4.5/mediaFeatureFlags/productKeys.d.ts +0 -2
- package/dist/types-ts4.5/mediaFeatureFlags/types.d.ts +0 -17
- package/dist/types-ts4.5/mediaTypeUtils/index.d.ts +0 -4
- package/dist/types-ts4.5/mediaTypeUtils/isArchive.d.ts +0 -1
- package/dist/types-ts4.5/mediaTypeUtils/isMimeTypeSupportedByBrowser.d.ts +0 -14
- package/dist/types-ts4.5/mediaTypeUtils/isMimeTypeSupportedByServer.d.ts +0 -6
- package/dist/types-ts4.5/test-helpers/await-error.d.ts +0 -1
- package/dist/types-ts4.5/test-helpers/dataURIs/smallImageURI.d.ts +0 -1
- package/dist/types-ts4.5/test-helpers/dataURIs/smallTransparentImageURI.d.ts +0 -1
- package/dist/types-ts4.5/test-helpers/dataURIs/tallImageURI.d.ts +0 -1
- package/dist/types-ts4.5/test-helpers/dataURIs/videoPreviewURI.d.ts +0 -1
- package/dist/types-ts4.5/test-helpers/dataURIs/videoURI.d.ts +0 -1
- package/dist/types-ts4.5/test-helpers/dataURIs/vr_test_small_image.d.ts +0 -1
- package/dist/types-ts4.5/test-helpers/dataURIs/wideImageURI.d.ts +0 -1
- package/dist/types-ts4.5/test-helpers/dataURIs/wideTransparentImageURI.d.ts +0 -1
- package/dist/types-ts4.5/test-helpers/flushPromises.d.ts +0 -1
- package/dist/types-ts4.5/test-helpers/getJest.d.ts +0 -16
- package/dist/types-ts4.5/test-helpers/index.d.ts +0 -15
- package/dist/types-ts4.5/test-helpers/jestHelpers.d.ts +0 -13
- package/dist/types-ts4.5/test-helpers/nextTick.d.ts +0 -2
- package/dist/types-ts4.5/test-helpers/timeoutPromise.d.ts +0 -1
- package/dist/types-ts4.5/utils/helpers.d.ts +0 -10
- package/tmp/api-report-tmp.d.ts +0 -254
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
# @atlaskit/media-common
|
|
2
2
|
|
|
3
|
+
## 9.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#41371](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41371) [`a5766038a35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a5766038a35) - Fix TS errors in AFM
|
|
8
|
+
|
|
9
|
+
## 9.0.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#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.
|
|
14
|
+
|
|
3
15
|
## 9.0.0
|
|
4
16
|
|
|
5
17
|
### Major Changes
|
|
6
18
|
|
|
7
|
-
- [`7b6a2c6671b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7b6a2c6671b) - Introducing 'media-state' for handling media internal file state.
|
|
19
|
+
- [#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.
|
|
8
20
|
Introducing 'media-client-react' to provide hooks for seamless media-client integration with React.
|
|
9
21
|
Introducing 'MediaCardV2' with a feature flag to replace rxjs based fileState subscription with 'useFileState' hook.
|
|
10
22
|
Removed unused feature flags APIs from 'media-client' and its helper functions from 'media-common'.
|
|
@@ -13,13 +25,13 @@
|
|
|
13
25
|
|
|
14
26
|
### Minor Changes
|
|
15
27
|
|
|
16
|
-
- [`ede6ee7aaab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ede6ee7aaab) - Updated tests, examples and moving towards /test-helper export in packages to prevent circular dependancies
|
|
28
|
+
- [#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
|
|
17
29
|
|
|
18
30
|
## 8.1.0
|
|
19
31
|
|
|
20
32
|
### Minor Changes
|
|
21
33
|
|
|
22
|
-
- [`b06cd74349c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b06cd74349c) - # Media Picker
|
|
34
|
+
- [#39007](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39007) [`b06cd74349c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b06cd74349c) - # Media Picker
|
|
23
35
|
|
|
24
36
|
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).
|
|
25
37
|
|
|
@@ -42,49 +54,49 @@
|
|
|
42
54
|
|
|
43
55
|
### Major Changes
|
|
44
56
|
|
|
45
|
-
- [`ed81e630547`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ed81e630547) - MEX-2089 Remove timestamp feature flag on AFP
|
|
57
|
+
- [#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
|
|
46
58
|
|
|
47
59
|
## 7.1.0
|
|
48
60
|
|
|
49
61
|
### Minor Changes
|
|
50
62
|
|
|
51
|
-
- [`9d91eb4b59b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d91eb4b59b) - MEX-2411 Remove Observed Width feature flag
|
|
63
|
+
- [#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
|
|
52
64
|
|
|
53
65
|
## 7.0.0
|
|
54
66
|
|
|
55
67
|
### Major Changes
|
|
56
68
|
|
|
57
|
-
- [`5dcaf51b269`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5dcaf51b269) - Removed memoryCacheLogging feature flag
|
|
69
|
+
- [#34912](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34912) [`5dcaf51b269`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5dcaf51b269) - Removed memoryCacheLogging feature flag
|
|
58
70
|
|
|
59
71
|
## 6.0.0
|
|
60
72
|
|
|
61
73
|
### Major Changes
|
|
62
74
|
|
|
63
|
-
- [`a425ccdeb0c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a425ccdeb0c) - Remove 'newCardExperience' feature flag
|
|
75
|
+
- [#34887](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34887) [`a425ccdeb0c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a425ccdeb0c) - Remove 'newCardExperience' feature flag
|
|
64
76
|
|
|
65
77
|
## 5.0.0
|
|
66
78
|
|
|
67
79
|
### Major Changes
|
|
68
80
|
|
|
69
|
-
- [`e725edbb0d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e725edbb0d9) - Removed feature flag fetchFileStateAfterUpload
|
|
81
|
+
- [#34192](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34192) [`e725edbb0d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e725edbb0d9) - Removed feature flag fetchFileStateAfterUpload
|
|
70
82
|
|
|
71
83
|
## 4.1.2
|
|
72
84
|
|
|
73
85
|
### Patch Changes
|
|
74
86
|
|
|
75
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
87
|
+
- [#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
|
|
76
88
|
|
|
77
89
|
## 4.1.1
|
|
78
90
|
|
|
79
91
|
### Patch Changes
|
|
80
92
|
|
|
81
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
93
|
+
- [#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`
|
|
82
94
|
|
|
83
95
|
## 4.1.0
|
|
84
96
|
|
|
85
97
|
### Minor Changes
|
|
86
98
|
|
|
87
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
99
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
88
100
|
|
|
89
101
|
### Patch Changes
|
|
90
102
|
|
|
@@ -94,7 +106,7 @@
|
|
|
94
106
|
|
|
95
107
|
### Major Changes
|
|
96
108
|
|
|
97
|
-
- [`b37723f2cfa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b37723f2cfa) - Removed unused method filterFeatureFlagKeysAllProducts
|
|
109
|
+
- [#31299](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31299) [`b37723f2cfa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b37723f2cfa) - Removed unused method filterFeatureFlagKeysAllProducts
|
|
98
110
|
Added new method getFeatureFlagKeysAllProducts
|
|
99
111
|
|
|
100
112
|
### Patch Changes
|
|
@@ -105,7 +117,7 @@
|
|
|
105
117
|
|
|
106
118
|
### Major Changes
|
|
107
119
|
|
|
108
|
-
- [`c2bc38829e1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c2bc38829e1) - Removed mediaUploadApiV2 feature flag (now as a breaking change)
|
|
120
|
+
- [#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)
|
|
109
121
|
|
|
110
122
|
### Minor Changes
|
|
111
123
|
|
|
@@ -121,19 +133,19 @@
|
|
|
121
133
|
|
|
122
134
|
### Patch Changes
|
|
123
135
|
|
|
124
|
-
- [`9a88e254997`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9a88e254997) - Recovered Media Feature Flag mediaUploadApiV2
|
|
136
|
+
- [#29320](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29320) [`9a88e254997`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9a88e254997) - Recovered Media Feature Flag mediaUploadApiV2
|
|
125
137
|
|
|
126
138
|
## 2.19.0
|
|
127
139
|
|
|
128
140
|
### Minor Changes
|
|
129
141
|
|
|
130
|
-
- [`2b3859896cc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2b3859896cc) - Added new Feature Flag to control internal Media Client behaviour
|
|
142
|
+
- [#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
|
|
131
143
|
|
|
132
144
|
## 2.18.0
|
|
133
145
|
|
|
134
146
|
### Minor Changes
|
|
135
147
|
|
|
136
|
-
- [`81573c1dfa7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/81573c1dfa7) - Items call creates a batched metadata trace Id
|
|
148
|
+
- [#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
|
|
137
149
|
- [`0bccac57db6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0bccac57db6) - remove mediaUploadApiV2 Feature flag
|
|
138
150
|
|
|
139
151
|
### Patch Changes
|
|
@@ -146,7 +158,7 @@
|
|
|
146
158
|
|
|
147
159
|
### Minor Changes
|
|
148
160
|
|
|
149
|
-
- [`2c402e87213`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2c402e87213) - [Experimental] Add traceId in media card get image request.
|
|
161
|
+
- [#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.
|
|
150
162
|
|
|
151
163
|
### Patch Changes
|
|
152
164
|
|
|
@@ -156,52 +168,52 @@
|
|
|
156
168
|
|
|
157
169
|
### Patch Changes
|
|
158
170
|
|
|
159
|
-
- [`42116304154`](https://bitbucket.org/atlassian/atlassian-frontend/commits/42116304154) - Mocks console when it's not available
|
|
171
|
+
- [#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
|
|
160
172
|
- Updated dependencies
|
|
161
173
|
|
|
162
174
|
## 2.16.3
|
|
163
175
|
|
|
164
176
|
### Patch Changes
|
|
165
177
|
|
|
166
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
178
|
+
- [#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`
|
|
167
179
|
|
|
168
180
|
## 2.16.2
|
|
169
181
|
|
|
170
182
|
### Patch Changes
|
|
171
183
|
|
|
172
|
-
- [`c81ee725277`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c81ee725277) - Add attribute fileMediaType into media viewer loadSucceeded event
|
|
184
|
+
- [#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
|
|
173
185
|
- Updated dependencies
|
|
174
186
|
|
|
175
187
|
## 2.16.1
|
|
176
188
|
|
|
177
189
|
### Patch Changes
|
|
178
190
|
|
|
179
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
191
|
+
- [#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`.
|
|
180
192
|
|
|
181
193
|
## 2.16.0
|
|
182
194
|
|
|
183
195
|
### Minor Changes
|
|
184
196
|
|
|
185
|
-
- [`a332288b5ea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a332288b5ea) - Added analytics for media-card memoryCacheLogging and added relevant featureFlag keys for media-common package.
|
|
197
|
+
- [#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.
|
|
186
198
|
|
|
187
199
|
## 2.15.0
|
|
188
200
|
|
|
189
201
|
### Minor Changes
|
|
190
202
|
|
|
191
|
-
- [`1a76e2839e6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1a76e2839e6) - Default value for mediaUploadApiV2 Media feature flag set to true.
|
|
203
|
+
- [#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.
|
|
192
204
|
|
|
193
205
|
## 2.14.0
|
|
194
206
|
|
|
195
207
|
### Minor Changes
|
|
196
208
|
|
|
197
|
-
- [`bfde909c9b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bfde909c9b4) - Add new feature flag mediaUploadApiV2
|
|
209
|
+
- [#21570](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21570) [`bfde909c9b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bfde909c9b4) - Add new feature flag mediaUploadApiV2
|
|
198
210
|
- [`8d6064cece4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d6064cece4) - Add missing values for the launch darkly feature flags name
|
|
199
211
|
|
|
200
212
|
## 2.13.0
|
|
201
213
|
|
|
202
214
|
### Minor Changes
|
|
203
215
|
|
|
204
|
-
- [`501240ef964`](https://bitbucket.org/atlassian/atlassian-frontend/commits/501240ef964) - Export `filterFeatureFlagKeysAllProducts`
|
|
216
|
+
- [#20721](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20721) [`501240ef964`](https://bitbucket.org/atlassian/atlassian-frontend/commits/501240ef964) - Export `filterFeatureFlagKeysAllProducts`
|
|
205
217
|
- [`a09f961b9b2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a09f961b9b2) - Add filterFeatureFlagNamesWithAllProducts for returning the feature flags for all the products
|
|
206
218
|
- [`a4f822c2d5d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a4f822c2d5d) - Add MediaFeatureFlagMap for Confluence and Jira
|
|
207
219
|
|
|
@@ -209,44 +221,44 @@
|
|
|
209
221
|
|
|
210
222
|
### Patch Changes
|
|
211
223
|
|
|
212
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
224
|
+
- [#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
|
|
213
225
|
|
|
214
226
|
## 2.12.0
|
|
215
227
|
|
|
216
228
|
### Minor Changes
|
|
217
229
|
|
|
218
|
-
- [`bac667f95d5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bac667f95d5) - Export utility filterFeatureFlagNames and type RequiredMediaFeatureFlags
|
|
230
|
+
- [#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
|
|
219
231
|
|
|
220
232
|
## 2.11.0
|
|
221
233
|
|
|
222
234
|
### Minor Changes
|
|
223
235
|
|
|
224
|
-
- [`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)
|
|
236
|
+
- [#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)
|
|
225
237
|
|
|
226
238
|
## 2.10.3
|
|
227
239
|
|
|
228
240
|
### Patch Changes
|
|
229
241
|
|
|
230
|
-
- [`5293a48368e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5293a48368e) - fix image size in layout with ref and width observer
|
|
242
|
+
- [#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
|
|
231
243
|
|
|
232
244
|
## 2.10.2
|
|
233
245
|
|
|
234
246
|
### Patch Changes
|
|
235
247
|
|
|
236
|
-
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Switched as false default value for FF "Timestamp on video"
|
|
248
|
+
- [#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"
|
|
237
249
|
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Adding a feature flag for TimestampOnVideo
|
|
238
250
|
|
|
239
251
|
## 2.10.1
|
|
240
252
|
|
|
241
253
|
### Patch Changes
|
|
242
254
|
|
|
243
|
-
- [`c55c736ecea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c55c736ecea) - Patch VULN AFP-3486 AFP-3487 AFP-3488 AFP-3489
|
|
255
|
+
- [#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
|
|
244
256
|
|
|
245
257
|
## 2.10.0
|
|
246
258
|
|
|
247
259
|
### Minor Changes
|
|
248
260
|
|
|
249
|
-
- [`f461edcfd05`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f461edcfd05) - Added a comparer helper for Media Feature Flags objects
|
|
261
|
+
- [#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
|
|
250
262
|
|
|
251
263
|
### Patch Changes
|
|
252
264
|
|
|
@@ -260,13 +272,13 @@
|
|
|
260
272
|
|
|
261
273
|
### Patch Changes
|
|
262
274
|
|
|
263
|
-
- [`fe9ced0cd70`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fe9ced0cd70) - Removed feature flags for polling settings
|
|
275
|
+
- [#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
|
|
264
276
|
|
|
265
277
|
## 2.9.0
|
|
266
278
|
|
|
267
279
|
### Minor Changes
|
|
268
280
|
|
|
269
|
-
- [`46d9d2872b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/46d9d2872b4) - Video Analytics - Add UI events for CustomMediaPlayer
|
|
281
|
+
- [#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
|
|
270
282
|
|
|
271
283
|
### Patch Changes
|
|
272
284
|
|
|
@@ -278,7 +290,7 @@
|
|
|
278
290
|
|
|
279
291
|
### Minor Changes
|
|
280
292
|
|
|
281
|
-
- [`c74e598326e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c74e598326e) - Add new members (see below). Extra entry point `mediaTypeUtils` for all of them is added.
|
|
293
|
+
- [#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.
|
|
282
294
|
|
|
283
295
|
New members:
|
|
284
296
|
|
|
@@ -301,7 +313,7 @@
|
|
|
301
313
|
|
|
302
314
|
### Minor Changes
|
|
303
315
|
|
|
304
|
-
- [`3cd9ee2d15b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3cd9ee2d15b) - Added RxJS compatiblity notice in Media docs
|
|
316
|
+
- [#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
|
|
305
317
|
|
|
306
318
|
### Patch Changes
|
|
307
319
|
|
|
@@ -311,20 +323,20 @@
|
|
|
311
323
|
|
|
312
324
|
### Patch Changes
|
|
313
325
|
|
|
314
|
-
- [`49363db4abf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/49363db4abf) - Modify getLocalMediaFeature to accept extra param and add unit tests
|
|
326
|
+
- [#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
|
|
315
327
|
- Updated dependencies
|
|
316
328
|
|
|
317
329
|
## 2.6.1
|
|
318
330
|
|
|
319
331
|
### Patch Changes
|
|
320
332
|
|
|
321
|
-
- [`db441ee18c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db441ee18c3) - Handle localStorage and sessionStorage safely
|
|
333
|
+
- [#10230](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10230) [`db441ee18c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db441ee18c3) - Handle localStorage and sessionStorage safely
|
|
322
334
|
|
|
323
335
|
## 2.6.0
|
|
324
336
|
|
|
325
337
|
### Minor Changes
|
|
326
338
|
|
|
327
|
-
- [`e5413204ba8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e5413204ba8) - Add optional errorDetail to FailAttributes for extra debugging context
|
|
339
|
+
- [#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
|
|
328
340
|
- [`b7b0cdea03f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b7b0cdea03f) - add generic type for MediaAnalyticsContext<DataType>
|
|
329
341
|
- [`f2db5a33953`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f2db5a33953) - Added withMediaAnalyticsContext() in media-common for use by media components
|
|
330
342
|
- [`ce5671da5e7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ce5671da5e7) - keep media analytics fileAttributes nested in attributes
|
|
@@ -344,13 +356,13 @@
|
|
|
344
356
|
|
|
345
357
|
### Patch Changes
|
|
346
358
|
|
|
347
|
-
- [`ab112f3020`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ab112f3020) - Updated media-common analytics exports
|
|
359
|
+
- [#7425](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/7425) [`ab112f3020`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ab112f3020) - Updated media-common analytics exports
|
|
348
360
|
|
|
349
361
|
## 2.5.0
|
|
350
362
|
|
|
351
363
|
### Minor Changes
|
|
352
364
|
|
|
353
|
-
- [`ad2a0e3352`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad2a0e3352) - add common analytics types for media
|
|
365
|
+
- [#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
|
|
354
366
|
|
|
355
367
|
### Patch Changes
|
|
356
368
|
|
|
@@ -362,45 +374,45 @@
|
|
|
362
374
|
|
|
363
375
|
### Patch Changes
|
|
364
376
|
|
|
365
|
-
- [`91061fed3e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/91061fed3e) - Updated default values for Polling feature Flags
|
|
377
|
+
- [#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
|
|
366
378
|
- [`11b4fc8033`](https://bitbucket.org/atlassian/atlassian-frontend/commits/11b4fc8033) - ensure maximum media poll interval ms is 3.3min not 33min
|
|
367
379
|
|
|
368
380
|
## 2.4.3
|
|
369
381
|
|
|
370
382
|
### Patch Changes
|
|
371
383
|
|
|
372
|
-
- [`956cf2d5ee`](https://bitbucket.org/atlassian/atlassian-frontend/commits/956cf2d5ee) - HOT-93465 docs(changeset): ensure maximum media poll interval ms is 3.3min not 33min
|
|
384
|
+
- [#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
|
|
373
385
|
|
|
374
386
|
## 2.4.2
|
|
375
387
|
|
|
376
388
|
### Patch Changes
|
|
377
389
|
|
|
378
|
-
- [`0698db3a1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0698db3a1f) - Updated default values for Polling feature Flags
|
|
390
|
+
- [#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
|
|
379
391
|
|
|
380
392
|
## 2.4.1
|
|
381
393
|
|
|
382
394
|
### Patch Changes
|
|
383
395
|
|
|
384
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
396
|
+
- [#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
|
|
385
397
|
|
|
386
398
|
## 2.4.0
|
|
387
399
|
|
|
388
400
|
### Minor Changes
|
|
389
401
|
|
|
390
|
-
- [`f2b871e61d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f2b871e61d) - expose NumericalCardDimensions from media-common
|
|
402
|
+
- [#6228](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6228) [`f2b871e61d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f2b871e61d) - expose NumericalCardDimensions from media-common
|
|
391
403
|
|
|
392
404
|
## 2.3.0
|
|
393
405
|
|
|
394
406
|
### Minor Changes
|
|
395
407
|
|
|
396
|
-
- [`bf98a47a0f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bf98a47a0f) - Enhance polling strategy to limit to finite attempts with timing backoff
|
|
408
|
+
- [#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
|
|
397
409
|
- [`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.
|
|
398
410
|
|
|
399
411
|
## 2.2.1
|
|
400
412
|
|
|
401
413
|
### Patch Changes
|
|
402
414
|
|
|
403
|
-
- [`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.
|
|
415
|
+
- [#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.
|
|
404
416
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
405
417
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
406
418
|
|
|
@@ -408,13 +420,13 @@
|
|
|
408
420
|
|
|
409
421
|
### Minor Changes
|
|
410
422
|
|
|
411
|
-
- [`7d831363d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d831363d9) - Migrated to declarative entry points
|
|
423
|
+
- [#4749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4749) [`7d831363d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d831363d9) - Migrated to declarative entry points
|
|
412
424
|
|
|
413
425
|
## 2.1.1
|
|
414
426
|
|
|
415
427
|
### Patch Changes
|
|
416
428
|
|
|
417
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
429
|
+
- [#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
|
|
418
430
|
|
|
419
431
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
420
432
|
to prevent duplicates of tslib being bundled.
|
|
@@ -423,7 +435,7 @@
|
|
|
423
435
|
|
|
424
436
|
### Minor Changes
|
|
425
437
|
|
|
426
|
-
- [`62eb1114c4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62eb1114c4) - Enable passing of MediaFeatureFlags through Editor Renderer via MediaOptions to Media components
|
|
438
|
+
- [#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
|
|
427
439
|
- [`6faafb144c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6faafb144c) - Introduce MediaFeatureFlags. Refactor components to use.
|
|
428
440
|
- [`2202870181`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2202870181) - Added support for zip previews in media viewer
|
|
429
441
|
|
|
@@ -437,14 +449,14 @@
|
|
|
437
449
|
|
|
438
450
|
### Major Changes
|
|
439
451
|
|
|
440
|
-
- [`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.
|
|
452
|
+
- [#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.
|
|
441
453
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
442
454
|
|
|
443
455
|
## 1.1.0
|
|
444
456
|
|
|
445
457
|
### Minor Changes
|
|
446
458
|
|
|
447
|
-
- [`3ae1f77dd4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ae1f77dd4) - Expose MediaType from media-common
|
|
459
|
+
- [#2137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2137) [`3ae1f77dd4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ae1f77dd4) - Expose MediaType from media-common
|
|
448
460
|
|
|
449
461
|
## 1.0.1
|
|
450
462
|
|
|
@@ -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
|
+
};
|