@atlaskit/smart-card 30.0.1 → 30.1.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 +15 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +7 -2
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +6 -2
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/index.js +5 -1
- package/dist/cjs/view/FlexibleCard/components/actions/copy-link-action/index.js +5 -5
- package/dist/cjs/view/FlexibleCard/components/actions/delete-action/index.js +5 -5
- package/dist/cjs/view/FlexibleCard/components/actions/download-action/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/actions/edit-action/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/actions/follow-action/goal-icon/index.js +11 -3
- package/dist/cjs/view/FlexibleCard/components/actions/follow-action/projects-icon/index.js +9 -1
- package/dist/cjs/view/FlexibleCard/components/actions/preview-action/index.js +5 -5
- package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/related-links-action-icon/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +14 -12
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +5 -3
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +7 -2
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +6 -2
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +4 -4
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/index.js +5 -1
- package/dist/es2019/view/FlexibleCard/components/actions/copy-link-action/index.js +5 -5
- package/dist/es2019/view/FlexibleCard/components/actions/delete-action/index.js +4 -4
- package/dist/es2019/view/FlexibleCard/components/actions/download-action/index.js +4 -4
- package/dist/es2019/view/FlexibleCard/components/actions/edit-action/index.js +4 -4
- package/dist/es2019/view/FlexibleCard/components/actions/follow-action/goal-icon/index.js +9 -3
- package/dist/es2019/view/FlexibleCard/components/actions/follow-action/projects-icon/index.js +7 -1
- package/dist/es2019/view/FlexibleCard/components/actions/preview-action/index.js +4 -4
- package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/related-links-action-icon/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +14 -12
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +5 -3
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +7 -2
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +6 -2
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +4 -4
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/index.js +5 -1
- package/dist/esm/view/FlexibleCard/components/actions/copy-link-action/index.js +5 -5
- package/dist/esm/view/FlexibleCard/components/actions/delete-action/index.js +4 -4
- package/dist/esm/view/FlexibleCard/components/actions/download-action/index.js +4 -4
- package/dist/esm/view/FlexibleCard/components/actions/edit-action/index.js +4 -4
- package/dist/esm/view/FlexibleCard/components/actions/follow-action/goal-icon/index.js +11 -3
- package/dist/esm/view/FlexibleCard/components/actions/follow-action/projects-icon/index.js +9 -1
- package/dist/esm/view/FlexibleCard/components/actions/preview-action/index.js +4 -4
- package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/related-links-action-icon/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +14 -12
- package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +5 -3
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +6 -3
package/dist/es2019/view/FlexibleCard/components/actions/follow-action/projects-icon/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import Icon from '@atlaskit/icon';
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import ProjectIcon from '@atlaskit/icon/core/project';
|
|
4
5
|
const ProjectsGlyph = props => /*#__PURE__*/React.createElement("svg", {
|
|
5
6
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6
7
|
width: "16",
|
|
@@ -13,6 +14,11 @@ const ProjectsGlyph = props => /*#__PURE__*/React.createElement("svg", {
|
|
|
13
14
|
d: "M9.88573 4.00002C9.70892 4.00002 9.53935 4.07026 9.41433 4.19528L6.97282 6.63678L4.20525 6.94429C4.05479 6.96101 3.91451 7.02844 3.80746 7.13548L3.60959 7.33335L4.35367 8.07743C4.6791 8.40287 4.6791 8.93051 4.35367 9.25594L3.47152 10.1381C3.21117 10.3984 2.78906 10.3984 2.52871 10.1381C2.26836 9.87774 2.26836 9.45563 2.52871 9.19528L3.0573 8.66669L2.43108 8.04046C2.04055 7.64993 2.04055 7.01677 2.43108 6.62625L2.86465 6.19267C3.18578 5.87154 3.60664 5.66927 4.05801 5.61911L6.36073 5.36326L8.47152 3.25247C8.84659 2.8774 9.3553 2.66669 9.88573 2.66669H12.0001C12.7365 2.66669 13.3334 3.26364 13.3334 4.00002V6.1144C13.3334 6.64483 13.1227 7.15354 12.7477 7.52862L10.6369 9.6394L10.381 11.9421C10.3309 12.3935 10.1286 12.8143 9.80746 13.1355L9.37389 13.5691C8.98336 13.9596 8.3502 13.9596 7.95967 13.5691L7.33345 12.9428L6.80485 13.4714C6.5445 13.7318 6.12239 13.7318 5.86204 13.4714C5.60169 13.2111 5.60169 12.789 5.86204 12.5286L6.74419 11.6465C7.06963 11.321 7.59726 11.321 7.9227 11.6465L8.66678 12.3905L8.86466 12.1927C8.9717 12.0856 9.03912 11.9453 9.05584 11.7949L9.36335 9.02731L11.8049 6.58581C11.9299 6.46078 12.0001 6.29121 12.0001 6.1144V4.00002H9.88573ZM5.80486 10.1953C6.06521 10.4556 6.06521 10.8777 5.80486 11.1381L3.80486 13.1381C3.54451 13.3984 3.1224 13.3984 2.86205 13.1381C2.6017 12.8777 2.6017 12.4556 2.86205 12.1953L4.86205 10.1953C5.1224 9.93493 5.54451 9.93493 5.80486 10.1953ZM10.0001 6.66669C10.3683 6.66669 10.6668 6.36821 10.6668 6.00002C10.6668 5.63183 10.3683 5.33335 10.0001 5.33335C9.63193 5.33335 9.33346 5.63183 9.33346 6.00002C9.33346 6.36821 9.63193 6.66669 10.0001 6.66669Z",
|
|
14
15
|
fill: "var(--ds-icon, #44546F)"
|
|
15
16
|
}));
|
|
16
|
-
|
|
17
|
+
const LegacyProjectsIcon = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
17
18
|
glyph: ProjectsGlyph
|
|
19
|
+
}, props));
|
|
20
|
+
export const ProjectsIcon = props => /*#__PURE__*/React.createElement(ProjectIcon, _extends({
|
|
21
|
+
color: "var(--ds-icon, #44546F)",
|
|
22
|
+
LEGACY_fallbackIcon: LegacyProjectsIcon,
|
|
23
|
+
spacing: "spacious"
|
|
18
24
|
}, props));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import MediaServicesActualSizeIcon from '@atlaskit/icon/
|
|
2
|
+
import MediaServicesActualSizeIcon from '@atlaskit/icon/core/migration/grow-diagonal--media-services-actual-size';
|
|
3
3
|
import React, { useCallback } from 'react';
|
|
4
4
|
import { FormattedMessage } from 'react-intl-next';
|
|
5
5
|
import { ActionName } from '../../../../../constants';
|
|
@@ -42,10 +42,10 @@ const PreviewAction = ({
|
|
|
42
42
|
const isStackItem = props.as === 'stack-item';
|
|
43
43
|
const tooltipMessage = isStackItem ? messages.preview_description : messages.preview_improved;
|
|
44
44
|
return data ? /*#__PURE__*/React.createElement(Action, _extends({
|
|
45
|
-
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_improved)
|
|
46
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20003
|
|
47
|
-
,
|
|
45
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_improved),
|
|
48
46
|
icon: /*#__PURE__*/React.createElement(MediaServicesActualSizeIcon, {
|
|
47
|
+
color: "currentColor",
|
|
48
|
+
spacing: "spacious",
|
|
49
49
|
label: "Open preview"
|
|
50
50
|
}),
|
|
51
51
|
onClick: onClick,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import ChildIssuesIcon from '@atlaskit/icon/
|
|
7
|
+
import ChildIssuesIcon from '@atlaskit/icon/core/migration/child-issues';
|
|
8
8
|
const rotateSvg = css({
|
|
9
9
|
transform: 'rotate(180deg)',
|
|
10
10
|
display: 'inline-block'
|
|
@@ -16,6 +16,8 @@ const rotateSvg = css({
|
|
|
16
16
|
const RelatedLinksActionIcon = () => jsx("span", {
|
|
17
17
|
css: rotateSvg
|
|
18
18
|
}, jsx(ChildIssuesIcon, {
|
|
19
|
+
color: "currentColor",
|
|
20
|
+
spacing: "spacious",
|
|
19
21
|
label: "View recent links..."
|
|
20
22
|
}));
|
|
21
23
|
export default RelatedLinksActionIcon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ErrorIcon from '@atlaskit/icon/
|
|
1
|
+
import ErrorIcon from '@atlaskit/icon/utility/migration/error';
|
|
2
2
|
import { Box, Inline, xcss } from '@atlaskit/primitives';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import MotionWrapper from '../../../common/motion-wrapper';
|
|
@@ -18,6 +18,9 @@ const containerStyles = xcss({
|
|
|
18
18
|
const errorStyles = xcss({
|
|
19
19
|
backgroundColor: 'color.background.danger'
|
|
20
20
|
});
|
|
21
|
+
const errorContentStyles = xcss({
|
|
22
|
+
paddingInlineStart: 'space.025'
|
|
23
|
+
});
|
|
21
24
|
const titleStyles = xcss({
|
|
22
25
|
color: 'color.text.subtle',
|
|
23
26
|
fontSize: '12px',
|
|
@@ -28,16 +31,14 @@ const titleStyles = xcss({
|
|
|
28
31
|
const getIcon = appearance => {
|
|
29
32
|
switch (appearance) {
|
|
30
33
|
case 'error':
|
|
31
|
-
return (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
})
|
|
40
|
-
);
|
|
34
|
+
return /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
35
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
36
|
+
spacing: "compact",
|
|
37
|
+
label: "Error",
|
|
38
|
+
LEGACY_size: "small",
|
|
39
|
+
testId: "action-error-icon",
|
|
40
|
+
LEGACY_margin: `0 ${"var(--ds-space-negative-025, -2px)"}`
|
|
41
|
+
});
|
|
41
42
|
default:
|
|
42
43
|
return null;
|
|
43
44
|
}
|
|
@@ -59,7 +60,8 @@ export const ActionFooter = ({
|
|
|
59
60
|
}, /*#__PURE__*/React.createElement(Inline, {
|
|
60
61
|
alignBlock: "start",
|
|
61
62
|
grow: "fill",
|
|
62
|
-
space: "space.
|
|
63
|
+
space: "space.075",
|
|
64
|
+
xcss: errorContentStyles
|
|
63
65
|
}, message.icon || getIcon(message.appearance), /*#__PURE__*/React.createElement(Box, {
|
|
64
66
|
xcss: titleStyles
|
|
65
67
|
}, message.title))));
|
|
@@ -3,7 +3,8 @@ import Tooltip from '@atlaskit/tooltip';
|
|
|
3
3
|
import { di } from 'react-magnetic-di';
|
|
4
4
|
import { FormattedMessage } from 'react-intl-next';
|
|
5
5
|
import { Box, Inline } from '@atlaskit/primitives';
|
|
6
|
-
import AIIcon from '
|
|
6
|
+
import AIIcon from '@atlaskit/icon/core/atlassian-intelligence';
|
|
7
|
+
import LegacyAIIcon from '../../../../../common/ai-icon';
|
|
7
8
|
import { InfoIcon } from '../icons/info';
|
|
8
9
|
import { messages } from '../../../../../../messages';
|
|
9
10
|
import useAISummaryAction from '../../../../../../state/hooks/use-ai-summary-action';
|
|
@@ -33,7 +34,8 @@ export const AIFooterMetadata = ({
|
|
|
33
34
|
primaryColor: "var(--ds-icon-subtle, #626F86)"
|
|
34
35
|
}))), /*#__PURE__*/React.createElement(AIIcon, {
|
|
35
36
|
label: "AI",
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
LEGACY_size: "small",
|
|
38
|
+
LEGACY_fallbackIcon: LegacyAIIcon,
|
|
39
|
+
color: "var(--ds-icon-subtle, #626F86)"
|
|
38
40
|
}));
|
|
39
41
|
};
|
|
@@ -7,7 +7,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
7
7
|
import LinkWarningModal from './LinkWarningModal';
|
|
8
8
|
const PACKAGE_DATA = {
|
|
9
9
|
packageName: "@atlaskit/smart-card",
|
|
10
|
-
packageVersion: "30.
|
|
10
|
+
packageVersion: "30.1.1",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
15
15
|
export var context = {
|
|
16
16
|
componentName: 'smart-cards',
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "30.
|
|
18
|
+
packageVersion: "30.1.1"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
import { SmartLinkSize } from '../../../../../../constants';
|
|
8
9
|
import { getIconSizeStyles } from '../../../utils';
|
|
9
10
|
var getIconWidth = function getIconWidth(size) {
|
|
@@ -34,6 +35,10 @@ var stackItemIconStyles = css(stackItemIconSizeStyles, {
|
|
|
34
35
|
lineHeight: 0
|
|
35
36
|
}
|
|
36
37
|
});
|
|
38
|
+
var newStackItemIconStyles = css({
|
|
39
|
+
display: 'inline-block',
|
|
40
|
+
lineHeight: 0
|
|
41
|
+
});
|
|
37
42
|
var ActionIcon = function ActionIcon(_ref) {
|
|
38
43
|
var size = _ref.size,
|
|
39
44
|
testId = _ref.testId,
|
|
@@ -43,9 +48,9 @@ var ActionIcon = function ActionIcon(_ref) {
|
|
|
43
48
|
return jsx("span", {
|
|
44
49
|
css: [
|
|
45
50
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
46
|
-
getIconStyles(isDisabled),
|
|
51
|
+
getIconStyles(isDisabled), !fg('platform-visual-refresh-icons') ? asStackItemIcon ? stackItemIconStyles :
|
|
47
52
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
48
|
-
|
|
53
|
+
getIconSizeStyles(getIconWidth(size)) : newStackItemIconStyles],
|
|
49
54
|
"data-testid": "".concat(testId, "-icon")
|
|
50
55
|
}, icon);
|
|
51
56
|
};
|
package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js
CHANGED
|
@@ -4,7 +4,8 @@ var _excluded = ["url", "onClick", "onError", "testId", "status", "summariseUrl"
|
|
|
4
4
|
import React, { useCallback } from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import Action from '../action';
|
|
7
|
-
import AiIcon from '
|
|
7
|
+
import AiIcon from '@atlaskit/icon/core/atlassian-intelligence';
|
|
8
|
+
import LegacyAiIcon from '../../../../common/ai-icon';
|
|
8
9
|
import { messages } from '../../../../../messages';
|
|
9
10
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
10
11
|
import { getErrorMessage } from './utils';
|
|
@@ -37,7 +38,10 @@ export function AISummariseAction(_ref) {
|
|
|
37
38
|
return /*#__PURE__*/React.createElement(Action, _extends({
|
|
38
39
|
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.ai_summary_action),
|
|
39
40
|
icon: /*#__PURE__*/React.createElement(AiIcon, {
|
|
40
|
-
|
|
41
|
+
spacing: "spacious",
|
|
42
|
+
color: "currentColor",
|
|
43
|
+
label: "Summarise with AI",
|
|
44
|
+
LEGACY_fallbackIcon: LegacyAiIcon
|
|
41
45
|
}),
|
|
42
46
|
onClick: handleActionClick,
|
|
43
47
|
testId: "".concat(testId, "-summarise-action"),
|
package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js
CHANGED
|
@@ -5,7 +5,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
5
5
|
var _excluded = ["url", "onClick", "testId", "content"];
|
|
6
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
7
|
import React, { useCallback, useState } from 'react';
|
|
8
|
-
import CopyIcon from '@atlaskit/icon/
|
|
8
|
+
import CopyIcon from '@atlaskit/icon/core/migration/copy';
|
|
9
9
|
import { FormattedMessage } from 'react-intl-next';
|
|
10
10
|
import Action from '../action';
|
|
11
11
|
import { messages } from '../../../../../messages';
|
|
@@ -39,10 +39,10 @@ export function CopySummaryAction(_ref) {
|
|
|
39
39
|
}, _callee);
|
|
40
40
|
})), [fireEvent, onClickCallback, content]);
|
|
41
41
|
return /*#__PURE__*/React.createElement(Action, _extends({
|
|
42
|
-
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.copy_summary_action)
|
|
43
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
|
|
44
|
-
,
|
|
42
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.copy_summary_action),
|
|
45
43
|
icon: /*#__PURE__*/React.createElement(CopyIcon, {
|
|
44
|
+
color: "currentColor",
|
|
45
|
+
spacing: "spacious",
|
|
46
46
|
label: "Copy Summary"
|
|
47
47
|
}),
|
|
48
48
|
onClick: handleCopySummaryClick,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { lazy, useCallback } from 'react';
|
|
3
3
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
4
|
+
import AutomationIcon from '@atlaskit/icon/core/automation';
|
|
4
5
|
import AutomationManualTriggersGlyph from './manaul-triggers-icon';
|
|
5
6
|
import Action from '../action';
|
|
6
7
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
@@ -67,7 +68,10 @@ var AutomationAction = function AutomationAction(props) {
|
|
|
67
68
|
var automationActionIconLabel = formatMessage(messages.automation_action_icon_label);
|
|
68
69
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Action, _extends({
|
|
69
70
|
content: automationActionTitle,
|
|
70
|
-
icon: /*#__PURE__*/React.createElement(
|
|
71
|
+
icon: /*#__PURE__*/React.createElement(AutomationIcon, {
|
|
72
|
+
spacing: "spacious",
|
|
73
|
+
LEGACY_fallbackIcon: AutomationManualTriggersGlyph,
|
|
74
|
+
color: "currentColor",
|
|
71
75
|
label: automationActionIconLabel
|
|
72
76
|
}),
|
|
73
77
|
testId: "smart-action-automation-action",
|
|
@@ -8,7 +8,7 @@ import React, { useCallback, useState } from 'react';
|
|
|
8
8
|
import Action from '../action';
|
|
9
9
|
import { messages } from '../../../../../messages';
|
|
10
10
|
import { FormattedMessage } from 'react-intl-next';
|
|
11
|
-
import LinkIcon from '@atlaskit/icon/
|
|
11
|
+
import LinkIcon from '@atlaskit/icon/core/migration/link';
|
|
12
12
|
import { useFlexibleUiAnalyticsContext, useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
13
13
|
import { ActionName } from '../../../../../constants';
|
|
14
14
|
import useInvokeClientAction from '../../../../../state/hooks/use-invoke-client-action';
|
|
@@ -62,12 +62,12 @@ var CopyLinkAction = function CopyLinkAction(_ref) {
|
|
|
62
62
|
}
|
|
63
63
|
}, [analytics, data, invoke, onClickCallback]);
|
|
64
64
|
return data ? /*#__PURE__*/React.createElement(Action, _extends({
|
|
65
|
-
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.copy_url_to_clipboard)
|
|
66
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
|
|
67
|
-
,
|
|
65
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.copy_url_to_clipboard),
|
|
68
66
|
icon: /*#__PURE__*/React.createElement(LinkIcon, {
|
|
67
|
+
color: "currentColor",
|
|
69
68
|
label: "copy url",
|
|
70
|
-
|
|
69
|
+
LEGACY_size: "medium",
|
|
70
|
+
spacing: "spacious"
|
|
71
71
|
}),
|
|
72
72
|
onClick: onClick,
|
|
73
73
|
testId: "smart-action-copy-link-action",
|
|
@@ -3,13 +3,13 @@ import React from 'react';
|
|
|
3
3
|
import Action from '../action';
|
|
4
4
|
import { messages } from '../../../../../messages';
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
|
-
import CrossIcon from '@atlaskit/icon/
|
|
6
|
+
import CrossIcon from '@atlaskit/icon/core/migration/close--cross';
|
|
7
7
|
var DeleteAction = function DeleteAction(props) {
|
|
8
8
|
return /*#__PURE__*/React.createElement(Action, _extends({
|
|
9
|
-
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.delete)
|
|
10
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
|
|
11
|
-
,
|
|
9
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.delete),
|
|
12
10
|
icon: /*#__PURE__*/React.createElement(CrossIcon, {
|
|
11
|
+
color: "currentColor",
|
|
12
|
+
spacing: "spacious",
|
|
13
13
|
label: "Delete"
|
|
14
14
|
}),
|
|
15
15
|
testId: "smart-action-delete-action",
|
|
@@ -11,7 +11,7 @@ import { messages } from '../../../../../messages';
|
|
|
11
11
|
import Action from '../action';
|
|
12
12
|
import { useFlexibleUiAnalyticsContext, useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
13
13
|
import useInvokeClientAction from '../../../../../state/hooks/use-invoke-client-action';
|
|
14
|
-
import DownloadIcon from '@atlaskit/icon/
|
|
14
|
+
import DownloadIcon from '@atlaskit/icon/core/migration/download';
|
|
15
15
|
var DownloadAction = function DownloadAction(_ref) {
|
|
16
16
|
var _context$actions;
|
|
17
17
|
var onClickCallback = _ref.onClick,
|
|
@@ -57,10 +57,10 @@ var DownloadAction = function DownloadAction(_ref) {
|
|
|
57
57
|
var label = isStackItem ? messages.download_file : messages.download;
|
|
58
58
|
var tooltipMessage = isStackItem ? messages.download_description : messages.download;
|
|
59
59
|
return data ? /*#__PURE__*/React.createElement(Action, _extends({
|
|
60
|
-
content: /*#__PURE__*/React.createElement(FormattedMessage, label)
|
|
61
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
|
|
62
|
-
,
|
|
60
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, label),
|
|
63
61
|
icon: /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
62
|
+
spacing: "spacious",
|
|
63
|
+
color: "currentColor",
|
|
64
64
|
label: "Download"
|
|
65
65
|
}),
|
|
66
66
|
onClick: onClick,
|
|
@@ -3,13 +3,13 @@ import React from 'react';
|
|
|
3
3
|
import Action from '../action';
|
|
4
4
|
import { messages } from '../../../../../messages';
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
|
-
import EditIcon from '@atlaskit/icon/
|
|
6
|
+
import EditIcon from '@atlaskit/icon/core/migration/edit';
|
|
7
7
|
var EditAction = function EditAction(props) {
|
|
8
8
|
return /*#__PURE__*/React.createElement(Action, _extends({
|
|
9
|
-
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.edit)
|
|
10
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
|
|
11
|
-
,
|
|
9
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.edit),
|
|
12
10
|
icon: /*#__PURE__*/React.createElement(EditIcon, {
|
|
11
|
+
color: "currentColor",
|
|
12
|
+
spacing: "spacious",
|
|
13
13
|
label: "Edit"
|
|
14
14
|
}),
|
|
15
15
|
testId: "smart-action-edit-action",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import Icon from '@atlaskit/icon';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
|
|
4
|
+
import GoalGlyph from '@atlaskit/icon/core/goal';
|
|
5
|
+
var LegacyGoalGlyph = function LegacyGoalGlyph(props) {
|
|
5
6
|
return /*#__PURE__*/React.createElement("svg", {
|
|
6
7
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7
8
|
width: "16",
|
|
@@ -15,8 +16,15 @@ var GoalGlyph = function GoalGlyph(props) {
|
|
|
15
16
|
fill: "var(--ds-icon, #44546F)"
|
|
16
17
|
}));
|
|
17
18
|
};
|
|
18
|
-
|
|
19
|
+
var LegacyGoalIcon = function LegacyGoalIcon(props) {
|
|
19
20
|
return /*#__PURE__*/React.createElement(Icon, _extends({
|
|
20
|
-
glyph:
|
|
21
|
+
glyph: LegacyGoalGlyph
|
|
22
|
+
}, props));
|
|
23
|
+
};
|
|
24
|
+
export var GoalIcon = function GoalIcon(props) {
|
|
25
|
+
return /*#__PURE__*/React.createElement(GoalGlyph, _extends({
|
|
26
|
+
color: "var(--ds-icon, #44546F)",
|
|
27
|
+
LEGACY_fallbackIcon: LegacyGoalIcon,
|
|
28
|
+
spacing: "spacious"
|
|
21
29
|
}, props));
|
|
22
30
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import Icon from '@atlaskit/icon';
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import ProjectIcon from '@atlaskit/icon/core/project';
|
|
4
5
|
var ProjectsGlyph = function ProjectsGlyph(props) {
|
|
5
6
|
return /*#__PURE__*/React.createElement("svg", {
|
|
6
7
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -15,8 +16,15 @@ var ProjectsGlyph = function ProjectsGlyph(props) {
|
|
|
15
16
|
fill: "var(--ds-icon, #44546F)"
|
|
16
17
|
}));
|
|
17
18
|
};
|
|
18
|
-
|
|
19
|
+
var LegacyProjectsIcon = function LegacyProjectsIcon(props) {
|
|
19
20
|
return /*#__PURE__*/React.createElement(Icon, _extends({
|
|
20
21
|
glyph: ProjectsGlyph
|
|
21
22
|
}, props));
|
|
23
|
+
};
|
|
24
|
+
export var ProjectsIcon = function ProjectsIcon(props) {
|
|
25
|
+
return /*#__PURE__*/React.createElement(ProjectIcon, _extends({
|
|
26
|
+
color: "var(--ds-icon, #44546F)",
|
|
27
|
+
LEGACY_fallbackIcon: LegacyProjectsIcon,
|
|
28
|
+
spacing: "spacious"
|
|
29
|
+
}, props));
|
|
22
30
|
};
|
|
@@ -6,7 +6,7 @@ var _excluded = ["onClick"];
|
|
|
6
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
7
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8
8
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9
|
-
import MediaServicesActualSizeIcon from '@atlaskit/icon/
|
|
9
|
+
import MediaServicesActualSizeIcon from '@atlaskit/icon/core/migration/grow-diagonal--media-services-actual-size';
|
|
10
10
|
import React, { useCallback } from 'react';
|
|
11
11
|
import { FormattedMessage } from 'react-intl-next';
|
|
12
12
|
import { ActionName } from '../../../../../constants';
|
|
@@ -63,10 +63,10 @@ var PreviewAction = function PreviewAction(_ref) {
|
|
|
63
63
|
var isStackItem = props.as === 'stack-item';
|
|
64
64
|
var tooltipMessage = isStackItem ? messages.preview_description : messages.preview_improved;
|
|
65
65
|
return data ? /*#__PURE__*/React.createElement(Action, _extends({
|
|
66
|
-
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_improved)
|
|
67
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20003
|
|
68
|
-
,
|
|
66
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_improved),
|
|
69
67
|
icon: /*#__PURE__*/React.createElement(MediaServicesActualSizeIcon, {
|
|
68
|
+
color: "currentColor",
|
|
69
|
+
spacing: "spacious",
|
|
70
70
|
label: "Open preview"
|
|
71
71
|
}),
|
|
72
72
|
onClick: onClick,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import ChildIssuesIcon from '@atlaskit/icon/
|
|
7
|
+
import ChildIssuesIcon from '@atlaskit/icon/core/migration/child-issues';
|
|
8
8
|
var rotateSvg = css({
|
|
9
9
|
transform: 'rotate(180deg)',
|
|
10
10
|
display: 'inline-block'
|
|
@@ -17,6 +17,8 @@ var RelatedLinksActionIcon = function RelatedLinksActionIcon() {
|
|
|
17
17
|
return jsx("span", {
|
|
18
18
|
css: rotateSvg
|
|
19
19
|
}, jsx(ChildIssuesIcon, {
|
|
20
|
+
color: "currentColor",
|
|
21
|
+
spacing: "spacious",
|
|
20
22
|
label: "View recent links..."
|
|
21
23
|
}));
|
|
22
24
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ErrorIcon from '@atlaskit/icon/
|
|
1
|
+
import ErrorIcon from '@atlaskit/icon/utility/migration/error';
|
|
2
2
|
import { Box, Inline, xcss } from '@atlaskit/primitives';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import MotionWrapper from '../../../common/motion-wrapper';
|
|
@@ -18,6 +18,9 @@ var containerStyles = xcss({
|
|
|
18
18
|
var errorStyles = xcss({
|
|
19
19
|
backgroundColor: 'color.background.danger'
|
|
20
20
|
});
|
|
21
|
+
var errorContentStyles = xcss({
|
|
22
|
+
paddingInlineStart: 'space.025'
|
|
23
|
+
});
|
|
21
24
|
var titleStyles = xcss({
|
|
22
25
|
color: 'color.text.subtle',
|
|
23
26
|
fontSize: '12px',
|
|
@@ -28,16 +31,14 @@ var titleStyles = xcss({
|
|
|
28
31
|
var getIcon = function getIcon(appearance) {
|
|
29
32
|
switch (appearance) {
|
|
30
33
|
case 'error':
|
|
31
|
-
return (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
})
|
|
40
|
-
);
|
|
34
|
+
return /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
35
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
36
|
+
spacing: "compact",
|
|
37
|
+
label: "Error",
|
|
38
|
+
LEGACY_size: "small",
|
|
39
|
+
testId: "action-error-icon",
|
|
40
|
+
LEGACY_margin: "0 ".concat("var(--ds-space-negative-025, -2px)")
|
|
41
|
+
});
|
|
41
42
|
default:
|
|
42
43
|
return null;
|
|
43
44
|
}
|
|
@@ -58,7 +59,8 @@ export var ActionFooter = function ActionFooter(_ref) {
|
|
|
58
59
|
}, /*#__PURE__*/React.createElement(Inline, {
|
|
59
60
|
alignBlock: "start",
|
|
60
61
|
grow: "fill",
|
|
61
|
-
space: "space.
|
|
62
|
+
space: "space.075",
|
|
63
|
+
xcss: errorContentStyles
|
|
62
64
|
}, message.icon || getIcon(message.appearance), /*#__PURE__*/React.createElement(Box, {
|
|
63
65
|
xcss: titleStyles
|
|
64
66
|
}, message.title))));
|
package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js
CHANGED
|
@@ -3,7 +3,8 @@ import Tooltip from '@atlaskit/tooltip';
|
|
|
3
3
|
import { di } from 'react-magnetic-di';
|
|
4
4
|
import { FormattedMessage } from 'react-intl-next';
|
|
5
5
|
import { Box, Inline } from '@atlaskit/primitives';
|
|
6
|
-
import AIIcon from '
|
|
6
|
+
import AIIcon from '@atlaskit/icon/core/atlassian-intelligence';
|
|
7
|
+
import LegacyAIIcon from '../../../../../common/ai-icon';
|
|
7
8
|
import { InfoIcon } from '../icons/info';
|
|
8
9
|
import { messages } from '../../../../../../messages';
|
|
9
10
|
import useAISummaryAction from '../../../../../../state/hooks/use-ai-summary-action';
|
|
@@ -31,7 +32,8 @@ export var AIFooterMetadata = function AIFooterMetadata(_ref) {
|
|
|
31
32
|
}));
|
|
32
33
|
}), /*#__PURE__*/React.createElement(AIIcon, {
|
|
33
34
|
label: "AI",
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
LEGACY_size: "small",
|
|
36
|
+
LEGACY_fallbackIcon: LegacyAIIcon,
|
|
37
|
+
color: "var(--ds-icon-subtle, #626F86)"
|
|
36
38
|
}));
|
|
37
39
|
};
|
|
@@ -10,7 +10,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
10
10
|
import LinkWarningModal from './LinkWarningModal';
|
|
11
11
|
var PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "30.
|
|
13
|
+
packageVersion: "30.1.1",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "30.
|
|
3
|
+
"version": "30.1.1",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/link-analytics": "^8.5.0",
|
|
44
44
|
"@atlaskit/link-client-extension": "^2.4.0",
|
|
45
45
|
"@atlaskit/link-extractors": "^1.9.0",
|
|
46
|
-
"@atlaskit/linking-common": "^
|
|
46
|
+
"@atlaskit/linking-common": "^6.0.0",
|
|
47
47
|
"@atlaskit/linking-types": "^9.0.0",
|
|
48
48
|
"@atlaskit/logo": "^14.3.0",
|
|
49
49
|
"@atlaskit/lozenge": "^11.11.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@atlaskit/spinner": "^16.3.0",
|
|
59
59
|
"@atlaskit/textarea": "^5.6.0",
|
|
60
60
|
"@atlaskit/textfield": "^6.5.0",
|
|
61
|
-
"@atlaskit/theme": "^13.
|
|
61
|
+
"@atlaskit/theme": "^13.1.0",
|
|
62
62
|
"@atlaskit/tokens": "^2.0.0",
|
|
63
63
|
"@atlaskit/tooltip": "^18.8.0",
|
|
64
64
|
"@atlaskit/ufo": "^0.3.0",
|
|
@@ -159,6 +159,9 @@
|
|
|
159
159
|
},
|
|
160
160
|
"platform-smart-card-use-ai-smartlink-summary-agent": {
|
|
161
161
|
"type": "boolean"
|
|
162
|
+
},
|
|
163
|
+
"platform-visual-refresh-icons": {
|
|
164
|
+
"type": "boolean"
|
|
162
165
|
}
|
|
163
166
|
}
|
|
164
167
|
}
|