@atlaskit/media-viewer 52.2.2 → 52.2.4
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 +15 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/analytics/ufoExperiences.js +1 -1
- package/dist/cjs/list.js +1 -1
- package/dist/cjs/navigation.js +4 -3
- package/dist/cjs/viewers/codeViewer/codeViewerRenderer-emotion.js +1 -1
- package/dist/cjs/viewers/doc/pdfPasswordInput-compiled.js +3 -2
- package/dist/cjs/viewers/doc/pdfPasswordInput-emotion.js +3 -2
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/analytics/ufoExperiences.js +1 -1
- package/dist/es2019/list.js +2 -2
- package/dist/es2019/navigation.js +4 -3
- package/dist/es2019/viewers/codeViewer/codeViewerRenderer-emotion.js +1 -1
- package/dist/es2019/viewers/doc/pdfPasswordInput-compiled.js +3 -2
- package/dist/es2019/viewers/doc/pdfPasswordInput-emotion.js +3 -2
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/analytics/ufoExperiences.js +1 -1
- package/dist/esm/list.js +2 -2
- package/dist/esm/navigation.js +4 -3
- package/dist/esm/viewers/codeViewer/codeViewerRenderer-emotion.js +1 -1
- package/dist/esm/viewers/doc/pdfPasswordInput-compiled.js +3 -2
- package/dist/esm/viewers/doc/pdfPasswordInput-emotion.js +3 -2
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/media-viewer
|
|
2
2
|
|
|
3
|
+
## 52.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#169848](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/169848)
|
|
8
|
+
[`0c2daefdb5712`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0c2daefdb5712) -
|
|
9
|
+
Standardise generation of telemetry IDs across media packages.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 52.2.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 52.2.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -10,7 +10,7 @@ exports.packageVersion = exports.packageName = void 0;
|
|
|
10
10
|
var _analytics = require("@atlaskit/media-common/analytics");
|
|
11
11
|
var componentName = exports.component = exports.componentName = 'mediaViewer';
|
|
12
12
|
var packageName = exports.packageName = "@atlaskit/media-viewer";
|
|
13
|
-
var packageVersion = exports.packageVersion = "52.2.
|
|
13
|
+
var packageVersion = exports.packageVersion = "52.2.4";
|
|
14
14
|
function getFileAttributes(fileState) {
|
|
15
15
|
if (!fileState) {
|
|
16
16
|
return {
|
|
@@ -12,7 +12,7 @@ var _mediaCommon = require("@atlaskit/media-common");
|
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
14
|
var packageName = "@atlaskit/media-viewer";
|
|
15
|
-
var packageVersion = "52.2.
|
|
15
|
+
var packageVersion = "52.2.4";
|
|
16
16
|
var ufoExperience;
|
|
17
17
|
var getExperience = function getExperience() {
|
|
18
18
|
if (!ufoExperience) {
|
package/dist/cjs/list.js
CHANGED
|
@@ -40,7 +40,7 @@ var List = exports.List = function List(_ref) {
|
|
|
40
40
|
isArchiveSideBarVisible = _useState6[0],
|
|
41
41
|
setIsArchiveSideBarVisible = _useState6[1];
|
|
42
42
|
var traceContext = (0, _react.useRef)({
|
|
43
|
-
traceId: (0, _mediaCommon.
|
|
43
|
+
traceId: (0, _mediaCommon.getRandomTelemetryId)()
|
|
44
44
|
});
|
|
45
45
|
return /*#__PURE__*/_react.default.createElement(_styleWrappers.ListWrapper, null, /*#__PURE__*/_react.default.createElement(_styleWrappers.HeaderWrapper
|
|
46
46
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
package/dist/cjs/navigation.js
CHANGED
|
@@ -12,8 +12,8 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
12
12
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
13
13
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
-
var _chevronLeftChevronLeftCircle = _interopRequireDefault(require("@atlaskit/icon/
|
|
16
|
-
var _chevronRightChevronRightCircle = _interopRequireDefault(require("@atlaskit/icon/
|
|
15
|
+
var _chevronLeftChevronLeftCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-left--chevron-left-circle"));
|
|
16
|
+
var _chevronRightChevronRightCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-right--chevron-right-circle"));
|
|
17
17
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
18
18
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
19
19
|
var _styleWrappers = require("./styleWrappers");
|
|
@@ -68,7 +68,8 @@ var withIconWrapper = function withIconWrapper(Component) {
|
|
|
68
68
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
69
69
|
,
|
|
70
70
|
LEGACY_secondaryColor: "#161A1D",
|
|
71
|
-
color: "currentColor"
|
|
71
|
+
color: "currentColor",
|
|
72
|
+
size: "small"
|
|
72
73
|
}));
|
|
73
74
|
};
|
|
74
75
|
};
|
|
@@ -122,7 +122,7 @@ var CodeViewRenderer = exports.CodeViewRenderer = /*#__PURE__*/function (_Compon
|
|
|
122
122
|
//item.size is incorrect for archives with mutiple docs inside.
|
|
123
123
|
var fileSize = new Blob([src]).size;
|
|
124
124
|
var codeViewer = (0, _util.lineCount)(src) > MAX_FORMATTED_LINES || fileSize > MAX_FILE_SIZE_USE_CODE_VIEWER ?
|
|
125
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
125
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-code, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
126
126
|
(0, _react.jsx)("code", {
|
|
127
127
|
css: _styles.codeViewerHTMLStyles,
|
|
128
128
|
"data-testid": "code-block"
|
|
@@ -20,7 +20,7 @@ var _form = _interopRequireWildcard(require("@atlaskit/form"));
|
|
|
20
20
|
var _reactIntlNext = require("react-intl-next");
|
|
21
21
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
22
22
|
var _primitives = require("@atlaskit/primitives");
|
|
23
|
-
var _error = _interopRequireDefault(require("@atlaskit/icon/
|
|
23
|
+
var _error = _interopRequireDefault(require("@atlaskit/icon/core/migration/error"));
|
|
24
24
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
25
25
|
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); }
|
|
26
26
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -107,7 +107,8 @@ var PDFPasswordInput = exports.PDFPasswordInput = function PDFPasswordInput(_ref
|
|
|
107
107
|
}, /*#__PURE__*/React.createElement(_error.default, {
|
|
108
108
|
color: "currentColor",
|
|
109
109
|
LEGACY_size: "small",
|
|
110
|
-
label: ""
|
|
110
|
+
label: "",
|
|
111
|
+
size: "small"
|
|
111
112
|
}), /*#__PURE__*/React.createElement("div", {
|
|
112
113
|
id: "".concat(fieldProps.id, "-errorMessage"),
|
|
113
114
|
className: (0, _runtime.ax)(["_19pkidpf _18u01b66"])
|
|
@@ -17,7 +17,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
17
17
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
18
18
|
var _primitives = require("@atlaskit/primitives");
|
|
19
19
|
var _react2 = require("@emotion/react");
|
|
20
|
-
var _error = _interopRequireDefault(require("@atlaskit/icon/
|
|
20
|
+
var _error = _interopRequireDefault(require("@atlaskit/icon/core/migration/error"));
|
|
21
21
|
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); }
|
|
22
22
|
/**
|
|
23
23
|
* @jsxRuntime classic
|
|
@@ -120,7 +120,8 @@ var PDFPasswordInput = exports.PDFPasswordInput = function PDFPasswordInput(_ref
|
|
|
120
120
|
}, (0, _react2.jsx)(_error.default, {
|
|
121
121
|
color: "currentColor",
|
|
122
122
|
LEGACY_size: "small",
|
|
123
|
-
label: ""
|
|
123
|
+
label: "",
|
|
124
|
+
size: "small"
|
|
124
125
|
}), (0, _react2.jsx)("p", {
|
|
125
126
|
css: errorMessageStyle
|
|
126
127
|
}, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _mediaUi.messages.incorrect_password))));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ANALYTICS_MEDIA_CHANNEL, sanitiseAnalyticsPayload } from '@atlaskit/media-common/analytics';
|
|
2
2
|
const componentName = 'mediaViewer';
|
|
3
3
|
const packageName = "@atlaskit/media-viewer";
|
|
4
|
-
const packageVersion = "52.2.
|
|
4
|
+
const packageVersion = "52.2.4";
|
|
5
5
|
export { packageName, packageVersion, componentName, componentName as component };
|
|
6
6
|
export function getFileAttributes(fileState) {
|
|
7
7
|
if (!fileState) {
|
|
@@ -2,7 +2,7 @@ import { UFOExperience, ExperiencePerformanceTypes, ExperienceTypes } from '@atl
|
|
|
2
2
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
3
3
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
4
4
|
const packageName = "@atlaskit/media-viewer";
|
|
5
|
-
const packageVersion = "52.2.
|
|
5
|
+
const packageVersion = "52.2.4";
|
|
6
6
|
let ufoExperience;
|
|
7
7
|
const getExperience = () => {
|
|
8
8
|
if (!ufoExperience) {
|
package/dist/es2019/list.js
CHANGED
|
@@ -3,7 +3,7 @@ import { hideControlsClassName } from '@atlaskit/media-ui';
|
|
|
3
3
|
import { ItemViewer } from './item-viewer';
|
|
4
4
|
import { HeaderWrapper, ListWrapper } from './styleWrappers';
|
|
5
5
|
import { Navigation } from './navigation';
|
|
6
|
-
import {
|
|
6
|
+
import { getRandomTelemetryId } from '@atlaskit/media-common';
|
|
7
7
|
import Header from './header';
|
|
8
8
|
export const List = ({
|
|
9
9
|
defaultSelectedItem,
|
|
@@ -22,7 +22,7 @@ export const List = ({
|
|
|
22
22
|
const [previewCount, setPreviewCount] = useState(0);
|
|
23
23
|
const [isArchiveSideBarVisible, setIsArchiveSideBarVisible] = useState(false);
|
|
24
24
|
const traceContext = useRef({
|
|
25
|
-
traceId:
|
|
25
|
+
traceId: getRandomTelemetryId()
|
|
26
26
|
});
|
|
27
27
|
return /*#__PURE__*/React.createElement(ListWrapper, null, /*#__PURE__*/React.createElement(HeaderWrapper
|
|
28
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Component } from 'react';
|
|
4
|
-
import ArrowLeftCircleIcon from '@atlaskit/icon/
|
|
5
|
-
import ArrowRightCircleIcon from '@atlaskit/icon/
|
|
4
|
+
import ArrowLeftCircleIcon from '@atlaskit/icon/core/migration/chevron-left--chevron-left-circle';
|
|
5
|
+
import ArrowRightCircleIcon from '@atlaskit/icon/core/migration/chevron-right--chevron-right-circle';
|
|
6
6
|
import { hideControlsClassName } from '@atlaskit/media-ui';
|
|
7
7
|
import { Shortcut } from '@atlaskit/media-ui';
|
|
8
8
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -55,7 +55,8 @@ const withIconWrapper = Component => {
|
|
|
55
55
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
56
56
|
,
|
|
57
57
|
LEGACY_secondaryColor: "#161A1D",
|
|
58
|
-
color: "currentColor"
|
|
58
|
+
color: "currentColor",
|
|
59
|
+
size: "small"
|
|
59
60
|
}));
|
|
60
61
|
};
|
|
61
62
|
const NextIcon = withIconWrapper(ArrowRightCircleIcon);
|
|
@@ -85,7 +85,7 @@ export class CodeViewRenderer extends Component {
|
|
|
85
85
|
//item.size is incorrect for archives with mutiple docs inside.
|
|
86
86
|
const fileSize = new Blob([src]).size;
|
|
87
87
|
const codeViewer = lineCount(src) > MAX_FORMATTED_LINES || fileSize > MAX_FILE_SIZE_USE_CODE_VIEWER ?
|
|
88
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
88
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-code, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
89
89
|
jsx("code", {
|
|
90
90
|
css: codeViewerHTMLStyles,
|
|
91
91
|
"data-testid": "code-block"
|
|
@@ -12,7 +12,7 @@ import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
|
12
12
|
import { messages } from '@atlaskit/media-ui';
|
|
13
13
|
import { xcss, Box, Flex, Text } from '@atlaskit/primitives';
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
-
import ErrorIcon from '@atlaskit/icon/
|
|
15
|
+
import ErrorIcon from '@atlaskit/icon/core/migration/error';
|
|
16
16
|
import Heading from '@atlaskit/heading';
|
|
17
17
|
const COLOR_SHADE = '#b6c2cf';
|
|
18
18
|
const ERROR_COLOR = '#FD9891';
|
|
@@ -95,7 +95,8 @@ export const PDFPasswordInput = ({
|
|
|
95
95
|
}, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
96
96
|
color: "currentColor",
|
|
97
97
|
LEGACY_size: "small",
|
|
98
|
-
label: ""
|
|
98
|
+
label: "",
|
|
99
|
+
size: "small"
|
|
99
100
|
}), /*#__PURE__*/React.createElement("div", {
|
|
100
101
|
id: `${fieldProps.id}-errorMessage`,
|
|
101
102
|
className: ax(["_19pkidpf _18u01b66"])
|
|
@@ -13,7 +13,7 @@ import { messages } from '@atlaskit/media-ui';
|
|
|
13
13
|
import { xcss, Box, Flex } from '@atlaskit/primitives';
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
15
|
import { jsx, css } from '@emotion/react';
|
|
16
|
-
import ErrorIcon from '@atlaskit/icon/
|
|
16
|
+
import ErrorIcon from '@atlaskit/icon/core/migration/error';
|
|
17
17
|
const COLOR_SHADE = '#b6c2cf';
|
|
18
18
|
const headingStyle = css({
|
|
19
19
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
@@ -106,7 +106,8 @@ export const PDFPasswordInput = ({
|
|
|
106
106
|
}, jsx(ErrorIcon, {
|
|
107
107
|
color: "currentColor",
|
|
108
108
|
LEGACY_size: "small",
|
|
109
|
-
label: ""
|
|
109
|
+
label: "",
|
|
110
|
+
size: "small"
|
|
110
111
|
}), jsx("p", {
|
|
111
112
|
css: errorMessageStyle
|
|
112
113
|
}, jsx(FormattedMessage, messages.incorrect_password))))), jsx(Box, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ANALYTICS_MEDIA_CHANNEL, sanitiseAnalyticsPayload } from '@atlaskit/media-common/analytics';
|
|
2
2
|
var componentName = 'mediaViewer';
|
|
3
3
|
var packageName = "@atlaskit/media-viewer";
|
|
4
|
-
var packageVersion = "52.2.
|
|
4
|
+
var packageVersion = "52.2.4";
|
|
5
5
|
export { packageName, packageVersion, componentName, componentName as component };
|
|
6
6
|
export function getFileAttributes(fileState) {
|
|
7
7
|
if (!fileState) {
|
|
@@ -5,7 +5,7 @@ import { UFOExperience, ExperiencePerformanceTypes, ExperienceTypes } from '@atl
|
|
|
5
5
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
6
6
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
7
7
|
var packageName = "@atlaskit/media-viewer";
|
|
8
|
-
var packageVersion = "52.2.
|
|
8
|
+
var packageVersion = "52.2.4";
|
|
9
9
|
var ufoExperience;
|
|
10
10
|
var getExperience = function getExperience() {
|
|
11
11
|
if (!ufoExperience) {
|
package/dist/esm/list.js
CHANGED
|
@@ -4,7 +4,7 @@ import { hideControlsClassName } from '@atlaskit/media-ui';
|
|
|
4
4
|
import { ItemViewer } from './item-viewer';
|
|
5
5
|
import { HeaderWrapper, ListWrapper } from './styleWrappers';
|
|
6
6
|
import { Navigation } from './navigation';
|
|
7
|
-
import {
|
|
7
|
+
import { getRandomTelemetryId } from '@atlaskit/media-common';
|
|
8
8
|
import Header from './header';
|
|
9
9
|
export var List = function List(_ref) {
|
|
10
10
|
var defaultSelectedItem = _ref.defaultSelectedItem,
|
|
@@ -31,7 +31,7 @@ export var List = function List(_ref) {
|
|
|
31
31
|
isArchiveSideBarVisible = _useState6[0],
|
|
32
32
|
setIsArchiveSideBarVisible = _useState6[1];
|
|
33
33
|
var traceContext = useRef({
|
|
34
|
-
traceId:
|
|
34
|
+
traceId: getRandomTelemetryId()
|
|
35
35
|
});
|
|
36
36
|
return /*#__PURE__*/React.createElement(ListWrapper, null, /*#__PURE__*/React.createElement(HeaderWrapper
|
|
37
37
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
package/dist/esm/navigation.js
CHANGED
|
@@ -8,8 +8,8 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
8
8
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { Component } from 'react';
|
|
11
|
-
import ArrowLeftCircleIcon from '@atlaskit/icon/
|
|
12
|
-
import ArrowRightCircleIcon from '@atlaskit/icon/
|
|
11
|
+
import ArrowLeftCircleIcon from '@atlaskit/icon/core/migration/chevron-left--chevron-left-circle';
|
|
12
|
+
import ArrowRightCircleIcon from '@atlaskit/icon/core/migration/chevron-right--chevron-right-circle';
|
|
13
13
|
import { hideControlsClassName } from '@atlaskit/media-ui';
|
|
14
14
|
import { Shortcut } from '@atlaskit/media-ui';
|
|
15
15
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -62,7 +62,8 @@ var withIconWrapper = function withIconWrapper(Component) {
|
|
|
62
62
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
63
63
|
,
|
|
64
64
|
LEGACY_secondaryColor: "#161A1D",
|
|
65
|
-
color: "currentColor"
|
|
65
|
+
color: "currentColor",
|
|
66
|
+
size: "small"
|
|
66
67
|
}));
|
|
67
68
|
};
|
|
68
69
|
};
|
|
@@ -118,7 +118,7 @@ export var CodeViewRenderer = /*#__PURE__*/function (_Component) {
|
|
|
118
118
|
//item.size is incorrect for archives with mutiple docs inside.
|
|
119
119
|
var fileSize = new Blob([src]).size;
|
|
120
120
|
var codeViewer = lineCount(src) > MAX_FORMATTED_LINES || fileSize > MAX_FILE_SIZE_USE_CODE_VIEWER ?
|
|
121
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
121
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-code, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
122
122
|
jsx("code", {
|
|
123
123
|
css: codeViewerHTMLStyles,
|
|
124
124
|
"data-testid": "code-block"
|
|
@@ -13,7 +13,7 @@ import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
|
13
13
|
import { messages } from '@atlaskit/media-ui';
|
|
14
14
|
import { xcss, Box, Flex, Text } from '@atlaskit/primitives';
|
|
15
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
|
-
import ErrorIcon from '@atlaskit/icon/
|
|
16
|
+
import ErrorIcon from '@atlaskit/icon/core/migration/error';
|
|
17
17
|
import Heading from '@atlaskit/heading';
|
|
18
18
|
var COLOR_SHADE = '#b6c2cf';
|
|
19
19
|
var ERROR_COLOR = '#FD9891';
|
|
@@ -98,7 +98,8 @@ export var PDFPasswordInput = function PDFPasswordInput(_ref) {
|
|
|
98
98
|
}, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
99
99
|
color: "currentColor",
|
|
100
100
|
LEGACY_size: "small",
|
|
101
|
-
label: ""
|
|
101
|
+
label: "",
|
|
102
|
+
size: "small"
|
|
102
103
|
}), /*#__PURE__*/React.createElement("div", {
|
|
103
104
|
id: "".concat(fieldProps.id, "-errorMessage"),
|
|
104
105
|
className: ax(["_19pkidpf _18u01b66"])
|
|
@@ -14,7 +14,7 @@ import { messages } from '@atlaskit/media-ui';
|
|
|
14
14
|
import { xcss, Box, Flex } from '@atlaskit/primitives';
|
|
15
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
16
|
import { jsx, css } from '@emotion/react';
|
|
17
|
-
import ErrorIcon from '@atlaskit/icon/
|
|
17
|
+
import ErrorIcon from '@atlaskit/icon/core/migration/error';
|
|
18
18
|
var COLOR_SHADE = '#b6c2cf';
|
|
19
19
|
var headingStyle = css({
|
|
20
20
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
@@ -109,7 +109,8 @@ export var PDFPasswordInput = function PDFPasswordInput(_ref) {
|
|
|
109
109
|
}, jsx(ErrorIcon, {
|
|
110
110
|
color: "currentColor",
|
|
111
111
|
LEGACY_size: "small",
|
|
112
|
-
label: ""
|
|
112
|
+
label: "",
|
|
113
|
+
size: "small"
|
|
113
114
|
}), jsx("p", {
|
|
114
115
|
css: errorMessageStyle
|
|
115
116
|
}, jsx(FormattedMessage, messages.incorrect_password))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-viewer",
|
|
3
|
-
"version": "52.2.
|
|
3
|
+
"version": "52.2.4",
|
|
4
4
|
"description": "MediaViewer is Atlassian's powerful solution for viewing files on the web. It's both powerful and extendable yet easy-to-integrate",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"runReact18": true
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/analytics-next": "^11.
|
|
39
|
+
"@atlaskit/analytics-next": "^11.1.0",
|
|
40
40
|
"@atlaskit/button": "^23.2.0",
|
|
41
41
|
"@atlaskit/code": "^17.2.0",
|
|
42
42
|
"@atlaskit/css": "^0.10.0",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"@atlaskit/heading": "^5.2.0",
|
|
45
45
|
"@atlaskit/icon": "^26.4.0",
|
|
46
46
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
47
|
-
"@atlaskit/icon-lab": "^4.
|
|
48
|
-
"@atlaskit/media-client": "^33.
|
|
47
|
+
"@atlaskit/icon-lab": "^4.19.0",
|
|
48
|
+
"@atlaskit/media-client": "^33.4.0",
|
|
49
49
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
50
|
-
"@atlaskit/media-common": "^12.
|
|
50
|
+
"@atlaskit/media-common": "^12.2.0",
|
|
51
51
|
"@atlaskit/media-svg": "^2.1.0",
|
|
52
|
-
"@atlaskit/media-ui": "^28.
|
|
52
|
+
"@atlaskit/media-ui": "^28.3.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
54
54
|
"@atlaskit/portal": "^5.1.0",
|
|
55
55
|
"@atlaskit/primitives": "^14.8.0",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"@atlaskit/spinner": "^18.0.0",
|
|
58
58
|
"@atlaskit/textfield": "^8.0.0",
|
|
59
59
|
"@atlaskit/theme": "^18.0.0",
|
|
60
|
-
"@atlaskit/tokens": "^
|
|
61
|
-
"@atlaskit/tooltip": "^20.
|
|
60
|
+
"@atlaskit/tokens": "^5.2.0",
|
|
61
|
+
"@atlaskit/tooltip": "^20.3.0",
|
|
62
62
|
"@atlaskit/ufo": "^0.4.0",
|
|
63
63
|
"@babel/runtime": "^7.0.0",
|
|
64
64
|
"@codemirror/language": "6.10.8",
|
|
@@ -91,13 +91,13 @@
|
|
|
91
91
|
"@atlaskit/media-core": "^36.1.0",
|
|
92
92
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
93
93
|
"@atlaskit/media-state": "^1.6.0",
|
|
94
|
-
"@atlaskit/media-test-data": "^3.
|
|
95
|
-
"@atlaskit/media-test-helpers": "^36.
|
|
94
|
+
"@atlaskit/media-test-data": "^3.1.0",
|
|
95
|
+
"@atlaskit/media-test-helpers": "^36.1.0",
|
|
96
96
|
"@atlaskit/ssr": "workspace:^",
|
|
97
97
|
"@atlaskit/toggle": "^15.0.0",
|
|
98
98
|
"@atlaskit/visual-regression": "workspace:^",
|
|
99
99
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
100
|
-
"@atlassian/ufo": "^0.
|
|
100
|
+
"@atlassian/ufo": "^0.7.0",
|
|
101
101
|
"@testing-library/dom": "^10.1.0",
|
|
102
102
|
"@testing-library/react": "^13.4.0",
|
|
103
103
|
"@testing-library/user-event": "^14.4.3",
|