@atlaskit/smart-card 26.15.11 → 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.
Files changed (50) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/constants.js +1 -0
  3. package/dist/cjs/extractors/flexible/index.js +1 -0
  4. package/dist/cjs/extractors/flexible/utils.js +5 -1
  5. package/dist/cjs/messages.js +10 -0
  6. package/dist/cjs/utils/analytics/analytics.js +1 -1
  7. package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
  8. package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +5 -0
  9. package/dist/cjs/view/FlexibleCard/components/elements/index.js +8 -2
  10. package/dist/cjs/view/FlexibleCard/components/elements/utils.js +4 -0
  11. package/dist/cjs/view/LinkUrl/index.js +1 -1
  12. package/dist/es2019/constants.js +1 -0
  13. package/dist/es2019/extractors/flexible/index.js +2 -1
  14. package/dist/es2019/extractors/flexible/utils.js +3 -0
  15. package/dist/es2019/messages.js +10 -0
  16. package/dist/es2019/utils/analytics/analytics.js +1 -1
  17. package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +1 -0
  18. package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +5 -0
  19. package/dist/es2019/view/FlexibleCard/components/elements/index.js +5 -0
  20. package/dist/es2019/view/FlexibleCard/components/elements/utils.js +5 -0
  21. package/dist/es2019/view/LinkUrl/index.js +1 -1
  22. package/dist/esm/constants.js +1 -0
  23. package/dist/esm/extractors/flexible/index.js +2 -1
  24. package/dist/esm/extractors/flexible/utils.js +3 -0
  25. package/dist/esm/messages.js +10 -0
  26. package/dist/esm/utils/analytics/analytics.js +1 -1
  27. package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
  28. package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +5 -0
  29. package/dist/esm/view/FlexibleCard/components/elements/index.js +5 -0
  30. package/dist/esm/view/FlexibleCard/components/elements/utils.js +4 -0
  31. package/dist/esm/view/LinkUrl/index.js +1 -1
  32. package/dist/types/constants.d.ts +2 -1
  33. package/dist/types/extractors/flexible/utils.d.ts +1 -0
  34. package/dist/types/messages.d.ts +1 -1
  35. package/dist/types/state/flexible-ui-context/types.d.ts +6 -0
  36. package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +8 -1
  37. package/dist/types/view/FlexibleCard/components/elements/date-time/index.d.ts +1 -0
  38. package/dist/types/view/FlexibleCard/components/elements/date-time/types.d.ts +2 -2
  39. package/dist/types/view/FlexibleCard/components/elements/index.d.ts +5 -0
  40. package/dist/types-ts4.5/constants.d.ts +2 -1
  41. package/dist/types-ts4.5/extractors/flexible/utils.d.ts +1 -0
  42. package/dist/types-ts4.5/messages.d.ts +1 -1
  43. package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +6 -0
  44. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +8 -1
  45. package/dist/types-ts4.5/view/FlexibleCard/components/elements/date-time/index.d.ts +1 -0
  46. package/dist/types-ts4.5/view/FlexibleCard/components/elements/date-time/types.d.ts +2 -2
  47. package/dist/types-ts4.5/view/FlexibleCard/components/elements/index.d.ts +5 -0
  48. package/package.json +1 -1
  49. package/report.api.md +8 -0
  50. package/tmp/api-report-tmp.d.ts +8 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 26.15.11
4
10
 
5
11
  ### Patch Changes
@@ -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
  };
@@ -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.15.11"
24
+ packageVersion: "26.16.0"
25
25
  };
26
26
  exports.context = context;
27
27
  var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
@@ -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) {
@@ -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.ReadTime = ReadTime;
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:
@@ -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.15.11",
21
+ packageVersion: "26.16.0",
22
22
  componentName: 'linkUrl'
23
23
  };
24
24
  var Link = (0, _click.withLinkClickedEvent)('a');
@@ -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
  };
@@ -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.15.11"
6
+ packageVersion: "26.16.0"
7
7
  };
8
8
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
9
9
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -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'],
@@ -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:
@@ -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.15.11",
11
+ packageVersion: "26.16.0",
12
12
  componentName: 'linkUrl'
13
13
  };
14
14
  const Link = withLinkClickedEvent('a');
@@ -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
  };
@@ -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.15.11"
16
+ packageVersion: "26.16.0"
17
17
  };
18
18
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
19
19
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -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:
@@ -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:
@@ -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.15.11",
14
+ packageVersion: "26.16.0",
15
15
  componentName: 'linkUrl'
16
16
  };
17
17
  var Link = withLinkClickedEvent('a');
@@ -116,7 +116,8 @@ export declare enum ElementName {
116
116
  TargetBranch = "TargetBranch",
117
117
  Title = "Title",
118
118
  ViewCount = "ViewCount",
119
- VoteCount = "VoteCount"
119
+ VoteCount = "VoteCount",
120
+ SentOn = "SentOn"
120
121
  }
121
122
  /**
122
123
  * Flexible UI action (button)
@@ -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
@@ -116,7 +116,8 @@ export declare enum ElementName {
116
116
  TargetBranch = "TargetBranch",
117
117
  Title = "Title",
118
118
  ViewCount = "ViewCount",
119
- VoteCount = "VoteCount"
119
+ VoteCount = "VoteCount",
120
+ SentOn = "SentOn"
120
121
  }
121
122
  /**
122
123
  * Flexible UI action (button)
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "26.15.11",
3
+ "version": "26.16.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
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
 
@@ -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