@atlaskit/smart-card 26.14.6 → 26.15.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 +6 -0
- package/dist/cjs/constants.js +1 -0
- package/dist/cjs/extractors/flexible/index.js +1 -0
- package/dist/cjs/extractors/flexible/utils.js +6 -2
- package/dist/cjs/i18n/en.js +8 -1
- package/dist/cjs/i18n/en_GB.js +8 -1
- package/dist/cjs/i18n/en_ZZ.js +8 -1
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/atlaskit-badge/index.js +37 -0
- package/dist/cjs/view/FlexibleCard/components/elements/atlaskit-badge/types.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/elements/index.js +8 -2
- package/dist/cjs/view/FlexibleCard/components/elements/utils.js +10 -0
- package/dist/es2019/constants.js +1 -0
- package/dist/es2019/extractors/flexible/index.js +2 -1
- package/dist/es2019/extractors/flexible/utils.js +3 -0
- package/dist/es2019/i18n/en.js +8 -1
- package/dist/es2019/i18n/en_GB.js +8 -1
- package/dist/es2019/i18n/en_ZZ.js +8 -1
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/atlaskit-badge/index.js +28 -0
- package/dist/es2019/view/FlexibleCard/components/elements/atlaskit-badge/types.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/index.js +5 -0
- package/dist/es2019/view/FlexibleCard/components/elements/utils.js +11 -0
- package/dist/esm/constants.js +1 -0
- package/dist/esm/extractors/flexible/index.js +2 -1
- package/dist/esm/extractors/flexible/utils.js +3 -0
- package/dist/esm/i18n/en.js +8 -1
- package/dist/esm/i18n/en_GB.js +8 -1
- package/dist/esm/i18n/en_ZZ.js +8 -1
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/atlaskit-badge/index.js +28 -0
- package/dist/esm/view/FlexibleCard/components/elements/atlaskit-badge/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/index.js +5 -0
- package/dist/esm/view/FlexibleCard/components/elements/utils.js +10 -0
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/extractors/flexible/utils.d.ts +1 -0
- package/dist/types/i18n/en.d.ts +7 -0
- package/dist/types/i18n/en_GB.d.ts +7 -0
- package/dist/types/i18n/en_ZZ.d.ts +7 -0
- package/dist/types/state/flexible-ui-context/types.d.ts +6 -0
- package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +8 -2
- package/dist/types/view/FlexibleCard/components/elements/atlaskit-badge/index.d.ts +10 -0
- package/dist/types/view/FlexibleCard/components/elements/atlaskit-badge/types.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/elements/index.d.ts +6 -0
- package/dist/types-ts4.5/constants.d.ts +1 -0
- package/dist/types-ts4.5/extractors/flexible/utils.d.ts +1 -0
- package/dist/types-ts4.5/i18n/en.d.ts +7 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +7 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +7 -0
- package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +6 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +8 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/atlaskit-badge/index.d.ts +10 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/atlaskit-badge/types.d.ts +4 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/index.d.ts +6 -0
- package/package.json +2 -1
- package/report.api.md +8 -0
- package/tmp/api-report-tmp.d.ts +8 -1
package/dist/esm/i18n/en.js
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
export default {
|
|
10
10
|
'fabric.linking.actions': 'Actions',
|
|
11
11
|
'fabric.linking.add_account': 'Add account',
|
|
12
|
+
'fabric.linking.assigned_to': 'Assigned to {context}',
|
|
12
13
|
'fabric.linking.cancel': 'Cancel',
|
|
13
14
|
'fabric.linking.cannot_connect': "Can't connect, try again",
|
|
14
15
|
'fabric.linking.cannot_find_link': "Can't find link",
|
|
@@ -23,7 +24,8 @@ export default {
|
|
|
23
24
|
'fabric.linking.connect_link_account_card_view_name': 'Connect your {context} account',
|
|
24
25
|
'fabric.linking.connect_to': 'Connect to {name}',
|
|
25
26
|
'fabric.linking.connect_unauthorised_account_action': 'Connect to {context}',
|
|
26
|
-
'fabric.linking.connect_unauthorised_account_description': 'Connect to Atlassian to view more details of your work and collaborate from one place.',
|
|
27
|
+
'fabric.linking.connect_unauthorised_account_description': 'Connect {context} to Atlassian to view more details of your work and collaborate from one place.',
|
|
28
|
+
'fabric.linking.connect_unauthorised_account_description_no_provider': 'Connect to Atlassian to view more details of your work and collaborate from one place.',
|
|
27
29
|
'fabric.linking.continue': 'Continue',
|
|
28
30
|
'fabric.linking.copy_url_to_clipboard': 'Copy link',
|
|
29
31
|
'fabric.linking.couldnt_load_link': "We couldn't load this link for an unknown reason.",
|
|
@@ -67,6 +69,7 @@ export default {
|
|
|
67
69
|
'fabric.linking.priority_minor': 'Minor',
|
|
68
70
|
'fabric.linking.priority_trivial': 'Trivial',
|
|
69
71
|
'fabric.linking.priority_undefined': 'Undefined',
|
|
72
|
+
'fabric.linking.read_time': '{context} min read',
|
|
70
73
|
'fabric.linking.request_access': 'Request access',
|
|
71
74
|
'fabric.linking.request_access_description': 'Request access to {context} view this preview.',
|
|
72
75
|
'fabric.linking.request_access_pending': 'Access pending',
|
|
@@ -84,6 +87,10 @@ export default {
|
|
|
84
87
|
'fabric.linking.status_change_update_error': 'We couldn’t update the status',
|
|
85
88
|
'fabric.linking.try_again': 'Try again',
|
|
86
89
|
'fabric.linking.try_another_account': 'Try another account',
|
|
90
|
+
'fabric.linking.unauthorised_account_description': "You're trying to preview a link to a private {context} page. We recommend you review the URL or contact the page owner.",
|
|
91
|
+
'fabric.linking.unauthorised_account_description_no_provider': "You're trying to preview a link to a private page. We recommend you review the URL or contact the page owner.",
|
|
92
|
+
'fabric.linking.unauthorised_account_name': "We can't display private pages from {context}",
|
|
93
|
+
'fabric.linking.unauthorised_account_name_no_provider': "We can't display private pages",
|
|
87
94
|
'fabric.linking.unlink_account': 'Unlink Account',
|
|
88
95
|
'fabric.linking.updated_by': 'Modified by {context}',
|
|
89
96
|
'fabric.linking.view': 'View'
|
package/dist/esm/i18n/en_GB.js
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
export default {
|
|
10
10
|
'fabric.linking.actions': 'Actions',
|
|
11
11
|
'fabric.linking.add_account': 'Add account',
|
|
12
|
+
'fabric.linking.assigned_to': 'Assigned to {context}',
|
|
12
13
|
'fabric.linking.cancel': 'Cancel',
|
|
13
14
|
'fabric.linking.cannot_connect': "Can't connect, try again",
|
|
14
15
|
'fabric.linking.cannot_find_link': "Can't find link",
|
|
@@ -23,7 +24,8 @@ export default {
|
|
|
23
24
|
'fabric.linking.connect_link_account_card_view_name': 'Connect your {context} account',
|
|
24
25
|
'fabric.linking.connect_to': 'Connect to {name}',
|
|
25
26
|
'fabric.linking.connect_unauthorised_account_action': 'Connect to {context}',
|
|
26
|
-
'fabric.linking.connect_unauthorised_account_description': 'Connect to Atlassian to view more details of your work and collaborate from one place.',
|
|
27
|
+
'fabric.linking.connect_unauthorised_account_description': 'Connect {context} to Atlassian to view more details of your work and collaborate from one place.',
|
|
28
|
+
'fabric.linking.connect_unauthorised_account_description_no_provider': 'Connect to Atlassian to view more details of your work and collaborate from one place.',
|
|
27
29
|
'fabric.linking.continue': 'Continue',
|
|
28
30
|
'fabric.linking.copy_url_to_clipboard': 'Copy link',
|
|
29
31
|
'fabric.linking.couldnt_load_link': "We couldn't load this link for an unknown reason.",
|
|
@@ -67,6 +69,7 @@ export default {
|
|
|
67
69
|
'fabric.linking.priority_minor': 'Minor',
|
|
68
70
|
'fabric.linking.priority_trivial': 'Trivial',
|
|
69
71
|
'fabric.linking.priority_undefined': 'Undefined',
|
|
72
|
+
'fabric.linking.read_time': '{context} min read',
|
|
70
73
|
'fabric.linking.request_access': 'Request access',
|
|
71
74
|
'fabric.linking.request_access_description': 'Request access to {context} view this preview.',
|
|
72
75
|
'fabric.linking.request_access_pending': 'Access pending',
|
|
@@ -84,6 +87,10 @@ export default {
|
|
|
84
87
|
'fabric.linking.status_change_update_error': 'We couldn’t update the status',
|
|
85
88
|
'fabric.linking.try_again': 'Try again',
|
|
86
89
|
'fabric.linking.try_another_account': 'Try another account',
|
|
90
|
+
'fabric.linking.unauthorised_account_description': "You're trying to preview a link to a private {context} page. We recommend you review the URL or contact the page owner.",
|
|
91
|
+
'fabric.linking.unauthorised_account_description_no_provider': "You're trying to preview a link to a private page. We recommend you review the URL or contact the page owner.",
|
|
92
|
+
'fabric.linking.unauthorised_account_name': "We can't display private pages from {context}",
|
|
93
|
+
'fabric.linking.unauthorised_account_name_no_provider': "We can't display private pages",
|
|
87
94
|
'fabric.linking.unlink_account': 'Unlink Account',
|
|
88
95
|
'fabric.linking.updated_by': 'Modified by {context}',
|
|
89
96
|
'fabric.linking.view': 'View'
|
package/dist/esm/i18n/en_ZZ.js
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
export default {
|
|
10
10
|
'fabric.linking.actions': 'Actions',
|
|
11
11
|
'fabric.linking.add_account': 'Add account',
|
|
12
|
+
'fabric.linking.assigned_to': 'Assigned to {context}',
|
|
12
13
|
'fabric.linking.cancel': 'Cancel',
|
|
13
14
|
'fabric.linking.cannot_connect': "Can't connect, try again",
|
|
14
15
|
'fabric.linking.cannot_find_link': "Can't find link",
|
|
@@ -23,7 +24,8 @@ export default {
|
|
|
23
24
|
'fabric.linking.connect_link_account_card_view_name': 'Connect your {context} account',
|
|
24
25
|
'fabric.linking.connect_to': 'Connect to {name}',
|
|
25
26
|
'fabric.linking.connect_unauthorised_account_action': 'Connect to {context}',
|
|
26
|
-
'fabric.linking.connect_unauthorised_account_description': 'Connect to Atlassian to view more details of your work and collaborate from one place
|
|
27
|
+
'fabric.linking.connect_unauthorised_account_description': 'Connect {context} to Atlassian to view more details of your work and collaborate from one place.',
|
|
28
|
+
'fabric.linking.connect_unauthorised_account_description_no_provider': 'Connect to Atlassian to view more details of your work and collaborate from one place.',
|
|
27
29
|
'fabric.linking.continue': 'Continue',
|
|
28
30
|
'fabric.linking.copy_url_to_clipboard': 'Copy link',
|
|
29
31
|
'fabric.linking.couldnt_load_link': "We couldn't load this link for an unknown reason.",
|
|
@@ -67,6 +69,7 @@ export default {
|
|
|
67
69
|
'fabric.linking.priority_minor': 'Minor',
|
|
68
70
|
'fabric.linking.priority_trivial': 'Trivial',
|
|
69
71
|
'fabric.linking.priority_undefined': 'Undefined',
|
|
72
|
+
'fabric.linking.read_time': '{context} min read',
|
|
70
73
|
'fabric.linking.request_access': 'Request access',
|
|
71
74
|
'fabric.linking.request_access_description': 'Request access to {context} view this preview.',
|
|
72
75
|
'fabric.linking.request_access_pending': 'Access pending',
|
|
@@ -84,6 +87,10 @@ export default {
|
|
|
84
87
|
'fabric.linking.status_change_update_error': 'We couldn’t update the status',
|
|
85
88
|
'fabric.linking.try_again': 'Try again',
|
|
86
89
|
'fabric.linking.try_another_account': 'Try another account',
|
|
90
|
+
'fabric.linking.unauthorised_account_description': "You're trying to preview a link to a private {context} page. We recommend you review the URL or contact the page owner.",
|
|
91
|
+
'fabric.linking.unauthorised_account_description_no_provider': "You're trying to preview a link to a private page. We recommend you review the URL or contact the page owner.",
|
|
92
|
+
'fabric.linking.unauthorised_account_name': "We can't display private pages from {context}",
|
|
93
|
+
'fabric.linking.unauthorised_account_name_no_provider': "We can't display private pages",
|
|
87
94
|
'fabric.linking.unlink_account': 'Unlink Account',
|
|
88
95
|
'fabric.linking.updated_by': 'Modified by {context}',
|
|
89
96
|
'fabric.linking.view': 'View'
|
package/dist/esm/version.json
CHANGED
|
@@ -15,7 +15,7 @@ import ElementGroup from './element-group';
|
|
|
15
15
|
|
|
16
16
|
// Determine whether the element can be display as inline/block.
|
|
17
17
|
|
|
18
|
-
export var ElementDisplaySchema = (_ElementDisplaySchema = {}, _defineProperty(_ElementDisplaySchema, ElementName.AssignedTo, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.AssignedToGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.AttachmentCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.AuthorGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ChecklistProgress, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CollaboratorGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CommentCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CreatedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CreatedOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.DueOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.LatestCommit, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.LinkIcon, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Location, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ModifiedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ModifiedOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.OwnedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.OwnedByGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Preview, ['block']), _defineProperty(_ElementDisplaySchema, ElementName.Priority, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ProgrammingLanguage, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Provider, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ReactCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ReadTime, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Snippet, ['block']), _defineProperty(_ElementDisplaySchema, ElementName.SourceBranch, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.State, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.SubscriberCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.SubTasksProgress, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.TargetBranch, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Title, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ViewCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.VoteCount, ['inline']), _ElementDisplaySchema);
|
|
18
|
+
export var ElementDisplaySchema = (_ElementDisplaySchema = {}, _defineProperty(_ElementDisplaySchema, ElementName.AssignedTo, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.AssignedToGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.AttachmentCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.AuthorGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ChecklistProgress, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CollaboratorGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CommentCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CreatedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CreatedOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.DueOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.LatestCommit, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.LinkIcon, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Location, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ModifiedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ModifiedOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.OwnedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.OwnedByGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Preview, ['block']), _defineProperty(_ElementDisplaySchema, ElementName.Priority, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ProgrammingLanguage, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Provider, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ReactCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ReadTime, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Snippet, ['block']), _defineProperty(_ElementDisplaySchema, ElementName.SourceBranch, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.State, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.SubscriberCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.SubTasksProgress, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.StoryPoints, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.TargetBranch, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Title, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ViewCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.VoteCount, ['inline']), _ElementDisplaySchema);
|
|
19
19
|
var getDirectionStyles = function getDirectionStyles(direction) {
|
|
20
20
|
switch (direction) {
|
|
21
21
|
case SmartLinkDirection.Vertical:
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import AKBadge from '@atlaskit/badge';
|
|
4
|
+
import { jsx } from '@emotion/react';
|
|
5
|
+
/**
|
|
6
|
+
* A base element that displays a visual indicator for a numeric value
|
|
7
|
+
* @internal
|
|
8
|
+
* @see StoryPoints
|
|
9
|
+
* */
|
|
10
|
+
|
|
11
|
+
var AtlaskitBadge = function AtlaskitBadge(_ref) {
|
|
12
|
+
var value = _ref.value,
|
|
13
|
+
name = _ref.name,
|
|
14
|
+
overrideCss = _ref.overrideCss,
|
|
15
|
+
_ref$testId = _ref.testId,
|
|
16
|
+
testId = _ref$testId === void 0 ? 'smart-element-atlaskit-badge' : _ref$testId;
|
|
17
|
+
if (!value) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
return jsx("span", {
|
|
21
|
+
css: overrideCss,
|
|
22
|
+
"data-fit-to-content": true,
|
|
23
|
+
"data-smart-element": name,
|
|
24
|
+
"data-smart-element-atlaskit-badge": true,
|
|
25
|
+
"data-testid": testId
|
|
26
|
+
}, jsx(AKBadge, null, value));
|
|
27
|
+
};
|
|
28
|
+
export default AtlaskitBadge;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -142,6 +142,11 @@ export var SubscriberCount = createElement(ElementName.SubscriberCount);
|
|
|
142
142
|
* @see Badge
|
|
143
143
|
*/
|
|
144
144
|
export var SubTasksProgress = createElement(ElementName.SubTasksProgress);
|
|
145
|
+
/**
|
|
146
|
+
* Create a StoryPoints Badge element using the data from storyPoints in the Flexible UI Context.
|
|
147
|
+
* @see AtlaskitBadge
|
|
148
|
+
*/
|
|
149
|
+
export var StoryPoints = createElement(ElementName.StoryPoints);
|
|
145
150
|
/**
|
|
146
151
|
* Creates a TargetBranch Text element using the data from targetBranch in the Flexible UI Context.
|
|
147
152
|
* @see Text
|
|
@@ -18,6 +18,7 @@ import Text from './text';
|
|
|
18
18
|
import { messages } from '../../../../messages';
|
|
19
19
|
import DateTime from './date-time';
|
|
20
20
|
import { tokens } from '../../../../utils/token';
|
|
21
|
+
import AtlaskitBadge from './atlaskit-badge';
|
|
21
22
|
var SNIPPET_DEFAULT_MAX_LINES = 3;
|
|
22
23
|
var elementMappings = (_elementMappings = {}, _defineProperty(_elementMappings, ElementName.AttachmentCount, {
|
|
23
24
|
component: Badge,
|
|
@@ -111,6 +112,8 @@ var elementMappings = (_elementMappings = {}, _defineProperty(_elementMappings,
|
|
|
111
112
|
props: {
|
|
112
113
|
icon: IconType.SubTasksProgress
|
|
113
114
|
}
|
|
115
|
+
}), _defineProperty(_elementMappings, ElementName.StoryPoints, {
|
|
116
|
+
component: AtlaskitBadge
|
|
114
117
|
}), _defineProperty(_elementMappings, ElementName.TargetBranch, {
|
|
115
118
|
component: Text
|
|
116
119
|
}), _defineProperty(_elementMappings, ElementName.Title, {
|
|
@@ -148,6 +151,8 @@ var getData = function getData(elementName, contextKey, context) {
|
|
|
148
151
|
case ElementName.LatestCommit:
|
|
149
152
|
case ElementName.SubTasksProgress:
|
|
150
153
|
return toBadgeProps(data);
|
|
154
|
+
case ElementName.StoryPoints:
|
|
155
|
+
return toAtlaskitBadgeProps(data);
|
|
151
156
|
case ElementName.CreatedBy:
|
|
152
157
|
return toFormattedTextProps(messages.created_by, context.createdBy);
|
|
153
158
|
case ElementName.AssignedTo:
|
|
@@ -184,6 +189,11 @@ var toBadgeProps = function toBadgeProps(label) {
|
|
|
184
189
|
label: label
|
|
185
190
|
} : undefined;
|
|
186
191
|
};
|
|
192
|
+
var toAtlaskitBadgeProps = function toAtlaskitBadgeProps(value) {
|
|
193
|
+
return value ? {
|
|
194
|
+
value: value
|
|
195
|
+
} : undefined;
|
|
196
|
+
};
|
|
187
197
|
var toDateLozengeProps = function toDateLozengeProps(dateString) {
|
|
188
198
|
if (dateString) {
|
|
189
199
|
var text = Date.parse(dateString) ? /*#__PURE__*/React.createElement(FormattedDate, {
|
|
@@ -112,6 +112,7 @@ export declare enum ElementName {
|
|
|
112
112
|
State = "State",
|
|
113
113
|
SubscriberCount = "SubscriberCount",
|
|
114
114
|
SubTasksProgress = "SubTasksProgress",
|
|
115
|
+
StoryPoints = "StoryPoints",
|
|
115
116
|
TargetBranch = "TargetBranch",
|
|
116
117
|
Title = "Title",
|
|
117
118
|
ViewCount = "ViewCount",
|
|
@@ -20,3 +20,4 @@ export declare const extractChecklistProgress: (data: JsonLd.Data.BaseData) => s
|
|
|
20
20
|
export declare const extractLocation: (data: JsonLd.Data.BaseData) => LinkLocation | undefined;
|
|
21
21
|
export declare const extractSubTasksProgress: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
22
22
|
export declare const extractReadTime: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
23
|
+
export declare const extractStoryPoints: (data: JsonLd.Data.BaseData) => number | undefined;
|
package/dist/types/i18n/en.d.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
'fabric.linking.actions': string;
|
|
9
9
|
'fabric.linking.add_account': string;
|
|
10
|
+
'fabric.linking.assigned_to': string;
|
|
10
11
|
'fabric.linking.cancel': string;
|
|
11
12
|
'fabric.linking.cannot_connect': string;
|
|
12
13
|
'fabric.linking.cannot_find_link': string;
|
|
@@ -22,6 +23,7 @@ declare const _default: {
|
|
|
22
23
|
'fabric.linking.connect_to': string;
|
|
23
24
|
'fabric.linking.connect_unauthorised_account_action': string;
|
|
24
25
|
'fabric.linking.connect_unauthorised_account_description': string;
|
|
26
|
+
'fabric.linking.connect_unauthorised_account_description_no_provider': string;
|
|
25
27
|
'fabric.linking.continue': string;
|
|
26
28
|
'fabric.linking.copy_url_to_clipboard': string;
|
|
27
29
|
'fabric.linking.couldnt_load_link': string;
|
|
@@ -65,6 +67,7 @@ declare const _default: {
|
|
|
65
67
|
'fabric.linking.priority_minor': string;
|
|
66
68
|
'fabric.linking.priority_trivial': string;
|
|
67
69
|
'fabric.linking.priority_undefined': string;
|
|
70
|
+
'fabric.linking.read_time': string;
|
|
68
71
|
'fabric.linking.request_access': string;
|
|
69
72
|
'fabric.linking.request_access_description': string;
|
|
70
73
|
'fabric.linking.request_access_pending': string;
|
|
@@ -82,6 +85,10 @@ declare const _default: {
|
|
|
82
85
|
'fabric.linking.status_change_update_error': string;
|
|
83
86
|
'fabric.linking.try_again': string;
|
|
84
87
|
'fabric.linking.try_another_account': string;
|
|
88
|
+
'fabric.linking.unauthorised_account_description': string;
|
|
89
|
+
'fabric.linking.unauthorised_account_description_no_provider': string;
|
|
90
|
+
'fabric.linking.unauthorised_account_name': string;
|
|
91
|
+
'fabric.linking.unauthorised_account_name_no_provider': string;
|
|
85
92
|
'fabric.linking.unlink_account': string;
|
|
86
93
|
'fabric.linking.updated_by': string;
|
|
87
94
|
'fabric.linking.view': string;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
'fabric.linking.actions': string;
|
|
9
9
|
'fabric.linking.add_account': string;
|
|
10
|
+
'fabric.linking.assigned_to': string;
|
|
10
11
|
'fabric.linking.cancel': string;
|
|
11
12
|
'fabric.linking.cannot_connect': string;
|
|
12
13
|
'fabric.linking.cannot_find_link': string;
|
|
@@ -22,6 +23,7 @@ declare const _default: {
|
|
|
22
23
|
'fabric.linking.connect_to': string;
|
|
23
24
|
'fabric.linking.connect_unauthorised_account_action': string;
|
|
24
25
|
'fabric.linking.connect_unauthorised_account_description': string;
|
|
26
|
+
'fabric.linking.connect_unauthorised_account_description_no_provider': string;
|
|
25
27
|
'fabric.linking.continue': string;
|
|
26
28
|
'fabric.linking.copy_url_to_clipboard': string;
|
|
27
29
|
'fabric.linking.couldnt_load_link': string;
|
|
@@ -65,6 +67,7 @@ declare const _default: {
|
|
|
65
67
|
'fabric.linking.priority_minor': string;
|
|
66
68
|
'fabric.linking.priority_trivial': string;
|
|
67
69
|
'fabric.linking.priority_undefined': string;
|
|
70
|
+
'fabric.linking.read_time': string;
|
|
68
71
|
'fabric.linking.request_access': string;
|
|
69
72
|
'fabric.linking.request_access_description': string;
|
|
70
73
|
'fabric.linking.request_access_pending': string;
|
|
@@ -82,6 +85,10 @@ declare const _default: {
|
|
|
82
85
|
'fabric.linking.status_change_update_error': string;
|
|
83
86
|
'fabric.linking.try_again': string;
|
|
84
87
|
'fabric.linking.try_another_account': string;
|
|
88
|
+
'fabric.linking.unauthorised_account_description': string;
|
|
89
|
+
'fabric.linking.unauthorised_account_description_no_provider': string;
|
|
90
|
+
'fabric.linking.unauthorised_account_name': string;
|
|
91
|
+
'fabric.linking.unauthorised_account_name_no_provider': string;
|
|
85
92
|
'fabric.linking.unlink_account': string;
|
|
86
93
|
'fabric.linking.updated_by': string;
|
|
87
94
|
'fabric.linking.view': string;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
'fabric.linking.actions': string;
|
|
9
9
|
'fabric.linking.add_account': string;
|
|
10
|
+
'fabric.linking.assigned_to': string;
|
|
10
11
|
'fabric.linking.cancel': string;
|
|
11
12
|
'fabric.linking.cannot_connect': string;
|
|
12
13
|
'fabric.linking.cannot_find_link': string;
|
|
@@ -22,6 +23,7 @@ declare const _default: {
|
|
|
22
23
|
'fabric.linking.connect_to': string;
|
|
23
24
|
'fabric.linking.connect_unauthorised_account_action': string;
|
|
24
25
|
'fabric.linking.connect_unauthorised_account_description': string;
|
|
26
|
+
'fabric.linking.connect_unauthorised_account_description_no_provider': string;
|
|
25
27
|
'fabric.linking.continue': string;
|
|
26
28
|
'fabric.linking.copy_url_to_clipboard': string;
|
|
27
29
|
'fabric.linking.couldnt_load_link': string;
|
|
@@ -65,6 +67,7 @@ declare const _default: {
|
|
|
65
67
|
'fabric.linking.priority_minor': string;
|
|
66
68
|
'fabric.linking.priority_trivial': string;
|
|
67
69
|
'fabric.linking.priority_undefined': string;
|
|
70
|
+
'fabric.linking.read_time': string;
|
|
68
71
|
'fabric.linking.request_access': string;
|
|
69
72
|
'fabric.linking.request_access_description': string;
|
|
70
73
|
'fabric.linking.request_access_pending': string;
|
|
@@ -82,6 +85,10 @@ declare const _default: {
|
|
|
82
85
|
'fabric.linking.status_change_update_error': string;
|
|
83
86
|
'fabric.linking.try_again': string;
|
|
84
87
|
'fabric.linking.try_another_account': string;
|
|
88
|
+
'fabric.linking.unauthorised_account_description': string;
|
|
89
|
+
'fabric.linking.unauthorised_account_description_no_provider': string;
|
|
90
|
+
'fabric.linking.unauthorised_account_name': string;
|
|
91
|
+
'fabric.linking.unauthorised_account_name_no_provider': string;
|
|
85
92
|
'fabric.linking.unlink_account': string;
|
|
86
93
|
'fabric.linking.updated_by': string;
|
|
87
94
|
'fabric.linking.view': string;
|
|
@@ -189,6 +189,12 @@ export type FlexibleUiDataContext = {
|
|
|
189
189
|
* @see SubscriberCount
|
|
190
190
|
*/
|
|
191
191
|
state?: LinkLozenge;
|
|
192
|
+
/**
|
|
193
|
+
* Contains the no of story points for a task.
|
|
194
|
+
* @type string
|
|
195
|
+
* @see StoryPoints
|
|
196
|
+
*/
|
|
197
|
+
storyPoints?: number;
|
|
192
198
|
/**
|
|
193
199
|
* Contains the target branch name of the link typed pull request.
|
|
194
200
|
* @type string
|
|
@@ -168,7 +168,7 @@ export type OnActionMenuOpenChangeOptions = {
|
|
|
168
168
|
/**
|
|
169
169
|
* A type that contains all the possible combinations of elements with their corresponding props.
|
|
170
170
|
*/
|
|
171
|
-
export type ElementItemProps = AssignedTo | AssignedToGroup | AttachmentCount | AuthorGroup | ChecklistProgress | CollaboratorGroup | CommentCount | CreatedBy | CreatedOn | DueOn | LatestCommit | LinkIcon | Location | ModifiedBy | ModifiedOn | OwnedBy | OwnedByGroup | Preview | Priority | ProgrammingLanguage | Provider | ReactCount | ReadTime | Snippet | SourceBranch | State | SubscriberCount | SubTasksProgress | TargetBranch | Title | ViewCount | VoteCount;
|
|
171
|
+
export type ElementItemProps = AssignedTo | AssignedToGroup | AttachmentCount | AuthorGroup | ChecklistProgress | CollaboratorGroup | CommentCount | CreatedBy | CreatedOn | DueOn | LatestCommit | LinkIcon | Location | ModifiedBy | ModifiedOn | OwnedBy | OwnedByGroup | Preview | Priority | ProgrammingLanguage | Provider | ReactCount | ReadTime | Snippet | SourceBranch | State | SubscriberCount | SubTasksProgress | StoryPoints | TargetBranch | Title | ViewCount | VoteCount;
|
|
172
172
|
/**
|
|
173
173
|
* Represents the props available for an AttachmentCount element.
|
|
174
174
|
* @see AttachmentCount
|
|
@@ -365,11 +365,17 @@ export type SubscriberCount = {
|
|
|
365
365
|
name: ElementName.SubscriberCount;
|
|
366
366
|
};
|
|
367
367
|
/**
|
|
368
|
-
* Represents the props available for a
|
|
368
|
+
* Represents the props available for a SubtasksProgress element.
|
|
369
369
|
*/
|
|
370
370
|
export type SubTasksProgress = {
|
|
371
371
|
name: ElementName.SubTasksProgress;
|
|
372
372
|
};
|
|
373
|
+
/**
|
|
374
|
+
* Represents the props available for a StoryPoints element.
|
|
375
|
+
*/
|
|
376
|
+
export type StoryPoints = {
|
|
377
|
+
name: ElementName.StoryPoints;
|
|
378
|
+
};
|
|
373
379
|
/**
|
|
374
380
|
* Represents the props available for an TargetBranch element.
|
|
375
381
|
* @see TargetBranch
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AtlaskitBadgeProps } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* A base element that displays a visual indicator for a numeric value
|
|
6
|
+
* @internal
|
|
7
|
+
* @see StoryPoints
|
|
8
|
+
* */
|
|
9
|
+
declare const AtlaskitBadge: React.FC<AtlaskitBadgeProps>;
|
|
10
|
+
export default AtlaskitBadge;
|
|
@@ -7,6 +7,7 @@ import { AvatarGroupProps } from './avatar-group/types';
|
|
|
7
7
|
import { TextProps } from './text/types';
|
|
8
8
|
import { DateTimeProps } from './date-time/types';
|
|
9
9
|
import { MediaProps } from './media/types';
|
|
10
|
+
import { AtlaskitBadgeProps } from './atlaskit-badge/types';
|
|
10
11
|
/**
|
|
11
12
|
* Creates a AssignedTo text element using the data from AssignedTo in the Flexible UI Context.
|
|
12
13
|
* @see Text
|
|
@@ -146,6 +147,11 @@ export declare const SubscriberCount: import("react").FC<BadgeProps>;
|
|
|
146
147
|
* @see Badge
|
|
147
148
|
*/
|
|
148
149
|
export declare const SubTasksProgress: import("react").FC<BadgeProps>;
|
|
150
|
+
/**
|
|
151
|
+
* Create a StoryPoints Badge element using the data from storyPoints in the Flexible UI Context.
|
|
152
|
+
* @see AtlaskitBadge
|
|
153
|
+
*/
|
|
154
|
+
export declare const StoryPoints: import("react").FC<AtlaskitBadgeProps>;
|
|
149
155
|
/**
|
|
150
156
|
* Creates a TargetBranch Text element using the data from targetBranch in the Flexible UI Context.
|
|
151
157
|
* @see Text
|
|
@@ -112,6 +112,7 @@ export declare enum ElementName {
|
|
|
112
112
|
State = "State",
|
|
113
113
|
SubscriberCount = "SubscriberCount",
|
|
114
114
|
SubTasksProgress = "SubTasksProgress",
|
|
115
|
+
StoryPoints = "StoryPoints",
|
|
115
116
|
TargetBranch = "TargetBranch",
|
|
116
117
|
Title = "Title",
|
|
117
118
|
ViewCount = "ViewCount",
|
|
@@ -20,3 +20,4 @@ export declare const extractChecklistProgress: (data: JsonLd.Data.BaseData) => s
|
|
|
20
20
|
export declare const extractLocation: (data: JsonLd.Data.BaseData) => LinkLocation | undefined;
|
|
21
21
|
export declare const extractSubTasksProgress: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
22
22
|
export declare const extractReadTime: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
23
|
+
export declare const extractStoryPoints: (data: JsonLd.Data.BaseData) => number | undefined;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
'fabric.linking.actions': string;
|
|
9
9
|
'fabric.linking.add_account': string;
|
|
10
|
+
'fabric.linking.assigned_to': string;
|
|
10
11
|
'fabric.linking.cancel': string;
|
|
11
12
|
'fabric.linking.cannot_connect': string;
|
|
12
13
|
'fabric.linking.cannot_find_link': string;
|
|
@@ -22,6 +23,7 @@ declare const _default: {
|
|
|
22
23
|
'fabric.linking.connect_to': string;
|
|
23
24
|
'fabric.linking.connect_unauthorised_account_action': string;
|
|
24
25
|
'fabric.linking.connect_unauthorised_account_description': string;
|
|
26
|
+
'fabric.linking.connect_unauthorised_account_description_no_provider': string;
|
|
25
27
|
'fabric.linking.continue': string;
|
|
26
28
|
'fabric.linking.copy_url_to_clipboard': string;
|
|
27
29
|
'fabric.linking.couldnt_load_link': string;
|
|
@@ -65,6 +67,7 @@ declare const _default: {
|
|
|
65
67
|
'fabric.linking.priority_minor': string;
|
|
66
68
|
'fabric.linking.priority_trivial': string;
|
|
67
69
|
'fabric.linking.priority_undefined': string;
|
|
70
|
+
'fabric.linking.read_time': string;
|
|
68
71
|
'fabric.linking.request_access': string;
|
|
69
72
|
'fabric.linking.request_access_description': string;
|
|
70
73
|
'fabric.linking.request_access_pending': string;
|
|
@@ -82,6 +85,10 @@ declare const _default: {
|
|
|
82
85
|
'fabric.linking.status_change_update_error': string;
|
|
83
86
|
'fabric.linking.try_again': string;
|
|
84
87
|
'fabric.linking.try_another_account': string;
|
|
88
|
+
'fabric.linking.unauthorised_account_description': string;
|
|
89
|
+
'fabric.linking.unauthorised_account_description_no_provider': string;
|
|
90
|
+
'fabric.linking.unauthorised_account_name': string;
|
|
91
|
+
'fabric.linking.unauthorised_account_name_no_provider': string;
|
|
85
92
|
'fabric.linking.unlink_account': string;
|
|
86
93
|
'fabric.linking.updated_by': string;
|
|
87
94
|
'fabric.linking.view': string;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
'fabric.linking.actions': string;
|
|
9
9
|
'fabric.linking.add_account': string;
|
|
10
|
+
'fabric.linking.assigned_to': string;
|
|
10
11
|
'fabric.linking.cancel': string;
|
|
11
12
|
'fabric.linking.cannot_connect': string;
|
|
12
13
|
'fabric.linking.cannot_find_link': string;
|
|
@@ -22,6 +23,7 @@ declare const _default: {
|
|
|
22
23
|
'fabric.linking.connect_to': string;
|
|
23
24
|
'fabric.linking.connect_unauthorised_account_action': string;
|
|
24
25
|
'fabric.linking.connect_unauthorised_account_description': string;
|
|
26
|
+
'fabric.linking.connect_unauthorised_account_description_no_provider': string;
|
|
25
27
|
'fabric.linking.continue': string;
|
|
26
28
|
'fabric.linking.copy_url_to_clipboard': string;
|
|
27
29
|
'fabric.linking.couldnt_load_link': string;
|
|
@@ -65,6 +67,7 @@ declare const _default: {
|
|
|
65
67
|
'fabric.linking.priority_minor': string;
|
|
66
68
|
'fabric.linking.priority_trivial': string;
|
|
67
69
|
'fabric.linking.priority_undefined': string;
|
|
70
|
+
'fabric.linking.read_time': string;
|
|
68
71
|
'fabric.linking.request_access': string;
|
|
69
72
|
'fabric.linking.request_access_description': string;
|
|
70
73
|
'fabric.linking.request_access_pending': string;
|
|
@@ -82,6 +85,10 @@ declare const _default: {
|
|
|
82
85
|
'fabric.linking.status_change_update_error': string;
|
|
83
86
|
'fabric.linking.try_again': string;
|
|
84
87
|
'fabric.linking.try_another_account': string;
|
|
88
|
+
'fabric.linking.unauthorised_account_description': string;
|
|
89
|
+
'fabric.linking.unauthorised_account_description_no_provider': string;
|
|
90
|
+
'fabric.linking.unauthorised_account_name': string;
|
|
91
|
+
'fabric.linking.unauthorised_account_name_no_provider': string;
|
|
85
92
|
'fabric.linking.unlink_account': string;
|
|
86
93
|
'fabric.linking.updated_by': string;
|
|
87
94
|
'fabric.linking.view': string;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
'fabric.linking.actions': string;
|
|
9
9
|
'fabric.linking.add_account': string;
|
|
10
|
+
'fabric.linking.assigned_to': string;
|
|
10
11
|
'fabric.linking.cancel': string;
|
|
11
12
|
'fabric.linking.cannot_connect': string;
|
|
12
13
|
'fabric.linking.cannot_find_link': string;
|
|
@@ -22,6 +23,7 @@ declare const _default: {
|
|
|
22
23
|
'fabric.linking.connect_to': string;
|
|
23
24
|
'fabric.linking.connect_unauthorised_account_action': string;
|
|
24
25
|
'fabric.linking.connect_unauthorised_account_description': string;
|
|
26
|
+
'fabric.linking.connect_unauthorised_account_description_no_provider': string;
|
|
25
27
|
'fabric.linking.continue': string;
|
|
26
28
|
'fabric.linking.copy_url_to_clipboard': string;
|
|
27
29
|
'fabric.linking.couldnt_load_link': string;
|
|
@@ -65,6 +67,7 @@ declare const _default: {
|
|
|
65
67
|
'fabric.linking.priority_minor': string;
|
|
66
68
|
'fabric.linking.priority_trivial': string;
|
|
67
69
|
'fabric.linking.priority_undefined': string;
|
|
70
|
+
'fabric.linking.read_time': string;
|
|
68
71
|
'fabric.linking.request_access': string;
|
|
69
72
|
'fabric.linking.request_access_description': string;
|
|
70
73
|
'fabric.linking.request_access_pending': string;
|
|
@@ -82,6 +85,10 @@ declare const _default: {
|
|
|
82
85
|
'fabric.linking.status_change_update_error': string;
|
|
83
86
|
'fabric.linking.try_again': string;
|
|
84
87
|
'fabric.linking.try_another_account': string;
|
|
88
|
+
'fabric.linking.unauthorised_account_description': string;
|
|
89
|
+
'fabric.linking.unauthorised_account_description_no_provider': string;
|
|
90
|
+
'fabric.linking.unauthorised_account_name': string;
|
|
91
|
+
'fabric.linking.unauthorised_account_name_no_provider': string;
|
|
85
92
|
'fabric.linking.unlink_account': string;
|
|
86
93
|
'fabric.linking.updated_by': string;
|
|
87
94
|
'fabric.linking.view': string;
|
|
@@ -189,6 +189,12 @@ export type FlexibleUiDataContext = {
|
|
|
189
189
|
* @see SubscriberCount
|
|
190
190
|
*/
|
|
191
191
|
state?: LinkLozenge;
|
|
192
|
+
/**
|
|
193
|
+
* Contains the no of story points for a task.
|
|
194
|
+
* @type string
|
|
195
|
+
* @see StoryPoints
|
|
196
|
+
*/
|
|
197
|
+
storyPoints?: number;
|
|
192
198
|
/**
|
|
193
199
|
* Contains the target branch name of the link typed pull request.
|
|
194
200
|
* @type string
|
|
@@ -168,7 +168,7 @@ export type OnActionMenuOpenChangeOptions = {
|
|
|
168
168
|
/**
|
|
169
169
|
* A type that contains all the possible combinations of elements with their corresponding props.
|
|
170
170
|
*/
|
|
171
|
-
export type ElementItemProps = AssignedTo | AssignedToGroup | AttachmentCount | AuthorGroup | ChecklistProgress | CollaboratorGroup | CommentCount | CreatedBy | CreatedOn | DueOn | LatestCommit | LinkIcon | Location | ModifiedBy | ModifiedOn | OwnedBy | OwnedByGroup | Preview | Priority | ProgrammingLanguage | Provider | ReactCount | ReadTime | Snippet | SourceBranch | State | SubscriberCount | SubTasksProgress | TargetBranch | Title | ViewCount | VoteCount;
|
|
171
|
+
export type ElementItemProps = AssignedTo | AssignedToGroup | AttachmentCount | AuthorGroup | ChecklistProgress | CollaboratorGroup | CommentCount | CreatedBy | CreatedOn | DueOn | LatestCommit | LinkIcon | Location | ModifiedBy | ModifiedOn | OwnedBy | OwnedByGroup | Preview | Priority | ProgrammingLanguage | Provider | ReactCount | ReadTime | Snippet | SourceBranch | State | SubscriberCount | SubTasksProgress | StoryPoints | TargetBranch | Title | ViewCount | VoteCount;
|
|
172
172
|
/**
|
|
173
173
|
* Represents the props available for an AttachmentCount element.
|
|
174
174
|
* @see AttachmentCount
|
|
@@ -365,11 +365,17 @@ export type SubscriberCount = {
|
|
|
365
365
|
name: ElementName.SubscriberCount;
|
|
366
366
|
};
|
|
367
367
|
/**
|
|
368
|
-
* Represents the props available for a
|
|
368
|
+
* Represents the props available for a SubtasksProgress element.
|
|
369
369
|
*/
|
|
370
370
|
export type SubTasksProgress = {
|
|
371
371
|
name: ElementName.SubTasksProgress;
|
|
372
372
|
};
|
|
373
|
+
/**
|
|
374
|
+
* Represents the props available for a StoryPoints element.
|
|
375
|
+
*/
|
|
376
|
+
export type StoryPoints = {
|
|
377
|
+
name: ElementName.StoryPoints;
|
|
378
|
+
};
|
|
373
379
|
/**
|
|
374
380
|
* Represents the props available for an TargetBranch element.
|
|
375
381
|
* @see TargetBranch
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AtlaskitBadgeProps } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* A base element that displays a visual indicator for a numeric value
|
|
6
|
+
* @internal
|
|
7
|
+
* @see StoryPoints
|
|
8
|
+
* */
|
|
9
|
+
declare const AtlaskitBadge: React.FC<AtlaskitBadgeProps>;
|
|
10
|
+
export default AtlaskitBadge;
|
|
@@ -7,6 +7,7 @@ import { AvatarGroupProps } from './avatar-group/types';
|
|
|
7
7
|
import { TextProps } from './text/types';
|
|
8
8
|
import { DateTimeProps } from './date-time/types';
|
|
9
9
|
import { MediaProps } from './media/types';
|
|
10
|
+
import { AtlaskitBadgeProps } from './atlaskit-badge/types';
|
|
10
11
|
/**
|
|
11
12
|
* Creates a AssignedTo text element using the data from AssignedTo in the Flexible UI Context.
|
|
12
13
|
* @see Text
|
|
@@ -146,6 +147,11 @@ export declare const SubscriberCount: import("react").FC<BadgeProps>;
|
|
|
146
147
|
* @see Badge
|
|
147
148
|
*/
|
|
148
149
|
export declare const SubTasksProgress: import("react").FC<BadgeProps>;
|
|
150
|
+
/**
|
|
151
|
+
* Create a StoryPoints Badge element using the data from storyPoints in the Flexible UI Context.
|
|
152
|
+
* @see AtlaskitBadge
|
|
153
|
+
*/
|
|
154
|
+
export declare const StoryPoints: import("react").FC<AtlaskitBadgeProps>;
|
|
149
155
|
/**
|
|
150
156
|
* Creates a TargetBranch Text element using the data from targetBranch in the Flexible UI Context.
|
|
151
157
|
* @see Text
|