@atlaskit/smart-card 19.1.30 → 20.0.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 +23 -0
- package/dist/cjs/constants.js +1 -0
- package/dist/cjs/extractors/block/index.js +9 -19
- package/dist/cjs/extractors/common/actions/extractPreviewAction.js +3 -5
- package/dist/cjs/extractors/common/byline/extractByline.js +5 -11
- package/dist/cjs/extractors/common/context/index.js +0 -16
- package/dist/cjs/extractors/common/icon/extractIcon.js +11 -8
- package/dist/cjs/extractors/common/icon/priority.js +1 -0
- package/dist/cjs/extractors/common/lozenge/extractLozenge.js +9 -3
- package/dist/cjs/extractors/common/lozenge/extractState.js +2 -2
- package/dist/cjs/extractors/common/lozenge/extractTaskType.js +2 -2
- package/dist/cjs/extractors/common/primitives/index.js +0 -16
- package/dist/cjs/extractors/embed/index.js +5 -9
- package/dist/cjs/extractors/flexible/collaboratorGroup/index.js +2 -2
- package/dist/cjs/extractors/flexible/extract-preview.js +2 -2
- package/dist/cjs/extractors/flexible/extract-priority.js +2 -2
- package/dist/cjs/extractors/flexible/icon/extract-jsonld-data-icon.js +8 -2
- package/dist/cjs/extractors/flexible/icon/extract-provider-icon.js +2 -2
- package/dist/cjs/extractors/flexible/icon/extract-url-icon.js +2 -2
- package/dist/cjs/extractors/flexible/index.js +7 -10
- package/dist/cjs/extractors/flexible/utils.js +10 -4
- package/dist/cjs/extractors/inline/index.js +4 -4
- 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/index.js +9 -2
- package/dist/cjs/view/FlexibleCard/components/elements/utils.js +22 -0
- package/dist/cjs/view/FlexibleCard/utils.js +3 -1
- package/dist/cjs/view/HoverCard/components/hover-card-content.js +2 -2
- package/dist/cjs/view/HoverCard/utils.js +19 -0
- package/dist/cjs/view/InlineCard/index.js +5 -3
- package/dist/es2019/constants.js +1 -0
- package/dist/es2019/extractors/block/index.js +2 -7
- package/dist/es2019/extractors/common/actions/extractPreviewAction.js +1 -2
- package/dist/es2019/extractors/common/byline/extractByline.js +1 -4
- package/dist/es2019/extractors/common/context/index.js +0 -2
- package/dist/es2019/extractors/common/icon/extractIcon.js +7 -3
- package/dist/es2019/extractors/common/icon/priority.js +1 -0
- package/dist/es2019/extractors/common/lozenge/extractLozenge.js +5 -1
- package/dist/es2019/extractors/common/lozenge/extractState.js +2 -2
- package/dist/es2019/extractors/common/lozenge/extractTaskType.js +1 -1
- package/dist/es2019/extractors/common/primitives/index.js +0 -2
- package/dist/es2019/extractors/embed/index.js +1 -3
- package/dist/es2019/extractors/flexible/collaboratorGroup/index.js +1 -1
- package/dist/es2019/extractors/flexible/extract-preview.js +1 -1
- package/dist/es2019/extractors/flexible/extract-priority.js +1 -1
- package/dist/es2019/extractors/flexible/icon/extract-jsonld-data-icon.js +7 -1
- package/dist/es2019/extractors/flexible/icon/extract-provider-icon.js +1 -1
- package/dist/es2019/extractors/flexible/icon/extract-url-icon.js +1 -1
- package/dist/es2019/extractors/flexible/index.js +4 -5
- package/dist/es2019/extractors/flexible/utils.js +2 -1
- package/dist/es2019/extractors/inline/index.js +2 -2
- 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/index.js +6 -0
- package/dist/es2019/view/FlexibleCard/components/elements/utils.js +22 -0
- package/dist/es2019/view/FlexibleCard/utils.js +2 -1
- package/dist/es2019/view/HoverCard/components/hover-card-content.js +1 -1
- package/dist/es2019/view/HoverCard/utils.js +19 -0
- package/dist/es2019/view/InlineCard/index.js +2 -1
- package/dist/esm/constants.js +1 -0
- package/dist/esm/extractors/block/index.js +2 -7
- package/dist/esm/extractors/common/actions/extractPreviewAction.js +1 -2
- package/dist/esm/extractors/common/byline/extractByline.js +1 -4
- package/dist/esm/extractors/common/context/index.js +0 -2
- package/dist/esm/extractors/common/icon/extractIcon.js +7 -3
- package/dist/esm/extractors/common/icon/priority.js +1 -0
- package/dist/esm/extractors/common/lozenge/extractLozenge.js +8 -2
- package/dist/esm/extractors/common/lozenge/extractState.js +2 -2
- package/dist/esm/extractors/common/lozenge/extractTaskType.js +1 -1
- package/dist/esm/extractors/common/primitives/index.js +0 -2
- package/dist/esm/extractors/embed/index.js +1 -3
- package/dist/esm/extractors/flexible/collaboratorGroup/index.js +1 -1
- package/dist/esm/extractors/flexible/extract-preview.js +1 -1
- package/dist/esm/extractors/flexible/extract-priority.js +1 -1
- package/dist/esm/extractors/flexible/icon/extract-jsonld-data-icon.js +7 -1
- package/dist/esm/extractors/flexible/icon/extract-provider-icon.js +1 -1
- package/dist/esm/extractors/flexible/icon/extract-url-icon.js +1 -1
- package/dist/esm/extractors/flexible/index.js +4 -5
- package/dist/esm/extractors/flexible/utils.js +4 -1
- package/dist/esm/extractors/inline/index.js +2 -2
- 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/index.js +6 -0
- package/dist/esm/view/FlexibleCard/components/elements/utils.js +21 -0
- package/dist/esm/view/FlexibleCard/utils.js +2 -1
- package/dist/esm/view/HoverCard/components/hover-card-content.js +1 -1
- package/dist/esm/view/HoverCard/utils.js +19 -0
- package/dist/esm/view/InlineCard/index.js +2 -1
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/extractors/block/index.d.ts +1 -1
- package/dist/types/extractors/common/context/index.d.ts +0 -2
- package/dist/types/extractors/common/icon/extractIcon.d.ts +1 -1
- package/dist/types/extractors/common/lozenge/extractState.d.ts +1 -1
- package/dist/types/extractors/common/primitives/index.d.ts +0 -2
- package/dist/types/extractors/flexible/collaboratorGroup/index.d.ts +1 -1
- package/dist/types/extractors/flexible/utils.d.ts +1 -0
- package/dist/types/state/flexible-ui-context/types.d.ts +8 -1
- package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +8 -1
- package/dist/types/view/FlexibleCard/components/elements/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/lozenge/types.d.ts +2 -1
- package/package.json +3 -3
- package/report.api.md +2 -0
- package/dist/cjs/extractors/common/context/extractContext.js +0 -38
- package/dist/cjs/extractors/common/context/extractProvider.js +0 -83
- package/dist/cjs/extractors/common/date/extractDateCreated.js +0 -14
- package/dist/cjs/extractors/common/date/extractDateUpdated.js +0 -14
- package/dist/cjs/extractors/common/person/extractMembers.js +0 -37
- package/dist/cjs/extractors/common/person/extractPersonAssignedTo.js +0 -18
- package/dist/cjs/extractors/common/person/extractPersonCreatedBy.js +0 -28
- package/dist/cjs/extractors/common/person/extractPersonUpdatedBy.js +0 -18
- package/dist/cjs/extractors/common/person/index.js +0 -37
- package/dist/cjs/extractors/common/person/types.js +0 -5
- package/dist/cjs/extractors/common/preview/extractImage.js +0 -26
- package/dist/cjs/extractors/common/preview/index.js +0 -21
- package/dist/cjs/extractors/common/primitives/extractLink.js +0 -22
- package/dist/cjs/extractors/common/primitives/extractTitle.js +0 -55
- package/dist/cjs/extractors/common/primitives/extractType.js +0 -20
- package/dist/cjs/extractors/common/utils.js +0 -43
- package/dist/es2019/extractors/common/context/extractContext.js +0 -27
- package/dist/es2019/extractors/common/context/extractProvider.js +0 -65
- package/dist/es2019/extractors/common/date/extractDateCreated.js +0 -5
- package/dist/es2019/extractors/common/date/extractDateUpdated.js +0 -5
- package/dist/es2019/extractors/common/person/extractMembers.js +0 -23
- package/dist/es2019/extractors/common/person/extractPersonAssignedTo.js +0 -8
- package/dist/es2019/extractors/common/person/extractPersonCreatedBy.js +0 -16
- package/dist/es2019/extractors/common/person/extractPersonUpdatedBy.js +0 -8
- package/dist/es2019/extractors/common/person/index.js +0 -4
- package/dist/es2019/extractors/common/person/types.js +0 -1
- package/dist/es2019/extractors/common/preview/extractImage.js +0 -16
- package/dist/es2019/extractors/common/preview/index.js +0 -2
- package/dist/es2019/extractors/common/primitives/extractLink.js +0 -12
- package/dist/es2019/extractors/common/primitives/extractTitle.js +0 -37
- package/dist/es2019/extractors/common/primitives/extractType.js +0 -11
- package/dist/es2019/extractors/common/utils.js +0 -30
- package/dist/esm/extractors/common/context/extractContext.js +0 -27
- package/dist/esm/extractors/common/context/extractProvider.js +0 -65
- package/dist/esm/extractors/common/date/extractDateCreated.js +0 -5
- package/dist/esm/extractors/common/date/extractDateUpdated.js +0 -5
- package/dist/esm/extractors/common/person/extractMembers.js +0 -27
- package/dist/esm/extractors/common/person/extractPersonAssignedTo.js +0 -8
- package/dist/esm/extractors/common/person/extractPersonCreatedBy.js +0 -18
- package/dist/esm/extractors/common/person/extractPersonUpdatedBy.js +0 -8
- package/dist/esm/extractors/common/person/index.js +0 -4
- package/dist/esm/extractors/common/person/types.js +0 -1
- package/dist/esm/extractors/common/preview/extractImage.js +0 -16
- package/dist/esm/extractors/common/preview/index.js +0 -2
- package/dist/esm/extractors/common/primitives/extractLink.js +0 -12
- package/dist/esm/extractors/common/primitives/extractTitle.js +0 -41
- package/dist/esm/extractors/common/primitives/extractType.js +0 -11
- package/dist/esm/extractors/common/utils.js +0 -30
- package/dist/types/extractors/common/context/extractContext.d.ts +0 -7
- package/dist/types/extractors/common/context/extractProvider.d.ts +0 -8
- package/dist/types/extractors/common/date/extractDateCreated.d.ts +0 -3
- package/dist/types/extractors/common/date/extractDateUpdated.d.ts +0 -2
- package/dist/types/extractors/common/person/extractMembers.d.ts +0 -3
- package/dist/types/extractors/common/person/extractPersonAssignedTo.d.ts +0 -4
- package/dist/types/extractors/common/person/extractPersonCreatedBy.d.ts +0 -3
- package/dist/types/extractors/common/person/extractPersonUpdatedBy.d.ts +0 -5
- package/dist/types/extractors/common/person/index.d.ts +0 -5
- package/dist/types/extractors/common/person/types.d.ts +0 -4
- package/dist/types/extractors/common/preview/extractImage.d.ts +0 -2
- package/dist/types/extractors/common/preview/index.d.ts +0 -3
- package/dist/types/extractors/common/primitives/extractLink.d.ts +0 -2
- package/dist/types/extractors/common/primitives/extractTitle.d.ts +0 -2
- package/dist/types/extractors/common/primitives/extractType.d.ts +0 -2
- package/dist/types/extractors/common/utils.d.ts +0 -4
|
@@ -4,18 +4,13 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
4
4
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { extractTitleTextColor, extractSummary } from '../common/primitives';
|
|
8
8
|
import { extractLozenge } from '../common/lozenge';
|
|
9
9
|
import { extractIcon } from '../common/icon';
|
|
10
|
-
import { extractProvider } from '../common/context/extractProvider';
|
|
11
10
|
import { extractCommentCount, extractProgrammingLanguage, extractSubscriberCount } from '../common/detail';
|
|
12
|
-
import { extractMembers } from '
|
|
13
|
-
import { extractPersonAssignedTo } from '../common/person/extractPersonAssignedTo';
|
|
14
|
-
import { extractPersonCreatedBy } from '../common/person/extractPersonCreatedBy';
|
|
15
|
-
import { extractPersonUpdatedBy } from '../common/person/extractPersonUpdatedBy';
|
|
11
|
+
import { extractLink, extractTitle, extractProvider, extractMembers, extractPersonAssignedTo, extractPersonCreatedBy, extractPersonUpdatedBy, extractImage } from '@atlaskit/linking-common/extractors';
|
|
16
12
|
import { extractByline } from '../common/byline/extractByline';
|
|
17
13
|
import { extractTitlePrefix } from '../common/title-prefix/extractTitlePrefix';
|
|
18
|
-
import { extractImage } from '../common/preview/extractImage';
|
|
19
14
|
import { extractActions } from '../common/actions/extractActions';
|
|
20
15
|
import { extractPreviewAction } from '../common/actions/extractPreviewAction';
|
|
21
16
|
import { extractIsTrusted } from '../common/meta/extractIsTrusted';
|
|
@@ -6,8 +6,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6
6
|
|
|
7
7
|
import { uiRenderSuccessEvent, uiRenderFailedEvent } from '../../../utils/analytics';
|
|
8
8
|
import { extractDownloadUrl } from '../detail';
|
|
9
|
-
import { extractProvider } from '
|
|
10
|
-
import { extractPreview } from '../preview';
|
|
9
|
+
import { extractProvider, extractPreview } from '@atlaskit/linking-common/extractors';
|
|
11
10
|
import { PreviewAction } from '../../../view/BlockCard';
|
|
12
11
|
|
|
13
12
|
var getMetadataFromJsonLd = function getMetadataFromJsonLd(jsonLd, platform) {
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FormattedRelativeTime } from 'react-intl-next';
|
|
3
3
|
import { selectUnit } from '@formatjs/intl-utils';
|
|
4
|
-
import { extractPersonUpdatedBy } from '
|
|
5
|
-
import { extractPersonCreatedBy } from '../person/extractPersonCreatedBy';
|
|
6
|
-
import { extractDateCreated } from '../date/extractDateCreated';
|
|
7
|
-
import { extractDateUpdated } from '../date/extractDateUpdated';
|
|
4
|
+
import { extractDateCreated, extractDateUpdated, extractPersonCreatedBy, extractPersonUpdatedBy } from '@atlaskit/linking-common/extractors';
|
|
8
5
|
export var extractByline = function extractByline(jsonLd) {
|
|
9
6
|
var updatedAt = extractDateUpdated(jsonLd);
|
|
10
7
|
var createdAt = extractDateCreated(jsonLd);
|
|
@@ -4,14 +4,13 @@ import CommitIcon from '@atlaskit/icon-object/glyph/commit/16';
|
|
|
4
4
|
import PullRequestIcon from '@atlaskit/icon-object/glyph/pull-request/16';
|
|
5
5
|
import BranchIcon from '@atlaskit/icon-object/glyph/branch/16';
|
|
6
6
|
import RepoIcon from '@atlaskit/icon-object/glyph/code/16';
|
|
7
|
+
import TaskIcon from '@atlaskit/icon-object/glyph/task/16';
|
|
7
8
|
import { extractorPriorityMap } from './priority';
|
|
8
|
-
import { extractProvider } from '
|
|
9
|
-
import { extractTitle } from '../primitives/extractTitle';
|
|
9
|
+
import { extractProvider, extractUrlFromIconJsonLd, extractTitle } from '@atlaskit/linking-common/extractors';
|
|
10
10
|
import { extractFileFormat } from './extractFileFormat';
|
|
11
11
|
import { extractIconFromDocument } from './extractIconFromDocument';
|
|
12
12
|
import { extractIconFromTask } from './extractIconFromTask';
|
|
13
13
|
import { extractTaskType } from '../lozenge/extractTaskType';
|
|
14
|
-
import { extractUrlFromIconJsonLd } from '../utils';
|
|
15
14
|
export var extractIcon = function extractIcon(jsonLd) {
|
|
16
15
|
var priority = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'type';
|
|
17
16
|
var type = jsonLd['@type'];
|
|
@@ -46,6 +45,11 @@ var extractIconByType = function extractIconByType(type, opts) {
|
|
|
46
45
|
case 'atlassian:UndefinedLink':
|
|
47
46
|
return extractIconFromDocument(type, opts);
|
|
48
47
|
|
|
48
|
+
case 'atlassian:Goal':
|
|
49
|
+
return opts.icon || /*#__PURE__*/React.createElement(TaskIcon, {
|
|
50
|
+
label: opts.title || 'goal'
|
|
51
|
+
});
|
|
52
|
+
|
|
49
53
|
case 'atlassian:Project':
|
|
50
54
|
return opts.icon || /*#__PURE__*/React.createElement(ProjectIcon, {
|
|
51
55
|
label: opts.title || 'project',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { extractState } from './extractState';
|
|
2
2
|
import { extractTag } from './extractTag';
|
|
3
3
|
import { extractTaskStatus } from './extractTaskStatus';
|
|
4
|
-
import { extractType } from '
|
|
4
|
+
import { extractType } from '@atlaskit/linking-common/extractors';
|
|
5
5
|
import { extractTaskType } from './extractTaskType';
|
|
6
6
|
var DOC_TYPES = ['schema:BlogPosting', 'schema:TextDigitalDocument', 'schema:DigitalDocument', 'schema:PresentationDigitalDocument', 'schema:SpreadsheetDigitalDocument'];
|
|
7
7
|
export var extractLozenge = function extractLozenge(jsonLd) {
|
|
@@ -22,12 +22,18 @@ export var extractLozenge = function extractLozenge(jsonLd) {
|
|
|
22
22
|
var jsonLdDocument = jsonLd;
|
|
23
23
|
var lozengeFromState = extractState(jsonLdDocument);
|
|
24
24
|
return lozengeFromState;
|
|
25
|
-
} else if (type.includes('atlassian:
|
|
25
|
+
} else if (type.includes('atlassian:Goal')) {
|
|
26
26
|
var jsonLdProject = jsonLd;
|
|
27
27
|
|
|
28
28
|
var _lozengeFromState = extractState(jsonLdProject);
|
|
29
29
|
|
|
30
30
|
return _lozengeFromState;
|
|
31
|
+
} else if (type.includes('atlassian:Project')) {
|
|
32
|
+
var _jsonLdProject = jsonLd;
|
|
33
|
+
|
|
34
|
+
var _lozengeFromState2 = extractState(_jsonLdProject);
|
|
35
|
+
|
|
36
|
+
return _lozengeFromState2;
|
|
31
37
|
} else if (type.includes('atlassian:UndefinedLink')) {
|
|
32
38
|
return {
|
|
33
39
|
text: 'UNDEFINED',
|
|
@@ -16,14 +16,14 @@ export var extractState = function extractState(jsonLd) {
|
|
|
16
16
|
if (state.name) {
|
|
17
17
|
return {
|
|
18
18
|
text: state.name,
|
|
19
|
-
appearance: 'default'
|
|
19
|
+
appearance: state.appearance || 'default'
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
} else if (state['@type'] === 'Object') {
|
|
23
23
|
if (state.name) {
|
|
24
24
|
return {
|
|
25
25
|
text: state.name,
|
|
26
|
-
appearance: 'default'
|
|
26
|
+
appearance: state.appearance || 'default'
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { extractUrlFromIconJsonLd } from '
|
|
1
|
+
import { extractUrlFromIconJsonLd } from '@atlaskit/linking-common/extractors';
|
|
2
2
|
export var extractTaskType = function extractTaskType(jsonLd) {
|
|
3
3
|
// TODO: Remove once Jira migrate to the correct type.
|
|
4
4
|
var taskType = jsonLd['atlassian:taskType'] || jsonLd.taskType;
|
|
@@ -4,9 +4,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
4
4
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
|
-
import { extractLink, extractTitle } from '
|
|
8
|
-
import { extractProvider } from '../common/context';
|
|
9
|
-
import { extractPreview } from '@atlaskit/linking-common';
|
|
7
|
+
import { extractLink, extractTitle, extractProvider, extractPreview } from '@atlaskit/linking-common/extractors';
|
|
10
8
|
import { extractIsTrusted } from '../common/meta/extractIsTrusted';
|
|
11
9
|
|
|
12
10
|
var extractEmbedPreview = function extractEmbedPreview(jsonLd, platform) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { extractPersonFromJsonLd } from '
|
|
1
|
+
import { extractPersonFromJsonLd } from '@atlaskit/linking-common/extractors';
|
|
2
2
|
// Temporary Extractor until https://product-fabric.atlassian.net/browse/EDM-2652 is ready
|
|
3
3
|
export var extractPersonsUpdatedBy = function extractPersonsUpdatedBy(jsonLd) {
|
|
4
4
|
var updatedBy = jsonLd['atlassian:updatedBy'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconType } from '../../constants';
|
|
2
|
-
import { extractUrlFromIconJsonLd } from '
|
|
2
|
+
import { extractUrlFromIconJsonLd } from '@atlaskit/linking-common/extractors';
|
|
3
3
|
var priorityMapper = {
|
|
4
4
|
blocker: IconType.PriorityBlocker,
|
|
5
5
|
critical: IconType.PriorityCritical,
|
|
@@ -5,7 +5,7 @@ import extractJiraTaskIcon from './extract-jira-task-icon';
|
|
|
5
5
|
import extractProviderIcon from './extract-provider-icon';
|
|
6
6
|
import extractUrlIcon from './extract-url-icon';
|
|
7
7
|
import { extractTaskType } from '../../common/lozenge';
|
|
8
|
-
import { extractTitle } from '
|
|
8
|
+
import { extractTitle } from '@atlaskit/linking-common/extractors';
|
|
9
9
|
import { extractorPriorityMap as priorityMap } from '../../common/icon/priority';
|
|
10
10
|
import { IconType } from '../../../constants';
|
|
11
11
|
|
|
@@ -90,6 +90,12 @@ var extractJsonldDataIcon = function extractJsonldDataIcon(data) {
|
|
|
90
90
|
label: taskLabel
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
+
case 'atlassian:Goal':
|
|
94
|
+
return urlIcon || {
|
|
95
|
+
icon: IconType.Task,
|
|
96
|
+
label: label || 'Goal'
|
|
97
|
+
};
|
|
98
|
+
|
|
93
99
|
case 'atlassian:Project':
|
|
94
100
|
return urlIcon || {
|
|
95
101
|
icon: IconType.Project,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CONFLUENCE_GENERATOR_ID, JIRA_GENERATOR_ID } from '../../constants';
|
|
2
2
|
import { IconType } from '../../../constants';
|
|
3
3
|
import extractUrlIcon from './extract-url-icon';
|
|
4
|
-
import { extractTitle } from '
|
|
4
|
+
import { extractTitle } from '@atlaskit/linking-common/extractors';
|
|
5
5
|
|
|
6
6
|
var extractProviderIcon = function extractProviderIcon(data) {
|
|
7
7
|
if (!data) {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { extractSummary } from '../common/primitives';
|
|
2
2
|
import { extractLozenge } from '../common/lozenge';
|
|
3
3
|
import { extractLinkIcon } from './icon';
|
|
4
|
-
import { extractCommentCount, extractCreatedBy, extractModifiedBy, extractProgrammingLanguage, extractSubscriberCount, extractViewCount, extractReactCount, extractVoteCount, extractSourceBranch, extractTargetBranch } from './utils';
|
|
5
|
-
import { extractPersonCreatedBy } from '../common/person';
|
|
4
|
+
import { extractCommentCount, extractCreatedBy, extractModifiedBy, extractProgrammingLanguage, extractSubscriberCount, extractViewCount, extractReactCount, extractVoteCount, extractSourceBranch, extractTargetBranch, extractDueOn } from './utils';
|
|
6
5
|
import { extractPersonsUpdatedBy } from './collaboratorGroup';
|
|
7
|
-
import { extractDateUpdated } from '
|
|
8
|
-
import { extractDateCreated } from '../common/date/extractDateCreated';
|
|
6
|
+
import { extractPersonCreatedBy, extractLink, extractTitle, extractDateUpdated, extractDateCreated } from '@atlaskit/linking-common/extractors';
|
|
9
7
|
import extractPriority from './extract-priority';
|
|
10
8
|
import extractProviderIcon from './icon/extract-provider-icon';
|
|
11
9
|
import extractPreview from './extract-preview';
|
|
@@ -27,6 +25,7 @@ var extractFlexibleUiContext = function extractFlexibleUiContext(response, rende
|
|
|
27
25
|
voteCount: extractVoteCount(data),
|
|
28
26
|
createdBy: extractCreatedBy(data),
|
|
29
27
|
createdOn: extractDateCreated(data),
|
|
28
|
+
dueOn: extractDueOn(data),
|
|
30
29
|
latestCommit: extractLatestCommit(data),
|
|
31
30
|
linkIcon: extractLinkIcon(response, renderers),
|
|
32
31
|
modifiedBy: extractModifiedBy(data),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
|
-
import { extractPersonCreatedBy, extractPersonUpdatedBy } from '
|
|
2
|
+
import { extractPersonCreatedBy, extractPersonUpdatedBy } from '@atlaskit/linking-common/extractors';
|
|
3
3
|
|
|
4
4
|
var extractLinkName = function extractLinkName(link) {
|
|
5
5
|
if (link && _typeof(link) === 'object' && link['@type'] === 'Link') {
|
|
@@ -14,6 +14,9 @@ var extractValue = function extractValue(data, key) {
|
|
|
14
14
|
export var extractCommentCount = function extractCommentCount(data) {
|
|
15
15
|
return extractValue(data, 'schema:commentCount');
|
|
16
16
|
};
|
|
17
|
+
export var extractDueOn = function extractDueOn(data) {
|
|
18
|
+
return extractValue(data, 'endTime');
|
|
19
|
+
};
|
|
17
20
|
export var extractViewCount = function extractViewCount(data) {
|
|
18
21
|
return extractValue(data, 'atlassian:viewCount');
|
|
19
22
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { extractTitleTextColor } from '../common/primitives';
|
|
2
2
|
import { extractLozenge } from '../common/lozenge';
|
|
3
3
|
import { extractIcon } from '../common/icon';
|
|
4
4
|
import { extractTitlePrefix } from '../common/title-prefix';
|
|
5
|
-
import { extractProvider } from '
|
|
5
|
+
import { extractLink, extractTitle, extractProvider } from '@atlaskit/linking-common/extractors';
|
|
6
6
|
import { CONFLUENCE_GENERATOR_ID, JIRA_GENERATOR_ID } from '../constants';
|
|
7
7
|
export var extractInlineIcon = function extractInlineIcon(jsonLd) {
|
|
8
8
|
var provider = extractProvider(jsonLd);
|
package/dist/esm/version.json
CHANGED
|
@@ -20,7 +20,7 @@ import * as Actions from '../actions';
|
|
|
20
20
|
import { isFlexibleUiElement } from '../../../../utils/flexible';
|
|
21
21
|
import ActionGroup from './action-group';
|
|
22
22
|
import ElementGroup from './element-group';
|
|
23
|
-
export var ElementDisplaySchema = (_ElementDisplaySchema = {}, _defineProperty(_ElementDisplaySchema, ElementName.AuthorGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CollaboratorGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CommentCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ViewCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ReactCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.VoteCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CreatedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CreatedOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.LatestCommit, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.LinkIcon, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ModifiedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ModifiedOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Preview, ['block']), _defineProperty(_ElementDisplaySchema, ElementName.Priority, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ProgrammingLanguage, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Provider, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Snippet, ['block']), _defineProperty(_ElementDisplaySchema, ElementName.SourceBranch, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.State, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.SubscriberCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.TargetBranch, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Title, ['inline']), _ElementDisplaySchema);
|
|
23
|
+
export var ElementDisplaySchema = (_ElementDisplaySchema = {}, _defineProperty(_ElementDisplaySchema, ElementName.AuthorGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CollaboratorGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CommentCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ViewCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ReactCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.VoteCount, ['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.ModifiedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ModifiedOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Preview, ['block']), _defineProperty(_ElementDisplaySchema, ElementName.Priority, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ProgrammingLanguage, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Provider, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Snippet, ['block']), _defineProperty(_ElementDisplaySchema, ElementName.SourceBranch, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.State, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.SubscriberCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.TargetBranch, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Title, ['inline']), _ElementDisplaySchema);
|
|
24
24
|
|
|
25
25
|
var getDirectionStyles = function getDirectionStyles(direction) {
|
|
26
26
|
switch (direction) {
|
|
@@ -33,6 +33,12 @@ export var CreatedOn = createElement(ElementName.CreatedOn);
|
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
35
|
export var CreatedBy = createElement(ElementName.CreatedBy);
|
|
36
|
+
/**
|
|
37
|
+
* Creates a DueOn Lozenge element using the data from dueOn in the Flexible UI Context.
|
|
38
|
+
* @see Lozenge
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
export var DueOn = createElement(ElementName.DueOn);
|
|
36
42
|
/**
|
|
37
43
|
* Creates an element that contains Last Commit hash
|
|
38
44
|
*/
|
|
@@ -5,6 +5,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
5
5
|
var _templateObject, _elementMappings;
|
|
6
6
|
|
|
7
7
|
import React, { useContext } from 'react';
|
|
8
|
+
import { FormattedDate } from 'react-intl-next';
|
|
8
9
|
import { css } from '@emotion/core';
|
|
9
10
|
import { ElementName, IconType } from '../../../../constants';
|
|
10
11
|
import Icon from './icon';
|
|
@@ -47,6 +48,8 @@ var elementMappings = (_elementMappings = {}, _defineProperty(_elementMappings,
|
|
|
47
48
|
component: Text
|
|
48
49
|
}), _defineProperty(_elementMappings, ElementName.CreatedOn, {
|
|
49
50
|
component: DateTime
|
|
51
|
+
}), _defineProperty(_elementMappings, ElementName.DueOn, {
|
|
52
|
+
component: Lozenge
|
|
50
53
|
}), _defineProperty(_elementMappings, ElementName.LatestCommit, {
|
|
51
54
|
component: Badge,
|
|
52
55
|
props: {
|
|
@@ -123,6 +126,9 @@ var getData = function getData(elementName, contextKey, context) {
|
|
|
123
126
|
case ElementName.CreatedOn:
|
|
124
127
|
return toDateTimeProps('created', context.createdOn);
|
|
125
128
|
|
|
129
|
+
case ElementName.DueOn:
|
|
130
|
+
return toDateLozengeProps(context.dueOn);
|
|
131
|
+
|
|
126
132
|
case ElementName.ModifiedBy:
|
|
127
133
|
return toFormattedTextProps(messages.modified_by, context.modifiedBy);
|
|
128
134
|
|
|
@@ -154,6 +160,21 @@ var toBadgeProps = function toBadgeProps(label) {
|
|
|
154
160
|
} : undefined;
|
|
155
161
|
};
|
|
156
162
|
|
|
163
|
+
var toDateLozengeProps = function toDateLozengeProps(dateString) {
|
|
164
|
+
if (dateString) {
|
|
165
|
+
var text = Date.parse(dateString) ? /*#__PURE__*/React.createElement(FormattedDate, {
|
|
166
|
+
value: new Date(dateString),
|
|
167
|
+
year: "numeric",
|
|
168
|
+
month: "short",
|
|
169
|
+
day: "numeric",
|
|
170
|
+
formatMatcher: "best fit"
|
|
171
|
+
}) : dateString;
|
|
172
|
+
return {
|
|
173
|
+
text: text
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
|
|
157
178
|
var toDateTimeProps = function toDateTimeProps(type, dateString) {
|
|
158
179
|
return dateString ? {
|
|
159
180
|
date: new Date(dateString),
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { SmartLinkStatus } from '../../constants';
|
|
2
2
|
import { getEmptyJsonLd, getUnauthorizedJsonLd } from '../../utils/jsonld';
|
|
3
|
-
import {
|
|
3
|
+
import { extractRequestAccessContext } from '../../extractors/common/context';
|
|
4
4
|
import { messages } from '../../messages';
|
|
5
5
|
import extractFlexibleLinkContext from '../../extractors/flexible';
|
|
6
6
|
import { extractErrorIcon } from '../../extractors/flexible/icon';
|
|
7
7
|
import { handleOnClick } from '../../utils';
|
|
8
|
+
import { extractProvider } from '@atlaskit/linking-common/extractors';
|
|
8
9
|
export var getContextByStatus = function getContextByStatus(url, status, details, renderers) {
|
|
9
10
|
switch (status) {
|
|
10
11
|
case SmartLinkStatus.Pending:
|
|
@@ -9,7 +9,7 @@ import { isSpecialEvent } from '../../../utils';
|
|
|
9
9
|
import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
|
|
10
10
|
import { getExtensionKey } from '../../../state/helpers';
|
|
11
11
|
import { titleBlockCss, metadataBlockCss, footerBlockCss } from '../styled';
|
|
12
|
-
import { extractType } from '
|
|
12
|
+
import { extractType } from '@atlaskit/linking-common/extractors';
|
|
13
13
|
var flexibleUiOptions = {
|
|
14
14
|
hideElevation: true,
|
|
15
15
|
size: SmartLinkSize.Medium,
|
|
@@ -43,6 +43,25 @@ export var getSimulatedMetadata = function getSimulatedMetadata() {
|
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
+
case 'watermelon-object-provider':
|
|
47
|
+
if (types.includes('atlassian:Project')) {
|
|
48
|
+
return {
|
|
49
|
+
metadata: {
|
|
50
|
+
primary: [ElementName.AuthorGroup, ElementName.ModifiedOn, ElementName.State, ElementName.DueOn],
|
|
51
|
+
secondary: [],
|
|
52
|
+
subtitle: []
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return {
|
|
58
|
+
metadata: {
|
|
59
|
+
primary: [ElementName.AuthorGroup, ElementName.State, ElementName.DueOn],
|
|
60
|
+
secondary: [],
|
|
61
|
+
subtitle: []
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
|
|
46
65
|
default:
|
|
47
66
|
return {
|
|
48
67
|
metadata: {
|
|
@@ -2,13 +2,14 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { getEmptyJsonLd, getUnauthorizedJsonLd } from '../../utils/jsonld';
|
|
4
4
|
import { extractInlineProps } from '../../extractors/inline';
|
|
5
|
-
import {
|
|
5
|
+
import { extractRequestAccessContext } from '../../extractors/common/context';
|
|
6
6
|
import { CardLinkView } from '../LinkView';
|
|
7
7
|
import { InlineCardErroredView } from './ErroredView';
|
|
8
8
|
import { InlineCardForbiddenView } from './ForbiddenView';
|
|
9
9
|
import { InlineCardResolvedView } from './ResolvedView';
|
|
10
10
|
import { InlineCardResolvingView } from './ResolvingView';
|
|
11
11
|
import { InlineCardUnauthorizedView } from './UnauthorisedView';
|
|
12
|
+
import { extractProvider } from '@atlaskit/linking-common/extractors';
|
|
12
13
|
export { InlineCardResolvedView, InlineCardResolvingView, InlineCardErroredView, InlineCardForbiddenView, InlineCardUnauthorizedView };
|
|
13
14
|
export var InlineCard = function InlineCard(_ref) {
|
|
14
15
|
var _details$meta;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JsonLd } from 'json-ld-types';
|
|
2
2
|
import { CardProviderRenderers } from '@atlaskit/link-provider';
|
|
3
|
-
import { LinkPerson } from '
|
|
3
|
+
import { LinkPerson } from '@atlaskit/linking-common/extractors';
|
|
4
4
|
import { ExtractBlockOpts } from './types';
|
|
5
5
|
import { BlockCardResolvedViewProps } from '../../view/BlockCard';
|
|
6
6
|
import { ActionProps } from '../../view/BlockCard/components/Action';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { JsonLd } from 'json-ld-types';
|
|
3
|
-
import { LinkProvider } from '
|
|
3
|
+
import { LinkProvider } from '@atlaskit/linking-common/extractors';
|
|
4
4
|
import { LinkTaskType } from '../lozenge/extractTaskType';
|
|
5
5
|
export declare type IconPriority = 'type' | 'provider';
|
|
6
6
|
export interface IconOpts {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { JsonLd } from 'json-ld-types';
|
|
2
2
|
import { LinkLozenge } from './types';
|
|
3
|
-
export declare const extractState: (jsonLd: JsonLd.Data.SourceCodePullRequest | JsonLd.Data.Document | JsonLd.Data.Project) => LinkLozenge | undefined;
|
|
3
|
+
export declare const extractState: (jsonLd: JsonLd.Data.SourceCodePullRequest | JsonLd.Data.Document | JsonLd.Data.Project | JsonLd.Data.Goal) => LinkLozenge | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { JsonLd } from 'json-ld-types';
|
|
2
|
-
import { LinkPerson } from '
|
|
2
|
+
import { LinkPerson } from '@atlaskit/linking-common/extractors';
|
|
3
3
|
export declare type LinkTypeUpdatedBy = JsonLd.Data.Document | JsonLd.Data.Project | JsonLd.Data.SourceCodePullRequest | JsonLd.Data.SourceCodeReference | JsonLd.Data.SourceCodeRepository | JsonLd.Data.Task;
|
|
4
4
|
export declare const extractPersonsUpdatedBy: (jsonLd: LinkTypeUpdatedBy) => LinkPerson[] | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JsonLd } from 'json-ld-types';
|
|
2
2
|
export declare const extractCommentCount: (data: JsonLd.Data.BaseData) => number | undefined;
|
|
3
|
+
export declare const extractDueOn: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
3
4
|
export declare const extractViewCount: (data: JsonLd.Data.BaseData) => number | undefined;
|
|
4
5
|
export declare const extractReactCount: (data: JsonLd.Data.BaseData) => number | undefined;
|
|
5
6
|
export declare const extractVoteCount: (data: JsonLd.Data.BaseData) => number | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LinkLozenge } from '../../extractors/common/lozenge/types';
|
|
2
|
-
import { LinkPerson } from '
|
|
2
|
+
import { LinkPerson } from '@atlaskit/linking-common/extractors';
|
|
3
3
|
import { IconType, MediaType } from '../../constants';
|
|
4
4
|
/**
|
|
5
5
|
* This provides the data that will be used by Smart Links Flexible UI to populate it's
|
|
@@ -22,6 +22,13 @@ export declare type FlexibleUiDataContext = {
|
|
|
22
22
|
* @see CommentCount
|
|
23
23
|
*/
|
|
24
24
|
commentCount?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Contains the ISO timestamp of when the resource was due.
|
|
27
|
+
* This value is mapped to JsonLD endTime.
|
|
28
|
+
* @type string - ISO Timestamp
|
|
29
|
+
* @see DueOn
|
|
30
|
+
*/
|
|
31
|
+
dueOn?: string;
|
|
25
32
|
/**
|
|
26
33
|
* Contains the number of views of the linked resource.
|
|
27
34
|
* @type number
|
|
@@ -103,7 +103,7 @@ export declare type ActionItem = NamedActionItem | CustomActionItem;
|
|
|
103
103
|
/**
|
|
104
104
|
* A type that contains all the possible combinations of elements with their corresponding props.
|
|
105
105
|
*/
|
|
106
|
-
export declare type ElementItemProps = AuthorGroup | CollaboratorGroup | CommentCount | CreatedBy | CreatedOn | LatestCommit | LinkIcon | ModifiedBy | ModifiedOn | Preview | Priority | ProgrammingLanguage | Provider | ReactCount | Snippet | SourceBranch | State | SubscriberCount | TargetBranch | Title | ViewCount | VoteCount;
|
|
106
|
+
export declare type ElementItemProps = AuthorGroup | CollaboratorGroup | CommentCount | CreatedBy | CreatedOn | DueOn | LatestCommit | LinkIcon | ModifiedBy | ModifiedOn | Preview | Priority | ProgrammingLanguage | Provider | ReactCount | Snippet | SourceBranch | State | SubscriberCount | TargetBranch | Title | ViewCount | VoteCount;
|
|
107
107
|
/**
|
|
108
108
|
* Represents the props available for an AuthorGroup element.
|
|
109
109
|
* @see AuthorGroup
|
|
@@ -143,6 +143,13 @@ export declare type CreatedOn = {
|
|
|
143
143
|
*/
|
|
144
144
|
text?: string;
|
|
145
145
|
};
|
|
146
|
+
/**
|
|
147
|
+
* Represents the props available for an DueOn element.
|
|
148
|
+
* @see CreatedOn
|
|
149
|
+
*/
|
|
150
|
+
export declare type DueOn = {
|
|
151
|
+
name: ElementName.DueOn;
|
|
152
|
+
};
|
|
146
153
|
/**
|
|
147
154
|
* Represents the props available for an LastCommit element.
|
|
148
155
|
* @see BadgeProps
|
|
@@ -32,6 +32,11 @@ export declare const CreatedOn: import("react").FC<DateTimeProps>;
|
|
|
32
32
|
* @see Text
|
|
33
33
|
*/
|
|
34
34
|
export declare const CreatedBy: import("react").FC<TextProps>;
|
|
35
|
+
/**
|
|
36
|
+
* Creates a DueOn Lozenge element using the data from dueOn in the Flexible UI Context.
|
|
37
|
+
* @see Lozenge
|
|
38
|
+
*/
|
|
39
|
+
export declare const DueOn: import("react").FC<LozengeProps>;
|
|
35
40
|
/**
|
|
36
41
|
* Creates an element that contains Last Commit hash
|
|
37
42
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ElementProps } from '../types';
|
|
2
3
|
export declare type LozengeAppearance = 'default' | 'inprogress' | 'moved' | 'new' | 'removed' | 'success';
|
|
3
4
|
export declare type LozengeProps = ElementProps & {
|
|
@@ -8,5 +9,5 @@ export declare type LozengeProps = ElementProps & {
|
|
|
8
9
|
/**
|
|
9
10
|
* The text to display within the lozenge.
|
|
10
11
|
*/
|
|
11
|
-
text?: string;
|
|
12
|
+
text?: string | React.ReactNode;
|
|
12
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20.0.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@atlaskit/icon-object": "^6.2.0",
|
|
34
34
|
"@atlaskit/icon-priority": "^6.3.0",
|
|
35
35
|
"@atlaskit/in-product-testing": "^0.1.0",
|
|
36
|
-
"@atlaskit/linking-common": "^1.
|
|
36
|
+
"@atlaskit/linking-common": "^1.2.0",
|
|
37
37
|
"@atlaskit/logo": "^13.7.0",
|
|
38
38
|
"@atlaskit/lozenge": "^11.1.0",
|
|
39
39
|
"@atlaskit/media-common": "^2.15.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"uuid": "^3.1.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@atlaskit/link-provider": "^1.0
|
|
61
|
+
"@atlaskit/link-provider": "^1.1.0",
|
|
62
62
|
"react": "^16.8.0",
|
|
63
63
|
"react-dom": "^16.8.0",
|
|
64
64
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
package/report.api.md
CHANGED