@atlaskit/media-ui 25.10.1 → 25.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/cjs/customMediaPlayer/index.js +6 -4
- package/dist/cjs/customMediaPlayer/volumeRange.js +4 -2
- package/dist/cjs/messages.js +10 -5
- package/dist/es2019/customMediaPlayer/index.js +6 -4
- package/dist/es2019/customMediaPlayer/volumeRange.js +4 -2
- package/dist/es2019/messages.js +10 -5
- package/dist/esm/customMediaPlayer/index.js +6 -4
- package/dist/esm/customMediaPlayer/volumeRange.js +4 -2
- package/dist/esm/messages.js +10 -5
- package/dist/types/customMediaPlayer/index.d.ts +8 -8
- package/dist/types/customMediaPlayer/volumeRange.d.ts +1 -0
- package/dist/types/messages.d.ts +2 -2
- package/dist/types-ts4.5/customMediaPlayer/index.d.ts +8 -8
- package/dist/types-ts4.5/customMediaPlayer/volumeRange.d.ts +1 -0
- package/dist/types-ts4.5/messages.d.ts +2 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/media-ui
|
|
2
2
|
|
|
3
|
+
## 25.10.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#95896](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95896)
|
|
8
|
+
[`b1900695f505`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b1900695f505) -
|
|
9
|
+
ECA11Y-191 Add aria-label for volume level control slider
|
|
10
|
+
|
|
11
|
+
## 25.10.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#94950](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94950)
|
|
16
|
+
[`829cce5728a3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/829cce5728a3) -
|
|
17
|
+
ECAY11-190 Add state announcement of the “Volume“ button by the screen reader
|
|
18
|
+
|
|
3
19
|
## 25.10.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -54,7 +54,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
54
54
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */ // Keep media player components used in media-viewer to use static colors from the new color palette to
|
|
55
55
|
// support the hybrid theming in media viewer https://product-fabric.atlassian.net/browse/DSP-6067
|
|
56
56
|
var packageName = "@atlaskit/media-ui";
|
|
57
|
-
var packageVersion = "25.10.
|
|
57
|
+
var packageVersion = "25.10.3";
|
|
58
58
|
var MEDIUM_VIDEO_MAX_WIDTH = 400;
|
|
59
59
|
var SMALL_VIDEO_MAX_WIDTH = 160;
|
|
60
60
|
var MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
|
|
@@ -225,13 +225,15 @@ var CustomMediaPlayerBase = exports.CustomMediaPlayerBase = /*#__PURE__*/functio
|
|
|
225
225
|
testId: "custom-media-player-volume-toggle-button",
|
|
226
226
|
onClick: _this.getMediaButtonClickHandler(actions.toggleMute, 'muteButton'),
|
|
227
227
|
iconBefore: /*#__PURE__*/_react.default.createElement(_outgoingSound.default, {
|
|
228
|
-
label:
|
|
229
|
-
})
|
|
228
|
+
label: _this.props.intl.formatMessage(_messages.messages.volumeMuteButtonAria)
|
|
229
|
+
}),
|
|
230
|
+
"aria-pressed": videoState.isMuted
|
|
230
231
|
})), (0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y_video_controls_keyboard_support_yhcxh') ? showSlider && /*#__PURE__*/_react.default.createElement(_styled.VolumeTimeRangeWrapper, null, /*#__PURE__*/_react.default.createElement(_volumeRange.default, {
|
|
231
232
|
onChange: actions.setVolume,
|
|
232
233
|
currentVolume: videoState.volume,
|
|
233
234
|
isAlwaysActive: true,
|
|
234
|
-
onChanged: _this.onVolumeChanged
|
|
235
|
+
onChanged: _this.onVolumeChanged,
|
|
236
|
+
ariaLabel: _this.props.intl.formatMessage(_messages.messages.volumeLevelControlAria)
|
|
235
237
|
})) : showSlider && /*#__PURE__*/_react.default.createElement(_styled.VolumeTimeRangeWrapper, null, /*#__PURE__*/_react.default.createElement(_timeRange.TimeRange, {
|
|
236
238
|
onChange: actions.setVolume,
|
|
237
239
|
duration: 1,
|
|
@@ -19,7 +19,8 @@ var VolumeRange = function VolumeRange(props) {
|
|
|
19
19
|
isAlwaysActive = _props$isAlwaysActive === void 0 ? false : _props$isAlwaysActive,
|
|
20
20
|
onChange = props.onChange,
|
|
21
21
|
currentVolume = props.currentVolume,
|
|
22
|
-
onChanged = props.onChanged
|
|
22
|
+
onChanged = props.onChanged,
|
|
23
|
+
ariaLabel = props.ariaLabel;
|
|
23
24
|
var wrapperElement = (0, _react.useRef)(null);
|
|
24
25
|
var mouseEventsSharedData = (0, _react.useRef)({
|
|
25
26
|
dragStartClientX: 0,
|
|
@@ -143,7 +144,8 @@ var VolumeRange = function VolumeRange(props) {
|
|
|
143
144
|
min: 0,
|
|
144
145
|
max: 100,
|
|
145
146
|
value: currentPosition,
|
|
146
|
-
onChange: onInputChange
|
|
147
|
+
onChange: onInputChange,
|
|
148
|
+
"aria-label": ariaLabel
|
|
147
149
|
}));
|
|
148
150
|
};
|
|
149
151
|
var _default = exports.default = VolumeRange;
|
package/dist/cjs/messages.js
CHANGED
|
@@ -261,11 +261,6 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
261
261
|
defaultMessage: 'Drag and drop your images here',
|
|
262
262
|
description: 'Indicates that the user can drag and drop images in that area'
|
|
263
263
|
},
|
|
264
|
-
upload_image: {
|
|
265
|
-
id: 'fabric.media.upload_image',
|
|
266
|
-
defaultMessage: 'Upload image',
|
|
267
|
-
description: 'Call to action for the user to upload a new image'
|
|
268
|
-
},
|
|
269
264
|
alt_text: {
|
|
270
265
|
id: 'fabric.media.alt_text',
|
|
271
266
|
defaultMessage: 'Alt text',
|
|
@@ -631,6 +626,16 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
631
626
|
defaultMessage: 'Forward 10 seconds',
|
|
632
627
|
description: 'In the context of a video player, it allows user to skip 10 seconds of play time forward.'
|
|
633
628
|
},
|
|
629
|
+
volumeLevelControlAria: {
|
|
630
|
+
id: 'fabric.media.volume_level',
|
|
631
|
+
defaultMessage: 'volume',
|
|
632
|
+
description: 'In the context of a video player and screen reader. Aria label for volume level control'
|
|
633
|
+
},
|
|
634
|
+
volumeMuteButtonAria: {
|
|
635
|
+
id: 'fabric.media.volume_level',
|
|
636
|
+
defaultMessage: 'mute',
|
|
637
|
+
description: 'In the context of a video player and screen reader. Aria label for mute button'
|
|
638
|
+
},
|
|
634
639
|
playbackDefaultSpeed: {
|
|
635
640
|
id: 'fabric.media.playback_default_speed',
|
|
636
641
|
defaultMessage: 'Default',
|
|
@@ -37,7 +37,7 @@ import { SkipTenBackwardIcon, SkipTenForwardIcon } from './icons';
|
|
|
37
37
|
import { getControlsWrapperClassName } from './getControlsWrapperClassName';
|
|
38
38
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
39
39
|
const packageName = "@atlaskit/media-ui";
|
|
40
|
-
const packageVersion = "25.10.
|
|
40
|
+
const packageVersion = "25.10.3";
|
|
41
41
|
const MEDIUM_VIDEO_MAX_WIDTH = 400;
|
|
42
42
|
const SMALL_VIDEO_MAX_WIDTH = 160;
|
|
43
43
|
const MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
|
|
@@ -208,13 +208,15 @@ export class CustomMediaPlayerBase extends Component {
|
|
|
208
208
|
testId: "custom-media-player-volume-toggle-button",
|
|
209
209
|
onClick: this.getMediaButtonClickHandler(actions.toggleMute, 'muteButton'),
|
|
210
210
|
iconBefore: /*#__PURE__*/React.createElement(SoundIcon, {
|
|
211
|
-
label:
|
|
212
|
-
})
|
|
211
|
+
label: this.props.intl.formatMessage(messages.volumeMuteButtonAria)
|
|
212
|
+
}),
|
|
213
|
+
"aria-pressed": videoState.isMuted
|
|
213
214
|
})), getBooleanFF('platform.editor.a11y_video_controls_keyboard_support_yhcxh') ? showSlider && /*#__PURE__*/React.createElement(VolumeTimeRangeWrapper, null, /*#__PURE__*/React.createElement(VolumeRange, {
|
|
214
215
|
onChange: actions.setVolume,
|
|
215
216
|
currentVolume: videoState.volume,
|
|
216
217
|
isAlwaysActive: true,
|
|
217
|
-
onChanged: this.onVolumeChanged
|
|
218
|
+
onChanged: this.onVolumeChanged,
|
|
219
|
+
ariaLabel: this.props.intl.formatMessage(messages.volumeLevelControlAria)
|
|
218
220
|
})) : showSlider && /*#__PURE__*/React.createElement(VolumeTimeRangeWrapper, null, /*#__PURE__*/React.createElement(TimeRange, {
|
|
219
221
|
onChange: actions.setVolume,
|
|
220
222
|
duration: 1,
|
|
@@ -8,7 +8,8 @@ const VolumeRange = props => {
|
|
|
8
8
|
isAlwaysActive = false,
|
|
9
9
|
onChange,
|
|
10
10
|
currentVolume,
|
|
11
|
-
onChanged
|
|
11
|
+
onChanged,
|
|
12
|
+
ariaLabel
|
|
12
13
|
} = props;
|
|
13
14
|
const wrapperElement = useRef(null);
|
|
14
15
|
const mouseEventsSharedData = useRef({
|
|
@@ -134,7 +135,8 @@ const VolumeRange = props => {
|
|
|
134
135
|
min: 0,
|
|
135
136
|
max: 100,
|
|
136
137
|
value: currentPosition,
|
|
137
|
-
onChange: onInputChange
|
|
138
|
+
onChange: onInputChange,
|
|
139
|
+
"aria-label": ariaLabel
|
|
138
140
|
}));
|
|
139
141
|
};
|
|
140
142
|
export default VolumeRange;
|
package/dist/es2019/messages.js
CHANGED
|
@@ -255,11 +255,6 @@ export const messages = defineMessages({
|
|
|
255
255
|
defaultMessage: 'Drag and drop your images here',
|
|
256
256
|
description: 'Indicates that the user can drag and drop images in that area'
|
|
257
257
|
},
|
|
258
|
-
upload_image: {
|
|
259
|
-
id: 'fabric.media.upload_image',
|
|
260
|
-
defaultMessage: 'Upload image',
|
|
261
|
-
description: 'Call to action for the user to upload a new image'
|
|
262
|
-
},
|
|
263
258
|
alt_text: {
|
|
264
259
|
id: 'fabric.media.alt_text',
|
|
265
260
|
defaultMessage: 'Alt text',
|
|
@@ -625,6 +620,16 @@ export const messages = defineMessages({
|
|
|
625
620
|
defaultMessage: 'Forward 10 seconds',
|
|
626
621
|
description: 'In the context of a video player, it allows user to skip 10 seconds of play time forward.'
|
|
627
622
|
},
|
|
623
|
+
volumeLevelControlAria: {
|
|
624
|
+
id: 'fabric.media.volume_level',
|
|
625
|
+
defaultMessage: 'volume',
|
|
626
|
+
description: 'In the context of a video player and screen reader. Aria label for volume level control'
|
|
627
|
+
},
|
|
628
|
+
volumeMuteButtonAria: {
|
|
629
|
+
id: 'fabric.media.volume_level',
|
|
630
|
+
defaultMessage: 'mute',
|
|
631
|
+
description: 'In the context of a video player and screen reader. Aria label for mute button'
|
|
632
|
+
},
|
|
628
633
|
playbackDefaultSpeed: {
|
|
629
634
|
id: 'fabric.media.playback_default_speed',
|
|
630
635
|
defaultMessage: 'Default',
|
|
@@ -47,7 +47,7 @@ import { SkipTenBackwardIcon, SkipTenForwardIcon } from './icons';
|
|
|
47
47
|
import { getControlsWrapperClassName } from './getControlsWrapperClassName';
|
|
48
48
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
49
49
|
var packageName = "@atlaskit/media-ui";
|
|
50
|
-
var packageVersion = "25.10.
|
|
50
|
+
var packageVersion = "25.10.3";
|
|
51
51
|
var MEDIUM_VIDEO_MAX_WIDTH = 400;
|
|
52
52
|
var SMALL_VIDEO_MAX_WIDTH = 160;
|
|
53
53
|
var MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
|
|
@@ -218,13 +218,15 @@ export var CustomMediaPlayerBase = /*#__PURE__*/function (_Component) {
|
|
|
218
218
|
testId: "custom-media-player-volume-toggle-button",
|
|
219
219
|
onClick: _this.getMediaButtonClickHandler(actions.toggleMute, 'muteButton'),
|
|
220
220
|
iconBefore: /*#__PURE__*/React.createElement(SoundIcon, {
|
|
221
|
-
label:
|
|
222
|
-
})
|
|
221
|
+
label: _this.props.intl.formatMessage(messages.volumeMuteButtonAria)
|
|
222
|
+
}),
|
|
223
|
+
"aria-pressed": videoState.isMuted
|
|
223
224
|
})), getBooleanFF('platform.editor.a11y_video_controls_keyboard_support_yhcxh') ? showSlider && /*#__PURE__*/React.createElement(VolumeTimeRangeWrapper, null, /*#__PURE__*/React.createElement(VolumeRange, {
|
|
224
225
|
onChange: actions.setVolume,
|
|
225
226
|
currentVolume: videoState.volume,
|
|
226
227
|
isAlwaysActive: true,
|
|
227
|
-
onChanged: _this.onVolumeChanged
|
|
228
|
+
onChanged: _this.onVolumeChanged,
|
|
229
|
+
ariaLabel: _this.props.intl.formatMessage(messages.volumeLevelControlAria)
|
|
228
230
|
})) : showSlider && /*#__PURE__*/React.createElement(VolumeTimeRangeWrapper, null, /*#__PURE__*/React.createElement(TimeRange, {
|
|
229
231
|
onChange: actions.setVolume,
|
|
230
232
|
duration: 1,
|
|
@@ -9,7 +9,8 @@ var VolumeRange = function VolumeRange(props) {
|
|
|
9
9
|
isAlwaysActive = _props$isAlwaysActive === void 0 ? false : _props$isAlwaysActive,
|
|
10
10
|
onChange = props.onChange,
|
|
11
11
|
currentVolume = props.currentVolume,
|
|
12
|
-
onChanged = props.onChanged
|
|
12
|
+
onChanged = props.onChanged,
|
|
13
|
+
ariaLabel = props.ariaLabel;
|
|
13
14
|
var wrapperElement = useRef(null);
|
|
14
15
|
var mouseEventsSharedData = useRef({
|
|
15
16
|
dragStartClientX: 0,
|
|
@@ -133,7 +134,8 @@ var VolumeRange = function VolumeRange(props) {
|
|
|
133
134
|
min: 0,
|
|
134
135
|
max: 100,
|
|
135
136
|
value: currentPosition,
|
|
136
|
-
onChange: onInputChange
|
|
137
|
+
onChange: onInputChange,
|
|
138
|
+
"aria-label": ariaLabel
|
|
137
139
|
}));
|
|
138
140
|
};
|
|
139
141
|
export default VolumeRange;
|
package/dist/esm/messages.js
CHANGED
|
@@ -255,11 +255,6 @@ export var messages = defineMessages({
|
|
|
255
255
|
defaultMessage: 'Drag and drop your images here',
|
|
256
256
|
description: 'Indicates that the user can drag and drop images in that area'
|
|
257
257
|
},
|
|
258
|
-
upload_image: {
|
|
259
|
-
id: 'fabric.media.upload_image',
|
|
260
|
-
defaultMessage: 'Upload image',
|
|
261
|
-
description: 'Call to action for the user to upload a new image'
|
|
262
|
-
},
|
|
263
258
|
alt_text: {
|
|
264
259
|
id: 'fabric.media.alt_text',
|
|
265
260
|
defaultMessage: 'Alt text',
|
|
@@ -625,6 +620,16 @@ export var messages = defineMessages({
|
|
|
625
620
|
defaultMessage: 'Forward 10 seconds',
|
|
626
621
|
description: 'In the context of a video player, it allows user to skip 10 seconds of play time forward.'
|
|
627
622
|
},
|
|
623
|
+
volumeLevelControlAria: {
|
|
624
|
+
id: 'fabric.media.volume_level',
|
|
625
|
+
defaultMessage: 'volume',
|
|
626
|
+
description: 'In the context of a video player and screen reader. Aria label for volume level control'
|
|
627
|
+
},
|
|
628
|
+
volumeMuteButtonAria: {
|
|
629
|
+
id: 'fabric.media.volume_level',
|
|
630
|
+
defaultMessage: 'mute',
|
|
631
|
+
description: 'In the context of a video player and screen reader. Aria label for mute button'
|
|
632
|
+
},
|
|
628
633
|
playbackDefaultSpeed: {
|
|
629
634
|
id: 'fabric.media.playback_default_speed',
|
|
630
635
|
defaultMessage: 'Default',
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Component } from 'react';
|
|
3
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
|
-
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
5
|
-
import { NumericalCardDimensions } from '@atlaskit/media-common';
|
|
6
|
-
import { CustomMediaPlayerType } from './types';
|
|
7
|
-
import { WithPlaybackProps, WithMediaPlayerState } from './analytics';
|
|
8
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
9
|
-
import { WithShowControlMethodProp } from '../types';
|
|
10
|
-
import { TimeSaverConfig } from './timeSaver';
|
|
3
|
+
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
|
+
import { type MediaFeatureFlags } from '@atlaskit/media-common';
|
|
5
|
+
import { type NumericalCardDimensions } from '@atlaskit/media-common';
|
|
6
|
+
import { type CustomMediaPlayerType } from './types';
|
|
7
|
+
import { type WithPlaybackProps, type WithMediaPlayerState } from './analytics';
|
|
8
|
+
import { type WrappedComponentProps } from 'react-intl-next';
|
|
9
|
+
import { type WithShowControlMethodProp } from '../types';
|
|
10
|
+
import { type TimeSaverConfig } from './timeSaver';
|
|
11
11
|
export interface CustomMediaPlayerProps extends WithPlaybackProps, WithShowControlMethodProp {
|
|
12
12
|
readonly type: CustomMediaPlayerType;
|
|
13
13
|
readonly src: string;
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
1
|
+
import { type MessageDescriptor } from 'react-intl-next';
|
|
2
2
|
export type RequestAccessMessageKey = 'request_access_description' | 'click_to_join_description' | 'request_access_pending_description' | 'click_to_join' | 'request_access' | 'request_access_pending' | 'forbidden_description' | 'request_denied_description';
|
|
3
|
-
export type MessageKey = 'retry' | 'failed_to_load' | 'failed_to_upload' | 'recent_uploads' | 'upload_file' | 'drag_and_drop_your_files' | 'drag_and_drop_your_files_and_folders' | 'drop_your_files' | 'upload' | 'cancel' | 'search_all_gifs' | 'cant_retrieve_gifs' | 'cant_retrieve_files' | 'check_your_network' | 'try_again' | 'try_another_account' | 'no_gifs_found' | 'no_gifs_found_suggestion' | 'load_more_gifs' | 'add_account' | 'unlink_account' | 'upload_file_from' | 'connect_to' | 'connect_account_description' | 'connect_link_account' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'invalid_permissions' | 'invalid_permissions_description' | 'select_an_avatar' | 'upload_an_avatar' | 'or_select_default_avatars' | 'select_an_avatar_from_all_defaults' | 'show_more_avatars_btn_label' | 'loading' | 'loading_file' | 'save' | 'or' | 'upload_photo' | 'default_avatars' | 'avatar_picker_back_btn_label' | 'drag_and_drop_images_here' | '
|
|
3
|
+
export type MessageKey = 'retry' | 'failed_to_load' | 'failed_to_upload' | 'recent_uploads' | 'upload_file' | 'drag_and_drop_your_files' | 'drag_and_drop_your_files_and_folders' | 'drop_your_files' | 'upload' | 'cancel' | 'search_all_gifs' | 'cant_retrieve_gifs' | 'cant_retrieve_files' | 'check_your_network' | 'try_again' | 'try_another_account' | 'no_gifs_found' | 'no_gifs_found_suggestion' | 'load_more_gifs' | 'add_account' | 'unlink_account' | 'upload_file_from' | 'connect_to' | 'connect_account_description' | 'connect_link_account' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'invalid_permissions' | 'invalid_permissions_description' | 'select_an_avatar' | 'upload_an_avatar' | 'or_select_default_avatars' | 'select_an_avatar_from_all_defaults' | 'show_more_avatars_btn_label' | 'loading' | 'loading_file' | 'save' | 'or' | 'upload_photo' | 'default_avatars' | 'avatar_picker_back_btn_label' | 'drag_and_drop_images_here' | 'alt_text' | 'alt_text_description' | 'image_url_invalid_error' | 'image_format_invalid_error' | 'image_size_too_large_error' | 'something_went_wrong' | 'might_be_a_hiccup' | 'couldnt_generate_preview' | 'couldnt_generate_encrypted_entry_preview' | 'cant_preview_file_type' | 'item_not_found_in_list' | 'not_found_title' | 'not_found_description' | 'no_pdf_artifacts' | 'password_protected_pdf' | 'password' | 'enter_password' | 'incorrect_password' | 'submit' | 'give_feedback' | 'try_downloading_file' | 'webgl_warning_description' | 'unable_to_annotate_image' | 'learn_more' | 'accounts' | 'actions' | 'error_hint_retry' | 'error_hint_critical' | 'close' | 'could_not_load_editor' | 'could_not_save_image' | 'could_not_load_link' | 'annotate' | 'annotate_tool_arrow' | 'annotate_tool_text' | 'annotate_tool_shape' | 'annotate_tool_brush' | 'annotate_tool_blur' | 'annotate_tool_line_thickness' | 'annotate_tool_color' | 'annotate_confirmation_close_anyway' | 'annotate_confirmation_heading' | 'annotate_confirmation_content' | 'drop_your_files_here' | 'share_files_instantly' | 'insert_files' | 'zoom_out' | 'zoom_in' | 'remove_image' | 'play' | 'pause' | 'disable_fullscreen' | 'enable_fullscreen' | 'error_loading_file' | 'error_generating_preview' | 'download' | 'unknown' | 'document' | 'audio' | 'video' | 'image' | 'archive' | 'email' | 'text' | 'displayThumbnail' | 'search' | 'view' | 'viewIn' | 'viewOriginal' | 'changeView' | 'playbackSpeed' | 'skipBackward' | 'skipForward' | 'volumeMuteButtonAria' | 'volumeLevelControlAria' | 'playbackDefaultSpeed' | 'preview' | 'preview_unavailable' | 'preview_currently_unavailable' | 'creating_preview' | 'couldnt_load_file' | 'error_429' | 'close_and_reopen' | 'viewer_rateLimited' | 'zip_entry_load_fail' | 'file_image_is_selected' | 'file_video_is_selected' | 'file_audio_is_selected' | 'file_doc_is_selected' | 'file_archive_is_selected' | 'file_unknown_is_selected' | 'open_file_in_viewer' | 'video_seeker_assistive_text_time_value' | 'video_seeker_label_assistive_text' | RequestAccessMessageKey;
|
|
4
4
|
type Messages = {
|
|
5
5
|
[K in MessageKey]: MessageDescriptor;
|
|
6
6
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Component } from 'react';
|
|
3
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
|
-
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
5
|
-
import { NumericalCardDimensions } from '@atlaskit/media-common';
|
|
6
|
-
import { CustomMediaPlayerType } from './types';
|
|
7
|
-
import { WithPlaybackProps, WithMediaPlayerState } from './analytics';
|
|
8
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
9
|
-
import { WithShowControlMethodProp } from '../types';
|
|
10
|
-
import { TimeSaverConfig } from './timeSaver';
|
|
3
|
+
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
|
+
import { type MediaFeatureFlags } from '@atlaskit/media-common';
|
|
5
|
+
import { type NumericalCardDimensions } from '@atlaskit/media-common';
|
|
6
|
+
import { type CustomMediaPlayerType } from './types';
|
|
7
|
+
import { type WithPlaybackProps, type WithMediaPlayerState } from './analytics';
|
|
8
|
+
import { type WrappedComponentProps } from 'react-intl-next';
|
|
9
|
+
import { type WithShowControlMethodProp } from '../types';
|
|
10
|
+
import { type TimeSaverConfig } from './timeSaver';
|
|
11
11
|
export interface CustomMediaPlayerProps extends WithPlaybackProps, WithShowControlMethodProp {
|
|
12
12
|
readonly type: CustomMediaPlayerType;
|
|
13
13
|
readonly src: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
1
|
+
import { type MessageDescriptor } from 'react-intl-next';
|
|
2
2
|
export type RequestAccessMessageKey = 'request_access_description' | 'click_to_join_description' | 'request_access_pending_description' | 'click_to_join' | 'request_access' | 'request_access_pending' | 'forbidden_description' | 'request_denied_description';
|
|
3
|
-
export type MessageKey = 'retry' | 'failed_to_load' | 'failed_to_upload' | 'recent_uploads' | 'upload_file' | 'drag_and_drop_your_files' | 'drag_and_drop_your_files_and_folders' | 'drop_your_files' | 'upload' | 'cancel' | 'search_all_gifs' | 'cant_retrieve_gifs' | 'cant_retrieve_files' | 'check_your_network' | 'try_again' | 'try_another_account' | 'no_gifs_found' | 'no_gifs_found_suggestion' | 'load_more_gifs' | 'add_account' | 'unlink_account' | 'upload_file_from' | 'connect_to' | 'connect_account_description' | 'connect_link_account' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'invalid_permissions' | 'invalid_permissions_description' | 'select_an_avatar' | 'upload_an_avatar' | 'or_select_default_avatars' | 'select_an_avatar_from_all_defaults' | 'show_more_avatars_btn_label' | 'loading' | 'loading_file' | 'save' | 'or' | 'upload_photo' | 'default_avatars' | 'avatar_picker_back_btn_label' | 'drag_and_drop_images_here' | '
|
|
3
|
+
export type MessageKey = 'retry' | 'failed_to_load' | 'failed_to_upload' | 'recent_uploads' | 'upload_file' | 'drag_and_drop_your_files' | 'drag_and_drop_your_files_and_folders' | 'drop_your_files' | 'upload' | 'cancel' | 'search_all_gifs' | 'cant_retrieve_gifs' | 'cant_retrieve_files' | 'check_your_network' | 'try_again' | 'try_another_account' | 'no_gifs_found' | 'no_gifs_found_suggestion' | 'load_more_gifs' | 'add_account' | 'unlink_account' | 'upload_file_from' | 'connect_to' | 'connect_account_description' | 'connect_link_account' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'invalid_permissions' | 'invalid_permissions_description' | 'select_an_avatar' | 'upload_an_avatar' | 'or_select_default_avatars' | 'select_an_avatar_from_all_defaults' | 'show_more_avatars_btn_label' | 'loading' | 'loading_file' | 'save' | 'or' | 'upload_photo' | 'default_avatars' | 'avatar_picker_back_btn_label' | 'drag_and_drop_images_here' | 'alt_text' | 'alt_text_description' | 'image_url_invalid_error' | 'image_format_invalid_error' | 'image_size_too_large_error' | 'something_went_wrong' | 'might_be_a_hiccup' | 'couldnt_generate_preview' | 'couldnt_generate_encrypted_entry_preview' | 'cant_preview_file_type' | 'item_not_found_in_list' | 'not_found_title' | 'not_found_description' | 'no_pdf_artifacts' | 'password_protected_pdf' | 'password' | 'enter_password' | 'incorrect_password' | 'submit' | 'give_feedback' | 'try_downloading_file' | 'webgl_warning_description' | 'unable_to_annotate_image' | 'learn_more' | 'accounts' | 'actions' | 'error_hint_retry' | 'error_hint_critical' | 'close' | 'could_not_load_editor' | 'could_not_save_image' | 'could_not_load_link' | 'annotate' | 'annotate_tool_arrow' | 'annotate_tool_text' | 'annotate_tool_shape' | 'annotate_tool_brush' | 'annotate_tool_blur' | 'annotate_tool_line_thickness' | 'annotate_tool_color' | 'annotate_confirmation_close_anyway' | 'annotate_confirmation_heading' | 'annotate_confirmation_content' | 'drop_your_files_here' | 'share_files_instantly' | 'insert_files' | 'zoom_out' | 'zoom_in' | 'remove_image' | 'play' | 'pause' | 'disable_fullscreen' | 'enable_fullscreen' | 'error_loading_file' | 'error_generating_preview' | 'download' | 'unknown' | 'document' | 'audio' | 'video' | 'image' | 'archive' | 'email' | 'text' | 'displayThumbnail' | 'search' | 'view' | 'viewIn' | 'viewOriginal' | 'changeView' | 'playbackSpeed' | 'skipBackward' | 'skipForward' | 'volumeMuteButtonAria' | 'volumeLevelControlAria' | 'playbackDefaultSpeed' | 'preview' | 'preview_unavailable' | 'preview_currently_unavailable' | 'creating_preview' | 'couldnt_load_file' | 'error_429' | 'close_and_reopen' | 'viewer_rateLimited' | 'zip_entry_load_fail' | 'file_image_is_selected' | 'file_video_is_selected' | 'file_audio_is_selected' | 'file_doc_is_selected' | 'file_archive_is_selected' | 'file_unknown_is_selected' | 'open_file_in_viewer' | 'video_seeker_assistive_text_time_value' | 'video_seeker_label_assistive_text' | RequestAccessMessageKey;
|
|
4
4
|
type Messages = {
|
|
5
5
|
[K in MessageKey]: MessageDescriptor;
|
|
6
6
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-ui",
|
|
3
|
-
"version": "25.10.
|
|
3
|
+
"version": "25.10.3",
|
|
4
4
|
"description": "Includes common components and utilities used by other media packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
27
27
|
"@atlaskit/button": "^17.14.0",
|
|
28
|
-
"@atlaskit/code": "^15.
|
|
28
|
+
"@atlaskit/code": "^15.2.0",
|
|
29
29
|
"@atlaskit/icon": "^22.1.0",
|
|
30
30
|
"@atlaskit/icon-file-type": "^6.4.0",
|
|
31
31
|
"@atlaskit/locale": "^2.7.0",
|
|
32
32
|
"@atlaskit/media-common": "^11.2.0",
|
|
33
33
|
"@atlaskit/platform-feature-flags": "^0.2.5",
|
|
34
|
-
"@atlaskit/primitives": "^6.
|
|
34
|
+
"@atlaskit/primitives": "^6.1.0",
|
|
35
35
|
"@atlaskit/range": "^7.2.0",
|
|
36
|
-
"@atlaskit/select": "^17.
|
|
36
|
+
"@atlaskit/select": "^17.9.0",
|
|
37
37
|
"@atlaskit/spinner": "^16.1.0",
|
|
38
|
-
"@atlaskit/theme": "^12.
|
|
39
|
-
"@atlaskit/tokens": "^1.
|
|
38
|
+
"@atlaskit/theme": "^12.8.0",
|
|
39
|
+
"@atlaskit/tokens": "^1.46.0",
|
|
40
40
|
"@atlaskit/tooltip": "^18.3.0",
|
|
41
|
-
"@atlaskit/width-detector": "^4.
|
|
41
|
+
"@atlaskit/width-detector": "^4.2.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
43
|
"@emotion/styled": "^11.0.0",
|
|
44
44
|
"blueimp-load-image": "2.19.0",
|