@atlaskit/smart-card 38.9.2 → 38.10.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 +17 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/utils/index.js +11 -19
- package/dist/cjs/view/CardWithUrl/component.js +3 -5
- package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/related-links-action-icon/index.js +2 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/utils/index.js +11 -19
- package/dist/es2019/view/CardWithUrl/component.js +3 -5
- package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/related-links-action-icon/index.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/utils/index.js +11 -19
- package/dist/esm/view/CardWithUrl/component.js +3 -5
- package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/related-links-action-icon/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +4 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 38.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#172142](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172142)
|
|
8
|
+
[`8073537f9214d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8073537f9214d) -
|
|
9
|
+
Clearing `expandable_smart_links_for_scorecards_v2` feature-gate after release
|
|
10
|
+
|
|
11
|
+
## 38.9.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#171534](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/171534)
|
|
16
|
+
[`72189ecc4d763`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/72189ecc4d763) -
|
|
17
|
+
Updated icon usage for deprecated icons
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 38.9.2
|
|
4
21
|
|
|
5
22
|
### Patch 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.9.
|
|
14
|
+
packageVersion: "38.9.3"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -63,25 +63,17 @@ var getSimulatedBetterMetadata = exports.getSimulatedBetterMetadata = function g
|
|
|
63
63
|
bottomMetadata: defaultBottomMetadata
|
|
64
64
|
};
|
|
65
65
|
case 'dragonfruit-object-provider':
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
};
|
|
78
|
-
} else {
|
|
79
|
-
return {
|
|
80
|
-
titleMetadata: defaultTitleMetadata,
|
|
81
|
-
topMetadata: defaultTopMetadata,
|
|
82
|
-
bottomMetadata: defaultBottomMetadata
|
|
83
|
-
};
|
|
84
|
-
}
|
|
66
|
+
return {
|
|
67
|
+
titleMetadata: defaultTitleMetadata,
|
|
68
|
+
topMetadata: (0, _utils.extractOwnedBy)(data) ? [{
|
|
69
|
+
name: _constants.ElementName.OwnedByGroup
|
|
70
|
+
}, {
|
|
71
|
+
name: _constants.ElementName.OwnedBy
|
|
72
|
+
}].concat(baseTopMetadata) : defaultTopMetadata,
|
|
73
|
+
bottomMetadata: [{
|
|
74
|
+
name: _constants.ElementName.AppliedToComponentsCount
|
|
75
|
+
}].concat(baseBottomMetaData)
|
|
76
|
+
};
|
|
85
77
|
case 'confluence-object-provider':
|
|
86
78
|
return {
|
|
87
79
|
titleMetadata: defaultTitleMetadata,
|
|
@@ -66,8 +66,8 @@ function Component(_ref) {
|
|
|
66
66
|
error = _useSmartLink.error,
|
|
67
67
|
isPreviewPanelAvailable = _useSmartLink.isPreviewPanelAvailable,
|
|
68
68
|
openPreviewPanel = _useSmartLink.openPreviewPanel;
|
|
69
|
-
var ari = (0,
|
|
70
|
-
var name = (0,
|
|
69
|
+
var ari = (0, _helpers.getObjectAri)(state.details);
|
|
70
|
+
var name = (0, _helpers.getObjectName)(state.details);
|
|
71
71
|
var definitionId = (0, _helpers.getDefinitionId)(state.details);
|
|
72
72
|
var extensionKey = (0, _helpers.getExtensionKey)(state.details);
|
|
73
73
|
var resourceType = (0, _helpers.getResourceType)(state.details);
|
|
@@ -92,9 +92,7 @@ function Component(_ref) {
|
|
|
92
92
|
|
|
93
93
|
// If preview panel is available and the user clicked on the link,
|
|
94
94
|
// delegate the click to the preview panel handler
|
|
95
|
-
if (
|
|
96
|
-
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
97
|
-
(0, _platformFeatureFlags.fg)('fun-1765_wire_up_glance_panel_to_smart_cards') && !isModifierKeyPressed && ari && name && openPreviewPanel && isPreviewPanelAvailable !== null && isPreviewPanelAvailable !== void 0 && isPreviewPanelAvailable({
|
|
95
|
+
if (!isModifierKeyPressed && ari && name && openPreviewPanel && isPreviewPanelAvailable !== null && isPreviewPanelAvailable !== void 0 && isPreviewPanelAvailable({
|
|
98
96
|
ari: ari
|
|
99
97
|
})) {
|
|
100
98
|
event.preventDefault();
|
|
@@ -11,7 +11,7 @@ require("./index.compiled.css");
|
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _clock = _interopRequireDefault(require("@atlaskit/icon/core/clock"));
|
|
14
|
-
var
|
|
14
|
+
var _childWorkItemsChildIssues = _interopRequireDefault(require("@atlaskit/icon/core/migration/child-work-items--child-issues"));
|
|
15
15
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
17
|
var rotateSvg = null;
|
|
@@ -26,7 +26,7 @@ var RelatedLinksActionIcon = function RelatedLinksActionIcon() {
|
|
|
26
26
|
label: "View related links..."
|
|
27
27
|
}) : /*#__PURE__*/React.createElement("span", {
|
|
28
28
|
className: (0, _runtime.ax)(["_t9ec1sub _1e0c1o8l"])
|
|
29
|
-
}, /*#__PURE__*/React.createElement(
|
|
29
|
+
}, /*#__PURE__*/React.createElement(_childWorkItemsChildIssues.default, {
|
|
30
30
|
color: "currentColor",
|
|
31
31
|
spacing: "spacious",
|
|
32
32
|
label: "View recent links..."
|
|
@@ -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.9.
|
|
23
|
+
packageVersion: "38.9.3",
|
|
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.9.
|
|
5
|
+
packageVersion: "38.9.3"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -57,25 +57,17 @@ export const getSimulatedBetterMetadata = cardDetails => {
|
|
|
57
57
|
bottomMetadata: defaultBottomMetadata
|
|
58
58
|
};
|
|
59
59
|
case 'dragonfruit-object-provider':
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
};
|
|
72
|
-
} else {
|
|
73
|
-
return {
|
|
74
|
-
titleMetadata: defaultTitleMetadata,
|
|
75
|
-
topMetadata: defaultTopMetadata,
|
|
76
|
-
bottomMetadata: defaultBottomMetadata
|
|
77
|
-
};
|
|
78
|
-
}
|
|
60
|
+
return {
|
|
61
|
+
titleMetadata: defaultTitleMetadata,
|
|
62
|
+
topMetadata: extractOwnedBy(data) ? [{
|
|
63
|
+
name: ElementName.OwnedByGroup
|
|
64
|
+
}, {
|
|
65
|
+
name: ElementName.OwnedBy
|
|
66
|
+
}, ...baseTopMetadata] : defaultTopMetadata,
|
|
67
|
+
bottomMetadata: [{
|
|
68
|
+
name: ElementName.AppliedToComponentsCount
|
|
69
|
+
}, ...baseBottomMetaData]
|
|
70
|
+
};
|
|
79
71
|
case 'confluence-object-provider':
|
|
80
72
|
return {
|
|
81
73
|
titleMetadata: defaultTitleMetadata,
|
|
@@ -61,8 +61,8 @@ function Component({
|
|
|
61
61
|
isPreviewPanelAvailable,
|
|
62
62
|
openPreviewPanel
|
|
63
63
|
} = useSmartLink(id, url);
|
|
64
|
-
const ari =
|
|
65
|
-
const name =
|
|
64
|
+
const ari = getObjectAri(state.details);
|
|
65
|
+
const name = getObjectName(state.details);
|
|
66
66
|
const definitionId = getDefinitionId(state.details);
|
|
67
67
|
const extensionKey = getExtensionKey(state.details);
|
|
68
68
|
const resourceType = getResourceType(state.details);
|
|
@@ -85,9 +85,7 @@ function Component({
|
|
|
85
85
|
|
|
86
86
|
// If preview panel is available and the user clicked on the link,
|
|
87
87
|
// delegate the click to the preview panel handler
|
|
88
|
-
if (
|
|
89
|
-
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
90
|
-
fg('fun-1765_wire_up_glance_panel_to_smart_cards') && !isModifierKeyPressed && ari && name && openPreviewPanel && isPreviewPanelAvailable !== null && isPreviewPanelAvailable !== void 0 && isPreviewPanelAvailable({
|
|
88
|
+
if (!isModifierKeyPressed && ari && name && openPreviewPanel && isPreviewPanelAvailable !== null && isPreviewPanelAvailable !== void 0 && isPreviewPanelAvailable({
|
|
91
89
|
ari
|
|
92
90
|
})) {
|
|
93
91
|
event.preventDefault();
|
|
@@ -3,7 +3,7 @@ import "./index.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import ClockIcon from '@atlaskit/icon/core/clock';
|
|
6
|
-
import ChildIssuesIcon from '@atlaskit/icon/core/migration/child-issues';
|
|
6
|
+
import ChildIssuesIcon from '@atlaskit/icon/core/migration/child-work-items--child-issues';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
8
|
const rotateSvg = null;
|
|
9
9
|
|
|
@@ -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.9.
|
|
13
|
+
packageVersion: "38.9.3",
|
|
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.9.
|
|
7
|
+
packageVersion: "38.9.3"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -57,25 +57,17 @@ export var getSimulatedBetterMetadata = function getSimulatedBetterMetadata(card
|
|
|
57
57
|
bottomMetadata: defaultBottomMetadata
|
|
58
58
|
};
|
|
59
59
|
case 'dragonfruit-object-provider':
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
};
|
|
72
|
-
} else {
|
|
73
|
-
return {
|
|
74
|
-
titleMetadata: defaultTitleMetadata,
|
|
75
|
-
topMetadata: defaultTopMetadata,
|
|
76
|
-
bottomMetadata: defaultBottomMetadata
|
|
77
|
-
};
|
|
78
|
-
}
|
|
60
|
+
return {
|
|
61
|
+
titleMetadata: defaultTitleMetadata,
|
|
62
|
+
topMetadata: extractOwnedBy(data) ? [{
|
|
63
|
+
name: ElementName.OwnedByGroup
|
|
64
|
+
}, {
|
|
65
|
+
name: ElementName.OwnedBy
|
|
66
|
+
}].concat(baseTopMetadata) : defaultTopMetadata,
|
|
67
|
+
bottomMetadata: [{
|
|
68
|
+
name: ElementName.AppliedToComponentsCount
|
|
69
|
+
}].concat(baseBottomMetaData)
|
|
70
|
+
};
|
|
79
71
|
case 'confluence-object-provider':
|
|
80
72
|
return {
|
|
81
73
|
titleMetadata: defaultTitleMetadata,
|
|
@@ -57,8 +57,8 @@ function Component(_ref) {
|
|
|
57
57
|
error = _useSmartLink.error,
|
|
58
58
|
isPreviewPanelAvailable = _useSmartLink.isPreviewPanelAvailable,
|
|
59
59
|
openPreviewPanel = _useSmartLink.openPreviewPanel;
|
|
60
|
-
var ari =
|
|
61
|
-
var name =
|
|
60
|
+
var ari = getObjectAri(state.details);
|
|
61
|
+
var name = getObjectName(state.details);
|
|
62
62
|
var definitionId = getDefinitionId(state.details);
|
|
63
63
|
var extensionKey = getExtensionKey(state.details);
|
|
64
64
|
var resourceType = getResourceType(state.details);
|
|
@@ -83,9 +83,7 @@ function Component(_ref) {
|
|
|
83
83
|
|
|
84
84
|
// If preview panel is available and the user clicked on the link,
|
|
85
85
|
// delegate the click to the preview panel handler
|
|
86
|
-
if (
|
|
87
|
-
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
88
|
-
fg('fun-1765_wire_up_glance_panel_to_smart_cards') && !isModifierKeyPressed && ari && name && openPreviewPanel && isPreviewPanelAvailable !== null && isPreviewPanelAvailable !== void 0 && isPreviewPanelAvailable({
|
|
86
|
+
if (!isModifierKeyPressed && ari && name && openPreviewPanel && isPreviewPanelAvailable !== null && isPreviewPanelAvailable !== void 0 && isPreviewPanelAvailable({
|
|
89
87
|
ari: ari
|
|
90
88
|
})) {
|
|
91
89
|
event.preventDefault();
|
|
@@ -3,7 +3,7 @@ import "./index.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import ClockIcon from '@atlaskit/icon/core/clock';
|
|
6
|
-
import ChildIssuesIcon from '@atlaskit/icon/core/migration/child-issues';
|
|
6
|
+
import ChildIssuesIcon from '@atlaskit/icon/core/migration/child-work-items--child-issues';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
8
|
var rotateSvg = null;
|
|
9
9
|
|
|
@@ -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.9.
|
|
16
|
+
packageVersion: "38.9.3",
|
|
17
17
|
componentName: 'linkUrl'
|
|
18
18
|
};
|
|
19
19
|
var Anchor = withLinkClickedEvent('a');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "38.
|
|
3
|
+
"version": "38.10.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"@atlaskit/form": "^12.0.0",
|
|
40
40
|
"@atlaskit/frontend-utilities": "^3.0.0",
|
|
41
41
|
"@atlaskit/heading": "^5.2.0",
|
|
42
|
-
"@atlaskit/icon": "^
|
|
42
|
+
"@atlaskit/icon": "^27.0.0",
|
|
43
43
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
44
|
-
"@atlaskit/icon-lab": "^
|
|
44
|
+
"@atlaskit/icon-lab": "^5.0.0",
|
|
45
45
|
"@atlaskit/icon-object": "^7.1.0",
|
|
46
46
|
"@atlaskit/icon-priority": "^6.3.0",
|
|
47
47
|
"@atlaskit/image": "^3.0.0",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@atlaskit/link-extractors": "^2.3.0",
|
|
54
54
|
"@atlaskit/linking-common": "^9.0.0",
|
|
55
55
|
"@atlaskit/linking-types": "^12.0.0",
|
|
56
|
-
"@atlaskit/logo": "^19.
|
|
56
|
+
"@atlaskit/logo": "^19.1.0",
|
|
57
57
|
"@atlaskit/lozenge": "^13.0.0",
|
|
58
58
|
"@atlaskit/menu": "^8.0.0",
|
|
59
59
|
"@atlaskit/modal-dialog": "^14.2.0",
|
|
@@ -187,9 +187,6 @@
|
|
|
187
187
|
"smart_links_for_plans_platform": {
|
|
188
188
|
"type": "boolean"
|
|
189
189
|
},
|
|
190
|
-
"expandable_smart_links_for_scorecards_v2": {
|
|
191
|
-
"type": "boolean"
|
|
192
|
-
},
|
|
193
190
|
"platform_bandicoots-smartlink-unresolved-error-key": {
|
|
194
191
|
"type": "boolean"
|
|
195
192
|
},
|
|
@@ -255,9 +252,6 @@
|
|
|
255
252
|
"cc-ai-linking-platform-snippet-renderer": {
|
|
256
253
|
"type": "boolean"
|
|
257
254
|
},
|
|
258
|
-
"fun-1765_wire_up_glance_panel_to_smart_cards": {
|
|
259
|
-
"type": "boolean"
|
|
260
|
-
},
|
|
261
255
|
"should-render-to-parent-should-be-true-linking-pla": {
|
|
262
256
|
"type": "boolean"
|
|
263
257
|
},
|