@atlaskit/smart-card 19.1.26 → 19.1.27
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 +10 -0
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +2 -1
- package/dist/cjs/view/FlexibleCard/components/elements/index.js +30 -30
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/elements/index.js +23 -23
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +2 -1
- package/dist/esm/view/FlexibleCard/components/elements/index.js +23 -23
- package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +156 -6
- package/dist/types/view/FlexibleCard/components/elements/index.d.ts +20 -20
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 19.1.27
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`98d3f88e428`](https://bitbucket.org/atlassian/atlassian-frontend/commits/98d3f88e428) - This PR adds external element typings for Flexible UI metadata.
|
|
8
|
+
This means code completion will now be available when an element has a prop that can be overridden.
|
|
9
|
+
As of this PR, these are the `CreatedOn` and `ModifiedOn` elements, which now accept some `text` which will override the existing text.
|
|
10
|
+
|
|
11
|
+
This PR also exposes the overrideCss prop, allowing integrators to supply any CSS for their elements.
|
|
12
|
+
|
|
3
13
|
## 19.1.26
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/cjs/version.json
CHANGED
|
@@ -128,11 +128,12 @@ var renderElementItems = function renderElementItems() {
|
|
|
128
128
|
var name = curr.name,
|
|
129
129
|
props = (0, _objectWithoutProperties2.default)(curr, _excluded);
|
|
130
130
|
var Element = Elements[name];
|
|
131
|
+
var typedProps = props;
|
|
131
132
|
|
|
132
133
|
if (Element && isElementDisplayValid(name, display)) {
|
|
133
134
|
var element = /*#__PURE__*/_react.default.createElement(Element, (0, _extends2.default)({
|
|
134
135
|
key: idx
|
|
135
|
-
},
|
|
136
|
+
}, typedProps));
|
|
136
137
|
|
|
137
138
|
if (!isElementNull(element)) {
|
|
138
139
|
return [].concat((0, _toConsumableArray2.default)(acc), [element]);
|
|
@@ -33,45 +33,24 @@ var CollaboratorGroup = (0, _utils.createElement)(_constants.ElementName.Collabo
|
|
|
33
33
|
exports.CollaboratorGroup = CollaboratorGroup;
|
|
34
34
|
var CommentCount = (0, _utils.createElement)(_constants.ElementName.CommentCount);
|
|
35
35
|
/**
|
|
36
|
-
* Creates a
|
|
37
|
-
* @see
|
|
36
|
+
* Creates a CreatedOn DateTime element using the data from CreatedOn in the Flexible UI Context.
|
|
37
|
+
* @see DateTime
|
|
38
38
|
*/
|
|
39
39
|
|
|
40
40
|
exports.CommentCount = CommentCount;
|
|
41
|
-
var
|
|
42
|
-
/**
|
|
43
|
-
* Creates a ReactCount Badge element using the data from ReactCount in the Flexible UI Context.
|
|
44
|
-
* @see Badge
|
|
45
|
-
*/
|
|
46
|
-
|
|
47
|
-
exports.ViewCount = ViewCount;
|
|
48
|
-
var ReactCount = (0, _utils.createElement)(_constants.ElementName.ReactCount);
|
|
49
|
-
/**
|
|
50
|
-
* Creates a VoteCount Badge element using the data from VoteCount in the Flexible UI Context.
|
|
51
|
-
* @see Badge
|
|
52
|
-
*/
|
|
53
|
-
|
|
54
|
-
exports.ReactCount = ReactCount;
|
|
55
|
-
var VoteCount = (0, _utils.createElement)(_constants.ElementName.VoteCount);
|
|
41
|
+
var CreatedOn = (0, _utils.createElement)(_constants.ElementName.CreatedOn);
|
|
56
42
|
/**
|
|
57
43
|
* Creates a CreatedBy text element using the data from CreatedBy in the Flexible UI Context.
|
|
58
44
|
* @see Text
|
|
59
45
|
*/
|
|
60
46
|
|
|
61
|
-
exports.
|
|
47
|
+
exports.CreatedOn = CreatedOn;
|
|
62
48
|
var CreatedBy = (0, _utils.createElement)(_constants.ElementName.CreatedBy);
|
|
63
|
-
/**
|
|
64
|
-
* Creates a CreatedOn DateTime element using the data from CreatedOn in the Flexible UI Context.
|
|
65
|
-
* @see DateTime
|
|
66
|
-
*/
|
|
67
|
-
|
|
68
|
-
exports.CreatedBy = CreatedBy;
|
|
69
|
-
var CreatedOn = (0, _utils.createElement)(_constants.ElementName.CreatedOn);
|
|
70
49
|
/**
|
|
71
50
|
* Creates an element that contains Last Commit hash
|
|
72
51
|
*/
|
|
73
52
|
|
|
74
|
-
exports.
|
|
53
|
+
exports.CreatedBy = CreatedBy;
|
|
75
54
|
var LatestCommit = (0, _utils.createElement)(_constants.ElementName.LatestCommit);
|
|
76
55
|
/**
|
|
77
56
|
* Creates a LinkIcon Icon element using the data from LinkIcon in the Flexible UI Context.
|
|
@@ -115,12 +94,26 @@ var Priority = (0, _utils.createElement)(_constants.ElementName.Priority);
|
|
|
115
94
|
|
|
116
95
|
exports.Priority = Priority;
|
|
117
96
|
var ProgrammingLanguage = (0, _utils.createElement)(_constants.ElementName.ProgrammingLanguage);
|
|
97
|
+
/**
|
|
98
|
+
* Creates a Provider Badge element using the data from Provider in the Flexible UI Context.
|
|
99
|
+
* @see Badge
|
|
100
|
+
*/
|
|
101
|
+
|
|
102
|
+
exports.ProgrammingLanguage = ProgrammingLanguage;
|
|
103
|
+
var Provider = (0, _utils.createElement)(_constants.ElementName.Provider);
|
|
104
|
+
/**
|
|
105
|
+
* Creates a ReactCount Badge element using the data from ReactCount in the Flexible UI Context.
|
|
106
|
+
* @see Badge
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
exports.Provider = Provider;
|
|
110
|
+
var ReactCount = (0, _utils.createElement)(_constants.ElementName.ReactCount);
|
|
118
111
|
/**
|
|
119
112
|
* Creates a Snippet element using the data from Snippet in the Flexible UI Context.
|
|
120
113
|
* @see Text
|
|
121
114
|
*/
|
|
122
115
|
|
|
123
|
-
exports.
|
|
116
|
+
exports.ReactCount = ReactCount;
|
|
124
117
|
var Snippet = (0, _utils.createElement)(_constants.ElementName.Snippet);
|
|
125
118
|
/**
|
|
126
119
|
* Creates a State Lozenge element using the data from State in the Flexible UI Context.
|
|
@@ -145,10 +138,17 @@ var SubscriberCount = (0, _utils.createElement)(_constants.ElementName.Subscribe
|
|
|
145
138
|
exports.SubscriberCount = SubscriberCount;
|
|
146
139
|
var Title = (0, _utils.createElement)(_constants.ElementName.Title);
|
|
147
140
|
/**
|
|
148
|
-
* Creates a
|
|
141
|
+
* Creates a ViewCount Badge element using the data from ViewCount in the Flexible UI Context.
|
|
149
142
|
* @see Badge
|
|
150
143
|
*/
|
|
151
144
|
|
|
152
145
|
exports.Title = Title;
|
|
153
|
-
var
|
|
154
|
-
|
|
146
|
+
var ViewCount = (0, _utils.createElement)(_constants.ElementName.ViewCount);
|
|
147
|
+
/**
|
|
148
|
+
* Creates a VoteCount Badge element using the data from VoteCount in the Flexible UI Context.
|
|
149
|
+
* @see Badge
|
|
150
|
+
*/
|
|
151
|
+
|
|
152
|
+
exports.ViewCount = ViewCount;
|
|
153
|
+
var VoteCount = (0, _utils.createElement)(_constants.ElementName.VoteCount);
|
|
154
|
+
exports.VoteCount = VoteCount;
|
package/dist/es2019/version.json
CHANGED
|
@@ -116,11 +116,12 @@ export const renderElementItems = (items = [], display = 'inline') => {
|
|
|
116
116
|
...props
|
|
117
117
|
} = curr;
|
|
118
118
|
const Element = Elements[name];
|
|
119
|
+
const typedProps = props;
|
|
119
120
|
|
|
120
121
|
if (Element && isElementDisplayValid(name, display)) {
|
|
121
122
|
const element = /*#__PURE__*/React.createElement(Element, _extends({
|
|
122
123
|
key: idx
|
|
123
|
-
},
|
|
124
|
+
}, typedProps));
|
|
124
125
|
|
|
125
126
|
if (!isElementNull(element)) {
|
|
126
127
|
return [...acc, element];
|
|
@@ -22,35 +22,17 @@ export const CollaboratorGroup = createElement(ElementName.CollaboratorGroup);
|
|
|
22
22
|
|
|
23
23
|
export const CommentCount = createElement(ElementName.CommentCount);
|
|
24
24
|
/**
|
|
25
|
-
* Creates a
|
|
26
|
-
* @see
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
export const ViewCount = createElement(ElementName.ViewCount);
|
|
30
|
-
/**
|
|
31
|
-
* Creates a ReactCount Badge element using the data from ReactCount in the Flexible UI Context.
|
|
32
|
-
* @see Badge
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
export const ReactCount = createElement(ElementName.ReactCount);
|
|
36
|
-
/**
|
|
37
|
-
* Creates a VoteCount Badge element using the data from VoteCount in the Flexible UI Context.
|
|
38
|
-
* @see Badge
|
|
25
|
+
* Creates a CreatedOn DateTime element using the data from CreatedOn in the Flexible UI Context.
|
|
26
|
+
* @see DateTime
|
|
39
27
|
*/
|
|
40
28
|
|
|
41
|
-
export const
|
|
29
|
+
export const CreatedOn = createElement(ElementName.CreatedOn);
|
|
42
30
|
/**
|
|
43
31
|
* Creates a CreatedBy text element using the data from CreatedBy in the Flexible UI Context.
|
|
44
32
|
* @see Text
|
|
45
33
|
*/
|
|
46
34
|
|
|
47
35
|
export const CreatedBy = createElement(ElementName.CreatedBy);
|
|
48
|
-
/**
|
|
49
|
-
* Creates a CreatedOn DateTime element using the data from CreatedOn in the Flexible UI Context.
|
|
50
|
-
* @see DateTime
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
export const CreatedOn = createElement(ElementName.CreatedOn);
|
|
54
36
|
/**
|
|
55
37
|
* Creates an element that contains Last Commit hash
|
|
56
38
|
*/
|
|
@@ -92,6 +74,18 @@ export const Priority = createElement(ElementName.Priority);
|
|
|
92
74
|
*/
|
|
93
75
|
|
|
94
76
|
export const ProgrammingLanguage = createElement(ElementName.ProgrammingLanguage);
|
|
77
|
+
/**
|
|
78
|
+
* Creates a Provider Badge element using the data from Provider in the Flexible UI Context.
|
|
79
|
+
* @see Badge
|
|
80
|
+
*/
|
|
81
|
+
|
|
82
|
+
export const Provider = createElement(ElementName.Provider);
|
|
83
|
+
/**
|
|
84
|
+
* Creates a ReactCount Badge element using the data from ReactCount in the Flexible UI Context.
|
|
85
|
+
* @see Badge
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
export const ReactCount = createElement(ElementName.ReactCount);
|
|
95
89
|
/**
|
|
96
90
|
* Creates a Snippet element using the data from Snippet in the Flexible UI Context.
|
|
97
91
|
* @see Text
|
|
@@ -118,8 +112,14 @@ export const SubscriberCount = createElement(ElementName.SubscriberCount);
|
|
|
118
112
|
|
|
119
113
|
export const Title = createElement(ElementName.Title);
|
|
120
114
|
/**
|
|
121
|
-
* Creates a
|
|
115
|
+
* Creates a ViewCount Badge element using the data from ViewCount in the Flexible UI Context.
|
|
116
|
+
* @see Badge
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
export const ViewCount = createElement(ElementName.ViewCount);
|
|
120
|
+
/**
|
|
121
|
+
* Creates a VoteCount Badge element using the data from VoteCount in the Flexible UI Context.
|
|
122
122
|
* @see Badge
|
|
123
123
|
*/
|
|
124
124
|
|
|
125
|
-
export const
|
|
125
|
+
export const VoteCount = createElement(ElementName.VoteCount);
|
package/dist/esm/version.json
CHANGED
|
@@ -92,11 +92,12 @@ export var renderElementItems = function renderElementItems() {
|
|
|
92
92
|
props = _objectWithoutProperties(curr, _excluded);
|
|
93
93
|
|
|
94
94
|
var Element = Elements[name];
|
|
95
|
+
var typedProps = props;
|
|
95
96
|
|
|
96
97
|
if (Element && isElementDisplayValid(name, display)) {
|
|
97
98
|
var element = /*#__PURE__*/React.createElement(Element, _extends({
|
|
98
99
|
key: idx
|
|
99
|
-
},
|
|
100
|
+
}, typedProps));
|
|
100
101
|
|
|
101
102
|
if (!isElementNull(element)) {
|
|
102
103
|
return [].concat(_toConsumableArray(acc), [element]);
|
|
@@ -22,35 +22,17 @@ export var CollaboratorGroup = createElement(ElementName.CollaboratorGroup);
|
|
|
22
22
|
|
|
23
23
|
export var CommentCount = createElement(ElementName.CommentCount);
|
|
24
24
|
/**
|
|
25
|
-
* Creates a
|
|
26
|
-
* @see
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
export var ViewCount = createElement(ElementName.ViewCount);
|
|
30
|
-
/**
|
|
31
|
-
* Creates a ReactCount Badge element using the data from ReactCount in the Flexible UI Context.
|
|
32
|
-
* @see Badge
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
export var ReactCount = createElement(ElementName.ReactCount);
|
|
36
|
-
/**
|
|
37
|
-
* Creates a VoteCount Badge element using the data from VoteCount in the Flexible UI Context.
|
|
38
|
-
* @see Badge
|
|
25
|
+
* Creates a CreatedOn DateTime element using the data from CreatedOn in the Flexible UI Context.
|
|
26
|
+
* @see DateTime
|
|
39
27
|
*/
|
|
40
28
|
|
|
41
|
-
export var
|
|
29
|
+
export var CreatedOn = createElement(ElementName.CreatedOn);
|
|
42
30
|
/**
|
|
43
31
|
* Creates a CreatedBy text element using the data from CreatedBy in the Flexible UI Context.
|
|
44
32
|
* @see Text
|
|
45
33
|
*/
|
|
46
34
|
|
|
47
35
|
export var CreatedBy = createElement(ElementName.CreatedBy);
|
|
48
|
-
/**
|
|
49
|
-
* Creates a CreatedOn DateTime element using the data from CreatedOn in the Flexible UI Context.
|
|
50
|
-
* @see DateTime
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
export var CreatedOn = createElement(ElementName.CreatedOn);
|
|
54
36
|
/**
|
|
55
37
|
* Creates an element that contains Last Commit hash
|
|
56
38
|
*/
|
|
@@ -92,6 +74,18 @@ export var Priority = createElement(ElementName.Priority);
|
|
|
92
74
|
*/
|
|
93
75
|
|
|
94
76
|
export var ProgrammingLanguage = createElement(ElementName.ProgrammingLanguage);
|
|
77
|
+
/**
|
|
78
|
+
* Creates a Provider Badge element using the data from Provider in the Flexible UI Context.
|
|
79
|
+
* @see Badge
|
|
80
|
+
*/
|
|
81
|
+
|
|
82
|
+
export var Provider = createElement(ElementName.Provider);
|
|
83
|
+
/**
|
|
84
|
+
* Creates a ReactCount Badge element using the data from ReactCount in the Flexible UI Context.
|
|
85
|
+
* @see Badge
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
export var ReactCount = createElement(ElementName.ReactCount);
|
|
95
89
|
/**
|
|
96
90
|
* Creates a Snippet element using the data from Snippet in the Flexible UI Context.
|
|
97
91
|
* @see Text
|
|
@@ -118,8 +112,14 @@ export var SubscriberCount = createElement(ElementName.SubscriberCount);
|
|
|
118
112
|
|
|
119
113
|
export var Title = createElement(ElementName.Title);
|
|
120
114
|
/**
|
|
121
|
-
* Creates a
|
|
115
|
+
* Creates a ViewCount Badge element using the data from ViewCount in the Flexible UI Context.
|
|
116
|
+
* @see Badge
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
export var ViewCount = createElement(ElementName.ViewCount);
|
|
120
|
+
/**
|
|
121
|
+
* Creates a VoteCount Badge element using the data from VoteCount in the Flexible UI Context.
|
|
122
122
|
* @see Badge
|
|
123
123
|
*/
|
|
124
124
|
|
|
125
|
-
export var
|
|
125
|
+
export var VoteCount = createElement(ElementName.VoteCount);
|
|
@@ -35,13 +35,11 @@ export declare type BlockProps = {
|
|
|
35
35
|
*/
|
|
36
36
|
export declare type ElementItem = {
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
* element to render.
|
|
38
|
+
* Any additional CSS properties to apply to the element.
|
|
40
39
|
*/
|
|
41
|
-
|
|
40
|
+
overrideCss?: SerializedStyles;
|
|
42
41
|
/**
|
|
43
|
-
* The size of the element to
|
|
44
|
-
* The elements that support sizing are AuthorGroup and CollaboratorGroup.
|
|
42
|
+
* The size of the element to display.
|
|
45
43
|
*/
|
|
46
44
|
size?: SmartLinkSize;
|
|
47
45
|
/**
|
|
@@ -50,7 +48,7 @@ export declare type ElementItem = {
|
|
|
50
48
|
* serving as a hook for automated tests
|
|
51
49
|
*/
|
|
52
50
|
testId?: string;
|
|
53
|
-
};
|
|
51
|
+
} & ElementItemProps;
|
|
54
52
|
/**
|
|
55
53
|
* Used to represent an Action when passing props into Flexible UI.
|
|
56
54
|
*/
|
|
@@ -102,3 +100,155 @@ export declare type CustomActionItem = BaseActionItem & {
|
|
|
102
100
|
name: ActionName.CustomAction;
|
|
103
101
|
} & ((Required<Pick<ActionProps, 'icon' | 'iconPosition'>> & Pick<ActionProps, 'content'>) | ((Required<Pick<ActionProps, 'content'>> & Pick<ActionProps, 'icon' | 'iconPosition'>) & Pick<ActionProps, 'tooltipMessage'>));
|
|
104
102
|
export declare type ActionItem = NamedActionItem | CustomActionItem;
|
|
103
|
+
/**
|
|
104
|
+
* A type that contains all the possible combinations of elements with their corresponding props.
|
|
105
|
+
*/
|
|
106
|
+
export declare type ElementItemProps = AuthorGroup | CollaboratorGroup | CommentCount | CreatedBy | CreatedOn | LatestCommit | LinkIcon | ModifiedBy | ModifiedOn | Preview | Priority | ProgrammingLanguage | Provider | ReactCount | Snippet | State | SubscriberCount | Title | ViewCount | VoteCount;
|
|
107
|
+
/**
|
|
108
|
+
* Represents the props available for an AuthorGroup element.
|
|
109
|
+
* @see AuthorGroup
|
|
110
|
+
*/
|
|
111
|
+
export declare type AuthorGroup = {
|
|
112
|
+
name: ElementName.AuthorGroup;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Represents the props available for an CollaboratorGroup element.
|
|
116
|
+
* @see CollaboratorGroup
|
|
117
|
+
*/
|
|
118
|
+
export declare type CollaboratorGroup = {
|
|
119
|
+
name: ElementName.CollaboratorGroup;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Represents the props available for an CommentCount element.
|
|
123
|
+
* @see CommentCount
|
|
124
|
+
*/
|
|
125
|
+
export declare type CommentCount = {
|
|
126
|
+
name: ElementName.CommentCount;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Represents the props available for an CreatedBy element.
|
|
130
|
+
* @see CreatedBy
|
|
131
|
+
*/
|
|
132
|
+
export declare type CreatedBy = {
|
|
133
|
+
name: ElementName.CreatedBy;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Represents the props available for an CreatedOn element.
|
|
137
|
+
* @see CreatedOn
|
|
138
|
+
*/
|
|
139
|
+
export declare type CreatedOn = {
|
|
140
|
+
name: ElementName.CreatedOn;
|
|
141
|
+
/**
|
|
142
|
+
* A string which will be displayed before the specified element.
|
|
143
|
+
*/
|
|
144
|
+
text?: string;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Represents the props available for an LastCommit element.
|
|
148
|
+
* @see BadgeProps
|
|
149
|
+
*/
|
|
150
|
+
export declare type LatestCommit = {
|
|
151
|
+
name: ElementName.LatestCommit;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Represents the props available for an LinkIcon element.
|
|
155
|
+
* @see LinkIcon
|
|
156
|
+
*/
|
|
157
|
+
export declare type LinkIcon = {
|
|
158
|
+
name: ElementName.LinkIcon;
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* Represents the props available for an ModifiedBy element.
|
|
162
|
+
* @see ModifiedBy
|
|
163
|
+
*/
|
|
164
|
+
export declare type ModifiedBy = {
|
|
165
|
+
name: ElementName.ModifiedBy;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Represents the props available for an ModifiedOn element.
|
|
169
|
+
* @see ModifiedOn
|
|
170
|
+
*/
|
|
171
|
+
export declare type ModifiedOn = {
|
|
172
|
+
name: ElementName.ModifiedOn;
|
|
173
|
+
/**
|
|
174
|
+
* A string which will be displayed before the specified element.
|
|
175
|
+
*/
|
|
176
|
+
text?: string;
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* Represents the props available for an Preview element.
|
|
180
|
+
* @see Preview
|
|
181
|
+
*/
|
|
182
|
+
export declare type Preview = {
|
|
183
|
+
name: ElementName.Preview;
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* Represents the props available for an Priority element.
|
|
187
|
+
* @see Priority
|
|
188
|
+
*/
|
|
189
|
+
export declare type Priority = {
|
|
190
|
+
name: ElementName.Priority;
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* Represents the props available for an ProgrammingLanguage element.
|
|
194
|
+
* @see ProgrammingLanguage
|
|
195
|
+
*/
|
|
196
|
+
export declare type ProgrammingLanguage = {
|
|
197
|
+
name: ElementName.ProgrammingLanguage;
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Represents the props available for an Provider element.
|
|
201
|
+
* @see Provider
|
|
202
|
+
*/
|
|
203
|
+
export declare type Provider = {
|
|
204
|
+
name: ElementName.Provider;
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
* Represents the props available for an ReactCount element.
|
|
208
|
+
* @see ReactCount
|
|
209
|
+
*/
|
|
210
|
+
export declare type ReactCount = {
|
|
211
|
+
name: ElementName.ReactCount;
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* Represents the props available for an Snippet element.
|
|
215
|
+
* @see Snippet
|
|
216
|
+
*/
|
|
217
|
+
export declare type Snippet = {
|
|
218
|
+
name: ElementName.Snippet;
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* Represents the props available for an State element.
|
|
222
|
+
* @see State
|
|
223
|
+
*/
|
|
224
|
+
export declare type State = {
|
|
225
|
+
name: ElementName.State;
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* Represents the props available for an SubscriberCount element.
|
|
229
|
+
* @see SubscriberCount
|
|
230
|
+
*/
|
|
231
|
+
export declare type SubscriberCount = {
|
|
232
|
+
name: ElementName.SubscriberCount;
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* Represents the props available for an Title element.
|
|
236
|
+
* @see Title
|
|
237
|
+
*/
|
|
238
|
+
export declare type Title = {
|
|
239
|
+
name: ElementName.Title;
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* Represents the props available for an ViewCount element.
|
|
243
|
+
* @see ViewCount
|
|
244
|
+
*/
|
|
245
|
+
export declare type ViewCount = {
|
|
246
|
+
name: ElementName.ViewCount;
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* Represents the props available for an VoteCount element.
|
|
250
|
+
* @see VoteCount
|
|
251
|
+
*/
|
|
252
|
+
export declare type VoteCount = {
|
|
253
|
+
name: ElementName.VoteCount;
|
|
254
|
+
};
|
|
@@ -23,30 +23,15 @@ export declare const CollaboratorGroup: import("react").FC<AvatarGroupProps>;
|
|
|
23
23
|
*/
|
|
24
24
|
export declare const CommentCount: import("react").FC<BadgeProps>;
|
|
25
25
|
/**
|
|
26
|
-
* Creates a
|
|
27
|
-
* @see
|
|
28
|
-
*/
|
|
29
|
-
export declare const ViewCount: import("react").FC<BadgeProps>;
|
|
30
|
-
/**
|
|
31
|
-
* Creates a ReactCount Badge element using the data from ReactCount in the Flexible UI Context.
|
|
32
|
-
* @see Badge
|
|
33
|
-
*/
|
|
34
|
-
export declare const ReactCount: import("react").FC<BadgeProps>;
|
|
35
|
-
/**
|
|
36
|
-
* Creates a VoteCount Badge element using the data from VoteCount in the Flexible UI Context.
|
|
37
|
-
* @see Badge
|
|
26
|
+
* Creates a CreatedOn DateTime element using the data from CreatedOn in the Flexible UI Context.
|
|
27
|
+
* @see DateTime
|
|
38
28
|
*/
|
|
39
|
-
export declare const
|
|
29
|
+
export declare const CreatedOn: import("react").FC<DateTimeProps>;
|
|
40
30
|
/**
|
|
41
31
|
* Creates a CreatedBy text element using the data from CreatedBy in the Flexible UI Context.
|
|
42
32
|
* @see Text
|
|
43
33
|
*/
|
|
44
34
|
export declare const CreatedBy: import("react").FC<TextProps>;
|
|
45
|
-
/**
|
|
46
|
-
* Creates a CreatedOn DateTime element using the data from CreatedOn in the Flexible UI Context.
|
|
47
|
-
* @see DateTime
|
|
48
|
-
*/
|
|
49
|
-
export declare const CreatedOn: import("react").FC<DateTimeProps>;
|
|
50
35
|
/**
|
|
51
36
|
* Creates an element that contains Last Commit hash
|
|
52
37
|
*/
|
|
@@ -81,6 +66,16 @@ export declare const Priority: import("react").FC<BadgeProps>;
|
|
|
81
66
|
* @see Badge
|
|
82
67
|
*/
|
|
83
68
|
export declare const ProgrammingLanguage: import("react").FC<BadgeProps>;
|
|
69
|
+
/**
|
|
70
|
+
* Creates a Provider Badge element using the data from Provider in the Flexible UI Context.
|
|
71
|
+
* @see Badge
|
|
72
|
+
*/
|
|
73
|
+
export declare const Provider: import("react").FC<BadgeProps>;
|
|
74
|
+
/**
|
|
75
|
+
* Creates a ReactCount Badge element using the data from ReactCount in the Flexible UI Context.
|
|
76
|
+
* @see Badge
|
|
77
|
+
*/
|
|
78
|
+
export declare const ReactCount: import("react").FC<BadgeProps>;
|
|
84
79
|
/**
|
|
85
80
|
* Creates a Snippet element using the data from Snippet in the Flexible UI Context.
|
|
86
81
|
* @see Text
|
|
@@ -103,7 +98,12 @@ export declare const SubscriberCount: import("react").FC<BadgeProps>;
|
|
|
103
98
|
*/
|
|
104
99
|
export declare const Title: import("react").FC<LinkProps>;
|
|
105
100
|
/**
|
|
106
|
-
* Creates a
|
|
101
|
+
* Creates a ViewCount Badge element using the data from ViewCount in the Flexible UI Context.
|
|
107
102
|
* @see Badge
|
|
108
103
|
*/
|
|
109
|
-
export declare const
|
|
104
|
+
export declare const ViewCount: import("react").FC<BadgeProps>;
|
|
105
|
+
/**
|
|
106
|
+
* Creates a VoteCount Badge element using the data from VoteCount in the Flexible UI Context.
|
|
107
|
+
* @see Badge
|
|
108
|
+
*/
|
|
109
|
+
export declare const VoteCount: import("react").FC<BadgeProps>;
|