@atlaskit/smart-card 26.15.10 → 26.16.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 +1 -0
- package/dist/cjs/extractors/flexible/index.js +1 -0
- package/dist/cjs/extractors/flexible/utils.js +5 -1
- package/dist/cjs/messages.js +10 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleResolvedView.js +2 -1
- package/dist/cjs/view/BlockCard/views/flexible/styled.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/atlaskit-badge/index.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/elements/index.js +8 -2
- package/dist/cjs/view/FlexibleCard/components/elements/utils.js +4 -0
- package/dist/cjs/view/HoverCard/components/views/resolved/styled.js +3 -2
- package/dist/cjs/view/HoverCard/styled.js +1 -1
- package/dist/cjs/view/HoverCard/utils.js +1 -1
- package/dist/cjs/view/LinkUrl/index.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/messages.js +10 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleResolvedView.js +2 -1
- package/dist/es2019/view/BlockCard/views/flexible/styled.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/atlaskit-badge/index.js +7 -2
- package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +5 -0
- package/dist/es2019/view/FlexibleCard/components/elements/index.js +5 -0
- package/dist/es2019/view/FlexibleCard/components/elements/utils.js +5 -0
- package/dist/es2019/view/HoverCard/components/views/resolved/styled.js +5 -2
- package/dist/es2019/view/HoverCard/styled.js +4 -0
- package/dist/es2019/view/HoverCard/utils.js +1 -1
- package/dist/es2019/view/LinkUrl/index.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/messages.js +10 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/flexible/FlexibleResolvedView.js +2 -1
- package/dist/esm/view/BlockCard/views/flexible/styled.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/atlaskit-badge/index.js +6 -2
- package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +5 -0
- package/dist/esm/view/FlexibleCard/components/elements/index.js +5 -0
- package/dist/esm/view/FlexibleCard/components/elements/utils.js +4 -0
- package/dist/esm/view/HoverCard/components/views/resolved/styled.js +3 -2
- package/dist/esm/view/HoverCard/styled.js +1 -1
- package/dist/esm/view/HoverCard/utils.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/constants.d.ts +2 -1
- package/dist/types/extractors/flexible/utils.d.ts +1 -0
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/state/flexible-ui-context/types.d.ts +6 -0
- package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +8 -1
- package/dist/types/view/FlexibleCard/components/elements/date-time/index.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/elements/date-time/types.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/elements/index.d.ts +5 -0
- package/dist/types-ts4.5/constants.d.ts +2 -1
- package/dist/types-ts4.5/extractors/flexible/utils.d.ts +1 -0
- package/dist/types-ts4.5/messages.d.ts +1 -1
- 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 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/date-time/index.d.ts +1 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/date-time/types.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/index.d.ts +5 -0
- package/package.json +1 -1
- package/report.api.md +8 -0
- package/tmp/api-report-tmp.d.ts +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 26.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`b73f38b2588`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b73f38b2588) - Add new FlexUI element - SentOn
|
|
8
|
+
|
|
9
|
+
## 26.15.11
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`3d5b709c646`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3d5b709c646) - Update css styles for metadata block elements in Block & Hover Card
|
|
14
|
+
|
|
3
15
|
## 26.15.10
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/constants.js
CHANGED
|
@@ -141,6 +141,7 @@ var ElementName = /*#__PURE__*/function (ElementName) {
|
|
|
141
141
|
ElementName["Title"] = "Title";
|
|
142
142
|
ElementName["ViewCount"] = "ViewCount";
|
|
143
143
|
ElementName["VoteCount"] = "VoteCount";
|
|
144
|
+
ElementName["SentOn"] = "SentOn";
|
|
144
145
|
return ElementName;
|
|
145
146
|
}({});
|
|
146
147
|
/**
|
|
@@ -60,6 +60,7 @@ var extractFlexibleUiContext = function extractFlexibleUiContext() {
|
|
|
60
60
|
provider: (0, _extractProviderIcon.default)(data),
|
|
61
61
|
programmingLanguage: (0, _utils.extractProgrammingLanguage)(data),
|
|
62
62
|
readTime: (0, _utils.extractReadTime)(data),
|
|
63
|
+
sentOn: (0, _utils.extractSentOn)(data),
|
|
63
64
|
snippet: (0, _primitives.extractSummary)(data) || undefined,
|
|
64
65
|
// Explicitly set here to remove an empty string
|
|
65
66
|
sourceBranch: (0, _utils.extractSourceBranch)(data),
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.extractVoteCount = exports.extractViewCount = exports.extractTargetBranch = exports.extractSubscriberCount = exports.extractSubTasksProgress = exports.extractStoryPoints = exports.extractSourceBranch = exports.extractReadTime = exports.extractReactCount = exports.extractProgrammingLanguage = exports.extractPersonAssignedToAsArray = exports.extractOwnedBy = exports.extractModifiedBy = exports.extractLocation = exports.extractDueOn = exports.extractCreatedBy = exports.extractCommentCount = exports.extractChecklistProgress = exports.extractAttachmentCount = exports.extractAssignedTo = void 0;
|
|
7
|
+
exports.extractVoteCount = exports.extractViewCount = exports.extractTargetBranch = exports.extractSubscriberCount = exports.extractSubTasksProgress = exports.extractStoryPoints = exports.extractSourceBranch = exports.extractSentOn = exports.extractReadTime = exports.extractReactCount = exports.extractProgrammingLanguage = exports.extractPersonAssignedToAsArray = exports.extractOwnedBy = exports.extractModifiedBy = exports.extractLocation = exports.extractDueOn = exports.extractCreatedBy = exports.extractCommentCount = exports.extractChecklistProgress = exports.extractAttachmentCount = exports.extractAssignedTo = void 0;
|
|
8
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
9
|
var _linkExtractors = require("@atlaskit/link-extractors");
|
|
10
10
|
var extractLinkName = function extractLinkName(link) {
|
|
@@ -114,6 +114,10 @@ var extractReadTime = function extractReadTime(data) {
|
|
|
114
114
|
return extractValue(data, 'atlassian:readTimeInMinutes');
|
|
115
115
|
};
|
|
116
116
|
exports.extractReadTime = extractReadTime;
|
|
117
|
+
var extractSentOn = function extractSentOn(data) {
|
|
118
|
+
return extractValue(data, 'dateSent');
|
|
119
|
+
};
|
|
120
|
+
exports.extractSentOn = extractSentOn;
|
|
117
121
|
var extractStoryPoints = function extractStoryPoints(data) {
|
|
118
122
|
return extractValue(data, 'atlassian:storyPoints');
|
|
119
123
|
};
|
package/dist/cjs/messages.js
CHANGED
|
@@ -366,6 +366,16 @@ var messages = (0, _reactIntlNext.defineMessages)({
|
|
|
366
366
|
defaultMessage: 'Save',
|
|
367
367
|
description: 'Just the "save" word'
|
|
368
368
|
},
|
|
369
|
+
sent_on_relative: {
|
|
370
|
+
id: 'fabric.linking.sent_on_relative',
|
|
371
|
+
defaultMessage: 'Sent {context}',
|
|
372
|
+
description: 'Indicated when entity was sent (relative form)'
|
|
373
|
+
},
|
|
374
|
+
sent_on_absolute: {
|
|
375
|
+
id: 'fabric.linking.sent_on_absolute',
|
|
376
|
+
defaultMessage: 'Sent on {context}',
|
|
377
|
+
description: 'Indicated when entity was sent (absolute form)'
|
|
378
|
+
},
|
|
369
379
|
status_change_load_error: {
|
|
370
380
|
id: 'fabric.linking.status_change_load_error',
|
|
371
381
|
defaultMessage: 'We couldn’t load the statuses and transitions',
|
|
@@ -21,7 +21,7 @@ exports.ANALYTICS_CHANNEL = ANALYTICS_CHANNEL;
|
|
|
21
21
|
var context = {
|
|
22
22
|
componentName: 'smart-cards',
|
|
23
23
|
packageName: "@atlaskit/smart-card",
|
|
24
|
-
packageVersion: "26.
|
|
24
|
+
packageVersion: "26.16.0"
|
|
25
25
|
};
|
|
26
26
|
exports.context = context;
|
|
27
27
|
var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
@@ -83,7 +83,8 @@ var FlexibleResolvedView = function FlexibleResolvedView(_ref) {
|
|
|
83
83
|
overrideCss: _styled.metadataBlockCss
|
|
84
84
|
})), /*#__PURE__*/_react.default.createElement(_blocks.SnippetBlock, null), (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.enable-better-metadata_iojwg') && /*#__PURE__*/_react.default.createElement(_blocks.MetadataBlock, {
|
|
85
85
|
primary: bottomMetadata,
|
|
86
|
-
maxLines: 1
|
|
86
|
+
maxLines: 1,
|
|
87
|
+
overrideCss: _styled.metadataBlockCss
|
|
87
88
|
}), !isPreviewBlockErrored ? /*#__PURE__*/_react.default.createElement(_blocks.PreviewBlock, {
|
|
88
89
|
placement: _constants.MediaPlacement.Right,
|
|
89
90
|
ignoreContainerPadding: true,
|
|
@@ -12,7 +12,7 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
12
12
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
13
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
14
14
|
// in editor prosemirror adds padding-left so we need to overwrite it
|
|
15
|
-
var metadataBlockCss = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n /* primary element group */\n span[data-smart-element-avatar-group] {\n > ul {\n padding-left: 0px;\n }\n }\n"])));
|
|
15
|
+
var metadataBlockCss = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n /* primary element group */\n span[data-smart-element-avatar-group] {\n > ul {\n padding-left: 0px;\n }\n }\n [data-smart-element-group] {\n line-height: 1rem;\n }\n"])));
|
|
16
16
|
exports.metadataBlockCss = metadataBlockCss;
|
|
17
17
|
var titleBlockCss = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n ", "\n"])), (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.enable-better-metadata_iojwg') ? "gap: 0.5em;" : "", (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? "[data-smart-element=\"Title\"] {\n font-weight: 600;\n }" : "");
|
|
18
18
|
exports.titleBlockCss = titleBlockCss;
|
|
@@ -24,7 +24,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
24
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
25
|
// Determine whether the element can be display as inline/block.
|
|
26
26
|
|
|
27
|
-
var ElementDisplaySchema = (_ElementDisplaySchema = {}, (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.AssignedTo, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.AssignedToGroup, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.AttachmentCount, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.AuthorGroup, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.ChecklistProgress, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.CollaboratorGroup, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.CommentCount, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.CreatedBy, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.CreatedOn, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.DueOn, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.LatestCommit, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.LinkIcon, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.Location, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.ModifiedBy, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.ModifiedOn, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.OwnedBy, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.OwnedByGroup, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.Preview, ['block']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.Priority, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.ProgrammingLanguage, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.Provider, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.ReactCount, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.ReadTime, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.Snippet, ['block']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.SourceBranch, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.State, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.SubscriberCount, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.SubTasksProgress, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.StoryPoints, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.TargetBranch, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.Title, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.ViewCount, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.VoteCount, ['inline']), _ElementDisplaySchema);
|
|
27
|
+
var ElementDisplaySchema = (_ElementDisplaySchema = {}, (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.AssignedTo, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.AssignedToGroup, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.AttachmentCount, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.AuthorGroup, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.ChecklistProgress, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.CollaboratorGroup, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.CommentCount, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.CreatedBy, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.CreatedOn, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.DueOn, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.LatestCommit, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.LinkIcon, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.Location, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.ModifiedBy, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.ModifiedOn, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.OwnedBy, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.OwnedByGroup, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.Preview, ['block']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.Priority, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.ProgrammingLanguage, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.Provider, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.ReactCount, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.ReadTime, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.Snippet, ['block']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.SourceBranch, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.SentOn, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.State, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.SubscriberCount, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.SubTasksProgress, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.StoryPoints, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.TargetBranch, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.Title, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.ViewCount, ['inline']), (0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.VoteCount, ['inline']), _ElementDisplaySchema);
|
|
28
28
|
exports.ElementDisplaySchema = ElementDisplaySchema;
|
|
29
29
|
var getDirectionStyles = function getDirectionStyles(direction) {
|
|
30
30
|
switch (direction) {
|
|
@@ -5,10 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
8
9
|
var _react = _interopRequireDefault(require("react"));
|
|
9
10
|
var _badge = _interopRequireDefault(require("@atlaskit/badge"));
|
|
10
11
|
var _react2 = require("@emotion/react");
|
|
12
|
+
var _templateObject;
|
|
11
13
|
/** @jsx jsx */
|
|
14
|
+
var badgeStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n display: inline-flex;\n"])));
|
|
12
15
|
|
|
13
16
|
/**
|
|
14
17
|
* A base element that displays a visual indicator for a numeric value
|
|
@@ -26,7 +29,7 @@ var AtlaskitBadge = function AtlaskitBadge(_ref) {
|
|
|
26
29
|
return null;
|
|
27
30
|
}
|
|
28
31
|
return (0, _react2.jsx)("span", {
|
|
29
|
-
css: overrideCss,
|
|
32
|
+
css: [badgeStyles, overrideCss],
|
|
30
33
|
"data-fit-to-content": true,
|
|
31
34
|
"data-smart-element": name,
|
|
32
35
|
"data-smart-element-atlaskit-badge": true,
|
|
@@ -25,6 +25,10 @@ var typeToDescriptorMap = {
|
|
|
25
25
|
modified: {
|
|
26
26
|
relative: _messages.messages.modified_on_relative,
|
|
27
27
|
absolute: _messages.messages.modified_on_absolute
|
|
28
|
+
},
|
|
29
|
+
sent: {
|
|
30
|
+
relative: _messages.messages.sent_on_relative,
|
|
31
|
+
absolute: _messages.messages.sent_on_absolute
|
|
28
32
|
}
|
|
29
33
|
};
|
|
30
34
|
|
|
@@ -34,6 +38,7 @@ var typeToDescriptorMap = {
|
|
|
34
38
|
* @param {DateTimeProps} DateTimeProps - The props necessary for the DateTime element.
|
|
35
39
|
* @see CreatedOn
|
|
36
40
|
* @see ModifiedOn
|
|
41
|
+
* @see SentOn
|
|
37
42
|
*/
|
|
38
43
|
var DateTime = function DateTime(_ref) {
|
|
39
44
|
var date = _ref.date,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.VoteCount = exports.ViewCount = exports.Title = exports.TargetBranch = exports.SubscriberCount = exports.SubTasksProgress = exports.StoryPoints = exports.State = exports.SourceBranch = exports.Snippet = exports.ReadTime = exports.ReactCount = exports.Provider = exports.ProgrammingLanguage = exports.Priority = exports.Preview = exports.OwnedByGroup = exports.OwnedBy = exports.ModifiedOn = exports.ModifiedBy = exports.Location = exports.LinkIcon = exports.LatestCommit = exports.DueOn = exports.CreatedOn = exports.CreatedBy = exports.CommentCount = exports.CollaboratorGroup = exports.ChecklistProgress = exports.AuthorGroup = exports.AttachmentCount = exports.AssignedToGroup = exports.AssignedTo = void 0;
|
|
6
|
+
exports.VoteCount = exports.ViewCount = exports.Title = exports.TargetBranch = exports.SubscriberCount = exports.SubTasksProgress = exports.StoryPoints = exports.State = exports.SourceBranch = exports.Snippet = exports.SentOn = exports.ReadTime = exports.ReactCount = exports.Provider = exports.ProgrammingLanguage = exports.Priority = exports.Preview = exports.OwnedByGroup = exports.OwnedBy = exports.ModifiedOn = exports.ModifiedBy = exports.Location = exports.LinkIcon = exports.LatestCommit = exports.DueOn = exports.CreatedOn = exports.CreatedBy = exports.CommentCount = exports.CollaboratorGroup = exports.ChecklistProgress = exports.AuthorGroup = exports.AttachmentCount = exports.AssignedToGroup = exports.AssignedTo = void 0;
|
|
7
7
|
var _utils = require("./utils");
|
|
8
8
|
var _constants = require("../../../../constants");
|
|
9
9
|
// Attention: Keep the export name and element name the same.
|
|
@@ -145,11 +145,17 @@ var ReactCount = (0, _utils.createElement)(_constants.ElementName.ReactCount);
|
|
|
145
145
|
*/
|
|
146
146
|
exports.ReactCount = ReactCount;
|
|
147
147
|
var ReadTime = (0, _utils.createElement)(_constants.ElementName.ReadTime);
|
|
148
|
+
/**
|
|
149
|
+
* Creates a SentOn DateTime element using the data from SentOn in the Flexible UI Context.
|
|
150
|
+
* @see DateTime
|
|
151
|
+
*/
|
|
152
|
+
exports.ReadTime = ReadTime;
|
|
153
|
+
var SentOn = (0, _utils.createElement)(_constants.ElementName.SentOn);
|
|
148
154
|
/**
|
|
149
155
|
* Creates a Snippet element using the data from Snippet in the Flexible UI Context.
|
|
150
156
|
* @see Text
|
|
151
157
|
*/
|
|
152
|
-
exports.
|
|
158
|
+
exports.SentOn = SentOn;
|
|
153
159
|
var Snippet = (0, _utils.createElement)(_constants.ElementName.Snippet);
|
|
154
160
|
/**
|
|
155
161
|
* Creates a SourceBranch Text element using the data from sourceBranch in the Flexible UI Context.
|
|
@@ -102,6 +102,8 @@ var elementMappings = (_elementMappings = {}, (0, _defineProperty2.default)(_ele
|
|
|
102
102
|
component: _badge.default
|
|
103
103
|
}), (0, _defineProperty2.default)(_elementMappings, _constants.ElementName.ReadTime, {
|
|
104
104
|
component: _text.default
|
|
105
|
+
}), (0, _defineProperty2.default)(_elementMappings, _constants.ElementName.SentOn, {
|
|
106
|
+
component: _dateTime.default
|
|
105
107
|
}), (0, _defineProperty2.default)(_elementMappings, _constants.ElementName.Snippet, {
|
|
106
108
|
component: _text.default,
|
|
107
109
|
props: {
|
|
@@ -177,6 +179,8 @@ var getData = function getData(elementName, contextKey, context) {
|
|
|
177
179
|
return toFormattedTextProps(_messages.messages.modified_by, context.modifiedBy);
|
|
178
180
|
case _constants.ElementName.ModifiedOn:
|
|
179
181
|
return toDateTimeProps('modified', context.modifiedOn);
|
|
182
|
+
case _constants.ElementName.SentOn:
|
|
183
|
+
return toDateTimeProps('sent', context.sentOn);
|
|
180
184
|
case _constants.ElementName.ReadTime:
|
|
181
185
|
return toFormattedTextProps(_messages.messages.read_time, data);
|
|
182
186
|
case _constants.ElementName.Snippet:
|
|
@@ -8,11 +8,12 @@ exports.metadataBlockCss = exports.hiddenSnippetStyles = exports.footerBlockCss
|
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _styled = require("../../../styled");
|
|
11
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
12
|
var _templateObject, _templateObject2, _templateObject3;
|
|
12
13
|
var elementGap = '0.5rem';
|
|
13
|
-
var metadataBlockCss = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n gap: 0px;\n
|
|
14
|
+
var metadataBlockCss = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n gap: 0px;\n /* primary element group */\n [data-smart-element-group]:nth-of-type(1) {\n flex-grow: 7;\n\n // a separator between text-based element\n ", "\n\n /* horizontal spacing between elements in group */\n > span {\n margin-right: ", ";\n }\n }\n /* secondary element group */\n [data-smart-element-group]:nth-of-type(2) {\n flex-grow: 3;\n /* horizontal spacing between elements in group */\n > span {\n margin-left: ", ";\n }\n }\n ", "\n"])), _styled.separatorCss, elementGap, elementGap, (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.enable-better-metadata_iojwg') ? "[data-smart-element-group] {\n line-height: 1rem;\n }" : "");
|
|
14
15
|
exports.metadataBlockCss = metadataBlockCss;
|
|
15
|
-
var footerBlockCss = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n padding-top: 0.25rem
|
|
16
|
+
var footerBlockCss = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n"])), !(0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.enable-better-metadata_iojwg') ? "padding-top: 0.25rem;" : "");
|
|
16
17
|
exports.footerBlockCss = footerBlockCss;
|
|
17
18
|
var hiddenSnippetStyles = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n visibility: hidden;\n position: absolute;\n"])));
|
|
18
19
|
exports.hiddenSnippetStyles = hiddenSnippetStyles;
|
|
@@ -37,7 +37,7 @@ var CARD_GAP_PX = 10;
|
|
|
37
37
|
exports.CARD_GAP_PX = CARD_GAP_PX;
|
|
38
38
|
var blockGap = '0.5rem';
|
|
39
39
|
var elementGap = '0.5rem';
|
|
40
|
-
var separatorCss = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n [data-separator] + [data-separator]:before {\n margin-right: ", ";\n }\n"])), elementGap);
|
|
40
|
+
var separatorCss = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n [data-separator] + [data-separator]:before {\n margin-right: ", ";\n }\n ", "\n"])), elementGap, (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.enable-better-metadata_iojwg') ? " [data-smart-element-avatar-group] + [data-separator]:before {\n content: '\u2022';\n margin-right: ".concat(elementGap, ";\n }") : "");
|
|
41
41
|
exports.separatorCss = separatorCss;
|
|
42
42
|
var HoverCardContainer = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n background: none;\n border-width: 0;\n box-sizing: border-box;\n width: ", "rem;\n padding: 1rem;\n\n .", " {\n display: none;\n }\n"])), CARD_WIDTH_REM, _index.loadingPlaceholderClassName);
|
|
43
43
|
exports.HoverCardContainer = HoverCardContainer;
|
|
@@ -93,7 +93,7 @@ var getSimulatedBetterMetadata = function getSimulatedBetterMetadata() {
|
|
|
93
93
|
var types = data ? (0, _linkExtractors.extractType)(data) : undefined;
|
|
94
94
|
var defaultMetadata = {
|
|
95
95
|
topMetadataBlock: {
|
|
96
|
-
primary: [_constants.ElementName.
|
|
96
|
+
primary: [_constants.ElementName.AuthorGroup, _constants.ElementName.ModifiedOn],
|
|
97
97
|
secondary: [],
|
|
98
98
|
subtitle: []
|
|
99
99
|
},
|
|
@@ -18,7 +18,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
|
|
|
18
18
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
19
19
|
var PACKAGE_DATA = {
|
|
20
20
|
packageName: "@atlaskit/smart-card",
|
|
21
|
-
packageVersion: "26.
|
|
21
|
+
packageVersion: "26.16.0",
|
|
22
22
|
componentName: 'linkUrl'
|
|
23
23
|
};
|
|
24
24
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
package/dist/es2019/constants.js
CHANGED
|
@@ -133,6 +133,7 @@ export let ElementName = /*#__PURE__*/function (ElementName) {
|
|
|
133
133
|
ElementName["Title"] = "Title";
|
|
134
134
|
ElementName["ViewCount"] = "ViewCount";
|
|
135
135
|
ElementName["VoteCount"] = "VoteCount";
|
|
136
|
+
ElementName["SentOn"] = "SentOn";
|
|
136
137
|
return ElementName;
|
|
137
138
|
}({});
|
|
138
139
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { extractSummary } from '../common/primitives';
|
|
2
2
|
import { extractLinkIcon } from './icon';
|
|
3
|
-
import { extractAttachmentCount, extractChecklistProgress, extractCommentCount, extractCreatedBy, extractModifiedBy, extractProgrammingLanguage, extractSubscriberCount, extractViewCount, extractReactCount, extractVoteCount, extractSourceBranch, extractTargetBranch, extractDueOn, extractLocation, extractOwnedBy, extractAssignedTo, extractSubTasksProgress, extractStoryPoints, extractReadTime, extractPersonAssignedToAsArray } from './utils';
|
|
3
|
+
import { extractAttachmentCount, extractChecklistProgress, extractCommentCount, extractCreatedBy, extractModifiedBy, extractProgrammingLanguage, extractSubscriberCount, extractViewCount, extractReactCount, extractVoteCount, extractSourceBranch, extractTargetBranch, extractDueOn, extractLocation, extractOwnedBy, extractAssignedTo, extractSubTasksProgress, extractStoryPoints, extractReadTime, extractSentOn, extractPersonAssignedToAsArray } from './utils';
|
|
4
4
|
import { extractPersonsUpdatedBy } from './collaboratorGroup';
|
|
5
5
|
import { extractPersonCreatedBy, extractTitle, extractDateUpdated, extractDateCreated, extractLink, extractPersonOwnedBy } from '@atlaskit/link-extractors';
|
|
6
6
|
import extractPriority from './extract-priority';
|
|
@@ -53,6 +53,7 @@ const extractFlexibleUiContext = ({
|
|
|
53
53
|
provider: extractProviderIcon(data),
|
|
54
54
|
programmingLanguage: extractProgrammingLanguage(data),
|
|
55
55
|
readTime: extractReadTime(data),
|
|
56
|
+
sentOn: extractSentOn(data),
|
|
56
57
|
snippet: extractSummary(data) || undefined,
|
|
57
58
|
// Explicitly set here to remove an empty string
|
|
58
59
|
sourceBranch: extractSourceBranch(data),
|
|
@@ -68,6 +68,9 @@ export const extractSubTasksProgress = data => {
|
|
|
68
68
|
export const extractReadTime = data => {
|
|
69
69
|
return extractValue(data, 'atlassian:readTimeInMinutes');
|
|
70
70
|
};
|
|
71
|
+
export const extractSentOn = data => {
|
|
72
|
+
return extractValue(data, 'dateSent');
|
|
73
|
+
};
|
|
71
74
|
export const extractStoryPoints = data => {
|
|
72
75
|
return extractValue(data, 'atlassian:storyPoints');
|
|
73
76
|
};
|
package/dist/es2019/messages.js
CHANGED
|
@@ -360,6 +360,16 @@ export const messages = defineMessages({
|
|
|
360
360
|
defaultMessage: 'Save',
|
|
361
361
|
description: 'Just the "save" word'
|
|
362
362
|
},
|
|
363
|
+
sent_on_relative: {
|
|
364
|
+
id: 'fabric.linking.sent_on_relative',
|
|
365
|
+
defaultMessage: 'Sent {context}',
|
|
366
|
+
description: 'Indicated when entity was sent (relative form)'
|
|
367
|
+
},
|
|
368
|
+
sent_on_absolute: {
|
|
369
|
+
id: 'fabric.linking.sent_on_absolute',
|
|
370
|
+
defaultMessage: 'Sent on {context}',
|
|
371
|
+
description: 'Indicated when entity was sent (absolute form)'
|
|
372
|
+
},
|
|
363
373
|
status_change_load_error: {
|
|
364
374
|
id: 'fabric.linking.status_change_load_error',
|
|
365
375
|
defaultMessage: 'We couldn’t load the statuses and transitions',
|
|
@@ -3,7 +3,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
3
3
|
export const context = {
|
|
4
4
|
componentName: 'smart-cards',
|
|
5
5
|
packageName: "@atlaskit/smart-card",
|
|
6
|
-
packageVersion: "26.
|
|
6
|
+
packageVersion: "26.16.0"
|
|
7
7
|
};
|
|
8
8
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
9
9
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -67,7 +67,8 @@ const FlexibleResolvedView = ({
|
|
|
67
67
|
overrideCss: metadataBlockCss
|
|
68
68
|
})), /*#__PURE__*/React.createElement(SnippetBlock, null), getBooleanFF('platform.linking-platform.smart-card.enable-better-metadata_iojwg') && /*#__PURE__*/React.createElement(MetadataBlock, {
|
|
69
69
|
primary: bottomMetadata,
|
|
70
|
-
maxLines: 1
|
|
70
|
+
maxLines: 1,
|
|
71
|
+
overrideCss: metadataBlockCss
|
|
71
72
|
}), !isPreviewBlockErrored ? /*#__PURE__*/React.createElement(PreviewBlock, {
|
|
72
73
|
placement: MediaPlacement.Right,
|
|
73
74
|
ignoreContainerPadding: true,
|
|
@@ -11,6 +11,9 @@ export const metadataBlockCss = css`
|
|
|
11
11
|
padding-left: 0px;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
+
[data-smart-element-group] {
|
|
15
|
+
line-height: 1rem;
|
|
16
|
+
}
|
|
14
17
|
`;
|
|
15
18
|
export const titleBlockCss = css`
|
|
16
19
|
${getBooleanFF('platform.linking-platform.smart-card.enable-better-metadata_iojwg') ? `gap: 0.5em;` : ``}
|
|
@@ -35,6 +35,7 @@ export const ElementDisplaySchema = {
|
|
|
35
35
|
[ElementName.ReadTime]: ['inline'],
|
|
36
36
|
[ElementName.Snippet]: ['block'],
|
|
37
37
|
[ElementName.SourceBranch]: ['inline'],
|
|
38
|
+
[ElementName.SentOn]: ['inline'],
|
|
38
39
|
[ElementName.State]: ['inline'],
|
|
39
40
|
[ElementName.SubscriberCount]: ['inline'],
|
|
40
41
|
[ElementName.SubTasksProgress]: ['inline'],
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import AKBadge from '@atlaskit/badge';
|
|
4
|
-
import { jsx } from '@emotion/react';
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
5
|
+
const badgeStyles = css`
|
|
6
|
+
align-items: center;
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
`;
|
|
9
|
+
|
|
5
10
|
/**
|
|
6
11
|
* A base element that displays a visual indicator for a numeric value
|
|
7
12
|
* @internal
|
|
@@ -18,7 +23,7 @@ const AtlaskitBadge = ({
|
|
|
18
23
|
return null;
|
|
19
24
|
}
|
|
20
25
|
return jsx("span", {
|
|
21
|
-
css: overrideCss,
|
|
26
|
+
css: [badgeStyles, overrideCss],
|
|
22
27
|
"data-fit-to-content": true,
|
|
23
28
|
"data-smart-element": name,
|
|
24
29
|
"data-smart-element-atlaskit-badge": true,
|
|
@@ -21,6 +21,10 @@ const typeToDescriptorMap = {
|
|
|
21
21
|
modified: {
|
|
22
22
|
relative: messages.modified_on_relative,
|
|
23
23
|
absolute: messages.modified_on_absolute
|
|
24
|
+
},
|
|
25
|
+
sent: {
|
|
26
|
+
relative: messages.sent_on_relative,
|
|
27
|
+
absolute: messages.sent_on_absolute
|
|
24
28
|
}
|
|
25
29
|
};
|
|
26
30
|
|
|
@@ -30,6 +34,7 @@ const typeToDescriptorMap = {
|
|
|
30
34
|
* @param {DateTimeProps} DateTimeProps - The props necessary for the DateTime element.
|
|
31
35
|
* @see CreatedOn
|
|
32
36
|
* @see ModifiedOn
|
|
37
|
+
* @see SentOn
|
|
33
38
|
*/
|
|
34
39
|
const DateTime = ({
|
|
35
40
|
date,
|
|
@@ -117,6 +117,11 @@ export const ReactCount = createElement(ElementName.ReactCount);
|
|
|
117
117
|
* Creates a ReadTime Text element using the data from readTime in the Flexible UI Context
|
|
118
118
|
*/
|
|
119
119
|
export const ReadTime = createElement(ElementName.ReadTime);
|
|
120
|
+
/**
|
|
121
|
+
* Creates a SentOn DateTime element using the data from SentOn in the Flexible UI Context.
|
|
122
|
+
* @see DateTime
|
|
123
|
+
*/
|
|
124
|
+
export const SentOn = createElement(ElementName.SentOn);
|
|
120
125
|
/**
|
|
121
126
|
* Creates a Snippet element using the data from Snippet in the Flexible UI Context.
|
|
122
127
|
* @see Text
|
|
@@ -113,6 +113,9 @@ const elementMappings = {
|
|
|
113
113
|
[ElementName.ReadTime]: {
|
|
114
114
|
component: Text
|
|
115
115
|
},
|
|
116
|
+
[ElementName.SentOn]: {
|
|
117
|
+
component: DateTime
|
|
118
|
+
},
|
|
116
119
|
[ElementName.Snippet]: {
|
|
117
120
|
component: Text,
|
|
118
121
|
props: {
|
|
@@ -199,6 +202,8 @@ const getData = (elementName, contextKey, context) => {
|
|
|
199
202
|
return toFormattedTextProps(messages.modified_by, context.modifiedBy);
|
|
200
203
|
case ElementName.ModifiedOn:
|
|
201
204
|
return toDateTimeProps('modified', context.modifiedOn);
|
|
205
|
+
case ElementName.SentOn:
|
|
206
|
+
return toDateTimeProps('sent', context.sentOn);
|
|
202
207
|
case ElementName.ReadTime:
|
|
203
208
|
return toFormattedTextProps(messages.read_time, data);
|
|
204
209
|
case ElementName.Snippet:
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { separatorCss } from '../../../styled';
|
|
3
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
3
4
|
const elementGap = '0.5rem';
|
|
4
5
|
export const metadataBlockCss = css`
|
|
5
6
|
gap: 0px;
|
|
6
|
-
|
|
7
7
|
/* primary element group */
|
|
8
8
|
[data-smart-element-group]:nth-of-type(1) {
|
|
9
9
|
flex-grow: 7;
|
|
@@ -24,9 +24,12 @@ export const metadataBlockCss = css`
|
|
|
24
24
|
margin-left: ${elementGap};
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
+
${getBooleanFF('platform.linking-platform.smart-card.enable-better-metadata_iojwg') ? `[data-smart-element-group] {
|
|
28
|
+
line-height: 1rem;
|
|
29
|
+
}` : ``}
|
|
27
30
|
`;
|
|
28
31
|
export const footerBlockCss = css`
|
|
29
|
-
padding-top: 0.25rem
|
|
32
|
+
${!getBooleanFF('platform.linking-platform.smart-card.enable-better-metadata_iojwg') ? `padding-top: 0.25rem;` : ``}
|
|
30
33
|
`;
|
|
31
34
|
export const hiddenSnippetStyles = css`
|
|
32
35
|
visibility: hidden;
|
|
@@ -27,6 +27,10 @@ export const separatorCss = css`
|
|
|
27
27
|
[data-separator] + [data-separator]:before {
|
|
28
28
|
margin-right: ${elementGap};
|
|
29
29
|
}
|
|
30
|
+
${getBooleanFF('platform.linking-platform.smart-card.enable-better-metadata_iojwg') ? ` [data-smart-element-avatar-group] + [data-separator]:before {
|
|
31
|
+
content: '•';
|
|
32
|
+
margin-right: ${elementGap};
|
|
33
|
+
}` : ``}
|
|
30
34
|
`;
|
|
31
35
|
export const HoverCardContainer = css`
|
|
32
36
|
background: none;
|
|
@@ -78,7 +78,7 @@ export const getSimulatedBetterMetadata = (extensionKey = '', data) => {
|
|
|
78
78
|
const types = data ? extractType(data) : undefined;
|
|
79
79
|
const defaultMetadata = {
|
|
80
80
|
topMetadataBlock: {
|
|
81
|
-
primary: [ElementName.
|
|
81
|
+
primary: [ElementName.AuthorGroup, ElementName.ModifiedOn],
|
|
82
82
|
secondary: [],
|
|
83
83
|
subtitle: []
|
|
84
84
|
},
|
|
@@ -8,7 +8,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
8
8
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
9
9
|
const PACKAGE_DATA = {
|
|
10
10
|
packageName: "@atlaskit/smart-card",
|
|
11
|
-
packageVersion: "26.
|
|
11
|
+
packageVersion: "26.16.0",
|
|
12
12
|
componentName: 'linkUrl'
|
|
13
13
|
};
|
|
14
14
|
const Link = withLinkClickedEvent('a');
|
package/dist/esm/constants.js
CHANGED
|
@@ -133,6 +133,7 @@ export var ElementName = /*#__PURE__*/function (ElementName) {
|
|
|
133
133
|
ElementName["Title"] = "Title";
|
|
134
134
|
ElementName["ViewCount"] = "ViewCount";
|
|
135
135
|
ElementName["VoteCount"] = "VoteCount";
|
|
136
|
+
ElementName["SentOn"] = "SentOn";
|
|
136
137
|
return ElementName;
|
|
137
138
|
}({});
|
|
138
139
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { extractSummary } from '../common/primitives';
|
|
2
2
|
import { extractLinkIcon } from './icon';
|
|
3
|
-
import { extractAttachmentCount, extractChecklistProgress, extractCommentCount, extractCreatedBy, extractModifiedBy, extractProgrammingLanguage, extractSubscriberCount, extractViewCount, extractReactCount, extractVoteCount, extractSourceBranch, extractTargetBranch, extractDueOn, extractLocation, extractOwnedBy, extractAssignedTo, extractSubTasksProgress, extractStoryPoints, extractReadTime, extractPersonAssignedToAsArray } from './utils';
|
|
3
|
+
import { extractAttachmentCount, extractChecklistProgress, extractCommentCount, extractCreatedBy, extractModifiedBy, extractProgrammingLanguage, extractSubscriberCount, extractViewCount, extractReactCount, extractVoteCount, extractSourceBranch, extractTargetBranch, extractDueOn, extractLocation, extractOwnedBy, extractAssignedTo, extractSubTasksProgress, extractStoryPoints, extractReadTime, extractSentOn, extractPersonAssignedToAsArray } from './utils';
|
|
4
4
|
import { extractPersonsUpdatedBy } from './collaboratorGroup';
|
|
5
5
|
import { extractPersonCreatedBy, extractTitle, extractDateUpdated, extractDateCreated, extractLink, extractPersonOwnedBy } from '@atlaskit/link-extractors';
|
|
6
6
|
import extractPriority from './extract-priority';
|
|
@@ -53,6 +53,7 @@ var extractFlexibleUiContext = function extractFlexibleUiContext() {
|
|
|
53
53
|
provider: extractProviderIcon(data),
|
|
54
54
|
programmingLanguage: extractProgrammingLanguage(data),
|
|
55
55
|
readTime: extractReadTime(data),
|
|
56
|
+
sentOn: extractSentOn(data),
|
|
56
57
|
snippet: extractSummary(data) || undefined,
|
|
57
58
|
// Explicitly set here to remove an empty string
|
|
58
59
|
sourceBranch: extractSourceBranch(data),
|
|
@@ -88,6 +88,9 @@ export var extractSubTasksProgress = function extractSubTasksProgress(data) {
|
|
|
88
88
|
export var extractReadTime = function extractReadTime(data) {
|
|
89
89
|
return extractValue(data, 'atlassian:readTimeInMinutes');
|
|
90
90
|
};
|
|
91
|
+
export var extractSentOn = function extractSentOn(data) {
|
|
92
|
+
return extractValue(data, 'dateSent');
|
|
93
|
+
};
|
|
91
94
|
export var extractStoryPoints = function extractStoryPoints(data) {
|
|
92
95
|
return extractValue(data, 'atlassian:storyPoints');
|
|
93
96
|
};
|
package/dist/esm/messages.js
CHANGED
|
@@ -360,6 +360,16 @@ export var messages = defineMessages({
|
|
|
360
360
|
defaultMessage: 'Save',
|
|
361
361
|
description: 'Just the "save" word'
|
|
362
362
|
},
|
|
363
|
+
sent_on_relative: {
|
|
364
|
+
id: 'fabric.linking.sent_on_relative',
|
|
365
|
+
defaultMessage: 'Sent {context}',
|
|
366
|
+
description: 'Indicated when entity was sent (relative form)'
|
|
367
|
+
},
|
|
368
|
+
sent_on_absolute: {
|
|
369
|
+
id: 'fabric.linking.sent_on_absolute',
|
|
370
|
+
defaultMessage: 'Sent on {context}',
|
|
371
|
+
description: 'Indicated when entity was sent (absolute form)'
|
|
372
|
+
},
|
|
363
373
|
status_change_load_error: {
|
|
364
374
|
id: 'fabric.linking.status_change_load_error',
|
|
365
375
|
defaultMessage: 'We couldn’t load the statuses and transitions',
|
|
@@ -13,7 +13,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
13
13
|
export var context = {
|
|
14
14
|
componentName: 'smart-cards',
|
|
15
15
|
packageName: "@atlaskit/smart-card",
|
|
16
|
-
packageVersion: "26.
|
|
16
|
+
packageVersion: "26.16.0"
|
|
17
17
|
};
|
|
18
18
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
19
19
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -74,7 +74,8 @@ var FlexibleResolvedView = function FlexibleResolvedView(_ref) {
|
|
|
74
74
|
overrideCss: metadataBlockCss
|
|
75
75
|
})), /*#__PURE__*/React.createElement(SnippetBlock, null), getBooleanFF('platform.linking-platform.smart-card.enable-better-metadata_iojwg') && /*#__PURE__*/React.createElement(MetadataBlock, {
|
|
76
76
|
primary: bottomMetadata,
|
|
77
|
-
maxLines: 1
|
|
77
|
+
maxLines: 1,
|
|
78
|
+
overrideCss: metadataBlockCss
|
|
78
79
|
}), !isPreviewBlockErrored ? /*#__PURE__*/React.createElement(PreviewBlock, {
|
|
79
80
|
placement: MediaPlacement.Right,
|
|
80
81
|
ignoreContainerPadding: true,
|
|
@@ -6,7 +6,7 @@ import { N40 } from '@atlaskit/theme/colors';
|
|
|
6
6
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
|
|
8
8
|
// in editor prosemirror adds padding-left so we need to overwrite it
|
|
9
|
-
export var metadataBlockCss = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* primary element group */\n span[data-smart-element-avatar-group] {\n > ul {\n padding-left: 0px;\n }\n }\n"])));
|
|
9
|
+
export var metadataBlockCss = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* primary element group */\n span[data-smart-element-avatar-group] {\n > ul {\n padding-left: 0px;\n }\n }\n [data-smart-element-group] {\n line-height: 1rem;\n }\n"])));
|
|
10
10
|
export var titleBlockCss = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n ", "\n"])), getBooleanFF('platform.linking-platform.smart-card.enable-better-metadata_iojwg') ? "gap: 0.5em;" : "", getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? "[data-smart-element=\"Title\"] {\n font-weight: 600;\n }" : "");
|
|
11
11
|
var flexibleBlockCardElevationStyle = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n border-radius: 1.5px;\n box-shadow: ", ";\n margin: ", ";\n"])), tokens.elevation, "var(--ds-space-025, 2px)");
|
|
12
12
|
var refreshedFlexibleBlockCardStyle = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n & > div {\n border-radius: ", ";\n border: 1px solid ", ";\n }\n"])), "var(--ds-border-radius-300, 12px)", "var(--ds-border-input, ".concat(N40, ")"));
|
|
@@ -15,7 +15,7 @@ import ElementGroup from './element-group';
|
|
|
15
15
|
|
|
16
16
|
// Determine whether the element can be display as inline/block.
|
|
17
17
|
|
|
18
|
-
export var ElementDisplaySchema = (_ElementDisplaySchema = {}, _defineProperty(_ElementDisplaySchema, ElementName.AssignedTo, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.AssignedToGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.AttachmentCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.AuthorGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ChecklistProgress, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CollaboratorGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CommentCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CreatedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CreatedOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.DueOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.LatestCommit, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.LinkIcon, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Location, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ModifiedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ModifiedOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.OwnedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.OwnedByGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Preview, ['block']), _defineProperty(_ElementDisplaySchema, ElementName.Priority, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ProgrammingLanguage, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Provider, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ReactCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ReadTime, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Snippet, ['block']), _defineProperty(_ElementDisplaySchema, ElementName.SourceBranch, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.State, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.SubscriberCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.SubTasksProgress, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.StoryPoints, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.TargetBranch, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Title, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ViewCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.VoteCount, ['inline']), _ElementDisplaySchema);
|
|
18
|
+
export var ElementDisplaySchema = (_ElementDisplaySchema = {}, _defineProperty(_ElementDisplaySchema, ElementName.AssignedTo, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.AssignedToGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.AttachmentCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.AuthorGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ChecklistProgress, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CollaboratorGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CommentCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CreatedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CreatedOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.DueOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.LatestCommit, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.LinkIcon, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Location, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ModifiedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ModifiedOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.OwnedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.OwnedByGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Preview, ['block']), _defineProperty(_ElementDisplaySchema, ElementName.Priority, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ProgrammingLanguage, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Provider, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ReactCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ReadTime, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Snippet, ['block']), _defineProperty(_ElementDisplaySchema, ElementName.SourceBranch, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.SentOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.State, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.SubscriberCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.SubTasksProgress, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.StoryPoints, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.TargetBranch, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Title, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ViewCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.VoteCount, ['inline']), _ElementDisplaySchema);
|
|
19
19
|
var getDirectionStyles = function getDirectionStyles(direction) {
|
|
20
20
|
switch (direction) {
|
|
21
21
|
case SmartLinkDirection.Vertical:
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
var _templateObject;
|
|
1
3
|
/** @jsx jsx */
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import AKBadge from '@atlaskit/badge';
|
|
4
|
-
import { jsx } from '@emotion/react';
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
7
|
+
var badgeStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n align-items: center;\n display: inline-flex;\n"])));
|
|
8
|
+
|
|
5
9
|
/**
|
|
6
10
|
* A base element that displays a visual indicator for a numeric value
|
|
7
11
|
* @internal
|
|
@@ -18,7 +22,7 @@ var AtlaskitBadge = function AtlaskitBadge(_ref) {
|
|
|
18
22
|
return null;
|
|
19
23
|
}
|
|
20
24
|
return jsx("span", {
|
|
21
|
-
css: overrideCss,
|
|
25
|
+
css: [badgeStyles, overrideCss],
|
|
22
26
|
"data-fit-to-content": true,
|
|
23
27
|
"data-smart-element": name,
|
|
24
28
|
"data-smart-element-atlaskit-badge": true,
|
|
@@ -18,6 +18,10 @@ var typeToDescriptorMap = {
|
|
|
18
18
|
modified: {
|
|
19
19
|
relative: messages.modified_on_relative,
|
|
20
20
|
absolute: messages.modified_on_absolute
|
|
21
|
+
},
|
|
22
|
+
sent: {
|
|
23
|
+
relative: messages.sent_on_relative,
|
|
24
|
+
absolute: messages.sent_on_absolute
|
|
21
25
|
}
|
|
22
26
|
};
|
|
23
27
|
|
|
@@ -27,6 +31,7 @@ var typeToDescriptorMap = {
|
|
|
27
31
|
* @param {DateTimeProps} DateTimeProps - The props necessary for the DateTime element.
|
|
28
32
|
* @see CreatedOn
|
|
29
33
|
* @see ModifiedOn
|
|
34
|
+
* @see SentOn
|
|
30
35
|
*/
|
|
31
36
|
var DateTime = function DateTime(_ref) {
|
|
32
37
|
var date = _ref.date,
|
|
@@ -117,6 +117,11 @@ export var ReactCount = createElement(ElementName.ReactCount);
|
|
|
117
117
|
* Creates a ReadTime Text element using the data from readTime in the Flexible UI Context
|
|
118
118
|
*/
|
|
119
119
|
export var ReadTime = createElement(ElementName.ReadTime);
|
|
120
|
+
/**
|
|
121
|
+
* Creates a SentOn DateTime element using the data from SentOn in the Flexible UI Context.
|
|
122
|
+
* @see DateTime
|
|
123
|
+
*/
|
|
124
|
+
export var SentOn = createElement(ElementName.SentOn);
|
|
120
125
|
/**
|
|
121
126
|
* Creates a Snippet element using the data from Snippet in the Flexible UI Context.
|
|
122
127
|
* @see Text
|
|
@@ -92,6 +92,8 @@ var elementMappings = (_elementMappings = {}, _defineProperty(_elementMappings,
|
|
|
92
92
|
component: Badge
|
|
93
93
|
}), _defineProperty(_elementMappings, ElementName.ReadTime, {
|
|
94
94
|
component: Text
|
|
95
|
+
}), _defineProperty(_elementMappings, ElementName.SentOn, {
|
|
96
|
+
component: DateTime
|
|
95
97
|
}), _defineProperty(_elementMappings, ElementName.Snippet, {
|
|
96
98
|
component: Text,
|
|
97
99
|
props: {
|
|
@@ -167,6 +169,8 @@ var getData = function getData(elementName, contextKey, context) {
|
|
|
167
169
|
return toFormattedTextProps(messages.modified_by, context.modifiedBy);
|
|
168
170
|
case ElementName.ModifiedOn:
|
|
169
171
|
return toDateTimeProps('modified', context.modifiedOn);
|
|
172
|
+
case ElementName.SentOn:
|
|
173
|
+
return toDateTimeProps('sent', context.sentOn);
|
|
170
174
|
case ElementName.ReadTime:
|
|
171
175
|
return toFormattedTextProps(messages.read_time, data);
|
|
172
176
|
case ElementName.Snippet:
|
|
@@ -2,7 +2,8 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3;
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { separatorCss } from '../../../styled';
|
|
5
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
var elementGap = '0.5rem';
|
|
6
|
-
export var metadataBlockCss = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n gap: 0px;\n
|
|
7
|
-
export var footerBlockCss = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding-top: 0.25rem
|
|
7
|
+
export var metadataBlockCss = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n gap: 0px;\n /* primary element group */\n [data-smart-element-group]:nth-of-type(1) {\n flex-grow: 7;\n\n // a separator between text-based element\n ", "\n\n /* horizontal spacing between elements in group */\n > span {\n margin-right: ", ";\n }\n }\n /* secondary element group */\n [data-smart-element-group]:nth-of-type(2) {\n flex-grow: 3;\n /* horizontal spacing between elements in group */\n > span {\n margin-left: ", ";\n }\n }\n ", "\n"])), separatorCss, elementGap, elementGap, getBooleanFF('platform.linking-platform.smart-card.enable-better-metadata_iojwg') ? "[data-smart-element-group] {\n line-height: 1rem;\n }" : "");
|
|
8
|
+
export var footerBlockCss = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n"])), !getBooleanFF('platform.linking-platform.smart-card.enable-better-metadata_iojwg') ? "padding-top: 0.25rem;" : "");
|
|
8
9
|
export var hiddenSnippetStyles = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n visibility: hidden;\n position: absolute;\n"])));
|
|
@@ -27,7 +27,7 @@ export var CARD_WIDTH_REM = 24;
|
|
|
27
27
|
export var CARD_GAP_PX = 10;
|
|
28
28
|
var blockGap = '0.5rem';
|
|
29
29
|
var elementGap = '0.5rem';
|
|
30
|
-
export var separatorCss = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n [data-separator] + [data-separator]:before {\n margin-right: ", ";\n }\n"])), elementGap);
|
|
30
|
+
export var separatorCss = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n [data-separator] + [data-separator]:before {\n margin-right: ", ";\n }\n ", "\n"])), elementGap, getBooleanFF('platform.linking-platform.smart-card.enable-better-metadata_iojwg') ? " [data-smart-element-avatar-group] + [data-separator]:before {\n content: '\u2022';\n margin-right: ".concat(elementGap, ";\n }") : "");
|
|
31
31
|
export var HoverCardContainer = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: none;\n border-width: 0;\n box-sizing: border-box;\n width: ", "rem;\n padding: 1rem;\n\n .", " {\n display: none;\n }\n"])), CARD_WIDTH_REM, loadingPlaceholderClassName);
|
|
32
32
|
export var titleBlockCss = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n gap: ", ";\n\n ", "\n\n // title and subtitle element group\n [data-smart-element-group] {\n // gap between title and subtitle\n gap: 0.06rem;\n display: flex;\n /* subtitle element group */\n > [data-smart-element-group] {\n > span {\n margin-right: ", ";\n }\n }\n }\n\n ", "\n"])), blockGap, separatorCss, elementGap, getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? "[data-smart-element=\"Title\"] {\n font-weight: 600;\n }" : "");
|
|
33
33
|
export var getTransitionStyles = function getTransitionStyles(snippetHeight) {
|
|
@@ -85,7 +85,7 @@ export var getSimulatedBetterMetadata = function getSimulatedBetterMetadata() {
|
|
|
85
85
|
var types = data ? extractType(data) : undefined;
|
|
86
86
|
var defaultMetadata = {
|
|
87
87
|
topMetadataBlock: {
|
|
88
|
-
primary: [ElementName.
|
|
88
|
+
primary: [ElementName.AuthorGroup, ElementName.ModifiedOn],
|
|
89
89
|
secondary: [],
|
|
90
90
|
subtitle: []
|
|
91
91
|
},
|
|
@@ -11,7 +11,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
11
11
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
12
12
|
var PACKAGE_DATA = {
|
|
13
13
|
packageName: "@atlaskit/smart-card",
|
|
14
|
-
packageVersion: "26.
|
|
14
|
+
packageVersion: "26.16.0",
|
|
15
15
|
componentName: 'linkUrl'
|
|
16
16
|
};
|
|
17
17
|
var Link = withLinkClickedEvent('a');
|
|
@@ -20,4 +20,5 @@ export declare const extractChecklistProgress: (data: JsonLd.Data.BaseData) => s
|
|
|
20
20
|
export declare const extractLocation: (data: JsonLd.Data.BaseData) => LinkLocation | undefined;
|
|
21
21
|
export declare const extractSubTasksProgress: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
22
22
|
export declare const extractReadTime: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
23
|
+
export declare const extractSentOn: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
23
24
|
export declare const extractStoryPoints: (data: JsonLd.Data.BaseData) => number | undefined;
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MessageDescriptor } from 'react-intl-next';
|
|
2
2
|
export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_description' | 'request_denied_description';
|
|
3
|
-
export type MessageKey = 'assigned_to' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'could_not_load_link' | 'download' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey;
|
|
3
|
+
export type MessageKey = 'assigned_to' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'could_not_load_link' | 'download' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey;
|
|
4
4
|
type Messages = {
|
|
5
5
|
[K in MessageKey]: MessageDescriptor;
|
|
6
6
|
};
|
|
@@ -167,6 +167,12 @@ export type FlexibleUiDataContext = {
|
|
|
167
167
|
* Contains read time (time taken to read) of the resource
|
|
168
168
|
*/
|
|
169
169
|
readTime?: string;
|
|
170
|
+
/**
|
|
171
|
+
* Contains the ISO timestamp of when the resource was created.
|
|
172
|
+
* @type string - ISO Timestamp
|
|
173
|
+
* @see SentOn
|
|
174
|
+
*/
|
|
175
|
+
sentOn?: string;
|
|
170
176
|
/**
|
|
171
177
|
* Contains the source branch name of the link typed pull request.
|
|
172
178
|
* @type string
|
|
@@ -168,7 +168,7 @@ export type OnActionMenuOpenChangeOptions = {
|
|
|
168
168
|
/**
|
|
169
169
|
* A type that contains all the possible combinations of elements with their corresponding props.
|
|
170
170
|
*/
|
|
171
|
-
export type ElementItemProps = AssignedTo | AssignedToGroup | AttachmentCount | AuthorGroup | ChecklistProgress | CollaboratorGroup | CommentCount | CreatedBy | CreatedOn | DueOn | LatestCommit | LinkIcon | Location | ModifiedBy | ModifiedOn | OwnedBy | OwnedByGroup | Preview | Priority | ProgrammingLanguage | Provider | ReactCount | ReadTime | Snippet | SourceBranch | State | SubscriberCount | SubTasksProgress | StoryPoints | 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 | SentOn | 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
|
|
@@ -336,6 +336,13 @@ export type ReactCount = {
|
|
|
336
336
|
export type ReadTime = {
|
|
337
337
|
name: ElementName.ReadTime;
|
|
338
338
|
};
|
|
339
|
+
/**
|
|
340
|
+
* Represents the props available for an SentOn element.
|
|
341
|
+
* @see SentOn
|
|
342
|
+
*/
|
|
343
|
+
export type SentOn = {
|
|
344
|
+
name: ElementName.SentOn;
|
|
345
|
+
};
|
|
339
346
|
/**
|
|
340
347
|
* Represents the props available for an Snippet element.
|
|
341
348
|
* @see Snippet
|
|
@@ -7,6 +7,7 @@ import { DateTimeProps } from './types';
|
|
|
7
7
|
* @param {DateTimeProps} DateTimeProps - The props necessary for the DateTime element.
|
|
8
8
|
* @see CreatedOn
|
|
9
9
|
* @see ModifiedOn
|
|
10
|
+
* @see SentOn
|
|
10
11
|
*/
|
|
11
12
|
declare const DateTime: React.FC<DateTimeProps>;
|
|
12
13
|
export default DateTime;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ElementProps } from '../types';
|
|
2
|
-
export type DateTimeType = 'created' | 'modified';
|
|
2
|
+
export type DateTimeType = 'created' | 'modified' | 'sent';
|
|
3
3
|
export type DateTimeProps = ElementProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Whether the date time element text should contain "Modified" or "Created"
|
|
5
|
+
* Whether the date time element text should contain "Modified" or "Created" or "sent"
|
|
6
6
|
*/
|
|
7
7
|
type?: DateTimeType;
|
|
8
8
|
/**
|
|
@@ -122,6 +122,11 @@ export declare const ReactCount: import("react").FC<BadgeProps>;
|
|
|
122
122
|
* Creates a ReadTime Text element using the data from readTime in the Flexible UI Context
|
|
123
123
|
*/
|
|
124
124
|
export declare const ReadTime: import("react").FC<TextProps>;
|
|
125
|
+
/**
|
|
126
|
+
* Creates a SentOn DateTime element using the data from SentOn in the Flexible UI Context.
|
|
127
|
+
* @see DateTime
|
|
128
|
+
*/
|
|
129
|
+
export declare const SentOn: import("react").FC<DateTimeProps>;
|
|
125
130
|
/**
|
|
126
131
|
* Creates a Snippet element using the data from Snippet in the Flexible UI Context.
|
|
127
132
|
* @see Text
|
|
@@ -20,4 +20,5 @@ export declare const extractChecklistProgress: (data: JsonLd.Data.BaseData) => s
|
|
|
20
20
|
export declare const extractLocation: (data: JsonLd.Data.BaseData) => LinkLocation | undefined;
|
|
21
21
|
export declare const extractSubTasksProgress: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
22
22
|
export declare const extractReadTime: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
23
|
+
export declare const extractSentOn: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
23
24
|
export declare const extractStoryPoints: (data: JsonLd.Data.BaseData) => number | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MessageDescriptor } from 'react-intl-next';
|
|
2
2
|
export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_description' | 'request_denied_description';
|
|
3
|
-
export type MessageKey = 'assigned_to' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'could_not_load_link' | 'download' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey;
|
|
3
|
+
export type MessageKey = 'assigned_to' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'could_not_load_link' | 'download' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey;
|
|
4
4
|
type Messages = {
|
|
5
5
|
[K in MessageKey]: MessageDescriptor;
|
|
6
6
|
};
|
|
@@ -167,6 +167,12 @@ export type FlexibleUiDataContext = {
|
|
|
167
167
|
* Contains read time (time taken to read) of the resource
|
|
168
168
|
*/
|
|
169
169
|
readTime?: string;
|
|
170
|
+
/**
|
|
171
|
+
* Contains the ISO timestamp of when the resource was created.
|
|
172
|
+
* @type string - ISO Timestamp
|
|
173
|
+
* @see SentOn
|
|
174
|
+
*/
|
|
175
|
+
sentOn?: string;
|
|
170
176
|
/**
|
|
171
177
|
* Contains the source branch name of the link typed pull request.
|
|
172
178
|
* @type string
|
|
@@ -168,7 +168,7 @@ export type OnActionMenuOpenChangeOptions = {
|
|
|
168
168
|
/**
|
|
169
169
|
* A type that contains all the possible combinations of elements with their corresponding props.
|
|
170
170
|
*/
|
|
171
|
-
export type ElementItemProps = AssignedTo | AssignedToGroup | AttachmentCount | AuthorGroup | ChecklistProgress | CollaboratorGroup | CommentCount | CreatedBy | CreatedOn | DueOn | LatestCommit | LinkIcon | Location | ModifiedBy | ModifiedOn | OwnedBy | OwnedByGroup | Preview | Priority | ProgrammingLanguage | Provider | ReactCount | ReadTime | Snippet | SourceBranch | State | SubscriberCount | SubTasksProgress | StoryPoints | 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 | SentOn | 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
|
|
@@ -336,6 +336,13 @@ export type ReactCount = {
|
|
|
336
336
|
export type ReadTime = {
|
|
337
337
|
name: ElementName.ReadTime;
|
|
338
338
|
};
|
|
339
|
+
/**
|
|
340
|
+
* Represents the props available for an SentOn element.
|
|
341
|
+
* @see SentOn
|
|
342
|
+
*/
|
|
343
|
+
export type SentOn = {
|
|
344
|
+
name: ElementName.SentOn;
|
|
345
|
+
};
|
|
339
346
|
/**
|
|
340
347
|
* Represents the props available for an Snippet element.
|
|
341
348
|
* @see Snippet
|
|
@@ -7,6 +7,7 @@ import { DateTimeProps } from './types';
|
|
|
7
7
|
* @param {DateTimeProps} DateTimeProps - The props necessary for the DateTime element.
|
|
8
8
|
* @see CreatedOn
|
|
9
9
|
* @see ModifiedOn
|
|
10
|
+
* @see SentOn
|
|
10
11
|
*/
|
|
11
12
|
declare const DateTime: React.FC<DateTimeProps>;
|
|
12
13
|
export default DateTime;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ElementProps } from '../types';
|
|
2
|
-
export type DateTimeType = 'created' | 'modified';
|
|
2
|
+
export type DateTimeType = 'created' | 'modified' | 'sent';
|
|
3
3
|
export type DateTimeProps = ElementProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Whether the date time element text should contain "Modified" or "Created"
|
|
5
|
+
* Whether the date time element text should contain "Modified" or "Created" or "sent"
|
|
6
6
|
*/
|
|
7
7
|
type?: DateTimeType;
|
|
8
8
|
/**
|
|
@@ -122,6 +122,11 @@ export declare const ReactCount: import("react").FC<BadgeProps>;
|
|
|
122
122
|
* Creates a ReadTime Text element using the data from readTime in the Flexible UI Context
|
|
123
123
|
*/
|
|
124
124
|
export declare const ReadTime: import("react").FC<TextProps>;
|
|
125
|
+
/**
|
|
126
|
+
* Creates a SentOn DateTime element using the data from SentOn in the Flexible UI Context.
|
|
127
|
+
* @see DateTime
|
|
128
|
+
*/
|
|
129
|
+
export declare const SentOn: import("react").FC<DateTimeProps>;
|
|
125
130
|
/**
|
|
126
131
|
* Creates a Snippet element using the data from Snippet in the Flexible UI Context.
|
|
127
132
|
* @see Text
|
package/package.json
CHANGED
package/report.api.md
CHANGED
|
@@ -479,6 +479,7 @@ type ElementItemProps =
|
|
|
479
479
|
| Provider_2
|
|
480
480
|
| ReactCount
|
|
481
481
|
| ReadTime
|
|
482
|
+
| SentOn
|
|
482
483
|
| Snippet
|
|
483
484
|
| SourceBranch
|
|
484
485
|
| State_2
|
|
@@ -539,6 +540,8 @@ export enum ElementName {
|
|
|
539
540
|
// (undocumented)
|
|
540
541
|
ReadTime = 'ReadTime',
|
|
541
542
|
// (undocumented)
|
|
543
|
+
SentOn = 'SentOn',
|
|
544
|
+
// (undocumented)
|
|
542
545
|
Snippet = 'Snippet',
|
|
543
546
|
// (undocumented)
|
|
544
547
|
SourceBranch = 'SourceBranch',
|
|
@@ -808,6 +811,11 @@ type RetryOptions = {
|
|
|
808
811
|
// @public (undocumented)
|
|
809
812
|
type ScreenAuthPopupEventProps = CommonEventProps;
|
|
810
813
|
|
|
814
|
+
// @public
|
|
815
|
+
type SentOn = {
|
|
816
|
+
name: ElementName.SentOn;
|
|
817
|
+
};
|
|
818
|
+
|
|
811
819
|
export { SmartCardContext as Context };
|
|
812
820
|
export { SmartCardContext };
|
|
813
821
|
|
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 | StoryPoints | 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 | SentOn | Snippet | SourceBranch | State_2 | StoryPoints | SubTasksProgress | SubscriberCount | TargetBranch | Title | ViewCount | VoteCount;
|
|
358
358
|
|
|
359
359
|
// @public
|
|
360
360
|
export enum ElementName {
|
|
@@ -405,6 +405,8 @@ export enum ElementName {
|
|
|
405
405
|
// (undocumented)
|
|
406
406
|
ReadTime = "ReadTime",
|
|
407
407
|
// (undocumented)
|
|
408
|
+
SentOn = "SentOn",
|
|
409
|
+
// (undocumented)
|
|
408
410
|
Snippet = "Snippet",
|
|
409
411
|
// (undocumented)
|
|
410
412
|
SourceBranch = "SourceBranch",
|
|
@@ -661,6 +663,11 @@ type RetryOptions = {
|
|
|
661
663
|
// @public (undocumented)
|
|
662
664
|
type ScreenAuthPopupEventProps = CommonEventProps;
|
|
663
665
|
|
|
666
|
+
// @public
|
|
667
|
+
type SentOn = {
|
|
668
|
+
name: ElementName.SentOn;
|
|
669
|
+
};
|
|
670
|
+
|
|
664
671
|
export { SmartCardContext as Context }
|
|
665
672
|
export { SmartCardContext }
|
|
666
673
|
|