@atlaskit/media-common 9.0.1 → 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 +60 -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 +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/package.json +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 -21
- 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,16 +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
|
+
|
|
3
9
|
## 9.0.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
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.
|
|
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.
|
|
8
14
|
|
|
9
15
|
## 9.0.0
|
|
10
16
|
|
|
11
17
|
### Major Changes
|
|
12
18
|
|
|
13
|
-
- [`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.
|
|
14
20
|
Introducing 'media-client-react' to provide hooks for seamless media-client integration with React.
|
|
15
21
|
Introducing 'MediaCardV2' with a feature flag to replace rxjs based fileState subscription with 'useFileState' hook.
|
|
16
22
|
Removed unused feature flags APIs from 'media-client' and its helper functions from 'media-common'.
|
|
@@ -19,13 +25,13 @@
|
|
|
19
25
|
|
|
20
26
|
### Minor Changes
|
|
21
27
|
|
|
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
|
|
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
|
|
23
29
|
|
|
24
30
|
## 8.1.0
|
|
25
31
|
|
|
26
32
|
### Minor Changes
|
|
27
33
|
|
|
28
|
-
- [`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
|
|
29
35
|
|
|
30
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).
|
|
31
37
|
|
|
@@ -48,49 +54,49 @@
|
|
|
48
54
|
|
|
49
55
|
### Major Changes
|
|
50
56
|
|
|
51
|
-
- [`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
|
|
52
58
|
|
|
53
59
|
## 7.1.0
|
|
54
60
|
|
|
55
61
|
### Minor Changes
|
|
56
62
|
|
|
57
|
-
- [`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
|
|
58
64
|
|
|
59
65
|
## 7.0.0
|
|
60
66
|
|
|
61
67
|
### Major Changes
|
|
62
68
|
|
|
63
|
-
- [`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
|
|
64
70
|
|
|
65
71
|
## 6.0.0
|
|
66
72
|
|
|
67
73
|
### Major Changes
|
|
68
74
|
|
|
69
|
-
- [`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
|
|
70
76
|
|
|
71
77
|
## 5.0.0
|
|
72
78
|
|
|
73
79
|
### Major Changes
|
|
74
80
|
|
|
75
|
-
- [`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
|
|
76
82
|
|
|
77
83
|
## 4.1.2
|
|
78
84
|
|
|
79
85
|
### Patch Changes
|
|
80
86
|
|
|
81
|
-
- [`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
|
|
82
88
|
|
|
83
89
|
## 4.1.1
|
|
84
90
|
|
|
85
91
|
### Patch Changes
|
|
86
92
|
|
|
87
|
-
- [`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`
|
|
88
94
|
|
|
89
95
|
## 4.1.0
|
|
90
96
|
|
|
91
97
|
### Minor Changes
|
|
92
98
|
|
|
93
|
-
- [`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
|
|
94
100
|
|
|
95
101
|
### Patch Changes
|
|
96
102
|
|
|
@@ -100,7 +106,7 @@
|
|
|
100
106
|
|
|
101
107
|
### Major Changes
|
|
102
108
|
|
|
103
|
-
- [`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
|
|
104
110
|
Added new method getFeatureFlagKeysAllProducts
|
|
105
111
|
|
|
106
112
|
### Patch Changes
|
|
@@ -111,7 +117,7 @@
|
|
|
111
117
|
|
|
112
118
|
### Major Changes
|
|
113
119
|
|
|
114
|
-
- [`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)
|
|
115
121
|
|
|
116
122
|
### Minor Changes
|
|
117
123
|
|
|
@@ -127,19 +133,19 @@
|
|
|
127
133
|
|
|
128
134
|
### Patch Changes
|
|
129
135
|
|
|
130
|
-
- [`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
|
|
131
137
|
|
|
132
138
|
## 2.19.0
|
|
133
139
|
|
|
134
140
|
### Minor Changes
|
|
135
141
|
|
|
136
|
-
- [`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
|
|
137
143
|
|
|
138
144
|
## 2.18.0
|
|
139
145
|
|
|
140
146
|
### Minor Changes
|
|
141
147
|
|
|
142
|
-
- [`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
|
|
143
149
|
- [`0bccac57db6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0bccac57db6) - remove mediaUploadApiV2 Feature flag
|
|
144
150
|
|
|
145
151
|
### Patch Changes
|
|
@@ -152,7 +158,7 @@
|
|
|
152
158
|
|
|
153
159
|
### Minor Changes
|
|
154
160
|
|
|
155
|
-
- [`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.
|
|
156
162
|
|
|
157
163
|
### Patch Changes
|
|
158
164
|
|
|
@@ -162,52 +168,52 @@
|
|
|
162
168
|
|
|
163
169
|
### Patch Changes
|
|
164
170
|
|
|
165
|
-
- [`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
|
|
166
172
|
- Updated dependencies
|
|
167
173
|
|
|
168
174
|
## 2.16.3
|
|
169
175
|
|
|
170
176
|
### Patch Changes
|
|
171
177
|
|
|
172
|
-
- [`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`
|
|
173
179
|
|
|
174
180
|
## 2.16.2
|
|
175
181
|
|
|
176
182
|
### Patch Changes
|
|
177
183
|
|
|
178
|
-
- [`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
|
|
179
185
|
- Updated dependencies
|
|
180
186
|
|
|
181
187
|
## 2.16.1
|
|
182
188
|
|
|
183
189
|
### Patch Changes
|
|
184
190
|
|
|
185
|
-
- [`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`.
|
|
186
192
|
|
|
187
193
|
## 2.16.0
|
|
188
194
|
|
|
189
195
|
### Minor Changes
|
|
190
196
|
|
|
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.
|
|
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.
|
|
192
198
|
|
|
193
199
|
## 2.15.0
|
|
194
200
|
|
|
195
201
|
### Minor Changes
|
|
196
202
|
|
|
197
|
-
- [`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.
|
|
198
204
|
|
|
199
205
|
## 2.14.0
|
|
200
206
|
|
|
201
207
|
### Minor Changes
|
|
202
208
|
|
|
203
|
-
- [`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
|
|
204
210
|
- [`8d6064cece4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d6064cece4) - Add missing values for the launch darkly feature flags name
|
|
205
211
|
|
|
206
212
|
## 2.13.0
|
|
207
213
|
|
|
208
214
|
### Minor Changes
|
|
209
215
|
|
|
210
|
-
- [`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`
|
|
211
217
|
- [`a09f961b9b2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a09f961b9b2) - Add filterFeatureFlagNamesWithAllProducts for returning the feature flags for all the products
|
|
212
218
|
- [`a4f822c2d5d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a4f822c2d5d) - Add MediaFeatureFlagMap for Confluence and Jira
|
|
213
219
|
|
|
@@ -215,44 +221,44 @@
|
|
|
215
221
|
|
|
216
222
|
### Patch Changes
|
|
217
223
|
|
|
218
|
-
- [`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
|
|
219
225
|
|
|
220
226
|
## 2.12.0
|
|
221
227
|
|
|
222
228
|
### Minor Changes
|
|
223
229
|
|
|
224
|
-
- [`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
|
|
225
231
|
|
|
226
232
|
## 2.11.0
|
|
227
233
|
|
|
228
234
|
### Minor Changes
|
|
229
235
|
|
|
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)
|
|
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)
|
|
231
237
|
|
|
232
238
|
## 2.10.3
|
|
233
239
|
|
|
234
240
|
### Patch Changes
|
|
235
241
|
|
|
236
|
-
- [`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
|
|
237
243
|
|
|
238
244
|
## 2.10.2
|
|
239
245
|
|
|
240
246
|
### Patch Changes
|
|
241
247
|
|
|
242
|
-
- [`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"
|
|
243
249
|
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Adding a feature flag for TimestampOnVideo
|
|
244
250
|
|
|
245
251
|
## 2.10.1
|
|
246
252
|
|
|
247
253
|
### Patch Changes
|
|
248
254
|
|
|
249
|
-
- [`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
|
|
250
256
|
|
|
251
257
|
## 2.10.0
|
|
252
258
|
|
|
253
259
|
### Minor Changes
|
|
254
260
|
|
|
255
|
-
- [`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
|
|
256
262
|
|
|
257
263
|
### Patch Changes
|
|
258
264
|
|
|
@@ -266,13 +272,13 @@
|
|
|
266
272
|
|
|
267
273
|
### Patch Changes
|
|
268
274
|
|
|
269
|
-
- [`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
|
|
270
276
|
|
|
271
277
|
## 2.9.0
|
|
272
278
|
|
|
273
279
|
### Minor Changes
|
|
274
280
|
|
|
275
|
-
- [`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
|
|
276
282
|
|
|
277
283
|
### Patch Changes
|
|
278
284
|
|
|
@@ -284,7 +290,7 @@
|
|
|
284
290
|
|
|
285
291
|
### Minor Changes
|
|
286
292
|
|
|
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.
|
|
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.
|
|
288
294
|
|
|
289
295
|
New members:
|
|
290
296
|
|
|
@@ -307,7 +313,7 @@
|
|
|
307
313
|
|
|
308
314
|
### Minor Changes
|
|
309
315
|
|
|
310
|
-
- [`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
|
|
311
317
|
|
|
312
318
|
### Patch Changes
|
|
313
319
|
|
|
@@ -317,20 +323,20 @@
|
|
|
317
323
|
|
|
318
324
|
### Patch Changes
|
|
319
325
|
|
|
320
|
-
- [`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
|
|
321
327
|
- Updated dependencies
|
|
322
328
|
|
|
323
329
|
## 2.6.1
|
|
324
330
|
|
|
325
331
|
### Patch Changes
|
|
326
332
|
|
|
327
|
-
- [`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
|
|
328
334
|
|
|
329
335
|
## 2.6.0
|
|
330
336
|
|
|
331
337
|
### Minor Changes
|
|
332
338
|
|
|
333
|
-
- [`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
|
|
334
340
|
- [`b7b0cdea03f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b7b0cdea03f) - add generic type for MediaAnalyticsContext<DataType>
|
|
335
341
|
- [`f2db5a33953`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f2db5a33953) - Added withMediaAnalyticsContext() in media-common for use by media components
|
|
336
342
|
- [`ce5671da5e7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ce5671da5e7) - keep media analytics fileAttributes nested in attributes
|
|
@@ -350,13 +356,13 @@
|
|
|
350
356
|
|
|
351
357
|
### Patch Changes
|
|
352
358
|
|
|
353
|
-
- [`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
|
|
354
360
|
|
|
355
361
|
## 2.5.0
|
|
356
362
|
|
|
357
363
|
### Minor Changes
|
|
358
364
|
|
|
359
|
-
- [`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
|
|
360
366
|
|
|
361
367
|
### Patch Changes
|
|
362
368
|
|
|
@@ -368,45 +374,45 @@
|
|
|
368
374
|
|
|
369
375
|
### Patch Changes
|
|
370
376
|
|
|
371
|
-
- [`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
|
|
372
378
|
- [`11b4fc8033`](https://bitbucket.org/atlassian/atlassian-frontend/commits/11b4fc8033) - ensure maximum media poll interval ms is 3.3min not 33min
|
|
373
379
|
|
|
374
380
|
## 2.4.3
|
|
375
381
|
|
|
376
382
|
### Patch Changes
|
|
377
383
|
|
|
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
|
|
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
|
|
379
385
|
|
|
380
386
|
## 2.4.2
|
|
381
387
|
|
|
382
388
|
### Patch Changes
|
|
383
389
|
|
|
384
|
-
- [`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
|
|
385
391
|
|
|
386
392
|
## 2.4.1
|
|
387
393
|
|
|
388
394
|
### Patch Changes
|
|
389
395
|
|
|
390
|
-
- [`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
|
|
391
397
|
|
|
392
398
|
## 2.4.0
|
|
393
399
|
|
|
394
400
|
### Minor Changes
|
|
395
401
|
|
|
396
|
-
- [`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
|
|
397
403
|
|
|
398
404
|
## 2.3.0
|
|
399
405
|
|
|
400
406
|
### Minor Changes
|
|
401
407
|
|
|
402
|
-
- [`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
|
|
403
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.
|
|
404
410
|
|
|
405
411
|
## 2.2.1
|
|
406
412
|
|
|
407
413
|
### Patch Changes
|
|
408
414
|
|
|
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.
|
|
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.
|
|
410
416
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
411
417
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
412
418
|
|
|
@@ -414,13 +420,13 @@
|
|
|
414
420
|
|
|
415
421
|
### Minor Changes
|
|
416
422
|
|
|
417
|
-
- [`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
|
|
418
424
|
|
|
419
425
|
## 2.1.1
|
|
420
426
|
|
|
421
427
|
### Patch Changes
|
|
422
428
|
|
|
423
|
-
- [`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
|
|
424
430
|
|
|
425
431
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
426
432
|
to prevent duplicates of tslib being bundled.
|
|
@@ -429,7 +435,7 @@
|
|
|
429
435
|
|
|
430
436
|
### Minor Changes
|
|
431
437
|
|
|
432
|
-
- [`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
|
|
433
439
|
- [`6faafb144c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6faafb144c) - Introduce MediaFeatureFlags. Refactor components to use.
|
|
434
440
|
- [`2202870181`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2202870181) - Added support for zip previews in media viewer
|
|
435
441
|
|
|
@@ -443,14 +449,14 @@
|
|
|
443
449
|
|
|
444
450
|
### Major Changes
|
|
445
451
|
|
|
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.
|
|
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.
|
|
447
453
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
448
454
|
|
|
449
455
|
## 1.1.0
|
|
450
456
|
|
|
451
457
|
### Minor Changes
|
|
452
458
|
|
|
453
|
-
- [`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
|
|
454
460
|
|
|
455
461
|
## 1.0.1
|
|
456
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
|
+
};
|