@atlaskit/smart-card 44.9.7 → 44.9.8
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 +19 -0
- package/dist/cjs/extractors/flexible/icon/index.js +12 -2
- package/dist/cjs/extractors/inline/index.js +7 -5
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/EmbedCard/views/ResolvedView.js +10 -4
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +93 -32
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/extractors/flexible/icon/index.js +12 -2
- package/dist/es2019/extractors/inline/index.js +8 -6
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/EmbedCard/views/ResolvedView.js +11 -5
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +86 -30
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/extractors/flexible/icon/index.js +12 -2
- package/dist/esm/extractors/inline/index.js +8 -6
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/EmbedCard/views/ResolvedView.js +10 -4
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +93 -32
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/__fixtures__/atlas-project-with-ai-summary.d.ts +2 -1
- package/dist/types/__fixtures__/atlas-project.d.ts +2 -2
- package/dist/types/__fixtures__/bitbucket-pull-request.d.ts +3 -75
- package/dist/types/__fixtures__/compass-scorecard.d.ts +3 -46
- package/dist/types/__fixtures__/confluence-blog.d.ts +3 -51
- package/dist/types/__fixtures__/confluence-page.d.ts +3 -51
- package/dist/types/__fixtures__/confluence-space.d.ts +3 -38
- package/dist/types/__fixtures__/confluence-template.d.ts +3 -33
- package/dist/types/__fixtures__/dropbox-file.d.ts +2 -2
- package/dist/types/__fixtures__/figma-entity.d.ts +3 -58
- package/dist/types/__fixtures__/figma.d.ts +3 -45
- package/dist/types/__fixtures__/jira-roadmap.d.ts +3 -37
- package/dist/types/__fixtures__/jira-task.d.ts +3 -80
- package/dist/types/__fixtures__/jira-timeline.d.ts +3 -37
- package/dist/types/__fixtures__/youtube-video.d.ts +3 -46
- package/dist/types/extractors/flexible/icon/index.d.ts +3 -3
- package/dist/types/view/EmbedCard/types.d.ts +1 -0
- package/dist/types-ts4.5/__fixtures__/atlas-project-with-ai-summary.d.ts +2 -1
- package/dist/types-ts4.5/__fixtures__/atlas-project.d.ts +2 -2
- package/dist/types-ts4.5/__fixtures__/bitbucket-pull-request.d.ts +3 -75
- package/dist/types-ts4.5/__fixtures__/compass-scorecard.d.ts +3 -46
- package/dist/types-ts4.5/__fixtures__/confluence-blog.d.ts +3 -51
- package/dist/types-ts4.5/__fixtures__/confluence-page.d.ts +3 -51
- package/dist/types-ts4.5/__fixtures__/confluence-space.d.ts +3 -38
- package/dist/types-ts4.5/__fixtures__/confluence-template.d.ts +3 -33
- package/dist/types-ts4.5/__fixtures__/dropbox-file.d.ts +2 -2
- package/dist/types-ts4.5/__fixtures__/figma-entity.d.ts +3 -58
- package/dist/types-ts4.5/__fixtures__/figma.d.ts +3 -45
- package/dist/types-ts4.5/__fixtures__/jira-roadmap.d.ts +3 -37
- package/dist/types-ts4.5/__fixtures__/jira-task.d.ts +3 -80
- package/dist/types-ts4.5/__fixtures__/jira-timeline.d.ts +3 -37
- package/dist/types-ts4.5/__fixtures__/youtube-video.d.ts +3 -46
- package/dist/types-ts4.5/extractors/flexible/icon/index.d.ts +3 -3
- package/dist/types-ts4.5/view/EmbedCard/types.d.ts +1 -0
- package/package.json +7 -4
|
@@ -1,37 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
definitionId: string;
|
|
5
|
-
visibility: string;
|
|
6
|
-
access: string;
|
|
7
|
-
resourceType: string;
|
|
8
|
-
key: string;
|
|
9
|
-
objectId: string;
|
|
10
|
-
tenantId: string;
|
|
11
|
-
};
|
|
12
|
-
data: {
|
|
13
|
-
'@context': {
|
|
14
|
-
'@vocab': string;
|
|
15
|
-
atlassian: string;
|
|
16
|
-
schema: string;
|
|
17
|
-
};
|
|
18
|
-
generator: {
|
|
19
|
-
'@type': string;
|
|
20
|
-
'@id': string;
|
|
21
|
-
name: string;
|
|
22
|
-
};
|
|
23
|
-
'@type': string[];
|
|
24
|
-
url: string;
|
|
25
|
-
name: string;
|
|
26
|
-
summary: string;
|
|
27
|
-
icon: {
|
|
28
|
-
'@type': string;
|
|
29
|
-
url: string;
|
|
30
|
-
};
|
|
31
|
-
preview: {
|
|
32
|
-
href: string;
|
|
33
|
-
'atlassian:supportedPlatforms': string[];
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
export default _default_1;
|
|
1
|
+
import type { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
2
|
+
declare const _default: SmartLinkResponse;
|
|
3
|
+
export default _default;
|
|
@@ -1,80 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
auth: never[];
|
|
5
|
-
definitionId: string;
|
|
6
|
-
visibility: string;
|
|
7
|
-
access: string;
|
|
8
|
-
resourceType: string;
|
|
9
|
-
key: string;
|
|
10
|
-
objectId: string;
|
|
11
|
-
tenantId: string;
|
|
12
|
-
};
|
|
13
|
-
data: {
|
|
14
|
-
'@context': {
|
|
15
|
-
'@vocab': string;
|
|
16
|
-
atlassian: string;
|
|
17
|
-
schema: string;
|
|
18
|
-
};
|
|
19
|
-
generator: {
|
|
20
|
-
'@type': string;
|
|
21
|
-
'@id': string;
|
|
22
|
-
name: string;
|
|
23
|
-
};
|
|
24
|
-
'@type': string[];
|
|
25
|
-
name: string;
|
|
26
|
-
'schema:dateCreated': string;
|
|
27
|
-
updated: string;
|
|
28
|
-
'schema:commentCount': number;
|
|
29
|
-
'atlassian:subscriberCount': number;
|
|
30
|
-
tag: {
|
|
31
|
-
'@type': string;
|
|
32
|
-
name: string;
|
|
33
|
-
appearance: string;
|
|
34
|
-
};
|
|
35
|
-
taskType: {
|
|
36
|
-
'@type': string[];
|
|
37
|
-
'@id': string;
|
|
38
|
-
name: string;
|
|
39
|
-
icon: {
|
|
40
|
-
'@type': string;
|
|
41
|
-
url: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
icon: {
|
|
45
|
-
'@type': string;
|
|
46
|
-
url: string;
|
|
47
|
-
};
|
|
48
|
-
attributedTo: {
|
|
49
|
-
'@type': string;
|
|
50
|
-
name: string;
|
|
51
|
-
};
|
|
52
|
-
url: string;
|
|
53
|
-
'atlassian:priority': {
|
|
54
|
-
'@type': string;
|
|
55
|
-
name: string;
|
|
56
|
-
icon: {
|
|
57
|
-
'@type': string;
|
|
58
|
-
url: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
'atlassian:serverAction': {
|
|
62
|
-
'@type': string;
|
|
63
|
-
name: string;
|
|
64
|
-
dataRetrievalAction: {
|
|
65
|
-
'@type': string;
|
|
66
|
-
name: SmartLinkActionType;
|
|
67
|
-
};
|
|
68
|
-
dataUpdateAction: {
|
|
69
|
-
'@type': string;
|
|
70
|
-
name: SmartLinkActionType;
|
|
71
|
-
};
|
|
72
|
-
refField: string;
|
|
73
|
-
resourceIdentifiers: {
|
|
74
|
-
issueKey: string;
|
|
75
|
-
hostname: string;
|
|
76
|
-
};
|
|
77
|
-
}[];
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
export default _default_1;
|
|
1
|
+
import { type SmartLinkResponse } from '@atlaskit/linking-types';
|
|
2
|
+
declare const _default: SmartLinkResponse;
|
|
3
|
+
export default _default;
|
|
@@ -1,37 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
definitionId: string;
|
|
5
|
-
visibility: string;
|
|
6
|
-
access: string;
|
|
7
|
-
resourceType: string;
|
|
8
|
-
key: string;
|
|
9
|
-
objectId: string;
|
|
10
|
-
tenantId: string;
|
|
11
|
-
};
|
|
12
|
-
data: {
|
|
13
|
-
'@context': {
|
|
14
|
-
'@vocab': string;
|
|
15
|
-
atlassian: string;
|
|
16
|
-
schema: string;
|
|
17
|
-
};
|
|
18
|
-
generator: {
|
|
19
|
-
'@type': string;
|
|
20
|
-
'@id': string;
|
|
21
|
-
name: string;
|
|
22
|
-
};
|
|
23
|
-
'@type': string[];
|
|
24
|
-
url: string;
|
|
25
|
-
name: string;
|
|
26
|
-
summary: string;
|
|
27
|
-
icon: {
|
|
28
|
-
'@type': string;
|
|
29
|
-
url: string;
|
|
30
|
-
};
|
|
31
|
-
preview: {
|
|
32
|
-
href: string;
|
|
33
|
-
'atlassian:supportedPlatforms': string[];
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
export default _default_1;
|
|
1
|
+
import type { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
2
|
+
declare const _default: SmartLinkResponse;
|
|
3
|
+
export default _default;
|
|
@@ -1,46 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
visibility: string;
|
|
5
|
-
auth: never[];
|
|
6
|
-
definitionId: string;
|
|
7
|
-
key: string;
|
|
8
|
-
objectId: string;
|
|
9
|
-
resourceType: string;
|
|
10
|
-
tenantId: string;
|
|
11
|
-
};
|
|
12
|
-
data: {
|
|
13
|
-
'@type': string;
|
|
14
|
-
'@context': {
|
|
15
|
-
'@vocab': string;
|
|
16
|
-
atlassian: string;
|
|
17
|
-
schema: string;
|
|
18
|
-
};
|
|
19
|
-
url: string;
|
|
20
|
-
name: string;
|
|
21
|
-
updated: string;
|
|
22
|
-
summary: string;
|
|
23
|
-
generator: {
|
|
24
|
-
'@type': string;
|
|
25
|
-
name: string;
|
|
26
|
-
icon: {
|
|
27
|
-
'@type': string;
|
|
28
|
-
url: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
icon: {
|
|
32
|
-
'@type': string;
|
|
33
|
-
url: string;
|
|
34
|
-
};
|
|
35
|
-
image: {
|
|
36
|
-
'@type': string;
|
|
37
|
-
url: string;
|
|
38
|
-
};
|
|
39
|
-
preview: {
|
|
40
|
-
'@type': string;
|
|
41
|
-
href: string;
|
|
42
|
-
'atlassian:aspectRatio': number;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
export default _default_1;
|
|
1
|
+
import type { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
2
|
+
declare const _default: SmartLinkResponse;
|
|
3
|
+
export default _default;
|
|
@@ -3,9 +3,9 @@ import { type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
|
3
3
|
import type { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
4
4
|
import { IconType, SmartLinkStatus } from '../../../constants';
|
|
5
5
|
export declare const extractLinkIcon: (response: JsonLd.Response, renderers?: CardProviderRenderers) => {
|
|
6
|
-
render: (() => React.ReactNode) | undefined;
|
|
7
6
|
icon?: IconType;
|
|
8
7
|
label?: string;
|
|
8
|
+
render: (() => React.ReactNode) | undefined;
|
|
9
9
|
url?: string;
|
|
10
10
|
};
|
|
11
11
|
export declare const extractErrorIcon: (response?: JsonLd.Response, status?: SmartLinkStatus) => {
|
|
@@ -19,11 +19,11 @@ export declare const extractErrorIcon: (response?: JsonLd.Response, status?: Sma
|
|
|
19
19
|
* Should be moved to link-extractors when jsonLd is deprecated
|
|
20
20
|
*/
|
|
21
21
|
export declare const extractSmartLinkIcon: (response?: SmartLinkResponse, renderers?: CardProviderRenderers) => {
|
|
22
|
-
render: (() => React.ReactNode) | undefined;
|
|
23
22
|
icon?: IconType;
|
|
24
23
|
label?: string;
|
|
24
|
+
render: (() => React.ReactNode) | undefined;
|
|
25
25
|
url?: string;
|
|
26
26
|
} | {
|
|
27
|
-
url: string | undefined;
|
|
28
27
|
label: string | undefined;
|
|
28
|
+
url: string | undefined;
|
|
29
29
|
} | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "44.9.
|
|
3
|
+
"version": "44.9.8",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
41
41
|
"@atlaskit/analytics-next": "^11.2.0",
|
|
42
42
|
"@atlaskit/avatar": "^25.14.0",
|
|
43
|
-
"@atlaskit/avatar-group": "^12.
|
|
43
|
+
"@atlaskit/avatar-group": "^12.10.0",
|
|
44
44
|
"@atlaskit/badge": "^18.6.0",
|
|
45
45
|
"@atlaskit/browser-apis": "^0.0.1",
|
|
46
46
|
"@atlaskit/button": "^23.11.0",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
"@atlaskit/link": "^3.4.0",
|
|
62
62
|
"@atlaskit/link-analytics": "^11.0.0",
|
|
63
63
|
"@atlaskit/link-client-extension": "^6.0.0",
|
|
64
|
-
"@atlaskit/link-extractors": "^2.
|
|
64
|
+
"@atlaskit/link-extractors": "^2.5.0",
|
|
65
65
|
"@atlaskit/link-test-helpers": "^10.2.0",
|
|
66
66
|
"@atlaskit/linking-common": "^9.11.0",
|
|
67
|
-
"@atlaskit/linking-types": "^14.
|
|
67
|
+
"@atlaskit/linking-types": "^14.3.0",
|
|
68
68
|
"@atlaskit/logo": "^20.1.0",
|
|
69
69
|
"@atlaskit/lozenge": "^13.8.0",
|
|
70
70
|
"@atlaskit/menu": "^8.5.0",
|
|
@@ -177,6 +177,9 @@
|
|
|
177
177
|
}
|
|
178
178
|
},
|
|
179
179
|
"platform-feature-flags": {
|
|
180
|
+
"platform_lp_use_entity_icon_url_for_icon": {
|
|
181
|
+
"type": "boolean"
|
|
182
|
+
},
|
|
180
183
|
"platform-component-visual-refresh": {
|
|
181
184
|
"type": "boolean"
|
|
182
185
|
},
|