@atlaskit/media-ui 25.6.0 → 25.7.0

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/media-ui
2
2
 
3
+ ## 25.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#86221](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86221) [`3d897cbc0397`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3d897cbc0397) - [ux] Adds a mechanism for user to enter alt text in avatar picker
8
+
9
+ ## 25.6.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#89185](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89185) [`bf076b766e85`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bf076b766e85) - CXP-3206 Fix CustomMediaPlayer's thumb vertical positioning
14
+
3
15
  ## 25.6.0
4
16
 
5
17
  ### Minor Changes
@@ -52,7 +52,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
52
52
  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
53
53
  // support the hybrid theming in media viewer https://product-fabric.atlassian.net/browse/DSP-6067
54
54
  var packageName = "@atlaskit/media-ui";
55
- var packageVersion = "25.6.0";
55
+ var packageVersion = "25.7.0";
56
56
  var MEDIUM_VIDEO_MAX_WIDTH = 400;
57
57
  var SMALL_VIDEO_MAX_WIDTH = 160;
58
58
  var MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
@@ -43,9 +43,7 @@ var CurrentTimeLine = exports.CurrentTimeLine = _styled.default.div({
43
43
  height: 'inherit',
44
44
  position: 'absolute',
45
45
  top: "var(--ds-space-0, 0px)",
46
- maxWidth: '100%',
47
- display: 'flex',
48
- alignItems: 'center'
46
+ maxWidth: '100%'
49
47
  });
