@atlaskit/smart-card 44.3.20 → 44.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/cjs/common/ui/icons/blog-icon.js +3 -3
- package/dist/cjs/common/ui/icons/live-document-icon.js +3 -3
- package/dist/cjs/common/ui/icons/priority-blocker-icon.js +3 -2
- package/dist/cjs/common/ui/icons/priority-critical-icon.js +3 -2
- package/dist/cjs/common/ui/icons/priority-high-icon.js +3 -2
- package/dist/cjs/common/ui/icons/priority-highest-icon.js +3 -2
- package/dist/cjs/common/ui/icons/priority-low-icon.js +3 -2
- package/dist/cjs/common/ui/icons/priority-lowest-icon.js +3 -2
- package/dist/cjs/common/ui/icons/priority-major-icon.js +3 -2
- package/dist/cjs/common/ui/icons/priority-medium-icon.js +3 -2
- package/dist/cjs/common/ui/icons/priority-minor-icon.js +3 -2
- package/dist/cjs/common/ui/icons/priority-trivial-icon.js +3 -2
- package/dist/cjs/common/ui/icons/utils.js +9 -3
- package/dist/cjs/extractors/common/icon/extractIcon.js +10 -10
- package/dist/cjs/extractors/common/icon/extractIconFromDocument.js +4 -4
- package/dist/cjs/extractors/common/icon/extractIconFromTask.js +19 -19
- package/dist/cjs/extractors/flexible/actions/extract-rovo-chat-action.js +1 -1
- package/dist/cjs/state/hooks/use-inline-action-nudge-experiment/index.js +3 -2
- package/dist/cjs/state/hooks/use-rovo-chat/index.js +8 -4
- package/dist/cjs/state/hooks/use-rovo-config/index.js +7 -3
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/index.js +151 -30
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +4 -3
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/es2019/common/ui/icons/blog-icon.js +3 -3
- package/dist/es2019/common/ui/icons/live-document-icon.js +3 -3
- package/dist/es2019/common/ui/icons/priority-blocker-icon.js +3 -2
- package/dist/es2019/common/ui/icons/priority-critical-icon.js +3 -2
- package/dist/es2019/common/ui/icons/priority-high-icon.js +3 -2
- package/dist/es2019/common/ui/icons/priority-highest-icon.js +3 -2
- package/dist/es2019/common/ui/icons/priority-low-icon.js +3 -2
- package/dist/es2019/common/ui/icons/priority-lowest-icon.js +3 -2
- package/dist/es2019/common/ui/icons/priority-major-icon.js +3 -2
- package/dist/es2019/common/ui/icons/priority-medium-icon.js +3 -2
- package/dist/es2019/common/ui/icons/priority-minor-icon.js +3 -2
- package/dist/es2019/common/ui/icons/priority-trivial-icon.js +3 -2
- package/dist/es2019/common/ui/icons/utils.js +9 -3
- package/dist/es2019/extractors/common/icon/extractIcon.js +10 -10
- package/dist/es2019/extractors/common/icon/extractIconFromDocument.js +4 -4
- package/dist/es2019/extractors/common/icon/extractIconFromTask.js +19 -19
- package/dist/es2019/extractors/flexible/actions/extract-rovo-chat-action.js +1 -1
- package/dist/es2019/state/hooks/use-inline-action-nudge-experiment/index.js +3 -1
- package/dist/es2019/state/hooks/use-rovo-chat/index.js +8 -3
- package/dist/es2019/state/hooks/use-rovo-config/index.js +6 -2
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/index.js +92 -31
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +3 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/esm/common/ui/icons/blog-icon.js +3 -3
- package/dist/esm/common/ui/icons/live-document-icon.js +3 -3
- package/dist/esm/common/ui/icons/priority-blocker-icon.js +3 -2
- package/dist/esm/common/ui/icons/priority-critical-icon.js +3 -2
- package/dist/esm/common/ui/icons/priority-high-icon.js +3 -2
- package/dist/esm/common/ui/icons/priority-highest-icon.js +3 -2
- package/dist/esm/common/ui/icons/priority-low-icon.js +3 -2
- package/dist/esm/common/ui/icons/priority-lowest-icon.js +3 -2
- package/dist/esm/common/ui/icons/priority-major-icon.js +3 -2
- package/dist/esm/common/ui/icons/priority-medium-icon.js +3 -2
- package/dist/esm/common/ui/icons/priority-minor-icon.js +3 -2
- package/dist/esm/common/ui/icons/priority-trivial-icon.js +3 -2
- package/dist/esm/common/ui/icons/utils.js +9 -3
- package/dist/esm/extractors/common/icon/extractIcon.js +10 -10
- package/dist/esm/extractors/common/icon/extractIconFromDocument.js +4 -4
- package/dist/esm/extractors/common/icon/extractIconFromTask.js +19 -19
- package/dist/esm/extractors/flexible/actions/extract-rovo-chat-action.js +1 -1
- package/dist/esm/state/hooks/use-inline-action-nudge-experiment/index.js +2 -1
- package/dist/esm/state/hooks/use-rovo-chat/index.js +7 -3
- package/dist/esm/state/hooks/use-rovo-config/index.js +7 -3
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/index.js +151 -30
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +2 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/common/ui/icons/blog-icon.d.ts +2 -7
- package/dist/types/common/ui/icons/live-document-icon.d.ts +2 -7
- package/dist/types/common/ui/icons/priority-blocker-icon.d.ts +7 -2
- package/dist/types/common/ui/icons/priority-critical-icon.d.ts +7 -2
- package/dist/types/common/ui/icons/priority-high-icon.d.ts +7 -2
- package/dist/types/common/ui/icons/priority-highest-icon.d.ts +7 -2
- package/dist/types/common/ui/icons/priority-low-icon.d.ts +7 -2
- package/dist/types/common/ui/icons/priority-lowest-icon.d.ts +7 -2
- package/dist/types/common/ui/icons/priority-major-icon.d.ts +7 -2
- package/dist/types/common/ui/icons/priority-medium-icon.d.ts +7 -2
- package/dist/types/common/ui/icons/priority-minor-icon.d.ts +7 -2
- package/dist/types/common/ui/icons/priority-trivial-icon.d.ts +7 -2
- package/dist/types/common/ui/icons/utils.d.ts +5 -6
- package/dist/types/state/hooks/use-rovo-chat/index.d.ts +2 -1
- package/dist/types/state/hooks/use-rovo-config/index.d.ts +4 -1
- package/dist/types/utils/rovo.d.ts +1 -1
- package/dist/types/view/InlineCard/ResolvedView/index.d.ts +2 -1
- package/dist/types-ts4.5/common/ui/icons/blog-icon.d.ts +2 -7
- package/dist/types-ts4.5/common/ui/icons/live-document-icon.d.ts +2 -7
- package/dist/types-ts4.5/common/ui/icons/priority-blocker-icon.d.ts +7 -2
- package/dist/types-ts4.5/common/ui/icons/priority-critical-icon.d.ts +7 -2
- package/dist/types-ts4.5/common/ui/icons/priority-high-icon.d.ts +7 -2
- package/dist/types-ts4.5/common/ui/icons/priority-highest-icon.d.ts +7 -2
- package/dist/types-ts4.5/common/ui/icons/priority-low-icon.d.ts +7 -2
- package/dist/types-ts4.5/common/ui/icons/priority-lowest-icon.d.ts +7 -2
- package/dist/types-ts4.5/common/ui/icons/priority-major-icon.d.ts +7 -2
- package/dist/types-ts4.5/common/ui/icons/priority-medium-icon.d.ts +7 -2
- package/dist/types-ts4.5/common/ui/icons/priority-minor-icon.d.ts +7 -2
- package/dist/types-ts4.5/common/ui/icons/priority-trivial-icon.d.ts +7 -2
- package/dist/types-ts4.5/common/ui/icons/utils.d.ts +5 -6
- package/dist/types-ts4.5/state/hooks/use-rovo-chat/index.d.ts +2 -1
- package/dist/types-ts4.5/state/hooks/use-rovo-config/index.d.ts +4 -1
- package/dist/types-ts4.5/utils/rovo.d.ts +1 -1
- package/dist/types-ts4.5/view/InlineCard/ResolvedView/index.d.ts +2 -1
- package/package.json +9 -5
|
@@ -40,7 +40,7 @@ var PriorityMinorIconLegacy = function PriorityMinorIconLegacy(_ref) {
|
|
|
40
40
|
})));
|
|
41
41
|
};
|
|
42
42
|
PriorityMinorIconLegacy.displayName = 'PriorityMinorIcon';
|
|
43
|
-
|
|
43
|
+
var _default_1 = componentWithFG('platform_sl_icons_refactor', createPriorityIcon('PriorityMinorIcon', [{
|
|
44
44
|
d: 'M18.449 14.975a1 1 0 011.027 1.716l-6.97 4.173a1 1 0 01-1.03-.002L4.57 16.69a1 1 0 011.034-1.712l6.391 3.862 6.454-3.864z',
|
|
45
45
|
fill: '#0065FF'
|
|
46
46
|
}, {
|
|
@@ -49,4 +49,5 @@ export default componentWithFG('platform_sl_icons_refactor', createPriorityIcon(
|
|
|
49
49
|
}, {
|
|
50
50
|
d: 'M11.995 6.823l6.454-3.865a1 1 0 111.027 1.716l-6.97 4.174a1 1 0 01-1.03-.002L4.57 4.672A1 1 0 015.604 2.96l6.391 3.863z',
|
|
51
51
|
fill: '#4C9AFF'
|
|
52
|
-
}]), PriorityMinorIconLegacy);
|
|
52
|
+
}]), PriorityMinorIconLegacy);
|
|
53
|
+
export default _default_1;
|
|
@@ -34,7 +34,8 @@ var PriorityTrivialIconLegacy = function PriorityTrivialIconLegacy(_ref) {
|
|
|
34
34
|
})));
|
|
35
35
|
};
|
|
36
36
|
PriorityTrivialIconLegacy.displayName = 'PriorityTrivialIcon';
|
|
37
|
-
|
|
37
|
+
var _default_1 = componentWithFG('platform_sl_icons_refactor', createPriorityIcon('PriorityTrivialIcon', [{
|
|
38
38
|
d: 'M12 20a8 8 0 100-16 8 8 0 000 16zm0 2C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10z',
|
|
39
39
|
fill: '#7A8699'
|
|
40
|
-
}]), PriorityTrivialIconLegacy);
|
|
40
|
+
}]), PriorityTrivialIconLegacy);
|
|
41
|
+
export default _default_1;
|
|
@@ -28,14 +28,20 @@ export var transformSmartLinkSizeToIconTileSize = function transformSmartLinkSiz
|
|
|
28
28
|
return '16';
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* For large/xlarge smart-link icon size, renders an `@atlaskit/object/tile/*` component; otherwise a standard `@atlaskit/object` glyph.
|
|
34
|
+
*/
|
|
35
|
+
export var renderIconPerSize = function renderIconPerSize(ObjectIcon, ObjectTileIcon) {
|
|
32
36
|
return function (_ref) {
|
|
33
37
|
var size = _ref.size,
|
|
34
38
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
35
39
|
if (isIconSizeLarge(size)) {
|
|
36
|
-
return /*#__PURE__*/React.createElement(
|
|
40
|
+
return /*#__PURE__*/React.createElement(ObjectTileIcon, _extends({}, props, {
|
|
41
|
+
size: "small"
|
|
42
|
+
}));
|
|
37
43
|
}
|
|
38
|
-
return /*#__PURE__*/React.createElement(
|
|
44
|
+
return /*#__PURE__*/React.createElement(ObjectIcon, props);
|
|
39
45
|
};
|
|
40
46
|
};
|
|
41
47
|
export var renderIconTile = function renderIconTile(Icon, appearance) {
|
|
@@ -2,13 +2,13 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
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; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import BranchIcon from '@atlaskit/icon-object/glyph/branch/16';
|
|
6
|
-
import RepoIcon from '@atlaskit/icon-object/glyph/code/16';
|
|
7
|
-
import CommitIcon from '@atlaskit/icon-object/glyph/commit/16';
|
|
8
|
-
import PullRequestIcon from '@atlaskit/icon-object/glyph/pull-request/16';
|
|
9
|
-
import TaskIcon from '@atlaskit/icon-object/glyph/task/16';
|
|
10
5
|
import PeopleGroupIcon from '@atlaskit/icon/core/people-group';
|
|
11
6
|
import { extractProvider, extractTitle, extractUrlFromIconJsonLd } from '@atlaskit/link-extractors';
|
|
7
|
+
import BranchObject from '@atlaskit/object/branch';
|
|
8
|
+
import CodeObject from '@atlaskit/object/code';
|
|
9
|
+
import CommitObject from '@atlaskit/object/commit';
|
|
10
|
+
import PullRequestObject from '@atlaskit/object/pull-request';
|
|
11
|
+
import TaskObject from '@atlaskit/object/task';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
13
|
import { getIconForFileType } from '../../../utils';
|
|
14
14
|
import { extractTaskType } from '../lozenge/extractTaskType';
|
|
@@ -46,7 +46,7 @@ function typeToIcon(type, opts) {
|
|
|
46
46
|
};
|
|
47
47
|
switch (type) {
|
|
48
48
|
case 'atlassian:SourceCodeCommit':
|
|
49
|
-
return /*#__PURE__*/React.createElement(
|
|
49
|
+
return /*#__PURE__*/React.createElement(CommitObject, {
|
|
50
50
|
label: getLabel('commit'),
|
|
51
51
|
testId: "commit-icon"
|
|
52
52
|
});
|
|
@@ -57,22 +57,22 @@ function typeToIcon(type, opts) {
|
|
|
57
57
|
color: "currentColor"
|
|
58
58
|
});
|
|
59
59
|
case 'atlassian:SourceCodePullRequest':
|
|
60
|
-
return /*#__PURE__*/React.createElement(
|
|
60
|
+
return /*#__PURE__*/React.createElement(PullRequestObject, {
|
|
61
61
|
label: getLabel('pull request'),
|
|
62
62
|
testId: "pull-request-icon"
|
|
63
63
|
});
|
|
64
64
|
case 'atlassian:SourceCodeReference':
|
|
65
|
-
return /*#__PURE__*/React.createElement(
|
|
65
|
+
return /*#__PURE__*/React.createElement(BranchObject, {
|
|
66
66
|
label: getLabel('reference'),
|
|
67
67
|
testId: "branch-icon"
|
|
68
68
|
});
|
|
69
69
|
case 'atlassian:SourceCodeRepository':
|
|
70
|
-
return /*#__PURE__*/React.createElement(
|
|
70
|
+
return /*#__PURE__*/React.createElement(CodeObject, {
|
|
71
71
|
label: getLabel('repository'),
|
|
72
72
|
testId: "repo-icon"
|
|
73
73
|
});
|
|
74
74
|
case 'atlassian:Goal':
|
|
75
|
-
return /*#__PURE__*/React.createElement(
|
|
75
|
+
return /*#__PURE__*/React.createElement(TaskObject, {
|
|
76
76
|
label: getLabel('goal'),
|
|
77
77
|
testId: "task-icon"
|
|
78
78
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import BlogIconGlyph from '@atlaskit/icon-object/glyph/blog/16';
|
|
3
|
-
import LiveDocumentIconGlyph from '@atlaskit/icon-object/glyph/page-live-doc/16';
|
|
4
2
|
import DocumentFilledIcon from '@atlaskit/icon/core/file';
|
|
5
3
|
import { isConfluenceGenerator } from '@atlaskit/link-extractors';
|
|
4
|
+
import BlogIconObject from '@atlaskit/object/blog';
|
|
5
|
+
import LiveDocumentIconObject from '@atlaskit/object/page-live-doc';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
import BlogIconWrapped from '../../../common/ui/icons/blog-icon';
|
|
8
8
|
import PresentationIcon from '../../../common/ui/icons/chart-bar-icon';
|
|
@@ -45,7 +45,7 @@ var documentLabel = function documentLabel(opts, label) {
|
|
|
45
45
|
var documentTypeToIcon = function documentTypeToIcon(type, opts) {
|
|
46
46
|
switch (type) {
|
|
47
47
|
case 'schema:BlogPosting':
|
|
48
|
-
return fg('platform_sl_icons_refactor') ? /*#__PURE__*/React.createElement(
|
|
48
|
+
return fg('platform_sl_icons_refactor') ? /*#__PURE__*/React.createElement(BlogIconObject, {
|
|
49
49
|
label: documentLabel(opts, 'blog'),
|
|
50
50
|
testId: "blog-icon"
|
|
51
51
|
}) : /*#__PURE__*/React.createElement(BlogIconWrapped, {
|
|
@@ -94,7 +94,7 @@ var documentTypeToIcon = function documentTypeToIcon(type, opts) {
|
|
|
94
94
|
var digitalDocumentToIcon = function digitalDocumentToIcon(opts) {
|
|
95
95
|
var _opts$provider;
|
|
96
96
|
if ((_opts$provider = opts.provider) !== null && _opts$provider !== void 0 && _opts$provider.id && isConfluenceGenerator(opts.provider.id)) {
|
|
97
|
-
return fg('platform_sl_icons_refactor') ? /*#__PURE__*/React.createElement(
|
|
97
|
+
return fg('platform_sl_icons_refactor') ? /*#__PURE__*/React.createElement(LiveDocumentIconObject, {
|
|
98
98
|
label: documentLabel(opts, 'live document'),
|
|
99
99
|
testId: "live-doc-icon"
|
|
100
100
|
}) : /*#__PURE__*/React.createElement(LiveDocumentIconWrapped, {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
2
|
+
import BugObject from '@atlaskit/object/bug';
|
|
3
|
+
import ChangesObject from '@atlaskit/object/changes';
|
|
4
|
+
import EpicObject from '@atlaskit/object/epic';
|
|
5
|
+
import IncidentObject from '@atlaskit/object/incident';
|
|
6
|
+
import ProblemObject from '@atlaskit/object/problem';
|
|
7
|
+
import StoryObject from '@atlaskit/object/story';
|
|
8
|
+
import SubtaskObject from '@atlaskit/object/subtask';
|
|
9
|
+
import TaskObject from '@atlaskit/object/task';
|
|
10
|
+
import WorkItemObject from '@atlaskit/object/work-item';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
12
|
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';
|
|
13
|
-
var TaskIcon =
|
|
13
|
+
var TaskIcon = TaskObject;
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Chooses an icon for a task based on the provided options.
|
|
@@ -37,47 +37,47 @@ export var extractIconFromTask = function extractIconFromTask(opts) {
|
|
|
37
37
|
var taskTypeName = taskTypeId.split('#').pop();
|
|
38
38
|
switch (taskTypeName) {
|
|
39
39
|
case JIRA_TASK:
|
|
40
|
-
return /*#__PURE__*/React.createElement(
|
|
40
|
+
return /*#__PURE__*/React.createElement(TaskObject, {
|
|
41
41
|
label: getLabel('Task'),
|
|
42
42
|
testId: "jira-task-icon"
|
|
43
43
|
});
|
|
44
44
|
case JIRA_SUB_TASK:
|
|
45
|
-
return /*#__PURE__*/React.createElement(
|
|
45
|
+
return /*#__PURE__*/React.createElement(SubtaskObject, {
|
|
46
46
|
label: getLabel('Sub-task'),
|
|
47
47
|
testId: "jira-subtask-icon"
|
|
48
48
|
});
|
|
49
49
|
case JIRA_STORY:
|
|
50
|
-
return /*#__PURE__*/React.createElement(
|
|
50
|
+
return /*#__PURE__*/React.createElement(StoryObject, {
|
|
51
51
|
label: getLabel('Story'),
|
|
52
52
|
testId: "jira-story-icon"
|
|
53
53
|
});
|
|
54
54
|
case JIRA_BUG:
|
|
55
|
-
return /*#__PURE__*/React.createElement(
|
|
55
|
+
return /*#__PURE__*/React.createElement(BugObject, {
|
|
56
56
|
label: getLabel('Bug'),
|
|
57
57
|
testId: "jira-bug-icon"
|
|
58
58
|
});
|
|
59
59
|
case JIRA_EPIC:
|
|
60
|
-
return /*#__PURE__*/React.createElement(
|
|
60
|
+
return /*#__PURE__*/React.createElement(EpicObject, {
|
|
61
61
|
label: getLabel('Epic'),
|
|
62
62
|
testId: "jira-epic-icon"
|
|
63
63
|
});
|
|
64
64
|
case JIRA_INCIDENT:
|
|
65
|
-
return /*#__PURE__*/React.createElement(
|
|
65
|
+
return /*#__PURE__*/React.createElement(IncidentObject, {
|
|
66
66
|
label: getLabel('Incident'),
|
|
67
67
|
testId: "jira-incident-icon"
|
|
68
68
|
});
|
|
69
69
|
case JIRA_SERVICE_REQUEST:
|
|
70
|
-
return /*#__PURE__*/React.createElement(
|
|
70
|
+
return /*#__PURE__*/React.createElement(WorkItemObject, {
|
|
71
71
|
label: getLabel('Service request'),
|
|
72
72
|
testId: "jira-service-request-icon"
|
|
73
73
|
});
|
|
74
74
|
case JIRA_CHANGE:
|
|
75
|
-
return /*#__PURE__*/React.createElement(
|
|
75
|
+
return /*#__PURE__*/React.createElement(ChangesObject, {
|
|
76
76
|
label: getLabel('Change'),
|
|
77
77
|
testId: "jira-change-icon"
|
|
78
78
|
});
|
|
79
79
|
case JIRA_PROBLEM:
|
|
80
|
-
return /*#__PURE__*/React.createElement(
|
|
80
|
+
return /*#__PURE__*/React.createElement(ProblemObject, {
|
|
81
81
|
label: getLabel('Problem'),
|
|
82
82
|
testId: "jira-problem-icon"
|
|
83
83
|
});
|
|
@@ -19,7 +19,7 @@ var extractRovoChatAction = function extractRovoChatAction(_ref) {
|
|
|
19
19
|
if (!canShowAction(CardAction.RovoChatAction, actionOptions)) {
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
|
-
var isRovoChatEnabled = getIsRovoChatEnabled(rovoConfig);
|
|
22
|
+
var isRovoChatEnabled = getIsRovoChatEnabled(rovoConfig === null || rovoConfig === void 0 ? void 0 : rovoConfig.rovoOptions);
|
|
23
23
|
if (!isRovoChatEnabled) {
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
@@ -25,7 +25,8 @@ var NOT_ENABLED_RESULT = {
|
|
|
25
25
|
*/
|
|
26
26
|
var useInlineActionNudgeExperiment = function useInlineActionNudgeExperiment(url, showHoverPreview, actionOptions) {
|
|
27
27
|
var _actionOptions$rovoCh, _actionOptions$rovoCh2;
|
|
28
|
-
var
|
|
28
|
+
var _useRovoConfig = useRovoConfig(),
|
|
29
|
+
rovoConfig = _useRovoConfig.rovoOptions;
|
|
29
30
|
var isRovoChatEnabled = getIsRovoChatEnabled(rovoConfig);
|
|
30
31
|
var cardState = useSmartCardState(url !== null && url !== void 0 ? url : '');
|
|
31
32
|
var extensionKey = getExtensionKey(cardState.details);
|
|
@@ -2,17 +2,21 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
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; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { useCallback, useMemo } from 'react';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import { useRovoPostMessageToPubsub } from '@atlaskit/rovo-triggers/post-message-to-pubsub';
|
|
6
7
|
import { getIsRovoChatEnabled } from '../../../utils/rovo';
|
|
7
8
|
import useRovoConfig from '../use-rovo-config';
|
|
8
9
|
var SMART_LINK_TO_ROVO_SOURCE = 'smart-link';
|
|
9
10
|
var useRovoChat = function useRovoChat() {
|
|
10
|
-
var
|
|
11
|
+
var _useRovoConfig = useRovoConfig(),
|
|
12
|
+
config = _useRovoConfig.rovoOptions,
|
|
13
|
+
product = _useRovoConfig.product;
|
|
11
14
|
var _useRovoPostMessageTo = useRovoPostMessageToPubsub(),
|
|
12
15
|
publishWithPostMessage = _useRovoPostMessageTo.publishWithPostMessage;
|
|
13
16
|
var isRovoChatEnabled = getIsRovoChatEnabled(config);
|
|
14
17
|
var sendPromptMessage = useCallback(function (data) {
|
|
15
18
|
var _window$parent;
|
|
19
|
+
var jiraProducts = ['JSM', 'JWM', 'JSW', 'JPD'];
|
|
16
20
|
publishWithPostMessage({
|
|
17
21
|
targetWindow: (_window$parent = window.parent) !== null && _window$parent !== void 0 ? _window$parent : window,
|
|
18
22
|
payload: {
|
|
@@ -24,13 +28,13 @@ var useRovoChat = function useRovoChat() {
|
|
|
24
28
|
agentId: undefined
|
|
25
29
|
}),
|
|
26
30
|
openChat: true,
|
|
27
|
-
openChatMode: 'sidebar'
|
|
31
|
+
openChatMode: product && jiraProducts.includes(product) && fg('platform_sl_3p_auth_rovo_block_jira_kill_switch') ? 'mini-modal' : 'sidebar'
|
|
28
32
|
},
|
|
29
33
|
onAcknowledgeTimeout: function onAcknowledgeTimeout() {
|
|
30
34
|
// NAVX-3599: Add analytics event
|
|
31
35
|
}
|
|
32
36
|
});
|
|
33
|
-
}, [publishWithPostMessage]);
|
|
37
|
+
}, [publishWithPostMessage, product]);
|
|
34
38
|
return useMemo(function () {
|
|
35
39
|
return {
|
|
36
40
|
isRovoChatEnabled: isRovoChatEnabled,
|
|
@@ -2,9 +2,13 @@ import { useMemo } from 'react';
|
|
|
2
2
|
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
3
3
|
var useRovoConfig = function useRovoConfig() {
|
|
4
4
|
var _useSmartLinkContext = useSmartLinkContext(),
|
|
5
|
-
rovoOptions = _useSmartLinkContext.rovoOptions
|
|
5
|
+
rovoOptions = _useSmartLinkContext.rovoOptions,
|
|
6
|
+
product = _useSmartLinkContext.product;
|
|
6
7
|
return useMemo(function () {
|
|
7
|
-
return
|
|
8
|
-
|
|
8
|
+
return {
|
|
9
|
+
rovoOptions: rovoOptions,
|
|
10
|
+
product: product
|
|
11
|
+
};
|
|
12
|
+
}, [rovoOptions, product]);
|
|
9
13
|
};
|
|
10
14
|
export default useRovoConfig;
|
|
@@ -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: "44.3.
|
|
7
|
+
packageVersion: "44.3.20" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
@@ -264,17 +265,33 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
264
265
|
}
|
|
265
266
|
})), fg('platform_sl_icons_refactor') ? _defineProperty(_defineProperty({}, IconType.Blog, {
|
|
266
267
|
default: function _default() {
|
|
267
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphBlog" */'@atlaskit/
|
|
268
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphBlog" */'@atlaskit/object/blog');
|
|
268
269
|
},
|
|
269
270
|
large: function large() {
|
|
270
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphBlog" */'@atlaskit/
|
|
271
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphBlog" */'@atlaskit/object/tile/blog').then(function (module) {
|
|
272
|
+
return {
|
|
273
|
+
default: function _default(props) {
|
|
274
|
+
return /*#__PURE__*/React.createElement(module.default, _extends({}, props, {
|
|
275
|
+
size: "small"
|
|
276
|
+
}));
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
});
|
|
271
280
|
}
|
|
272
281
|
}), IconType.LiveDocument, {
|
|
273
282
|
default: function _default() {
|
|
274
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'@atlaskit/
|
|
283
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'@atlaskit/object/page-live-doc');
|
|
275
284
|
},
|
|
276
285
|
large: function large() {
|
|
277
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'@atlaskit/
|
|
286
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'@atlaskit/object/tile/page-live-doc').then(function (module) {
|
|
287
|
+
return {
|
|
288
|
+
default: function _default(props) {
|
|
289
|
+
return /*#__PURE__*/React.createElement(module.default, _extends({}, props, {
|
|
290
|
+
size: "small"
|
|
291
|
+
}));
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
});
|
|
278
295
|
}
|
|
279
296
|
}) : _defineProperty(_defineProperty({}, IconType.Blog, {
|
|
280
297
|
default: function _default() {
|
|
@@ -286,94 +303,198 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
286
303
|
}
|
|
287
304
|
})), {}, (_objectSpread3 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_objectSpread3, IconType.Branch, {
|
|
288
305
|
default: function _default() {
|
|
289
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphBranch" */'@atlaskit/
|
|
306
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphBranch" */'@atlaskit/object/branch');
|
|
290
307
|
},
|
|
291
308
|
large: function large() {
|
|
292
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphBranch" */'@atlaskit/
|
|
309
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphBranch" */'@atlaskit/object/tile/branch').then(function (module) {
|
|
310
|
+
return {
|
|
311
|
+
default: function _default(props) {
|
|
312
|
+
return /*#__PURE__*/React.createElement(module.default, _extends({}, props, {
|
|
313
|
+
size: "small"
|
|
314
|
+
}));
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
});
|
|
293
318
|
}
|
|
294
319
|
}), IconType.Commit, {
|
|
295
320
|
default: function _default() {
|
|
296
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphCommit" */'@atlaskit/
|
|
321
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphCommit" */'@atlaskit/object/commit');
|
|
297
322
|
},
|
|
298
323
|
large: function large() {
|
|
299
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphCommit" */'@atlaskit/
|
|
324
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphCommit" */'@atlaskit/object/tile/commit').then(function (module) {
|
|
325
|
+
return {
|
|
326
|
+
default: function _default(props) {
|
|
327
|
+
return /*#__PURE__*/React.createElement(module.default, _extends({}, props, {
|
|
328
|
+
size: "small"
|
|
329
|
+
}));
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
});
|
|
300
333
|
}
|
|
301
334
|
}), IconType.PullRequest, {
|
|
302
335
|
default: function _default() {
|
|
303
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphPullRequest" */'@atlaskit/
|
|
336
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphPullRequest" */'@atlaskit/object/pull-request');
|
|
304
337
|
},
|
|
305
338
|
large: function large() {
|
|
306
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphPullRequest" */'@atlaskit/
|
|
339
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphPullRequest" */'@atlaskit/object/tile/pull-request').then(function (module) {
|
|
340
|
+
return {
|
|
341
|
+
default: function _default(props) {
|
|
342
|
+
return /*#__PURE__*/React.createElement(module.default, _extends({}, props, {
|
|
343
|
+
size: "small"
|
|
344
|
+
}));
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
});
|
|
307
348
|
}
|
|
308
349
|
}), IconType.Repo, {
|
|
309
350
|
default: function _default() {
|
|
310
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphRepo" */'@atlaskit/
|
|
351
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphRepo" */'@atlaskit/object/code');
|
|
311
352
|
},
|
|
312
353
|
large: function large() {
|
|
313
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphRepo" */'@atlaskit/
|
|
354
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphRepo" */'@atlaskit/object/tile/code').then(function (module) {
|
|
355
|
+
return {
|
|
356
|
+
default: function _default(props) {
|
|
357
|
+
return /*#__PURE__*/React.createElement(module.default, _extends({}, props, {
|
|
358
|
+
size: "small"
|
|
359
|
+
}));
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
});
|
|
314
363
|
}
|
|
315
364
|
}), IconType.Bug, {
|
|
316
365
|
default: function _default() {
|
|
317
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphBug" */'@atlaskit/
|
|
366
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphBug" */'@atlaskit/object/bug');
|
|
318
367
|
},
|
|
319
368
|
large: function large() {
|
|
320
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphBug" */'@atlaskit/
|
|
369
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphBug" */'@atlaskit/object/tile/bug').then(function (module) {
|
|
370
|
+
return {
|
|
371
|
+
default: function _default(props) {
|
|
372
|
+
return /*#__PURE__*/React.createElement(module.default, _extends({}, props, {
|
|
373
|
+
size: "small"
|
|
374
|
+
}));
|
|
375
|
+
}
|
|
376
|
+
};
|
|
377
|
+
});
|
|
321
378
|
}
|
|
322
379
|
}), IconType.Change, {
|
|
323
380
|
default: function _default() {
|
|
324
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphChange" */'@atlaskit/
|
|
381
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphChange" */'@atlaskit/object/changes');
|
|
325
382
|
},
|
|
326
383
|
large: function large() {
|
|
327
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphChange" */'@atlaskit/
|
|
384
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphChange" */'@atlaskit/object/tile/changes').then(function (module) {
|
|
385
|
+
return {
|
|
386
|
+
default: function _default(props) {
|
|
387
|
+
return /*#__PURE__*/React.createElement(module.default, _extends({}, props, {
|
|
388
|
+
size: "small"
|
|
389
|
+
}));
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
});
|
|
328
393
|
}
|
|
329
394
|
}), IconType.Epic, {
|
|
330
395
|
default: function _default() {
|
|
331
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphEpic" */'@atlaskit/
|
|
396
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphEpic" */'@atlaskit/object/epic');
|
|
332
397
|
},
|
|
333
398
|
large: function large() {
|
|
334
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphEpic" */'@atlaskit/
|
|
399
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphEpic" */'@atlaskit/object/tile/epic').then(function (module) {
|
|
400
|
+
return {
|
|
401
|
+
default: function _default(props) {
|
|
402
|
+
return /*#__PURE__*/React.createElement(module.default, _extends({}, props, {
|
|
403
|
+
size: "small"
|
|
404
|
+
}));
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
});
|
|
335
408
|
}
|
|
336
409
|
}), IconType.Incident, {
|
|
337
410
|
default: function _default() {
|
|
338
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphIncident" */'@atlaskit/
|
|
411
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphIncident" */'@atlaskit/object/incident');
|
|
339
412
|
},
|
|
340
413
|
large: function large() {
|
|
341
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphIncident" */'@atlaskit/
|
|
414
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphIncident" */'@atlaskit/object/tile/incident').then(function (module) {
|
|
415
|
+
return {
|
|
416
|
+
default: function _default(props) {
|
|
417
|
+
return /*#__PURE__*/React.createElement(module.default, _extends({}, props, {
|
|
418
|
+
size: "small"
|
|
419
|
+
}));
|
|
420
|
+
}
|
|
421
|
+
};
|
|
422
|
+
});
|
|
342
423
|
}
|
|
343
424
|
}), IconType.Problem, {
|
|
344
425
|
default: function _default() {
|
|
345
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphProblem" */'@atlaskit/
|
|
426
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphProblem" */'@atlaskit/object/problem');
|
|
346
427
|
},
|
|
347
428
|
large: function large() {
|
|
348
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphProblem" */'@atlaskit/
|
|
429
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphProblem" */'@atlaskit/object/tile/problem').then(function (module) {
|
|
430
|
+
return {
|
|
431
|
+
default: function _default(props) {
|
|
432
|
+
return /*#__PURE__*/React.createElement(module.default, _extends({}, props, {
|
|
433
|
+
size: "small"
|
|
434
|
+
}));
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
});
|
|
349
438
|
}
|
|
350
439
|
}), IconType.ServiceRequest, {
|
|
351
440
|
default: function _default() {
|
|
352
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphServiceRequest" */'@atlaskit/
|
|
441
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphServiceRequest" */'@atlaskit/object/work-item');
|
|
353
442
|
},
|
|
354
443
|
large: function large() {
|
|
355
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphServiceRequest" */'@atlaskit/
|
|
444
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphServiceRequest" */'@atlaskit/object/tile/work-item').then(function (module) {
|
|
445
|
+
return {
|
|
446
|
+
default: function _default(props) {
|
|
447
|
+
return /*#__PURE__*/React.createElement(module.default, _extends({}, props, {
|
|
448
|
+
size: "small"
|
|
449
|
+
}));
|
|
450
|
+
}
|
|
451
|
+
};
|
|
452
|
+
});
|
|
356
453
|
}
|
|
357
454
|
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_objectSpread3, IconType.Story, {
|
|
358
455
|
default: function _default() {
|
|
359
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphStory" */'@atlaskit/
|
|
456
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphStory" */'@atlaskit/object/story');
|
|
360
457
|
},
|
|
361
458
|
large: function large() {
|
|
362
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphStory" */'@atlaskit/
|
|
459
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphStory" */'@atlaskit/object/tile/story').then(function (module) {
|
|
460
|
+
return {
|
|
461
|
+
default: function _default(props) {
|
|
462
|
+
return /*#__PURE__*/React.createElement(module.default, _extends({}, props, {
|
|
463
|
+
size: "small"
|
|
464
|
+
}));
|
|
465
|
+
}
|
|
466
|
+
};
|
|
467
|
+
});
|
|
363
468
|
}
|
|
364
469
|
}), IconType.SubTask, {
|
|
365
470
|
default: function _default() {
|
|
366
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphSubTask" */'@atlaskit/
|
|
471
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphSubTask" */'@atlaskit/object/subtask');
|
|
367
472
|
},
|
|
368
473
|
large: function large() {
|
|
369
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphSubTask" */'@atlaskit/
|
|
474
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphSubTask" */'@atlaskit/object/tile/subtask').then(function (module) {
|
|
475
|
+
return {
|
|
476
|
+
default: function _default(props) {
|
|
477
|
+
return /*#__PURE__*/React.createElement(module.default, _extends({}, props, {
|
|
478
|
+
size: "small"
|
|
479
|
+
}));
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
});
|
|
370
483
|
}
|
|
371
484
|
}), IconType.Task, {
|
|
372
485
|
default: function _default() {
|
|
373
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/
|
|
486
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/object/task');
|
|
374
487
|
},
|
|
375
488
|
large: function large() {
|
|
376
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/
|
|
489
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/object/tile/task').then(function (module) {
|
|
490
|
+
return {
|
|
491
|
+
default: function _default(props) {
|
|
492
|
+
return /*#__PURE__*/React.createElement(module.default, _extends({}, props, {
|
|
493
|
+
size: "small"
|
|
494
|
+
}));
|
|
495
|
+
}
|
|
496
|
+
};
|
|
497
|
+
});
|
|
377
498
|
}
|
|
378
499
|
}), IconType.Confluence, {
|
|
379
500
|
default: function _default() {
|
|
@@ -51,7 +51,8 @@ var useIsUnauthorisedView = function useIsUnauthorisedView(_ref3) {
|
|
|
51
51
|
return !(hoverPreviewOptions !== null && hoverPreviewOptions !== void 0 && (_hoverPreviewOptions$2 = hoverPreviewOptions.render) !== null && _hoverPreviewOptions$2 !== void 0 && _hoverPreviewOptions$2.call(hoverPreviewOptions)) && cardState.status === 'unauthorized' && Boolean(services === null || services === void 0 ? void 0 : services.length);
|
|
52
52
|
};
|
|
53
53
|
var useIsShowPreauthBetterHovercard = function useIsShowPreauthBetterHovercard(props) {
|
|
54
|
-
var
|
|
54
|
+
var _useRovoConfig = useRovoConfig(),
|
|
55
|
+
rovoConfig = _useRovoConfig.rovoOptions;
|
|
55
56
|
return Boolean(useIsUnauthorisedView(props) && (rovoConfig === null || rovoConfig === void 0 ? void 0 : rovoConfig.isRovoEnabled) && expValEquals('platform_sl_3p_preauth_better_hovercard', 'isEnabled', true));
|
|
56
57
|
};
|
|
57
58
|
var HoverCardContent = function HoverCardContent(_ref4) {
|
|
@@ -15,7 +15,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
15
15
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
16
16
|
var PACKAGE_DATA = {
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "44.3.
|
|
18
|
+
packageVersion: "44.3.20",
|
|
19
19
|
componentName: 'linkUrl'
|
|
20
20
|
};
|
|
21
21
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
declare const BlogIconWithColor: FC<{
|
|
4
|
-
label: string;
|
|
5
|
-
testId?: string;
|
|
6
|
-
} & {
|
|
7
|
-
size?: SmartLinkSize;
|
|
1
|
+
declare const BlogIconWithColor: import("react").FC<Omit<import("@atlaskit/object").ObjectProps, "size"> & {
|
|
2
|
+
size?: import("../../..").SmartLinkSize;
|
|
8
3
|
}>;
|
|
9
4
|
export default BlogIconWithColor;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
declare const LiveDocumentIconWithColor: FC<{
|
|
4
|
-
label: string;
|
|
5
|
-
testId?: string;
|
|
6
|
-
} & {
|
|
7
|
-
size?: SmartLinkSize;
|
|
1
|
+
declare const LiveDocumentIconWithColor: import("react").FC<Omit<import("@atlaskit/object").ObjectProps, "size"> & {
|
|
2
|
+
size?: import("../../..").SmartLinkSize;
|
|
8
3
|
}>;
|
|
9
4
|
export default LiveDocumentIconWithColor;
|