@atlaskit/smart-card 26.14.6 → 26.15.1
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 +12 -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/BlockCard/views/flexible/utils.js +2 -0
- 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/cjs/view/HoverCard/utils.js +1 -1
- 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/BlockCard/views/flexible/utils.js +2 -0
- 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/es2019/view/HoverCard/utils.js +1 -1
- 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/BlockCard/views/flexible/utils.js +2 -0
- 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/esm/view/HoverCard/utils.js +1 -1
- 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 +3 -2
- package/report.api.md +8 -0
- package/tmp/api-report-tmp.d.ts +8 -1
|
@@ -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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.15.1",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
27
27
|
"@atlaskit/avatar": "^21.3.0",
|
|
28
28
|
"@atlaskit/avatar-group": "^9.3.0",
|
|
29
|
+
"@atlaskit/badge": "^15.1.0",
|
|
29
30
|
"@atlaskit/button": "^16.8.0",
|
|
30
31
|
"@atlaskit/dropdown-menu": "^11.11.0",
|
|
31
32
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
"@atlaskit/icon-priority": "^6.3.0",
|
|
36
37
|
"@atlaskit/in-product-testing": "^0.2.0",
|
|
37
38
|
"@atlaskit/link-analytics": "^8.2.0",
|
|
38
|
-
"@atlaskit/link-client-extension": "^1.
|
|
39
|
+
"@atlaskit/link-client-extension": "^1.6.0",
|
|
39
40
|
"@atlaskit/link-extractors": "^1.1.0",
|
|
40
41
|
"@atlaskit/linking-common": "^4.3.0",
|
|
41
42
|
"@atlaskit/linking-types": "^8.2.0",
|
package/report.api.md
CHANGED
|
@@ -482,6 +482,7 @@ type ElementItemProps =
|
|
|
482
482
|
| Snippet
|
|
483
483
|
| SourceBranch
|
|
484
484
|
| State_2
|
|
485
|
+
| StoryPoints
|
|
485
486
|
| SubTasksProgress
|
|
486
487
|
| SubscriberCount
|
|
487
488
|
| TargetBranch
|
|
@@ -544,6 +545,8 @@ export enum ElementName {
|
|
|
544
545
|
// (undocumented)
|
|
545
546
|
State = 'State',
|
|
546
547
|
// (undocumented)
|
|
548
|
+
StoryPoints = 'StoryPoints',
|
|
549
|
+
// (undocumented)
|
|
547
550
|
SubscriberCount = 'SubscriberCount',
|
|
548
551
|
// (undocumented)
|
|
549
552
|
SubTasksProgress = 'SubTasksProgress',
|
|
@@ -900,6 +903,11 @@ type State_2 = {
|
|
|
900
903
|
name: ElementName.State;
|
|
901
904
|
};
|
|
902
905
|
|
|
906
|
+
// @public
|
|
907
|
+
type StoryPoints = {
|
|
908
|
+
name: ElementName.StoryPoints;
|
|
909
|
+
};
|
|
910
|
+
|
|
903
911
|
// @public
|
|
904
912
|
type SubscriberCount = {
|
|
905
913
|
name: ElementName.SubscriberCount;
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -354,7 +354,7 @@ export type ElementItem = {
|
|
|
354
354
|
} & ElementItemProps;
|
|
355
355
|
|
|
356
356
|
// @public
|
|
357
|
-
type ElementItemProps = AssignedTo | AssignedToGroup | AttachmentCount | AuthorGroup | ChecklistProgress | CollaboratorGroup | CommentCount | CreatedBy | CreatedOn | DueOn | LatestCommit | LinkIcon | Location_2 | ModifiedBy | ModifiedOn | OwnedBy | OwnedByGroup | Preview | Priority | ProgrammingLanguage | Provider_2 | ReactCount | ReadTime | Snippet | SourceBranch | State_2 | SubTasksProgress | SubscriberCount | TargetBranch | Title | ViewCount | VoteCount;
|
|
357
|
+
type ElementItemProps = AssignedTo | AssignedToGroup | AttachmentCount | AuthorGroup | ChecklistProgress | CollaboratorGroup | CommentCount | CreatedBy | CreatedOn | DueOn | LatestCommit | LinkIcon | Location_2 | ModifiedBy | ModifiedOn | OwnedBy | OwnedByGroup | Preview | Priority | ProgrammingLanguage | Provider_2 | ReactCount | ReadTime | Snippet | SourceBranch | State_2 | StoryPoints | SubTasksProgress | SubscriberCount | TargetBranch | Title | ViewCount | VoteCount;
|
|
358
358
|
|
|
359
359
|
// @public
|
|
360
360
|
export enum ElementName {
|
|
@@ -411,6 +411,8 @@ export enum ElementName {
|
|
|
411
411
|
// (undocumented)
|
|
412
412
|
State = "State",
|
|
413
413
|
// (undocumented)
|
|
414
|
+
StoryPoints = "StoryPoints",
|
|
415
|
+
// (undocumented)
|
|
414
416
|
SubscriberCount = "SubscriberCount",
|
|
415
417
|
// (undocumented)
|
|
416
418
|
SubTasksProgress = "SubTasksProgress",
|
|
@@ -751,6 +753,11 @@ type State_2 = {
|
|
|
751
753
|
name: ElementName.State;
|
|
752
754
|
};
|
|
753
755
|
|
|
756
|
+
// @public
|
|
757
|
+
type StoryPoints = {
|
|
758
|
+
name: ElementName.StoryPoints;
|
|
759
|
+
};
|
|
760
|
+
|
|
754
761
|
// @public
|
|
755
762
|
type SubscriberCount = {
|
|
756
763
|
name: ElementName.SubscriberCount;
|