@atlaskit/media-ui 30.5.1 → 30.6.1
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 +20 -0
- package/compass.yml +38 -0
- package/dist/cjs/customMediaPlayer/index.js +1 -1
- package/dist/cjs/customMediaPlayer/mediaPlayer/mediaPlayer.js +1 -1
- package/dist/cjs/customMediaPlayer/timeSaver.js +2 -0
- package/dist/cjs/index.js +8 -6
- package/dist/es2019/customMediaPlayer/index.js +1 -1
- package/dist/es2019/customMediaPlayer/mediaPlayer/mediaPlayer.js +1 -1
- package/dist/es2019/customMediaPlayer/timeSaver.js +2 -0
- package/dist/es2019/index.js +1 -3
- package/dist/esm/customMediaPlayer/index.js +1 -1
- package/dist/esm/customMediaPlayer/mediaPlayer/mediaPlayer.js +1 -1
- package/dist/esm/customMediaPlayer/timeSaver.js +2 -0
- package/dist/esm/index.js +1 -3
- package/dist/types/index.d.ts +1 -4
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/media-ui
|
|
2
2
|
|
|
3
|
+
## 30.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 30.6.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`e8071bab93879`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e8071bab93879) -
|
|
14
|
+
Refactor packages with custom root `src/index` barrel logic to use dedicated entry modules (for
|
|
15
|
+
example `main`, `types`, `constants`, `screen`, and package-specific entrypoints) while keeping
|
|
16
|
+
public exports stable. This aligns the packages with barrel-file ratcheting by reducing custom
|
|
17
|
+
logic in root barrels and removing now-safe packages from the prohibited barrel-file list.
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 30.5.1
|
|
4
24
|
|
|
5
25
|
### 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.
|
|
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.
|
|
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);
|
|
@@ -26,6 +26,7 @@ var TimeSaver = exports.TimeSaver = /*#__PURE__*/function () {
|
|
|
26
26
|
get: function get() {
|
|
27
27
|
if (this.config && localStorage) {
|
|
28
28
|
try {
|
|
29
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
29
30
|
var fileDefaultTime = localStorage.getItem(getDefaultTimeLocalStorageKey(this.config.contentId));
|
|
30
31
|
if (fileDefaultTime) {
|
|
31
32
|
return JSON.parse(fileDefaultTime);
|
|
@@ -39,6 +40,7 @@ var TimeSaver = exports.TimeSaver = /*#__PURE__*/function () {
|
|
|
39
40
|
set: function set(time) {
|
|
40
41
|
if (this.config && localStorage) {
|
|
41
42
|
try {
|
|
43
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
42
44
|
localStorage.setItem(getDefaultTimeLocalStorageKey(this.config.contentId), JSON.stringify(time));
|
|
43
45
|
} catch (e) {
|
|
44
46
|
// Nothing to do, storing hasn't happened.
|
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
|
|
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
|
|
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.
|
|
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.
|
|
9
|
+
const packageVersion = "30.6.0";
|
|
10
10
|
export const MediaPlayerWihtoutContext = ({
|
|
11
11
|
onPlay,
|
|
12
12
|
...props
|
|
@@ -12,6 +12,7 @@ export class TimeSaver {
|
|
|
12
12
|
get defaultTime() {
|
|
13
13
|
if (this.config && localStorage) {
|
|
14
14
|
try {
|
|
15
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
15
16
|
const fileDefaultTime = localStorage.getItem(getDefaultTimeLocalStorageKey(this.config.contentId));
|
|
16
17
|
if (fileDefaultTime) {
|
|
17
18
|
return JSON.parse(fileDefaultTime);
|
|
@@ -25,6 +26,7 @@ export class TimeSaver {
|
|
|
25
26
|
set defaultTime(time) {
|
|
26
27
|
if (this.config && localStorage) {
|
|
27
28
|
try {
|
|
29
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
28
30
|
localStorage.setItem(getDefaultTimeLocalStorageKey(this.config.contentId), JSON.stringify(time));
|
|
29
31
|
} catch (e) {
|
|
30
32
|
// Nothing to do, storing hasn't happened.
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
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.
|
|
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.
|
|
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);
|
|
@@ -19,6 +19,7 @@ export var TimeSaver = /*#__PURE__*/function () {
|
|
|
19
19
|
get: function get() {
|
|
20
20
|
if (this.config && localStorage) {
|
|
21
21
|
try {
|
|
22
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
22
23
|
var fileDefaultTime = localStorage.getItem(getDefaultTimeLocalStorageKey(this.config.contentId));
|
|
23
24
|
if (fileDefaultTime) {
|
|
24
25
|
return JSON.parse(fileDefaultTime);
|
|
@@ -32,6 +33,7 @@ export var TimeSaver = /*#__PURE__*/function () {
|
|
|
32
33
|
set: function set(time) {
|
|
33
34
|
if (this.config && localStorage) {
|
|
34
35
|
try {
|
|
36
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
35
37
|
localStorage.setItem(getDefaultTimeLocalStorageKey(this.config.contentId), JSON.stringify(time));
|
|
36
38
|
} catch (e) {
|
|
37
39
|
// Nothing to do, storing hasn't happened.
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
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';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
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.
|
|
3
|
+
"version": "30.6.1",
|
|
4
4
|
"description": "Includes common components and utilities used by other media packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,32 +31,32 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@atlaskit/afm-i18n-platform-media-media-ui": "2.168.0",
|
|
34
|
-
"@atlaskit/analytics-next": "^12.
|
|
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": "^
|
|
41
|
+
"@atlaskit/icon": "^37.0.0",
|
|
42
42
|
"@atlaskit/icon-file-type": "^8.1.0",
|
|
43
43
|
"@atlaskit/locale": "^5.0.0",
|
|
44
|
-
"@atlaskit/media-client": "^37.
|
|
44
|
+
"@atlaskit/media-client": "^37.2.0",
|
|
45
45
|
"@atlaskit/media-client-react": "^6.1.0",
|
|
46
|
-
"@atlaskit/media-common": "^14.
|
|
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.
|
|
50
|
+
"@atlaskit/primitives": "^20.5.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.
|
|
54
|
+
"@atlaskit/select": "^22.5.0",
|
|
55
55
|
"@atlaskit/spinner": "^20.1.0",
|
|
56
56
|
"@atlaskit/theme": "^26.1.0",
|
|
57
|
-
"@atlaskit/tokens": "^15.
|
|
57
|
+
"@atlaskit/tokens": "^15.5.0",
|
|
58
58
|
"@atlaskit/tooltip": "^23.1.0",
|
|
59
|
-
"@atlaskit/width-detector": "^6.
|
|
59
|
+
"@atlaskit/width-detector": "^6.2.0",
|
|
60
60
|
"@babel/runtime": "^7.0.0",
|
|
61
61
|
"@compiled/react": "^0.20.0",
|
|
62
62
|
"@emotion/styled": "^11.0.0",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"@atlaskit/media-test-data": "^4.0.0",
|
|
80
80
|
"@atlaskit/ssr": "workspace:^",
|
|
81
81
|
"@atlassian/a11y-jest-testing": "^0.13.0",
|
|
82
|
-
"@atlassian/feature-flags-test-utils": "^1.
|
|
83
|
-
"@atlassian/testing-library": "^0.
|
|
82
|
+
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
83
|
+
"@atlassian/testing-library": "^0.11.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",
|