50
48
  var Thumb = exports.Thumb = _styled.default.div({
51
49
  pointerEvents: 'none',
@@ -56,6 +54,7 @@ var Thumb = exports.Thumb = _styled.default.div({
56
54
  border: '1px solid #666',
57
55
  position: 'absolute',
58
56
  right: 0,
57
+ top: "var(--ds-space-025, 2px)",
59
58
  transform: 'translate(7px, -50%) scale(0)',
60
59
  transition: 'all 0.1s',
61
60
  transitionDelay: '1s',
@@ -266,6 +266,16 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
266
266
  defaultMessage: 'Upload image',
267
267
  description: 'Call to action for the user to upload a new image'
268
268
  },
269
+ alt_text: {
270
+ id: 'fabric.media.alt_text',
271
+ defaultMessage: 'Alt text',
272
+ description: 'Shown above the alt text field'
273
+ },
274
+ alt_text_description: {
275
+ id: 'fabric.media.alt_text',
276
+ defaultMessage: 'How would you describe the selected image to someone with low vision?',
277
+ description: 'Shown below the alt text field'
278
+ },
269
279
  image_url_invalid_error: {
270
280
  id: 'fabric.media.image_url_invalid_error',
271
281
  defaultMessage: 'Could not load image, the url is invalid.',
@@ -35,7 +35,7 @@ import Tooltip from '@atlaskit/tooltip';
35
35
  import { SkipTenBackwardIcon, SkipTenForwardIcon } from './icons';
36
36
  import { getControlsWrapperClassName } from './getControlsWrapperClassName';
37
37
  const packageName = "@atlaskit/media-ui";
38
- const packageVersion = "25.6.0";
38
+ const packageVersion = "25.7.0";
39
39
  const MEDIUM_VIDEO_MAX_WIDTH = 400;
40
40
  const SMALL_VIDEO_MAX_WIDTH = 160;
41
41
  const MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
@@ -38,9 +38,7 @@ export const CurrentTimeLine = styled.div({
38
38
  height: 'inherit',
39
39
  position: 'absolute',
40
40
  top: "var(--ds-space-0, 0px)",
41
- maxWidth: '100%',
42
- display: 'flex',
43
- alignItems: 'center'
41
+ maxWidth: '100%'
44
42
  });
45
43
  export const Thumb = styled.div({
46
44
  pointerEvents: 'none',
@@ -51,6 +49,7 @@ export const Thumb = styled.div({
51
49
  border: '1px solid #666',
52
50
  position: 'absolute',
53
51
  right: 0,
52
+ top: "var(--ds-space-025, 2px)",
54
53
  transform: 'translate(7px, -50%) scale(0)',
55
54
  transition: 'all 0.1s',
56
55
  transitionDelay: '1s',
@@ -260,6 +260,16 @@ export const messages = defineMessages({
260
260
  defaultMessage: 'Upload image',
261
261
  description: 'Call to action for the user to upload a new image'
262
262
  },
263
+ alt_text: {
264
+ id: 'fabric.media.alt_text',
265
+ defaultMessage: 'Alt text',
266
+ description: 'Shown above the alt text field'
267
+ },
268
+ alt_text_description: {
269
+ id: 'fabric.media.alt_text',
270
+ defaultMessage: 'How would you describe the selected image to someone with low vision?',
271
+ description: 'Shown below the alt text field'
272
+ },
263
273
  image_url_invalid_error: {
264
274
  id: 'fabric.media.image_url_invalid_error',
265
275
  defaultMessage: 'Could not load image, the url is invalid.',
@@ -45,7 +45,7 @@ import Tooltip from '@atlaskit/tooltip';
45
45
  import { SkipTenBackwardIcon, SkipTenForwardIcon } from './icons';
46
46
  import { getControlsWrapperClassName } from './getControlsWrapperClassName';
47
47
  var packageName = "@atlaskit/media-ui";
48
- var packageVersion = "25.6.0";
48
+ var packageVersion = "25.7.0";
49
49
  var MEDIUM_VIDEO_MAX_WIDTH = 400;
50
50
  var SMALL_VIDEO_MAX_WIDTH = 160;
51
51
  var MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
@@ -35,9 +35,7 @@ export var CurrentTimeLine = styled.div({
35
35
  height: 'inherit',
36
36
  position: 'absolute',
37
37
  top: "var(--ds-space-0, 0px)",
38
- maxWidth: '100%',
39
- display: 'flex',
40
- alignItems: 'center'
38
+ maxWidth: '100%'
41
39
  });
42
40
  export var Thumb = styled.div({
43
41
  pointerEvents: 'none',
@@ -48,6 +46,7 @@ export var Thumb = styled.div({
48
46
  border: '1px solid #666',
49
47
  position: 'absolute',
50
48
  right: 0,
49
+ top: "var(--ds-space-025, 2px)",
51
50
  transform: 'translate(7px, -50%) scale(0)',
52
51
  transition: 'all 0.1s',
53
52
  transitionDelay: '1s',
@@ -260,6 +260,16 @@ export var messages = defineMessages({
260
260
  defaultMessage: 'Upload image',
261
261
  description: 'Call to action for the user to upload a new image'
262
262
  },
263
+ alt_text: {
264
+ id: 'fabric.media.alt_text',
265
+ defaultMessage: 'Alt text',
266
+ description: 'Shown above the alt text field'
267
+ },
268
+ alt_text_description: {
269
+ id: 'fabric.media.alt_text',
270
+ defaultMessage: 'How would you describe the selected image to someone with low vision?',
271
+ description: 'Shown below the alt text field'
272
+ },
263
273
  image_url_invalid_error: {
264
274
  id: 'fabric.media.image_url_invalid_error',
265
275
  defaultMessage: 'Could not load image, the url is invalid.',
@@ -1,6 +1,6 @@
1
1
  import { 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' | 'upload_image' | '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' | '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' | RequestAccessMessageKey;
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' | 'upload_image' | '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' | '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' | RequestAccessMessageKey;
4
4
  type Messages = {
5
5
  [K in MessageKey]: MessageDescriptor;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import { 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' | 'upload_image' | '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' | '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' | RequestAccessMessageKey;
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' | 'upload_image' | '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' | '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' | 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.6.0",
3
+ "version": "25.7.0",
4
4
  "description": "Includes common components and utilities used by other media packages",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,7 +36,7 @@
36
36
  "@atlaskit/spinner": "^16.0.0",
37
37
  "@atlaskit/theme": "^12.7.0",
38
38
  "@atlaskit/tokens": "^1.43.0",
39
- "@atlaskit/tooltip": "^18.1.0",
39
+ "@atlaskit/tooltip": "^18.2.0",
40
40
  "@atlaskit/width-detector": "^4.1.0",
41
41
  "@babel/runtime": "^7.0.0",
42
42
  "@emotion/styled": "^11.0.0",