@atlaskit/smart-card 26.50.4 → 26.50.5
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 +7 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/ai-summary/index.js +5 -3
- package/dist/cjs/view/common/ai-summary/ulist.js +25 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/ai-summary/index.js +5 -3
- package/dist/es2019/view/common/ai-summary/ulist.js +15 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/ai-summary/index.js +5 -3
- package/dist/esm/view/common/ai-summary/ulist.js +18 -0
- package/dist/types/view/common/ai-summary/ulist.d.ts +4 -0
- package/dist/types-ts4.5/view/common/ai-summary/ulist.d.ts +4 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 26.50.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#82264](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/82264) [`8c6674a35d91`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8c6674a35d91) - AI summary: Reduce list indentation inside summary
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 26.50.4
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
22
22
|
var context = exports.context = {
|
|
23
23
|
componentName: 'smart-cards',
|
|
24
24
|
packageName: "@atlaskit/smart-card",
|
|
25
|
-
packageVersion: "26.50.
|
|
25
|
+
packageVersion: "26.50.5"
|
|
26
26
|
};
|
|
27
27
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
28
28
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
|
|
|
17
17
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
18
18
|
var PACKAGE_DATA = {
|
|
19
19
|
packageName: "@atlaskit/smart-card",
|
|
20
|
-
packageVersion: "26.50.
|
|
20
|
+
packageVersion: "26.50.5",
|
|
21
21
|
componentName: 'linkUrl'
|
|
22
22
|
};
|
|
23
23
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _markdownToJsx = _interopRequireDefault(require("markdown-to-jsx"));
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _aiStateIndicator = _interopRequireDefault(require("../../FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator"));
|
|
12
|
+
var _ulist = _interopRequireDefault(require("./ulist"));
|
|
12
13
|
/** @jsx jsx */
|
|
13
14
|
|
|
14
15
|
var AITooltipIcon = function AITooltipIcon() {
|
|
@@ -18,7 +19,7 @@ var AITooltipIcon = function AITooltipIcon() {
|
|
|
18
19
|
testId: "ai-tooltip"
|
|
19
20
|
});
|
|
20
21
|
};
|
|
21
|
-
var
|
|
22
|
+
var AISummaryCSSStyles = (0, _react2.css)({
|
|
22
23
|
fontSize: '0.75rem',
|
|
23
24
|
lineHeight: '1rem',
|
|
24
25
|
wordWrap: 'break-word',
|
|
@@ -46,12 +47,13 @@ var AISummary = function AISummary(_ref) {
|
|
|
46
47
|
}
|
|
47
48
|
return (0, _react2.jsx)(_markdownToJsx.default, {
|
|
48
49
|
"data-testid": testId,
|
|
49
|
-
css: [
|
|
50
|
+
css: [AISummaryCSSStyles, overrideCss],
|
|
50
51
|
children: showIcon ? "".concat(content, " <Icon />") : content,
|
|
51
52
|
options: {
|
|
52
53
|
forceWrapper: true,
|
|
53
54
|
overrides: {
|
|
54
|
-
Icon: iconComponent !== null && iconComponent !== void 0 ? iconComponent : AITooltipIcon
|
|
55
|
+
Icon: iconComponent !== null && iconComponent !== void 0 ? iconComponent : AITooltipIcon,
|
|
56
|
+
ul: _ulist.default
|
|
55
57
|
}
|
|
56
58
|
},
|
|
57
59
|
style: {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
var _react2 = require("@emotion/react");
|
|
12
|
+
var _excluded = ["children"];
|
|
13
|
+
/** @jsx jsx */
|
|
14
|
+
var listStyles = (0, _react2.css)({
|
|
15
|
+
paddingLeft: "var(--ds-space-250, 20px)",
|
|
16
|
+
paddingInlineStart: "var(--ds-space-250, 20px)"
|
|
17
|
+
});
|
|
18
|
+
var UList = function UList(_ref) {
|
|
19
|
+
var children = _ref.children,
|
|
20
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
21
|
+
return (0, _react2.jsx)("ul", (0, _extends2.default)({
|
|
22
|
+
css: listStyles
|
|
23
|
+
}, props), children);
|
|
24
|
+
};
|
|
25
|
+
var _default = exports.default = UList;
|
|
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export const context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "26.50.
|
|
7
|
+
packageVersion: "26.50.5"
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -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: "26.50.
|
|
10
|
+
packageVersion: "26.50.5",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -3,12 +3,13 @@ import React from 'react';
|
|
|
3
3
|
import Markdown from 'markdown-to-jsx';
|
|
4
4
|
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import AIStateIndicator from '../../FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator';
|
|
6
|
+
import UList from './ulist';
|
|
6
7
|
const AITooltipIcon = () => jsx(AIStateIndicator, {
|
|
7
8
|
appearance: "icon-only",
|
|
8
9
|
state: "done",
|
|
9
10
|
testId: "ai-tooltip"
|
|
10
11
|
});
|
|
11
|
-
const
|
|
12
|
+
const AISummaryCSSStyles = css({
|
|
12
13
|
fontSize: '0.75rem',
|
|
13
14
|
lineHeight: '1rem',
|
|
14
15
|
wordWrap: 'break-word',
|
|
@@ -33,12 +34,13 @@ const AISummary = ({
|
|
|
33
34
|
}
|
|
34
35
|
return jsx(Markdown, {
|
|
35
36
|
"data-testid": testId,
|
|
36
|
-
css: [
|
|
37
|
+
css: [AISummaryCSSStyles, overrideCss],
|
|
37
38
|
children: showIcon ? `${content} <Icon />` : content,
|
|
38
39
|
options: {
|
|
39
40
|
forceWrapper: true,
|
|
40
41
|
overrides: {
|
|
41
|
-
Icon: iconComponent !== null && iconComponent !== void 0 ? iconComponent : AITooltipIcon
|
|
42
|
+
Icon: iconComponent !== null && iconComponent !== void 0 ? iconComponent : AITooltipIcon,
|
|
43
|
+
ul: UList
|
|
42
44
|
}
|
|
43
45
|
},
|
|
44
46
|
style: {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
5
|
+
const listStyles = css({
|
|
6
|
+
paddingLeft: "var(--ds-space-250, 20px)",
|
|
7
|
+
paddingInlineStart: "var(--ds-space-250, 20px)"
|
|
8
|
+
});
|
|
9
|
+
const UList = ({
|
|
10
|
+
children,
|
|
11
|
+
...props
|
|
12
|
+
}) => jsx("ul", _extends({
|
|
13
|
+
css: listStyles
|
|
14
|
+
}, props), children);
|
|
15
|
+
export default UList;
|
|
@@ -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: "26.50.
|
|
18
|
+
packageVersion: "26.50.5"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -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: "26.50.
|
|
13
|
+
packageVersion: "26.50.5",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import Markdown from 'markdown-to-jsx';
|
|
4
4
|
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import AIStateIndicator from '../../FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator';
|
|
6
|
+
import UList from './ulist';
|
|
6
7
|
var AITooltipIcon = function AITooltipIcon() {
|
|
7
8
|
return jsx(AIStateIndicator, {
|
|
8
9
|
appearance: "icon-only",
|
|
@@ -10,7 +11,7 @@ var AITooltipIcon = function AITooltipIcon() {
|
|
|
10
11
|
testId: "ai-tooltip"
|
|
11
12
|
});
|
|
12
13
|
};
|
|
13
|
-
var
|
|
14
|
+
var AISummaryCSSStyles = css({
|
|
14
15
|
fontSize: '0.75rem',
|
|
15
16
|
lineHeight: '1rem',
|
|
16
17
|
wordWrap: 'break-word',
|
|
@@ -38,12 +39,13 @@ var AISummary = function AISummary(_ref) {
|
|
|
38
39
|
}
|
|
39
40
|
return jsx(Markdown, {
|
|
40
41
|
"data-testid": testId,
|
|
41
|
-
css: [
|
|
42
|
+
css: [AISummaryCSSStyles, overrideCss],
|
|
42
43
|
children: showIcon ? "".concat(content, " <Icon />") : content,
|
|
43
44
|
options: {
|
|
44
45
|
forceWrapper: true,
|
|
45
46
|
overrides: {
|
|
46
|
-
Icon: iconComponent !== null && iconComponent !== void 0 ? iconComponent : AITooltipIcon
|
|
47
|
+
Icon: iconComponent !== null && iconComponent !== void 0 ? iconComponent : AITooltipIcon,
|
|
48
|
+
ul: UList
|
|
47
49
|
}
|
|
48
50
|
},
|
|
49
51
|
style: {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["children"];
|
|
4
|
+
/** @jsx jsx */
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
7
|
+
var listStyles = css({
|
|
8
|
+
paddingLeft: "var(--ds-space-250, 20px)",
|
|
9
|
+
paddingInlineStart: "var(--ds-space-250, 20px)"
|
|
10
|
+
});
|
|
11
|
+
var UList = function UList(_ref) {
|
|
12
|
+
var children = _ref.children,
|
|
13
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
14
|
+
return jsx("ul", _extends({
|
|
15
|
+
css: listStyles
|
|
16
|
+
}, props), children);
|
|
17
|
+
};
|
|
18
|
+
export default UList;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "26.50.
|
|
3
|
+
"version": "26.50.5",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
52
52
|
"@atlaskit/platform-feature-flags": "^0.2.1",
|
|
53
53
|
"@atlaskit/popup": "^1.13.0",
|
|
54
|
-
"@atlaskit/primitives": "^5.
|
|
54
|
+
"@atlaskit/primitives": "^5.1.0",
|
|
55
55
|
"@atlaskit/spinner": "^16.0.0",
|
|
56
56
|
"@atlaskit/theme": "^12.6.0",
|
|
57
|
-
"@atlaskit/tokens": "^1.
|
|
57
|
+
"@atlaskit/tokens": "^1.42.0",
|
|
58
58
|
"@atlaskit/tooltip": "^18.1.0",
|
|
59
59
|
"@atlaskit/ufo": "^0.2.0",
|
|
60
60
|
"@babel/runtime": "^7.0.0",
|