@atlaskit/smart-card 34.2.1 → 34.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/cjs/common/ui/icons/angle-brackets-icon.js +22 -0
- package/dist/cjs/common/ui/icons/audio-icon.js +22 -0
- package/dist/cjs/common/ui/icons/chart-bar-icon.js +22 -0
- package/dist/cjs/common/ui/icons/file-icon.js +22 -0
- package/dist/cjs/common/ui/icons/folder-icon.js +22 -0
- package/dist/cjs/common/ui/icons/image-icon.js +22 -0
- package/dist/cjs/common/ui/icons/list-bullet-icon.js +22 -0
- package/dist/cjs/common/ui/icons/page-icon.js +23 -0
- package/dist/cjs/common/ui/icons/video-icon.js +22 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/index.js +258 -2
- package/dist/cjs/view/FlexibleCard/components/actions/action/index.js +8 -13
- package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/index.js +5 -8
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.compiled.css +34 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +33 -18
- package/dist/cjs/view/FlexibleCard/components/blocks/block/indexOld.js +56 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/index.js +12 -8
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/indexOld.js +37 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.compiled.css +15 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +18 -52
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.js +104 -0
- package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +4 -9
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/common/ui/icons/angle-brackets-icon.js +15 -0
- package/dist/es2019/common/ui/icons/audio-icon.js +15 -0
- package/dist/es2019/common/ui/icons/chart-bar-icon.js +15 -0
- package/dist/es2019/common/ui/icons/file-icon.js +15 -0
- package/dist/es2019/common/ui/icons/folder-icon.js +15 -0
- package/dist/es2019/common/ui/icons/image-icon.js +15 -0
- package/dist/es2019/common/ui/icons/list-bullet-icon.js +15 -0
- package/dist/es2019/common/ui/icons/page-icon.js +16 -0
- package/dist/es2019/common/ui/icons/video-icon.js +15 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/index.js +56 -2
- package/dist/es2019/view/FlexibleCard/components/actions/action/index.js +1 -3
- package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/index.js +1 -4
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.compiled.css +34 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +32 -35
- package/dist/es2019/view/FlexibleCard/components/blocks/block/indexOld.js +62 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/index.js +12 -8
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/indexOld.js +28 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.compiled.css +15 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +14 -62
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.js +106 -0
- package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +1 -3
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/common/ui/icons/angle-brackets-icon.js +15 -0
- package/dist/esm/common/ui/icons/audio-icon.js +15 -0
- package/dist/esm/common/ui/icons/chart-bar-icon.js +15 -0
- package/dist/esm/common/ui/icons/file-icon.js +15 -0
- package/dist/esm/common/ui/icons/folder-icon.js +15 -0
- package/dist/esm/common/ui/icons/image-icon.js +15 -0
- package/dist/esm/common/ui/icons/list-bullet-icon.js +15 -0
- package/dist/esm/common/ui/icons/page-icon.js +16 -0
- package/dist/esm/common/ui/icons/video-icon.js +15 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/index.js +158 -2
- package/dist/esm/view/FlexibleCard/components/actions/action/index.js +1 -3
- package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/index.js +1 -4
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.compiled.css +34 -0
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +31 -20
- package/dist/esm/view/FlexibleCard/components/blocks/block/indexOld.js +50 -0
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/index.js +12 -8
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/indexOld.js +30 -0
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.compiled.css +15 -0
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +15 -53
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.js +98 -0
- package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +1 -3
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/common/ui/icons/angle-brackets-icon.d.ts +7 -0
- package/dist/types/common/ui/icons/audio-icon.d.ts +7 -0
- package/dist/types/common/ui/icons/chart-bar-icon.d.ts +7 -0
- package/dist/types/common/ui/icons/file-icon.d.ts +7 -0
- package/dist/types/common/ui/icons/folder-icon.d.ts +7 -0
- package/dist/types/common/ui/icons/image-icon.d.ts +7 -0
- package/dist/types/common/ui/icons/list-bullet-icon.d.ts +7 -0
- package/dist/types/common/ui/icons/page-icon.d.ts +7 -0
- package/dist/types/common/ui/icons/video-icon.d.ts +7 -0
- package/dist/types/view/FlexibleCard/components/blocks/block/index.d.ts +3 -10
- package/dist/types/view/FlexibleCard/components/blocks/block/indexOld.d.ts +11 -0
- package/dist/types/view/FlexibleCard/components/blocks/preview-block/index.d.ts +3 -13
- package/dist/types/view/FlexibleCard/components/blocks/preview-block/indexOld.d.ts +14 -0
- package/dist/types/view/FlexibleCard/components/blocks/preview-block/resolved/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.d.ts +10 -0
- package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +1 -0
- package/dist/types-ts4.5/common/ui/icons/angle-brackets-icon.d.ts +7 -0
- package/dist/types-ts4.5/common/ui/icons/audio-icon.d.ts +7 -0
- package/dist/types-ts4.5/common/ui/icons/chart-bar-icon.d.ts +7 -0
- package/dist/types-ts4.5/common/ui/icons/file-icon.d.ts +7 -0
- package/dist/types-ts4.5/common/ui/icons/folder-icon.d.ts +7 -0
- package/dist/types-ts4.5/common/ui/icons/image-icon.d.ts +7 -0
- package/dist/types-ts4.5/common/ui/icons/list-bullet-icon.d.ts +7 -0
- package/dist/types-ts4.5/common/ui/icons/page-icon.d.ts +7 -0
- package/dist/types-ts4.5/common/ui/icons/video-icon.d.ts +7 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/block/index.d.ts +3 -10
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/block/indexOld.d.ts +11 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/index.d.ts +3 -13
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/indexOld.d.ts +14 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/resolved/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.d.ts +10 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +1 -0
- package/package.json +8 -3
|
@@ -1,18 +1,11 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* @jsx jsx
|
|
10
|
-
*/
|
|
11
|
-
import { useCallback, useEffect, useState } from 'react';
|
|
12
|
-
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
-
import { css, jsx } from '@emotion/react';
|
|
15
|
-
import { MediaPlacement } from '../../../../../../constants';
|
|
4
|
+
var _excluded = ["ignoreContainerPadding", "onError", "className", "placement", "testId", "overrideUrl"];
|
|
5
|
+
import "./index.compiled.css";
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
import { useCallback } from 'react';
|
|
16
9
|
import { Preview } from '../../../elements';
|
|
17
10
|
import Block from '../../block';
|
|
18
11
|
/**
|
|
@@ -30,26 +23,10 @@ import Block from '../../block';
|
|
|
30
23
|
* @param placement
|
|
31
24
|
* @param ignoreContainerPadding
|
|
32
25
|
*/
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\tposition: absolute;\n\t\t\ttop: ", ";\n\t\t\tbottom: ", ";\n\t\t\twidth: calc(var(--preview-block-width) - ", ");\n\n\t\t\t", "\n\t\t\t", "\n\n [data-smart-element-media='image'] {\n\t\t\t\taspect-ratio: unset;\n\t\t\t\tpadding-top: unset;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tobject-fit: cover;\n\t\t\t}\n\t\t"])), containerPadding, containerPadding, containerPadding, placement === MediaPlacement.Left ? "left: ".concat(containerPadding, ";") : '', placement === MediaPlacement.Right ? "right: ".concat(containerPadding, ";") : '');
|
|
38
|
-
}
|
|
39
|
-
if (ignoreContainerPadding) {
|
|
40
|
-
return css({
|
|
41
|
-
marginLeft: 'calc(var(--container-gap-left) * -1)',
|
|
42
|
-
marginRight: 'calc(var(--container-gap-right) * -1)',
|
|
43
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
44
|
-
'&:first-of-type': {
|
|
45
|
-
marginTop: 'calc(var(--container-padding) * -1)'
|
|
46
|
-
},
|
|
47
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
48
|
-
'&:last-of-type': {
|
|
49
|
-
marginBottom: 'calc(var(--container-padding) * -1)'
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
}
|
|
26
|
+
var previewBlockStyles = {
|
|
27
|
+
left: "_kqswstnw _154iidpf _94n5idpf _1bsb795p _1ltvidpf _1t26n7od _ze72n7od _10aa1osq _rjuj1osq _mr051dfr",
|
|
28
|
+
right: "_kqswstnw _154iidpf _94n5idpf _1bsb795p _1xi2idpf _1t26n7od _ze72n7od _10aa1osq _rjuj1osq _mr051dfr",
|
|
29
|
+
ignoreContainerPadding: "_18u01ivi _2hwxc10g _e0oi1ya9 _dmhj1ya9"
|
|
53
30
|
};
|
|
54
31
|
|
|
55
32
|
/**
|
|
@@ -62,36 +39,21 @@ var PreviewBlockResolvedView = function PreviewBlockResolvedView(_ref) {
|
|
|
62
39
|
var _ref$ignoreContainerP = _ref.ignoreContainerPadding,
|
|
63
40
|
ignoreContainerPadding = _ref$ignoreContainerP === void 0 ? false : _ref$ignoreContainerP,
|
|
64
41
|
onError = _ref.onError,
|
|
65
|
-
|
|
42
|
+
className = _ref.className,
|
|
66
43
|
placement = _ref.placement,
|
|
67
44
|
testId = _ref.testId,
|
|
68
45
|
overrideUrl = _ref.overrideUrl,
|
|
69
46
|
blockProps = _objectWithoutProperties(_ref, _excluded);
|
|
70
|
-
var _useState = useState(overrideCss),
|
|
71
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
72
|
-
styles = _useState2[0],
|
|
73
|
-
setStyles = _useState2[1];
|
|
74
|
-
var updateStyles = useCallback(function () {
|
|
75
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
76
|
-
setStyles(css(getPreviewBlockStyles(placement, ignoreContainerPadding), overrideCss));
|
|
77
|
-
}, [ignoreContainerPadding, overrideCss, placement]);
|
|
78
|
-
useEffect(function () {
|
|
79
|
-
updateStyles();
|
|
80
|
-
}, [ignoreContainerPadding, overrideCss, placement, updateStyles]);
|
|
81
|
-
var handleOnLoad = useCallback(function () {
|
|
82
|
-
updateStyles();
|
|
83
|
-
}, [updateStyles]);
|
|
84
47
|
var handleOnError = useCallback(function () {
|
|
85
48
|
if (onError) {
|
|
86
49
|
onError();
|
|
87
50
|
}
|
|
88
51
|
}, [onError]);
|
|
89
|
-
return
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}),
|
|
52
|
+
return /*#__PURE__*/React.createElement(Block, _extends({}, blockProps, {
|
|
53
|
+
testId: "".concat(testId, "-resolved-view"),
|
|
54
|
+
className: ax([placement && previewBlockStyles[placement], !placement && ignoreContainerPadding && previewBlockStyles.ignoreContainerPadding])
|
|
55
|
+
}), /*#__PURE__*/React.createElement(Preview, {
|
|
93
56
|
onError: handleOnError,
|
|
94
|
-
onLoad: handleOnLoad,
|
|
95
57
|
overrideUrl: overrideUrl
|
|
96
58
|
}));
|
|
97
59
|
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
5
|
+
var _excluded = ["ignoreContainerPadding", "onError", "overrideCss", "placement", "testId", "overrideUrl"];
|
|
6
|
+
var _templateObject;
|
|
7
|
+
/**
|
|
8
|
+
* @jsxRuntime classic
|
|
9
|
+
* @jsx jsx
|
|
10
|
+
*/
|
|
11
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
12
|
+
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
+
import { css, jsx } from '@emotion/react';
|
|
15
|
+
import { MediaPlacement } from '../../../../../../constants';
|
|
16
|
+
import { Preview } from '../../../elements';
|
|
17
|
+
import Block from '../../block';
|
|
18
|
+
/**
|
|
19
|
+
* Due to its placement on the left/right and ignoreContainerPadding prop
|
|
20
|
+
* rely on its parent container styling, css variables are declared in
|
|
21
|
+
* <Container /> to preset the base values for the preview block styling.
|
|
22
|
+
*
|
|
23
|
+
* `--container-padding` is the padding of the Container. This value is based
|
|
24
|
+
* on size and hidePadding.
|
|
25
|
+
* `--container-gap-left` and `--container-gap-right` are the gap or padding of
|
|
26
|
+
* the Container depending on whether the container has other preview blocks
|
|
27
|
+
* with left/right positioning.
|
|
28
|
+
* `--preview-block-width` is the size of the preview image in relation to
|
|
29
|
+
* the Container width when the placement is left/right.
|
|
30
|
+
* @param placement
|
|
31
|
+
* @param ignoreContainerPadding
|
|
32
|
+
*/
|
|
33
|
+
var getPreviewBlockStyles = function getPreviewBlockStyles(placement, ignoreContainerPadding) {
|
|
34
|
+
if (placement === MediaPlacement.Left || placement === MediaPlacement.Right) {
|
|
35
|
+
var containerPadding = ignoreContainerPadding ? '0rem' : 'var(--container-padding)';
|
|
36
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
37
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\tposition: absolute;\n\t\t\ttop: ", ";\n\t\t\tbottom: ", ";\n\t\t\twidth: calc(var(--preview-block-width) - ", ");\n\n\t\t\t", "\n\t\t\t", "\n\n [data-smart-element-media='image'] {\n\t\t\t\taspect-ratio: unset;\n\t\t\t\tpadding-top: unset;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tobject-fit: cover;\n\t\t\t}\n\t\t"])), containerPadding, containerPadding, containerPadding, placement === MediaPlacement.Left ? "left: ".concat(containerPadding, ";") : '', placement === MediaPlacement.Right ? "right: ".concat(containerPadding, ";") : '');
|
|
38
|
+
}
|
|
39
|
+
if (ignoreContainerPadding) {
|
|
40
|
+
return css({
|
|
41
|
+
marginLeft: 'calc(var(--container-gap-left) * -1)',
|
|
42
|
+
marginRight: 'calc(var(--container-gap-right) * -1)',
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
44
|
+
'&:first-of-type': {
|
|
45
|
+
marginTop: 'calc(var(--container-padding) * -1)'
|
|
46
|
+
},
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
48
|
+
'&:last-of-type': {
|
|
49
|
+
marginBottom: 'calc(var(--container-padding) * -1)'
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Represents a resolved PreviewBlock, which typically contains media or other large format content.
|
|
57
|
+
* @public
|
|
58
|
+
* @param {PreviewBlock} PreviewBlock
|
|
59
|
+
* @see Block
|
|
60
|
+
*/
|
|
61
|
+
var PreviewBlockResolvedView = function PreviewBlockResolvedView(_ref) {
|
|
62
|
+
var _ref$ignoreContainerP = _ref.ignoreContainerPadding,
|
|
63
|
+
ignoreContainerPadding = _ref$ignoreContainerP === void 0 ? false : _ref$ignoreContainerP,
|
|
64
|
+
onError = _ref.onError,
|
|
65
|
+
overrideCss = _ref.overrideCss,
|
|
66
|
+
placement = _ref.placement,
|
|
67
|
+
testId = _ref.testId,
|
|
68
|
+
overrideUrl = _ref.overrideUrl,
|
|
69
|
+
blockProps = _objectWithoutProperties(_ref, _excluded);
|
|
70
|
+
var _useState = useState(overrideCss),
|
|
71
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
72
|
+
styles = _useState2[0],
|
|
73
|
+
setStyles = _useState2[1];
|
|
74
|
+
var updateStyles = useCallback(function () {
|
|
75
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
76
|
+
setStyles(css(getPreviewBlockStyles(placement, ignoreContainerPadding), overrideCss));
|
|
77
|
+
}, [ignoreContainerPadding, overrideCss, placement]);
|
|
78
|
+
useEffect(function () {
|
|
79
|
+
updateStyles();
|
|
80
|
+
}, [ignoreContainerPadding, overrideCss, placement, updateStyles]);
|
|
81
|
+
var handleOnLoad = useCallback(function () {
|
|
82
|
+
updateStyles();
|
|
83
|
+
}, [updateStyles]);
|
|
84
|
+
var handleOnError = useCallback(function () {
|
|
85
|
+
if (onError) {
|
|
86
|
+
onError();
|
|
87
|
+
}
|
|
88
|
+
}, [onError]);
|
|
89
|
+
return jsx(Block, _extends({}, blockProps, {
|
|
90
|
+
overrideCss: styles,
|
|
91
|
+
testId: "".concat(testId, "-resolved-view")
|
|
92
|
+
}), jsx(Preview, {
|
|
93
|
+
onError: handleOnError,
|
|
94
|
+
onLoad: handleOnLoad,
|
|
95
|
+
overrideUrl: overrideUrl
|
|
96
|
+
}));
|
|
97
|
+
};
|
|
98
|
+
export default PreviewBlockResolvedView;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
1
|
+
import React from 'react';
|
|
4
2
|
import ImageLoader from 'react-render-image';
|
|
5
3
|
import LoadingSkeleton from '../loading-skeleton';
|
|
6
4
|
var ImageIcon = function ImageIcon(_ref) {
|
|
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
13
13
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
14
14
|
var PACKAGE_DATA = {
|
|
15
15
|
packageName: "@atlaskit/smart-card",
|
|
16
|
-
packageVersion: "34.
|
|
16
|
+
packageVersion: "34.3.0",
|
|
17
17
|
componentName: 'linkUrl'
|
|
18
18
|
};
|
|
19
19
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import AngleBracketsIcon from '@atlaskit/icon/core/angle-brackets';
|
|
3
|
+
declare const AngleBracketsIconWithColor: {
|
|
4
|
+
(props: ComponentPropsWithoutRef<typeof AngleBracketsIcon>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default AngleBracketsIconWithColor;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import AudioIcon from '@atlaskit/icon/core/audio';
|
|
3
|
+
declare const AudioIconWithColor: {
|
|
4
|
+
(props: ComponentPropsWithoutRef<typeof AudioIcon>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default AudioIconWithColor;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import ChartBarIcon from '@atlaskit/icon/core/chart-bar';
|
|
3
|
+
declare const ChartBarIconWithColor: {
|
|
4
|
+
(props: ComponentPropsWithoutRef<typeof ChartBarIcon>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default ChartBarIconWithColor;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import FileIcon from '@atlaskit/icon/core/file';
|
|
3
|
+
declare const FileIconWithColor: {
|
|
4
|
+
(props: ComponentPropsWithoutRef<typeof FileIcon>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default FileIconWithColor;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import FolderClosedIcon from '@atlaskit/icon/core/folder-closed';
|
|
3
|
+
declare const FolderClosedIconWithColor: {
|
|
4
|
+
(props: ComponentPropsWithoutRef<typeof FolderClosedIcon>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default FolderClosedIconWithColor;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import ImageIcon from '@atlaskit/icon/core/image';
|
|
3
|
+
declare const ImageIconWithColor: {
|
|
4
|
+
(props: ComponentPropsWithoutRef<typeof ImageIcon>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default ImageIconWithColor;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import ListBulletedIcon from '@atlaskit/icon/core/list-bulleted';
|
|
3
|
+
declare const ListBulletedIconWithColor: {
|
|
4
|
+
(props: ComponentPropsWithoutRef<typeof ListBulletedIcon>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default ListBulletedIconWithColor;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import PageIcon from '@atlaskit/icon/core/page';
|
|
3
|
+
declare const PageIconWithColor: {
|
|
4
|
+
(props: ComponentPropsWithoutRef<typeof PageIcon>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default PageIconWithColor;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import VideoIcon from '@atlaskit/icon/core/video';
|
|
3
|
+
declare const VideoIconWithColor: {
|
|
4
|
+
(props: ComponentPropsWithoutRef<typeof VideoIcon>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default VideoIconWithColor;
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { type BlockProps } from '../types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* in a row. All elements and actions should be contained within a Block.
|
|
6
|
-
* @internal
|
|
7
|
-
* @param {ActionGroupProps} ActionGroupProps
|
|
8
|
-
* @see Action
|
|
9
|
-
*/
|
|
10
|
-
declare const Block: ({ children, direction, size, testId, overrideCss, blockRef, onRender, onTransitionEnd, }: BlockProps) => jsx.JSX.Element;
|
|
11
|
-
export default Block;
|
|
3
|
+
declare const Exported: (props: BlockProps) => JSX.Element;
|
|
4
|
+
export default Exported;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
|
+
import { type BlockProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* A block represents a collection of elements and actions that are arranged
|
|
5
|
+
* in a row. All elements and actions should be contained within a Block.
|
|
6
|
+
* @internal
|
|
7
|
+
* @param {ActionGroupProps} ActionGroupProps
|
|
8
|
+
* @see Action
|
|
9
|
+
*/
|
|
10
|
+
declare const Block: ({ children, direction, size, testId, overrideCss, blockRef, onRender, onTransitionEnd, }: BlockProps) => jsx.JSX.Element;
|
|
11
|
+
export default Block;
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
/// <reference types="react" />
|
|
6
2
|
import { type PreviewBlockProps } from './types';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* @public
|
|
10
|
-
* @param {PreviewBlockProps} PreviewBlock
|
|
11
|
-
* @see Block
|
|
12
|
-
*/
|
|
13
|
-
declare const PreviewBlock: ({ status, testId, overrideUrl, ...blockProps }: PreviewBlockProps) => jsx.JSX.Element;
|
|
14
|
-
export default PreviewBlock;
|
|
3
|
+
declare const Exported: (props: PreviewBlockProps) => JSX.Element;
|
|
4
|
+
export default Exported;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
|
+
import { type PreviewBlockProps } from './types';
|
|
7
|
+
/**
|
|
8
|
+
* Represents a PreviewBlock, which typically contains media or other large format content.
|
|
9
|
+
* @public
|
|
10
|
+
* @param {PreviewBlockProps} PreviewBlock
|
|
11
|
+
* @see Block
|
|
12
|
+
*/
|
|
13
|
+
declare const PreviewBlock: ({ status, testId, overrideUrl, ...blockProps }: PreviewBlockProps) => jsx.JSX.Element;
|
|
14
|
+
export default PreviewBlock;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { type PreviewBlockProps } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Represents a resolved PreviewBlock, which typically contains media or other large format content.
|
|
@@ -6,5 +6,5 @@ import { type PreviewBlockProps } from '../types';
|
|
|
6
6
|
* @param {PreviewBlock} PreviewBlock
|
|
7
7
|
* @see Block
|
|
8
8
|
*/
|
|
9
|
-
declare const PreviewBlockResolvedView: ({ ignoreContainerPadding, onError,
|
|
9
|
+
declare const PreviewBlockResolvedView: ({ ignoreContainerPadding, onError, className, placement, testId, overrideUrl, ...blockProps }: PreviewBlockProps) => JSX.Element;
|
|
10
10
|
export default PreviewBlockResolvedView;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
|
+
import { type PreviewBlockProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a resolved PreviewBlock, which typically contains media or other large format content.
|
|
5
|
+
* @public
|
|
6
|
+
* @param {PreviewBlock} PreviewBlock
|
|
7
|
+
* @see Block
|
|
8
|
+
*/
|
|
9
|
+
declare const PreviewBlockResolvedView: ({ ignoreContainerPadding, onError, overrideCss, placement, testId, overrideUrl, ...blockProps }: PreviewBlockProps) => jsx.JSX.Element;
|
|
10
|
+
export default PreviewBlockResolvedView;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import AngleBracketsIcon from '@atlaskit/icon/core/angle-brackets';
|
|
3
|
+
declare const AngleBracketsIconWithColor: {
|
|
4
|
+
(props: ComponentPropsWithoutRef<typeof AngleBracketsIcon>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default AngleBracketsIconWithColor;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import AudioIcon from '@atlaskit/icon/core/audio';
|
|
3
|
+
declare const AudioIconWithColor: {
|
|
4
|
+
(props: ComponentPropsWithoutRef<typeof AudioIcon>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default AudioIconWithColor;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import ChartBarIcon from '@atlaskit/icon/core/chart-bar';
|
|
3
|
+
declare const ChartBarIconWithColor: {
|
|
4
|
+
(props: ComponentPropsWithoutRef<typeof ChartBarIcon>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default ChartBarIconWithColor;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import FileIcon from '@atlaskit/icon/core/file';
|
|
3
|
+
declare const FileIconWithColor: {
|
|
4
|
+
(props: ComponentPropsWithoutRef<typeof FileIcon>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default FileIconWithColor;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import FolderClosedIcon from '@atlaskit/icon/core/folder-closed';
|
|
3
|
+
declare const FolderClosedIconWithColor: {
|
|
4
|
+
(props: ComponentPropsWithoutRef<typeof FolderClosedIcon>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default FolderClosedIconWithColor;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import ImageIcon from '@atlaskit/icon/core/image';
|
|
3
|
+
declare const ImageIconWithColor: {
|
|
4
|
+
(props: ComponentPropsWithoutRef<typeof ImageIcon>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default ImageIconWithColor;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import ListBulletedIcon from '@atlaskit/icon/core/list-bulleted';
|
|
3
|
+
declare const ListBulletedIconWithColor: {
|
|
4
|
+
(props: ComponentPropsWithoutRef<typeof ListBulletedIcon>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default ListBulletedIconWithColor;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import PageIcon from '@atlaskit/icon/core/page';
|
|
3
|
+
declare const PageIconWithColor: {
|
|
4
|
+
(props: ComponentPropsWithoutRef<typeof PageIcon>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default PageIconWithColor;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import VideoIcon from '@atlaskit/icon/core/video';
|
|
3
|
+
declare const VideoIconWithColor: {
|
|
4
|
+
(props: ComponentPropsWithoutRef<typeof VideoIcon>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default VideoIconWithColor;
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { type BlockProps } from '../types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* in a row. All elements and actions should be contained within a Block.
|
|
6
|
-
* @internal
|
|
7
|
-
* @param {ActionGroupProps} ActionGroupProps
|
|
8
|
-
* @see Action
|
|
9
|
-
*/
|
|
10
|
-
declare const Block: ({ children, direction, size, testId, overrideCss, blockRef, onRender, onTransitionEnd, }: BlockProps) => jsx.JSX.Element;
|
|
11
|
-
export default Block;
|
|
3
|
+
declare const Exported: (props: BlockProps) => JSX.Element;
|
|
4
|
+
export default Exported;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
|
+
import { type BlockProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* A block represents a collection of elements and actions that are arranged
|
|
5
|
+
* in a row. All elements and actions should be contained within a Block.
|
|
6
|
+
* @internal
|
|
7
|
+
* @param {ActionGroupProps} ActionGroupProps
|
|
8
|
+
* @see Action
|
|
9
|
+
*/
|
|
10
|
+
declare const Block: ({ children, direction, size, testId, overrideCss, blockRef, onRender, onTransitionEnd, }: BlockProps) => jsx.JSX.Element;
|
|
11
|
+
export default Block;
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
/// <reference types="react" />
|
|
6
2
|
import { type PreviewBlockProps } from './types';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* @public
|
|
10
|
-
* @param {PreviewBlockProps} PreviewBlock
|
|
11
|
-
* @see Block
|
|
12
|
-
*/
|
|
13
|
-
declare const PreviewBlock: ({ status, testId, overrideUrl, ...blockProps }: PreviewBlockProps) => jsx.JSX.Element;
|
|
14
|
-
export default PreviewBlock;
|
|
3
|
+
declare const Exported: (props: PreviewBlockProps) => JSX.Element;
|
|
4
|
+
export default Exported;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
|
+
import { type PreviewBlockProps } from './types';
|
|
7
|
+
/**
|
|
8
|
+
* Represents a PreviewBlock, which typically contains media or other large format content.
|
|
9
|
+
* @public
|
|
10
|
+
* @param {PreviewBlockProps} PreviewBlock
|
|
11
|
+
* @see Block
|
|
12
|
+
*/
|
|
13
|
+
declare const PreviewBlock: ({ status, testId, overrideUrl, ...blockProps }: PreviewBlockProps) => jsx.JSX.Element;
|
|
14
|
+
export default PreviewBlock;
|
package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/resolved/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { type PreviewBlockProps } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Represents a resolved PreviewBlock, which typically contains media or other large format content.
|
|
@@ -6,5 +6,5 @@ import { type PreviewBlockProps } from '../types';
|
|
|
6
6
|
* @param {PreviewBlock} PreviewBlock
|
|
7
7
|
* @see Block
|
|
8
8
|
*/
|
|
9
|
-
declare const PreviewBlockResolvedView: ({ ignoreContainerPadding, onError,
|
|
9
|
+
declare const PreviewBlockResolvedView: ({ ignoreContainerPadding, onError, className, placement, testId, overrideUrl, ...blockProps }: PreviewBlockProps) => JSX.Element;
|
|
10
10
|
export default PreviewBlockResolvedView;
|
package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
|
+
import { type PreviewBlockProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a resolved PreviewBlock, which typically contains media or other large format content.
|
|
5
|
+
* @public
|
|
6
|
+
* @param {PreviewBlock} PreviewBlock
|
|
7
|
+
* @see Block
|
|
8
|
+
*/
|
|
9
|
+
declare const PreviewBlockResolvedView: ({ ignoreContainerPadding, onError, overrideCss, placement, testId, overrideUrl, ...blockProps }: PreviewBlockProps) => jsx.JSX.Element;
|
|
10
|
+
export default PreviewBlockResolvedView;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "34.
|
|
3
|
+
"version": "34.3.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/form": "^11.0.0",
|
|
40
40
|
"@atlaskit/frontend-utilities": "^2.8.0",
|
|
41
41
|
"@atlaskit/heading": "^4.0.0",
|
|
42
|
-
"@atlaskit/icon": "^23.
|
|
42
|
+
"@atlaskit/icon": "^23.4.0",
|
|
43
43
|
"@atlaskit/icon-file-type": "^6.8.0",
|
|
44
44
|
"@atlaskit/icon-object": "^6.9.0",
|
|
45
45
|
"@atlaskit/icon-priority": "^6.3.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/textarea": "^5.7.0",
|
|
65
65
|
"@atlaskit/textfield": "^6.7.0",
|
|
66
66
|
"@atlaskit/theme": "^14.0.0",
|
|
67
|
-
"@atlaskit/tokens": "^3.
|
|
67
|
+
"@atlaskit/tokens": "^3.1.0",
|
|
68
68
|
"@atlaskit/tooltip": "^19.0.0",
|
|
69
69
|
"@atlaskit/ufo": "^0.3.0",
|
|
70
70
|
"@babel/runtime": "^7.0.0",
|
|
@@ -97,10 +97,12 @@
|
|
|
97
97
|
"@atlaskit/css-reset": "^6.11.0",
|
|
98
98
|
"@atlaskit/link-test-helpers": "^7.5.0",
|
|
99
99
|
"@atlaskit/media-test-helpers": "^34.7.0",
|
|
100
|
+
"@atlaskit/react-ufo": "^2.10.0",
|
|
100
101
|
"@atlaskit/ssr": "*",
|
|
101
102
|
"@atlaskit/visual-regression": "*",
|
|
102
103
|
"@atlassian/analytics-tooling": "*",
|
|
103
104
|
"@atlassian/feature-flags-test-utils": "^0.2.0",
|
|
105
|
+
"@atlassian/gemini": "1.15.2",
|
|
104
106
|
"@testing-library/dom": "^10.1.0",
|
|
105
107
|
"@testing-library/jest-dom": "^6.4.5",
|
|
106
108
|
"@testing-library/react": "^12.1.5",
|
|
@@ -186,6 +188,9 @@
|
|
|
186
188
|
},
|
|
187
189
|
"bandicoots-compiled-migration-smartcard": {
|
|
188
190
|
"type": "boolean"
|
|
191
|
+
},
|
|
192
|
+
"platform-smart-card-icon-migration": {
|
|
193
|
+
"type": "boolean"
|
|
189
194
|
}
|
|
190
195
|
}
|
|
191
196
|
}
|