@atlaskit/smart-card 34.5.0 → 34.5.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/common/ui/icons/angle-brackets-icon.js +2 -11
- package/dist/cjs/common/ui/icons/audio-icon.js +2 -11
- package/dist/cjs/common/ui/icons/blog-icon.js +13 -0
- package/dist/cjs/common/ui/icons/chart-bar-icon.js +2 -11
- package/dist/cjs/common/ui/icons/file-icon.js +2 -11
- package/dist/cjs/common/ui/icons/folder-icon.js +2 -11
- package/dist/cjs/common/ui/icons/image-icon.js +2 -11
- package/dist/cjs/common/ui/icons/list-bullet-icon.js +2 -11
- package/dist/cjs/common/ui/icons/page-icon.js +2 -12
- package/dist/cjs/common/ui/icons/types.js +5 -0
- package/dist/cjs/common/ui/icons/utils.js +47 -0
- package/dist/cjs/common/ui/icons/video-icon.js +2 -11
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/index.js +395 -180
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.compiled.css +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +16 -8
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +2 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/index.js +38 -20
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.compiled.css +2 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +23 -2
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +43 -17
- package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +28 -8
- package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.compiled.css +0 -2
- package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.js +13 -12
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +35 -8
- package/dist/cjs/view/FlexibleCard/components/utils.js +23 -2
- package/dist/cjs/view/HoverCard/components/views/resolving/index.js +29 -14
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/common/ui/icons/angle-brackets-icon.js +2 -11
- package/dist/es2019/common/ui/icons/audio-icon.js +2 -11
- package/dist/es2019/common/ui/icons/blog-icon.js +6 -0
- package/dist/es2019/common/ui/icons/chart-bar-icon.js +2 -11
- package/dist/es2019/common/ui/icons/file-icon.js +2 -11
- package/dist/es2019/common/ui/icons/folder-icon.js +2 -11
- package/dist/es2019/common/ui/icons/image-icon.js +2 -11
- package/dist/es2019/common/ui/icons/list-bullet-icon.js +2 -11
- package/dist/es2019/common/ui/icons/page-icon.js +2 -12
- package/dist/es2019/common/ui/icons/types.js +1 -0
- package/dist/es2019/common/ui/icons/utils.js +39 -0
- package/dist/es2019/common/ui/icons/video-icon.js +2 -11
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/index.js +166 -53
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.compiled.css +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +8 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +2 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/index.js +24 -4
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.compiled.css +2 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +23 -2
- package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +46 -21
- package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +28 -8
- package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.compiled.css +0 -2
- package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.js +14 -12
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +35 -10
- package/dist/es2019/view/FlexibleCard/components/utils.js +22 -1
- package/dist/es2019/view/HoverCard/components/views/resolving/index.js +21 -6
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/common/ui/icons/angle-brackets-icon.js +2 -11
- package/dist/esm/common/ui/icons/audio-icon.js +2 -11
- package/dist/esm/common/ui/icons/blog-icon.js +6 -0
- package/dist/esm/common/ui/icons/chart-bar-icon.js +2 -11
- package/dist/esm/common/ui/icons/file-icon.js +2 -11
- package/dist/esm/common/ui/icons/folder-icon.js +2 -11
- package/dist/esm/common/ui/icons/image-icon.js +2 -11
- package/dist/esm/common/ui/icons/list-bullet-icon.js +2 -11
- package/dist/esm/common/ui/icons/page-icon.js +2 -12
- package/dist/esm/common/ui/icons/types.js +1 -0
- package/dist/esm/common/ui/icons/utils.js +40 -0
- package/dist/esm/common/ui/icons/video-icon.js +2 -11
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/index.js +261 -96
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.compiled.css +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +8 -3
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +2 -1
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/index.js +37 -19
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.js +2 -2
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.compiled.css +2 -1
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +23 -2
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +47 -21
- package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +28 -8
- package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.compiled.css +0 -2
- package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.js +13 -11
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +35 -8
- package/dist/esm/view/FlexibleCard/components/utils.js +22 -1
- package/dist/esm/view/HoverCard/components/views/resolving/index.js +21 -6
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/common/ui/icons/angle-brackets-icon.d.ts +2 -6
- package/dist/types/common/ui/icons/audio-icon.d.ts +2 -6
- package/dist/types/common/ui/icons/blog-icon.d.ts +8 -0
- package/dist/types/common/ui/icons/chart-bar-icon.d.ts +2 -6
- package/dist/types/common/ui/icons/file-icon.d.ts +2 -6
- package/dist/types/common/ui/icons/folder-icon.d.ts +2 -6
- package/dist/types/common/ui/icons/image-icon.d.ts +2 -6
- package/dist/types/common/ui/icons/list-bullet-icon.d.ts +2 -6
- package/dist/types/common/ui/icons/page-icon.d.ts +2 -6
- package/dist/types/common/ui/icons/types.d.ts +6 -0
- package/dist/types/common/ui/icons/utils.d.ts +15 -0
- package/dist/types/common/ui/icons/video-icon.d.ts +2 -6
- package/dist/types/utils/index.d.ts +6 -2
- package/dist/types/view/FlexibleCard/components/blocks/title-block/resolved/index.d.ts +3 -1
- package/dist/types/view/FlexibleCard/components/common/atlaskit-icon/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/common/atlaskit-icon/types.d.ts +2 -1
- package/dist/types/view/FlexibleCard/components/common/image-icon/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/common/image-icon/types.d.ts +2 -0
- package/dist/types/view/FlexibleCard/components/common/loading-skeleton/LoadingSkeletonOld.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/common/loading-skeleton/index.d.ts +4 -3
- package/dist/types/view/FlexibleCard/components/common/loading-skeleton/types.d.ts +17 -1
- package/dist/types/view/FlexibleCard/components/utils.d.ts +2 -0
- package/dist/types/view/HoverCard/components/views/resolving/index.d.ts +0 -4
- package/dist/types-ts4.5/common/ui/icons/angle-brackets-icon.d.ts +2 -6
- package/dist/types-ts4.5/common/ui/icons/audio-icon.d.ts +2 -6
- package/dist/types-ts4.5/common/ui/icons/blog-icon.d.ts +8 -0
- package/dist/types-ts4.5/common/ui/icons/chart-bar-icon.d.ts +2 -6
- package/dist/types-ts4.5/common/ui/icons/file-icon.d.ts +2 -6
- package/dist/types-ts4.5/common/ui/icons/folder-icon.d.ts +2 -6
- package/dist/types-ts4.5/common/ui/icons/image-icon.d.ts +2 -6
- package/dist/types-ts4.5/common/ui/icons/list-bullet-icon.d.ts +2 -6
- package/dist/types-ts4.5/common/ui/icons/page-icon.d.ts +2 -6
- package/dist/types-ts4.5/common/ui/icons/types.d.ts +6 -0
- package/dist/types-ts4.5/common/ui/icons/utils.d.ts +15 -0
- package/dist/types-ts4.5/common/ui/icons/video-icon.d.ts +2 -6
- package/dist/types-ts4.5/utils/index.d.ts +6 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/resolved/index.d.ts +3 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/common/atlaskit-icon/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/common/atlaskit-icon/types.d.ts +2 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/common/image-icon/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/common/image-icon/types.d.ts +2 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/common/loading-skeleton/LoadingSkeletonOld.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/common/loading-skeleton/index.d.ts +4 -3
- package/dist/types-ts4.5/view/FlexibleCard/components/common/loading-skeleton/types.d.ts +17 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/utils.d.ts +2 -0
- package/dist/types-ts4.5/view/HoverCard/components/views/resolving/index.d.ts +0 -4
- package/package.json +5 -1
|
@@ -6,10 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
-
var _react = require("
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _react2 = require("@emotion/react");
|
|
11
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
12
|
var _blocks = require("../../../../FlexibleCard/components/blocks");
|
|
11
13
|
var _actionGroup = _interopRequireDefault(require("../../../../FlexibleCard/components/blocks/action-group"));
|
|
12
|
-
var _loadingSkeleton =
|
|
14
|
+
var _loadingSkeleton = require("../../../../FlexibleCard/components/common/loading-skeleton");
|
|
13
15
|
var _icon = _interopRequireDefault(require("../../../../FlexibleCard/components/elements/icon"));
|
|
14
16
|
var _styled = require("../../../styled");
|
|
15
17
|
var _styled2 = require("./styled");
|
|
@@ -17,6 +19,7 @@ var _styled2 = require("./styled");
|
|
|
17
19
|
* @jsxRuntime classic
|
|
18
20
|
* @jsx jsx
|
|
19
21
|
*/
|
|
22
|
+
|
|
20
23
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
21
24
|
|
|
22
25
|
var HoverCardLoadingView = function HoverCardLoadingView(_ref) {
|
|
@@ -26,40 +29,52 @@ var HoverCardLoadingView = function HoverCardLoadingView(_ref) {
|
|
|
26
29
|
var skeletonWidth = _styled.CARD_WIDTH_REM - 2;
|
|
27
30
|
var size = titleBlockProps.size,
|
|
28
31
|
actions = titleBlockProps.actions;
|
|
29
|
-
var actionGroup = (actions === null || actions === void 0 ? void 0 : actions.length) && (actions === null || actions === void 0 ? void 0 : actions.length) > 0 && (0,
|
|
32
|
+
var actionGroup = (actions === null || actions === void 0 ? void 0 : actions.length) && (actions === null || actions === void 0 ? void 0 : actions.length) > 0 && (0, _react2.jsx)(_actionGroup.default, {
|
|
30
33
|
items: actions,
|
|
31
34
|
visibleButtonsNum: 2
|
|
32
35
|
});
|
|
36
|
+
var LoadingSkeleton = (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? _loadingSkeleton.LoadingSkeletonNew : _loadingSkeleton.LoadingSkeletonOld;
|
|
33
37
|
return (
|
|
34
38
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
35
|
-
(0,
|
|
39
|
+
(0, _react2.jsx)("div", {
|
|
36
40
|
css: _styled2.loadingViewContainer,
|
|
37
41
|
"data-testid": testId
|
|
38
|
-
}, (0,
|
|
42
|
+
}, (0, _react2.jsx)("div", {
|
|
39
43
|
css: _styled2.skeletonContainer
|
|
40
|
-
}, (0,
|
|
44
|
+
}, (0, _react2.jsx)(_blocks.CustomBlock, (0, _extends2.default)({}, titleBlockProps, {
|
|
41
45
|
overrideCss: _styled2.titleBlockStyles,
|
|
42
46
|
testId: "".concat(testId, "-title-block")
|
|
43
|
-
}), (0,
|
|
47
|
+
}), (0, _react2.jsx)(_icon.default, {
|
|
44
48
|
render: function render() {
|
|
45
|
-
return (0,
|
|
49
|
+
return (0, _react2.jsx)(LoadingSkeleton, null);
|
|
46
50
|
},
|
|
47
51
|
size: size
|
|
48
|
-
}), (0,
|
|
52
|
+
}), (0, _react2.jsx)("span", {
|
|
49
53
|
css: (0, _styled2.getTitleStyles)(lineHeightRem),
|
|
50
54
|
"data-testid": "".concat(testId, "-title")
|
|
51
|
-
}, (0,
|
|
55
|
+
}, (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? (0, _react2.jsx)(_loadingSkeleton.LoadingSkeletonNew, {
|
|
56
|
+
height: "".concat(lineHeightRem, "rem")
|
|
57
|
+
}) : (0, _react2.jsx)(_loadingSkeleton.LoadingSkeletonOld, {
|
|
52
58
|
height: lineHeightRem
|
|
53
|
-
})), actionGroup), (0, _react.jsx)(_loadingSkeleton.
|
|
59
|
+
})), actionGroup), (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_loadingSkeleton.LoadingSkeletonNew, {
|
|
60
|
+
width: "".concat(skeletonWidth, "rem"),
|
|
61
|
+
height: "".concat(lineHeightRem, "rem")
|
|
62
|
+
}), (0, _react2.jsx)(_loadingSkeleton.LoadingSkeletonNew, {
|
|
63
|
+
width: "".concat(skeletonWidth, "rem"),
|
|
64
|
+
height: "".concat(lineHeightRem * 3, "rem")
|
|
65
|
+
}), (0, _react2.jsx)(_loadingSkeleton.LoadingSkeletonNew, {
|
|
66
|
+
width: "".concat(skeletonWidth, "rem"),
|
|
67
|
+
height: "".concat(lineHeightRem, "rem")
|
|
68
|
+
})) : (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_loadingSkeleton.LoadingSkeletonOld, {
|
|
54
69
|
width: skeletonWidth,
|
|
55
70
|
height: lineHeightRem
|
|
56
|
-
}), (0,
|
|
71
|
+
}), (0, _react2.jsx)(_loadingSkeleton.LoadingSkeletonOld, {
|
|
57
72
|
width: skeletonWidth,
|
|
58
73
|
height: lineHeightRem * 3
|
|
59
|
-
}), (0,
|
|
74
|
+
}), (0, _react2.jsx)(_loadingSkeleton.LoadingSkeletonOld, {
|
|
60
75
|
width: skeletonWidth,
|
|
61
76
|
height: lineHeightRem
|
|
62
|
-
})))
|
|
77
|
+
}))))
|
|
63
78
|
);
|
|
64
79
|
};
|
|
65
80
|
var _default = exports.default = HoverCardLoadingView;
|
|
@@ -20,7 +20,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
20
20
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
21
21
|
var PACKAGE_DATA = {
|
|
22
22
|
packageName: "@atlaskit/smart-card",
|
|
23
|
-
packageVersion: "34.5.
|
|
23
|
+
packageVersion: "34.5.1",
|
|
24
24
|
componentName: 'linkUrl'
|
|
25
25
|
};
|
|
26
26
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { IconTile } from '@atlaskit/icon';
|
|
4
1
|
import LegacyIcon from '@atlaskit/icon-file-type/glyph/source-code/16';
|
|
5
2
|
import AngleBracketsIcon from '@atlaskit/icon/core/angle-brackets';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
appearance: "blueBold",
|
|
9
|
-
icon: AngleBracketsIcon,
|
|
10
|
-
size: "16",
|
|
11
|
-
LEGACY_fallbackComponent: /*#__PURE__*/React.createElement(LegacyIcon, props)
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
3
|
+
import { renderIconTile } from './utils';
|
|
4
|
+
const AngleBracketsIconWithColor = renderIconTile(AngleBracketsIcon, 'blueBold', LegacyIcon);
|
|
14
5
|
AngleBracketsIconWithColor.displayName = 'AngleBracketsIconWithColor';
|
|
15
6
|
export default AngleBracketsIconWithColor;
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { IconTile } from '@atlaskit/icon';
|
|
4
1
|
import LegacyIcon from '@atlaskit/icon-file-type/glyph/audio/16';
|
|
5
2
|
import AudioIcon from '@atlaskit/icon/core/audio';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
appearance: "redBold",
|
|
9
|
-
icon: AudioIcon,
|
|
10
|
-
size: "16",
|
|
11
|
-
LEGACY_fallbackComponent: /*#__PURE__*/React.createElement(LegacyIcon, props)
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
3
|
+
import { renderIconTile } from './utils';
|
|
4
|
+
const AudioIconWithColor = renderIconTile(AudioIcon, 'redBold', LegacyIcon);
|
|
14
5
|
AudioIconWithColor.displayName = 'AudioIconWithColor';
|
|
15
6
|
export default AudioIconWithColor;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import BlogIconSmall from '@atlaskit/icon-object/glyph/blog/16';
|
|
2
|
+
import BlogIconLarge from '@atlaskit/icon-object/glyph/blog/24';
|
|
3
|
+
import { renderIconPerSize } from './utils';
|
|
4
|
+
const BlogIconWithColor = renderIconPerSize(BlogIconSmall, BlogIconLarge);
|
|
5
|
+
BlogIconWithColor.displayName = 'BlogIconWithColor';
|
|
6
|
+
export default BlogIconWithColor;
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { IconTile } from '@atlaskit/icon';
|
|
4
1
|
import LegacyIcon from '@atlaskit/icon-file-type/glyph/presentation/16';
|
|
5
2
|
import ChartBarIcon from '@atlaskit/icon/core/chart-bar';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
appearance: "purpleBold",
|
|
9
|
-
icon: ChartBarIcon,
|
|
10
|
-
size: "16",
|
|
11
|
-
LEGACY_fallbackComponent: /*#__PURE__*/React.createElement(LegacyIcon, props)
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
3
|
+
import { renderIconTile } from './utils';
|
|
4
|
+
const ChartBarIconWithColor = renderIconTile(ChartBarIcon, 'purpleBold', LegacyIcon);
|
|
14
5
|
ChartBarIconWithColor.displayName = 'ChartBarIconWithColor';
|
|
15
6
|
export default ChartBarIconWithColor;
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { IconTile } from '@atlaskit/icon';
|
|
4
1
|
import LegacyIcon from '@atlaskit/icon-file-type/glyph/generic/16';
|
|
5
2
|
import FileIcon from '@atlaskit/icon/core/file';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
appearance: "grayBold",
|
|
9
|
-
icon: FileIcon,
|
|
10
|
-
size: "16",
|
|
11
|
-
LEGACY_fallbackComponent: /*#__PURE__*/React.createElement(LegacyIcon, props)
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
3
|
+
import { renderIconTile } from './utils';
|
|
4
|
+
const FileIconWithColor = renderIconTile(FileIcon, 'grayBold', LegacyIcon);
|
|
14
5
|
FileIconWithColor.displayName = 'FileIconWithColor';
|
|
15
6
|
export default FileIconWithColor;
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { IconTile } from '@atlaskit/icon';
|
|
4
1
|
import LegacyIcon from '@atlaskit/icon-file-type/glyph/folder/16';
|
|
5
2
|
import FolderClosedIcon from '@atlaskit/icon/core/folder-closed';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
appearance: "blueBold",
|
|
9
|
-
icon: FolderClosedIcon,
|
|
10
|
-
size: "16",
|
|
11
|
-
LEGACY_fallbackComponent: /*#__PURE__*/React.createElement(LegacyIcon, props)
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
3
|
+
import { renderIconTile } from './utils';
|
|
4
|
+
const FolderClosedIconWithColor = renderIconTile(FolderClosedIcon, 'blueBold', LegacyIcon);
|
|
14
5
|
FolderClosedIconWithColor.displayName = 'FolderClosedIconWithColor';
|
|
15
6
|
export default FolderClosedIconWithColor;
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { IconTile } from '@atlaskit/icon';
|
|
4
1
|
import LegacyIcon from '@atlaskit/icon-file-type/glyph/image/16';
|
|
5
2
|
import ImageIcon from '@atlaskit/icon/core/image';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
appearance: "yellowBold",
|
|
9
|
-
icon: ImageIcon,
|
|
10
|
-
size: "16",
|
|
11
|
-
LEGACY_fallbackComponent: /*#__PURE__*/React.createElement(LegacyIcon, props)
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
3
|
+
import { renderIconTile } from './utils';
|
|
4
|
+
const ImageIconWithColor = renderIconTile(ImageIcon, 'yellowBold', LegacyIcon);
|
|
14
5
|
ImageIconWithColor.displayName = 'ImageIconWithColor';
|
|
15
6
|
export default ImageIconWithColor;
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { IconTile } from '@atlaskit/icon';
|
|
4
1
|
import LegacyIcon from '@atlaskit/icon-file-type/glyph/spreadsheet/16';
|
|
5
2
|
import ListBulletedIcon from '@atlaskit/icon/core/list-bulleted';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
appearance: "greenBold",
|
|
9
|
-
icon: ListBulletedIcon,
|
|
10
|
-
size: "16",
|
|
11
|
-
LEGACY_fallbackComponent: /*#__PURE__*/React.createElement(LegacyIcon, props)
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
3
|
+
import { renderIconTile } from './utils';
|
|
4
|
+
const ListBulletedIconWithColor = renderIconTile(ListBulletedIcon, 'greenBold', LegacyIcon);
|
|
14
5
|
ListBulletedIconWithColor.displayName = 'ListBulletedIconWithColor';
|
|
15
6
|
export default ListBulletedIconWithColor;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { IconTile } from '@atlaskit/icon';
|
|
4
1
|
import LegacyIcon from '@atlaskit/icon-file-type/glyph/document/16';
|
|
5
2
|
import PageIcon from '@atlaskit/icon/core/page';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
appearance: "blueBold",
|
|
9
|
-
icon: PageIcon,
|
|
10
|
-
size: "16"
|
|
11
|
-
}, props, {
|
|
12
|
-
LEGACY_fallbackComponent: /*#__PURE__*/React.createElement(LegacyIcon, props)
|
|
13
|
-
}));
|
|
14
|
-
};
|
|
3
|
+
import { renderIconTile } from './utils';
|
|
4
|
+
const PageIconWithColor = renderIconTile(PageIcon, 'blueBold', LegacyIcon);
|
|
15
5
|
PageIconWithColor.displayName = 'PageIconWithColor';
|
|
16
6
|
export default PageIconWithColor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IconTile } from '@atlaskit/icon';
|
|
4
|
+
import { SmartLinkSize } from '../../../constants';
|
|
5
|
+
import { isIconSizeLarge } from '../../../utils';
|
|
6
|
+
export const transformSmartLinkSizeToIconTileSize = size => {
|
|
7
|
+
switch (size) {
|
|
8
|
+
case SmartLinkSize.XLarge:
|
|
9
|
+
case SmartLinkSize.Large:
|
|
10
|
+
return '24';
|
|
11
|
+
default:
|
|
12
|
+
return '16';
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
export const renderIconPerSize = (IconSmall, IconLarge) => {
|
|
16
|
+
return ({
|
|
17
|
+
size,
|
|
18
|
+
...props
|
|
19
|
+
}) => {
|
|
20
|
+
if (isIconSizeLarge(size)) {
|
|
21
|
+
return /*#__PURE__*/React.createElement(IconLarge, props);
|
|
22
|
+
}
|
|
23
|
+
return /*#__PURE__*/React.createElement(IconSmall, props);
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export const renderIconTile = (Icon, appearance, LegacyIcon) => {
|
|
27
|
+
return ({
|
|
28
|
+
size,
|
|
29
|
+
...props
|
|
30
|
+
}) => {
|
|
31
|
+
return /*#__PURE__*/React.createElement(IconTile, _extends({
|
|
32
|
+
appearance: appearance,
|
|
33
|
+
icon: Icon,
|
|
34
|
+
size: transformSmartLinkSizeToIconTileSize(size)
|
|
35
|
+
}, props, {
|
|
36
|
+
LEGACY_fallbackComponent: /*#__PURE__*/React.createElement(LegacyIcon, props)
|
|
37
|
+
}));
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { IconTile } from '@atlaskit/icon';
|
|
4
1
|
import LegacyIcon from '@atlaskit/icon-file-type/glyph/video/16';
|
|
5
2
|
import VideoIcon from '@atlaskit/icon/core/video';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
appearance: "redBold",
|
|
9
|
-
icon: VideoIcon,
|
|
10
|
-
size: "16",
|
|
11
|
-
LEGACY_fallbackComponent: /*#__PURE__*/React.createElement(LegacyIcon, props)
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
3
|
+
import { renderIconTile } from './utils';
|
|
4
|
+
const VideoIconWithColor = renderIconTile(VideoIcon, 'redBold', LegacyIcon);
|
|
14
5
|
VideoIconWithColor.displayName = 'VideoIconWithColor';
|
|
15
6
|
export default VideoIconWithColor;
|
|
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
2
2
|
export const context = {
|
|
3
3
|
componentName: 'smart-cards',
|
|
4
4
|
packageName: "@atlaskit/smart-card",
|
|
5
|
-
packageVersion: "34.5.
|
|
5
|
+
packageVersion: "34.5.1"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
4
|
import { themeObjectToString } from '@atlaskit/tokens';
|
|
5
|
-
import { IconType } from '../constants';
|
|
5
|
+
import { IconType, SmartLinkSize } from '../constants';
|
|
6
6
|
import extractFileFormatIcon from '../extractors/flexible/icon/extract-file-formatIcon';
|
|
7
7
|
export const isSpecialEvent = evt => evt.isDefaultPrevented() && (isIframe() || isSpecialKey(evt) || isSpecialClick(evt));
|
|
8
8
|
export const isIframe = () => window.parent !== parent;
|
|
@@ -105,70 +105,182 @@ const typeToIcon = {
|
|
|
105
105
|
'application/sketch': ['Sketch', () => import('@atlaskit/icon-file-type/glyph/sketch/16')],
|
|
106
106
|
folder: ['Folder', () => import('@atlaskit/icon-file-type/glyph/folder/16')]
|
|
107
107
|
};
|
|
108
|
+
|
|
109
|
+
// prettier-ignore
|
|
108
110
|
export const getLazyIcons = () => {
|
|
109
111
|
return {
|
|
110
|
-
[IconType.Document]:
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
[IconType.
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
[IconType.
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
[IconType.
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
[IconType.
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
[IconType.
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
[IconType.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
[IconType.
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
[IconType.
|
|
135
|
-
|
|
136
|
-
|
|
112
|
+
[IconType.Document]: {
|
|
113
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_page-icon" */'../common/ui/icons/page-icon')
|
|
114
|
+
},
|
|
115
|
+
[IconType.Blog]: {
|
|
116
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphBlock" */'../common/ui/icons/blog-icon')
|
|
117
|
+
},
|
|
118
|
+
[IconType.Audio]: {
|
|
119
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_audio-icon" */'../common/ui/icons/audio-icon')
|
|
120
|
+
},
|
|
121
|
+
[IconType.Code]: {
|
|
122
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_angle-brackets-icon" */'../common/ui/icons/angle-brackets-icon')
|
|
123
|
+
},
|
|
124
|
+
[IconType.File]: {
|
|
125
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_file-icon" */'../common/ui/icons/file-icon')
|
|
126
|
+
},
|
|
127
|
+
[IconType.Folder]: {
|
|
128
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_folder-icon" */'../common/ui/icons/folder-icon')
|
|
129
|
+
},
|
|
130
|
+
[IconType.Generic]: {
|
|
131
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_file-icon" */'../common/ui/icons/file-icon')
|
|
132
|
+
},
|
|
133
|
+
[IconType.Image]: {
|
|
134
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_image-icon" */'../common/ui/icons/image-icon')
|
|
135
|
+
},
|
|
136
|
+
[IconType.Presentation]: {
|
|
137
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_chart-bar-icon" */'../common/ui/icons/chart-bar-icon')
|
|
138
|
+
},
|
|
139
|
+
[IconType.Spreadsheet]: {
|
|
140
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_list-bullet-icon" */'../common/ui/icons/list-bullet-icon')
|
|
141
|
+
},
|
|
142
|
+
[IconType.Video]: {
|
|
143
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_video-icon" */'../common/ui/icons/video-icon')
|
|
144
|
+
},
|
|
145
|
+
[IconType.Project]: {
|
|
146
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphProject" */'@atlaskit/icon/core/migration/people-group')
|
|
147
|
+
},
|
|
148
|
+
[IconType.Template]: {
|
|
149
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphTemplate" */'@atlaskit/icon/core/migration/file--document-filled')
|
|
150
|
+
},
|
|
151
|
+
[IconType.Forbidden]: {
|
|
152
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphForbidden" */'@atlaskit/icon/core/migration/lock-locked--lock-filled')
|
|
153
|
+
},
|
|
154
|
+
[IconType.Default]: {
|
|
155
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphDefault" */'@atlaskit/icon/core/migration/link')
|
|
156
|
+
},
|
|
157
|
+
[IconType.Archive]: {
|
|
158
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphArchive" */'@atlaskit/icon-file-type/glyph/archive/16'),
|
|
159
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphArchive" */'@atlaskit/icon-file-type/glyph/archive/24')
|
|
160
|
+
},
|
|
161
|
+
[IconType.Executable]: {
|
|
162
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphExecutable" */'@atlaskit/icon-file-type/glyph/executable/16'),
|
|
163
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphExecutable" */'@atlaskit/icon-file-type/glyph/executable/24')
|
|
164
|
+
},
|
|
165
|
+
[IconType.GIF]: {
|
|
166
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphGIF" */'@atlaskit/icon-file-type/glyph/gif/16'),
|
|
167
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphGIF" */'@atlaskit/icon-file-type/glyph/gif/24')
|
|
168
|
+
},
|
|
169
|
+
[IconType.GoogleDocs]: {
|
|
170
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleDocs" */'@atlaskit/icon-file-type/glyph/google-doc/16'),
|
|
171
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleDocs" */'@atlaskit/icon-file-type/glyph/google-doc/24')
|
|
172
|
+
},
|
|
173
|
+
[IconType.GoogleForms]: {
|
|
174
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/16'),
|
|
175
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/24')
|
|
176
|
+
},
|
|
177
|
+
[IconType.GoogleSheets]: {
|
|
178
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleSheets" */'@atlaskit/icon-file-type/glyph/google-sheet/16'),
|
|
179
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleSheets" */'@atlaskit/icon-file-type/glyph/google-sheet/24')
|
|
180
|
+
},
|
|
181
|
+
[IconType.GoogleSlides]: {
|
|
182
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleSlides" */'@atlaskit/icon-file-type/glyph/google-slide/16'),
|
|
183
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleSlides" */'@atlaskit/icon-file-type/glyph/google-slide/24')
|
|
184
|
+
},
|
|
185
|
+
[IconType.MSExcel]: {
|
|
186
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphMSExcel" */'@atlaskit/icon-file-type/glyph/excel-spreadsheet/16'),
|
|
187
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphMSExcel" */'@atlaskit/icon-file-type/glyph/excel-spreadsheet/24')
|
|
188
|
+
},
|
|
189
|
+
[IconType.MSPowerpoint]: {
|
|
190
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphMSPowerpoint" */'@atlaskit/icon-file-type/glyph/powerpoint-presentation/16'),
|
|
191
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphMSPowerpoint" */'@atlaskit/icon-file-type/glyph/powerpoint-presentation/24')
|
|
192
|
+
},
|
|
193
|
+
[IconType.MSWord]: {
|
|
194
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphMSWord" */'@atlaskit/icon-file-type/glyph/word-document/16'),
|
|
195
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphMSWord" */'@atlaskit/icon-file-type/glyph/word-document/24')
|
|
196
|
+
},
|
|
197
|
+
[IconType.PDF]: {
|
|
198
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphPDF" */'@atlaskit/icon-file-type/glyph/pdf-document/16'),
|
|
199
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphPDF" */'@atlaskit/icon-file-type/glyph/pdf-document/24')
|
|
200
|
+
},
|
|
201
|
+
[IconType.Sketch]: {
|
|
202
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphSketch" */'@atlaskit/icon-file-type/glyph/sketch/16'),
|
|
203
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphSketch" */'@atlaskit/icon-file-type/glyph/sketch/24')
|
|
204
|
+
},
|
|
137
205
|
// Bitbucket icons
|
|
138
|
-
[IconType.Branch]:
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
206
|
+
[IconType.Branch]: {
|
|
207
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphBranch" */'@atlaskit/icon-object/glyph/branch/16'),
|
|
208
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphBranch" */'@atlaskit/icon-object/glyph/branch/24')
|
|
209
|
+
},
|
|
210
|
+
[IconType.Commit]: {
|
|
211
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphCommit" */'@atlaskit/icon-object/glyph/commit/16'),
|
|
212
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphCommit" */'@atlaskit/icon-object/glyph/commit/24')
|
|
213
|
+
},
|
|
214
|
+
[IconType.PullRequest]: {
|
|
215
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphPullRequest" */'@atlaskit/icon-object/glyph/pull-request/16'),
|
|
216
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphPullRequest" */'@atlaskit/icon-object/glyph/pull-request/24')
|
|
217
|
+
},
|
|
218
|
+
[IconType.Repo]: {
|
|
219
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphRepo" */'@atlaskit/icon-object/glyph/code/16'),
|
|
220
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphRepo" */'@atlaskit/icon-object/glyph/code/24')
|
|
221
|
+
},
|
|
142
222
|
// Jira icons
|
|
143
|
-
[IconType.Bug]:
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
[IconType.
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
[IconType.
|
|
223
|
+
[IconType.Bug]: {
|
|
224
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphBug" */'@atlaskit/icon-object/glyph/bug/16'),
|
|
225
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphBug" */'@atlaskit/icon-object/glyph/bug/24')
|
|
226
|
+
},
|
|
227
|
+
[IconType.Change]: {
|
|
228
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphChange" */'@atlaskit/icon-object/glyph/changes/16'),
|
|
229
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphChange" */'@atlaskit/icon-object/glyph/changes/24')
|
|
230
|
+
},
|
|
231
|
+
[IconType.Epic]: {
|
|
232
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphEpic" */'@atlaskit/icon-object/glyph/epic/16'),
|
|
233
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphEpic" */'@atlaskit/icon-object/glyph/epic/24')
|
|
234
|
+
},
|
|
235
|
+
[IconType.Incident]: {
|
|
236
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphIncident" */'@atlaskit/icon-object/glyph/incident/16'),
|
|
237
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphIncident" */'@atlaskit/icon-object/glyph/incident/24')
|
|
238
|
+
},
|
|
239
|
+
[IconType.Problem]: {
|
|
240
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphProblem" */'@atlaskit/icon-object/glyph/problem/16'),
|
|
241
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphProblem" */'@atlaskit/icon-object/glyph/problem/24')
|
|
242
|
+
},
|
|
243
|
+
[IconType.ServiceRequest]: {
|
|
244
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphServiceRequest" */'@atlaskit/icon-object/glyph/issue/16'),
|
|
245
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphServiceRequest" */'@atlaskit/icon-object/glyph/issue/24')
|
|
246
|
+
},
|
|
247
|
+
[IconType.Story]: {
|
|
248
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphStory" */'@atlaskit/icon-object/glyph/story/16'),
|
|
249
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphStory" */'@atlaskit/icon-object/glyph/story/24')
|
|
250
|
+
},
|
|
251
|
+
[IconType.SubTask]: {
|
|
252
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphSubTask" */'@atlaskit/icon-object/glyph/subtask/16'),
|
|
253
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphSubTask" */'@atlaskit/icon-object/glyph/subtask/24')
|
|
254
|
+
},
|
|
255
|
+
[IconType.Task]: {
|
|
256
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/icon-object/glyph/task/16'),
|
|
257
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/icon-object/glyph/task/24')
|
|
258
|
+
},
|
|
152
259
|
// Provider icons
|
|
153
|
-
[IconType.Confluence]:
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
default:
|
|
162
|
-
|
|
260
|
+
[IconType.Confluence]: {
|
|
261
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphConfluence" */'@atlaskit/logo/confluence-icon').then(({
|
|
262
|
+
ConfluenceIcon
|
|
263
|
+
}) => ({
|
|
264
|
+
default: ConfluenceIcon
|
|
265
|
+
}))
|
|
266
|
+
},
|
|
267
|
+
[IconType.Jira]: {
|
|
268
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphJira" */'@atlaskit/logo/jira-icon').then(({
|
|
269
|
+
JiraIcon
|
|
270
|
+
}) => ({
|
|
271
|
+
default: JiraIcon
|
|
272
|
+
}))
|
|
273
|
+
}
|
|
163
274
|
};
|
|
164
275
|
};
|
|
165
276
|
const getTypeToIconMap = fileFormat => {
|
|
277
|
+
var _lazyIcons$iconDescri;
|
|
166
278
|
const iconDescriptor = extractFileFormatIcon(fileFormat);
|
|
167
279
|
if (!(iconDescriptor !== null && iconDescriptor !== void 0 && iconDescriptor.icon) || !iconDescriptor.label) {
|
|
168
280
|
return null;
|
|
169
281
|
}
|
|
170
282
|
const lazyIcons = getLazyIcons();
|
|
171
|
-
return [iconDescriptor.label, lazyIcons[iconDescriptor.icon]];
|
|
283
|
+
return [iconDescriptor.label, (_lazyIcons$iconDescri = lazyIcons[iconDescriptor.icon]) === null || _lazyIcons$iconDescri === void 0 ? void 0 : _lazyIcons$iconDescri.default];
|
|
172
284
|
};
|
|
173
285
|
export const getIframeSandboxAttribute = isTrusted => {
|
|
174
286
|
if (isTrusted) {
|
|
@@ -241,4 +353,5 @@ export const getPreviewUrlWithTheme = (previewUrl, themeState) => {
|
|
|
241
353
|
} catch {
|
|
242
354
|
return previewUrl;
|
|
243
355
|
}
|
|
244
|
-
};
|
|
356
|
+
};
|
|
357
|
+
export const isIconSizeLarge = size => size && [SmartLinkSize.Large, SmartLinkSize.XLarge].includes(size);
|
package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.compiled.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._zulpu2gc{gap:var(--ds-space-100,8px)}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import
|
|
3
|
+
import "./index.compiled.css";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
3
6
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
7
|
import { Box } from '@atlaskit/primitives';
|
|
5
8
|
import { SmartLinkAlignment, SmartLinkDirection } from '../../../../../../constants';
|
|
@@ -32,7 +35,8 @@ const TitleBlockErroredViewNew = ({
|
|
|
32
35
|
} = retry || {};
|
|
33
36
|
const hasAction = onClick !== undefined;
|
|
34
37
|
return /*#__PURE__*/React.createElement(Block, _extends({}, blockProps, {
|
|
35
|
-
testId: `${testId}-errored-view
|
|
38
|
+
testId: `${testId}-errored-view`,
|
|
39
|
+
className: ax(["_zulpu2gc"])
|
|
36
40
|
}), !hideIcon && /*#__PURE__*/React.createElement(LinkIcon, {
|
|
37
41
|
overrideIcon: icon,
|
|
38
42
|
position: position
|
|
@@ -48,4 +52,5 @@ const TitleBlockErroredViewNew = ({
|
|
|
48
52
|
})))), actionGroup);
|
|
49
53
|
};
|
|
50
54
|
export default TitleBlockErroredViewOld;
|
|
51
|
-
export { TitleBlockErroredViewNew };
|
|
55
|
+
export { TitleBlockErroredViewNew };
|
|
56
|
+
const titleBlockGapStyle = null;
|