@atlaskit/smart-card 17.7.8 → 17.7.11

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 (32) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/constants.js +1 -0
  3. package/dist/cjs/messages.js +5 -0
  4. package/dist/cjs/version.json +1 -1
  5. package/dist/cjs/view/FlexibleCard/components/actions/index.js +3 -1
  6. package/dist/cjs/view/FlexibleCard/components/actions/utils.js +12 -0
  7. package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +1 -1
  8. package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +1 -0
  9. package/dist/cjs/view/FlexibleCard/components/elements/media/index.js +12 -4
  10. package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +1 -0
  11. package/dist/es2019/constants.js +1 -0
  12. package/dist/es2019/messages.js +5 -0
  13. package/dist/es2019/version.json +1 -1
  14. package/dist/es2019/view/FlexibleCard/components/actions/index.js +1 -0
  15. package/dist/es2019/view/FlexibleCard/components/actions/utils.js +12 -0
  16. package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +5 -1
  17. package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +1 -0
  18. package/dist/es2019/view/FlexibleCard/components/elements/media/index.js +37 -4
  19. package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +1 -0
  20. package/dist/esm/constants.js +1 -0
  21. package/dist/esm/messages.js +5 -0
  22. package/dist/esm/version.json +1 -1
  23. package/dist/esm/view/FlexibleCard/components/actions/index.js +1 -0
  24. package/dist/esm/view/FlexibleCard/components/actions/utils.js +11 -0
  25. package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +2 -2
  26. package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +1 -0
  27. package/dist/esm/view/FlexibleCard/components/elements/media/index.js +12 -4
  28. package/dist/esm/view/FlexibleCard/components/elements/text/index.js +1 -0
  29. package/dist/types/constants.d.ts +1 -0
  30. package/dist/types/messages.d.ts +1 -1
  31. package/dist/types/view/FlexibleCard/components/actions/index.d.ts +1 -0
  32. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 17.7.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ca8c8db1440`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ca8c8db1440) - Flexible UI: Add separator between text/date-time elements
8
+
9
+ ## 17.7.10
10
+
11
+ ### Patch Changes
12
+
13
+ - [`e04b58c623e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e04b58c623e) - Add EditAction
14
+
15
+ ## 17.7.9
16
+
17
+ ### Patch Changes
18
+
19
+ - [`63d4f963f72`](https://bitbucket.org/atlassian/atlassian-frontend/commits/63d4f963f72) - Flexible UI: Set PreviewBlock image aspect ratio to 16:9
20
+
3
21
  ## 17.7.8
4
22
 
5
23
  ### Patch Changes
@@ -156,6 +156,7 @@ exports.ActionName = ActionName;
156
156
 
157
157
  (function (ActionName) {
158
158
  ActionName["DeleteAction"] = "DeleteAction";
159
+ ActionName["EditAction"] = "EditAction";
159
160
  ActionName["CustomAction"] = "CustomAction";
160
161
  })(ActionName || (exports.ActionName = ActionName = {}));
161
162
 
@@ -43,6 +43,11 @@ var messages = (0, _reactIntlNext.defineMessages)({
43
43
  defaultMessage: 'Delete',
44
44
  description: 'Allow a user to delete a link'
45
45
  },
46
+ edit: {
47
+ id: 'fabric.linking.edit',
48
+ defaultMessage: 'Edit',
49
+ description: 'Allow a user to edit a link'
50
+ },
46
51
  modified_by: {
47
52
  id: 'fabric.linking.updated_by',
48
53
  defaultMessage: 'Modified by {context}',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "17.7.8",
3
+ "version": "17.7.11",
4
4
  "sideEffects": false
5
5
  }
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.DeleteAction = exports.CustomAction = void 0;
6
+ exports.EditAction = exports.DeleteAction = exports.CustomAction = void 0;
7
7
 
8
8
  var _constants = require("../../../../constants");
9
9
 
@@ -16,5 +16,7 @@ var _utils = require("./utils");
16
16
  // DataActions infer that the action depends on the data from the context.
17
17
  var DeleteAction = (0, _utils.createUIAction)(_constants.ActionName.DeleteAction);
18
18
  exports.DeleteAction = DeleteAction;
19
+ var EditAction = (0, _utils.createUIAction)(_constants.ActionName.EditAction);
20
+ exports.EditAction = EditAction;
19
21
  var CustomAction = (0, _utils.createUIAction)(_constants.ActionName.CustomAction);
20
22
  exports.CustomAction = CustomAction;
@@ -27,6 +27,8 @@ var _messages = require("../../../../messages");
27
27
 
28
28
  var _cross = _interopRequireDefault(require("@atlaskit/icon/glyph/cross"));
29
29
 
30
+ var _edit = _interopRequireDefault(require("@atlaskit/icon/glyph/edit"));
31
+
30
32
  var _actionMappings;
31
33
 
32
34
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -50,6 +52,16 @@ var actionMappings = (_actionMappings = {}, (0, _defineProperty2.default)(_actio
50
52
  }),
51
53
  toolTipMessage: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.delete)
52
54
  }
