@atlaskit/smart-card 38.9.1 → 38.9.2
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 +8 -0
- package/dist/cjs/state/hooks/useSmartLink.js +4 -4
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/CardWithUrl/component.js +10 -9
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-badge-element/index.js +2 -7
- package/dist/cjs/view/FlexibleCard/components/elements/index.js +225 -189
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +1 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/state/hooks/useSmartLink.js +4 -4
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/CardWithUrl/component.js +10 -9
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-badge-element/index.js +2 -7
- package/dist/es2019/view/FlexibleCard/components/elements/index.js +32 -183
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +1 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/state/hooks/useSmartLink.js +4 -4
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/CardWithUrl/component.js +10 -9
- package/dist/esm/view/FlexibleCard/components/elements/common/base-badge-element/index.js +2 -7
- package/dist/esm/view/FlexibleCard/components/elements/index.js +32 -183
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +1 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/extractors/flexible/extract-link-title.d.ts +2 -2
- package/dist/types/state/hooks/useSmartLink.d.ts +3 -3
- package/dist/types/utils/analytics/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/attachment-count-element/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-atlaskit-badge-element/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/index.d.ts +32 -176
- package/dist/types/view/FlexibleCard/components/elements/programming-language-element/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/provider-element/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/view-count-element/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/external.d.ts +2 -2
- package/dist/types-ts4.5/extractors/flexible/extract-link-title.d.ts +2 -2
- package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +3 -3
- package/dist/types-ts4.5/utils/analytics/types.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/attachment-count-element/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-atlaskit-badge-element/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/index.d.ts +32 -176
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/programming-language-element/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/provider-element/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/view-count-element/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/external.d.ts +2 -2
- package/package.json +3 -6
- package/dist/cjs/view/FlexibleCard/components/elements/utils.js +0 -302
- package/dist/es2019/view/FlexibleCard/components/elements/utils.js +0 -327
- package/dist/esm/view/FlexibleCard/components/elements/utils.js +0 -294
- package/dist/types/view/FlexibleCard/components/elements/utils.d.ts +0 -6
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/utils.d.ts +0 -6
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ElementName, type SmartLinkSize } from '../../../../constants';
|
|
3
|
-
import { type BaseAtlaskitBadgeElementProps, type BaseAvatarGroupElementProps, type BaseBadgeElementProps, type BaseDateTimeElementProps, type BaseIconElementProps, type BaseLinkElementProps, type BaseLozengeElementProps, type BaseTextElementProps } from './common';
|
|
4
2
|
export type ElementProps = {
|
|
5
3
|
/**
|
|
6
4
|
* Name of the element, can be used as a selector.
|
|
@@ -23,180 +21,38 @@ export type ElementProps = {
|
|
|
23
21
|
*/
|
|
24
22
|
testId?: string;
|
|
25
23
|
};
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
export
|
|
42
|
-
|
|
43
|
-
* Creates a AttachmentCount Badge element using the data from AttachmentCount in the Flexible UI Context.
|
|
44
|
-
* @see Badge
|
|
45
|
-
*/
|
|
46
|
-
export declare const AttachmentCount: import("react").ComponentType<BaseBadgeElementProps>;
|
|
47
|
-
/**
|
|
48
|
-
* An AvatarGroup element using the data from AuthorGroup in the Flexible UI Context.
|
|
49
|
-
* @see AvatarGroup
|
|
50
|
-
*/
|
|
51
|
-
export declare const AuthorGroup: import("react").ComponentType<BaseAvatarGroupElementProps>;
|
|
52
|
-
/**
|
|
53
|
-
* Creates a Checklist Badge element using the data from ChecklistProgress in the Flexible UI Context.
|
|
54
|
-
* @see Badge
|
|
55
|
-
*/
|
|
56
|
-
export declare const ChecklistProgress: import("react").ComponentType<BaseBadgeElementProps>;
|
|
57
|
-
/**
|
|
58
|
-
* An AvatarGroup element using the data from CollaboratorGroup in the Flexible UI Context.
|
|
59
|
-
* @see AvatarGroup
|
|
60
|
-
*/
|
|
61
|
-
export declare const CollaboratorGroup: import("react").ComponentType<BaseAvatarGroupElementProps>;
|
|
62
|
-
/**
|
|
63
|
-
* Creates a CommentCount Badge element using the data from CommentCount in the Flexible UI Context.
|
|
64
|
-
* @see Badge
|
|
65
|
-
*/
|
|
66
|
-
export declare const CommentCount: import("react").ComponentType<BaseBadgeElementProps>;
|
|
67
|
-
/**
|
|
68
|
-
* Creates a CreatedOn DateTime element using the data from CreatedOn in the Flexible UI Context.
|
|
69
|
-
* @see DateTime
|
|
70
|
-
*/
|
|
71
|
-
export declare const CreatedOn: import("react").ComponentType<BaseDateTimeElementProps>;
|
|
72
|
-
/**
|
|
73
|
-
* Creates a CreatedBy text element using the data from CreatedBy in the Flexible UI Context.
|
|
74
|
-
* @see Text
|
|
75
|
-
*/
|
|
76
|
-
export declare const CreatedBy: import("react").ComponentType<BaseTextElementProps>;
|
|
77
|
-
/**
|
|
78
|
-
* Creates a DueOn Lozenge element using the data from dueOn in the Flexible UI Context.
|
|
79
|
-
* @see Lozenge
|
|
80
|
-
*/
|
|
81
|
-
export declare const DueOn: import("react").ComponentType<BaseLozengeElementProps>;
|
|
82
|
-
/**
|
|
83
|
-
* Creates an element that contains Last Commit hash
|
|
84
|
-
*/
|
|
85
|
-
export declare const LatestCommit: import("react").ComponentType<BaseBadgeElementProps>;
|
|
86
|
-
/**
|
|
87
|
-
* Creates a LinkIcon Icon element using the data from LinkIcon in the Flexible UI Context.
|
|
88
|
-
* @see Icon
|
|
89
|
-
*/
|
|
90
|
-
export declare const LinkIcon: import("react").ComponentType<BaseIconElementProps>;
|
|
91
|
-
/**
|
|
92
|
-
* Creates a Location Link element.
|
|
93
|
-
* This represents the location or container of the resource.
|
|
94
|
-
* @see Link
|
|
95
|
-
*/
|
|
96
|
-
export declare const Location: import("react").ComponentType<BaseLinkElementProps>;
|
|
97
|
-
/**
|
|
98
|
-
* Creates a ModifiedBy Text element using the data from ModifiedBy in the Flexible UI Context.
|
|
99
|
-
* @see Text
|
|
100
|
-
*/
|
|
101
|
-
export declare const ModifiedBy: import("react").ComponentType<BaseTextElementProps>;
|
|
102
|
-
/**
|
|
103
|
-
* Creates a ModifiedOn DateTime element using the data from ModifiedOn in the Flexible UI Context.
|
|
104
|
-
* @see DateTime
|
|
105
|
-
*/
|
|
106
|
-
export declare const ModifiedOn: import("react").ComponentType<BaseDateTimeElementProps>;
|
|
107
|
-
/**
|
|
108
|
-
* Creates a OwnedBy text element using the data from OwnedBy in the Flexible UI Context.
|
|
109
|
-
* @see Text
|
|
110
|
-
*/
|
|
111
|
-
export declare const OwnedBy: import("react").ComponentType<BaseTextElementProps>;
|
|
112
|
-
/**
|
|
113
|
-
* An AvatarGroup element using the data from OwnedByGroup in the Flexible UI Context.
|
|
114
|
-
* @see AvatarGroup
|
|
115
|
-
*/
|
|
116
|
-
export declare const OwnedByGroup: import("react").ComponentType<BaseAvatarGroupElementProps>;
|
|
117
|
-
/**
|
|
118
|
-
* Creates a Preview element using the data from Preview in the Flexible UI Context.
|
|
119
|
-
* @see Preview
|
|
120
|
-
*/
|
|
24
|
+
export { default as AssignedTo } from './assigned-to-element';
|
|
25
|
+
export { default as AssignedToGroup } from './assigned-to-group-element';
|
|
26
|
+
export { default as AttachmentCount } from './attachment-count-element';
|
|
27
|
+
export { default as AuthorGroup } from './author-group-element';
|
|
28
|
+
export { default as ChecklistProgress } from './checklist-progress-element';
|
|
29
|
+
export { default as CollaboratorGroup } from './collaborator-group-element';
|
|
30
|
+
export { default as CommentCount } from './comment-count-element';
|
|
31
|
+
export { default as CreatedOn } from './created-on-element';
|
|
32
|
+
export { default as CreatedBy } from './created-by-element';
|
|
33
|
+
export { default as DueOn } from './due-on-element';
|
|
34
|
+
export { default as LatestCommit } from './latest-commit-element';
|
|
35
|
+
export { default as LinkIcon } from './link-icon-element';
|
|
36
|
+
export { default as Location } from './location-element';
|
|
37
|
+
export { default as ModifiedBy } from './modified-by-element';
|
|
38
|
+
export { default as ModifiedOn } from './modified-on-element';
|
|
39
|
+
export { default as OwnedBy } from './owned-by-element';
|
|
40
|
+
export { default as OwnedByGroup } from './owned-by-group-element';
|
|
121
41
|
export { default as Preview } from './preview-element';
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
export
|
|
127
|
-
|
|
128
|
-
* Creates a ProgrammingLanguage Badge element using the data from ProgrammingLanguage in the Flexible UI Context.
|
|
129
|
-
* @see Badge
|
|
130
|
-
*/
|
|
131
|
-
export declare const ProgrammingLanguage: import("react").ComponentType<BaseBadgeElementProps>;
|
|
132
|
-
/**
|
|
133
|
-
* Creates a Provider Badge element using the data from Provider in the Flexible UI Context.
|
|
134
|
-
* @see Badge
|
|
135
|
-
*/
|
|
136
|
-
export declare const Provider: import("react").ComponentType<BaseBadgeElementProps>;
|
|
137
|
-
/**
|
|
138
|
-
* Creates a ReactCount Badge element using the data from ReactCount in the Flexible UI Context.
|
|
139
|
-
* @see Badge
|
|
140
|
-
*/
|
|
141
|
-
export declare const ReactCount: import("react").ComponentType<BaseBadgeElementProps>;
|
|
142
|
-
/**
|
|
143
|
-
* Creates a ReadTime Text element using the data from readTime in the Flexible UI Context
|
|
144
|
-
*/
|
|
145
|
-
export declare const ReadTime: import("react").ComponentType<BaseTextElementProps>;
|
|
146
|
-
/**
|
|
147
|
-
* Creates a SentOn DateTime element using the data from SentOn in the Flexible UI Context.
|
|
148
|
-
* @see DateTime
|
|
149
|
-
*/
|
|
150
|
-
export declare const SentOn: import("react").ComponentType<BaseDateTimeElementProps>;
|
|
151
|
-
/**
|
|
152
|
-
* Creates a Snippet element using the data from Snippet in the Flexible UI Context.
|
|
153
|
-
* @see Text
|
|
154
|
-
*/
|
|
42
|
+
export { default as Priority } from './priority-element';
|
|
43
|
+
export { default as ProgrammingLanguage } from './programming-language-element';
|
|
44
|
+
export { default as Provider } from './provider-element';
|
|
45
|
+
export { default as ReactCount } from './react-count-element';
|
|
46
|
+
export { default as ReadTime } from './read-time-element';
|
|
47
|
+
export { default as SentOn } from './sent-on-element';
|
|
155
48
|
export { default as Snippet } from './snippet-element';
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
export
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
export declare const State: import("react").ComponentType<BaseLozengeElementProps>;
|
|
166
|
-
/**
|
|
167
|
-
* Creates a SubscriberCount Badge element using the data from SubscriberCount in the Flexible UI Context.
|
|
168
|
-
* @see Badge
|
|
169
|
-
*/
|
|
170
|
-
export declare const SubscriberCount: import("react").ComponentType<BaseBadgeElementProps>;
|
|
171
|
-
/**
|
|
172
|
-
* Create a SubTasks Badge element using the data from subTasks in the Flexible UI Context.
|
|
173
|
-
* @see Badge
|
|
174
|
-
*/
|
|
175
|
-
export declare const SubTasksProgress: import("react").ComponentType<BaseBadgeElementProps>;
|
|
176
|
-
/**
|
|
177
|
-
* Create a StoryPoints Badge element using the data from storyPoints in the Flexible UI Context.
|
|
178
|
-
* @see AtlaskitBadge
|
|
179
|
-
*/
|
|
180
|
-
export declare const StoryPoints: import("react").ComponentType<BaseAtlaskitBadgeElementProps>;
|
|
181
|
-
/**
|
|
182
|
-
* Creates a TargetBranch Text element using the data from targetBranch in the Flexible UI Context.
|
|
183
|
-
* @see Text
|
|
184
|
-
*/
|
|
185
|
-
export declare const TargetBranch: import("react").ComponentType<BaseTextElementProps>;
|
|
186
|
-
/**
|
|
187
|
-
* Creates a Title Link element using the data from Title in the Flexible UI Context.
|
|
188
|
-
* This represents the main link text within the Smart Link.
|
|
189
|
-
* @see Link
|
|
190
|
-
*/
|
|
191
|
-
export declare const Title: import("react").ComponentType<BaseLinkElementProps>;
|
|
192
|
-
/**
|
|
193
|
-
* Creates a ViewCount Badge element using the data from ViewCount in the Flexible UI Context.
|
|
194
|
-
* @see Badge
|
|
195
|
-
*/
|
|
196
|
-
export declare const ViewCount: import("react").ComponentType<BaseBadgeElementProps>;
|
|
197
|
-
/**
|
|
198
|
-
* Creates a VoteCount Badge element using the data from VoteCount in the Flexible UI Context.
|
|
199
|
-
* @see Badge
|
|
200
|
-
*/
|
|
201
|
-
export declare const VoteCount: import("react").ComponentType<BaseBadgeElementProps>;
|
|
49
|
+
export { default as SourceBranch } from './source-branch-element';
|
|
50
|
+
export { default as State } from './state-element';
|
|
51
|
+
export { default as SubscriberCount } from './subscriber-count-element';
|
|
52
|
+
export { default as SubTasksProgress } from './sub-tasks-progress-element';
|
|
53
|
+
export { default as StoryPoints } from './story-points-element';
|
|
54
|
+
export { default as TargetBranch } from './target-branch-element';
|
|
55
|
+
export { default as Title } from './title-element';
|
|
56
|
+
export { default as ViewCount } from './view-count-element';
|
|
57
|
+
export { default as VoteCount } from './vote-count-element';
|
|
202
58
|
export { default as AppliedToComponentsCount } from './applied-to-components-count-element';
|
package/dist/types/view/FlexibleCard/components/elements/programming-language-element/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseBadgeElementProps } from '../common';
|
|
2
|
+
import { type BaseBadgeElementProps } from '../common';
|
|
3
3
|
export type ProgrammingLanguageElementProps = BaseBadgeElementProps;
|
|
4
4
|
declare const ProgrammingLanguageElement: (props: ProgrammingLanguageElementProps) => JSX.Element | null;
|
|
5
5
|
export default ProgrammingLanguageElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseBadgeElementProps } from '../common';
|
|
2
|
+
import { type BaseBadgeElementProps } from '../common';
|
|
3
3
|
export type ProviderElementProps = BaseBadgeElementProps;
|
|
4
4
|
declare const ProviderElement: (props: ProviderElementProps) => JSX.Element | null;
|
|
5
5
|
export default ProviderElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseBadgeElementProps } from '../common';
|
|
2
|
+
import { type BaseBadgeElementProps } from '../common';
|
|
3
3
|
export type ViewCountElementProps = BaseBadgeElementProps;
|
|
4
4
|
declare const ViewCountElement: (props: ViewCountElementProps) => JSX.Element | null;
|
|
5
5
|
export default ViewCountElement;
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* DO NOT add a new prop to these components until we are ready to support it externally.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import {
|
|
11
|
-
import { PreviewElementProps } from './components/elements/preview-element';
|
|
10
|
+
import type { BaseBadgeElementProps, BaseDateTimeElementProps, BaseIconElementProps, BaseLinkElementProps, BaseTextElementProps } from './components/elements/common';
|
|
11
|
+
import type { PreviewElementProps } from './components/elements/preview-element';
|
|
12
12
|
export declare const AssignedToElement: () => React.JSX.Element;
|
|
13
13
|
export declare const AssignedToGroupElement: () => React.JSX.Element;
|
|
14
14
|
export declare const AttachmentCountElement: () => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { LinkTitle } from '../../state/flexible-ui-context/types';
|
|
1
|
+
import type { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
2
|
+
import type { LinkTitle } from '../../state/flexible-ui-context/types';
|
|
3
3
|
declare const extractLinkTitle: (status?: string, propUrl?: string, response?: SmartLinkResponse, onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>) => LinkTitle | undefined;
|
|
4
4
|
export default extractLinkTitle;
|
|
@@ -10,13 +10,13 @@ export declare function useSmartLink(id: string, url: string): {
|
|
|
10
10
|
config: import("@atlaskit/link-provider").CardAuthFlowOpts | undefined;
|
|
11
11
|
renderers: import("@atlaskit/link-provider").CardProviderRenderers | undefined;
|
|
12
12
|
error: Error | null;
|
|
13
|
-
|
|
13
|
+
isPreviewPanelAvailable: ((props: {
|
|
14
14
|
ari: string;
|
|
15
15
|
}) => boolean) | undefined;
|
|
16
|
-
|
|
16
|
+
openPreviewPanel: ((props: {
|
|
17
17
|
url: string;
|
|
18
18
|
ari: string;
|
|
19
|
-
name: string
|
|
19
|
+
name: string;
|
|
20
20
|
iconUrl: string | undefined;
|
|
21
21
|
}) => void) | undefined;
|
|
22
22
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type DestinationProduct = 'jira' | 'confluence' | 'bitbucket' | 'trello';
|
|
2
2
|
export type DestinationSubproduct = 'core' | 'software' | 'servicedesk';
|
|
3
3
|
export type ClickType = 'left' | 'middle' | 'right' | 'keyboard' | 'none';
|
|
4
|
-
export type ClickOutcome = 'prevented' | 'clickThrough' | 'clickThroughNewTabOrWindow' | 'contextMenu' | 'alt' | 'contentEditable' | '
|
|
4
|
+
export type ClickOutcome = 'prevented' | 'clickThrough' | 'clickThroughNewTabOrWindow' | 'contextMenu' | 'alt' | 'contentEditable' | 'previewPanel' | 'unknown';
|
|
5
5
|
export type UiLinkClickedEventProps = {
|
|
6
6
|
/**
|
|
7
7
|
* Whether the click occurred with the left, middle or right mouse button
|
package/dist/types-ts4.5/view/FlexibleCard/components/elements/attachment-count-element/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseBadgeElementProps } from '../common';
|
|
2
|
+
import { type BaseBadgeElementProps } from '../common';
|
|
3
3
|
export type AttachmentCountElementProps = BaseBadgeElementProps;
|
|
4
4
|
declare const AttachmentCountElement: (props: AttachmentCountElementProps) => JSX.Element | null;
|
|
5
5
|
export default AttachmentCountElement;
|
package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
2
|
+
import type { MessageDescriptor } from 'react-intl-next';
|
|
3
3
|
import type { MessageProps } from '../../../types';
|
|
4
4
|
import { type ElementProps } from '../../index';
|
|
5
5
|
export type BaseTextElementProps = ElementProps & {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ElementName, type SmartLinkSize } from '../../../../constants';
|
|
3
|
-
import { type BaseAtlaskitBadgeElementProps, type BaseAvatarGroupElementProps, type BaseBadgeElementProps, type BaseDateTimeElementProps, type BaseIconElementProps, type BaseLinkElementProps, type BaseLozengeElementProps, type BaseTextElementProps } from './common';
|
|
4
2
|
export type ElementProps = {
|
|
5
3
|
/**
|
|
6
4
|
* Name of the element, can be used as a selector.
|
|
@@ -23,180 +21,38 @@ export type ElementProps = {
|
|
|
23
21
|
*/
|
|
24
22
|
testId?: string;
|
|
25
23
|
};
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
export
|
|
42
|
-
|
|
43
|
-
* Creates a AttachmentCount Badge element using the data from AttachmentCount in the Flexible UI Context.
|
|
44
|
-
* @see Badge
|
|
45
|
-
*/
|
|
46
|
-
export declare const AttachmentCount: import("react").ComponentType<BaseBadgeElementProps>;
|
|
47
|
-
/**
|
|
48
|
-
* An AvatarGroup element using the data from AuthorGroup in the Flexible UI Context.
|
|
49
|
-
* @see AvatarGroup
|
|
50
|
-
*/
|
|
51
|
-
export declare const AuthorGroup: import("react").ComponentType<BaseAvatarGroupElementProps>;
|
|
52
|
-
/**
|
|
53
|
-
* Creates a Checklist Badge element using the data from ChecklistProgress in the Flexible UI Context.
|
|
54
|
-
* @see Badge
|
|
55
|
-
*/
|
|
56
|
-
export declare const ChecklistProgress: import("react").ComponentType<BaseBadgeElementProps>;
|
|
57
|
-
/**
|
|
58
|
-
* An AvatarGroup element using the data from CollaboratorGroup in the Flexible UI Context.
|
|
59
|
-
* @see AvatarGroup
|
|
60
|
-
*/
|
|
61
|
-
export declare const CollaboratorGroup: import("react").ComponentType<BaseAvatarGroupElementProps>;
|
|
62
|
-
/**
|
|
63
|
-
* Creates a CommentCount Badge element using the data from CommentCount in the Flexible UI Context.
|
|
64
|
-
* @see Badge
|
|
65
|
-
*/
|
|
66
|
-
export declare const CommentCount: import("react").ComponentType<BaseBadgeElementProps>;
|
|
67
|
-
/**
|
|
68
|
-
* Creates a CreatedOn DateTime element using the data from CreatedOn in the Flexible UI Context.
|
|
69
|
-
* @see DateTime
|
|
70
|
-
*/
|
|
71
|
-
export declare const CreatedOn: import("react").ComponentType<BaseDateTimeElementProps>;
|
|
72
|
-
/**
|
|
73
|
-
* Creates a CreatedBy text element using the data from CreatedBy in the Flexible UI Context.
|
|
74
|
-
* @see Text
|
|
75
|
-
*/
|
|
76
|
-
export declare const CreatedBy: import("react").ComponentType<BaseTextElementProps>;
|
|
77
|
-
/**
|
|
78
|
-
* Creates a DueOn Lozenge element using the data from dueOn in the Flexible UI Context.
|
|
79
|
-
* @see Lozenge
|
|
80
|
-
*/
|
|
81
|
-
export declare const DueOn: import("react").ComponentType<BaseLozengeElementProps>;
|
|
82
|
-
/**
|
|
83
|
-
* Creates an element that contains Last Commit hash
|
|
84
|
-
*/
|
|
85
|
-
export declare const LatestCommit: import("react").ComponentType<BaseBadgeElementProps>;
|
|
86
|
-
/**
|
|
87
|
-
* Creates a LinkIcon Icon element using the data from LinkIcon in the Flexible UI Context.
|
|
88
|
-
* @see Icon
|
|
89
|
-
*/
|
|
90
|
-
export declare const LinkIcon: import("react").ComponentType<BaseIconElementProps>;
|
|
91
|
-
/**
|
|
92
|
-
* Creates a Location Link element.
|
|
93
|
-
* This represents the location or container of the resource.
|
|
94
|
-
* @see Link
|
|
95
|
-
*/
|
|
96
|
-
export declare const Location: import("react").ComponentType<BaseLinkElementProps>;
|
|
97
|
-
/**
|
|
98
|
-
* Creates a ModifiedBy Text element using the data from ModifiedBy in the Flexible UI Context.
|
|
99
|
-
* @see Text
|
|
100
|
-
*/
|
|
101
|
-
export declare const ModifiedBy: import("react").ComponentType<BaseTextElementProps>;
|
|
102
|
-
/**
|
|
103
|
-
* Creates a ModifiedOn DateTime element using the data from ModifiedOn in the Flexible UI Context.
|
|
104
|
-
* @see DateTime
|
|
105
|
-
*/
|
|
106
|
-
export declare const ModifiedOn: import("react").ComponentType<BaseDateTimeElementProps>;
|
|
107
|
-
/**
|
|
108
|
-
* Creates a OwnedBy text element using the data from OwnedBy in the Flexible UI Context.
|
|
109
|
-
* @see Text
|
|
110
|
-
*/
|
|
111
|
-
export declare const OwnedBy: import("react").ComponentType<BaseTextElementProps>;
|
|
112
|
-
/**
|
|
113
|
-
* An AvatarGroup element using the data from OwnedByGroup in the Flexible UI Context.
|
|
114
|
-
* @see AvatarGroup
|
|
115
|
-
*/
|
|
116
|
-
export declare const OwnedByGroup: import("react").ComponentType<BaseAvatarGroupElementProps>;
|
|
117
|
-
/**
|
|
118
|
-
* Creates a Preview element using the data from Preview in the Flexible UI Context.
|
|
119
|
-
* @see Preview
|
|
120
|
-
*/
|
|
24
|
+
export { default as AssignedTo } from './assigned-to-element';
|
|
25
|
+
export { default as AssignedToGroup } from './assigned-to-group-element';
|
|
26
|
+
export { default as AttachmentCount } from './attachment-count-element';
|
|
27
|
+
export { default as AuthorGroup } from './author-group-element';
|
|
28
|
+
export { default as ChecklistProgress } from './checklist-progress-element';
|
|
29
|
+
export { default as CollaboratorGroup } from './collaborator-group-element';
|
|
30
|
+
export { default as CommentCount } from './comment-count-element';
|
|
31
|
+
export { default as CreatedOn } from './created-on-element';
|
|
32
|
+
export { default as CreatedBy } from './created-by-element';
|
|
33
|
+
export { default as DueOn } from './due-on-element';
|
|
34
|
+
export { default as LatestCommit } from './latest-commit-element';
|
|
35
|
+
export { default as LinkIcon } from './link-icon-element';
|
|
36
|
+
export { default as Location } from './location-element';
|
|
37
|
+
export { default as ModifiedBy } from './modified-by-element';
|
|
38
|
+
export { default as ModifiedOn } from './modified-on-element';
|
|
39
|
+
export { default as OwnedBy } from './owned-by-element';
|
|
40
|
+
export { default as OwnedByGroup } from './owned-by-group-element';
|
|
121
41
|
export { default as Preview } from './preview-element';
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
export
|
|
127
|
-
|
|
128
|
-
* Creates a ProgrammingLanguage Badge element using the data from ProgrammingLanguage in the Flexible UI Context.
|
|
129
|
-
* @see Badge
|
|
130
|
-
*/
|
|
131
|
-
export declare const ProgrammingLanguage: import("react").ComponentType<BaseBadgeElementProps>;
|
|
132
|
-
/**
|
|
133
|
-
* Creates a Provider Badge element using the data from Provider in the Flexible UI Context.
|
|
134
|
-
* @see Badge
|
|
135
|
-
*/
|
|
136
|
-
export declare const Provider: import("react").ComponentType<BaseBadgeElementProps>;
|
|
137
|
-
/**
|
|
138
|
-
* Creates a ReactCount Badge element using the data from ReactCount in the Flexible UI Context.
|
|
139
|
-
* @see Badge
|
|
140
|
-
*/
|
|
141
|
-
export declare const ReactCount: import("react").ComponentType<BaseBadgeElementProps>;
|
|
142
|
-
/**
|
|
143
|
-
* Creates a ReadTime Text element using the data from readTime in the Flexible UI Context
|
|
144
|
-
*/
|
|
145
|
-
export declare const ReadTime: import("react").ComponentType<BaseTextElementProps>;
|
|
146
|
-
/**
|
|
147
|
-
* Creates a SentOn DateTime element using the data from SentOn in the Flexible UI Context.
|
|
148
|
-
* @see DateTime
|
|
149
|
-
*/
|
|
150
|
-
export declare const SentOn: import("react").ComponentType<BaseDateTimeElementProps>;
|
|
151
|
-
/**
|
|
152
|
-
* Creates a Snippet element using the data from Snippet in the Flexible UI Context.
|
|
153
|
-
* @see Text
|
|
154
|
-
*/
|
|
42
|
+
export { default as Priority } from './priority-element';
|
|
43
|
+
export { default as ProgrammingLanguage } from './programming-language-element';
|
|
44
|
+
export { default as Provider } from './provider-element';
|
|
45
|
+
export { default as ReactCount } from './react-count-element';
|
|
46
|
+
export { default as ReadTime } from './read-time-element';
|
|
47
|
+
export { default as SentOn } from './sent-on-element';
|
|
155
48
|
export { default as Snippet } from './snippet-element';
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
export
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
export declare const State: import("react").ComponentType<BaseLozengeElementProps>;
|
|
166
|
-
/**
|
|
167
|
-
* Creates a SubscriberCount Badge element using the data from SubscriberCount in the Flexible UI Context.
|
|
168
|
-
* @see Badge
|
|
169
|
-
*/
|
|
170
|
-
export declare const SubscriberCount: import("react").ComponentType<BaseBadgeElementProps>;
|
|
171
|
-
/**
|
|
172
|
-
* Create a SubTasks Badge element using the data from subTasks in the Flexible UI Context.
|
|
173
|
-
* @see Badge
|
|
174
|
-
*/
|
|
175
|
-
export declare const SubTasksProgress: import("react").ComponentType<BaseBadgeElementProps>;
|
|
176
|
-
/**
|
|
177
|
-
* Create a StoryPoints Badge element using the data from storyPoints in the Flexible UI Context.
|
|
178
|
-
* @see AtlaskitBadge
|
|
179
|
-
*/
|
|
180
|
-
export declare const StoryPoints: import("react").ComponentType<BaseAtlaskitBadgeElementProps>;
|
|
181
|
-
/**
|
|
182
|
-
* Creates a TargetBranch Text element using the data from targetBranch in the Flexible UI Context.
|
|
183
|
-
* @see Text
|
|
184
|
-
*/
|
|
185
|
-
export declare const TargetBranch: import("react").ComponentType<BaseTextElementProps>;
|
|
186
|
-
/**
|
|
187
|
-
* Creates a Title Link element using the data from Title in the Flexible UI Context.
|
|
188
|
-
* This represents the main link text within the Smart Link.
|
|
189
|
-
* @see Link
|
|
190
|
-
*/
|
|
191
|
-
export declare const Title: import("react").ComponentType<BaseLinkElementProps>;
|
|
192
|
-
/**
|
|
193
|
-
* Creates a ViewCount Badge element using the data from ViewCount in the Flexible UI Context.
|
|
194
|
-
* @see Badge
|
|
195
|
-
*/
|
|
196
|
-
export declare const ViewCount: import("react").ComponentType<BaseBadgeElementProps>;
|
|
197
|
-
/**
|
|
198
|
-
* Creates a VoteCount Badge element using the data from VoteCount in the Flexible UI Context.
|
|
199
|
-
* @see Badge
|
|
200
|
-
*/
|
|
201
|
-
export declare const VoteCount: import("react").ComponentType<BaseBadgeElementProps>;
|
|
49
|
+
export { default as SourceBranch } from './source-branch-element';
|
|
50
|
+
export { default as State } from './state-element';
|
|
51
|
+
export { default as SubscriberCount } from './subscriber-count-element';
|
|
52
|
+
export { default as SubTasksProgress } from './sub-tasks-progress-element';
|
|
53
|
+
export { default as StoryPoints } from './story-points-element';
|
|
54
|
+
export { default as TargetBranch } from './target-branch-element';
|
|
55
|
+
export { default as Title } from './title-element';
|
|
56
|
+
export { default as ViewCount } from './view-count-element';
|
|
57
|
+
export { default as VoteCount } from './vote-count-element';
|
|
202
58
|
export { default as AppliedToComponentsCount } from './applied-to-components-count-element';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseBadgeElementProps } from '../common';
|
|
2
|
+
import { type BaseBadgeElementProps } from '../common';
|
|
3
3
|
export type ProgrammingLanguageElementProps = BaseBadgeElementProps;
|
|
4
4
|
declare const ProgrammingLanguageElement: (props: ProgrammingLanguageElementProps) => JSX.Element | null;
|
|
5
5
|
export default ProgrammingLanguageElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseBadgeElementProps } from '../common';
|
|
2
|
+
import { type BaseBadgeElementProps } from '../common';
|
|
3
3
|
export type ProviderElementProps = BaseBadgeElementProps;
|
|
4
4
|
declare const ProviderElement: (props: ProviderElementProps) => JSX.Element | null;
|
|
5
5
|
export default ProviderElement;
|
package/dist/types-ts4.5/view/FlexibleCard/components/elements/view-count-element/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseBadgeElementProps } from '../common';
|
|
2
|
+
import { type BaseBadgeElementProps } from '../common';
|
|
3
3
|
export type ViewCountElementProps = BaseBadgeElementProps;
|
|
4
4
|
declare const ViewCountElement: (props: ViewCountElementProps) => JSX.Element | null;
|
|
5
5
|
export default ViewCountElement;
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* DO NOT add a new prop to these components until we are ready to support it externally.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import {
|
|
11
|
-
import { PreviewElementProps } from './components/elements/preview-element';
|
|
10
|
+
import type { BaseBadgeElementProps, BaseDateTimeElementProps, BaseIconElementProps, BaseLinkElementProps, BaseTextElementProps } from './components/elements/common';
|
|
11
|
+
import type { PreviewElementProps } from './components/elements/preview-element';
|
|
12
12
|
export declare const AssignedToElement: () => React.JSX.Element;
|
|
13
13
|
export declare const AssignedToGroupElement: () => React.JSX.Element;
|
|
14
14
|
export declare const AttachmentCountElement: () => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "38.9.
|
|
3
|
+
"version": "38.9.2",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/heading": "^5.2.0",
|
|
42
42
|
"@atlaskit/icon": "^26.4.0",
|
|
43
43
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
44
|
-
"@atlaskit/icon-lab": "^4.
|
|
44
|
+
"@atlaskit/icon-lab": "^4.19.0",
|
|
45
45
|
"@atlaskit/icon-object": "^7.1.0",
|
|
46
46
|
"@atlaskit/icon-priority": "^6.3.0",
|
|
47
47
|
"@atlaskit/image": "^3.0.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@atlaskit/textarea": "^8.0.0",
|
|
68
68
|
"@atlaskit/textfield": "^8.0.0",
|
|
69
69
|
"@atlaskit/theme": "^18.0.0",
|
|
70
|
-
"@atlaskit/tokens": "^5.
|
|
70
|
+
"@atlaskit/tokens": "^5.2.0",
|
|
71
71
|
"@atlaskit/tooltip": "^20.3.0",
|
|
72
72
|
"@atlaskit/ufo": "^0.4.0",
|
|
73
73
|
"@babel/runtime": "^7.0.0",
|
|
@@ -180,9 +180,6 @@
|
|
|
180
180
|
"type": "boolean",
|
|
181
181
|
"showOnWebsiteForTransitiveDependencies": true
|
|
182
182
|
},
|
|
183
|
-
"platform-linking-flexible-card-elements-refactor": {
|
|
184
|
-
"type": "boolean"
|
|
185
|
-
},
|
|
186
183
|
"platform-component-visual-refresh": {
|
|
187
184
|
"type": "boolean",
|
|
188
185
|
"showOnWebsiteForTransitiveDependencies": true
|