@atlaskit/smart-card 27.2.1 → 27.2.2

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 27.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#103697](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103697)
8
+ [`9b1bedee923a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9b1bedee923a) -
9
+ [ux] Added fixed width and min height to related links modal
10
+
3
11
  ## 27.2.1
4
12
 
5
13
  ### Patch Changes
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
22
22
  var context = exports.context = {
23
23
  componentName: 'smart-cards',
24
24
  packageName: "@atlaskit/smart-card",
25
- packageVersion: "27.2.1"
25
+ packageVersion: "27.2.2"
26
26
  };
27
27
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
28
28
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
17
17
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
18
18
  var PACKAGE_DATA = {
19
19
  packageName: "@atlaskit/smart-card",
20
- packageVersion: "27.2.1",
20
+ packageVersion: "27.2.2",
21
21
  componentName: 'linkUrl'
22
22
  };
23
23
  var Link = (0, _click.withLinkClickedEvent)('a');
@@ -11,18 +11,26 @@ var _reactIntlNext = require("react-intl-next");
11
11
  var _new = _interopRequireDefault(require("@atlaskit/button/new"));
12
12
  var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
13
13
  var _messages = require("../../../messages");
14
+ var _primitives = require("@atlaskit/primitives");
14
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
16
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
17
  /** @jsx jsx */
17
18
 
19
+ var fixedWidth = 'small'; // pre-defined 400px by Atlaskit
20
+
21
+ var boxStyles = (0, _primitives.xcss)({
22
+ height: '396px' // Specified by the designer as this will display 5 incoming links and 2 outgoing links
23
+ });
18
24
  var RelatedLinksBaseModal = function RelatedLinksBaseModal(_ref) {
19
25
  var onClose = _ref.onClose,
20
26
  showModal = _ref.showModal,
21
27
  children = _ref.children;
22
28
  return (0, _react.jsx)(_modalDialog.ModalTransition, null, showModal && (0, _react.jsx)(_modalDialog.default, {
23
29
  onClose: onClose,
24
- width: "small"
25
- }, (0, _react.jsx)(_modalDialog.ModalHeader, null, (0, _react.jsx)(_modalDialog.ModalTitle, null, (0, _react.jsx)(_reactIntlNext.FormattedMessage, _messages.messages.related_links_modal_title))), (0, _react.jsx)(_modalDialog.ModalBody, null, children), (0, _react.jsx)(_modalDialog.ModalFooter, null, (0, _react.jsx)(_new.default, {
30
+ width: fixedWidth
31
+ }, (0, _react.jsx)(_modalDialog.ModalHeader, null, (0, _react.jsx)(_modalDialog.ModalTitle, null, (0, _react.jsx)(_reactIntlNext.FormattedMessage, _messages.messages.related_links_modal_title))), (0, _react.jsx)(_modalDialog.ModalBody, null, (0, _react.jsx)(_primitives.Box, {
32
+ xcss: boxStyles
33
+ }, children)), (0, _react.jsx)(_modalDialog.ModalFooter, null, (0, _react.jsx)(_new.default, {
26
34
  appearance: "primary",
27
35
  onClick: onClose
28
36
  }, (0, _react.jsx)(_reactIntlNext.FormattedMessage, _messages.messages.close)))));
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
4
4
  export const context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card",
7
- packageVersion: "27.2.1"
7
+ packageVersion: "27.2.2"
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -7,7 +7,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
7
7
  import LinkWarningModal from './LinkWarningModal';
8
8
  const PACKAGE_DATA = {
9
9
  packageName: "@atlaskit/smart-card",
10
- packageVersion: "27.2.1",
10
+ packageVersion: "27.2.2",
11
11
  componentName: 'linkUrl'
12
12
  };
13
13
  const Link = withLinkClickedEvent('a');
@@ -5,6 +5,12 @@ import { FormattedMessage } from 'react-intl-next';
5
5
  import Button from '@atlaskit/button/new';
6
6
  import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
7
7
  import { messages } from '../../../messages';
8
+ import { Box, xcss } from '@atlaskit/primitives';
9
+ const fixedWidth = 'small'; // pre-defined 400px by Atlaskit
10
+
11
+ const boxStyles = xcss({
12
+ height: '396px' // Specified by the designer as this will display 5 incoming links and 2 outgoing links
13
+ });
8
14
  const RelatedLinksBaseModal = ({
9
15
  onClose,
10
16
  showModal,
@@ -12,8 +18,10 @@ const RelatedLinksBaseModal = ({
12
18
  }) => {
13
19
  return jsx(ModalTransition, null, showModal && jsx(Modal, {
14
20
  onClose: onClose,
15
- width: "small"
16
- }, jsx(ModalHeader, null, jsx(ModalTitle, null, jsx(FormattedMessage, messages.related_links_modal_title))), jsx(ModalBody, null, children), jsx(ModalFooter, null, jsx(Button, {
21
+ width: fixedWidth
22
+ }, jsx(ModalHeader, null, jsx(ModalTitle, null, jsx(FormattedMessage, messages.related_links_modal_title))), jsx(ModalBody, null, jsx(Box, {
23
+ xcss: boxStyles
24
+ }, children)), jsx(ModalFooter, null, jsx(Button, {
17
25
  appearance: "primary",
18
26
  onClick: onClose
19
27
  }, jsx(FormattedMessage, messages.close)))));
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
15
15
  export var context = {
16
16
  componentName: 'smart-cards',
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "27.2.1"
18
+ packageVersion: "27.2.2"
19
19
  };
20
20
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
21
21
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -10,7 +10,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
10
10
  import LinkWarningModal from './LinkWarningModal';
11
11
  var PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "27.2.1",
13
+ packageVersion: "27.2.2",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  var Link = withLinkClickedEvent('a');
@@ -5,14 +5,22 @@ import { FormattedMessage } from 'react-intl-next';
5
5
  import Button from '@atlaskit/button/new';
6
6
  import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
7
7
  import { messages } from '../../../messages';
8
+ import { Box, xcss } from '@atlaskit/primitives';
9
+ var fixedWidth = 'small'; // pre-defined 400px by Atlaskit
10
+
11
+ var boxStyles = xcss({
12
+ height: '396px' // Specified by the designer as this will display 5 incoming links and 2 outgoing links
13
+ });
8
14
  var RelatedLinksBaseModal = function RelatedLinksBaseModal(_ref) {
9
15
  var onClose = _ref.onClose,
10
16
  showModal = _ref.showModal,
11
17
  children = _ref.children;
12
18
  return jsx(ModalTransition, null, showModal && jsx(Modal, {
13
19
  onClose: onClose,
14
- width: "small"
15
- }, jsx(ModalHeader, null, jsx(ModalTitle, null, jsx(FormattedMessage, messages.related_links_modal_title))), jsx(ModalBody, null, children), jsx(ModalFooter, null, jsx(Button, {
20
+ width: fixedWidth
21
+ }, jsx(ModalHeader, null, jsx(ModalTitle, null, jsx(FormattedMessage, messages.related_links_modal_title))), jsx(ModalBody, null, jsx(Box, {
22
+ xcss: boxStyles
23
+ }, children)), jsx(ModalFooter, null, jsx(Button, {
16
24
  appearance: "primary",
17
25
  onClick: onClose
18
26
  }, jsx(FormattedMessage, messages.close)))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "27.2.1",
3
+ "version": "27.2.2",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -34,7 +34,7 @@
34
34
  "@atlaskit/avatar-group": "^9.6.0",
35
35
  "@atlaskit/badge": "^16.1.0",
36
36
  "@atlaskit/button": "^17.17.0",
37
- "@atlaskit/checkbox": "^13.3.0",
37
+ "@atlaskit/checkbox": "^13.4.0",
38
38
  "@atlaskit/dropdown-menu": "^12.10.0",
39
39
  "@atlaskit/form": "^10.2.0",
40
40
  "@atlaskit/frontend-utilities": "^2.7.0",