@atlaskit/media-ui 30.5.1 → 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,19 @@
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
+
3
17
  ## 30.5.1
4
18
 
5
19
  ### Patch 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.5.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.5.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");
@@ -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.5.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.5.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';
@@ -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.5.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.5.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';
@@ -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.1",
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
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.2.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.2.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",