@atlaskit/smart-card 38.5.4 → 38.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/compass.yml +68 -26
- package/dist/cjs/extractors/inline/index.js +2 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/mocks.js +4 -4
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/extractors/inline/index.js +2 -2
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/mocks.js +4 -4
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/extractors/inline/index.js +2 -2
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/mocks.js +4 -4
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/__fixtures__/figma-entity.d.ts +1 -1
- package/dist/types/utils/mocks.d.ts +1 -1
- package/dist/types-ts4.5/__fixtures__/figma-entity.d.ts +1 -1
- package/dist/types-ts4.5/utils/mocks.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 38.5.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#164735](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/164735)
|
|
8
|
+
[`e775157fd06b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e775157fd06b8) -
|
|
9
|
+
Rename nounData to entityData. Fg smart_links_noun_support
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 38.5.4
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/compass.yml
CHANGED
|
@@ -1,36 +1,78 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
description:
|
|
4
|
-
This is a React component library that provides the UI and functionality for displaying Smart Links—enriched link previews that show contextual information about URLs from Atlassian products (like Jira, Confluence, Trello) and popular third-party services (such as GitHub, Google Drive, and more).
|
|
5
|
-
When a supported link is pasted or inserted, the Smart Card component fetches and displays rich metadata, such as titles, thumbnails, status, and actions, offering a more informative and interactive experience than plain hyperlinks.
|
|
1
|
+
name: Smart Links
|
|
2
|
+
id: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/bee4b8ee-1ffd-432c-9fea-327a379f645d'
|
|
3
|
+
description: Smart Links transform ordinary URLs into rich, interactive elements—such as cards, embeds, and lists—directly within Atlassian products. This functionality allows users to preview, interact with, and manage content from over 2,000 external and Atlassian apps without leaving their workspace, streamlining collaboration and reducing context switching.
|
|
6
4
|
configVersion: 1
|
|
7
|
-
typeId:
|
|
5
|
+
typeId: CAPABILITY
|
|
8
6
|
ownerId: 'ari:cloud:identity::team/9683a6ac-2d3f-44c8-a0fe-56128ca69e20'
|
|
9
7
|
fields:
|
|
10
|
-
|
|
8
|
+
isMonorepoProject: false
|
|
9
|
+
tier: 3
|
|
11
10
|
lifecycle: Active
|
|
12
|
-
isMonorepoProject: true
|
|
13
|
-
labels:
|
|
14
|
-
- atlassian-platform
|
|
15
11
|
links:
|
|
16
|
-
- name:
|
|
17
|
-
type: PROJECT
|
|
18
|
-
url: 'https://product-fabric.atlassian.net/jira/software/c/projects/EDM/boards/5176'
|
|
19
|
-
- name: '#help-twg-linking-platform'
|
|
12
|
+
- name: ''
|
|
20
13
|
type: CHAT_CHANNEL
|
|
21
14
|
url: 'https://atlassian.enterprise.slack.com/archives/CFKGAQZRV'
|
|
22
15
|
- name: ''
|
|
23
16
|
type: ON_CALL
|
|
24
17
|
url: 'https://atlassian.app.opsgenie.com/settings/schedule/detail/b9c8b313-dd6d-4a41-8eeb-d7a9df55be9d'
|
|
25
|
-
- name:
|
|
26
|
-
type:
|
|
27
|
-
url: 'https://
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
18
|
+
- name: ''
|
|
19
|
+
type: PROJECT
|
|
20
|
+
url: 'https://product-fabric.atlassian.net/jira/software/c/projects/EDM/boards/5176'
|
|
21
|
+
- name: SignalFx - Smart Links
|
|
22
|
+
type: DASHBOARD
|
|
23
|
+
url: 'https://atlassian.signalfx.com/#/dashboard/GcIfe4aA4AA?groupId=Fcva05QA4AA&configId=GcIfgHgA4AA&startTime=-1w&endTime=Now'
|
|
24
|
+
relationships: null
|
|
25
|
+
labels: null
|
|
26
|
+
customFields:
|
|
27
|
+
- name: Anomaly-Detection
|
|
28
|
+
type: text
|
|
29
|
+
value: null
|
|
30
|
+
- name: Compass Config-as-Code
|
|
31
|
+
type: boolean
|
|
32
|
+
value: true
|
|
33
|
+
- name: Data Domain
|
|
34
|
+
type: multi_select
|
|
35
|
+
value:
|
|
36
|
+
- 6abcbe4f-1063-4cf7-8b32-58ebd01078da
|
|
37
|
+
- name: Engineering Manager
|
|
38
|
+
type: user
|
|
39
|
+
value: 'ari:cloud:identity::user/712020:bc050a72-a59d-487f-8b54-73358ba67dd0'
|
|
40
|
+
- name: FFP per month
|
|
41
|
+
type: number
|
|
42
|
+
value: null
|
|
43
|
+
- name: Is renovate enabled?
|
|
44
|
+
type: boolean
|
|
45
|
+
value: false
|
|
46
|
+
- name: Lineage
|
|
47
|
+
type: text
|
|
48
|
+
value: null
|
|
49
|
+
- name: Maintenance Time (hours/week)
|
|
50
|
+
type: number
|
|
51
|
+
value: null
|
|
52
|
+
- name: Owner or Team Name
|
|
53
|
+
type: single_select
|
|
54
|
+
value: 1e93a963-fa64-4c3a-aebb-cc835e418a0a
|
|
55
|
+
- name: Perimeter
|
|
56
|
+
type: single_select
|
|
57
|
+
value: null
|
|
58
|
+
- name: Perimeter (string)
|
|
59
|
+
type: text
|
|
60
|
+
value: null
|
|
61
|
+
- name: Product Owner
|
|
62
|
+
type: user
|
|
63
|
+
value: null
|
|
64
|
+
- name: Tech Debt
|
|
65
|
+
type: text
|
|
66
|
+
value: null
|
|
67
|
+
- name: Technical Owner
|
|
68
|
+
type: user
|
|
69
|
+
value: null
|
|
70
|
+
- name: anomaly-detection
|
|
71
|
+
type: boolean
|
|
72
|
+
value: false
|
|
73
|
+
- name: forge_runtime_node
|
|
74
|
+
type: single_select
|
|
75
|
+
value: null
|
|
76
|
+
- name: statsig_target_application
|
|
77
|
+
type: text
|
|
78
|
+
value: null
|
|
@@ -37,7 +37,7 @@ var extractSmartLinkInlineIcon = function extractSmartLinkInlineIcon(response) {
|
|
|
37
37
|
return provider.icon;
|
|
38
38
|
}
|
|
39
39
|
// We don't need this for design entities,
|
|
40
|
-
// but we can add it back when we support more
|
|
40
|
+
// but we can add it back when we support more entities
|
|
41
41
|
// it requires extractInlineIcon to be moved to the smart link extractor package.
|
|
42
42
|
// see: https://product-fabric.atlassian.net/browse/EDM-12375
|
|
43
43
|
// return extractSmartLinkIcon(response);
|
|
@@ -52,7 +52,7 @@ var extractInlineProps = exports.extractInlineProps = function extractInlineProp
|
|
|
52
52
|
link: (0, _linkExtractors.extractSmartLinkUrl)(response),
|
|
53
53
|
title: (0, _linkExtractors.extractSmartLinkTitle)(response, removeTextHighlightingFromTitle),
|
|
54
54
|
icon: extractSmartLinkInlineIcon(response, showLabel),
|
|
55
|
-
// As we migrate to support more
|
|
55
|
+
// As we migrate to support more entities we can incorporate these fields
|
|
56
56
|
lozenge: (0, _lozenge.extractLozenge)(jsonLd),
|
|
57
57
|
titleTextColor: (0, _primitives.extractTitleTextColor)(jsonLd),
|
|
58
58
|
titlePrefix: (0, _titlePrefix.extractTitlePrefix)(jsonLd, renderers, 'inline')
|
|
@@ -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.5.
|
|
14
|
+
packageVersion: "38.5.5"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/cjs/utils/mocks.js
CHANGED
|
@@ -100,8 +100,8 @@ var jsonLdResponse = {
|
|
|
100
100
|
},
|
|
101
101
|
data: successfulResponseData
|
|
102
102
|
};
|
|
103
|
-
var
|
|
104
|
-
|
|
103
|
+
var entityDataResponse = {
|
|
104
|
+
entityData: {
|
|
105
105
|
id: 'I love cheese',
|
|
106
106
|
displayName: 'I love cheese',
|
|
107
107
|
url: 'https://some.url',
|
|
@@ -119,7 +119,7 @@ var nounDataResponse = {
|
|
|
119
119
|
};
|
|
120
120
|
var mocks = exports.mocks = {
|
|
121
121
|
success: _objectSpread({}, jsonLdResponse),
|
|
122
|
-
|
|
122
|
+
entityDataSuccess: _objectSpread(_objectSpread({}, jsonLdResponse), {}, {
|
|
123
123
|
data: _objectSpread(_objectSpread({}, jsonLdResponse.data), {}, {
|
|
124
124
|
generator: {
|
|
125
125
|
'@type': 'Application',
|
|
@@ -138,7 +138,7 @@ var mocks = exports.mocks = {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
})
|
|
141
|
-
},
|
|
141
|
+
}, entityDataResponse),
|
|
142
142
|
notFound: {
|
|
143
143
|
meta: {
|
|
144
144
|
visibility: 'not_found',
|
|
@@ -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.5.
|
|
23
|
+
packageVersion: "38.5.5",
|
|
24
24
|
componentName: 'linkUrl'
|
|
25
25
|
};
|
|
26
26
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -27,7 +27,7 @@ const extractSmartLinkInlineIcon = (response, showLabel = true) => {
|
|
|
27
27
|
return provider.icon;
|
|
28
28
|
}
|
|
29
29
|
// We don't need this for design entities,
|
|
30
|
-
// but we can add it back when we support more
|
|
30
|
+
// but we can add it back when we support more entities
|
|
31
31
|
// it requires extractInlineIcon to be moved to the smart link extractor package.
|
|
32
32
|
// see: https://product-fabric.atlassian.net/browse/EDM-12375
|
|
33
33
|
// return extractSmartLinkIcon(response);
|
|
@@ -41,7 +41,7 @@ export const extractInlineProps = (response, renderers, removeTextHighlightingFr
|
|
|
41
41
|
link: extractSmartLinkUrl(response),
|
|
42
42
|
title: extractSmartLinkTitle(response, removeTextHighlightingFromTitle),
|
|
43
43
|
icon: extractSmartLinkInlineIcon(response, showLabel),
|
|
44
|
-
// As we migrate to support more
|
|
44
|
+
// As we migrate to support more entities we can incorporate these fields
|
|
45
45
|
lozenge: extractLozenge(jsonLd),
|
|
46
46
|
titleTextColor: extractTitleTextColor(jsonLd),
|
|
47
47
|
titlePrefix: extractTitlePrefix(jsonLd, renderers, 'inline'),
|
|
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
2
2
|
export const context = {
|
|
3
3
|
componentName: 'smart-cards',
|
|
4
4
|
packageName: "@atlaskit/smart-card",
|
|
5
|
-
packageVersion: "38.5.
|
|
5
|
+
packageVersion: "38.5.5"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -82,8 +82,8 @@ const jsonLdResponse = {
|
|
|
82
82
|
},
|
|
83
83
|
data: successfulResponseData
|
|
84
84
|
};
|
|
85
|
-
const
|
|
86
|
-
|
|
85
|
+
const entityDataResponse = {
|
|
86
|
+
entityData: {
|
|
87
87
|
id: 'I love cheese',
|
|
88
88
|
displayName: 'I love cheese',
|
|
89
89
|
url: 'https://some.url',
|
|
@@ -103,7 +103,7 @@ export const mocks = {
|
|
|
103
103
|
success: {
|
|
104
104
|
...jsonLdResponse
|
|
105
105
|
},
|
|
106
|
-
|
|
106
|
+
entityDataSuccess: {
|
|
107
107
|
...jsonLdResponse,
|
|
108
108
|
data: {
|
|
109
109
|
...jsonLdResponse.data,
|
|
@@ -125,7 +125,7 @@ export const mocks = {
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
},
|
|
128
|
-
...
|
|
128
|
+
...entityDataResponse
|
|
129
129
|
},
|
|
130
130
|
notFound: {
|
|
131
131
|
meta: {
|
|
@@ -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.5.
|
|
13
|
+
packageVersion: "38.5.5",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -32,7 +32,7 @@ var extractSmartLinkInlineIcon = function extractSmartLinkInlineIcon(response) {
|
|
|
32
32
|
return provider.icon;
|
|
33
33
|
}
|
|
34
34
|
// We don't need this for design entities,
|
|
35
|
-
// but we can add it back when we support more
|
|
35
|
+
// but we can add it back when we support more entities
|
|
36
36
|
// it requires extractInlineIcon to be moved to the smart link extractor package.
|
|
37
37
|
// see: https://product-fabric.atlassian.net/browse/EDM-12375
|
|
38
38
|
// return extractSmartLinkIcon(response);
|
|
@@ -47,7 +47,7 @@ export var extractInlineProps = function extractInlineProps(response, renderers,
|
|
|
47
47
|
link: extractSmartLinkUrl(response),
|
|
48
48
|
title: extractSmartLinkTitle(response, removeTextHighlightingFromTitle),
|
|
49
49
|
icon: extractSmartLinkInlineIcon(response, showLabel),
|
|
50
|
-
// As we migrate to support more
|
|
50
|
+
// As we migrate to support more entities we can incorporate these fields
|
|
51
51
|
lozenge: extractLozenge(jsonLd),
|
|
52
52
|
titleTextColor: extractTitleTextColor(jsonLd),
|
|
53
53
|
titlePrefix: extractTitlePrefix(jsonLd, renderers, 'inline')
|
|
@@ -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.5.
|
|
7
|
+
packageVersion: "38.5.5"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/esm/utils/mocks.js
CHANGED
|
@@ -93,8 +93,8 @@ var jsonLdResponse = {
|
|
|
93
93
|
},
|
|
94
94
|
data: successfulResponseData
|
|
95
95
|
};
|
|
96
|
-
var
|
|
97
|
-
|
|
96
|
+
var entityDataResponse = {
|
|
97
|
+
entityData: {
|
|
98
98
|
id: 'I love cheese',
|
|
99
99
|
displayName: 'I love cheese',
|
|
100
100
|
url: 'https://some.url',
|
|
@@ -112,7 +112,7 @@ var nounDataResponse = {
|
|
|
112
112
|
};
|
|
113
113
|
export var mocks = {
|
|
114
114
|
success: _objectSpread({}, jsonLdResponse),
|
|
115
|
-
|
|
115
|
+
entityDataSuccess: _objectSpread(_objectSpread({}, jsonLdResponse), {}, {
|
|
116
116
|
data: _objectSpread(_objectSpread({}, jsonLdResponse.data), {}, {
|
|
117
117
|
generator: {
|
|
118
118
|
'@type': 'Application',
|
|
@@ -131,7 +131,7 @@ export var mocks = {
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
})
|
|
134
|
-
},
|
|
134
|
+
}, entityDataResponse),
|
|
135
135
|
notFound: {
|
|
136
136
|
meta: {
|
|
137
137
|
visibility: 'not_found',
|
|
@@ -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.5.
|
|
16
|
+
packageVersion: "38.5.5",
|
|
17
17
|
componentName: 'linkUrl'
|
|
18
18
|
};
|
|
19
19
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -13,7 +13,7 @@ export declare const mockGenerator: {
|
|
|
13
13
|
export declare const mockByUrl: (url: string) => JsonLd.Response<JsonLd.Data.BaseData>;
|
|
14
14
|
export declare const mocks: {
|
|
15
15
|
success: JsonLd.Response<JsonLd.Data.BaseData>;
|
|
16
|
-
|
|
16
|
+
entityDataSuccess: SmartLinkResponse;
|
|
17
17
|
notFound: JsonLd.Response<JsonLd.Data.BaseData>;
|
|
18
18
|
forbidden: JsonLd.Response<JsonLd.Data.BaseData>;
|
|
19
19
|
forbiddenWithNoAuth: JsonLd.Response<JsonLd.Data.BaseData>;
|
|
@@ -13,7 +13,7 @@ export declare const mockGenerator: {
|
|
|
13
13
|
export declare const mockByUrl: (url: string) => JsonLd.Response<JsonLd.Data.BaseData>;
|
|
14
14
|
export declare const mocks: {
|
|
15
15
|
success: JsonLd.Response<JsonLd.Data.BaseData>;
|
|
16
|
-
|
|
16
|
+
entityDataSuccess: SmartLinkResponse;
|
|
17
17
|
notFound: JsonLd.Response<JsonLd.Data.BaseData>;
|
|
18
18
|
forbidden: JsonLd.Response<JsonLd.Data.BaseData>;
|
|
19
19
|
forbiddenWithNoAuth: JsonLd.Response<JsonLd.Data.BaseData>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "38.5.
|
|
3
|
+
"version": "38.5.5",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/link-client-extension": "^5.0.0",
|
|
53
53
|
"@atlaskit/link-extractors": "^2.3.0",
|
|
54
54
|
"@atlaskit/linking-common": "^9.0.0",
|
|
55
|
-
"@atlaskit/linking-types": "^
|
|
55
|
+
"@atlaskit/linking-types": "^10.0.0",
|
|
56
56
|
"@atlaskit/logo": "^19.0.0",
|
|
57
57
|
"@atlaskit/lozenge": "^12.2.0",
|
|
58
58
|
"@atlaskit/menu": "^8.0.0",
|