@atlaskit/media-ui 30.3.0 → 30.4.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/AGENTS.md CHANGED
@@ -26,11 +26,11 @@
26
26
  > codebase and the docs after any code change. Use the `generate` subcommand to bootstrap the index
27
27
  > in a new repository.
28
28
 
29
- **Entry point:** `.agents/knowledge-index/INDEX.md` **Unit doc:**
30
- `.agents/knowledge-index/domains/media/units/atlaskit-media-ui.md` **CLI:**
31
- `python3 .agents/skills/knowledge-index/scripts/kg.py {find,read,edit,investigate,validate,init,explore,generate} …`
32
- **Refresh protocol:** never silently bump `Last verified` — always re-read the listed `Sources`
33
- first, edit, then `kg.py edit <path> --message "<reason>"`.
29
+ **Entry point:** `.agents/knowledge-index/INDEX.md`
30
+ **Unit doc:** `.agents/knowledge-index/domains/media/units/atlaskit-media-ui.md`
31
+ **Standards page:** `.agents/knowledge-index/domains/media/units/atlaskit-media-ui/standards-and-patterns.md`
32
+ **CLI:** `python3 .agents/skills/knowledge-index/scripts/kg.py {find,read,edit,investigate,validate,init,explore,generate} …`
33
+ **Refresh protocol:** never silently bump `Last verified` — always re-read the listed `Sources` first, edit, then `kg.py edit <path> --message "<reason>"`.
34
34
 
35
35
  ## Key source files
36
36
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @atlaskit/media-ui
2
2
 
3
+ ## 30.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`6d48bbf99477b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6d48bbf99477b) -
8
+ Update i18n NPM package versions for editor,editor-extensions,activity-platform,media,elements
9
+ (Group 3)
10
+
11
+ ## 30.3.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [`ee28cf33718b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee28cf33718b0) -
16
+ Add @atlaskit/react-compiler-gating as a runtime dependency to enable React Compiler platform
17
+ gating.
18
+ - [`3a1dcbc4999da`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3a1dcbc4999da) -
19
+ A11Y fix (A11Y-41905): Add new `open_file_in_viewer_aria_label` message
20
+ (`'Open {name} in fullscreen'`) to provide screen reader users with clearer context about the
21
+ button action. The original `open_file_in_viewer` message is unchanged. `OpenMediaViewerButton`
22
+ now applies this aria-label when the `create_modernization_ga_fixes_drop_2` gate is enabled.
23
+ - Updated dependencies
24
+
3
25
  ## 30.3.0
4
26
 
5
27
  ### Minor Changes
@@ -14,7 +14,7 @@ var CustomMediaPlayerBase = exports.CustomMediaPlayerBase = function CustomMedia
14
14
  return /*#__PURE__*/_react.default.createElement(_indexCompiled.CustomMediaPlayerBase, props);
15
15
  };
16
16
  var packageName = "@atlaskit/media-ui";
17
- var packageVersion = "30.2.0";
17
+ var packageVersion = "30.3.1";
18
18
 
