@atlaskit/media-ui 30.5.0 → 30.6.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,27 @@
1
1
  # @atlaskit/media-ui
2
2
 
3
+ ## 30.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`e8071bab93879`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e8071bab93879) -
8
+ Refactor packages with custom root `src/index` barrel logic to use dedicated entry modules (for
9
+ example `main`, `types`, `constants`, `screen`, and package-specific entrypoints) while keeping
10
+ public exports stable. This aligns the packages with barrel-file ratcheting by reducing custom
11
+ logic in root barrels and removing now-safe packages from the prohibited barrel-file list.
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
17
+ ## 30.5.1
18
+
19
+ ### Patch Changes
20
+
21
+ - [`8a141c7aaddfa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8a141c7aaddfa) -
22
+ Improve i18n message descriptions with meaningful translator context for media-ui and
23
+ proforma-form-builder messages
24
+
3
25
  ## 30.5.0
4
26
 
5
27
  ### Minor Changes
package/compass.yml ADDED
@@ -0,0 +1,38 @@
1
+ configVersion: 1
2
+ id: ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/d74a8206-c40e-4135-be77-f3939d0d5369
3
+ name: '@atlaskit/media-ui'
4
+ ownerId: ari:cloud:identity::team/67d46864-2809-45fc-8ef0-f9a810dc13c5 # Media EXIF
5
+ labels:
6
+ - platform-code
7
+ - platform-afm
8
+ typeId: OTHER
9
+ fields:
10
+ tier: 4
11
+ lifecycle: Active
12
+ isMonorepoProject: true
13
+ links:
14
+ - name: Root Repository
15
+ type: REPOSITORY
16
+ url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master
17
+ - name: Slack Channel
18
+ type: CHAT_CHANNEL
19
+ url: https://atlassian.enterprise.slack.com/archives/C05J5GNHPLN # #help-media-platform
20
+ - name: Media Ui
21
+ type: REPOSITORY
22
+ url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/media/media-ui
23
+ customFields:
24
+ - name: Department
25
+ type: text
26
+ value: Eng - Automation
27
+ - name: Technical Owner
28
+ type: user
29
+ value: ari:cloud:identity::user/712020:678ede01-221b-4b2f-9fce-adcc0b0d095e # Anupama Majety
30
+ - name: Required Reviewers Opt In
31
+ type: boolean
32
+ value: true
33
+ - name: Reviewer Selection Mechanism
34
+ type: text
35
+ value: random(2)
36
+ - name: Required Reviewer Approvals
37
+ type: number
38
+ value: 1
@@ -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.4.0";
17
+ var packageVersion = "30.6.0";
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.4.0";
18
+ var packageVersion = "30.6.0";
19
19
  var MediaPlayerWihtoutContext = exports.MediaPlayerWihtoutContext = function MediaPlayerWihtoutContext(_ref) {
20
20
  var _onPlay = _ref.onPlay,
21
21
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
package/dist/cjs/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _typeof = require("@babel/runtime/helpers/typeof");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
@@ -287,7 +286,12 @@ Object.defineProperty(exports, "loadImage", {
287
286
  return _util.loadImage;
288
287
  }
289
288
  });
290
- exports.locales = void 0;
289
+ Object.defineProperty(exports, "locales", {
290
+ enumerable: true,
291
+ get: function get() {
292
+ return _locales.locales;
293
+ }
294
+ });
291
295
  Object.defineProperty(exports, "messages", {
292
296
  enumerable: true,
293
297
  get: function get() {
@@ -312,7 +316,7 @@ Object.defineProperty(exports, "toHumanReadableMediaSize", {
312
316
  return _humanReadableSize.toHumanReadableMediaSize;
313
317
  }
314
318
  });
315
- var untypedLocales = _interopRequireWildcard(require("./i18n/index"));
319
+ var _locales = require("./locales");
316
320
  var _MediaInlineCard = require("./MediaInlineCard");
317
321
  var _ellipsify = require("./ellipsify");
318
322
  var _modalSpinner = _interopRequireDefault(require("./modalSpinner"));
@@ -336,6 +340,4 @@ var _intersectionObserver = require("./intersectionObserver");
336
340
  var _truncateText = require("./truncateText");
337
341
  var _errorIcon = require("./errorIcon");
338
342
  var _formatDate = require("./formatDate");
339
- var _mediaPlayer = require("./customMediaPlayer/mediaPlayer");
340
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
341
- var locales = exports.locales = untypedLocales;
343
+ var _mediaPlayer = require("./customMediaPlayer/mediaPlayer");
@@ -409,17 +409,17 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
409
409
  learn_more: {
410
410
  id: 'fabric.media.learn_more',
411
411
  defaultMessage: 'Learn More',
412
- description: ''
412
+ description: 'Link label in the media UI that navigates the user to additional documentation or help content.'
413
413
  },
414
414
  accounts: {
415
415
  id: 'fabric.media.accounts',
416
416
  defaultMessage: 'Accounts',
417
- description: ''
417
+ description: 'Section heading or tab label in the media file picker listing connected cloud storage accounts.'
418
418
  },
419
419
  actions: {
420
420
  id: 'fabric.media.actions',
421
421
  defaultMessage: 'Actions',
422
- description: ''
422
+ description: 'Label for the actions menu or toolbar in the media viewer that contains available file operations.'
423
423
  },
424
424
  error_hint_retry: {
425
425
  id: 'fabric.media.error_hint_retry',
@@ -434,7 +434,7 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
434
434
  close: {
435
435
  id: 'fabric.media.close',
436
436
  defaultMessage: 'Close',
437
- description: ''
437
+ description: 'Button label in the media viewer or dialog that dismisses the current modal or overlay.'
438
438
  },
439
439
  could_not_load_editor: {
440
440
  id: 'fabric.media.could_not_load_editor',
@@ -454,57 +454,57 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
454
454
  annotate: {
455
455
  id: 'fabric.media.annotate',
456
456
  defaultMessage: 'Annotate',
457
- description: ''
457
+ description: 'Button label in the media viewer toolbar that opens the image annotation editor.'
458
458
  },
459
459
  annotate_tool_arrow: {
460
460
  id: 'fabric.media.annotate.tool.arrow',
461
461
  defaultMessage: 'Arrow',
462
- description: ''
462
+ description: 'Label for the arrow drawing tool in the media image annotation editor toolbar.'
463
463
  },
464
464
  annotate_tool_text: {
465
465
  id: 'fabric.media.annotate.tool.text',
466
466
  defaultMessage: 'Text',
467
- description: ''
467
+ description: 'Label for the text tool in the media image annotation editor toolbar.'
468
468
  },
469
469
  annotate_tool_shape: {
470
470
  id: 'fabric.media.annotate.tool.shape',
471
471
  defaultMessage: 'Shape',
472
- description: ''
472
+ description: 'Label for the shape drawing tool in the media image annotation editor toolbar.'
473
473
  },
474
474
  annotate_tool_brush: {
475
475
  id: 'fabric.media.annotate.tool.brush',
476
476
  defaultMessage: 'Brush',
477
- description: ''
477
+ description: 'Label for the freehand brush drawing tool in the media image annotation editor toolbar.'
478
478
  },
479
479
  annotate_tool_blur: {
480
480
  id: 'fabric.media.annotate.tool.blur',
481
481
  defaultMessage: 'Blur',
482
- description: ''
482
+ description: 'Label for the blur tool in the media image annotation editor used to obscure areas of an image.'
483
483
  },
484
484
  annotate_tool_line_thickness: {
485
485
  id: 'fabric.media.annotate.tool.line.thickness',
486
486
  defaultMessage: 'Line thickness',
487
- description: ''
487
+ description: 'Label for the line thickness selector in the media image annotation editor toolbar.'
488
488
  },
489
489
  annotate_tool_color: {
490
490
  id: 'fabric.media.annotate.tool.color',
491
491
  defaultMessage: 'Color',
492
- description: ''
492
+ description: 'Label for the color picker in the media image annotation editor toolbar.'
493
493
  },
494
494
  annotate_confirmation_close_anyway: {
495
495
  id: 'fabric.media.annotate.confirmation.close.anyway',
496
496
  defaultMessage: 'Close anyway',
497
- description: ''
497
+ description: 'Button label in the annotation editor confirmation dialog that discards unsaved changes and closes the editor.'
498
498
  },
499
499
  annotate_confirmation_heading: {
500
500
  id: 'fabric.media.annotate.confirmation.heading',
501
501
  defaultMessage: 'Unsaved changes',
502
- description: ''
502
+ description: 'Heading of the confirmation dialog shown when the user tries to close the annotation editor with unsaved changes.'
503
503
  },
504
504
  annotate_confirmation_content: {
505
505
  id: 'fabric.media.annotate.confirmation.content',
506
506
  defaultMessage: 'You have some unsaved changes. Are you sure you want to leave?',
507
- description: ''
507
+ description: 'Body text of the confirmation dialog asking the user whether to discard unsaved annotation changes.'
508
508
  },
509
509
  drop_your_files_here: {
510
510
  id: 'fabric.media.drop_your_files_here',
@@ -539,12 +539,12 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
539
539
  play: {
540
540
  id: 'fabric.media.play',
541
541
  defaultMessage: 'Play',
542
- description: ''
542
+ description: 'Accessible label for the play button in the media video or audio player.'
543
543
  },
544
544
  pause: {
545
545
  id: 'fabric.media.pause',
546
546
  defaultMessage: 'Pause',
547
- description: ''
547
+ description: 'Accessible label for the pause button in the media video or audio player.'
548
548
  },
549
549
  disable_fullscreen: {
550
550
  id: 'fabric.media.disable_fullscreen',
@@ -569,52 +569,52 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
569
569
  download: {
570
570
  id: 'fabric.media.download',
571
571
  defaultMessage: 'Download',
572
- description: ''
572
+ description: "Button label in the media viewer toolbar that triggers downloading the current file to the user's device."
573
573
  },
574
574
  download_disabled_security_policy: {
575
575
  id: 'fabric.media.download_disabled_security_policy',
576
576
  defaultMessage: "Download is blocked by your organization's security policy.",
577
- description: ''
577
+ description: "Tooltip or message shown on the disabled download button when the org's security policy prevents file downloads."
578
578
  },
579
579
  unknown: {
580
580
  id: 'fabric.media.unknown',
581
581
  defaultMessage: 'unknown',
582
- description: ''
582
+ description: 'File type label used in the media UI when the file type cannot be determined.'
583
583
  },
584
584
  document: {
585
585
  id: 'fabric.media.document',
586
586
  defaultMessage: 'document',
587
- description: ''
587
+ description: 'File type label used in the media UI to categorise files such as PDFs and office documents.'
588
588
  },
589
589
  audio: {
590
590
  id: 'fabric.media.audio',
591
591
  defaultMessage: 'audio',
592
- description: ''
592
+ description: 'File type label used in the media UI to categorise audio files such as MP3 or WAV.'
593
593
  },
594
594
  video: {
595
595
  id: 'fabric.media.video',
596
596
  defaultMessage: 'video',
597
- description: ''
597
+ description: 'File type label used in the media UI to categorise video files such as MP4 or MOV.'
598
598
  },
599
599
  image: {
600
600
  id: 'fabric.media.image',
601
601
  defaultMessage: 'image',
602
- description: ''
602
+ description: 'File type label used in the media UI to categorise image files such as PNG or JPEG.'
603
603
  },
604
604
  archive: {
605
605
  id: 'fabric.media.archive',
606
606
  defaultMessage: 'archive',
607
- description: ''
607
+ description: 'File type label used in the media UI to categorise compressed archive files such as ZIP.'
608
608
  },
609
609
  email: {
610
610
  id: 'fabric.media.email',
611
611
  defaultMessage: 'email',
612
- description: ''
612
+ description: 'File type label used in the media UI to categorise email files such as EML or MSG.'
613
613
  },
614
614
  text: {
615
615
  id: 'fabric.media.text',
616
616
  defaultMessage: 'text',
617
- description: ''
617
+ description: 'File type label used in the media UI to categorise plain text files such as TXT or CSV.'
618
618
  },
619
619
  displayThumbnail: {
620
620
  id: 'fabric.media.display_thumbnail',
@@ -624,7 +624,7 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
624
624
  search: {
625
625
  id: 'fabric.media.search',
626
626
  defaultMessage: 'search',
627
- description: ''
627
+ description: 'Accessible label for the search input or button in the media file picker used to find files.'
628
628
  },
629
629
  view: {
630
630
  id: 'fabric.media.view',
@@ -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.4.0";
8
+ const packageVersion = "30.6.0";
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.4.0";
9
+ const packageVersion = "30.6.0";
10
10
  export const MediaPlayerWihtoutContext = ({
11
11
  onPlay,
12
12
  ...props
@@ -1,5 +1,4 @@
1
- import * as untypedLocales from './i18n/index';
2
- const locales = untypedLocales;
1
+ export { locales } from './locales';
3
2
  export { MediaInlineCardErroredView, MediaInlineCardLoadedView, MediaInlineCardLoadingView } from './MediaInlineCard';
4
3
  export { Ellipsify } from './ellipsify';
5
4
  export { default as ModalSpinner } from './modalSpinner';
@@ -8,7 +7,6 @@ export { absolute, borderRadius, borderRadiusBottom, center, easeInOutCubic, ell
8
7
  export { Bounds, Camera, Rectangle, Vector2 } from './camera';
9
8
  export { messages } from './messages';
10
9
  export { default as languages } from './i18n/languages';
11
- export { locales };
12
10
  export { ExifOrientation, getCssFromImageOrientation, getImageInfo, getMetaTagNumericValue, getOrientation, getScaleFactor, getScaleFactorFromFile, isRotated, readImageMetaData } from './imageMetaData';
13
11
  export { dataURItoFile, fileToArrayBuffer, fileToDataURI, getFileInfo, getFileInfoFromSrc, loadImage, findParentByClassname, getMimeIcon } from './util';
14
12
  export { MimeTypeIcon } from './mime-type-icon';
@@ -403,17 +403,17 @@ export const messages = defineMessages({
403
403
  learn_more: {
404
404
  id: 'fabric.media.learn_more',
405
405
  defaultMessage: 'Learn More',
406
- description: ''
406
+ description: 'Link label in the media UI that navigates the user to additional documentation or help content.'
407
407
  },
408
408
  accounts: {
409
409
  id: 'fabric.media.accounts',
410
410
  defaultMessage: 'Accounts',
411
- description: ''
411
+ description: 'Section heading or tab label in the media file picker listing connected cloud storage accounts.'
412
412
  },
413
413
  actions: {
414
414
  id: 'fabric.media.actions',
415
415
  defaultMessage: 'Actions',
416
- description: ''
416
+ description: 'Label for the actions menu or toolbar in the media viewer that contains available file operations.'
417
417
  },
418
418
  error_hint_retry: {
419
419
  id: 'fabric.media.error_hint_retry',
@@ -428,7 +428,7 @@ export const messages = defineMessages({
428
428
  close: {
429
429
  id: 'fabric.media.close',
430
430
  defaultMessage: 'Close',
431
- description: ''
431
+ description: 'Button label in the media viewer or dialog that dismisses the current modal or overlay.'
432
432
  },
433
433
  could_not_load_editor: {
434
434
  id: 'fabric.media.could_not_load_editor',
@@ -448,57 +448,57 @@ export const messages = defineMessages({
448
448
  annotate: {
449
449
  id: 'fabric.media.annotate',
450
450
  defaultMessage: 'Annotate',
451
- description: ''
451
+ description: 'Button label in the media viewer toolbar that opens the image annotation editor.'
452
452
  },
453
453
  annotate_tool_arrow: {
454
454
  id: 'fabric.media.annotate.tool.arrow',
455
455
  defaultMessage: 'Arrow',
456
- description: ''
456
+ description: 'Label for the arrow drawing tool in the media image annotation editor toolbar.'
457
457
  },
458
458
  annotate_tool_text: {
459
459
  id: 'fabric.media.annotate.tool.text',
460
460
  defaultMessage: 'Text',
461
- description: ''
461
+ description: 'Label for the text tool in the media image annotation editor toolbar.'
462
462
  },
463
463
  annotate_tool_shape: {
464
464
  id: 'fabric.media.annotate.tool.shape',
465
465
  defaultMessage: 'Shape',
466
- description: ''
466
+ description: 'Label for the shape drawing tool in the media image annotation editor toolbar.'
467
467
  },
468
468
  annotate_tool_brush: {
469
469
  id: 'fabric.media.annotate.tool.brush',
470
470
  defaultMessage: 'Brush',
471
- description: ''
471
+ description: 'Label for the freehand brush drawing tool in the media image annotation editor toolbar.'
472
472
  },
473
473
  annotate_tool_blur: {
474
474
  id: 'fabric.media.annotate.tool.blur',
475
475
  defaultMessage: 'Blur',
476
- description: ''
476
+ description: 'Label for the blur tool in the media image annotation editor used to obscure areas of an image.'
477
477
  },
478
478
  annotate_tool_line_thickness: {
479
479
  id: 'fabric.media.annotate.tool.line.thickness',
480
480
  defaultMessage: 'Line thickness',
481
- description: ''
481
+ description: 'Label for the line thickness selector in the media image annotation editor toolbar.'
482
482
  },
483
483
  annotate_tool_color: {
484
484
  id: 'fabric.media.annotate.tool.color',
485
485
  defaultMessage: 'Color',
486
- description: ''
486
+ description: 'Label for the color picker in the media image annotation editor toolbar.'
487
487
  },
488
488
  annotate_confirmation_close_anyway: {
489
489
  id: 'fabric.media.annotate.confirmation.close.anyway',
490
490
  defaultMessage: 'Close anyway',
491
- description: ''
491
+ description: 'Button label in the annotation editor confirmation dialog that discards unsaved changes and closes the editor.'
492
492
  },
493
493
  annotate_confirmation_heading: {
494
494
  id: 'fabric.media.annotate.confirmation.heading',
495
495
  defaultMessage: 'Unsaved changes',
496
- description: ''
496
+ description: 'Heading of the confirmation dialog shown when the user tries to close the annotation editor with unsaved changes.'
497
497
  },
498
498
  annotate_confirmation_content: {
499
499
  id: 'fabric.media.annotate.confirmation.content',
500
500
  defaultMessage: 'You have some unsaved changes. Are you sure you want to leave?',
501
- description: ''
501
+ description: 'Body text of the confirmation dialog asking the user whether to discard unsaved annotation changes.'
502
502
  },
503
503
  drop_your_files_here: {
504
504
  id: 'fabric.media.drop_your_files_here',
@@ -533,12 +533,12 @@ export const messages = defineMessages({
533
533
  play: {
534
534
  id: 'fabric.media.play',
535
535
  defaultMessage: 'Play',
536
- description: ''
536
+ description: 'Accessible label for the play button in the media video or audio player.'
537
537
  },
538
538
  pause: {
539
539
  id: 'fabric.media.pause',
540
540
  defaultMessage: 'Pause',
541
- description: ''
541
+ description: 'Accessible label for the pause button in the media video or audio player.'
542
542
  },
543
543
  disable_fullscreen: {
544
544
  id: 'fabric.media.disable_fullscreen',
@@ -563,52 +563,52 @@ export const messages = defineMessages({
563
563
  download: {
564
564
  id: 'fabric.media.download',
565
565
  defaultMessage: 'Download',
566
- description: ''
566
+ description: "Button label in the media viewer toolbar that triggers downloading the current file to the user's device."
567
567
  },
568
568
  download_disabled_security_policy: {
569
569
  id: 'fabric.media.download_disabled_security_policy',
570
570
  defaultMessage: "Download is blocked by your organization's security policy.",
571
- description: ''
571
+ description: "Tooltip or message shown on the disabled download button when the org's security policy prevents file downloads."
572
572
  },
573
573
  unknown: {
574
574
  id: 'fabric.media.unknown',
575
575
  defaultMessage: 'unknown',
576
- description: ''
576
+ description: 'File type label used in the media UI when the file type cannot be determined.'
577
577
  },
578
578
  document: {
579
579
  id: 'fabric.media.document',
580
580
  defaultMessage: 'document',
581
- description: ''
581
+ description: 'File type label used in the media UI to categorise files such as PDFs and office documents.'
582
582
  },
583
583
  audio: {
584
584
  id: 'fabric.media.audio',
585
585
  defaultMessage: 'audio',
586
- description: ''
586
+ description: 'File type label used in the media UI to categorise audio files such as MP3 or WAV.'
587
587
  },
588
588
  video: {
589
589
  id: 'fabric.media.video',
590
590
  defaultMessage: 'video',
591
- description: ''
591
+ description: 'File type label used in the media UI to categorise video files such as MP4 or MOV.'
592
592
  },
593
593
  image: {
594
594
  id: 'fabric.media.image',
595
595
  defaultMessage: 'image',
596
- description: ''
596
+ description: 'File type label used in the media UI to categorise image files such as PNG or JPEG.'
597
597
  },
598
598
  archive: {
599
599
  id: 'fabric.media.archive',
600
600
  defaultMessage: 'archive',
601
- description: ''
601
+ description: 'File type label used in the media UI to categorise compressed archive files such as ZIP.'
602
602
  },
603
603
  email: {
604
604
  id: 'fabric.media.email',
605
605
  defaultMessage: 'email',
606
- description: ''
606
+ description: 'File type label used in the media UI to categorise email files such as EML or MSG.'
607
607
  },
608
608
  text: {
609
609
  id: 'fabric.media.text',
610
610
  defaultMessage: 'text',
611
- description: ''
611
+ description: 'File type label used in the media UI to categorise plain text files such as TXT or CSV.'
612
612
  },
613
613
  displayThumbnail: {
614
614
  id: 'fabric.media.display_thumbnail',
@@ -618,7 +618,7 @@ export const messages = defineMessages({
618
618
  search: {
619
619
  id: 'fabric.media.search',
620
620
  defaultMessage: 'search',
621
- description: ''
621
+ description: 'Accessible label for the search input or button in the media file picker used to find files.'
622
622
  },
623
623
  view: {
624
624
  id: 'fabric.media.view',
@@ -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.4.0";
10
+ var packageVersion = "30.6.0";
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.4.0";
11
+ var packageVersion = "30.6.0";
12
12
  export var MediaPlayerWihtoutContext = function MediaPlayerWihtoutContext(_ref) {
13
13
  var _onPlay = _ref.onPlay,
14
14
  props = _objectWithoutProperties(_ref, _excluded);
package/dist/esm/index.js CHANGED
@@ -1,5 +1,4 @@
1
- import * as untypedLocales from './i18n/index';
2
- var locales = untypedLocales;
1
+ export { locales } from './locales';
3
2
  export { MediaInlineCardErroredView, MediaInlineCardLoadedView, MediaInlineCardLoadingView } from './MediaInlineCard';
4
3
  export { Ellipsify } from './ellipsify';
5
4
  export { default as ModalSpinner } from './modalSpinner';
@@ -8,7 +7,6 @@ export { absolute, borderRadius, borderRadiusBottom, center, easeInOutCubic, ell
8
7
  export { Bounds, Camera, Rectangle, Vector2 } from './camera';
9
8
  export { messages } from './messages';
10
9
  export { default as languages } from './i18n/languages';
11
- export { locales };
12
10
  export { ExifOrientation, getCssFromImageOrientation, getImageInfo, getMetaTagNumericValue, getOrientation, getScaleFactor, getScaleFactorFromFile, isRotated, readImageMetaData } from './imageMetaData';
13
11
  export { dataURItoFile, fileToArrayBuffer, fileToDataURI, getFileInfo, getFileInfoFromSrc, loadImage, findParentByClassname, getMimeIcon } from './util';
14
12
  export { MimeTypeIcon } from './mime-type-icon';
@@ -403,17 +403,17 @@ export var messages = defineMessages({
403
403
  learn_more: {
404
404
  id: 'fabric.media.learn_more',
405
405
  defaultMessage: 'Learn More',
406
- description: ''
406
+ description: 'Link label in the media UI that navigates the user to additional documentation or help content.'
407
407
  },
408
408
  accounts: {
409
409
  id: 'fabric.media.accounts',
410
410
  defaultMessage: 'Accounts',
411
- description: ''
411
+ description: 'Section heading or tab label in the media file picker listing connected cloud storage accounts.'
412
412
  },
413
413
  actions: {
414
414
  id: 'fabric.media.actions',
415
415
  defaultMessage: 'Actions',
416
- description: ''
416
+ description: 'Label for the actions menu or toolbar in the media viewer that contains available file operations.'
417
417
  },
418
418
  error_hint_retry: {
419
419
  id: 'fabric.media.error_hint_retry',
@@ -428,7 +428,7 @@ export var messages = defineMessages({
428
428
  close: {
429
429
  id: 'fabric.media.close',
430
430
  defaultMessage: 'Close',
431
- description: ''
431
+ description: 'Button label in the media viewer or dialog that dismisses the current modal or overlay.'
432
432
  },
433
433
  could_not_load_editor: {
434
434
  id: 'fabric.media.could_not_load_editor',
@@ -448,57 +448,57 @@ export var messages = defineMessages({
448
448
  annotate: {
449
449
  id: 'fabric.media.annotate',
450
450
  defaultMessage: 'Annotate',
451
- description: ''
451
+ description: 'Button label in the media viewer toolbar that opens the image annotation editor.'
452
452
  },
453
453
  annotate_tool_arrow: {
454
454
  id: 'fabric.media.annotate.tool.arrow',
455
455
  defaultMessage: 'Arrow',
456
- description: ''
456
+ description: 'Label for the arrow drawing tool in the media image annotation editor toolbar.'
457
457
  },
458
458
  annotate_tool_text: {
459
459
  id: 'fabric.media.annotate.tool.text',
460
460
  defaultMessage: 'Text',
461
- description: ''
461
+ description: 'Label for the text tool in the media image annotation editor toolbar.'
462
462
  },
463
463
  annotate_tool_shape: {
464
464
  id: 'fabric.media.annotate.tool.shape',
465
465
  defaultMessage: 'Shape',
466
- description: ''
466
+ description: 'Label for the shape drawing tool in the media image annotation editor toolbar.'
467
467
  },
468
468
  annotate_tool_brush: {
469
469
  id: 'fabric.media.annotate.tool.brush',
470
470
  defaultMessage: 'Brush',
471
- description: ''
471
+ description: 'Label for the freehand brush drawing tool in the media image annotation editor toolbar.'
472
472
  },
473
473
  annotate_tool_blur: {
474
474
  id: 'fabric.media.annotate.tool.blur',
475
475
  defaultMessage: 'Blur',
476
- description: ''
476
+ description: 'Label for the blur tool in the media image annotation editor used to obscure areas of an image.'
477
477
  },
478
478
  annotate_tool_line_thickness: {
479
479
  id: 'fabric.media.annotate.tool.line.thickness',
480
480
  defaultMessage: 'Line thickness',
481
- description: ''
481
+ description: 'Label for the line thickness selector in the media image annotation editor toolbar.'
482
482
  },
483
483
  annotate_tool_color: {
484
484
  id: 'fabric.media.annotate.tool.color',
485
485
  defaultMessage: 'Color',
486
- description: ''
486
+ description: 'Label for the color picker in the media image annotation editor toolbar.'
487
487
  },
488
488
  annotate_confirmation_close_anyway: {
489
489
  id: 'fabric.media.annotate.confirmation.close.anyway',
490
490
  defaultMessage: 'Close anyway',
491
- description: ''
491
+ description: 'Button label in the annotation editor confirmation dialog that discards unsaved changes and closes the editor.'
492
492
  },
493
493
  annotate_confirmation_heading: {
494
494
  id: 'fabric.media.annotate.confirmation.heading',
495
495
  defaultMessage: 'Unsaved changes',
496
- description: ''
496
+ description: 'Heading of the confirmation dialog shown when the user tries to close the annotation editor with unsaved changes.'
497
497
  },
498
498
  annotate_confirmation_content: {
499
499
  id: 'fabric.media.annotate.confirmation.content',
500
500
  defaultMessage: 'You have some unsaved changes. Are you sure you want to leave?',
501
- description: ''
501
+ description: 'Body text of the confirmation dialog asking the user whether to discard unsaved annotation changes.'
502
502
  },
503
503
  drop_your_files_here: {
504
504
  id: 'fabric.media.drop_your_files_here',
@@ -533,12 +533,12 @@ export var messages = defineMessages({
533
533
  play: {
534
534
  id: 'fabric.media.play',
535
535
  defaultMessage: 'Play',
536
- description: ''
536
+ description: 'Accessible label for the play button in the media video or audio player.'
537
537
  },
538
538
  pause: {
539
539
  id: 'fabric.media.pause',
540
540
  defaultMessage: 'Pause',
541
- description: ''
541
+ description: 'Accessible label for the pause button in the media video or audio player.'
542
542
  },
543
543
  disable_fullscreen: {
544
544
  id: 'fabric.media.disable_fullscreen',
@@ -563,52 +563,52 @@ export var messages = defineMessages({
563
563
  download: {
564
564
  id: 'fabric.media.download',
565
565
  defaultMessage: 'Download',
566
- description: ''
566
+ description: "Button label in the media viewer toolbar that triggers downloading the current file to the user's device."
567
567
  },
568
568
  download_disabled_security_policy: {
569
569
  id: 'fabric.media.download_disabled_security_policy',
570
570
  defaultMessage: "Download is blocked by your organization's security policy.",
571
- description: ''
571
+ description: "Tooltip or message shown on the disabled download button when the org's security policy prevents file downloads."
572
572
  },
573
573
  unknown: {
574
574
  id: 'fabric.media.unknown',
575
575
  defaultMessage: 'unknown',
576
- description: ''
576
+ description: 'File type label used in the media UI when the file type cannot be determined.'
577
577
  },
578
578
  document: {
579
579
  id: 'fabric.media.document',
580
580
  defaultMessage: 'document',
581
- description: ''
581
+ description: 'File type label used in the media UI to categorise files such as PDFs and office documents.'
582
582
  },
583
583
  audio: {
584
584
  id: 'fabric.media.audio',
585
585
  defaultMessage: 'audio',
586
- description: ''
586
+ description: 'File type label used in the media UI to categorise audio files such as MP3 or WAV.'
587
587
  },
588
588
  video: {
589
589
  id: 'fabric.media.video',
590
590
  defaultMessage: 'video',
591
- description: ''
591
+ description: 'File type label used in the media UI to categorise video files such as MP4 or MOV.'
592
592
  },
593
593
  image: {
594
594
  id: 'fabric.media.image',
595
595
  defaultMessage: 'image',
596
- description: ''
596
+ description: 'File type label used in the media UI to categorise image files such as PNG or JPEG.'
597
597
  },
598
598
  archive: {
599
599
  id: 'fabric.media.archive',
600
600
  defaultMessage: 'archive',
601
- description: ''
601
+ description: 'File type label used in the media UI to categorise compressed archive files such as ZIP.'
602
602
  },
603
603
  email: {
604
604
  id: 'fabric.media.email',
605
605
  defaultMessage: 'email',
606
- description: ''
606
+ description: 'File type label used in the media UI to categorise email files such as EML or MSG.'
607
607
  },
608
608
  text: {
609
609
  id: 'fabric.media.text',
610
610
  defaultMessage: 'text',
611
- description: ''
611
+ description: 'File type label used in the media UI to categorise plain text files such as TXT or CSV.'
612
612
  },
613
613
  displayThumbnail: {
614
614
  id: 'fabric.media.display_thumbnail',
@@ -618,7 +618,7 @@ export var messages = defineMessages({
618
618
  search: {
619
619
  id: 'fabric.media.search',
620
620
  defaultMessage: 'search',
621
- description: ''
621
+ description: 'Accessible label for the search input or button in the media file picker used to find files.'
622
622
  },
623
623
  view: {
624
624
  id: 'fabric.media.view',
@@ -1,6 +1,4 @@
1
- declare const locales: {
2
- [key: string]: any;
3
- };
1
+ export { locales } from './locales';
4
2
  export { MediaInlineCardErroredView, MediaInlineCardLoadedView, MediaInlineCardLoadingView, } from './MediaInlineCard';
5
3
  export type { MediaInlineCardErroredViewProps, MediaInlineCardLoadedViewProps, MediaInlineCardLoadingViewProps, } from './MediaInlineCard';
6
4
  export { Ellipsify } from './ellipsify';
@@ -12,7 +10,6 @@ export { Bounds, Camera, Rectangle, Vector2 } from './camera';
12
10
  export { messages } from './messages';
13
11
  export type { MessageKey } from './messages';
14
12
  export { default as languages } from './i18n/languages';
15
- export { locales };
16
13
  export { ExifOrientation, getCssFromImageOrientation, getImageInfo, getMetaTagNumericValue, getOrientation, getScaleFactor, getScaleFactorFromFile, isRotated, readImageMetaData, } from './imageMetaData';
17
14
  export type { FileInfo, ImageInfo, ImageMetaData, ImageMetaDataTags } from './imageMetaData';
18
15
  export { dataURItoFile, fileToArrayBuffer, fileToDataURI, getFileInfo, getFileInfoFromSrc, loadImage, findParentByClassname, getMimeIcon, } from './util';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-ui",
3
- "version": "30.5.0",
3
+ "version": "30.6.0",
4
4
  "description": "Includes common components and utilities used by other media packages",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,30 +31,30 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@atlaskit/afm-i18n-platform-media-media-ui": "2.168.0",
34
- "@atlaskit/analytics-next": "^12.1.0",
34
+ "@atlaskit/analytics-next": "^12.2.0",
35
35
  "@atlaskit/browser-apis": "^1.1.0",
36
- "@atlaskit/button": "^24.2.0",
36
+ "@atlaskit/button": "^24.3.0",
37
37
  "@atlaskit/code": "^18.2.0",
38
38
  "@atlaskit/css": "^1.0.0",
39
39
  "@atlaskit/flag": "^18.1.0",
40
40
  "@atlaskit/form": "^16.1.0",
41
- "@atlaskit/icon": "^36.1.0",
41
+ "@atlaskit/icon": "^36.2.0",
42
42
  "@atlaskit/icon-file-type": "^8.1.0",
43
43
  "@atlaskit/locale": "^5.0.0",
44
- "@atlaskit/media-client": "^37.1.0",
44
+ "@atlaskit/media-client": "^37.2.0",
45
45
  "@atlaskit/media-client-react": "^6.1.0",
46
- "@atlaskit/media-common": "^14.2.0",
46
+ "@atlaskit/media-common": "^14.3.0",
47
47
  "@atlaskit/media-state": "^3.0.0",
48
48
  "@atlaskit/modal-dialog": "^16.1.0",
49
49
  "@atlaskit/platform-feature-flags": "^2.0.0",
50
- "@atlaskit/primitives": "^20.1.0",
50
+ "@atlaskit/primitives": "^20.4.0",
51
51
  "@atlaskit/range": "^11.1.0",
52
52
  "@atlaskit/react-compiler-gating": "^0.2.0",
53
53
  "@atlaskit/react-ufo": "^7.3.0",
54
- "@atlaskit/select": "^22.2.0",
54
+ "@atlaskit/select": "^22.4.0",
55
55
  "@atlaskit/spinner": "^20.1.0",
56
56
  "@atlaskit/theme": "^26.1.0",
57
- "@atlaskit/tokens": "^15.1.0",
57
+ "@atlaskit/tokens": "^15.4.0",
58
58
  "@atlaskit/tooltip": "^23.1.0",
59
59
  "@atlaskit/width-detector": "^6.1.0",
60
60
  "@babel/runtime": "^7.0.0",
@@ -80,7 +80,7 @@
80
80
  "@atlaskit/ssr": "workspace:^",
81
81
  "@atlassian/a11y-jest-testing": "^0.13.0",
82
82
  "@atlassian/feature-flags-test-utils": "^1.1.0",
83
- "@atlassian/testing-library": "^0.7.0",
83
+ "@atlassian/testing-library": "^0.10.0",
84
84
  "@testing-library/jest-dom": "^6.4.5",
85
85
  "@testing-library/react": "^16.3.0",
86
86
  "@types/blueimp-load-image": "^5.16.3",