@atlaskit/smart-card 26.13.0 → 26.14.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 +12 -0
- package/dist/cjs/constants.js +5 -0
- package/dist/cjs/extractors/flexible/index.js +5 -0
- package/dist/cjs/extractors/flexible/utils.js +23 -2
- package/dist/cjs/extractors/hover/extractMetadata.js +2 -1
- package/dist/cjs/messages.js +31 -1
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleResolvedView.js +21 -37
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +15 -5
- package/dist/cjs/view/BlockCard/views/flexible/styled.js +15 -0
- package/dist/cjs/view/BlockCard/views/flexible/utils.js +116 -0
- package/dist/cjs/view/EmbedCard/views/UnauthorisedView.js +31 -18
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/index.js +33 -4
- package/dist/cjs/view/FlexibleCard/components/elements/utils.js +20 -0
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +28 -12
- package/dist/cjs/view/HoverCard/utils.js +102 -3
- package/dist/es2019/constants.js +6 -0
- package/dist/es2019/extractors/flexible/index.js +7 -2
- package/dist/es2019/extractors/flexible/utils.js +18 -1
- package/dist/es2019/extractors/hover/extractMetadata.js +1 -1
- package/dist/es2019/messages.js +31 -1
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleResolvedView.js +24 -38
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +13 -5
- package/dist/es2019/view/BlockCard/views/flexible/styled.js +14 -0
- package/dist/es2019/view/BlockCard/views/flexible/utils.js +108 -0
- package/dist/es2019/view/EmbedCard/views/UnauthorisedView.js +33 -20
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +5 -0
- package/dist/es2019/view/FlexibleCard/components/elements/index.js +24 -0
- package/dist/es2019/view/FlexibleCard/components/elements/utils.js +25 -0
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +30 -14
- package/dist/es2019/view/HoverCard/utils.js +100 -1
- package/dist/esm/constants.js +6 -0
- package/dist/esm/extractors/flexible/index.js +7 -2
- package/dist/esm/extractors/flexible/utils.js +18 -1
- package/dist/esm/extractors/hover/extractMetadata.js +1 -1
- package/dist/esm/messages.js +31 -1
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/BlockCard/views/flexible/FlexibleResolvedView.js +23 -38
- package/dist/esm/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +15 -5
- package/dist/esm/view/BlockCard/views/flexible/styled.js +7 -0
- package/dist/esm/view/BlockCard/views/flexible/utils.js +108 -0
- package/dist/esm/view/EmbedCard/views/UnauthorisedView.js +33 -20
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/index.js +24 -0
- package/dist/esm/view/FlexibleCard/components/elements/utils.js +20 -0
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +30 -14
- package/dist/esm/view/HoverCard/utils.js +98 -1
- package/dist/types/constants.d.ts +5 -0
- package/dist/types/extractors/flexible/utils.d.ts +5 -0
- package/dist/types/extractors/hover/extractMetadata.d.ts +2 -0
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/state/flexible-ui-context/types.d.ts +25 -0
- package/dist/types/view/BlockCard/views/flexible/styled.d.ts +2 -0
- package/dist/types/view/BlockCard/views/flexible/utils.d.ts +10 -0
- package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +35 -2
- package/dist/types/view/FlexibleCard/components/elements/index.d.ts +24 -0
- package/dist/types/view/HoverCard/utils.d.ts +1 -0
- package/dist/types-ts4.5/constants.d.ts +5 -0
- package/dist/types-ts4.5/extractors/flexible/utils.d.ts +5 -0
- package/dist/types-ts4.5/extractors/hover/extractMetadata.d.ts +2 -0
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +25 -0
- package/dist/types-ts4.5/view/BlockCard/views/flexible/styled.d.ts +2 -0
- package/dist/types-ts4.5/view/BlockCard/views/flexible/utils.d.ts +10 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +35 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/index.d.ts +24 -0
- package/dist/types-ts4.5/view/HoverCard/utils.d.ts +1 -0
- package/package.json +5 -2
- package/report.api.md +40 -0
- package/tmp/api-report-tmp.d.ts +36 -1
|
@@ -7,6 +7,16 @@ 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
|
+
/**
|
|
11
|
+
* Creates a AssignedTo text element using the data from AssignedTo in the Flexible UI Context.
|
|
12
|
+
* @see Text
|
|
13
|
+
*/
|
|
14
|
+
export declare const AssignedTo: import("react").FC<TextProps>;
|
|
15
|
+
/**
|
|
16
|
+
* An AvatarGroup element using the data from AssignedToGroup in the Flexible UI Context.
|
|
17
|
+
* @see AvatarGroup
|
|
18
|
+
*/
|
|
19
|
+
export declare const AssignedToGroup: import("react").FC<AvatarGroupProps>;
|
|
10
20
|
/**
|
|
11
21
|
* Creates a AttachmentCount Badge element using the data from AttachmentCount in the Flexible UI Context.
|
|
12
22
|
* @see Badge
|
|
@@ -77,6 +87,11 @@ export declare const ModifiedOn: import("react").FC<DateTimeProps>;
|
|
|
77
87
|
* @see Text
|
|
78
88
|
*/
|
|
79
89
|
export declare const OwnedBy: import("react").FC<TextProps>;
|
|
90
|
+
/**
|
|
91
|
+
* An AvatarGroup element using the data from OwnedByGroup in the Flexible UI Context.
|
|
92
|
+
* @see AvatarGroup
|
|
93
|
+
*/
|
|
94
|
+
export declare const OwnedByGroup: import("react").FC<AvatarGroupProps>;
|
|
80
95
|
/**
|
|
81
96
|
* Creates a Preview element using the data from Preview in the Flexible UI Context.
|
|
82
97
|
* @see Preview
|
|
@@ -102,6 +117,10 @@ export declare const Provider: import("react").FC<BadgeProps>;
|
|
|
102
117
|
* @see Badge
|
|
103
118
|
*/
|
|
104
119
|
export declare const ReactCount: import("react").FC<BadgeProps>;
|
|
120
|
+
/**
|
|
121
|
+
* Creates a ReadTime Text element using the data from readTime in the Flexible UI Context
|
|
122
|
+
*/
|
|
123
|
+
export declare const ReadTime: import("react").FC<TextProps>;
|
|
105
124
|
/**
|
|
106
125
|
* Creates a Snippet element using the data from Snippet in the Flexible UI Context.
|
|
107
126
|
* @see Text
|
|
@@ -122,6 +141,11 @@ export declare const State: import("react").FC<LozengeProps>;
|
|
|
122
141
|
* @see Badge
|
|
123
142
|
*/
|
|
124
143
|
export declare const SubscriberCount: import("react").FC<BadgeProps>;
|
|
144
|
+
/**
|
|
145
|
+
* Create a SubTasks Badge element using the data from subTasks in the Flexible UI Context.
|
|
146
|
+
* @see Badge
|
|
147
|
+
*/
|
|
148
|
+
export declare const SubTasksProgress: import("react").FC<BadgeProps>;
|
|
125
149
|
/**
|
|
126
150
|
* Creates a TargetBranch Text element using the data from targetBranch in the Flexible UI Context.
|
|
127
151
|
* @see Text
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { JsonLd } from 'json-ld-types';
|
|
2
2
|
export declare const getSimulatedMetadata: (extensionKey: string | undefined, data: JsonLd.Data.BaseData) => JsonLd.Primitives.Property<any>;
|
|
3
|
+
export declare const getSimulatedBetterMetadata: (extensionKey: string | undefined, data: JsonLd.Data.BaseData) => JsonLd.Primitives.Property<any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.14.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/link-analytics": "^8.2.0",
|
|
38
38
|
"@atlaskit/link-client-extension": "^1.5.0",
|
|
39
39
|
"@atlaskit/link-extractors": "^1.1.0",
|
|
40
|
-
"@atlaskit/linking-common": "^4.
|
|
40
|
+
"@atlaskit/linking-common": "^4.3.0",
|
|
41
41
|
"@atlaskit/linking-types": "^8.2.0",
|
|
42
42
|
"@atlaskit/logo": "^13.14.0",
|
|
43
43
|
"@atlaskit/lozenge": "^11.4.0",
|
|
@@ -142,6 +142,9 @@
|
|
|
142
142
|
},
|
|
143
143
|
"platform.linking-platform.smart-card.show-inline-card-refreshed-design": {
|
|
144
144
|
"type": "boolean"
|
|
145
|
+
},
|
|
146
|
+
"platform.linking-platform.smart-card.enable-better-metadata_iojwg": {
|
|
147
|
+
"type": "boolean"
|
|
145
148
|
}
|
|
146
149
|
},
|
|
147
150
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
package/report.api.md
CHANGED
|
@@ -148,6 +148,16 @@ type AnchorTarget = '_blank' | '_parent' | '_self' | '_top';
|
|
|
148
148
|
|
|
149
149
|
export { APIError };
|
|
150
150
|
|
|
151
|
+
// @public
|
|
152
|
+
type AssignedTo = {
|
|
153
|
+
name: ElementName.AssignedTo;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
// @public
|
|
157
|
+
type AssignedToGroup = {
|
|
158
|
+
name: ElementName.AssignedToGroup;
|
|
159
|
+
};
|
|
160
|
+
|
|
151
161
|
// @public
|
|
152
162
|
type AttachmentCount = {
|
|
153
163
|
name: ElementName.AttachmentCount;
|
|
@@ -446,6 +456,8 @@ export type ElementItem = {
|
|
|
446
456
|
|
|
447
457
|
// @public
|
|
448
458
|
type ElementItemProps =
|
|
459
|
+
| AssignedTo
|
|
460
|
+
| AssignedToGroup
|
|
449
461
|
| AttachmentCount
|
|
450
462
|
| AuthorGroup
|
|
451
463
|
| ChecklistProgress
|
|
@@ -460,14 +472,17 @@ type ElementItemProps =
|
|
|
460
472
|
| ModifiedBy
|
|
461
473
|
| ModifiedOn
|
|
462
474
|
| OwnedBy
|
|
475
|
+
| OwnedByGroup
|
|
463
476
|
| Preview
|
|
464
477
|
| Priority
|
|
465
478
|
| ProgrammingLanguage
|
|
466
479
|
| Provider_2
|
|
467
480
|
| ReactCount
|
|
481
|
+
| ReadTime
|
|
468
482
|
| Snippet
|
|
469
483
|
| SourceBranch
|
|
470
484
|
| State_2
|
|
485
|
+
| SubTasksProgress
|
|
471
486
|
| SubscriberCount
|
|
472
487
|
| TargetBranch
|
|
473
488
|
| Title
|
|
@@ -476,6 +491,10 @@ type ElementItemProps =
|
|
|
476
491
|
|
|
477
492
|
// @public
|
|
478
493
|
export enum ElementName {
|
|
494
|
+
// (undocumented)
|
|
495
|
+
AssignedTo = 'AssignedTo',
|
|
496
|
+
// (undocumented)
|
|
497
|
+
AssignedToGroup = 'AssignedToGroup',
|
|
479
498
|
// (undocumented)
|
|
480
499
|
AttachmentCount = 'AttachmentCount',
|
|
481
500
|
// (undocumented)
|
|
@@ -505,6 +524,8 @@ export enum ElementName {
|
|
|
505
524
|
// (undocumented)
|
|
506
525
|
OwnedBy = 'OwnedBy',
|
|
507
526
|
// (undocumented)
|
|
527
|
+
OwnedByGroup = 'OwnedByGroup',
|
|
528
|
+
// (undocumented)
|
|
508
529
|
Preview = 'Preview',
|
|
509
530
|
// (undocumented)
|
|
510
531
|
Priority = 'Priority',
|
|
@@ -515,6 +536,8 @@ export enum ElementName {
|
|
|
515
536
|
// (undocumented)
|
|
516
537
|
ReactCount = 'ReactCount',
|
|
517
538
|
// (undocumented)
|
|
539
|
+
ReadTime = 'ReadTime',
|
|
540
|
+
// (undocumented)
|
|
518
541
|
Snippet = 'Snippet',
|
|
519
542
|
// (undocumented)
|
|
520
543
|
SourceBranch = 'SourceBranch',
|
|
@@ -523,6 +546,8 @@ export enum ElementName {
|
|
|
523
546
|
// (undocumented)
|
|
524
547
|
SubscriberCount = 'SubscriberCount',
|
|
525
548
|
// (undocumented)
|
|
549
|
+
SubTasksProgress = 'SubTasksProgress',
|
|
550
|
+
// (undocumented)
|
|
526
551
|
TargetBranch = 'TargetBranch',
|
|
527
552
|
// (undocumented)
|
|
528
553
|
Title = 'Title',
|
|
@@ -704,6 +729,11 @@ type OwnedBy = {
|
|
|
704
729
|
name: ElementName.OwnedBy;
|
|
705
730
|
};
|
|
706
731
|
|
|
732
|
+
// @public
|
|
733
|
+
type OwnedByGroup = {
|
|
734
|
+
name: ElementName.OwnedByGroup;
|
|
735
|
+
};
|
|
736
|
+
|
|
707
737
|
// @public
|
|
708
738
|
type Preview = {
|
|
709
739
|
name: ElementName.Preview;
|
|
@@ -757,6 +787,11 @@ type ReactCount = {
|
|
|
757
787
|
name: ElementName.ReactCount;
|
|
758
788
|
};
|
|
759
789
|
|
|
790
|
+
// @public
|
|
791
|
+
type ReadTime = {
|
|
792
|
+
name: ElementName.ReadTime;
|
|
793
|
+
};
|
|
794
|
+
|
|
760
795
|
// @public (undocumented)
|
|
761
796
|
export type ResolveResponse = JsonLd.Response;
|
|
762
797
|
|
|
@@ -870,6 +905,11 @@ type SubscriberCount = {
|
|
|
870
905
|
name: ElementName.SubscriberCount;
|
|
871
906
|
};
|
|
872
907
|
|
|
908
|
+
// @public
|
|
909
|
+
type SubTasksProgress = {
|
|
910
|
+
name: ElementName.SubTasksProgress;
|
|
911
|
+
};
|
|
912
|
+
|
|
873
913
|
// @public
|
|
874
914
|
type TargetBranch = {
|
|
875
915
|
name: ElementName.TargetBranch;
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -101,6 +101,16 @@ type AnchorTarget = '_blank' | '_parent' | '_self' | '_top';
|
|
|
101
101
|
|
|
102
102
|
export { APIError }
|
|
103
103
|
|
|
104
|
+
// @public
|
|
105
|
+
type AssignedTo = {
|
|
106
|
+
name: ElementName.AssignedTo;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
// @public
|
|
110
|
+
type AssignedToGroup = {
|
|
111
|
+
name: ElementName.AssignedToGroup;
|
|
112
|
+
};
|
|
113
|
+
|
|
104
114
|
// @public
|
|
105
115
|
type AttachmentCount = {
|
|
106
116
|
name: ElementName.AttachmentCount;
|
|
@@ -344,10 +354,14 @@ export type ElementItem = {
|
|
|
344
354
|
} & ElementItemProps;
|
|
345
355
|
|
|
346
356
|
// @public
|
|
347
|
-
type ElementItemProps = AttachmentCount | AuthorGroup | ChecklistProgress | CollaboratorGroup | CommentCount | CreatedBy | CreatedOn | DueOn | LatestCommit | LinkIcon | Location_2 | ModifiedBy | ModifiedOn | OwnedBy | Preview | Priority | ProgrammingLanguage | Provider_2 | ReactCount | Snippet | SourceBranch | State_2 | 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 | SubTasksProgress | SubscriberCount | TargetBranch | Title | ViewCount | VoteCount;
|
|
348
358
|
|
|
349
359
|
// @public
|
|
350
360
|
export enum ElementName {
|
|
361
|
+
// (undocumented)
|
|
362
|
+
AssignedTo = "AssignedTo",
|
|
363
|
+
// (undocumented)
|
|
364
|
+
AssignedToGroup = "AssignedToGroup",
|
|
351
365
|
// (undocumented)
|
|
352
366
|
AttachmentCount = "AttachmentCount",
|
|
353
367
|
// (undocumented)
|
|
@@ -377,6 +391,8 @@ export enum ElementName {
|
|
|
377
391
|
// (undocumented)
|
|
378
392
|
OwnedBy = "OwnedBy",
|
|
379
393
|
// (undocumented)
|
|
394
|
+
OwnedByGroup = "OwnedByGroup",
|
|
395
|
+
// (undocumented)
|
|
380
396
|
Preview = "Preview",
|
|
381
397
|
// (undocumented)
|
|
382
398
|
Priority = "Priority",
|
|
@@ -387,6 +403,8 @@ export enum ElementName {
|
|
|
387
403
|
// (undocumented)
|
|
388
404
|
ReactCount = "ReactCount",
|
|
389
405
|
// (undocumented)
|
|
406
|
+
ReadTime = "ReadTime",
|
|
407
|
+
// (undocumented)
|
|
390
408
|
Snippet = "Snippet",
|
|
391
409
|
// (undocumented)
|
|
392
410
|
SourceBranch = "SourceBranch",
|
|
@@ -395,6 +413,8 @@ export enum ElementName {
|
|
|
395
413
|
// (undocumented)
|
|
396
414
|
SubscriberCount = "SubscriberCount",
|
|
397
415
|
// (undocumented)
|
|
416
|
+
SubTasksProgress = "SubTasksProgress",
|
|
417
|
+
// (undocumented)
|
|
398
418
|
TargetBranch = "TargetBranch",
|
|
399
419
|
// (undocumented)
|
|
400
420
|
Title = "Title",
|
|
@@ -563,6 +583,11 @@ type OwnedBy = {
|
|
|
563
583
|
name: ElementName.OwnedBy;
|
|
564
584
|
};
|
|
565
585
|
|
|
586
|
+
// @public
|
|
587
|
+
type OwnedByGroup = {
|
|
588
|
+
name: ElementName.OwnedByGroup;
|
|
589
|
+
};
|
|
590
|
+
|
|
566
591
|
// @public
|
|
567
592
|
type Preview = {
|
|
568
593
|
name: ElementName.Preview;
|
|
@@ -616,6 +641,11 @@ type ReactCount = {
|
|
|
616
641
|
name: ElementName.ReactCount;
|
|
617
642
|
};
|
|
618
643
|
|
|
644
|
+
// @public
|
|
645
|
+
type ReadTime = {
|
|
646
|
+
name: ElementName.ReadTime;
|
|
647
|
+
};
|
|
648
|
+
|
|
619
649
|
// @public (undocumented)
|
|
620
650
|
export type ResolveResponse = JsonLd.Response;
|
|
621
651
|
|
|
@@ -726,6 +756,11 @@ type SubscriberCount = {
|
|
|
726
756
|
name: ElementName.SubscriberCount;
|
|
727
757
|
};
|
|
728
758
|
|
|
759
|
+
// @public
|
|
760
|
+
type SubTasksProgress = {
|
|
761
|
+
name: ElementName.SubTasksProgress;
|
|
762
|
+
};
|
|
763
|
+
|
|
729
764
|
// @public
|
|
730
765
|
type TargetBranch = {
|
|
731
766
|
name: ElementName.TargetBranch;
|