@atlaskit/smart-card 32.8.1 → 32.8.3
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 +16 -0
- package/dist/cjs/extractors/action/extract-invoke-download-action.js +2 -2
- package/dist/cjs/extractors/common/icon/extractIcon.js +0 -5
- package/dist/cjs/extractors/common/icon/extractIconFromDocument.js +0 -1
- package/dist/cjs/extractors/common/icon/extractIconFromTask.js +0 -11
- package/dist/cjs/extractors/common/icon/prioritiseIcon.js +0 -4
- package/dist/cjs/extractors/flexible/actions/extract-download-action.js +2 -2
- package/dist/cjs/extractors/flexible/actions/extract-preview-action.js +2 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/test-utils.js +1 -11
- package/dist/cjs/view/BlockCard/views/UnauthorisedView.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +2 -3
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.js +1 -4
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +1 -7
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +0 -1
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +2 -3
- package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/utils.js +3 -6
- package/dist/cjs/view/HoverCard/components/views/forbidden/styled.js +2 -4
- package/dist/cjs/view/HoverCard/components/views/unauthorised/styled.js +2 -3
- package/dist/cjs/view/InlineCard/styled.js +1 -6
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/ai-summary/index.js +1 -2
- package/dist/es2019/extractors/action/extract-invoke-download-action.js +1 -1
- package/dist/es2019/extractors/common/icon/extractIcon.js +0 -5
- package/dist/es2019/extractors/common/icon/extractIconFromDocument.js +0 -1
- package/dist/es2019/extractors/common/icon/extractIconFromTask.js +0 -11
- package/dist/es2019/extractors/common/icon/prioritiseIcon.js +0 -4
- package/dist/es2019/extractors/flexible/actions/extract-download-action.js +1 -1
- package/dist/es2019/extractors/flexible/actions/extract-preview-action.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/test-utils.js +0 -10
- package/dist/es2019/view/BlockCard/views/UnauthorisedView.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +2 -3
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.js +0 -3
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +0 -6
- package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +0 -1
- package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +2 -3
- package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/utils.js +3 -6
- package/dist/es2019/view/HoverCard/components/views/forbidden/styled.js +2 -4
- package/dist/es2019/view/HoverCard/components/views/unauthorised/styled.js +2 -3
- package/dist/es2019/view/InlineCard/styled.js +0 -5
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/ai-summary/index.js +1 -2
- package/dist/esm/extractors/action/extract-invoke-download-action.js +1 -1
- package/dist/esm/extractors/common/icon/extractIcon.js +0 -5
- package/dist/esm/extractors/common/icon/extractIconFromDocument.js +0 -1
- package/dist/esm/extractors/common/icon/extractIconFromTask.js +0 -11
- package/dist/esm/extractors/common/icon/prioritiseIcon.js +0 -4
- package/dist/esm/extractors/flexible/actions/extract-download-action.js +1 -1
- package/dist/esm/extractors/flexible/actions/extract-preview-action.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/test-utils.js +0 -10
- package/dist/esm/view/BlockCard/views/UnauthorisedView.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +2 -3
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.js +0 -3
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +0 -6
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +0 -1
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +1 -2
- package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +1 -2
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +2 -3
- package/dist/esm/view/FlexibleCard/components/elements/text/index.js +1 -2
- package/dist/esm/view/FlexibleCard/components/utils.js +3 -6
- package/dist/esm/view/HoverCard/components/views/forbidden/styled.js +2 -4
- package/dist/esm/view/HoverCard/components/views/unauthorised/styled.js +2 -3
- package/dist/esm/view/InlineCard/styled.js +0 -5
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/ai-summary/index.js +1 -2
- package/dist/types/extractors/common/__mocks__/jsonld.d.ts +0 -8
- package/dist/types/extractors/common/icon/prioritiseIcon.d.ts +0 -9
- package/dist/types/extractors/flexible/utils.d.ts +4 -0
- package/dist/types/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +0 -6
- package/dist/types/utils/analytics/types.d.ts +1 -9
- package/dist/types/utils/test-utils.d.ts +0 -2
- package/dist/types/view/EmbedCard/types.d.ts +1 -7
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.d.ts +1 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.d.ts +0 -5
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/types.d.ts +0 -16
- package/dist/types/view/FlexibleCard/components/blocks/preview-block/types.d.ts +0 -3
- package/dist/types/view/HoverCard/types.d.ts +0 -2
- package/dist/types/view/InlineCard/styled.d.ts +0 -4
- package/dist/types-ts4.5/extractors/common/__mocks__/jsonld.d.ts +0 -8
- package/dist/types-ts4.5/extractors/common/icon/prioritiseIcon.d.ts +0 -9
- package/dist/types-ts4.5/extractors/flexible/utils.d.ts +4 -0
- package/dist/types-ts4.5/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +0 -6
- package/dist/types-ts4.5/utils/analytics/types.d.ts +1 -9
- package/dist/types-ts4.5/utils/test-utils.d.ts +0 -2
- package/dist/types-ts4.5/view/EmbedCard/types.d.ts +1 -7
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.d.ts +1 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.d.ts +0 -5
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/types.d.ts +0 -16
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/types.d.ts +0 -3
- package/dist/types-ts4.5/view/HoverCard/types.d.ts +0 -2
- package/dist/types-ts4.5/view/InlineCard/styled.d.ts +0 -4
- package/package.json +1 -1
- package/dist/cjs/extractors/common/byline/extractByline.js +0 -40
- package/dist/cjs/extractors/common/detail/extractAttachmentCount.js +0 -23
- package/dist/cjs/extractors/common/detail/extractCommentCount.js +0 -24
- package/dist/cjs/extractors/common/detail/extractProgrammingLanguage.js +0 -23
- package/dist/cjs/extractors/common/detail/extractSubscriberCount.js +0 -23
- package/dist/cjs/extractors/common/detail/index.js +0 -40
- package/dist/cjs/extractors/common/detail/types.js +0 -1
- package/dist/cjs/state/analytics/types.js +0 -5
- package/dist/es2019/extractors/common/byline/extractByline.js +0 -35
- package/dist/es2019/extractors/common/detail/extractAttachmentCount.js +0 -16
- package/dist/es2019/extractors/common/detail/extractCommentCount.js +0 -17
- package/dist/es2019/extractors/common/detail/extractProgrammingLanguage.js +0 -16
- package/dist/es2019/extractors/common/detail/extractSubscriberCount.js +0 -16
- package/dist/es2019/extractors/common/detail/index.js +0 -5
- package/dist/es2019/extractors/common/detail/types.js +0 -0
- package/dist/es2019/state/analytics/types.js +0 -1
- package/dist/esm/extractors/common/byline/extractByline.js +0 -33
- package/dist/esm/extractors/common/detail/extractAttachmentCount.js +0 -16
- package/dist/esm/extractors/common/detail/extractCommentCount.js +0 -17
- package/dist/esm/extractors/common/detail/extractProgrammingLanguage.js +0 -16
- package/dist/esm/extractors/common/detail/extractSubscriberCount.js +0 -16
- package/dist/esm/extractors/common/detail/index.js +0 -5
- package/dist/esm/extractors/common/detail/types.js +0 -0
- package/dist/esm/state/analytics/types.js +0 -1
- package/dist/types/extractors/common/byline/extractByline.d.ts +0 -3
- package/dist/types/extractors/common/detail/extractAttachmentCount.d.ts +0 -4
- package/dist/types/extractors/common/detail/extractCommentCount.d.ts +0 -4
- package/dist/types/extractors/common/detail/extractProgrammingLanguage.d.ts +0 -4
- package/dist/types/extractors/common/detail/extractSubscriberCount.d.ts +0 -4
- package/dist/types/extractors/common/detail/index.d.ts +0 -9
- package/dist/types/extractors/common/detail/types.d.ts +0 -5
- package/dist/types/state/analytics/types.d.ts +0 -9
- package/dist/types-ts4.5/extractors/common/byline/extractByline.d.ts +0 -3
- package/dist/types-ts4.5/extractors/common/detail/extractAttachmentCount.d.ts +0 -4
- package/dist/types-ts4.5/extractors/common/detail/extractCommentCount.d.ts +0 -4
- package/dist/types-ts4.5/extractors/common/detail/extractProgrammingLanguage.d.ts +0 -4
- package/dist/types-ts4.5/extractors/common/detail/extractSubscriberCount.d.ts +0 -4
- package/dist/types-ts4.5/extractors/common/detail/index.d.ts +0 -9
- package/dist/types-ts4.5/extractors/common/detail/types.d.ts +0 -5
- package/dist/types-ts4.5/state/analytics/types.d.ts +0 -9
- /package/dist/cjs/extractors/common/{detail → download}/extractDownloadUrl.js +0 -0
- /package/dist/es2019/extractors/common/{detail → download}/extractDownloadUrl.js +0 -0
- /package/dist/esm/extractors/common/{detail → download}/extractDownloadUrl.js +0 -0
- /package/dist/types/extractors/common/{detail → download}/extractDownloadUrl.d.ts +0 -0
- /package/dist/types-ts4.5/extractors/common/{detail → download}/extractDownloadUrl.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 32.8.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#98252](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98252)
|
|
8
|
+
[`8e131e2c56631`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8e131e2c56631) -
|
|
9
|
+
Remove unused code
|
|
10
|
+
|
|
11
|
+
## 32.8.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#182128](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/182128)
|
|
16
|
+
[`15424ce7c9940`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15424ce7c9940) -
|
|
17
|
+
Internal changes to typography.
|
|
18
|
+
|
|
3
19
|
## 32.8.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -12,7 +12,7 @@ var _helpers = require("../../state/helpers");
|
|
|
12
12
|
var _utils = require("../../utils");
|
|
13
13
|
var _canShowAction = require("../../utils/actions/can-show-action");
|
|
14
14
|
var _extractActions = require("../common/actions/extractActions");
|
|
15
|
-
var
|
|
15
|
+
var _extractDownloadUrl = require("../common/download/extractDownloadUrl");
|
|
16
16
|
var extractInvokeDownloadAction = exports.extractInvokeDownloadAction = function extractInvokeDownloadAction(_ref) {
|
|
17
17
|
var actionOptions = _ref.actionOptions,
|
|
18
18
|
appearance = _ref.appearance,
|
|
@@ -26,7 +26,7 @@ var extractInvokeDownloadAction = exports.extractInvokeDownloadAction = function
|
|
|
26
26
|
return action['@type'] === 'DownloadAction';
|
|
27
27
|
});
|
|
28
28
|
if (downloadActionExists) {
|
|
29
|
-
var downloadUrl = (0,
|
|
29
|
+
var downloadUrl = (0, _extractDownloadUrl.extractDownloadUrl)(data);
|
|
30
30
|
return {
|
|
31
31
|
actionFn: function () {
|
|
32
32
|
var _actionFn = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
@@ -43,7 +43,6 @@ var extractIcon = exports.extractIcon = function extractIcon(jsonLd) {
|
|
|
43
43
|
function typeToIcon(type, opts) {
|
|
44
44
|
switch (type) {
|
|
45
45
|
case 'atlassian:SourceCodeCommit':
|
|
46
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
47
46
|
return /*#__PURE__*/_react.default.createElement(_3.default, {
|
|
48
47
|
label: opts.title || 'commit',
|
|
49
48
|
testId: "commit-icon"
|
|
@@ -56,25 +55,21 @@ function typeToIcon(type, opts) {
|
|
|
56
55
|
color: "currentColor"
|
|
57
56
|
});
|
|
58
57
|
case 'atlassian:SourceCodePullRequest':
|
|
59
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
60
58
|
return /*#__PURE__*/_react.default.createElement(_4.default, {
|
|
61
59
|
label: opts.title || 'pullRequest',
|
|
62
60
|
testId: "pull-request-icon"
|
|
63
61
|
});
|
|
64
62
|
case 'atlassian:SourceCodeReference':
|
|
65
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
66
63
|
return /*#__PURE__*/_react.default.createElement(_.default, {
|
|
67
64
|
label: opts.title || 'reference',
|
|
68
65
|
testId: "branch-icon"
|
|
69
66
|
});
|
|
70
67
|
case 'atlassian:SourceCodeRepository':
|
|
71
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
72
68
|
return /*#__PURE__*/_react.default.createElement(_2.default, {
|
|
73
69
|
label: opts.title || 'repository',
|
|
74
70
|
testId: "repo-icon"
|
|
75
71
|
});
|
|
76
72
|
case 'atlassian:Goal':
|
|
77
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
78
73
|
return /*#__PURE__*/_react.default.createElement(_5.default, {
|
|
79
74
|
label: opts.title || 'goal',
|
|
80
75
|
testId: "task-icon"
|
|
@@ -40,7 +40,6 @@ var documentFileFormatToIcon = function documentFileFormatToIcon(opts) {
|
|
|
40
40
|
var documentTypeToIcon = function documentTypeToIcon(type, opts) {
|
|
41
41
|
switch (type) {
|
|
42
42
|
case 'schema:BlogPosting':
|
|
43
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
44
43
|
return /*#__PURE__*/_react.default.createElement(_5.default, {
|
|
45
44
|
label: opts.title || 'blog',
|
|
46
45
|
testId: "blog-icon"
|
|
@@ -16,7 +16,6 @@ var _7 = _interopRequireDefault(require("@atlaskit/icon-object/glyph/story/16"))
|
|
|
16
16
|
var _8 = _interopRequireDefault(require("@atlaskit/icon-object/glyph/subtask/16"));
|
|
17
17
|
var _9 = _interopRequireDefault(require("@atlaskit/icon-object/glyph/task/16"));
|
|
18
18
|
var _constants = require("../../constants");
|
|
19
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
20
19
|
var TaskIcon = _9.default;
|
|
21
20
|
|
|
22
21
|
/**
|
|
@@ -32,7 +31,6 @@ var extractIconFromTask = exports.extractIconFromTask = function extractIconFrom
|
|
|
32
31
|
var taskType = opts.taskType,
|
|
33
32
|
provider = opts.provider;
|
|
34
33
|
var taskLabel = opts.title || 'task';
|
|
35
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
36
34
|
var defaultIcon = /*#__PURE__*/_react.default.createElement(TaskIcon, {
|
|
37
35
|
label: taskLabel,
|
|
38
36
|
testId: "default-task-icon"
|
|
@@ -42,55 +40,46 @@ var extractIconFromTask = exports.extractIconFromTask = function extractIconFrom
|
|
|
42
40
|
var taskTypeName = taskTypeId.split('#').pop();
|
|
43
41
|
switch (taskTypeName) {
|
|
44
42
|
case _constants.JIRA_TASK:
|
|
45
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
46
43
|
return /*#__PURE__*/_react.default.createElement(_9.default, {
|
|
47
44
|
label: taskLabel,
|
|
48
45
|
testId: "jira-task-icon"
|
|
49
46
|
});
|
|
50
47
|
case _constants.JIRA_SUB_TASK:
|
|
51
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
52
48
|
return /*#__PURE__*/_react.default.createElement(_8.default, {
|
|
53
49
|
label: taskLabel,
|
|
54
50
|
testId: "jira-subtask-icon"
|
|
55
51
|
});
|
|
56
52
|
case _constants.JIRA_STORY:
|
|
57
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
58
53
|
return /*#__PURE__*/_react.default.createElement(_7.default, {
|
|
59
54
|
label: taskLabel,
|
|
60
55
|
testId: "jira-story-icon"
|
|
61
56
|
});
|
|
62
57
|
case _constants.JIRA_BUG:
|
|
63
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
64
58
|
return /*#__PURE__*/_react.default.createElement(_.default, {
|
|
65
59
|
label: taskLabel,
|
|
66
60
|
testId: "jira-bug-icon"
|
|
67
61
|
});
|
|
68
62
|
case _constants.JIRA_EPIC:
|
|
69
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
70
63
|
return /*#__PURE__*/_react.default.createElement(_3.default, {
|
|
71
64
|
label: taskLabel,
|
|
72
65
|
testId: "jira-epic-icon"
|
|
73
66
|
});
|
|
74
67
|
case _constants.JIRA_INCIDENT:
|
|
75
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
76
68
|
return /*#__PURE__*/_react.default.createElement(_4.default, {
|
|
77
69
|
label: taskLabel,
|
|
78
70
|
testId: "jira-incident-icon"
|
|
79
71
|
});
|
|
80
72
|
case _constants.JIRA_SERVICE_REQUEST:
|
|
81
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
82
73
|
return /*#__PURE__*/_react.default.createElement(_5.default, {
|
|
83
74
|
label: taskLabel,
|
|
84
75
|
testId: "jira-service-request-icon"
|
|
85
76
|
});
|
|
86
77
|
case _constants.JIRA_CHANGE:
|
|
87
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
88
78
|
return /*#__PURE__*/_react.default.createElement(_2.default, {
|
|
89
79
|
label: taskLabel,
|
|
90
80
|
testId: "jira-change-icon"
|
|
91
81
|
});
|
|
92
82
|
case _constants.JIRA_PROBLEM:
|
|
93
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
94
83
|
return /*#__PURE__*/_react.default.createElement(_6.default, {
|
|
95
84
|
label: taskLabel,
|
|
96
85
|
testId: "jira-problem-icon"
|
|
@@ -4,10 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.prioritiseIcon = prioritiseIcon;
|
|
7
|
-
/**
|
|
8
|
-
* Represents an icon. Should either contain a label and url, or a an icon type and label.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
7
|
/**
|
|
12
8
|
* Options required to prioritise which icon to show
|
|
13
9
|
*/
|
|
@@ -8,7 +8,7 @@ var _canShowAction = require("../../../utils/actions/can-show-action");
|
|
|
8
8
|
var _types = require("../../../view/Card/types");
|
|
9
9
|
var _extractInvokeDownloadAction = require("../../action/extract-invoke-download-action");
|
|
10
10
|
var _extractActions = require("../../common/actions/extractActions");
|
|
11
|
-
var
|
|
11
|
+
var _extractDownloadUrl = require("../../common/download/extractDownloadUrl");
|
|
12
12
|
/**
|
|
13
13
|
* TODO: Remove on cleanup of platform-smart-card-migrate-embed-modal-analytics
|
|
14
14
|
* Replaced with extractDownloadClientAction()
|
|
@@ -22,7 +22,7 @@ var extractDownloadAction = exports.extractDownloadAction = function extractDown
|
|
|
22
22
|
});
|
|
23
23
|
if (downloadActionExists) {
|
|
24
24
|
return {
|
|
25
|
-
downloadUrl: (0,
|
|
25
|
+
downloadUrl: (0, _extractDownloadUrl.extractDownloadUrl)(data)
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
return;
|
|
@@ -8,7 +8,7 @@ var _linkExtractors = require("@atlaskit/link-extractors");
|
|
|
8
8
|
var _canShowAction = require("../../../utils/actions/can-show-action");
|
|
9
9
|
var _types = require("../../../view/Card/types");
|
|
10
10
|
var _extractInvokePreviewAction = require("../../action/extract-invoke-preview-action");
|
|
11
|
-
var
|
|
11
|
+
var _extractDownloadUrl = require("../../common/download/extractDownloadUrl");
|
|
12
12
|
var _extractIsSupportTheming = require("../../common/meta/extractIsSupportTheming");
|
|
13
13
|
var _extractIsTrusted = require("../../common/meta/extractIsTrusted");
|
|
14
14
|
var _icon = require("../icon");
|
|
@@ -27,7 +27,7 @@ var extractPreviewAction = exports.extractPreviewAction = function extractPrevie
|
|
|
27
27
|
if (src) {
|
|
28
28
|
var _extractProvider;
|
|
29
29
|
return {
|
|
30
|
-
downloadUrl: (0,
|
|
30
|
+
downloadUrl: (0, _extractDownloadUrl.extractDownloadUrl)(data),
|
|
31
31
|
providerName: (_extractProvider = (0, _linkExtractors.extractProvider)(data)) === null || _extractProvider === void 0 ? void 0 : _extractProvider.text,
|
|
32
32
|
src: src,
|
|
33
33
|
title: (0, _linkExtractors.extractTitle)(data),
|
|
@@ -15,7 +15,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
15
15
|
var context = exports.context = {
|
|
16
16
|
componentName: 'smart-cards',
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "32.8.
|
|
18
|
+
packageVersion: "32.8.3"
|
|
19
19
|
};
|
|
20
20
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -4,11 +4,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
|
+
exports.renderHook = void 0;
|
|
9
8
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _linkProvider = require("@atlaskit/link-provider");
|
|
11
|
-
var _state = require("../state");
|
|
12
9
|
var Hook = function Hook(props) {
|
|
13
10
|
props.callback();
|
|
14
11
|
return null;
|
|
@@ -17,11 +14,4 @@ var renderHook = exports.renderHook = function renderHook(callback) {
|
|
|
17
14
|
return /*#__PURE__*/_react.default.createElement(Hook, {
|
|
18
15
|
callback: callback
|
|
19
16
|
});
|
|
20
|
-
};
|
|
21
|
-
var renderSmartLinkHook = exports.renderSmartLinkHook = function renderSmartLinkHook(callback, providerProps) {
|
|
22
|
-
return /*#__PURE__*/_react.default.createElement(_state.SmartCardProvider, (0, _extends2.default)({
|
|
23
|
-
client: new _linkProvider.CardClient()
|
|
24
|
-
}, providerProps), /*#__PURE__*/_react.default.createElement(Hook, {
|
|
25
|
-
callback: callback
|
|
26
|
-
}), ";");
|
|
27
17
|
};
|
|
@@ -27,7 +27,7 @@ var _excluded = ["testId"];
|
|
|
27
27
|
var contentStyles = (0, _react2.css)({
|
|
28
28
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
29
29
|
marginTop: "var(--ds-space-100, 0.5rem)",
|
|
30
|
-
|
|
30
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
/**
|
|
@@ -36,12 +36,11 @@ var getButtonStyle = function getButtonStyle(size, iconOnly) {
|
|
|
36
36
|
}) : '';
|
|
37
37
|
case _constants.SmartLinkSize.Small:
|
|
38
38
|
return (0, _react2.css)({
|
|
39
|
-
|
|
39
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
40
40
|
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
41
|
-
lineHeight: '1rem',
|
|
42
41
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
43
42
|
'button, button:hover, button:focus, button:active': [{
|
|
44
|
-
lineHeight: '
|
|
43
|
+
lineHeight: 'inherit'
|
|
45
44
|
}, iconOnly ? "\n padding: 0.125rem;\n " : "\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n "]
|
|
46
45
|
});
|
|
47
46
|
case _constants.SmartLinkSize.XLarge:
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.mockTransformedRules = exports.mockRules = exports.mockInvokeUrl = exports.
|
|
7
|
+
exports.mockTransformedRules = exports.mockRules = exports.mockInvokeUrl = exports.mockGetUrl = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _types = require("./types");
|
|
10
10
|
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; }
|
|
@@ -73,8 +73,5 @@ var mockTransformedRules = exports.mockTransformedRules = [_objectSpread(_object
|
|
|
73
73
|
}), _objectSpread(_objectSpread({}, mockRules.data[2]), {}, {
|
|
74
74
|
userInputPrompts: mockRules.data[2].userInputs
|
|
75
75
|
})];
|
|
76
|
-
var mockInvocationResponse = exports.mockInvocationResponse = {
|
|
77
|
-
'TEST-1': 'SUCCESS'
|
|
78
|
-
};
|
|
79
76
|
var mockGetUrl = exports.mockGetUrl = 'https://test-api/get/rules';
|
|
80
77
|
var mockInvokeUrl = exports.mockInvokeUrl = 'https://test-api/invoke';
|
|
@@ -5,7 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.renderWithDi = exports.createStubInvokeManuallyTriggeredRule = exports.createGenericComponent = void 0;
|
|
9
9
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
10
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
@@ -54,12 +54,6 @@ var createStubInvokeManuallyTriggeredRule = exports.createStubInvokeManuallyTrig
|
|
|
54
54
|
};
|
|
55
55
|
}();
|
|
56
56
|
};
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Default stubbed invokeManuallyTriggeredRule call. Returns 'SUCCESS' for
|
|
60
|
-
* all objects the rule was called for.
|
|
61
|
-
*/
|
|
62
|
-
var successStubInvokeManuallyTriggeredRule = exports.successStubInvokeManuallyTriggeredRule = createStubInvokeManuallyTriggeredRule('SUCCESS', 2000);
|
|
63
57
|
var Provider = function Provider(_ref2) {
|
|
64
58
|
var children = _ref2.children,
|
|
65
59
|
use = _ref2.use,
|
|
@@ -300,7 +300,6 @@ var AtlaskitIcon = function AtlaskitIcon(_ref3) {
|
|
|
300
300
|
testId: testId
|
|
301
301
|
});
|
|
302
302
|
case _constants.IconType.Blog:
|
|
303
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
304
303
|
return /*#__PURE__*/_react.default.createElement(_2.default, {
|
|
305
304
|
label: label || 'blog',
|
|
306
305
|
testId: testId
|
|
@@ -30,8 +30,7 @@ var badgeStyles = (0, _react2.css)({
|
|
|
30
30
|
var iconStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tcolor: ", ";\n\tline-height: 0;\n\tvertical-align: middle;\n\t", "\n\timg,\n span,\n svg {\n\t\tline-height: 0;\n\t\tvertical-align: middle;\n\t}\n"])), "var(--ds-icon-subtle, #626F86)", (0, _utils.getIconSizeStyles)('1rem'));
|
|
31
31
|
var labelStyles = (0, _react2.css)({
|
|
32
32
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
33
|
-
|
|
34
|
-
lineHeight: '1rem',
|
|
33
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
35
34
|
paddingLeft: "var(--ds-space-025, 0.125rem)",
|
|
36
35
|
verticalAlign: 'middle'
|
|
37
36
|
});
|
|
@@ -19,8 +19,7 @@ var _utils = require("../../utils");
|
|
|
19
19
|
|
|
20
20
|
var styles = (0, _react.css)({
|
|
21
21
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
22
|
-
|
|
23
|
-
lineHeight: '1rem'
|
|
22
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
24
23
|
},
|
|
25
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
26
25
|
(0, _utils.getTruncateStyles)(1));
|
|
@@ -36,8 +36,7 @@ var contentStyles = exports.contentStyles = (0, _react.css)(sharedBlockStyles, {
|
|
|
36
36
|
alignItems: 'flex-start',
|
|
37
37
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
38
38
|
'> span, > div': {
|
|
39
|
-
|
|
40
|
-
lineHeight: '1.25rem',
|
|
39
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
41
40
|
color: "var(--ds-text, ".concat(_colors.N800, ")")
|
|
42
41
|
}
|
|
43
42
|
});
|
|
@@ -45,7 +44,7 @@ var contentStyles = exports.contentStyles = (0, _react.css)(sharedBlockStyles, {
|
|
|
45
44
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
46
45
|
var linkStyles = exports.linkStyles = (0, _react.css)(sharedBlockStyles, {
|
|
47
46
|
cursor: 'pointer',
|
|
48
|
-
|
|
47
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
49
48
|
marginTop: "var(--ds-space-100, 8px)",
|
|
50
49
|
marginLeft: "var(--ds-space-400, 32px)",
|
|
51
50
|
marginBottom: "var(--ds-space-025, 2px)"
|
|
@@ -15,8 +15,7 @@ var _utils = require("../../utils");
|
|
|
15
15
|
var getStyles = function getStyles(maxLines) {
|
|
16
16
|
return (0, _react.css)({
|
|
17
17
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
18
|
-
|
|
19
|
-
lineHeight: '1rem',
|
|
18
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
20
19
|
whiteSpace: 'normal'
|
|
21
20
|
},
|
|
22
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -97,27 +97,24 @@ var getLinkSizeStyles = exports.getLinkSizeStyles = function getLinkSizeStyles(s
|
|
|
97
97
|
switch (size) {
|
|
98
98
|
case _constants.SmartLinkSize.XLarge:
|
|
99
99
|
return (0, _react2.css)({
|
|
100
|
-
|
|
100
|
+
font: "var(--ds-font-heading-medium, normal 500 20px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
101
101
|
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
102
|
-
letterSpacing: '-0.008em',
|
|
103
102
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
104
103
|
lineHeight: getLinkLineHeight(size)
|
|
105
104
|
});
|
|
106
105
|
case _constants.SmartLinkSize.Large:
|
|
107
106
|
case _constants.SmartLinkSize.Medium:
|
|
108
107
|
return (0, _react2.css)({
|
|
109
|
-
|
|
108
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
110
109
|
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
111
|
-
letterSpacing: '-0.003em',
|
|
112
110
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
113
111
|
lineHeight: getLinkLineHeight(size)
|
|
114
112
|
});
|
|
115
113
|
case _constants.SmartLinkSize.Small:
|
|
116
114
|
default:
|
|
117
115
|
return (0, _react2.css)({
|
|
118
|
-
|
|
116
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
119
117
|
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
120
|
-
letterSpacing: '0em',
|
|
121
118
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
122
119
|
lineHeight: getLinkLineHeight(size)
|
|
123
120
|
});
|
|
@@ -7,12 +7,10 @@ exports.titleBlockStyles = exports.mainTextStyles = exports.connectButtonStyles
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
|
|
10
|
-
var titleFontWeight = '600';
|
|
11
|
-
|
|
12
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
13
11
|
var titleBlockStyles = exports.titleBlockStyles = (0, _react.css)({
|
|
14
12
|
justifyContent: 'center',
|
|
15
|
-
fontWeight:
|
|
13
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
16
14
|
marginTop: "var(--ds-space-100, 8px)"
|
|
17
15
|
});
|
|
18
16
|
|
|
@@ -21,7 +19,7 @@ var mainTextStyles = exports.mainTextStyles = (0, _react.css)({
|
|
|
21
19
|
display: 'inline',
|
|
22
20
|
justifyContent: 'center',
|
|
23
21
|
marginTop: "var(--ds-space-0, 0px)",
|
|
24
|
-
|
|
22
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
25
23
|
textAlign: 'center'
|
|
26
24
|
});
|
|
27
25
|
|
|
@@ -9,7 +9,6 @@ var _react = require("@emotion/react");
|
|
|
9
9
|
|
|
10
10
|
var blockGap = '0.5rem';
|
|
11
11
|
var iconGap = '0.5rem';
|
|
12
|
-
var titleFontWeight = '500';
|
|
13
12
|
|
|
14
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
15
14
|
var connectButtonStyles = exports.connectButtonStyles = (0, _react.css)({
|
|
@@ -22,12 +21,12 @@ var titleBlockStyles = exports.titleBlockStyles = (0, _react.css)({
|
|
|
22
21
|
gap: "".concat(blockGap, " ").concat(iconGap),
|
|
23
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
23
|
a: {
|
|
25
|
-
fontWeight:
|
|
24
|
+
fontWeight: "var(--ds-font-weight-medium, 500)"
|
|
26
25
|
}
|
|
27
26
|
});
|
|
28
27
|
|
|
29
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
30
29
|
var mainTextStyles = exports.mainTextStyles = (0, _react.css)({
|
|
31
30
|
marginTop: blockGap,
|
|
32
|
-
|
|
31
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
33
32
|
});
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.NoLinkAppearance = exports.
|
|
7
|
+
exports.NoLinkAppearance = exports.LinkAppearance = exports.IconStyledButton = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -46,11 +46,6 @@ var NoLinkAppearance = exports.NoLinkAppearance = _styled.default.span({
|
|
|
46
46
|
marginLeft: "var(--ds-space-050, 4px)"
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
50
|
-
var LowercaseAppearance = exports.LowercaseAppearance = _styled.default.span({
|
|
51
|
-
textTransform: 'lowercase'
|
|
52
|
-
});
|
|
53
|
-
|
|
54
49
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
55
50
|
var LinkAppearance = exports.LinkAppearance = _styled.default.a({
|
|
56
51
|
color: "var(--ds-link, ".concat(_colors.B400, ")"),
|
|
@@ -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: "32.8.
|
|
23
|
+
packageVersion: "32.8.3",
|
|
24
24
|
componentName: 'linkUrl'
|
|
25
25
|
};
|
|
26
26
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -15,8 +15,7 @@ var _ulist = _interopRequireDefault(require("./ulist"));
|
|
|
15
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
16
|
|
|
17
17
|
var AISummaryCSSStyles = (0, _react.css)({
|
|
18
|
-
|
|
19
|
-
lineHeight: '1rem',
|
|
18
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
20
19
|
wordWrap: 'break-word',
|
|
21
20
|
wordBreak: 'break-word',
|
|
22
21
|
whiteSpace: 'normal',
|
|
@@ -3,7 +3,7 @@ import { getDefinitionId, getExtensionKey, getResourceType } from '../../state/h
|
|
|
3
3
|
import { downloadUrl as download } from '../../utils';
|
|
4
4
|
import { canShowAction } from '../../utils/actions/can-show-action';
|
|
5
5
|
import { getActionsFromJsonLd } from '../common/actions/extractActions';
|
|
6
|
-
import { extractDownloadUrl } from '../common/
|
|
6
|
+
import { extractDownloadUrl } from '../common/download/extractDownloadUrl';
|
|
7
7
|
export const extractInvokeDownloadAction = ({
|
|
8
8
|
actionOptions,
|
|
9
9
|
appearance,
|
|
@@ -33,7 +33,6 @@ export const extractIcon = (jsonLd, priority = 'type') => {
|
|
|
33
33
|
function typeToIcon(type, opts) {
|
|
34
34
|
switch (type) {
|
|
35
35
|
case 'atlassian:SourceCodeCommit':
|
|
36
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
37
36
|
return /*#__PURE__*/React.createElement(CommitIcon, {
|
|
38
37
|
label: opts.title || 'commit',
|
|
39
38
|
testId: "commit-icon"
|
|
@@ -46,25 +45,21 @@ function typeToIcon(type, opts) {
|
|
|
46
45
|
color: "currentColor"
|
|
47
46
|
});
|
|
48
47
|
case 'atlassian:SourceCodePullRequest':
|
|
49
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
50
48
|
return /*#__PURE__*/React.createElement(PullRequestIcon, {
|
|
51
49
|
label: opts.title || 'pullRequest',
|
|
52
50
|
testId: "pull-request-icon"
|
|
53
51
|
});
|
|
54
52
|
case 'atlassian:SourceCodeReference':
|
|
55
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
56
53
|
return /*#__PURE__*/React.createElement(BranchIcon, {
|
|
57
54
|
label: opts.title || 'reference',
|
|
58
55
|
testId: "branch-icon"
|
|
59
56
|
});
|
|
60
57
|
case 'atlassian:SourceCodeRepository':
|
|
61
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
62
58
|
return /*#__PURE__*/React.createElement(RepoIcon, {
|
|
63
59
|
label: opts.title || 'repository',
|
|
64
60
|
testId: "repo-icon"
|
|
65
61
|
});
|
|
66
62
|
case 'atlassian:Goal':
|
|
67
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
68
63
|
return /*#__PURE__*/React.createElement(TaskIcon, {
|
|
69
64
|
label: opts.title || 'goal',
|
|
70
65
|
testId: "task-icon"
|
|
@@ -33,7 +33,6 @@ const documentFileFormatToIcon = opts => {
|
|
|
33
33
|
const documentTypeToIcon = (type, opts) => {
|
|
34
34
|
switch (type) {
|
|
35
35
|
case 'schema:BlogPosting':
|
|
36
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
37
36
|
return /*#__PURE__*/React.createElement(BlogIcon, {
|
|
38
37
|
label: opts.title || 'blog',
|
|
39
38
|
testId: "blog-icon"
|
|
@@ -9,7 +9,6 @@ import JiraStoryIcon from '@atlaskit/icon-object/glyph/story/16';
|
|
|
9
9
|
import JiraSubTaskIcon from '@atlaskit/icon-object/glyph/subtask/16';
|
|
10
10
|
import JiraTaskIcon from '@atlaskit/icon-object/glyph/task/16';
|
|
11
11
|
import { JIRA_BUG, JIRA_CHANGE, JIRA_CUSTOM_TASK_TYPE, JIRA_EPIC, JIRA_GENERATOR_ID, JIRA_INCIDENT, JIRA_PROBLEM, JIRA_SERVICE_REQUEST, JIRA_STORY, JIRA_SUB_TASK, JIRA_TASK } from '../../constants';
|
|
12
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
13
12
|
const TaskIcon = JiraTaskIcon;
|
|
14
13
|
|
|
15
14
|
/**
|
|
@@ -27,7 +26,6 @@ export const extractIconFromTask = opts => {
|
|
|
27
26
|
provider
|
|
28
27
|
} = opts;
|
|
29
28
|
const taskLabel = opts.title || 'task';
|
|
30
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
31
29
|
const defaultIcon = /*#__PURE__*/React.createElement(TaskIcon, {
|
|
32
30
|
label: taskLabel,
|
|
33
31
|
testId: "default-task-icon"
|
|
@@ -37,55 +35,46 @@ export const extractIconFromTask = opts => {
|
|
|
37
35
|
const taskTypeName = taskTypeId.split('#').pop();
|
|
38
36
|
switch (taskTypeName) {
|
|
39
37
|
case JIRA_TASK:
|
|
40
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
41
38
|
return /*#__PURE__*/React.createElement(JiraTaskIcon, {
|
|
42
39
|
label: taskLabel,
|
|
43
40
|
testId: "jira-task-icon"
|
|
44
41
|
});
|
|
45
42
|
case JIRA_SUB_TASK:
|
|
46
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
47
43
|
return /*#__PURE__*/React.createElement(JiraSubTaskIcon, {
|
|
48
44
|
label: taskLabel,
|
|
49
45
|
testId: "jira-subtask-icon"
|
|
50
46
|
});
|
|
51
47
|
case JIRA_STORY:
|
|
52
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
53
48
|
return /*#__PURE__*/React.createElement(JiraStoryIcon, {
|
|
54
49
|
label: taskLabel,
|
|
55
50
|
testId: "jira-story-icon"
|
|
56
51
|
});
|
|
57
52
|
case JIRA_BUG:
|
|
58
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
59
53
|
return /*#__PURE__*/React.createElement(JiraBugIcon, {
|
|
60
54
|
label: taskLabel,
|
|
61
55
|
testId: "jira-bug-icon"
|
|
62
56
|
});
|
|
63
57
|
case JIRA_EPIC:
|
|
64
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
65
58
|
return /*#__PURE__*/React.createElement(JiraEpicIcon, {
|
|
66
59
|
label: taskLabel,
|
|
67
60
|
testId: "jira-epic-icon"
|
|
68
61
|
});
|
|
69
62
|
case JIRA_INCIDENT:
|
|
70
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
71
63
|
return /*#__PURE__*/React.createElement(JiraIncidentIcon, {
|
|
72
64
|
label: taskLabel,
|
|
73
65
|
testId: "jira-incident-icon"
|
|
74
66
|
});
|
|
75
67
|
case JIRA_SERVICE_REQUEST:
|
|
76
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
77
68
|
return /*#__PURE__*/React.createElement(JiraServiceRequestIcon, {
|
|
78
69
|
label: taskLabel,
|
|
79
70
|
testId: "jira-service-request-icon"
|
|
80
71
|
});
|
|
81
72
|
case JIRA_CHANGE:
|
|
82
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
83
73
|
return /*#__PURE__*/React.createElement(JiraChangeIcon, {
|
|
84
74
|
label: taskLabel,
|
|
85
75
|
testId: "jira-change-icon"
|
|
86
76
|
});
|
|
87
77
|
case JIRA_PROBLEM:
|
|
88
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
89
78
|
return /*#__PURE__*/React.createElement(JiraProblemIcon, {
|
|
90
79
|
label: taskLabel,
|
|
91
80
|
testId: "jira-problem-icon"
|