@atlaskit/media-viewer 52.9.0 → 52.9.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 +8 -0
- package/dist/cjs/item-viewer.js +133 -40
- package/dist/cjs/styleWrappers.compiled.css +7 -8
- package/dist/cjs/styleWrappers.js +8 -8
- package/dist/cjs/viewers/archiveSidebar/custom-button-item.compiled.css +6 -6
- package/dist/cjs/viewers/archiveSidebar/custom-button-item.js +1 -5
- package/dist/cjs/viewers/archiveSidebar/styleWrappers.compiled.css +10 -10
- package/dist/cjs/viewers/archiveSidebar/styleWrappers.js +8 -11
- package/dist/cjs/viewers/codeViewer/CodeRendererAdvanced/CodeRendererAdvanced.compiled.css +1 -1
- package/dist/cjs/viewers/codeViewer/CodeRendererAdvanced/CodeRendererAdvanced.js +1 -1
- package/dist/cjs/viewers/codeViewer/codeViewerRenderer-compiled.compiled.css +2 -2
- package/dist/cjs/viewers/codeViewer/codeViewerRenderer-compiled.js +2 -2
- package/dist/cjs/viewers/codeViewer/styles.js +2 -6
- package/dist/es2019/item-viewer.js +85 -19
- package/dist/es2019/styleWrappers.compiled.css +7 -8
- package/dist/es2019/styleWrappers.js +8 -8
- package/dist/es2019/viewers/archiveSidebar/custom-button-item.compiled.css +6 -6
- package/dist/es2019/viewers/archiveSidebar/custom-button-item.js +1 -2
- package/dist/es2019/viewers/archiveSidebar/styleWrappers.compiled.css +10 -10
- package/dist/es2019/viewers/archiveSidebar/styleWrappers.js +7 -8
- package/dist/es2019/viewers/codeViewer/CodeRendererAdvanced/CodeRendererAdvanced.compiled.css +1 -1
- package/dist/es2019/viewers/codeViewer/CodeRendererAdvanced/CodeRendererAdvanced.js +1 -1
- package/dist/es2019/viewers/codeViewer/codeViewerRenderer-compiled.compiled.css +2 -2
- package/dist/es2019/viewers/codeViewer/codeViewerRenderer-compiled.js +2 -2
- package/dist/es2019/viewers/codeViewer/styles.js +2 -5
- package/dist/esm/item-viewer.js +122 -31
- package/dist/esm/styleWrappers.compiled.css +7 -8
- package/dist/esm/styleWrappers.js +8 -8
- package/dist/esm/viewers/archiveSidebar/custom-button-item.compiled.css +6 -6
- package/dist/esm/viewers/archiveSidebar/custom-button-item.js +1 -5
- package/dist/esm/viewers/archiveSidebar/styleWrappers.compiled.css +10 -10
- package/dist/esm/viewers/archiveSidebar/styleWrappers.js +7 -11
- package/dist/esm/viewers/codeViewer/CodeRendererAdvanced/CodeRendererAdvanced.compiled.css +1 -1
- package/dist/esm/viewers/codeViewer/CodeRendererAdvanced/CodeRendererAdvanced.js +1 -1
- package/dist/esm/viewers/codeViewer/codeViewerRenderer-compiled.compiled.css +2 -2
- package/dist/esm/viewers/codeViewer/codeViewerRenderer-compiled.js +2 -2
- package/dist/esm/viewers/codeViewer/styles.js +2 -5
- package/example-helpers/styles.ts +4 -4
- package/package.json +11 -8
|
@@ -5,12 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.codeViewerHeaderBarStyles = exports.codeViewerHTMLStyles = exports.codeViewWrapperStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
var _theme = require("@atlaskit/theme");
|
|
9
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
9
|
|
|
11
|
-
// AFP-2532 TODO: Fix automatic suppressions below
|
|
12
|
-
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
13
|
-
|
|
14
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
15
11
|
var codeViewWrapperStyles = exports.codeViewWrapperStyles = (0, _react.css)({
|
|
16
12
|
position: 'absolute',
|
|
@@ -19,7 +15,7 @@ var codeViewWrapperStyles = exports.codeViewWrapperStyles = (0, _react.css)({
|
|
|
19
15
|
right: 0,
|
|
20
16
|
bottom: 0,
|
|
21
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
22
|
-
backgroundColor: "var(--ds-surface,
|
|
18
|
+
backgroundColor: "var(--ds-surface, #FFFFFF)",
|
|
23
19
|
overflow: 'auto'
|
|
24
20
|
});
|
|
25
21
|
|
|
@@ -35,6 +31,6 @@ var codeViewerHTMLStyles = exports.codeViewerHTMLStyles = (0, _react.css)({
|
|
|
35
31
|
display: 'flex',
|
|
36
32
|
overflowX: 'auto',
|
|
37
33
|
whiteSpace: 'pre',
|
|
38
|
-
font: "var(--ds-font-body-
|
|
34
|
+
font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
39
35
|
padding: "var(--ds-space-100, 8px)"
|
|
40
36
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React, { useCallback, useEffect, useState, useRef } from 'react';
|
|
2
|
+
import React, { Suspense, useCallback, useEffect, useState, useRef } from 'react';
|
|
3
3
|
import Loadable from 'react-loadable';
|
|
4
4
|
import { isExternalImageIdentifier, isFileIdentifier, toCommonMediaClientError } from '@atlaskit/media-client';
|
|
5
5
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
@@ -21,32 +21,73 @@ import ArchiveViewerLoader from './viewers/archiveSidebar/archiveViewerLoader';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import { startMediaFileUfoExperience, succeedMediaFileUfoExperience } from './analytics/ufoExperiences';
|
|
23
23
|
import { CustomViewer } from './viewers/customViewer/customViewer';
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
function loadImageViewer() {
|
|
25
|
+
return import( /* webpackChunkName: "@atlaskit-internal_imageViewer" */'./viewers/image');
|
|
26
|
+
}
|
|
27
|
+
const LoadableImageViewer = Loadable({
|
|
28
|
+
loader: () => loadImageViewer().then(mod => mod.ImageViewer),
|
|
26
29
|
loading: () => /*#__PURE__*/React.createElement(Spinner, null)
|
|
27
30
|
});
|
|
28
|
-
const
|
|
29
|
-
|
|
31
|
+
const LazyImageViewer = /*#__PURE__*/React.lazy(() => loadImageViewer().then(mod => ({
|
|
32
|
+
default: mod.ImageViewer
|
|
33
|
+
})));
|
|
34
|
+
function loadVideoViewer() {
|
|
35
|
+
return import( /* webpackChunkName: "@atlaskit-internal_videoViewer" */'./viewers/video');
|
|
36
|
+
}
|
|
37
|
+
const LoadableVideoViewer = Loadable({
|
|
38
|
+
loader: () => loadVideoViewer().then(mod => mod.VideoViewer),
|
|
30
39
|
loading: () => /*#__PURE__*/React.createElement(Spinner, null)
|
|
31
40
|
});
|
|
32
|
-
const
|
|
33
|
-
|
|
41
|
+
const LazyVideoViewer = /*#__PURE__*/React.lazy(() => loadVideoViewer().then(mod => ({
|
|
42
|
+
default: mod.VideoViewer
|
|
43
|
+
})));
|
|
44
|
+
function loadAudioViewer() {
|
|
45
|
+
return import( /* webpackChunkName: "@atlaskit-internal_audioViewer" */'./viewers/audio');
|
|
46
|
+
}
|
|
47
|
+
const LoadableAudioViewer = Loadable({
|
|
48
|
+
loader: () => loadAudioViewer().then(mod => mod.AudioViewer),
|
|
34
49
|
loading: () => /*#__PURE__*/React.createElement(Spinner, null)
|
|
35
50
|
});
|
|
36
|
-
const
|
|
37
|
-
|
|
51
|
+
const LazyAudioViewer = /*#__PURE__*/React.lazy(() => loadAudioViewer().then(mod => ({
|
|
52
|
+
default: mod.AudioViewer
|
|
53
|
+
})));
|
|
54
|
+
function loadDocViewer() {
|
|
55
|
+
return import( /* webpackChunkName: "@atlaskit-internal_docViewer" */'./viewers/doc');
|
|
56
|
+
}
|
|
57
|
+
const LoadableDocViewer = Loadable({
|
|
58
|
+
loader: () => loadDocViewer().then(mod => mod.DocViewer),
|
|
38
59
|
loading: () => /*#__PURE__*/React.createElement(Spinner, null)
|
|
39
60
|
});
|
|
40
|
-
const
|
|
41
|
-
|
|
61
|
+
const LazyDocViewer = /*#__PURE__*/React.lazy(() => loadDocViewer().then(mod => ({
|
|
62
|
+
default: mod.DocViewer
|
|
63
|
+
})));
|
|
64
|
+
function loadCodeViewer() {
|
|
65
|
+
return import( /* webpackChunkName: "@atlaskit-internal_codeViewer" */'./viewers/codeViewer');
|
|
66
|
+
}
|
|
67
|
+
const LoadableCodeViewer = Loadable({
|
|
68
|
+
loader: () => loadCodeViewer().then(mod => mod.CodeViewer),
|
|
42
69
|
loading: () => /*#__PURE__*/React.createElement(Spinner, null)
|
|
43
70
|
});
|
|
44
|
-
const
|
|
71
|
+
const LazyCodeViewer = /*#__PURE__*/React.lazy(() => loadCodeViewer().then(mod => ({
|
|
72
|
+
default: mod.CodeViewer
|
|
73
|
+
})));
|
|
74
|
+
function loadSvgViewer() {
|
|
75
|
+
return import( /* webpackChunkName: "@atlaskit-internal_svgViewer" */'./viewers/svg');
|
|
76
|
+
}
|
|
77
|
+
const LoadableSvgViewer = Loadable({
|
|
45
78
|
loader: () =>
|
|
46
|
-
// @ts-ignore
|
|
79
|
+
// @ts-ignore [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
47
80
|
import( /* webpackChunkName: "@atlaskit-internal_svgViewer" */'./viewers/svg').then(mod => mod.SvgViewer),
|
|
48
81
|
loading: () => /*#__PURE__*/React.createElement(Spinner, null)
|
|
49
82
|
});
|
|
83
|
+
const LazySvgViewer = /*#__PURE__*/React.lazy(() => loadSvgViewer().then(mod => ({
|
|
84
|
+
default: mod.SvgViewer
|
|
85
|
+
})));
|
|
86
|
+
const ViewerSuspense = ({
|
|
87
|
+
children
|
|
88
|
+
}) => /*#__PURE__*/React.createElement(Suspense, {
|
|
89
|
+
fallback: /*#__PURE__*/React.createElement(Spinner, null)
|
|
90
|
+
}, children);
|
|
50
91
|
// Consts
|
|
51
92
|
export const isExternalImageItem = fileItem => fileItem === 'external-image';
|
|
52
93
|
export const isFileStateItem = fileItem => !isExternalImageItem(fileItem);
|
|
@@ -243,13 +284,22 @@ export const ItemViewerBase = ({
|
|
|
243
284
|
if (fileItem.size > MAX_FILE_SIZE_SUPPORTED_BY_CODEVIEWER) {
|
|
244
285
|
return renderError(new MediaViewerError('codeviewer-file-size-exceeds'), fileItem);
|
|
245
286
|
}
|
|
246
|
-
return /*#__PURE__*/React.createElement(
|
|
287
|
+
return fg('platform_media_react19_support') ? /*#__PURE__*/React.createElement(ViewerSuspense, null, /*#__PURE__*/React.createElement(LazyCodeViewer, _extends({
|
|
288
|
+
onSuccess: onSuccess,
|
|
289
|
+
onError: onLoadFail
|
|
290
|
+
}, viewerProps))) : /*#__PURE__*/React.createElement(LoadableCodeViewer, _extends({
|
|
247
291
|
onSuccess: onSuccess,
|
|
248
292
|
onError: onLoadFail
|
|
249
293
|
}, viewerProps));
|
|
250
294
|
}
|
|
251
295
|
if (isFileIdentifier(identifier) && fileItem.mimeType === 'image/svg+xml') {
|
|
252
|
-
return /*#__PURE__*/React.createElement(
|
|
296
|
+
return fg('platform_media_react19_support') ? /*#__PURE__*/React.createElement(ViewerSuspense, null, /*#__PURE__*/React.createElement(LazySvgViewer, {
|
|
297
|
+
identifier: identifier,
|
|
298
|
+
onLoad: onSuccess,
|
|
299
|
+
onError: onLoadFail,
|
|
300
|
+
onClose: onClose,
|
|
301
|
+
traceContext: traceContext
|
|
302
|
+
})) : /*#__PURE__*/React.createElement(LoadableSvgViewer, {
|
|
253
303
|
identifier: identifier,
|
|
254
304
|
onLoad: onSuccess,
|
|
255
305
|
onError: onLoadFail,
|
|
@@ -262,26 +312,42 @@ export const ItemViewerBase = ({
|
|
|
262
312
|
} = fileItem;
|
|
263
313
|
switch (mediaType) {
|
|
264
314
|
case 'image':
|
|
265
|
-
return /*#__PURE__*/React.createElement(
|
|
315
|
+
return fg('platform_media_react19_support') ? /*#__PURE__*/React.createElement(ViewerSuspense, null, /*#__PURE__*/React.createElement(LazyImageViewer, _extends({
|
|
316
|
+
onLoad: onSuccess,
|
|
317
|
+
onError: onLoadFail,
|
|
318
|
+
contextId: contextId
|
|
319
|
+
}, viewerProps))) : /*#__PURE__*/React.createElement(LoadableImageViewer, _extends({
|
|
266
320
|
onLoad: onSuccess,
|
|
267
321
|
onError: onLoadFail,
|
|
268
322
|
contextId: contextId
|
|
269
323
|
}, viewerProps));
|
|
270
324
|
case 'audio':
|
|
271
|
-
return /*#__PURE__*/React.createElement(
|
|
325
|
+
return fg('platform_media_react19_support') ? /*#__PURE__*/React.createElement(ViewerSuspense, null, /*#__PURE__*/React.createElement(LazyAudioViewer, _extends({
|
|
326
|
+
showControls: showControls,
|
|
327
|
+
onCanPlay: onSuccess,
|
|
328
|
+
onError: onLoadFail
|
|
329
|
+
}, viewerProps))) : /*#__PURE__*/React.createElement(LoadableAudioViewer, _extends({
|
|
272
330
|
showControls: showControls,
|
|
273
331
|
onCanPlay: onSuccess,
|
|
274
332
|
onError: onLoadFail
|
|
275
333
|
}, viewerProps));
|
|
276
334
|
case 'video':
|
|
277
|
-
return /*#__PURE__*/React.createElement(
|
|
335
|
+
return fg('platform_media_react19_support') ? /*#__PURE__*/React.createElement(ViewerSuspense, null, /*#__PURE__*/React.createElement(LazyVideoViewer, _extends({
|
|
336
|
+
identifier: identifier,
|
|
337
|
+
showControls: showControls,
|
|
338
|
+
onCanPlay: onSuccess,
|
|
339
|
+
onError: onLoadFail
|
|
340
|
+
}, viewerProps))) : /*#__PURE__*/React.createElement(LoadableVideoViewer, _extends({
|
|
278
341
|
identifier: identifier,
|
|
279
342
|
showControls: showControls,
|
|
280
343
|
onCanPlay: onSuccess,
|
|
281
344
|
onError: onLoadFail
|
|
282
345
|
}, viewerProps));
|
|
283
346
|
case 'doc':
|
|
284
|
-
return /*#__PURE__*/React.createElement(
|
|
347
|
+
return fg('platform_media_react19_support') ? /*#__PURE__*/React.createElement(ViewerSuspense, null, /*#__PURE__*/React.createElement(LazyDocViewer, _extends({
|
|
348
|
+
onSuccess: onSuccess,
|
|
349
|
+
onError: onLoadFail
|
|
350
|
+
}, viewerProps))) : /*#__PURE__*/React.createElement(LoadableDocViewer, _extends({
|
|
285
351
|
onSuccess: onSuccess,
|
|
286
352
|
onError: onLoadFail
|
|
287
353
|
}, viewerProps));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
._11q75a80{background:linear-gradient(180deg,#101214,rgba(14,22,36,0)) no-repeat}
|
|
3
3
|
._151kfhey._151kfhey h1{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
4
4
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
5
|
-
.
|
|
5
|
+
._zulpu2gc{gap:var(--ds-space-100,8px)}._11pt15ty svg{filter:drop-shadow(0 1px 1px rgb(9 30 66/25%)) drop-shadow(0 0 1px rgb(9 30 66/31%))}
|
|
6
6
|
._154i1ejb{top:var(--ds-space-300,24px)}
|
|
7
7
|
._154i1ssb{top:50%}
|
|
8
8
|
._154iidpf{top:0}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
._19bvidpf{padding-left:0}
|
|
16
16
|
._19bvv47k{padding-left:var(--ds-space-250,20px)}
|
|
17
17
|
._19kzstnw >*{position:absolute}
|
|
18
|
-
.
|
|
18
|
+
._19pk1ejb{margin-top:var(--ds-space-300,24px)}
|
|
19
19
|
._1bah1h6o{justify-content:center}
|
|
20
20
|
._1bahusic{justify-content:right}
|
|
21
21
|
._1bsb1ber{width:26pc}
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
._94n5idpf{bottom:0}
|
|
68
68
|
._bfhk1tzm{background-color:#22272b}
|
|
69
69
|
._bfhkr3uz{background-color:#000}
|
|
70
|
-
.
|
|
70
|
+
._bfhkvuon{background-color:var(--ds-surface,#fff)}
|
|
71
|
+
._ca0q1azu{padding-top:var(--ds-space-100,8px) var(--ds-space-300,24px)}
|
|
71
72
|
._ca0q1ejb{padding-top:var(--ds-space-300,24px)}
|
|
72
73
|
._ca0qv47k{padding-top:var(--ds-space-250,20px)}
|
|
73
|
-
._ca0qymxu{padding-top:var(--ds-space-100,10px) var(--ds-space-300,24px)}
|
|
74
74
|
._di7o9txx._di7o9txx button:hover svg{color:#b6c2cf}
|
|
75
75
|
._i0dlf1ug{flex-basis:0%}
|
|
76
76
|
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
@@ -80,10 +80,10 @@
|
|
|
80
80
|
._lcxv1rj4{pointer-events:all}
|
|
81
81
|
._lcxvglyw{pointer-events:none}
|
|
82
82
|
._n3td1ejb{padding-bottom:var(--ds-space-300,24px)}
|
|
83
|
-
.
|
|
83
|
+
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
84
84
|
._n3tdv47k{padding-bottom:var(--ds-space-250,20px)}
|
|
85
85
|
._o5721q9c{white-space:nowrap}
|
|
86
|
-
.
|
|
86
|
+
._otyru2gc{margin-bottom:var(--ds-space-100,8px)}
|
|
87
87
|
._ouxl1klg{background-position:300px 0}
|
|
88
88
|
._ouxlidpf{background-position:0}
|
|
89
89
|
._p12f1osq{max-width:100%}
|
|
@@ -91,8 +91,7 @@
|
|
|
91
91
|
._qvww1osq._qvww1osq h1{max-width:100%}
|
|
92
92
|
._s7n4nkob{vertical-align:middle}
|
|
93
93
|
._syaz1poe{color:#c7d1db}
|
|
94
|
-
.
|
|
95
|
-
._syaz1vvf{color:var(--ds-text,#c7d1db)}
|
|
94
|
+
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
96
95
|
._t9ec1i34{transform:translateY(-50%)}
|
|
97
96
|
._tzy41w01{opacity:.85}
|
|
98
97
|
._u5f31ejb{padding-right:var(--ds-space-300,24px)}
|
|
@@ -112,17 +112,17 @@ export const ZoomWrapper = ({
|
|
|
112
112
|
className,
|
|
113
113
|
children
|
|
114
114
|
}) => /*#__PURE__*/React.createElement("div", {
|
|
115
|
-
className: ax(["_1bsb1osq _kqswstnw _94n5idpf _4t3i1uc6 _1itkdlpg _tzy41w01 _lcxvglyw _vchhusvi _1e0c1txw _4cvresu3
|
|
115
|
+
className: ax(["_1bsb1osq _kqswstnw _94n5idpf _4t3i1uc6 _1itkdlpg _tzy41w01 _lcxvglyw _vchhusvi _1e0c1txw _4cvresu3 _ca0q1azu _n3tdu2gc _u5f31ejb _19bv1ejb", className])
|
|
116
116
|
}, children);
|
|
117
117
|
export const ZoomCenterControls = ({
|
|
118
118
|
children
|
|
119
119
|
}) => /*#__PURE__*/React.createElement("div", {
|
|
120
|
-
className: ax(["
|
|
120
|
+
className: ax(["_zulpu2gc _1bsb1osq _1e0c1txw _1bah1h6o _1vgl1rj4"])
|
|
121
121
|
}, children);
|
|
122
122
|
export const ZoomRightControls = ({
|
|
123
123
|
children
|
|
124
124
|
}) => /*#__PURE__*/React.createElement("div", {
|
|
125
|
-
className: ax(["
|
|
125
|
+
className: ax(["_zulpu2gc _kqswstnw _1xi21ejb _syaz1poe _lcxv1rj4 _1e0c1txw _1bahusic"])
|
|
126
126
|
}, children);
|
|
127
127
|
export const ZoomLevelIndicator = ({
|
|
128
128
|
children
|
|
@@ -134,7 +134,7 @@ export const HDIconGroupWrapper = ({
|
|
|
134
134
|
className,
|
|
135
135
|
children
|
|
136
136
|
}) => /*#__PURE__*/React.createElement("div", {
|
|
137
|
-
className: ax(["
|
|
137
|
+
className: ax(["_zulpu2gc _1e0c1txw _4cvr1h6o _kqswh2mm _1bsb1tcg _19kzstnw", className])
|
|
138
138
|
}, children);
|
|
139
139
|
export const ErrorMessageWrapper = ({
|
|
140
140
|
'data-testid': datatestId,
|
|
@@ -149,7 +149,7 @@ export const ErrorImage = ({
|
|
|
149
149
|
}) => /*#__PURE__*/React.createElement("img", {
|
|
150
150
|
alt: alt,
|
|
151
151
|
src: src,
|
|
152
|
-
className: ax(["
|
|
152
|
+
className: ax(["_otyru2gc _uiztglyw"])
|
|
153
153
|
});
|
|
154
154
|
export const Video = ({
|
|
155
155
|
autoPlay,
|
|
@@ -344,12 +344,12 @@ export const AudioCover = ({
|
|
|
344
344
|
export const DefaultCoverWrapper = ({
|
|
345
345
|
children
|
|
346
346
|
}) => /*#__PURE__*/React.createElement("div", {
|
|
347
|
-
className: ax(["_1bsb1osq _4t3i1osq _1e0c1txw _4cvr1h6o _1bah1h6o
|
|
347
|
+
className: ax(["_1bsb1osq _4t3i1osq _1e0c1txw _4cvr1h6o _1bah1h6o _syazi7uo _umc418ws"])
|
|
348
348
|
}, children);
|
|
349
349
|
export const DownloadButtonWrapper = ({
|
|
350
350
|
children
|
|
351
351
|
}) => /*#__PURE__*/React.createElement("div", {
|
|
352
|
-
className: ax(["
|
|
352
|
+
className: ax(["_19pk1ejb _y3gn1h6o _1sfy1fjg _4pkp1fjg"])
|
|
353
353
|
}, children);
|
|
354
354
|
export const CustomVideoPlayerWrapper = ({
|
|
355
355
|
'data-testid': datatestId,
|
|
@@ -363,7 +363,7 @@ export const SidebarWrapper = ({
|
|
|
363
363
|
children
|
|
364
364
|
}) => /*#__PURE__*/React.createElement("div", {
|
|
365
365
|
"data-testid": datatestId,
|
|
366
|
-
className: ax(["_1reo15vq _18m91wug _154iidpf _1xi2idpf _1bsb1ber _4t3i1kxc
|
|
366
|
+
className: ax(["_1reo15vq _18m91wug _154iidpf _1xi2idpf _1bsb1ber _4t3i1kxc _bfhkvuon _syazi7uo"])
|
|
367
367
|
}, children);
|
|
368
368
|
export const SpinnerWrapper = ({
|
|
369
369
|
children
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
3
|
-
.
|
|
4
|
-
.
|
|
5
|
-
.
|
|
6
|
-
.
|
|
7
|
-
.
|
|
2
|
+
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
3
|
+
._lswu4pcx{fill:var(--ds-icon-success,#6a9a23)}
|
|
4
|
+
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
5
|
+
._30l3i7uo:hover{color:var(--ds-text,#292a2e)}
|
|
6
|
+
._irr31dpa:hover{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}._1di6fcek:active{background-color:var(--ds-background-neutral-subtle-pressed,#0b120e24)}
|
|
7
|
+
._9h8hi7uo:active{color:var(--ds-text,#292a2e)}
|
|
@@ -4,7 +4,6 @@ import "./custom-button-item.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { ButtonItem } from '@atlaskit/side-navigation';
|
|
7
|
-
import { DN500 } from '@atlaskit/theme/colors';
|
|
8
7
|
const itemStyles = null;
|
|
9
8
|
export function CustomButtonItem({
|
|
10
9
|
children,
|
|
@@ -15,6 +14,6 @@ export function CustomButtonItem({
|
|
|
15
14
|
onClick: onClick
|
|
16
15
|
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
|
|
17
16
|
}, rest, {
|
|
18
|
-
className: ax(["
|
|
17
|
+
className: ax(["_bfhksm61 _lswu4pcx _syazi7uo _irr31dpa _30l3i7uo _1di6fcek _9h8hi7uo"])
|
|
19
18
|
}), children);
|
|
20
19
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
._18u0idpf{margin-left:0}
|
|
11
11
|
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
12
12
|
._19bvv47k{padding-left:var(--ds-space-250,20px)}
|
|
13
|
-
.
|
|
13
|
+
._19pkpxbi{margin-top:var(--ds-space-200,1pc)}
|
|
14
14
|
._1bah1h6o{justify-content:center}
|
|
15
15
|
._1bsb13sl{width:85%}
|
|
16
16
|
._1bsb1mjv{width:300px}
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
._1o9zkb7n{flex-shrink:1}
|
|
25
25
|
._1reo15vq{overflow-x:hidden}
|
|
26
26
|
._1xi2idpf{right:0}
|
|
27
|
-
._2hwx1yov{margin-right:var(--ds-space-100,10px)}
|
|
28
27
|
._2hwxidpf{margin-right:0}
|
|
28
|
+
._2hwxu2gc{margin-right:var(--ds-space-100,8px)}
|
|
29
29
|
._4cvr1h6o{align-items:center}
|
|
30
30
|
._4t3i1osq{height:100%}
|
|
31
31
|
._4t3iyh40{height:2px}
|
|
@@ -34,20 +34,20 @@
|
|
|
34
34
|
._80omtlke{cursor:pointer}
|
|
35
35
|
._94n5idpf{bottom:0}
|
|
36
36
|
._bfhk1j28{background-color:transparent}
|
|
37
|
-
.
|
|
38
|
-
.
|
|
37
|
+
._bfhk1l7x{background-color:var(--ds-border,#0b120e24)}
|
|
38
|
+
._bfhkvuon{background-color:var(--ds-surface,#fff)}
|
|
39
39
|
._ca0qqslr{padding-top:22px}
|
|
40
40
|
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
41
41
|
._i0dl1wug{flex-basis:auto}
|
|
42
42
|
._j7hq1kq8{animation-name:k10ssv7b}
|
|
43
43
|
._kqswstnw{position:absolute}
|
|
44
|
+
._n3td12x7{padding-bottom:var(--ds-space-075,6px)}
|
|
44
45
|
._n3td14y2{padding-bottom:5px}
|
|
45
|
-
._n3td1vik{padding-bottom:var(--ds-space-075,5px)}
|
|
46
46
|
._n3tdv47k{padding-bottom:var(--ds-space-250,20px)}
|
|
47
47
|
._o5721q9c{white-space:nowrap}
|
|
48
|
-
.
|
|
49
|
-
.
|
|
50
|
-
.
|
|
48
|
+
._otyrpxbi{margin-bottom:var(--ds-space-200,1pc)}
|
|
49
|
+
._syaz1q3r{color:var(--ds-icon,#292a2e)}
|
|
50
|
+
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
51
51
|
._t9ecz6y5{transform:translateY(-100%)}
|
|
52
52
|
._tzy4idpf{opacity:0}
|
|
53
53
|
._u5f31v6z{padding-right:7px}
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
._vchhusvi{box-sizing:border-box}
|
|
56
56
|
._vwz41xde{line-height:1.14286}
|
|
57
57
|
._d0altlke:hover{cursor:pointer}
|
|
58
|
-
.
|
|
59
|
-
.
|
|
58
|
+
._irr31dpa:hover{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
|
|
59
|
+
._1di6fcek:active{background-color:var(--ds-background-neutral-subtle-pressed,#0b120e24)}
|
|
60
60
|
._1qamtlke:active{cursor:pointer}
|
|
61
61
|
@keyframes k10ssv7b{0%{opacity:0;transform:translateY(-100%)}to{transform:translateY(0);opacity:1}}
|
|
@@ -5,7 +5,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { forwardRef } from 'react';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
|
|
8
|
-
import { DN500 } from '@atlaskit/theme/colors';
|
|
9
8
|
export const ARCHIVE_SIDE_BAR_WIDTH = 300;
|
|
10
9
|
const archiveItemViewerWrapperStyles = null;
|
|
11
10
|
const archiveSideBarStyles = null;
|
|
@@ -35,7 +34,7 @@ export const ArchiveSideBar = /*#__PURE__*/forwardRef(({
|
|
|
35
34
|
}, ref) => {
|
|
36
35
|
return /*#__PURE__*/React.createElement("div", {
|
|
37
36
|
ref: ref,
|
|
38
|
-
className: ax(["_ca0qqslr _u5f3v47k _19bvv47k _n3tdv47k
|
|
37
|
+
className: ax(["_ca0qqslr _u5f3v47k _19bvv47k _n3tdv47k _bfhkvuon _kqswstnw _1ltvidpf _154iidpf _1bsb1mjv _94n5idpf _vchhusvi _18m915zi"])
|
|
39
38
|
}, children);
|
|
40
39
|
});
|
|
41
40
|
export const ArchiveSidebarFolderWrapper = ({
|
|
@@ -53,7 +52,7 @@ export const ArchiveDownloadButtonWrapper = ({
|
|
|
53
52
|
return /*#__PURE__*/React.createElement("div", {
|
|
54
53
|
onClick: onClick,
|
|
55
54
|
"data-testid": "media-archiveDownloadButton",
|
|
56
|
-
className: ax(["_19itglyw _2rkofajl _ca0qu2gc _u5f31v6z _n3td14y2 _19bvu2gc _bfhk1j28
|
|
55
|
+
className: ax(["_19itglyw _2rkofajl _ca0qu2gc _u5f31v6z _n3td14y2 _19bvu2gc _bfhk1j28 _syaz1q3r _d0altlke _irr31dpa _1qamtlke _1di6fcek"])
|
|
57
56
|
}, children);
|
|
58
57
|
};
|
|
59
58
|
export const DisabledArchiveDownloadButtonWrapper = ({
|
|
@@ -61,7 +60,7 @@ export const DisabledArchiveDownloadButtonWrapper = ({
|
|
|
61
60
|
}) => {
|
|
62
61
|
return /*#__PURE__*/React.createElement("div", {
|
|
63
62
|
"data-testid": "media-disabledArchiveDownloadButton",
|
|
64
|
-
className: ax(["_19itglyw _2rkofajl _ca0qu2gc _u5f31v6z _n3td14y2 _19bvu2gc _bfhk1j28
|
|
63
|
+
className: ax(["_19itglyw _2rkofajl _ca0qu2gc _u5f31v6z _n3td14y2 _19bvu2gc _bfhk1j28 _syaz1q3r _80om13gf"])
|
|
65
64
|
}, children);
|
|
66
65
|
};
|
|
67
66
|
export const SidebarItemWrapper = ({
|
|
@@ -77,7 +76,7 @@ export const ArchiveSidebarFileEntryWrapper = ({
|
|
|
77
76
|
}) => {
|
|
78
77
|
return /*#__PURE__*/React.createElement("div", {
|
|
79
78
|
key: index,
|
|
80
|
-
className: ax(["_v564rca0
|
|
79
|
+
className: ax(["_v564rca0 _n3td12x7 _1e0c1txw _4cvr1h6o _80omtlke"])
|
|
81
80
|
}, children);
|
|
82
81
|
};
|
|
83
82
|
export const ArchiveLayout = ({
|
|
@@ -97,7 +96,7 @@ export const ArchiveViewerWrapper = ({
|
|
|
97
96
|
};
|
|
98
97
|
export const Separator = () => {
|
|
99
98
|
return /*#__PURE__*/React.createElement("div", {
|
|
100
|
-
className: ax(["_2rko1rr0 _4t3iyh40
|
|
99
|
+
className: ax(["_2rko1rr0 _4t3iyh40 _19pkpxbi _2hwxidpf _otyrpxbi _18u0idpf _bfhk1l7x _1o9zidpf"])
|
|
101
100
|
});
|
|
102
101
|
};
|
|
103
102
|
export const SidebarHeaderWrapper = ({
|
|
@@ -111,13 +110,13 @@ export const SidebarHeaderIcon = ({
|
|
|
111
110
|
children
|
|
112
111
|
}) => {
|
|
113
112
|
return /*#__PURE__*/React.createElement("div", {
|
|
114
|
-
className: ax(["_1e0c1txw _4cvr1h6o
|
|
113
|
+
className: ax(["_1e0c1txw _4cvr1h6o _2hwxu2gc _1o9zidpf"])
|
|
115
114
|
}, children);
|
|
116
115
|
};
|
|
117
116
|
export const SidebarHeaderEntry = ({
|
|
118
117
|
children
|
|
119
118
|
}) => {
|
|
120
119
|
return /*#__PURE__*/React.createElement("div", {
|
|
121
|
-
className: ax(["_16jlkb7n _1o9zkb7n _i0dl1wug _1reo15vq _18m915vq _1bto1l2s _o5721q9c _vwz41xde
|
|
120
|
+
className: ax(["_16jlkb7n _1o9zkb7n _i0dl1wug _1reo15vq _18m915vq _1bto1l2s _o5721q9c _vwz41xde _syazi7uo"])
|
|
122
121
|
}, children);
|
|
123
122
|
};
|
|
@@ -35,7 +35,7 @@ export const CodeRendererAdvanced = props => {
|
|
|
35
35
|
});
|
|
36
36
|
return /*#__PURE__*/React.createElement("div", {
|
|
37
37
|
"data-testid": props.testId,
|
|
38
|
-
className: ax(["_1reo1wug _18m91wug _kqswstnw _1ltvidpf _154iidpf _1xi2idpf _94n5idpf
|
|
38
|
+
className: ax(["_1reo1wug _18m91wug _kqswstnw _1ltvidpf _154iidpf _1xi2idpf _94n5idpf _bfhkvuon"])
|
|
39
39
|
}, /*#__PURE__*/React.createElement("div", {
|
|
40
40
|
className: ax(["_4t3i8ved _bfhk1nox"])
|
|
41
41
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._154iidpf{top:0}
|
|
3
3
|
._18m91wug{overflow-y:auto}
|
|
4
4
|
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
._1xi2idpf{right:0}
|
|
9
9
|
._4t3i8ved{height:75px}
|
|
10
10
|
._94n5idpf{bottom:0}
|
|
11
|
-
._bfhk15j7{background-color:var(--ds-surface,#f4f5f7)}
|
|
12
11
|
._bfhk1nox{background-color:#1d2125}
|
|
12
|
+
._bfhkvuon{background-color:var(--ds-surface,#fff)}
|
|
13
13
|
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
14
14
|
._kqswstnw{position:absolute}
|
|
15
15
|
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
@@ -30,7 +30,7 @@ export const CodeViewWrapper = /*#__PURE__*/forwardRef(({
|
|
|
30
30
|
return /*#__PURE__*/React.createElement("div", {
|
|
31
31
|
"data-testid": testId,
|
|
32
32
|
ref: ref,
|
|
33
|
-
className: ax(["_1reo1wug _18m91wug _kqswstnw _1ltvidpf _154iidpf _1xi2idpf _94n5idpf
|
|
33
|
+
className: ax(["_1reo1wug _18m91wug _kqswstnw _1ltvidpf _154iidpf _1xi2idpf _94n5idpf _bfhkvuon"])
|
|
34
34
|
}, children);
|
|
35
35
|
});
|
|
36
36
|
export const CodeViewerHeaderBar = () => {
|
|
@@ -85,7 +85,7 @@ export class CodeViewRenderer extends Component {
|
|
|
85
85
|
const fileSize = new Blob([src]).size;
|
|
86
86
|
const codeViewer = lineCount(src) > MAX_FORMATTED_LINES || fileSize > MAX_FILE_SIZE_USE_CODE_VIEWER ? /*#__PURE__*/React.createElement("code", {
|
|
87
87
|
"data-testid": "code-block",
|
|
88
|
-
className: ax(["
|
|
88
|
+
className: ax(["_11c8wadc _1e0c1txw _1reo1wug _o572qvpr _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc"])
|
|
89
89
|
}, src) : /*#__PURE__*/React.createElement(CodeBlock, {
|
|
90
90
|
language: language,
|
|
91
91
|
text: src,
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
// AFP-2532 TODO: Fix automatic suppressions below
|
|
4
|
-
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
5
|
-
import { colors } from '@atlaskit/theme';
|
|
6
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
4
|
export const codeViewWrapperStyles = css({
|
|
8
5
|
position: 'absolute',
|
|
@@ -11,7 +8,7 @@ export const codeViewWrapperStyles = css({
|
|
|
11
8
|
right: 0,
|
|
12
9
|
bottom: 0,
|
|
13
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
14
|
-
backgroundColor:
|
|
11
|
+
backgroundColor: "var(--ds-surface, #FFFFFF)",
|
|
15
12
|
overflow: 'auto'
|
|
16
13
|
});
|
|
17
14
|
|
|
@@ -27,6 +24,6 @@ export const codeViewerHTMLStyles = css({
|
|
|
27
24
|
display: 'flex',
|
|
28
25
|
overflowX: 'auto',
|
|
29
26
|
whiteSpace: 'pre',
|
|
30
|
-
font: "var(--ds-font-body-
|
|
27
|
+
font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
31
28
|
padding: "var(--ds-space-100, 8px)"
|
|
32
29
|
});
|