55
+ }), (0, _defineProperty2.default)(_actionMappings, _constants.ActionName.EditAction, {
56
+ component: _action.default,
57
+ props: {
58
+ testId: 'smart-action-edit-action',
59
+ content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.edit),
60
+ icon: /*#__PURE__*/_react.default.createElement(_edit.default, {
61
+ label: "Edit"
62
+ }),
63
+ toolTipMessage: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.edit)
64
+ }
53
65
  }), _actionMappings);
54
66
 
55
67
  var getContextKey = function getContextKey(name) {
@@ -20,7 +20,7 @@ var _utils = require("../utils");
20
20
  var _templateObject;
21
21
 
22
22
  var getBlockStyles = function getBlockStyles(direction, size) {
23
- return (0, _core.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", "\n justify-content: flex-start;\n"])), (0, _utils.getBaseStyles)(direction, size));
23
+ return (0, _core.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", "\n justify-content: flex-start;\n [data-separator] + [data-separator]:before {\n content: '\u2022';\n margin-right: ", "rem;\n }\n"])), (0, _utils.getBaseStyles)(direction, size), (0, _utils.getGapSize)(size));
24
24
  };
25
25
 
26
26
  var Block = function Block(_ref) {
@@ -55,6 +55,7 @@ var DateTime = function DateTime(_ref) {
55
55
  });
56
56
  return (0, _core.jsx)("span", {
57
57
  css: styles,
58
+ "data-separator": true,
58
59
  "data-smart-element-date-time": true,
59
60
  "data-testid": testId
60
61
  }, (0, _core.jsx)(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, typeToDescriptorMap[type], {
@@ -17,9 +17,17 @@ var _imageIcon = _interopRequireDefault(require("../../common/image-icon"));
17
17
 
18
18
  var _templateObject;
19
19
 
20
- var styles = function styles(url) {
21
- return (0, _core.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n width: 100%;\n > img {\n max-width: 100%;\n max-height: 100%;\n }\n"])));
22
- };
20
+ /**
21
+ * Media: Image
22
+ * [aspect-ratio: 16 / 9] The context box is fixed to aspect ratio of 16:9.
23
+ * [object-fit: cover] The replaced content is sized to maintain
24
+ * its aspect ratio while filling the element's entire content box.
25
+ * If the object's aspect ratio does not match the aspect ratio of its box,
26
+ * then the object will be clipped to fit.
27
+ * [object-position] Center alignment of the selected replaced element's
28
+ * contents within the element's box.
29
+ */
30
+ var styles = (0, _core.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n aspect-ratio: 16 / 9;\n display: flex;\n width: 100%;\n\n // fallback\n @supports not (aspect-ratio: auto) {\n padding-top: 56.25%; // 16:9 ratio (9 / 16 = 0.5625)\n height: 0;\n position: relative;\n overflow: hidden;\n }\n\n > img {\n min-height: 100%;\n min-width: 100%;\n max-height: 100%;\n max-width: 100%;\n object-fit: cover;\n object-position: center center;\n\n // fallback\n @supports not (aspect-ratio: auto) {\n position: absolute;\n transform: translate(-50%, -50%);\n left: 50%;\n top: 50%;\n width: auto;\n height: auto;\n }\n }\n"])));
23
31
 
24
32
  var Media = function Media(_ref) {
25
33
  var _ref$testId = _ref.testId,
@@ -32,7 +40,7 @@ var Media = function Media(_ref) {
32
40
  }
33
41
 
34
42
  return (0, _core.jsx)("div", {
35
- css: styles(url),
43
+ css: styles,
36
44
  "data-smart-element-media": true,
37
45
  "data-testid": testId
38
46
  }, (0, _core.jsx)(_imageIcon.default, {
@@ -39,6 +39,7 @@ var Text = function Text(_ref) {
39
39
 
40
40
  return (0, _core.jsx)("span", {
41
41
  css: getStyles(maxLines, color),
42
+ "data-separator": true,
42
43
  "data-smart-element-text": true,
43
44
  "data-testid": testId
44
45
  }, (0, _utils.getFormattedMessage)(message) || content);
@@ -131,6 +131,7 @@ export let ActionName;
131
131
 
132
132
  (function (ActionName) {
133
133
  ActionName["DeleteAction"] = "DeleteAction";
134
+ ActionName["EditAction"] = "EditAction";
134
135
  ActionName["CustomAction"] = "CustomAction";
135
136
  })(ActionName || (ActionName = {}));
136
137
 
@@ -35,6 +35,11 @@ export const messages = defineMessages({
35
35
  defaultMessage: 'Delete',
36
36
  description: 'Allow a user to delete a link'
37
37
  },
38
+ edit: {
39
+ id: 'fabric.linking.edit',
40
+ defaultMessage: 'Edit',
41
+ description: 'Allow a user to edit a link'
42
+ },
38
43
  modified_by: {
39
44
  id: 'fabric.linking.updated_by',
40
45
  defaultMessage: 'Modified by {context}',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "17.7.8",
3
+ "version": "17.7.11",
4
4
  "sideEffects": false
5
5
  }
@@ -6,4 +6,5 @@ import { createUIAction } from './utils'; // Attention: Keep the export name and
6
6
  // DataActions infer that the action depends on the data from the context.
7
7
 
8
8
  export const DeleteAction = createUIAction(ActionName.DeleteAction);
9
+ export const EditAction = createUIAction(ActionName.EditAction);
9
10
  export const CustomAction = createUIAction(ActionName.CustomAction);
@@ -6,6 +6,7 @@ import Action from './action';
6
6
  import { FormattedMessage } from 'react-intl-next';
7
7
  import { messages } from '../../../../messages';
8
8
  import CrossIcon from '@atlaskit/icon/glyph/cross';
9
+ import EditIcon from '@atlaskit/icon/glyph/edit';
9
10
  const actionMappings = {
10
11
  [ActionName.CustomAction]: {
11
12
  component: Action,
@@ -21,6 +22,17 @@ const actionMappings = {
21
22
  }),
22
23
  toolTipMessage: /*#__PURE__*/React.createElement(FormattedMessage, messages.delete)
23
24
  }
25
+ },
26
+ [ActionName.EditAction]: {
27
+ component: Action,
28
+ props: {
29
+ testId: 'smart-action-edit-action',
30
+ content: /*#__PURE__*/React.createElement(FormattedMessage, messages.edit),
31
+ icon: /*#__PURE__*/React.createElement(EditIcon, {
32
+ label: "Edit"
33
+ }),
34
+ toolTipMessage: /*#__PURE__*/React.createElement(FormattedMessage, messages.edit)
35
+ }
24
36
  }
25
37
  };
26
38
 
@@ -2,11 +2,15 @@
2
2
  import React from 'react';
3
3
  import { css, jsx } from '@emotion/core';
4
4
  import { SmartLinkDirection, SmartLinkSize } from '../../../../../constants';
5
- import { getBaseStyles, renderChildren } from '../utils';
5
+ import { getBaseStyles, getGapSize, renderChildren } from '../utils';
6
6
 
7
7
  const getBlockStyles = (direction, size) => css`
8
8
  ${getBaseStyles(direction, size)}
9
9
  justify-content: flex-start;
10
+ [data-separator] + [data-separator]:before {
11
+ content: '•';
12
+ margin-right: ${getGapSize(size)}rem;
13
+ }
10
14
  `;
11
15
 
12
16
  const Block = ({
@@ -41,6 +41,7 @@ const DateTime = ({
41
41
  });
42
42
  return jsx("span", {
43
43
  css: styles,
44
+ "data-separator": true,
44
45
  "data-smart-element-date-time": true,
45
46
  "data-testid": testId
46
47
  }, jsx(FormattedMessage, _extends({}, typeToDescriptorMap[type], {
@@ -3,13 +3,46 @@ import React from 'react';
3
3
  import { css, jsx } from '@emotion/core';
4
4
  import ImageIcon from '../../common/image-icon';
5
5
 
6
- const styles = url => css`
6
+ /**
7
+ * Media: Image
8
+ * [aspect-ratio: 16 / 9] The context box is fixed to aspect ratio of 16:9.
9
+ * [object-fit: cover] The replaced content is sized to maintain
10
+ * its aspect ratio while filling the element's entire content box.
11
+ * If the object's aspect ratio does not match the aspect ratio of its box,
12
+ * then the object will be clipped to fit.
13
+ * [object-position] Center alignment of the selected replaced element's
14
+ * contents within the element's box.
15
+ */
16
+ const styles = css`
17
+ aspect-ratio: 16 / 9;
7
18
  display: flex;
8
- justify-content: center;
9
19
  width: 100%;
20
+
21
+ // fallback
22
+ @supports not (aspect-ratio: auto) {
23
+ padding-top: 56.25%; // 16:9 ratio (9 / 16 = 0.5625)
24
+ height: 0;
25
+ position: relative;
26
+ overflow: hidden;
27
+ }
28
+
10
29
  > img {
11
- max-width: 100%;
30
+ min-height: 100%;
31
+ min-width: 100%;
12
32
  max-height: 100%;
33
+ max-width: 100%;
34
+ object-fit: cover;
35
+ object-position: center center;
36
+
37
+ // fallback
38
+ @supports not (aspect-ratio: auto) {
39
+ position: absolute;
40
+ transform: translate(-50%, -50%);
41
+ left: 50%;
42
+ top: 50%;
43
+ width: auto;
44
+ height: auto;
45
+ }
13
46
  }
14
47
  `;
15
48
 
@@ -23,7 +56,7 @@ const Media = ({
23
56
  }
24
57
 
25
58
  return jsx("div", {
26
- css: styles(url),
59
+ css: styles,
27
60
  "data-smart-element-media": true,
28
61
  "data-testid": testId
29
62
  }, jsx(ImageIcon, {
@@ -24,6 +24,7 @@ const Text = ({
24
24
 
25
25
  return jsx("span", {
26
26
  css: getStyles(maxLines, color),
27
+ "data-separator": true,
27
28
  "data-smart-element-text": true,
28
29
  "data-testid": testId
29
30
  }, getFormattedMessage(message) || content);
@@ -131,6 +131,7 @@ export var ActionName;
131
131
 
132
132
  (function (ActionName) {
133
133
  ActionName["DeleteAction"] = "DeleteAction";
134
+ ActionName["EditAction"] = "EditAction";
134
135
  ActionName["CustomAction"] = "CustomAction";
135
136
  })(ActionName || (ActionName = {}));
136
137
 
@@ -35,6 +35,11 @@ export var messages = defineMessages({
35
35
  defaultMessage: 'Delete',
36
36
  description: 'Allow a user to delete a link'
37
37
  },
38
+ edit: {
39
+ id: 'fabric.linking.edit',
40
+ defaultMessage: 'Edit',
41
+ description: 'Allow a user to edit a link'
42
+ },
38
43
  modified_by: {
39
44
  id: 'fabric.linking.updated_by',
40
45
  defaultMessage: 'Modified by {context}',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "17.7.8",
3
+ "version": "17.7.11",
4
4
  "sideEffects": false
5
5
  }
@@ -6,4 +6,5 @@ import { createUIAction } from './utils'; // Attention: Keep the export name and
6
6
  // DataActions infer that the action depends on the data from the context.
7
7
 
8
8
  export var DeleteAction = createUIAction(ActionName.DeleteAction);
9
+ export var EditAction = createUIAction(ActionName.EditAction);
9
10
  export var CustomAction = createUIAction(ActionName.CustomAction);
@@ -14,6 +14,7 @@ import Action from './action';
14
14
  import { FormattedMessage } from 'react-intl-next';
15
15
  import { messages } from '../../../../messages';
16
16
  import CrossIcon from '@atlaskit/icon/glyph/cross';
17
+ import EditIcon from '@atlaskit/icon/glyph/edit';
17
18
  var actionMappings = (_actionMappings = {}, _defineProperty(_actionMappings, ActionName.CustomAction, {
18
19
  component: Action,
19
20
  props: {}
@@ -27,6 +28,16 @@ var actionMappings = (_actionMappings = {}, _defineProperty(_actionMappings, Act
27
28
  }),
28
29
  toolTipMessage: /*#__PURE__*/React.createElement(FormattedMessage, messages.delete)
29
30
  }
31
+ }), _defineProperty(_actionMappings, ActionName.EditAction, {
32
+ component: Action,
33
+ props: {
34
+ testId: 'smart-action-edit-action',
35
+ content: /*#__PURE__*/React.createElement(FormattedMessage, messages.edit),
36
+ icon: /*#__PURE__*/React.createElement(EditIcon, {
37
+ label: "Edit"
38
+ }),
39
+ toolTipMessage: /*#__PURE__*/React.createElement(FormattedMessage, messages.edit)
40
+ }
30
41
  }), _actionMappings);
31
42
 
32
43
  var getContextKey = function getContextKey(name) {
@@ -6,10 +6,10 @@ var _templateObject;
6
6
  import React from 'react';
7
7
  import { css, jsx } from '@emotion/core';
8
8
  import { SmartLinkDirection, SmartLinkSize } from '../../../../../constants';
9
- import { getBaseStyles, renderChildren } from '../utils';
9
+ import { getBaseStyles, getGapSize, renderChildren } from '../utils';
10
10
 
11
11
  var getBlockStyles = function getBlockStyles(direction, size) {
12
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n justify-content: flex-start;\n"])), getBaseStyles(direction, size));
12
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n justify-content: flex-start;\n [data-separator] + [data-separator]:before {\n content: '\u2022';\n margin-right: ", "rem;\n }\n"])), getBaseStyles(direction, size), getGapSize(size));
13
13
  };
14
14
 
15
15
  var Block = function Block(_ref) {
@@ -39,6 +39,7 @@ var DateTime = function DateTime(_ref) {
39
39
  });
40
40
  return jsx("span", {
41
41
  css: styles,
42
+ "data-separator": true,
42
43
  "data-smart-element-date-time": true,
43
44
  "data-testid": testId
44
45
  }, jsx(FormattedMessage, _extends({}, typeToDescriptorMap[type], {
@@ -7,9 +7,17 @@ import React from 'react';
7
7
  import { css, jsx } from '@emotion/core';
8
8
  import ImageIcon from '../../common/image-icon';
9
9
 
10
- var styles = function styles(url) {
11
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n width: 100%;\n > img {\n max-width: 100%;\n max-height: 100%;\n }\n"])));
12
- };
10
+ /**
11
+ * Media: Image
12
+ * [aspect-ratio: 16 / 9] The context box is fixed to aspect ratio of 16:9.
13
+ * [object-fit: cover] The replaced content is sized to maintain
14
+ * its aspect ratio while filling the element's entire content box.
15
+ * If the object's aspect ratio does not match the aspect ratio of its box,
16
+ * then the object will be clipped to fit.
17
+ * [object-position] Center alignment of the selected replaced element's
18
+ * contents within the element's box.
19
+ */
20
+ var styles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n aspect-ratio: 16 / 9;\n display: flex;\n width: 100%;\n\n // fallback\n @supports not (aspect-ratio: auto) {\n padding-top: 56.25%; // 16:9 ratio (9 / 16 = 0.5625)\n height: 0;\n position: relative;\n overflow: hidden;\n }\n\n > img {\n min-height: 100%;\n min-width: 100%;\n max-height: 100%;\n max-width: 100%;\n object-fit: cover;\n object-position: center center;\n\n // fallback\n @supports not (aspect-ratio: auto) {\n position: absolute;\n transform: translate(-50%, -50%);\n left: 50%;\n top: 50%;\n width: auto;\n height: auto;\n }\n }\n"])));
13
21
 
14
22
  var Media = function Media(_ref) {
15
23
  var _ref$testId = _ref.testId,
@@ -22,7 +30,7 @@ var Media = function Media(_ref) {
22
30
  }
23
31
 
24
32
  return jsx("div", {
25
- css: styles(url),
33
+ css: styles,
26
34
  "data-smart-element-media": true,
27
35
  "data-testid": testId
28
36
  }, jsx(ImageIcon, {
@@ -28,6 +28,7 @@ var Text = function Text(_ref) {
28
28
 
29
29
  return jsx("span", {
30
30
  css: getStyles(maxLines, color),
31
+ "data-separator": true,
31
32
  "data-smart-element-text": true,
32
33
  "data-testid": testId
33
34
  }, getFormattedMessage(message) || content);
@@ -102,6 +102,7 @@ export declare enum ElementName {
102
102
  */
103
103
  export declare enum ActionName {
104
104
  DeleteAction = "DeleteAction",
105
+ EditAction = "EditAction",
105
106
  CustomAction = "CustomAction"
106
107
  }
107
108
  /**
@@ -1,5 +1,5 @@
1
1
  import { MessageDescriptor } from 'react-intl-next';
2
- export declare type MessageKey = 'cannot_find_link' | 'click_to_join' | 'connect_link_account' | 'created_by' | 'created_on' | 'delete' | 'modified_by' | 'modified_on' | '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' | 'restricted_link' | 'request_access' | 'request_denied';
2
+ export declare type MessageKey = 'cannot_find_link' | 'click_to_join' | 'connect_link_account' | 'created_by' | 'created_on' | 'delete' | 'edit' | 'modified_by' | 'modified_on' | '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' | 'restricted_link' | 'request_access' | 'request_denied';
3
3
  declare type Messages = {
4
4
  [K in MessageKey]: MessageDescriptor;
5
5
  };
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { ActionProps } from './action/types';
3
3
  export declare const DeleteAction: import("react").FC<ActionProps>;
4
+ export declare const EditAction: import("react").FC<ActionProps>;
4
5
  export declare const CustomAction: import("react").FC<ActionProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "17.7.8",
3
+ "version": "17.7.11",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,7 +36,7 @@
36
36
  "@atlaskit/logo": "^13.5.0",
37
37
  "@atlaskit/lozenge": "^11.1.0",
38
38
  "@atlaskit/media-common": "^2.11.0",
39
- "@atlaskit/media-ui": "^20.0.0",
39
+ "@atlaskit/media-ui": "^20.1.0",
40
40
  "@atlaskit/modal-dialog": "^12.2.0",
41
41
  "@atlaskit/outbound-auth-flow-client": "^3.3.0",
42
42
  "@atlaskit/spinner": "^15.1.0",