19
19
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
20
20
  var CustomMediaPlayer = exports.CustomMediaPlayer = (0, _mediaCommon.withMediaAnalyticsContext)({
@@ -15,7 +15,7 @@ var _useTextTracks2 = require("./useTextTracks");
15
15
  var _analyticsNext = require("@atlaskit/analytics-next");
16
16
  var _excluded = ["onPlay"];
17
17
  var packageName = "@atlaskit/media-ui";
18
- var packageVersion = "30.2.0";
18
+ var packageVersion = "30.3.1";
19
19
  var MediaPlayerWihtoutContext = exports.MediaPlayerWihtoutContext = function MediaPlayerWihtoutContext(_ref) {
20
20
  var _onPlay = _ref.onPlay,
21
21
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
@@ -826,6 +826,11 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
826
826
  defaultMessage: 'Open {name}',
827
827
  description: 'Shown when user focuses on preview to open the full screen viewer of the file with {name}'
828
828
  },
829
+ open_file_in_viewer_aria_label: {
830
+ id: 'fabric.media.open_file_in_viewer_aria_label',
831
+ defaultMessage: 'Open {name} in fullscreen',
832
+ description: 'Aria label for the button that opens the full screen viewer. Provides additional context for screen reader users that the action opens a fullscreen viewer.'
833
+ },
829
834
  video_seeker_assistive_text_time_value: {
830
835
  id: 'fabric.media.video_seeker_assistive_text_time_value',
831
836
  defaultMessage: '{currentTimeHours} {currentTimeMinutes} {currentTimeSeconds} of {videoTotalHours} {videoTotalMinutes} {videoTotalSeconds}',
@@ -5,7 +5,7 @@ import { CustomMediaPlayerBase as CompiledCustomMediaPlayerBase } from './index-
5
5
  import { withMediaAnalyticsContext } from '@atlaskit/media-common';
6
6
  export const CustomMediaPlayerBase = props => /*#__PURE__*/React.createElement(CompiledCustomMediaPlayerBase, props);
7
7
  const packageName = "@atlaskit/media-ui";
8
- const packageVersion = "30.2.0";
8
+ const packageVersion = "30.3.1";
9
9
 
10
10
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
11
11
  export const CustomMediaPlayer = withMediaAnalyticsContext({
@@ -6,7 +6,7 @@ import { MediaPlayerBase } from './mediaPlayerBase';
6
6
  import { useTextTracks } from './useTextTracks';
7
7
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
8
8
  const packageName = "@atlaskit/media-ui";
9
- const packageVersion = "30.2.0";
9
+ const packageVersion = "30.3.1";
10
10
  export const MediaPlayerWihtoutContext = ({
11
11
  onPlay,
12
12
  ...props
@@ -820,6 +820,11 @@ export const messages = defineMessages({
820
820
  defaultMessage: 'Open {name}',
821
821
  description: 'Shown when user focuses on preview to open the full screen viewer of the file with {name}'
822
822
  },
823
+ open_file_in_viewer_aria_label: {
824
+ id: 'fabric.media.open_file_in_viewer_aria_label',
825
+ defaultMessage: 'Open {name} in fullscreen',
826
+ description: 'Aria label for the button that opens the full screen viewer. Provides additional context for screen reader users that the action opens a fullscreen viewer.'
827
+ },
823
828
  video_seeker_assistive_text_time_value: {
824
829
  id: 'fabric.media.video_seeker_assistive_text_time_value',
825
830
  defaultMessage: '{currentTimeHours} {currentTimeMinutes} {currentTimeSeconds} of {videoTotalHours} {videoTotalMinutes} {videoTotalSeconds}',
@@ -7,7 +7,7 @@ export var CustomMediaPlayerBase = function CustomMediaPlayerBase(props) {
7
7
  return /*#__PURE__*/React.createElement(CompiledCustomMediaPlayerBase, props);
8
8
  };
9
9
  var packageName = "@atlaskit/media-ui";
10
- var packageVersion = "30.2.0";
10
+ var packageVersion = "30.3.1";
11
11
 
12
12
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
13
13
  export var CustomMediaPlayer = withMediaAnalyticsContext({
@@ -8,7 +8,7 @@ import { MediaPlayerBase } from './mediaPlayerBase';
8
8
  import { useTextTracks } from './useTextTracks';
9
9
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
10
10
  var packageName = "@atlaskit/media-ui";
11
- var packageVersion = "30.2.0";
11
+ var packageVersion = "30.3.1";
12
12
  export var MediaPlayerWihtoutContext = function MediaPlayerWihtoutContext(_ref) {
13
13
  var _onPlay = _ref.onPlay,
14
14
  props = _objectWithoutProperties(_ref, _excluded);
@@ -820,6 +820,11 @@ export var messages = defineMessages({
820
820
  defaultMessage: 'Open {name}',
821
821
  description: 'Shown when user focuses on preview to open the full screen viewer of the file with {name}'
822
822
  },
823
+ open_file_in_viewer_aria_label: {
824
+ id: 'fabric.media.open_file_in_viewer_aria_label',
825
+ defaultMessage: 'Open {name} in fullscreen',
826
+ description: 'Aria label for the button that opens the full screen viewer. Provides additional context for screen reader users that the action opens a fullscreen viewer.'
827
+ },
823
828
  video_seeker_assistive_text_time_value: {
824
829
  id: 'fabric.media.video_seeker_assistive_text_time_value',
825
830
  defaultMessage: '{currentTimeHours} {currentTimeMinutes} {currentTimeSeconds} of {videoTotalHours} {videoTotalMinutes} {videoTotalSeconds}',
@@ -1,6 +1,6 @@
1
1
  import { type MessageDescriptor } from 'react-intl';
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' | 'check_internet_connection' | 'recent_uploads' | 'upload_file' | 'drag_and_drop_your_files' | 'drag_and_drop_your_files_and_folders' | 'drop_your_files' | 'upload' | 'cancel' | 'delete' | 'success' | 'error' | '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' | 'archive_format_not_supported' | 'unsupported_file_format' | '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' | 'download_disabled_security_policy' | 'unknown' | 'document' | 'audio' | 'video' | 'image' | 'archive' | 'email' | 'text' | 'displayThumbnail' | 'search' | 'view' | 'viewIn' | 'viewOriginal' | 'changeView' | 'playbackSpeed' | 'skipBackward' | 'skipForward' | 'sizeOptions' | 'fileDisplayOptions' | 'volumeMuteButtonAria' | 'volumeLevelControlAria' | 'playbackDefaultSpeed' | 'expand' | 'preview' | 'preview_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' | 'abuse_modal_body' | 'abuse_modal_title' | 'abuse_modal_submit' | 'image_cropper_arrow_keys_label' | 'image_cropper_image_moved' | 'image_cropper_zoom_out' | 'image_cropper_zoom_in' | 'image_cropper_zoom_slider' | 'image_placer_img_alt' | 'video_captions_enable' | 'video_captions_select_captions' | 'video_captions_upload_captions_form_header' | 'video_captions_upload_captions_form_language_picker' | 'video_captions_upload_success_description' | 'video_captions_upload_error_description' | 'video_captions_delete_captions_confirmation_header' | 'video_captions_delete_captions_confirmation_description' | 'video_captions_delete_success_description' | 'video_captions_delete_error_description' | 'manage_captions' | 'add_captions' | 'svg_base_alt' | 'archive_download_label_assistive_text' | RequestAccessMessageKey;
3
+ export type MessageKey = 'retry' | 'failed_to_load' | 'failed_to_upload' | 'check_internet_connection' | 'recent_uploads' | 'upload_file' | 'drag_and_drop_your_files' | 'drag_and_drop_your_files_and_folders' | 'drop_your_files' | 'upload' | 'cancel' | 'delete' | 'success' | 'error' | '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' | 'archive_format_not_supported' | 'unsupported_file_format' | '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' | 'download_disabled_security_policy' | 'unknown' | 'document' | 'audio' | 'video' | 'image' | 'archive' | 'email' | 'text' | 'displayThumbnail' | 'search' | 'view' | 'viewIn' | 'viewOriginal' | 'changeView' | 'playbackSpeed' | 'skipBackward' | 'skipForward' | 'sizeOptions' | 'fileDisplayOptions' | 'volumeMuteButtonAria' | 'volumeLevelControlAria' | 'playbackDefaultSpeed' | 'expand' | 'preview' | 'preview_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' | 'open_file_in_viewer_aria_label' | 'video_seeker_assistive_text_time_value' | 'video_seeker_label_assistive_text' | 'abuse_modal_body' | 'abuse_modal_title' | 'abuse_modal_submit' | 'image_cropper_arrow_keys_label' | 'image_cropper_image_moved' | 'image_cropper_zoom_out' | 'image_cropper_zoom_in' | 'image_cropper_zoom_slider' | 'image_placer_img_alt' | 'video_captions_enable' | 'video_captions_select_captions' | 'video_captions_upload_captions_form_header' | 'video_captions_upload_captions_form_language_picker' | 'video_captions_upload_success_description' | 'video_captions_upload_error_description' | 'video_captions_delete_captions_confirmation_header' | 'video_captions_delete_captions_confirmation_description' | 'video_captions_delete_success_description' | 'video_captions_delete_error_description' | 'manage_captions' | 'add_captions' | 'svg_base_alt' | 'archive_download_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": "30.3.0",
3
+ "version": "30.4.0",
4
4
  "description": "Includes common components and utilities used by other media packages",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -20,7 +20,7 @@
20
20
  "react-compiler": {
21
21
  "enabled": true,
22
22
  "gating": {
23
- "source": "@atlassian/react-compiler-gating",
23
+ "source": "@atlaskit/react-compiler-gating",
24
24
  "importSpecifierName": "isReactCompilerActivePlatform"
25
25
  }
26
26
  },
@@ -30,18 +30,18 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
- "@atlaskit/afm-i18n-platform-media-media-ui": "2.160.0",
33
+ "@atlaskit/afm-i18n-platform-media-media-ui": "2.168.0",
34
34
  "@atlaskit/analytics-next": "^12.0.0",
35
35
  "@atlaskit/browser-apis": "^1.0.0",
36
36
  "@atlaskit/button": "^24.1.0",
37
- "@atlaskit/code": "^18.0.0",
37
+ "@atlaskit/code": "^18.1.0",
38
38
  "@atlaskit/css": "^1.0.0",
39
39
  "@atlaskit/flag": "^18.0.0",
40
40
  "@atlaskit/form": "^16.0.0",
41
41
  "@atlaskit/icon": "^36.0.0",
42
42
  "@atlaskit/icon-file-type": "^8.0.0",
43
43
  "@atlaskit/locale": "^5.0.0",
44
- "@atlaskit/media-client": "^37.0.0",
44
+ "@atlaskit/media-client": "^37.1.0",
45
45
  "@atlaskit/media-client-react": "^6.0.0",
46
46
  "@atlaskit/media-common": "^14.1.0",
47
47
  "@atlaskit/media-state": "^3.0.0",
@@ -49,11 +49,12 @@
49
49
  "@atlaskit/platform-feature-flags": "^2.0.0",
50
50
  "@atlaskit/primitives": "^20.0.0",
51
51
  "@atlaskit/range": "^11.0.0",
52
- "@atlaskit/react-ufo": "^7.1.0",
52
+ "@atlaskit/react-compiler-gating": "^0.2.0",
53
+ "@atlaskit/react-ufo": "^7.2.0",
53
54
  "@atlaskit/select": "^22.1.0",
54
55
  "@atlaskit/spinner": "^20.0.0",
55
56
  "@atlaskit/theme": "^26.0.0",
56
- "@atlaskit/tokens": "^14.0.0",
57
+ "@atlaskit/tokens": "^15.0.0",
57
58
  "@atlaskit/tooltip": "^23.0.0",
58
59
  "@atlaskit/width-detector": "^6.0.0",
59
60
  "@babel/runtime": "^7.0.0",
@@ -77,9 +78,8 @@
77
78
  "@atlaskit/analytics-listeners": "^11.0.0",
78
79
  "@atlaskit/media-test-data": "^4.0.0",
79
80
  "@atlaskit/ssr": "workspace:^",
80
- "@atlassian/a11y-jest-testing": "^0.12.0",
81
+ "@atlassian/a11y-jest-testing": "^0.13.0",
81
82
  "@atlassian/feature-flags-test-utils": "^1.1.0",
82
- "@atlassian/react-compiler-gating": "workspace:^",
83
83
  "@atlassian/testing-library": "^0.6.0",
84
84
  "@testing-library/jest-dom": "^6.4.5",
85
85
  "@testing-library/react": "^16.3.0",
@@ -91,7 +91,7 @@
91
91
  "jsverify": "^0.8.3",
92
92
  "react": "^18.2.0",
93
93
  "react-dom": "^18.2.0",
94
- "react-intl": "^6.6.2",
94
+ "react-intl": "^7.0.0",
95
95
  "wait-for-expect": "^1.2.0"
96
96
  },
97
97
  "platform-feature-flags": {