@atlaskit/media-viewer 52.0.9 → 52.0.11
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 +19 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/analytics/ufoExperiences.js +1 -1
- package/dist/cjs/styleWrappers-emotion.js +1 -1
- package/dist/cjs/viewers/archiveSidebar/archive-sidebar-folder-entry.js +2 -8
- package/dist/cjs/viewers/archiveSidebar/archive-sidebar-header.js +4 -12
- package/dist/cjs/viewers/archiveSidebar/custom-button-item.compiled.css +7 -0
- package/dist/cjs/viewers/archiveSidebar/custom-button-item.js +34 -0
- package/dist/cjs/viewers/archiveSidebar/styleWrappers-emotion.js +1 -1
- package/dist/cjs/viewers/archiveSidebar/styles.js +2 -16
- package/dist/cjs/viewers/doc/pdfRenderer.js +2 -2
- package/dist/cjs/viewers/image/interactive-img.js +6 -12
- package/dist/cjs/viewers/svg/ImageWrapper-emotion.js +1 -1
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/analytics/ufoExperiences.js +1 -1
- package/dist/es2019/styleWrappers-emotion.js +1 -1
- package/dist/es2019/viewers/archiveSidebar/archive-sidebar-folder-entry.js +2 -6
- package/dist/es2019/viewers/archiveSidebar/archive-sidebar-header.js +4 -10
- package/dist/es2019/viewers/archiveSidebar/custom-button-item.compiled.css +7 -0
- package/dist/es2019/viewers/archiveSidebar/custom-button-item.js +20 -0
- package/dist/es2019/viewers/archiveSidebar/styleWrappers-emotion.js +1 -1
- package/dist/es2019/viewers/archiveSidebar/styles.js +1 -15
- package/dist/es2019/viewers/doc/pdfRenderer.js +2 -2
- package/dist/es2019/viewers/image/interactive-img.js +6 -12
- package/dist/es2019/viewers/svg/ImageWrapper-emotion.js +1 -1
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/analytics/ufoExperiences.js +1 -1
- package/dist/esm/styleWrappers-emotion.js +1 -1
- package/dist/esm/viewers/archiveSidebar/archive-sidebar-folder-entry.js +2 -8
- package/dist/esm/viewers/archiveSidebar/archive-sidebar-header.js +4 -12
- package/dist/esm/viewers/archiveSidebar/custom-button-item.compiled.css +7 -0
- package/dist/esm/viewers/archiveSidebar/custom-button-item.js +24 -0
- package/dist/esm/viewers/archiveSidebar/styleWrappers-emotion.js +1 -1
- package/dist/esm/viewers/archiveSidebar/styles.js +1 -15
- package/dist/esm/viewers/doc/pdfRenderer.js +2 -2
- package/dist/esm/viewers/image/interactive-img.js +6 -12
- package/dist/esm/viewers/svg/ImageWrapper-emotion.js +1 -1
- package/dist/types/viewers/archiveSidebar/custom-button-item.d.ts +3 -0
- package/dist/types/viewers/archiveSidebar/styles.d.ts +0 -13
- package/dist/types-ts4.5/viewers/archiveSidebar/custom-button-item.d.ts +3 -0
- package/dist/types-ts4.5/viewers/archiveSidebar/styles.d.ts +0 -13
- package/package.json +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/media-viewer
|
|
2
2
|
|
|
3
|
+
## 52.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#141631](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/141631)
|
|
8
|
+
[`39f9ae5c433e6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/39f9ae5c433e6) -
|
|
9
|
+
Refactored internal code to be compatible with the latest version of @atlaskit/menu using Compiled
|
|
10
|
+
CSS-in-JS.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 52.0.10
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#138829](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/138829)
|
|
18
|
+
[`4838615c1e10f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4838615c1e10f) -
|
|
19
|
+
Replaced HD icon for Images and Video
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 52.0.9
|
|
4
23
|
|
|
5
24
|
### 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.0.
|
|
13
|
+
var packageVersion = exports.packageVersion = "52.0.11";
|
|
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.0.
|
|
15
|
+
var packageVersion = "52.0.11";
|
|
16
16
|
var ufoExperience;
|
|
17
17
|
var getExperience = function getExperience() {
|
|
18
18
|
if (!ufoExperience) {
|
|
@@ -579,7 +579,7 @@ var ImageWrapper = exports.ImageWrapper = /*#__PURE__*/(0, _react2.forwardRef)(f
|
|
|
579
579
|
style = _ref26.style,
|
|
580
580
|
className = _ref26.className;
|
|
581
581
|
return (
|
|
582
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
582
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
583
583
|
(0, _react.jsx)("div", {
|
|
584
584
|
"data-testid": datatestId,
|
|
585
585
|
onClick: onClick,
|
|
@@ -14,13 +14,12 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
14
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
16
|
var _react = _interopRequireDefault(require("react"));
|
|
17
|
-
var _sideNavigation = require("@atlaskit/side-navigation");
|
|
18
17
|
var _ = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/folder/24"));
|
|
19
18
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
20
19
|
var _mediaTypeIcon = require("@atlaskit/media-ui/media-type-icon");
|
|
21
20
|
var _styleWrappers = require("./styleWrappers");
|
|
22
21
|
var _utils = require("../../utils");
|
|
23
|
-
var
|
|
22
|
+
var _customButtonItem = require("./custom-button-item");
|
|
24
23
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
25
24
|
var _archiveDownloadButton = require("./archive-download-button");
|
|
26
25
|
var _reactIntlNext = require("react-intl-next");
|
|
@@ -48,14 +47,9 @@ var ArchiveSidebarFolderEntryBase = /*#__PURE__*/function (_React$Component) {
|
|
|
48
47
|
return /*#__PURE__*/_react.default.createElement(_styleWrappers.ArchiveSidebarFileEntryWrapper, {
|
|
49
48
|
key: entry.name,
|
|
50
49
|
index: entry.name
|
|
51
|
-
}, /*#__PURE__*/_react.default.createElement(_styleWrappers.SidebarItemWrapper, null, /*#__PURE__*/_react.default.createElement(
|
|
50
|
+
}, /*#__PURE__*/_react.default.createElement(_styleWrappers.SidebarItemWrapper, null, /*#__PURE__*/_react.default.createElement(_customButtonItem.CustomButtonItem, {
|
|
52
51
|
iconBefore: _this.renderEntryIcon(entry),
|
|
53
52
|
onClick: onClick
|
|
54
|
-
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-apis
|
|
55
|
-
,
|
|
56
|
-
cssFn: function cssFn() {
|
|
57
|
-
return _styles.itemStyle;
|
|
58
|
-
}
|
|
59
53
|
}, _this.formatName(root, entry.name))), entry.isDirectory ? null : _this.renderDownloadButton(entry, root, mediaClient.config.enforceDataSecurityPolicy));
|
|
60
54
|
});
|
|
61
55
|
(0, _defineProperty2.default)(_this, "renderEntryIcon", function (entry) {
|
|
@@ -13,11 +13,10 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
var _arrowLeft = _interopRequireDefault(require("@atlaskit/icon/core/migration/arrow-left"));
|
|
16
|
-
var _sideNavigation = require("@atlaskit/side-navigation");
|
|
17
16
|
var _home = _interopRequireDefault(require("@atlaskit/icon/core/migration/home"));
|
|
18
17
|
var _utils = require("../../utils");
|
|
19
18
|
var _styleWrappers = require("./styleWrappers");
|
|
20
|
-
var
|
|
19
|
+
var _customButtonItem = require("./custom-button-item");
|
|
21
20
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
22
21
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
23
22
|
var ArchiveSidebarHeader = exports.ArchiveSidebarHeader = /*#__PURE__*/function (_React$Component) {
|
|
@@ -48,16 +47,9 @@ var ArchiveSidebarHeader = exports.ArchiveSidebarHeader = /*#__PURE__*/function
|
|
|
48
47
|
var _this$props = this.props,
|
|
49
48
|
folderName = _this$props.folderName,
|
|
50
49
|
onHeaderClick = _this$props.onHeaderClick;
|
|
51
|
-
return (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
_react.default.createElement(_sideNavigation.ButtonItem, {
|
|
55
|
-
onClick: onHeaderClick,
|
|
56
|
-
cssFn: function cssFn() {
|
|
57
|
-
return _styles.itemStyle;
|
|
58
|
-
}
|
|
59
|
-
}, /*#__PURE__*/_react.default.createElement(_styleWrappers.SidebarHeaderWrapper, null, /*#__PURE__*/_react.default.createElement(_styleWrappers.SidebarHeaderIcon, null, this.getHeaderIcon()), /*#__PURE__*/_react.default.createElement(_styleWrappers.SidebarHeaderEntry, null, (0, _utils.getFormattedFolderName)(folderName))))
|
|
60
|
-
);
|
|
50
|
+
return /*#__PURE__*/_react.default.createElement(_customButtonItem.CustomButtonItem, {
|
|
51
|
+
onClick: onHeaderClick
|
|
52
|
+
}, /*#__PURE__*/_react.default.createElement(_styleWrappers.SidebarHeaderWrapper, null, /*#__PURE__*/_react.default.createElement(_styleWrappers.SidebarHeaderIcon, null, this.getHeaderIcon()), /*#__PURE__*/_react.default.createElement(_styleWrappers.SidebarHeaderEntry, null, (0, _utils.getFormattedFolderName)(folderName))));
|
|
61
53
|
}
|
|
62
54
|
}]);
|
|
63
55
|
}(_react.default.Component);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
._bfhk3nif{background-color:var(--ds-background-neutral-subtle,#101214)}
|
|
3
|
+
._lswu1fjw{fill:var(--ds-icon-success,#101214)}
|
|
4
|
+
._syaz13q9{color:var(--_1qpk0k2)}
|
|
5
|
+
._30l313q9:hover{color:var(--_1qpk0k2)}
|
|
6
|
+
._irr3ebx2:hover{background-color:var(--ds-background-neutral-subtle-hovered,#a1bdd914)}._1di6j4ot:active{background-color:var(--ds-background-neutral-subtle-pressed,#a6c5e229)}
|
|
7
|
+
._9h8h13q9:active{color:var(--_1qpk0k2)}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* custom-button-item.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.CustomButtonItem = CustomButtonItem;
|
|
10
|
+
require("./custom-button-item.compiled.css");
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
13
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
+
var _sideNavigation = require("@atlaskit/side-navigation");
|
|
16
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
17
|
+
var _excluded = ["children", "onClick"];
|
|
18
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
+
var itemStyles = null;
|
|
21
|
+
function CustomButtonItem(_ref) {
|
|
22
|
+
var children = _ref.children,
|
|
23
|
+
onClick = _ref.onClick,
|
|
24
|
+
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
25
|
+
return /*#__PURE__*/React.createElement(_sideNavigation.ButtonItem, (0, _extends2.default)({
|
|
26
|
+
onClick: onClick
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
|
|
28
|
+
}, rest, {
|
|
29
|
+
className: (0, _runtime.ax)(["_bfhk3nif _lswu1fjw _syaz13q9 _irr3ebx2 _30l313q9 _1di6j4ot _9h8h13q9"]),
|
|
30
|
+
style: {
|
|
31
|
+
"--_1qpk0k2": (0, _runtime.ix)("".concat("var(--ds-text, ".concat(_colors.DN500, ")")))
|
|
32
|
+
}
|
|
33
|
+
}), children);
|
|
34
|
+
}
|
|
@@ -146,7 +146,7 @@ var ArchiveDownloadButtonWrapper = exports.ArchiveDownloadButtonWrapper = functi
|
|
|
146
146
|
var children = _ref4.children,
|
|
147
147
|
onClick = _ref4.onClick;
|
|
148
148
|
return (
|
|
149
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
149
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
150
150
|
(0, _react2.jsx)("div", {
|
|
151
151
|
css: archiveDownloadButtonWrapperStyles,
|
|
152
152
|
onClick: onClick,
|
|
@@ -3,19 +3,5 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
var
|
|
8
|
-
var ArchiveSideBarWidth = exports.ArchiveSideBarWidth = 300;
|
|
9
|
-
var itemStyle = exports.itemStyle = {
|
|
10
|
-
backgroundColor: "var(--ds-background-neutral-subtle, #101214)",
|
|
11
|
-
fill: "var(--ds-icon-success, #101214)",
|
|
12
|
-
color: "".concat("var(--ds-text, ".concat(_colors.DN500, ")")),
|
|
13
|
-
':hover': {
|
|
14
|
-
backgroundColor: "var(--ds-background-neutral-subtle-hovered, #A1BDD914)",
|
|
15
|
-
color: "".concat("var(--ds-text, ".concat(_colors.DN500, ")"))
|
|
16
|
-
},
|
|
17
|
-
':active': {
|
|
18
|
-
backgroundColor: "var(--ds-background-neutral-subtle-pressed, #A6C5E229)",
|
|
19
|
-
color: "".concat("var(--ds-text, ".concat(_colors.DN500, ")"))
|
|
20
|
-
}
|
|
21
|
-
};
|
|
6
|
+
exports.ArchiveSideBarWidth = void 0;
|
|
7
|
+
var ArchiveSideBarWidth = exports.ArchiveSideBarWidth = 300;
|
|
@@ -245,9 +245,9 @@ var PDFRendererBase = function PDFRendererBase(_ref2) {
|
|
|
245
245
|
ref: savePdfElement
|
|
246
246
|
},
|
|
247
247
|
/*#__PURE__*/
|
|
248
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
248
|
+
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
249
249
|
_react.default.createElement("div", {
|
|
250
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
250
|
+
// eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
251
251
|
className: pdfViewerClassName,
|
|
252
252
|
onClick: (0, _closeOnDirectClick.closeOnDirectClick)(onClose)
|
|
253
253
|
}), /*#__PURE__*/_react.default.createElement(_zoomControls.ZoomControls, {
|
|
@@ -17,9 +17,9 @@ var _mediaUi = require("@atlaskit/media-ui");
|
|
|
17
17
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
18
18
|
var _constants = require("@atlaskit/media-client/constants");
|
|
19
19
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
20
|
-
var
|
|
20
|
+
var _videoHd = _interopRequireDefault(require("@atlaskit/icon-lab/core/video-hd"));
|
|
21
|
+
var _videoHdFilled = _interopRequireDefault(require("@atlaskit/icon-lab/core/video-hd-filled"));
|
|
21
22
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
22
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
23
23
|
var _styleWrappers = require("../../styleWrappers");
|
|
24
24
|
var _zoomLevel = require("../../domain/zoomLevel");
|
|
25
25
|
var _closeOnDirectClick = require("../../utils/closeOnDirectClick");
|
|
@@ -223,11 +223,6 @@ var InteractiveImgComponent = exports.InteractiveImgComponent = /*#__PURE__*/fun
|
|
|
223
223
|
if (!isHDAvailable) {
|
|
224
224
|
return null;
|
|
225
225
|
}
|
|
226
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
227
|
-
var hdPrimaryColor = isHDActivating ? _colors.B75 : isHDActive ? _colors.B200 : _colors.DN400;
|
|
228
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
229
|
-
var hdSecondaryColor = isHDActive && !isHDActivating ? _colors.N0 : _colors.DN60;
|
|
230
|
-
var testId = isHDActivating ? 'hd-activating' : isHDActive ? 'hd-active' : 'hd-inactive';
|
|
231
226
|
return (
|
|
232
227
|
/*#__PURE__*/
|
|
233
228
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -235,11 +230,10 @@ var InteractiveImgComponent = exports.InteractiveImgComponent = /*#__PURE__*/fun
|
|
|
235
230
|
className: _mediaUi.hideControlsClassName
|
|
236
231
|
}, isHDActivating ? /*#__PURE__*/_react.default.createElement(_spinner.default, {
|
|
237
232
|
appearance: "invert"
|
|
238
|
-
}) : undefined, /*#__PURE__*/_react.default.createElement(
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
label: "hd"
|
|
242
|
-
testId: testId
|
|
233
|
+
}) : undefined, isHDActive ? /*#__PURE__*/_react.default.createElement(_videoHdFilled.default, {
|
|
234
|
+
label: "hd active"
|
|
235
|
+
}) : /*#__PURE__*/_react.default.createElement(_videoHd.default, {
|
|
236
|
+
label: "hd"
|
|
243
237
|
}))
|
|
244
238
|
);
|
|
245
239
|
}
|
|
@@ -28,7 +28,7 @@ var ImageWrapper = exports.ImageWrapper = /*#__PURE__*/(0, _react2.forwardRef)(f
|
|
|
28
28
|
onClick = _ref.onClick,
|
|
29
29
|
isHidden = _ref.isHidden;
|
|
30
30
|
return (
|
|
31
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
31
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
32
32
|
(0, _react.jsx)("div", {
|
|
33
33
|
"data-testid": "media-viewer-svg-wrapper",
|
|
34
34
|
onClick: onClick,
|
|
@@ -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.0.
|
|
4
|
+
const packageVersion = "52.0.11";
|
|
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.0.
|
|
5
|
+
const packageVersion = "52.0.11";
|
|
6
6
|
let ufoExperience;
|
|
7
7
|
const getExperience = () => {
|
|
8
8
|
if (!ufoExperience) {
|
|
@@ -549,7 +549,7 @@ export const ImageWrapper = /*#__PURE__*/forwardRef(({
|
|
|
549
549
|
style,
|
|
550
550
|
className
|
|
551
551
|
}, ref) =>
|
|
552
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
552
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
553
553
|
jsx("div", {
|
|
554
554
|
"data-testid": datatestId,
|
|
555
555
|
onClick: onClick,
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { ButtonItem } from '@atlaskit/side-navigation';
|
|
4
3
|
import Folder24Icon from '@atlaskit/icon-file-type/glyph/folder/24';
|
|
5
4
|
import { downloadUrl } from '@atlaskit/media-common';
|
|
6
5
|
import { MediaTypeIcon } from '@atlaskit/media-ui/media-type-icon';
|
|
7
6
|
import { ArchiveSidebarFolderWrapper, ArchiveSidebarFileEntryWrapper, SidebarItemWrapper } from './styleWrappers';
|
|
8
7
|
import { getMediaTypeFromFilename, isMacPrivateFile, rejectAfter } from '../../utils';
|
|
9
|
-
import {
|
|
8
|
+
import { CustomButtonItem } from './custom-button-item';
|
|
10
9
|
import { messages } from '@atlaskit/media-ui';
|
|
11
10
|
import { ArchiveDownloadButton } from './archive-download-button';
|
|
12
11
|
import { injectIntl } from 'react-intl-next';
|
|
@@ -26,12 +25,9 @@ class ArchiveSidebarFolderEntryBase extends React.Component {
|
|
|
26
25
|
return /*#__PURE__*/React.createElement(ArchiveSidebarFileEntryWrapper, {
|
|
27
26
|
key: entry.name,
|
|
28
27
|
index: entry.name
|
|
29
|
-
}, /*#__PURE__*/React.createElement(SidebarItemWrapper, null, /*#__PURE__*/React.createElement(
|
|
28
|
+
}, /*#__PURE__*/React.createElement(SidebarItemWrapper, null, /*#__PURE__*/React.createElement(CustomButtonItem, {
|
|
30
29
|
iconBefore: this.renderEntryIcon(entry),
|
|
31
30
|
onClick: onClick
|
|
32
|
-
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-apis
|
|
33
|
-
,
|
|
34
|
-
cssFn: () => itemStyle
|
|
35
31
|
}, this.formatName(root, entry.name))), entry.isDirectory ? null : this.renderDownloadButton(entry, root, mediaClient.config.enforceDataSecurityPolicy));
|
|
36
32
|
});
|
|
37
33
|
_defineProperty(this, "renderEntryIcon", entry => {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import ArrowLeftIcon from '@atlaskit/icon/core/migration/arrow-left';
|
|
4
|
-
import { ButtonItem } from '@atlaskit/side-navigation';
|
|
5
4
|
import HomeIcon from '@atlaskit/icon/core/migration/home';
|
|
6
5
|
import { getFormattedFolderName } from '../../utils';
|
|
7
6
|
import { SidebarHeaderEntry, SidebarHeaderIcon, SidebarHeaderWrapper } from './styleWrappers';
|
|
8
|
-
import {
|
|
7
|
+
import { CustomButtonItem } from './custom-button-item';
|
|
9
8
|
export class ArchiveSidebarHeader extends React.Component {
|
|
10
9
|
constructor(...args) {
|
|
11
10
|
super(...args);
|
|
@@ -24,13 +23,8 @@ export class ArchiveSidebarHeader extends React.Component {
|
|
|
24
23
|
folderName,
|
|
25
24
|
onHeaderClick
|
|
26
25
|
} = this.props;
|
|
27
|
-
return (
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
React.createElement(ButtonItem, {
|
|
31
|
-
onClick: onHeaderClick,
|
|
32
|
-
cssFn: () => itemStyle
|
|
33
|
-
}, /*#__PURE__*/React.createElement(SidebarHeaderWrapper, null, /*#__PURE__*/React.createElement(SidebarHeaderIcon, null, this.getHeaderIcon()), /*#__PURE__*/React.createElement(SidebarHeaderEntry, null, getFormattedFolderName(folderName))))
|
|
34
|
-
);
|
|
26
|
+
return /*#__PURE__*/React.createElement(CustomButtonItem, {
|
|
27
|
+
onClick: onHeaderClick
|
|
28
|
+
}, /*#__PURE__*/React.createElement(SidebarHeaderWrapper, null, /*#__PURE__*/React.createElement(SidebarHeaderIcon, null, this.getHeaderIcon()), /*#__PURE__*/React.createElement(SidebarHeaderEntry, null, getFormattedFolderName(folderName))));
|
|
35
29
|
}
|
|
36
30
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
._bfhk3nif{background-color:var(--ds-background-neutral-subtle,#101214)}
|
|
3
|
+
._lswu1fjw{fill:var(--ds-icon-success,#101214)}
|
|
4
|
+
._syazg8nh{color:var(--ds-text,#abbbd6)}
|
|
5
|
+
._30l3g8nh:hover{color:var(--ds-text,#abbbd6)}
|
|
6
|
+
._irr3ebx2:hover{background-color:var(--ds-background-neutral-subtle-hovered,#a1bdd914)}._1di6j4ot:active{background-color:var(--ds-background-neutral-subtle-pressed,#a6c5e229)}
|
|
7
|
+
._9h8hg8nh:active{color:var(--ds-text,#abbbd6)}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* custom-button-item.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import "./custom-button-item.compiled.css";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
import { ButtonItem } from '@atlaskit/side-navigation';
|
|
7
|
+
import { DN500 } from '@atlaskit/theme/colors';
|
|
8
|
+
const itemStyles = null;
|
|
9
|
+
export function CustomButtonItem({
|
|
10
|
+
children,
|
|
11
|
+
onClick,
|
|
12
|
+
...rest
|
|
13
|
+
}) {
|
|
14
|
+
return /*#__PURE__*/React.createElement(ButtonItem, _extends({
|
|
15
|
+
onClick: onClick
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
|
|
17
|
+
}, rest, {
|
|
18
|
+
className: ax(["_bfhk3nif _lswu1fjw _syazg8nh _irr3ebx2 _30l3g8nh _1di6j4ot _9h8hg8nh"])
|
|
19
|
+
}), children);
|
|
20
|
+
}
|
|
@@ -143,7 +143,7 @@ export const ArchiveDownloadButtonWrapper = ({
|
|
|
143
143
|
onClick
|
|
144
144
|
}) => {
|
|
145
145
|
return (
|
|
146
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
146
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
147
147
|
jsx("div", {
|
|
148
148
|
css: archiveDownloadButtonWrapperStyles,
|
|
149
149
|
onClick: onClick,
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export const ArchiveSideBarWidth = 300;
|
|
3
|
-
export const itemStyle = {
|
|
4
|
-
backgroundColor: `${"var(--ds-background-neutral-subtle, #101214)"}`,
|
|
5
|
-
fill: `${"var(--ds-icon-success, #101214)"}`,
|
|
6
|
-
color: `${`var(--ds-text, ${DN500})`}`,
|
|
7
|
-
':hover': {
|
|
8
|
-
backgroundColor: `${"var(--ds-background-neutral-subtle-hovered, #A1BDD914)"}`,
|
|
9
|
-
color: `${`var(--ds-text, ${DN500})`}`
|
|
10
|
-
},
|
|
11
|
-
':active': {
|
|
12
|
-
backgroundColor: `${"var(--ds-background-neutral-subtle-pressed, #A6C5E229)"}`,
|
|
13
|
-
color: `${`var(--ds-text, ${DN500})`}`
|
|
14
|
-
}
|
|
15
|
-
};
|
|
1
|
+
export const ArchiveSideBarWidth = 300;
|
|
@@ -164,9 +164,9 @@ const PDFRendererBase = ({
|
|
|
164
164
|
ref: savePdfElement
|
|
165
165
|
},
|
|
166
166
|
/*#__PURE__*/
|
|
167
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
167
|
+
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
168
168
|
React.createElement("div", {
|
|
169
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
169
|
+
// eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
170
170
|
className: pdfViewerClassName,
|
|
171
171
|
onClick: closeOnDirectClick(onClose)
|
|
172
172
|
}), /*#__PURE__*/React.createElement(ZoomControls, {
|
|
@@ -4,9 +4,9 @@ import { Camera, getCssFromImageOrientation, hideControlsClassName, Rectangle, V
|
|
|
4
4
|
import { ANALYTICS_MEDIA_CHANNEL } from '@atlaskit/media-common';
|
|
5
5
|
import { MAX_RESOLUTION } from '@atlaskit/media-client/constants';
|
|
6
6
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
7
|
-
import
|
|
7
|
+
import VideoHdIcon from '@atlaskit/icon-lab/core/video-hd';
|
|
8
|
+
import VideoHdFilledIcon from '@atlaskit/icon-lab/core/video-hd-filled';
|
|
8
9
|
import Spinner from '@atlaskit/spinner';
|
|
9
|
-
import { B75, B200, DN400, DN60, N0 } from '@atlaskit/theme/colors';
|
|
10
10
|
import { BaselineExtend, HDIconGroupWrapper, ImageWrapper, Img } from '../../styleWrappers';
|
|
11
11
|
import { ZoomLevel } from '../../domain/zoomLevel';
|
|
12
12
|
import { closeOnDirectClick } from '../../utils/closeOnDirectClick';
|
|
@@ -211,11 +211,6 @@ export class InteractiveImgComponent extends React.Component {
|
|
|
211
211
|
if (!isHDAvailable) {
|
|
212
212
|
return null;
|
|
213
213
|
}
|
|
214
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
215
|
-
const hdPrimaryColor = isHDActivating ? B75 : isHDActive ? B200 : DN400;
|
|
216
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
217
|
-
const hdSecondaryColor = isHDActive && !isHDActivating ? N0 : DN60;
|
|
218
|
-
const testId = isHDActivating ? 'hd-activating' : isHDActive ? 'hd-active' : 'hd-inactive';
|
|
219
214
|
return (
|
|
220
215
|
/*#__PURE__*/
|
|
221
216
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -223,11 +218,10 @@ export class InteractiveImgComponent extends React.Component {
|
|
|
223
218
|
className: hideControlsClassName
|
|
224
219
|
}, isHDActivating ? /*#__PURE__*/React.createElement(Spinner, {
|
|
225
220
|
appearance: "invert"
|
|
226
|
-
}) : undefined, /*#__PURE__*/React.createElement(
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
label: "hd"
|
|
230
|
-
testId: testId
|
|
221
|
+
}) : undefined, isHDActive ? /*#__PURE__*/React.createElement(VideoHdFilledIcon, {
|
|
222
|
+
label: "hd active"
|
|
223
|
+
}) : /*#__PURE__*/React.createElement(VideoHdIcon, {
|
|
224
|
+
label: "hd"
|
|
231
225
|
}))
|
|
232
226
|
);
|
|
233
227
|
}
|
|
@@ -21,7 +21,7 @@ export const ImageWrapper = /*#__PURE__*/forwardRef(({
|
|
|
21
21
|
onClick,
|
|
22
22
|
isHidden
|
|
23
23
|
}, ref) =>
|
|
24
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
24
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
25
25
|
jsx("div", {
|
|
26
26
|
"data-testid": "media-viewer-svg-wrapper",
|
|
27
27
|
onClick: onClick,
|
|
@@ -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.0.
|
|
4
|
+
var packageVersion = "52.0.11";
|
|
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.0.
|
|
8
|
+
var packageVersion = "52.0.11";
|
|
9
9
|
var ufoExperience;
|
|
10
10
|
var getExperience = function getExperience() {
|
|
11
11
|
if (!ufoExperience) {
|
|
@@ -571,7 +571,7 @@ export var ImageWrapper = /*#__PURE__*/forwardRef(function (_ref26, ref) {
|
|
|
571
571
|
style = _ref26.style,
|
|
572
572
|
className = _ref26.className;
|
|
573
573
|
return (
|
|
574
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
574
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
575
575
|
jsx("div", {
|
|
576
576
|
"data-testid": datatestId,
|
|
577
577
|
onClick: onClick,
|
|
@@ -9,13 +9,12 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
9
9
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import React from 'react';
|
|
12
|
-
import { ButtonItem } from '@atlaskit/side-navigation';
|
|
13
12
|
import Folder24Icon from '@atlaskit/icon-file-type/glyph/folder/24';
|
|
14
13
|
import { downloadUrl } from '@atlaskit/media-common';
|
|
15
14
|
import { MediaTypeIcon } from '@atlaskit/media-ui/media-type-icon';
|
|
16
15
|
import { ArchiveSidebarFolderWrapper, ArchiveSidebarFileEntryWrapper, SidebarItemWrapper } from './styleWrappers';
|
|
17
16
|
import { getMediaTypeFromFilename, isMacPrivateFile, rejectAfter } from '../../utils';
|
|
18
|
-
import {
|
|
17
|
+
import { CustomButtonItem } from './custom-button-item';
|
|
19
18
|
import { messages } from '@atlaskit/media-ui';
|
|
20
19
|
import { ArchiveDownloadButton } from './archive-download-button';
|
|
21
20
|
import { injectIntl } from 'react-intl-next';
|
|
@@ -41,14 +40,9 @@ var ArchiveSidebarFolderEntryBase = /*#__PURE__*/function (_React$Component) {
|
|
|
41
40
|
return /*#__PURE__*/React.createElement(ArchiveSidebarFileEntryWrapper, {
|
|
42
41
|
key: entry.name,
|
|
43
42
|
index: entry.name
|
|
44
|
-
}, /*#__PURE__*/React.createElement(SidebarItemWrapper, null, /*#__PURE__*/React.createElement(
|
|
43
|
+
}, /*#__PURE__*/React.createElement(SidebarItemWrapper, null, /*#__PURE__*/React.createElement(CustomButtonItem, {
|
|
45
44
|
iconBefore: _this.renderEntryIcon(entry),
|
|
46
45
|
onClick: onClick
|
|
47
|
-
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-apis
|
|
48
|
-
,
|
|
49
|
-
cssFn: function cssFn() {
|
|
50
|
-
return itemStyle;
|
|
51
|
-
}
|
|
52
46
|
}, _this.formatName(root, entry.name))), entry.isDirectory ? null : _this.renderDownloadButton(entry, root, mediaClient.config.enforceDataSecurityPolicy));
|
|
53
47
|
});
|
|
54
48
|
_defineProperty(_this, "renderEntryIcon", function (entry) {
|
|
@@ -8,11 +8,10 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import ArrowLeftIcon from '@atlaskit/icon/core/migration/arrow-left';
|
|
11
|
-
import { ButtonItem } from '@atlaskit/side-navigation';
|
|
12
11
|
import HomeIcon from '@atlaskit/icon/core/migration/home';
|
|
13
12
|
import { getFormattedFolderName } from '../../utils';
|
|
14
13
|
import { SidebarHeaderEntry, SidebarHeaderIcon, SidebarHeaderWrapper } from './styleWrappers';
|
|
15
|
-
import {
|
|
14
|
+
import { CustomButtonItem } from './custom-button-item';
|
|
16
15
|
export var ArchiveSidebarHeader = /*#__PURE__*/function (_React$Component) {
|
|
17
16
|
function ArchiveSidebarHeader() {
|
|
18
17
|
var _this;
|
|
@@ -41,16 +40,9 @@ export var ArchiveSidebarHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
41
40
|
var _this$props = this.props,
|
|
42
41
|
folderName = _this$props.folderName,
|
|
43
42
|
onHeaderClick = _this$props.onHeaderClick;
|
|
44
|
-
return (
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
React.createElement(ButtonItem, {
|
|
48
|
-
onClick: onHeaderClick,
|
|
49
|
-
cssFn: function cssFn() {
|
|
50
|
-
return itemStyle;
|
|
51
|
-
}
|
|
52
|
-
}, /*#__PURE__*/React.createElement(SidebarHeaderWrapper, null, /*#__PURE__*/React.createElement(SidebarHeaderIcon, null, this.getHeaderIcon()), /*#__PURE__*/React.createElement(SidebarHeaderEntry, null, getFormattedFolderName(folderName))))
|
|
53
|
-
);
|
|
43
|
+
return /*#__PURE__*/React.createElement(CustomButtonItem, {
|
|
44
|
+
onClick: onHeaderClick
|
|
45
|
+
}, /*#__PURE__*/React.createElement(SidebarHeaderWrapper, null, /*#__PURE__*/React.createElement(SidebarHeaderIcon, null, this.getHeaderIcon()), /*#__PURE__*/React.createElement(SidebarHeaderEntry, null, getFormattedFolderName(folderName))));
|
|
54
46
|
}
|
|
55
47
|
}]);
|
|
56
48
|
}(React.Component);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
._bfhk3nif{background-color:var(--ds-background-neutral-subtle,#101214)}
|
|
3
|
+
._lswu1fjw{fill:var(--ds-icon-success,#101214)}
|
|
4
|
+
._syaz13q9{color:var(--_1qpk0k2)}
|
|
5
|
+
._30l313q9:hover{color:var(--_1qpk0k2)}
|
|
6
|
+
._irr3ebx2:hover{background-color:var(--ds-background-neutral-subtle-hovered,#a1bdd914)}._1di6j4ot:active{background-color:var(--ds-background-neutral-subtle-pressed,#a6c5e229)}
|
|
7
|
+
._9h8h13q9:active{color:var(--_1qpk0k2)}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* custom-button-item.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["children", "onClick"];
|
|
5
|
+
import "./custom-button-item.compiled.css";
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
import { ButtonItem } from '@atlaskit/side-navigation';
|
|
9
|
+
import { DN500 } from '@atlaskit/theme/colors';
|
|
10
|
+
var itemStyles = null;
|
|
11
|
+
export function CustomButtonItem(_ref) {
|
|
12
|
+
var children = _ref.children,
|
|
13
|
+
onClick = _ref.onClick,
|
|
14
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
+
return /*#__PURE__*/React.createElement(ButtonItem, _extends({
|
|
16
|
+
onClick: onClick
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
|
|
18
|
+
}, rest, {
|
|
19
|
+
className: ax(["_bfhk3nif _lswu1fjw _syaz13q9 _irr3ebx2 _30l313q9 _1di6j4ot _9h8h13q9"]),
|
|
20
|
+
style: {
|
|
21
|
+
"--_1qpk0k2": ix("".concat("var(--ds-text, ".concat(DN500, ")")))
|
|
22
|
+
}
|
|
23
|
+
}), children);
|
|
24
|
+
}
|
|
@@ -137,7 +137,7 @@ export var ArchiveDownloadButtonWrapper = function ArchiveDownloadButtonWrapper(
|
|
|
137
137
|
var children = _ref4.children,
|
|
138
138
|
onClick = _ref4.onClick;
|
|
139
139
|
return (
|
|
140
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
140
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
141
141
|
jsx("div", {
|
|
142
142
|
css: archiveDownloadButtonWrapperStyles,
|
|
143
143
|
onClick: onClick,
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export var ArchiveSideBarWidth = 300;
|
|
3
|
-
export var itemStyle = {
|
|
4
|
-
backgroundColor: "var(--ds-background-neutral-subtle, #101214)",
|
|
5
|
-
fill: "var(--ds-icon-success, #101214)",
|
|
6
|
-
color: "".concat("var(--ds-text, ".concat(DN500, ")")),
|
|
7
|
-
':hover': {
|
|
8
|
-
backgroundColor: "var(--ds-background-neutral-subtle-hovered, #A1BDD914)",
|
|
9
|
-
color: "".concat("var(--ds-text, ".concat(DN500, ")"))
|
|
10
|
-
},
|
|
11
|
-
':active': {
|
|
12
|
-
backgroundColor: "var(--ds-background-neutral-subtle-pressed, #A6C5E229)",
|
|
13
|
-
color: "".concat("var(--ds-text, ".concat(DN500, ")"))
|
|
14
|
-
}
|
|
15
|
-
};
|
|
1
|
+
export var ArchiveSideBarWidth = 300;
|
|
@@ -235,9 +235,9 @@ var PDFRendererBase = function PDFRendererBase(_ref2) {
|
|
|
235
235
|
ref: savePdfElement
|
|
236
236
|
},
|
|
237
237
|
/*#__PURE__*/
|
|
238
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
238
|
+
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
239
239
|
React.createElement("div", {
|
|
240
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
240
|
+
// eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
241
241
|
className: pdfViewerClassName,
|
|
242
242
|
onClick: closeOnDirectClick(onClose)
|
|
243
243
|
}), /*#__PURE__*/React.createElement(ZoomControls, {
|
|
@@ -11,9 +11,9 @@ import { Camera, getCssFromImageOrientation, hideControlsClassName, Rectangle, V
|
|
|
11
11
|
import { ANALYTICS_MEDIA_CHANNEL } from '@atlaskit/media-common';
|
|
12
12
|
import { MAX_RESOLUTION } from '@atlaskit/media-client/constants';
|
|
13
13
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
14
|
-
import
|
|
14
|
+
import VideoHdIcon from '@atlaskit/icon-lab/core/video-hd';
|
|
15
|
+
import VideoHdFilledIcon from '@atlaskit/icon-lab/core/video-hd-filled';
|
|
15
16
|
import Spinner from '@atlaskit/spinner';
|
|
16
|
-
import { B75, B200, DN400, DN60, N0 } from '@atlaskit/theme/colors';
|
|
17
17
|
import { BaselineExtend, HDIconGroupWrapper, ImageWrapper, Img } from '../../styleWrappers';
|
|
18
18
|
import { ZoomLevel } from '../../domain/zoomLevel';
|
|
19
19
|
import { closeOnDirectClick } from '../../utils/closeOnDirectClick';
|
|
@@ -215,11 +215,6 @@ export var InteractiveImgComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
215
215
|
if (!isHDAvailable) {
|
|
216
216
|
return null;
|
|
217
217
|
}
|
|
218
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
219
|
-
var hdPrimaryColor = isHDActivating ? B75 : isHDActive ? B200 : DN400;
|
|
220
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
221
|
-
var hdSecondaryColor = isHDActive && !isHDActivating ? N0 : DN60;
|
|
222
|
-
var testId = isHDActivating ? 'hd-activating' : isHDActive ? 'hd-active' : 'hd-inactive';
|
|
223
218
|
return (
|
|
224
219
|
/*#__PURE__*/
|
|
225
220
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -227,11 +222,10 @@ export var InteractiveImgComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
227
222
|
className: hideControlsClassName
|
|
228
223
|
}, isHDActivating ? /*#__PURE__*/React.createElement(Spinner, {
|
|
229
224
|
appearance: "invert"
|
|
230
|
-
}) : undefined, /*#__PURE__*/React.createElement(
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
label: "hd"
|
|
234
|
-
testId: testId
|
|
225
|
+
}) : undefined, isHDActive ? /*#__PURE__*/React.createElement(VideoHdFilledIcon, {
|
|
226
|
+
label: "hd active"
|
|
227
|
+
}) : /*#__PURE__*/React.createElement(VideoHdIcon, {
|
|
228
|
+
label: "hd"
|
|
235
229
|
}))
|
|
236
230
|
);
|
|
237
231
|
}
|
|
@@ -21,7 +21,7 @@ export var ImageWrapper = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
21
21
|
onClick = _ref.onClick,
|
|
22
22
|
isHidden = _ref.isHidden;
|
|
23
23
|
return (
|
|
24
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
24
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
25
25
|
jsx("div", {
|
|
26
26
|
"data-testid": "media-viewer-svg-wrapper",
|
|
27
27
|
onClick: onClick,
|
|
@@ -1,14 +1 @@
|
|
|
1
1
|
export declare const ArchiveSideBarWidth = 300;
|
|
2
|
-
export declare const itemStyle: {
|
|
3
|
-
backgroundColor: string;
|
|
4
|
-
fill: string;
|
|
5
|
-
color: string;
|
|
6
|
-
':hover': {
|
|
7
|
-
backgroundColor: string;
|
|
8
|
-
color: string;
|
|
9
|
-
};
|
|
10
|
-
':active': {
|
|
11
|
-
backgroundColor: string;
|
|
12
|
-
color: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1,14 +1 @@
|
|
|
1
1
|
export declare const ArchiveSideBarWidth = 300;
|
|
2
|
-
export declare const itemStyle: {
|
|
3
|
-
backgroundColor: string;
|
|
4
|
-
fill: string;
|
|
5
|
-
color: string;
|
|
6
|
-
':hover': {
|
|
7
|
-
backgroundColor: string;
|
|
8
|
-
color: string;
|
|
9
|
-
};
|
|
10
|
-
':active': {
|
|
11
|
-
backgroundColor: string;
|
|
12
|
-
color: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-viewer",
|
|
3
|
-
"version": "52.0.
|
|
3
|
+
"version": "52.0.11",
|
|
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/"
|
|
@@ -38,11 +38,12 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
40
40
|
"@atlaskit/button": "^23.0.0",
|
|
41
|
-
"@atlaskit/code": "^17.
|
|
41
|
+
"@atlaskit/code": "^17.1.0",
|
|
42
42
|
"@atlaskit/form": "^12.0.0",
|
|
43
43
|
"@atlaskit/heading": "^5.2.0",
|
|
44
44
|
"@atlaskit/icon": "^25.6.0",
|
|
45
45
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
46
|
+
"@atlaskit/icon-lab": "^4.9.0",
|
|
46
47
|
"@atlaskit/media-client": "^32.0.0",
|
|
47
48
|
"@atlaskit/media-client-react": "^4.0.0",
|
|
48
49
|
"@atlaskit/media-common": "^12.0.0",
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
52
53
|
"@atlaskit/portal": "^5.1.0",
|
|
53
54
|
"@atlaskit/primitives": "^14.4.0",
|
|
54
|
-
"@atlaskit/side-navigation": "^
|
|
55
|
+
"@atlaskit/side-navigation": "^9.0.0",
|
|
55
56
|
"@atlaskit/spinner": "^18.0.0",
|
|
56
57
|
"@atlaskit/textfield": "^8.0.0",
|
|
57
58
|
"@atlaskit/theme": "^18.0.0",
|
|
@@ -79,16 +80,16 @@
|
|
|
79
80
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
80
81
|
},
|
|
81
82
|
"devDependencies": {
|
|
82
|
-
"@af/integration-testing": "
|
|
83
|
-
"@af/visual-regression": "
|
|
83
|
+
"@af/integration-testing": "workspace:^",
|
|
84
|
+
"@af/visual-regression": "workspace:^",
|
|
84
85
|
"@atlaskit/media-core": "^35.0.0",
|
|
85
|
-
"@atlaskit/media-integration-test-helpers": "
|
|
86
|
+
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
86
87
|
"@atlaskit/media-state": "^1.5.0",
|
|
87
88
|
"@atlaskit/media-test-data": "^3.0.0",
|
|
88
89
|
"@atlaskit/media-test-helpers": "^35.0.0",
|
|
89
|
-
"@atlaskit/ssr": "
|
|
90
|
+
"@atlaskit/ssr": "workspace:^",
|
|
90
91
|
"@atlaskit/toggle": "^15.0.0",
|
|
91
|
-
"@atlaskit/visual-regression": "
|
|
92
|
+
"@atlaskit/visual-regression": "workspace:^",
|
|
92
93
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
93
94
|
"@atlassian/ufo": "^0.6.0",
|
|
94
95
|
"@testing-library/dom": "^10.1.0",
|