@atlaskit/smart-card 38.0.0 → 38.1.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 +8 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +5 -1
- package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +5 -1
- package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/external.js +16 -4
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +5 -1
- package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +5 -1
- package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/external.js +20 -4
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +5 -1
- package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +5 -1
- package/dist/esm/view/FlexibleCard/components/elements/text/index.js +3 -1
- package/dist/esm/view/FlexibleCard/external.js +16 -4
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/extractors/common/context/index.d.ts +3 -3
- package/dist/types/extractors/embed/index.d.ts +1 -1
- package/dist/types/extractors/flexible/extract-preview.d.ts +1 -1
- package/dist/types/extractors/flexible/icon/extract-provider-icon.d.ts +1 -1
- package/dist/types/extractors/flexible/icon/index.d.ts +1 -1
- package/dist/types/extractors/inline/index.d.ts +1 -1
- package/dist/types/utils/mocks.d.ts +1 -1
- package/dist/types/view/EmbedModal/components/link-info/link-info-button/types.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/elements/badge/types.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/elements/date-time/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/date-time/types.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/elements/text/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/text/types.d.ts +4 -0
- package/dist/types/view/FlexibleCard/external.d.ts +7 -4
- package/dist/types/view/FlexibleCard/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/utils.d.ts +1 -1
- package/dist/types-ts4.5/extractors/common/context/index.d.ts +3 -3
- package/dist/types-ts4.5/extractors/embed/index.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/extract-preview.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/icon/extract-provider-icon.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/icon/index.d.ts +1 -1
- package/dist/types-ts4.5/extractors/inline/index.d.ts +1 -1
- package/dist/types-ts4.5/utils/mocks.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedModal/components/link-info/link-info-button/types.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/badge/types.d.ts +4 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/date-time/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/date-time/types.d.ts +4 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/text/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/text/types.d.ts +4 -0
- package/dist/types-ts4.5/view/FlexibleCard/external.d.ts +7 -4
- package/dist/types-ts4.5/view/FlexibleCard/types.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/utils.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 38.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#154319](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/154319)
|
|
8
|
+
[`f9f36cfaadb03`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f9f36cfaadb03) -
|
|
9
|
+
Add color props to elements to override the default color
|
|
10
|
+
|
|
3
11
|
## 38.0.0
|
|
4
12
|
|
|
5
13
|
### Major Changes
|
|
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
11
11
|
var context = exports.context = {
|
|
12
12
|
componentName: 'smart-cards',
|
|
13
13
|
packageName: "@atlaskit/smart-card",
|
|
14
|
-
packageVersion: "38.
|
|
14
|
+
packageVersion: "38.1.0"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -90,7 +90,8 @@ var BadgeRefreshNew = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
90
90
|
name = _ref.name,
|
|
91
91
|
_ref$testId = _ref.testId,
|
|
92
92
|
testId = _ref$testId === void 0 ? 'smart-element-badge' : _ref$testId,
|
|
93
|
-
url = _ref.url
|
|
93
|
+
url = _ref.url,
|
|
94
|
+
color = _ref.color;
|
|
94
95
|
var formattedMessageOrLabel = getFormattedMessageFromIcon(icon) || label;
|
|
95
96
|
var badgeIcon = renderAtlaskitIcon(icon, testId) || renderImageIcon(url, testId);
|
|
96
97
|
if (!formattedMessageOrLabel || !badgeIcon) {
|
|
@@ -101,6 +102,9 @@ var BadgeRefreshNew = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
101
102
|
"data-smart-element-badge": true,
|
|
102
103
|
"data-testid": testId,
|
|
103
104
|
ref: ref,
|
|
105
|
+
style: {
|
|
106
|
+
color: color && (0, _platformFeatureFlags.fg)('platform-linking-additional-flexible-element-props') ? color : undefined
|
|
107
|
+
},
|
|
104
108
|
className: (0, _runtime.ax)([styles.container, colorMap[appearance]])
|
|
105
109
|
}, !hideIcon && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
106
110
|
as: "span",
|
|
@@ -52,7 +52,8 @@ var DateTime = function DateTime(_ref) {
|
|
|
52
52
|
testId = _ref$testId === void 0 ? 'smart-element-date-time' : _ref$testId,
|
|
53
53
|
text = _ref.text,
|
|
54
54
|
_ref$hideDatePrefix = _ref.hideDatePrefix,
|
|
55
|
-
hideDatePrefix = _ref$hideDatePrefix === void 0 ? false : _ref$hideDatePrefix
|
|
55
|
+
hideDatePrefix = _ref$hideDatePrefix === void 0 ? false : _ref$hideDatePrefix,
|
|
56
|
+
color = _ref.color;
|
|
56
57
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
57
58
|
formatRelativeTime = _useIntl.formatRelativeTime,
|
|
58
59
|
formatDate = _useIntl.formatDate;
|
|
@@ -91,6 +92,9 @@ var DateTime = function DateTime(_ref) {
|
|
|
91
92
|
}));
|
|
92
93
|
}
|
|
93
94
|
return /*#__PURE__*/React.createElement("span", {
|
|
95
|
+
style: {
|
|
96
|
+
color: color && (0, _platformFeatureFlags.fg)('platform-linking-additional-flexible-element-props') ? color : undefined
|
|
97
|
+
},
|
|
94
98
|
"data-separator": true,
|
|
95
99
|
"data-smart-element": name,
|
|
96
100
|
"data-smart-element-date-time": true,
|
|
@@ -33,7 +33,8 @@ var Text = function Text(_ref) {
|
|
|
33
33
|
_ref$testId = _ref.testId,
|
|
34
34
|
testId = _ref$testId === void 0 ? 'smart-element-text' : _ref$testId,
|
|
35
35
|
_ref$hideFormat = _ref.hideFormat,
|
|
36
|
-
hideFormat = _ref$hideFormat === void 0 ? false : _ref$hideFormat
|
|
36
|
+
hideFormat = _ref$hideFormat === void 0 ? false : _ref$hideFormat,
|
|
37
|
+
color = _ref.color;
|
|
37
38
|
if (!message && !content) {
|
|
38
39
|
return null;
|
|
39
40
|
}
|
|
@@ -49,6 +50,7 @@ var Text = function Text(_ref) {
|
|
|
49
50
|
,
|
|
50
51
|
className: (0, _runtime.ax)([!(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && "_11c8dcr7 _1reo15vq _18m915vq _syaz131l _o5724jg8 _1e0ccj1k _1bto1l2s _1nmz1hna _sudp1e54", (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && "_11c81o8v _1reo15vq _18m915vq _syaz1gjq _o5724jg8 _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _sudp1e54", "_1yyjr31u _102klxil", className]),
|
|
51
52
|
style: {
|
|
53
|
+
color: color && (0, _platformFeatureFlags.fg)('platform-linking-additional-flexible-element-props') ? color : undefined,
|
|
52
54
|
"--_1erfju8": (0, _runtime.ix)(maxLines),
|
|
53
55
|
"--_ohw86c": (0, _runtime.ix)("calc(".concat(maxLines, " * 1rem)"))
|
|
54
56
|
}
|
|
@@ -39,7 +39,12 @@ var ChecklistProgressElement = exports.ChecklistProgressElement = function Check
|
|
|
39
39
|
var CollaboratorGroupElement = exports.CollaboratorGroupElement = function CollaboratorGroupElement() {
|
|
40
40
|
return /*#__PURE__*/_react.default.createElement(_elements.CollaboratorGroup, null);
|
|
41
41
|
};
|
|
42
|
-
var CommentCountElement = exports.CommentCountElement = function CommentCountElement() {
|
|
42
|
+
var CommentCountElement = exports.CommentCountElement = function CommentCountElement(props) {
|
|
43
|
+
if ((0, _platformFeatureFlags.fg)('platform-linking-additional-flexible-element-props')) {
|
|
44
|
+
return /*#__PURE__*/_react.default.createElement(_elements.CommentCount, {
|
|
45
|
+
color: props === null || props === void 0 ? void 0 : props.color
|
|
46
|
+
});
|
|
47
|
+
}
|
|
43
48
|
return /*#__PURE__*/_react.default.createElement(_elements.CommentCount, null);
|
|
44
49
|
};
|
|
45
50
|
var CreatedOnElement = exports.CreatedOnElement = function CreatedOnElement() {
|
|
@@ -72,7 +77,8 @@ var ModifiedByElement = exports.ModifiedByElement = function ModifiedByElement()
|
|
|
72
77
|
var ModifiedOnElement = exports.ModifiedOnElement = function ModifiedOnElement(props) {
|
|
73
78
|
if ((0, _platformFeatureFlags.fg)('platform-linking-additional-flexible-element-props')) {
|
|
74
79
|
return /*#__PURE__*/_react.default.createElement(_elements.ModifiedOn, {
|
|
75
|
-
hideDatePrefix: props === null || props === void 0 ? void 0 : props.hideDatePrefix
|
|
80
|
+
hideDatePrefix: props === null || props === void 0 ? void 0 : props.hideDatePrefix,
|
|
81
|
+
color: props === null || props === void 0 ? void 0 : props.color
|
|
76
82
|
});
|
|
77
83
|
}
|
|
78
84
|
return /*#__PURE__*/_react.default.createElement(_elements.ModifiedOn, null);
|
|
@@ -80,7 +86,8 @@ var ModifiedOnElement = exports.ModifiedOnElement = function ModifiedOnElement(p
|
|
|
80
86
|
var OwnedByElement = exports.OwnedByElement = function OwnedByElement(props) {
|
|
81
87
|
if ((0, _platformFeatureFlags.fg)('platform-linking-additional-flexible-element-props')) {
|
|
82
88
|
return /*#__PURE__*/_react.default.createElement(_elements.OwnedBy, {
|
|
83
|
-
hideFormat: props === null || props === void 0 ? void 0 : props.hideFormat
|
|
89
|
+
hideFormat: props === null || props === void 0 ? void 0 : props.hideFormat,
|
|
90
|
+
color: props === null || props === void 0 ? void 0 : props.color
|
|
84
91
|
});
|
|
85
92
|
}
|
|
86
93
|
return /*#__PURE__*/_react.default.createElement(_elements.OwnedBy, null);
|
|
@@ -105,7 +112,12 @@ var ProgrammingLanguageElement = exports.ProgrammingLanguageElement = function P
|
|
|
105
112
|
var ProviderElement = exports.ProviderElement = function ProviderElement() {
|
|
106
113
|
return /*#__PURE__*/_react.default.createElement(_elements.Provider, null);
|
|
107
114
|
};
|
|
108
|
-
var ReactCountElement = exports.ReactCountElement = function ReactCountElement() {
|
|
115
|
+
var ReactCountElement = exports.ReactCountElement = function ReactCountElement(props) {
|
|
116
|
+
if ((0, _platformFeatureFlags.fg)('platform-linking-additional-flexible-element-props')) {
|
|
117
|
+
return /*#__PURE__*/_react.default.createElement(_elements.ReactCount, {
|
|
118
|
+
color: props === null || props === void 0 ? void 0 : props.color
|
|
119
|
+
});
|
|
120
|
+
}
|
|
109
121
|
return /*#__PURE__*/_react.default.createElement(_elements.ReactCount, null);
|
|
110
122
|
};
|
|
111
123
|
var ReadTimeElement = exports.ReadTimeElement = function ReadTimeElement() {
|
|
@@ -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: "38.
|
|
23
|
+
packageVersion: "38.1.0",
|
|
24
24
|
componentName: 'linkUrl'
|
|
25
25
|
};
|
|
26
26
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -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: "38.
|
|
5
|
+
packageVersion: "38.1.0"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -88,7 +88,8 @@ const BadgeRefreshNew = /*#__PURE__*/forwardRef(({
|
|
|
88
88
|
label,
|
|
89
89
|
name,
|
|
90
90
|
testId = 'smart-element-badge',
|
|
91
|
-
url
|
|
91
|
+
url,
|
|
92
|
+
color
|
|
92
93
|
}, ref) => {
|
|
93
94
|
const formattedMessageOrLabel = getFormattedMessageFromIcon(icon) || label;
|
|
94
95
|
const badgeIcon = renderAtlaskitIcon(icon, testId) || renderImageIcon(url, testId);
|
|
@@ -100,6 +101,9 @@ const BadgeRefreshNew = /*#__PURE__*/forwardRef(({
|
|
|
100
101
|
"data-smart-element-badge": true,
|
|
101
102
|
"data-testid": testId,
|
|
102
103
|
ref: ref,
|
|
104
|
+
style: {
|
|
105
|
+
color: color && fg('platform-linking-additional-flexible-element-props') ? color : undefined
|
|
106
|
+
},
|
|
103
107
|
className: ax([styles.container, colorMap[appearance]])
|
|
104
108
|
}, !hideIcon && /*#__PURE__*/React.createElement(Box, {
|
|
105
109
|
as: "span",
|
|
@@ -40,7 +40,8 @@ const DateTime = ({
|
|
|
40
40
|
type,
|
|
41
41
|
testId = 'smart-element-date-time',
|
|
42
42
|
text,
|
|
43
|
-
hideDatePrefix = false
|
|
43
|
+
hideDatePrefix = false,
|
|
44
|
+
color
|
|
44
45
|
}) => {
|
|
45
46
|
const {
|
|
46
47
|
formatRelativeTime,
|
|
@@ -82,6 +83,9 @@ const DateTime = ({
|
|
|
82
83
|
}));
|
|
83
84
|
}
|
|
84
85
|
return /*#__PURE__*/React.createElement("span", {
|
|
86
|
+
style: {
|
|
87
|
+
color: color && fg('platform-linking-additional-flexible-element-props') ? color : undefined
|
|
88
|
+
},
|
|
85
89
|
"data-separator": true,
|
|
86
90
|
"data-smart-element": name,
|
|
87
91
|
"data-smart-element-date-time": true,
|
|
@@ -21,7 +21,8 @@ const Text = ({
|
|
|
21
21
|
name,
|
|
22
22
|
className,
|
|
23
23
|
testId = 'smart-element-text',
|
|
24
|
-
hideFormat = false
|
|
24
|
+
hideFormat = false,
|
|
25
|
+
color
|
|
25
26
|
}) => {
|
|
26
27
|
if (!message && !content) {
|
|
27
28
|
return null;
|
|
@@ -38,6 +39,7 @@ const Text = ({
|
|
|
38
39
|
,
|
|
39
40
|
className: ax([!fg('platform-linking-visual-refresh-v1') && "_11c8dcr7 _1reo15vq _18m915vq _syaz131l _o5724jg8 _1e0ccj1k _1bto1l2s _1nmz1hna _sudp1e54", fg('platform-linking-visual-refresh-v1') && "_11c81o8v _1reo15vq _18m915vq _syaz1gjq _o5724jg8 _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _sudp1e54", "_1yyjr31u _102k1dud", className]),
|
|
40
41
|
style: {
|
|
42
|
+
color: color && fg('platform-linking-additional-flexible-element-props') ? color : undefined,
|
|
41
43
|
"--_1erfju8": ix(maxLines)
|
|
42
44
|
}
|
|
43
45
|
}, fg('platform-linking-additional-flexible-element-props') ? newContent : oldContent);
|
|
@@ -19,7 +19,14 @@ export const AttachmentCountElement = () => /*#__PURE__*/React.createElement(Att
|
|
|
19
19
|
export const AuthorGroupElement = () => /*#__PURE__*/React.createElement(AuthorGroup, null);
|
|
20
20
|
export const ChecklistProgressElement = () => /*#__PURE__*/React.createElement(ChecklistProgress, null);
|
|
21
21
|
export const CollaboratorGroupElement = () => /*#__PURE__*/React.createElement(CollaboratorGroup, null);
|
|
22
|
-
export const CommentCountElement =
|
|
22
|
+
export const CommentCountElement = props => {
|
|
23
|
+
if (fg('platform-linking-additional-flexible-element-props')) {
|
|
24
|
+
return /*#__PURE__*/React.createElement(CommentCount, {
|
|
25
|
+
color: props === null || props === void 0 ? void 0 : props.color
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
return /*#__PURE__*/React.createElement(CommentCount, null);
|
|
29
|
+
};
|
|
23
30
|
export const CreatedOnElement = () => /*#__PURE__*/React.createElement(CreatedOn, null);
|
|
24
31
|
export const CreatedByElement = () => /*#__PURE__*/React.createElement(CreatedBy, null);
|
|
25
32
|
export const DueOnElement = () => /*#__PURE__*/React.createElement(DueOn, null);
|
|
@@ -38,7 +45,8 @@ export const ModifiedByElement = () => /*#__PURE__*/React.createElement(Modified
|
|
|
38
45
|
export const ModifiedOnElement = props => {
|
|
39
46
|
if (fg('platform-linking-additional-flexible-element-props')) {
|
|
40
47
|
return /*#__PURE__*/React.createElement(ModifiedOn, {
|
|
41
|
-
hideDatePrefix: props === null || props === void 0 ? void 0 : props.hideDatePrefix
|
|
48
|
+
hideDatePrefix: props === null || props === void 0 ? void 0 : props.hideDatePrefix,
|
|
49
|
+
color: props === null || props === void 0 ? void 0 : props.color
|
|
42
50
|
});
|
|
43
51
|
}
|
|
44
52
|
return /*#__PURE__*/React.createElement(ModifiedOn, null);
|
|
@@ -46,7 +54,8 @@ export const ModifiedOnElement = props => {
|
|
|
46
54
|
export const OwnedByElement = props => {
|
|
47
55
|
if (fg('platform-linking-additional-flexible-element-props')) {
|
|
48
56
|
return /*#__PURE__*/React.createElement(OwnedBy, {
|
|
49
|
-
hideFormat: props === null || props === void 0 ? void 0 : props.hideFormat
|
|
57
|
+
hideFormat: props === null || props === void 0 ? void 0 : props.hideFormat,
|
|
58
|
+
color: props === null || props === void 0 ? void 0 : props.color
|
|
50
59
|
});
|
|
51
60
|
}
|
|
52
61
|
return /*#__PURE__*/React.createElement(OwnedBy, null);
|
|
@@ -63,7 +72,14 @@ export const PreviewElement = props => {
|
|
|
63
72
|
export const PriorityElement = () => /*#__PURE__*/React.createElement(Priority, null);
|
|
64
73
|
export const ProgrammingLanguageElement = () => /*#__PURE__*/React.createElement(ProgrammingLanguage, null);
|
|
65
74
|
export const ProviderElement = () => /*#__PURE__*/React.createElement(Provider, null);
|
|
66
|
-
export const ReactCountElement =
|
|
75
|
+
export const ReactCountElement = props => {
|
|
76
|
+
if (fg('platform-linking-additional-flexible-element-props')) {
|
|
77
|
+
return /*#__PURE__*/React.createElement(ReactCount, {
|
|
78
|
+
color: props === null || props === void 0 ? void 0 : props.color
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
return /*#__PURE__*/React.createElement(ReactCount, null);
|
|
82
|
+
};
|
|
67
83
|
export const ReadTimeElement = () => /*#__PURE__*/React.createElement(ReadTime, null);
|
|
68
84
|
export const SentOnElement = () => /*#__PURE__*/React.createElement(SentOn, null);
|
|
69
85
|
export const SnippetElement = props => /*#__PURE__*/React.createElement(Snippet, {
|
|
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
10
10
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
11
11
|
const PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "38.
|
|
13
|
+
packageVersion: "38.1.0",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export var context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "38.
|
|
7
|
+
packageVersion: "38.1.0"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -81,7 +81,8 @@ var BadgeRefreshNew = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
81
81
|
name = _ref.name,
|
|
82
82
|
_ref$testId = _ref.testId,
|
|
83
83
|
testId = _ref$testId === void 0 ? 'smart-element-badge' : _ref$testId,
|
|
84
|
-
url = _ref.url
|
|
84
|
+
url = _ref.url,
|
|
85
|
+
color = _ref.color;
|
|
85
86
|
var formattedMessageOrLabel = getFormattedMessageFromIcon(icon) || label;
|
|
86
87
|
var badgeIcon = renderAtlaskitIcon(icon, testId) || renderImageIcon(url, testId);
|
|
87
88
|
if (!formattedMessageOrLabel || !badgeIcon) {
|
|
@@ -92,6 +93,9 @@ var BadgeRefreshNew = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
92
93
|
"data-smart-element-badge": true,
|
|
93
94
|
"data-testid": testId,
|
|
94
95
|
ref: ref,
|
|
96
|
+
style: {
|
|
97
|
+
color: color && fg('platform-linking-additional-flexible-element-props') ? color : undefined
|
|
98
|
+
},
|
|
95
99
|
className: ax([styles.container, colorMap[appearance]])
|
|
96
100
|
}, !hideIcon && /*#__PURE__*/React.createElement(Box, {
|
|
97
101
|
as: "span",
|
|
@@ -42,7 +42,8 @@ var DateTime = function DateTime(_ref) {
|
|
|
42
42
|
testId = _ref$testId === void 0 ? 'smart-element-date-time' : _ref$testId,
|
|
43
43
|
text = _ref.text,
|
|
44
44
|
_ref$hideDatePrefix = _ref.hideDatePrefix,
|
|
45
|
-
hideDatePrefix = _ref$hideDatePrefix === void 0 ? false : _ref$hideDatePrefix
|
|
45
|
+
hideDatePrefix = _ref$hideDatePrefix === void 0 ? false : _ref$hideDatePrefix,
|
|
46
|
+
color = _ref.color;
|
|
46
47
|
var _useIntl = useIntl(),
|
|
47
48
|
formatRelativeTime = _useIntl.formatRelativeTime,
|
|
48
49
|
formatDate = _useIntl.formatDate;
|
|
@@ -81,6 +82,9 @@ var DateTime = function DateTime(_ref) {
|
|
|
81
82
|
}));
|
|
82
83
|
}
|
|
83
84
|
return /*#__PURE__*/React.createElement("span", {
|
|
85
|
+
style: {
|
|
86
|
+
color: color && fg('platform-linking-additional-flexible-element-props') ? color : undefined
|
|
87
|
+
},
|
|
84
88
|
"data-separator": true,
|
|
85
89
|
"data-smart-element": name,
|
|
86
90
|
"data-smart-element-date-time": true,
|
|
@@ -24,7 +24,8 @@ var Text = function Text(_ref) {
|
|
|
24
24
|
_ref$testId = _ref.testId,
|
|
25
25
|
testId = _ref$testId === void 0 ? 'smart-element-text' : _ref$testId,
|
|
26
26
|
_ref$hideFormat = _ref.hideFormat,
|
|
27
|
-
hideFormat = _ref$hideFormat === void 0 ? false : _ref$hideFormat
|
|
27
|
+
hideFormat = _ref$hideFormat === void 0 ? false : _ref$hideFormat,
|
|
28
|
+
color = _ref.color;
|
|
28
29
|
if (!message && !content) {
|
|
29
30
|
return null;
|
|
30
31
|
}
|
|
@@ -40,6 +41,7 @@ var Text = function Text(_ref) {
|
|
|
40
41
|
,
|
|
41
42
|
className: ax([!fg('platform-linking-visual-refresh-v1') && "_11c8dcr7 _1reo15vq _18m915vq _syaz131l _o5724jg8 _1e0ccj1k _1bto1l2s _1nmz1hna _sudp1e54", fg('platform-linking-visual-refresh-v1') && "_11c81o8v _1reo15vq _18m915vq _syaz1gjq _o5724jg8 _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _sudp1e54", "_1yyjr31u _102klxil", className]),
|
|
42
43
|
style: {
|
|
44
|
+
color: color && fg('platform-linking-additional-flexible-element-props') ? color : undefined,
|
|
43
45
|
"--_1erfju8": ix(maxLines),
|
|
44
46
|
"--_ohw86c": ix("calc(".concat(maxLines, " * 1rem)"))
|
|
45
47
|
}
|
|
@@ -31,7 +31,12 @@ export var ChecklistProgressElement = function ChecklistProgressElement() {
|
|
|
31
31
|
export var CollaboratorGroupElement = function CollaboratorGroupElement() {
|
|
32
32
|
return /*#__PURE__*/React.createElement(CollaboratorGroup, null);
|
|
33
33
|
};
|
|
34
|
-
export var CommentCountElement = function CommentCountElement() {
|
|
34
|
+
export var CommentCountElement = function CommentCountElement(props) {
|
|
35
|
+
if (fg('platform-linking-additional-flexible-element-props')) {
|
|
36
|
+
return /*#__PURE__*/React.createElement(CommentCount, {
|
|
37
|
+
color: props === null || props === void 0 ? void 0 : props.color
|
|
38
|
+
});
|
|
39
|
+
}
|
|
35
40
|
return /*#__PURE__*/React.createElement(CommentCount, null);
|
|
36
41
|
};
|
|
37
42
|
export var CreatedOnElement = function CreatedOnElement() {
|
|
@@ -64,7 +69,8 @@ export var ModifiedByElement = function ModifiedByElement() {
|
|
|
64
69
|
export var ModifiedOnElement = function ModifiedOnElement(props) {
|
|
65
70
|
if (fg('platform-linking-additional-flexible-element-props')) {
|
|
66
71
|
return /*#__PURE__*/React.createElement(ModifiedOn, {
|
|
67
|
-
hideDatePrefix: props === null || props === void 0 ? void 0 : props.hideDatePrefix
|
|
72
|
+
hideDatePrefix: props === null || props === void 0 ? void 0 : props.hideDatePrefix,
|
|
73
|
+
color: props === null || props === void 0 ? void 0 : props.color
|
|
68
74
|
});
|
|
69
75
|
}
|
|
70
76
|
return /*#__PURE__*/React.createElement(ModifiedOn, null);
|
|
@@ -72,7 +78,8 @@ export var ModifiedOnElement = function ModifiedOnElement(props) {
|
|
|
72
78
|
export var OwnedByElement = function OwnedByElement(props) {
|
|
73
79
|
if (fg('platform-linking-additional-flexible-element-props')) {
|
|
74
80
|
return /*#__PURE__*/React.createElement(OwnedBy, {
|
|
75
|
-
hideFormat: props === null || props === void 0 ? void 0 : props.hideFormat
|
|
81
|
+
hideFormat: props === null || props === void 0 ? void 0 : props.hideFormat,
|
|
82
|
+
color: props === null || props === void 0 ? void 0 : props.color
|
|
76
83
|
});
|
|
77
84
|
}
|
|
78
85
|
return /*#__PURE__*/React.createElement(OwnedBy, null);
|
|
@@ -97,7 +104,12 @@ export var ProgrammingLanguageElement = function ProgrammingLanguageElement() {
|
|
|
97
104
|
export var ProviderElement = function ProviderElement() {
|
|
98
105
|
return /*#__PURE__*/React.createElement(Provider, null);
|
|
99
106
|
};
|
|
100
|
-
export var ReactCountElement = function ReactCountElement() {
|
|
107
|
+
export var ReactCountElement = function ReactCountElement(props) {
|
|
108
|
+
if (fg('platform-linking-additional-flexible-element-props')) {
|
|
109
|
+
return /*#__PURE__*/React.createElement(ReactCount, {
|
|
110
|
+
color: props === null || props === void 0 ? void 0 : props.color
|
|
111
|
+
});
|
|
112
|
+
}
|
|
101
113
|
return /*#__PURE__*/React.createElement(ReactCount, null);
|
|
102
114
|
};
|
|
103
115
|
export var ReadTimeElement = function ReadTimeElement() {
|
|
@@ -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: "38.
|
|
16
|
+
packageVersion: "38.1.0",
|
|
17
17
|
componentName: 'linkUrl'
|
|
18
18
|
};
|
|
19
19
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { JsonLd } from '@atlaskit/json-ld-types';
|
|
2
|
-
import { LinkProvider } from '@atlaskit/link-extractors';
|
|
3
|
-
import { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
|
+
import { type LinkProvider } from '@atlaskit/link-extractors';
|
|
3
|
+
import { type SmartLinkResponse } from '@atlaskit/linking-types';
|
|
4
4
|
export { extractRequestAccessContextImproved } from './extractAccessContext';
|
|
5
5
|
export declare function generateContext(jsonLd: JsonLd.Data.BaseData): LinkProvider | undefined;
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
1
|
+
import type { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
2
2
|
import { type CardPlatform, type EmbedIframeUrlType } from '../../view/Card/types';
|
|
3
3
|
import { type EmbedCardResolvedViewProps } from '../../view/EmbedCard/views/ResolvedView';
|
|
4
4
|
export declare const extractEmbedProps: (response?: SmartLinkResponse, platform?: CardPlatform, iframeUrlType?: EmbedIframeUrlType) => EmbedCardResolvedViewProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
|
-
import { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
2
|
+
import { type SmartLinkResponse } from '@atlaskit/linking-types';
|
|
3
3
|
import { type Media } from '../../state/flexible-ui-context/types';
|
|
4
4
|
declare const extractPreview: (data: JsonLd.Data.BaseData) => Media | undefined;
|
|
5
5
|
export default extractPreview;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
|
-
import { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
2
|
+
import { type SmartLinkResponse } from '@atlaskit/linking-types';
|
|
3
3
|
import { type IconDescriptor } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* Extracts the provider icon and label from the given JSON-LD data.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
3
3
|
import { type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
4
|
-
import { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
4
|
+
import type { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
5
5
|
import { IconType, SmartLinkStatus } from '../../../constants';
|
|
6
6
|
export declare const extractLinkIcon: (response: JsonLd.Response, renderers?: CardProviderRenderers) => {
|
|
7
7
|
render: (() => import("react").ReactNode) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
2
|
-
import { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
2
|
+
import type { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
3
3
|
import { type InlineCardResolvedViewProps } from '../../view/InlineCard/ResolvedView';
|
|
4
4
|
export declare const extractInlineProps: (response?: SmartLinkResponse, renderers?: CardProviderRenderers, removeTextHighlightingFromTitle?: boolean, showLabel?: boolean) => InlineCardResolvedViewProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
|
-
import { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
2
|
+
import { type SmartLinkResponse } from '@atlaskit/linking-types';
|
|
3
3
|
export declare const mockContext: {
|
|
4
4
|
readonly '@vocab': "https://www.w3.org/ns/activitystreams#";
|
|
5
5
|
readonly atlassian: "https://schema.atlassian.com/ns/vocabulary#";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
3
|
-
import { IconProp } from '@atlaskit/button/new';
|
|
2
|
+
import type { MessageDescriptor } from 'react-intl-next';
|
|
3
|
+
import type { IconProp } from '@atlaskit/button/new';
|
|
4
4
|
export type OldLinkInfoButtonProps = {
|
|
5
5
|
content: React.ReactNode;
|
|
6
6
|
icon: React.ReactChild;
|
|
@@ -8,5 +8,5 @@ import { type DateTimeProps } from './types';
|
|
|
8
8
|
* @see ModifiedOn
|
|
9
9
|
* @see SentOn
|
|
10
10
|
*/
|
|
11
|
-
declare const DateTime: ({ date, name, className, type, testId, text, hideDatePrefix, }: DateTimeProps) => JSX.Element | null;
|
|
11
|
+
declare const DateTime: ({ date, name, className, type, testId, text, hideDatePrefix, color, }: DateTimeProps) => JSX.Element | null;
|
|
12
12
|
export default DateTime;
|
|
@@ -6,5 +6,5 @@ import { type TextProps } from './types';
|
|
|
6
6
|
* @param {TextProps} TextProps - The props necessary for the Text element.
|
|
7
7
|
* @see Title
|
|
8
8
|
*/
|
|
9
|
-
declare const Text: ({ content, maxLines, message, name, className, testId, hideFormat, }: TextProps) => JSX.Element | null;
|
|
9
|
+
declare const Text: ({ content, maxLines, message, name, className, testId, hideFormat, color, }: TextProps) => JSX.Element | null;
|
|
10
10
|
export default Text;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* DO NOT add a new prop to these components until we are ready to support it externally.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
+
import { type BadgeProps } from './components/elements/badge/types';
|
|
10
11
|
import { type DateTimeProps } from './components/elements/date-time/types';
|
|
11
12
|
import { type IconProps } from './components/elements/icon/types';
|
|
12
13
|
import { type LinkProps } from './components/elements/link/types';
|
|
@@ -18,7 +19,8 @@ export declare const AttachmentCountElement: () => React.JSX.Element;
|
|
|
18
19
|
export declare const AuthorGroupElement: () => React.JSX.Element;
|
|
19
20
|
export declare const ChecklistProgressElement: () => React.JSX.Element;
|
|
20
21
|
export declare const CollaboratorGroupElement: () => React.JSX.Element;
|
|
21
|
-
|
|
22
|
+
type CommentCountElementProps = Pick<BadgeProps, 'color'>;
|
|
23
|
+
export declare const CommentCountElement: (props?: CommentCountElementProps) => React.JSX.Element;
|
|
22
24
|
export declare const CreatedOnElement: () => React.JSX.Element;
|
|
23
25
|
export declare const CreatedByElement: () => React.JSX.Element;
|
|
24
26
|
export declare const DueOnElement: () => React.JSX.Element;
|
|
@@ -29,9 +31,9 @@ type LinkIconElementProps = Pick<IconProps, 'render'> & {
|
|
|
29
31
|
export declare const LinkIconElement: (props?: LinkIconElementProps) => React.JSX.Element;
|
|
30
32
|
export declare const LocationElement: () => React.JSX.Element;
|
|
31
33
|
export declare const ModifiedByElement: () => React.JSX.Element;
|
|
32
|
-
type ModifiedOnElementProps = Pick<DateTimeProps, 'hideDatePrefix'>;
|
|
34
|
+
type ModifiedOnElementProps = Pick<DateTimeProps, 'hideDatePrefix' | 'color'>;
|
|
33
35
|
export declare const ModifiedOnElement: (props?: ModifiedOnElementProps) => React.JSX.Element;
|
|
34
|
-
type OwnedByElementProps = Pick<TextProps, 'hideFormat'>;
|
|
36
|
+
type OwnedByElementProps = Pick<TextProps, 'hideFormat' | 'color'>;
|
|
35
37
|
export declare const OwnedByElement: (props?: OwnedByElementProps) => React.JSX.Element;
|
|
36
38
|
export declare const OwnedByGroupElement: () => React.JSX.Element;
|
|
37
39
|
type PreviewElementProps = {
|
|
@@ -41,7 +43,8 @@ export declare const PreviewElement: (props?: PreviewElementProps) => React.JSX.
|
|
|
41
43
|
export declare const PriorityElement: () => React.JSX.Element;
|
|
42
44
|
export declare const ProgrammingLanguageElement: () => React.JSX.Element;
|
|
43
45
|
export declare const ProviderElement: () => React.JSX.Element;
|
|
44
|
-
|
|
46
|
+
type ReactCountElementProps = Pick<BadgeProps, 'color'>;
|
|
47
|
+
export declare const ReactCountElement: (props?: ReactCountElementProps) => React.JSX.Element;
|
|
45
48
|
export declare const ReadTimeElement: () => React.JSX.Element;
|
|
46
49
|
export declare const SentOnElement: () => React.JSX.Element;
|
|
47
50
|
export type SnippetElementProps = Pick<TextProps, 'maxLines'> & {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { type MessageDescriptor } from 'react-intl-next';
|
|
3
3
|
import { type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
4
4
|
import { type CardState } from '@atlaskit/linking-common';
|
|
5
|
-
import { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
5
|
+
import { type SmartLinkResponse } from '@atlaskit/linking-types';
|
|
6
6
|
import { type FireEventFunction } from '../../common/analytics/types';
|
|
7
7
|
import { type SmartLinkSize, type SmartLinkStatus, type SmartLinkTheme } from '../../constants';
|
|
8
8
|
import { type AISummaryConfig } from '../../state/hooks/use-ai-summary-config/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
1
|
+
import { type SmartLinkResponse } from '@atlaskit/linking-types';
|
|
2
2
|
import { SmartLinkStatus } from '../../constants';
|
|
3
3
|
import { type FlexibleUiDataContext } from '../../state/flexible-ui-context/types';
|
|
4
4
|
import { type ExtractFlexibleUiDataContextParams, type RetryOptions } from './types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { JsonLd } from '@atlaskit/json-ld-types';
|
|
2
|
-
import { LinkProvider } from '@atlaskit/link-extractors';
|
|
3
|
-
import { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
|
+
import { type LinkProvider } from '@atlaskit/link-extractors';
|
|
3
|
+
import { type SmartLinkResponse } from '@atlaskit/linking-types';
|
|
4
4
|
export { extractRequestAccessContextImproved } from './extractAccessContext';
|
|
5
5
|
export declare function generateContext(jsonLd: JsonLd.Data.BaseData): LinkProvider | undefined;
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
1
|
+
import type { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
2
2
|
import { type CardPlatform, type EmbedIframeUrlType } from '../../view/Card/types';
|
|
3
3
|
import { type EmbedCardResolvedViewProps } from '../../view/EmbedCard/views/ResolvedView';
|
|
4
4
|
export declare const extractEmbedProps: (response?: SmartLinkResponse, platform?: CardPlatform, iframeUrlType?: EmbedIframeUrlType) => EmbedCardResolvedViewProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
|
-
import { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
2
|
+
import { type SmartLinkResponse } from '@atlaskit/linking-types';
|
|
3
3
|
import { type Media } from '../../state/flexible-ui-context/types';
|
|
4
4
|
declare const extractPreview: (data: JsonLd.Data.BaseData) => Media | undefined;
|
|
5
5
|
export default extractPreview;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
|
-
import { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
2
|
+
import { type SmartLinkResponse } from '@atlaskit/linking-types';
|
|
3
3
|
import { type IconDescriptor } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* Extracts the provider icon and label from the given JSON-LD data.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
3
3
|
import { type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
4
|
-
import { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
4
|
+
import type { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
5
5
|
import { IconType, SmartLinkStatus } from '../../../constants';
|
|
6
6
|
export declare const extractLinkIcon: (response: JsonLd.Response, renderers?: CardProviderRenderers) => {
|
|
7
7
|
render: (() => import("react").ReactNode) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
2
|
-
import { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
2
|
+
import type { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
3
3
|
import { type InlineCardResolvedViewProps } from '../../view/InlineCard/ResolvedView';
|
|
4
4
|
export declare const extractInlineProps: (response?: SmartLinkResponse, renderers?: CardProviderRenderers, removeTextHighlightingFromTitle?: boolean, showLabel?: boolean) => InlineCardResolvedViewProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
|
-
import { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
2
|
+
import { type SmartLinkResponse } from '@atlaskit/linking-types';
|
|
3
3
|
export declare const mockContext: {
|
|
4
4
|
readonly '@vocab': "https://www.w3.org/ns/activitystreams#";
|
|
5
5
|
readonly atlassian: "https://schema.atlassian.com/ns/vocabulary#";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
3
|
-
import { IconProp } from '@atlaskit/button/new';
|
|
2
|
+
import type { MessageDescriptor } from 'react-intl-next';
|
|
3
|
+
import type { IconProp } from '@atlaskit/button/new';
|
|
4
4
|
export type OldLinkInfoButtonProps = {
|
|
5
5
|
content: React.ReactNode;
|
|
6
6
|
icon: React.ReactChild;
|
|
@@ -8,5 +8,5 @@ import { type DateTimeProps } from './types';
|
|
|
8
8
|
* @see ModifiedOn
|
|
9
9
|
* @see SentOn
|
|
10
10
|
*/
|
|
11
|
-
declare const DateTime: ({ date, name, className, type, testId, text, hideDatePrefix, }: DateTimeProps) => JSX.Element | null;
|
|
11
|
+
declare const DateTime: ({ date, name, className, type, testId, text, hideDatePrefix, color, }: DateTimeProps) => JSX.Element | null;
|
|
12
12
|
export default DateTime;
|
|
@@ -6,5 +6,5 @@ import { type TextProps } from './types';
|
|
|
6
6
|
* @param {TextProps} TextProps - The props necessary for the Text element.
|
|
7
7
|
* @see Title
|
|
8
8
|
*/
|
|
9
|
-
declare const Text: ({ content, maxLines, message, name, className, testId, hideFormat, }: TextProps) => JSX.Element | null;
|
|
9
|
+
declare const Text: ({ content, maxLines, message, name, className, testId, hideFormat, color, }: TextProps) => JSX.Element | null;
|
|
10
10
|
export default Text;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* DO NOT add a new prop to these components until we are ready to support it externally.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
+
import { type BadgeProps } from './components/elements/badge/types';
|
|
10
11
|
import { type DateTimeProps } from './components/elements/date-time/types';
|
|
11
12
|
import { type IconProps } from './components/elements/icon/types';
|
|
12
13
|
import { type LinkProps } from './components/elements/link/types';
|
|
@@ -18,7 +19,8 @@ export declare const AttachmentCountElement: () => React.JSX.Element;
|
|
|
18
19
|
export declare const AuthorGroupElement: () => React.JSX.Element;
|
|
19
20
|
export declare const ChecklistProgressElement: () => React.JSX.Element;
|
|
20
21
|
export declare const CollaboratorGroupElement: () => React.JSX.Element;
|
|
21
|
-
|
|
22
|
+
type CommentCountElementProps = Pick<BadgeProps, 'color'>;
|
|
23
|
+
export declare const CommentCountElement: (props?: CommentCountElementProps) => React.JSX.Element;
|
|
22
24
|
export declare const CreatedOnElement: () => React.JSX.Element;
|
|
23
25
|
export declare const CreatedByElement: () => React.JSX.Element;
|
|
24
26
|
export declare const DueOnElement: () => React.JSX.Element;
|
|
@@ -29,9 +31,9 @@ type LinkIconElementProps = Pick<IconProps, 'render'> & {
|
|
|
29
31
|
export declare const LinkIconElement: (props?: LinkIconElementProps) => React.JSX.Element;
|
|
30
32
|
export declare const LocationElement: () => React.JSX.Element;
|
|
31
33
|
export declare const ModifiedByElement: () => React.JSX.Element;
|
|
32
|
-
type ModifiedOnElementProps = Pick<DateTimeProps, 'hideDatePrefix'>;
|
|
34
|
+
type ModifiedOnElementProps = Pick<DateTimeProps, 'hideDatePrefix' | 'color'>;
|
|
33
35
|
export declare const ModifiedOnElement: (props?: ModifiedOnElementProps) => React.JSX.Element;
|
|
34
|
-
type OwnedByElementProps = Pick<TextProps, 'hideFormat'>;
|
|
36
|
+
type OwnedByElementProps = Pick<TextProps, 'hideFormat' | 'color'>;
|
|
35
37
|
export declare const OwnedByElement: (props?: OwnedByElementProps) => React.JSX.Element;
|
|
36
38
|
export declare const OwnedByGroupElement: () => React.JSX.Element;
|
|
37
39
|
type PreviewElementProps = {
|
|
@@ -41,7 +43,8 @@ export declare const PreviewElement: (props?: PreviewElementProps) => React.JSX.
|
|
|
41
43
|
export declare const PriorityElement: () => React.JSX.Element;
|
|
42
44
|
export declare const ProgrammingLanguageElement: () => React.JSX.Element;
|
|
43
45
|
export declare const ProviderElement: () => React.JSX.Element;
|
|
44
|
-
|
|
46
|
+
type ReactCountElementProps = Pick<BadgeProps, 'color'>;
|
|
47
|
+
export declare const ReactCountElement: (props?: ReactCountElementProps) => React.JSX.Element;
|
|
45
48
|
export declare const ReadTimeElement: () => React.JSX.Element;
|
|
46
49
|
export declare const SentOnElement: () => React.JSX.Element;
|
|
47
50
|
export type SnippetElementProps = Pick<TextProps, 'maxLines'> & {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { type MessageDescriptor } from 'react-intl-next';
|
|
3
3
|
import { type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
4
4
|
import { type CardState } from '@atlaskit/linking-common';
|
|
5
|
-
import { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
5
|
+
import { type SmartLinkResponse } from '@atlaskit/linking-types';
|
|
6
6
|
import { type FireEventFunction } from '../../common/analytics/types';
|
|
7
7
|
import { type SmartLinkSize, type SmartLinkStatus, type SmartLinkTheme } from '../../constants';
|
|
8
8
|
import { type AISummaryConfig } from '../../state/hooks/use-ai-summary-config/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
1
|
+
import { type SmartLinkResponse } from '@atlaskit/linking-types';
|
|
2
2
|
import { SmartLinkStatus } from '../../constants';
|
|
3
3
|
import { type FlexibleUiDataContext } from '../../state/flexible-ui-context/types';
|
|
4
4
|
import { type ExtractFlexibleUiDataContextParams, type RetryOptions } from './types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "38.
|
|
3
|
+
"version": "38.1.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@atlaskit/button": "^23.0.0",
|
|
36
36
|
"@atlaskit/checkbox": "^17.1.0",
|
|
37
37
|
"@atlaskit/css": "^0.10.0",
|
|
38
|
-
"@atlaskit/dropdown-menu": "^14.
|
|
38
|
+
"@atlaskit/dropdown-menu": "^14.2.0",
|
|
39
39
|
"@atlaskit/form": "^12.0.0",
|
|
40
40
|
"@atlaskit/frontend-utilities": "^3.0.0",
|
|
41
41
|
"@atlaskit/heading": "^5.2.0",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"@atlaskit/logo": "^18.0.0",
|
|
57
57
|
"@atlaskit/lozenge": "^12.2.0",
|
|
58
58
|
"@atlaskit/menu": "^5.0.0",
|
|
59
|
-
"@atlaskit/modal-dialog": "^14.
|
|
59
|
+
"@atlaskit/modal-dialog": "^14.2.0",
|
|
60
60
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
61
61
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
62
|
-
"@atlaskit/popup": "^4.
|
|
62
|
+
"@atlaskit/popup": "^4.2.0",
|
|
63
63
|
"@atlaskit/primitives": "^14.7.0",
|
|
64
64
|
"@atlaskit/section-message": "^8.2.0",
|
|
65
65
|
"@atlaskit/select": "^20.4.0",
|