@atlaskit/smart-card 36.2.7 → 36.3.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 (39) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/common/ui/icons/generic-error-icon.compiled.css +3 -0
  3. package/dist/cjs/common/ui/icons/generic-error-icon.js +54 -0
  4. package/dist/cjs/messages.js +10 -0
  5. package/dist/cjs/utils/analytics/analytics.js +1 -1
  6. package/dist/cjs/view/LinkUrl/index.js +1 -1
  7. package/dist/cjs/view/RelatedLinksModal/views/errored/index.js +9 -1
  8. package/dist/cjs/view/RelatedLinksModal/views/resolved/index.js +1 -1
  9. package/dist/es2019/common/ui/icons/generic-error-icon.compiled.css +3 -0
  10. package/dist/es2019/common/ui/icons/generic-error-icon.js +41 -0
  11. package/dist/es2019/messages.js +10 -0
  12. package/dist/es2019/utils/analytics/analytics.js +1 -1
  13. package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/index.js +1 -1
  14. package/dist/es2019/view/LinkUrl/index.js +1 -1
  15. package/dist/es2019/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +1 -1
  16. package/dist/es2019/view/RelatedLinksModal/components/related-link-item/index.js +1 -1
  17. package/dist/es2019/view/RelatedLinksModal/components/related-links-list/index.js +1 -1
  18. package/dist/es2019/view/RelatedLinksModal/views/errored/index.js +7 -1
  19. package/dist/es2019/view/RelatedLinksModal/views/resolved/index.js +2 -2
  20. package/dist/es2019/view/RelatedLinksModal/views/unavailable/index.js +2 -2
  21. package/dist/esm/common/ui/icons/generic-error-icon.compiled.css +3 -0
  22. package/dist/esm/common/ui/icons/generic-error-icon.js +44 -0
  23. package/dist/esm/messages.js +10 -0
  24. package/dist/esm/utils/analytics/analytics.js +1 -1
  25. package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/index.js +1 -1
  26. package/dist/esm/view/LinkUrl/index.js +1 -1
  27. package/dist/esm/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +1 -1
  28. package/dist/esm/view/RelatedLinksModal/components/related-link-item/index.js +1 -1
  29. package/dist/esm/view/RelatedLinksModal/components/related-links-list/index.js +1 -1
  30. package/dist/esm/view/RelatedLinksModal/views/errored/index.js +9 -1
  31. package/dist/esm/view/RelatedLinksModal/views/resolved/index.js +2 -2
  32. package/dist/esm/view/RelatedLinksModal/views/unavailable/index.js +2 -2
  33. package/dist/types/common/ui/icons/generic-error-icon.d.ts +2 -0
  34. package/dist/types/messages.d.ts +1 -1
  35. package/dist/types/view/RelatedLinksModal/components/related-links-list/index.d.ts +1 -1
  36. package/dist/types-ts4.5/common/ui/icons/generic-error-icon.d.ts +2 -0
  37. package/dist/types-ts4.5/messages.d.ts +1 -1
  38. package/dist/types-ts4.5/view/RelatedLinksModal/components/related-links-list/index.d.ts +1 -1
  39. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 36.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#138242](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/138242)
8
+ [`38ec880107c77`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/38ec880107c77) -
9
+ [ux] EDM-11840 Related Links design refresh V2 error state
10
+
3
11
  ## 36.2.7
4
12
 
5
13
  ### Patch Changes
@@ -0,0 +1,3 @@
1
+ ._1bsbwdok{width:var(--_cjikvn)}
2
+ ._1e0c1ule{display:block}
3
+ ._4t3iwdok{height:var(--_cjikvn)}
@@ -0,0 +1,54 @@
1
+ /* generic-error-icon.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.GenericErrorIcon = void 0;
10
+ require("./generic-error-icon.compiled.css");
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _runtime = require("@compiled/react/runtime");
13
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
+ 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
+ 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 && {}.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
+ var SIZE = 96;
17
+ var genericErrorStyles = null;
18
+ var GenericErrorIcon = exports.GenericErrorIcon = function GenericErrorIcon(props) {
19
+ return /*#__PURE__*/React.createElement("svg", (0, _extends2.default)({
20
+ viewBox: "0 0 96 96",
21
+ fill: "none",
22
+ xmlns: "http://www.w3.org/2000/svg"
23
+ }, props, {
24
+ className: (0, _runtime.ax)(["_1bsbwdok _4t3iwdok _1e0c1ule"]),
25
+ style: {
26
+ "--_cjikvn": (0, _runtime.ix)("".concat(SIZE, "px"))
27
+ }
28
+ }), /*#__PURE__*/React.createElement("path", {
29
+ fill: "#fff",
30
+ d: "M64.861 32.06a27.753 27.753 0 0 0-2.667-4.133 28.187 28.187 0 0 0-3.376-3.669c-6.985-6.311-15.57-6.89-23.609-2.53a30.226 30.226 0 0 0-4.056 2.656 30.624 30.624 0 0 0-3.735 3.4c-6.225 6.717-7.82 15.154-3.505 23.462a28.108 28.108 0 0 0 2.698 4.193 27.67 27.67 0 0 0 3.33 3.62c6.94 6.266 15.518 6.85 23.596 2.507a30.492 30.492 0 0 0 4.23-2.758 30.07 30.07 0 0 0 3.593-3.257c6.252-6.692 7.847-15.161 3.494-23.49h.007Z"
31
+ }), /*#__PURE__*/React.createElement("path", {
32
+ fill: "#DDDEE1",
33
+ d: "M43.092 66.774c-5.306 0-10.382-1.997-14.75-5.938a30.405 30.405 0 0 1-3.62-3.93 30.243 30.243 0 0 1-2.928-4.553c-4.657-8.961-3.247-18.509 3.871-26.192a33.271 33.271 0 0 1 4.025-3.67 32.834 32.834 0 0 1 4.378-2.869c9.209-4.995 18.816-3.951 26.353 2.86a30.945 30.945 0 0 1 3.665 3.98 30.303 30.303 0 0 1 2.898 4.488c4.705 9.003 3.295 18.565-3.868 26.231a32.148 32.148 0 0 1-3.879 3.515 33.415 33.415 0 0 1-4.562 2.975c-3.858 2.073-7.782 3.1-11.583 3.1v.003Zm2.53-45.486c-3.019 0-6.147.84-9.275 2.54a28.433 28.433 0 0 0-3.735 2.448 28.059 28.059 0 0 0-3.442 3.135c-5.746 6.203-6.86 13.566-3.135 20.736a25.395 25.395 0 0 0 2.472 3.83 25.304 25.304 0 0 0 3.044 3.309c5.99 5.41 13.398 6.182 20.862 2.175a28.02 28.02 0 0 0 3.899-2.545 28.03 28.03 0 0 0 3.31-2.999c5.777-6.182 6.883-13.552 3.124-20.75a25.553 25.553 0 0 0-2.44-3.777 25.848 25.848 0 0 0-3.087-3.358c-3.49-3.153-7.442-4.744-11.59-4.744h-.006Z"
34
+ }), /*#__PURE__*/React.createElement("path", {
35
+ fill: "#DDDEE1",
36
+ d: "M62.822 59.694c-1.235-1.72-2.562-1.71-3.857-.708-1.215.939-1.54 2.21-.244 3.882l1.48 1.913 4.102-3.174-1.48-1.913Z"
37
+ }), /*#__PURE__*/React.createElement("path", {
38
+ fill: "#DDDEE1",
39
+ d: "m65.334 60.811-6.159 4.762L70.748 80.54l6.16-4.761L65.333 60.81Z"
40
+ }), /*#__PURE__*/React.createElement("path", {
41
+ fill: "#B7B9BE",
42
+ d: "m64.344 61.577-4.178 3.23 3.925 5.076 4.178-3.23-3.925-5.076Z"
43
+ }), /*#__PURE__*/React.createElement("path", {
44
+ fill: "#DDDEE1",
45
+ fillRule: "evenodd",
46
+ d: "M55.057 33.452 36.213 52.296l-2.468-2.469 18.844-18.844 2.468 2.469Z",
47
+ clipRule: "evenodd"
48
+ }), /*#__PURE__*/React.createElement("path", {
49
+ fill: "#DDDEE1",
50
+ fillRule: "evenodd",
51
+ d: "M52.589 52.296 33.745 33.452l2.468-2.469 18.844 18.844-2.468 2.469Z",
52
+ clipRule: "evenodd"
53
+ }));
54
+ };
@@ -751,6 +751,11 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
751
751
  defaultMessage: 'Something went wrong',
752
752
  description: 'Title for related links error'
753
753
  },
754
+ related_links_modal_error_title: {
755
+ id: 'fabric.linking.related_links_modal_error_title',
756
+ defaultMessage: "We're having trouble loading related links",
757
+ description: 'Title for related links error'
758
+ },
754
759
  related_links_modal_unavailable_title: {
755
760
  id: 'fabric.linking.related_links_modal_unavailable_title',
756
761
  defaultMessage: "We couldn't find any related links",
@@ -761,6 +766,11 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
761
766
  defaultMessage: 'We ran into an issue trying to load recent links. Check your connection or refresh to try again.',
762
767
  description: 'Informs the user that there was a problem loading related links'
763
768
  },
769
+ related_links_modal_error_description: {
770
+ id: 'fabric.linking.related_links_modal_error_description',
771
+ defaultMessage: 'Check your connection or refresh the page to try again',
772
+ description: 'Informs the user that there was a problem loading related links'
773
+ },
764
774
  related_links_modal_unavailable_description: {
765
775
  id: 'fabric.linking.related_links_modal_unavailable_description',
766
776
  defaultMessage: 'We continuously review and add related links for updated pages or other content types',
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
11
11
  var context = exports.context = {
12
12
  componentName: 'smart-cards',
13
13
  packageName: "@atlaskit/smart-card",
14
- packageVersion: "36.2.7"
14
+ packageVersion: "36.3.0"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -20,7 +20,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
20
20
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
21
21
  var PACKAGE_DATA = {
22
22
  packageName: "@atlaskit/smart-card",
23
- packageVersion: "36.2.7",
23
+ packageVersion: "36.3.0",
24
24
  componentName: 'linkUrl'
25
25
  };
26
26
  var Anchor = (0, _click.withLinkClickedEvent)('a');
@@ -7,12 +7,20 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _reactIntlNext = require("react-intl-next");
10
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
+ var _genericErrorIcon = require("../../../../common/ui/icons/generic-error-icon");
10
12
  var _messages = require("../../../../messages");
11
13
  var _EmptyState = require("../../components/EmptyState");
12
14
  var _errorSvg = require("./error-svg");
13
15
  var RelatedLinksErroredView = function RelatedLinksErroredView() {
14
16
  var intl = (0, _reactIntlNext.useIntl)();
15
- return /*#__PURE__*/_react.default.createElement(_EmptyState.EmptyState, {
17
+ return (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v2') ? /*#__PURE__*/_react.default.createElement(_EmptyState.EmptyState, {
18
+ renderImage: function renderImage() {
19
+ return /*#__PURE__*/_react.default.createElement(_genericErrorIcon.GenericErrorIcon, null);
20
+ },
21
+ header: intl.formatMessage(_messages.messages.related_links_modal_error_title),
22
+ description: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.related_links_modal_error_description)
23
+ }) : /*#__PURE__*/_react.default.createElement(_EmptyState.EmptyState, {
16
24
  renderImage: function renderImage() {
17
25
  return /*#__PURE__*/_react.default.createElement(_errorSvg.ErrorSVG, null);
18
26
  },
@@ -17,7 +17,7 @@ var RelatedLinksResolvedView = function RelatedLinksResolvedView(_ref) {
17
17
  incomingLinks = _ref$incomingLinks === void 0 ? [] : _ref$incomingLinks,
18
18
  _ref$outgoingLinks = _ref.outgoingLinks,
19
19
  outgoingLinks = _ref$outgoingLinks === void 0 ? [] : _ref$outgoingLinks;
20
- var _React$useState = _react.default.useState(""),
20
+ var _React$useState = _react.default.useState(''),
21
21
  _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),
22
22
  selected = _React$useState2[0],
23
23
  setSelected = _React$useState2[1];
@@ -0,0 +1,3 @@
1
+ ._1bsb16xz{width:6pc}
2
+ ._1e0c1ule{display:block}
3
+ ._4t3i16xz{height:6pc}
@@ -0,0 +1,41 @@
1
+ /* generic-error-icon.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import _extends from "@babel/runtime/helpers/extends";
3
+ import "./generic-error-icon.compiled.css";
4
+ import * as React from 'react';
5
+ import { ax, ix } from "@compiled/react/runtime";
6
+ const SIZE = 96;
7
+ const genericErrorStyles = null;
8
+ export const GenericErrorIcon = props => {
9
+ return /*#__PURE__*/React.createElement("svg", _extends({
10
+ viewBox: "0 0 96 96",
11
+ fill: "none",
12
+ xmlns: "http://www.w3.org/2000/svg"
13
+ }, props, {
14
+ className: ax(["_1bsb16xz _4t3i16xz _1e0c1ule"])
15
+ }), /*#__PURE__*/React.createElement("path", {
16
+ fill: "#fff",
17
+ d: "M64.861 32.06a27.753 27.753 0 0 0-2.667-4.133 28.187 28.187 0 0 0-3.376-3.669c-6.985-6.311-15.57-6.89-23.609-2.53a30.226 30.226 0 0 0-4.056 2.656 30.624 30.624 0 0 0-3.735 3.4c-6.225 6.717-7.82 15.154-3.505 23.462a28.108 28.108 0 0 0 2.698 4.193 27.67 27.67 0 0 0 3.33 3.62c6.94 6.266 15.518 6.85 23.596 2.507a30.492 30.492 0 0 0 4.23-2.758 30.07 30.07 0 0 0 3.593-3.257c6.252-6.692 7.847-15.161 3.494-23.49h.007Z"
18
+ }), /*#__PURE__*/React.createElement("path", {
19
+ fill: "#DDDEE1",
20
+ d: "M43.092 66.774c-5.306 0-10.382-1.997-14.75-5.938a30.405 30.405 0 0 1-3.62-3.93 30.243 30.243 0 0 1-2.928-4.553c-4.657-8.961-3.247-18.509 3.871-26.192a33.271 33.271 0 0 1 4.025-3.67 32.834 32.834 0 0 1 4.378-2.869c9.209-4.995 18.816-3.951 26.353 2.86a30.945 30.945 0 0 1 3.665 3.98 30.303 30.303 0 0 1 2.898 4.488c4.705 9.003 3.295 18.565-3.868 26.231a32.148 32.148 0 0 1-3.879 3.515 33.415 33.415 0 0 1-4.562 2.975c-3.858 2.073-7.782 3.1-11.583 3.1v.003Zm2.53-45.486c-3.019 0-6.147.84-9.275 2.54a28.433 28.433 0 0 0-3.735 2.448 28.059 28.059 0 0 0-3.442 3.135c-5.746 6.203-6.86 13.566-3.135 20.736a25.395 25.395 0 0 0 2.472 3.83 25.304 25.304 0 0 0 3.044 3.309c5.99 5.41 13.398 6.182 20.862 2.175a28.02 28.02 0 0 0 3.899-2.545 28.03 28.03 0 0 0 3.31-2.999c5.777-6.182 6.883-13.552 3.124-20.75a25.553 25.553 0 0 0-2.44-3.777 25.848 25.848 0 0 0-3.087-3.358c-3.49-3.153-7.442-4.744-11.59-4.744h-.006Z"
21
+ }), /*#__PURE__*/React.createElement("path", {
22
+ fill: "#DDDEE1",
23
+ d: "M62.822 59.694c-1.235-1.72-2.562-1.71-3.857-.708-1.215.939-1.54 2.21-.244 3.882l1.48 1.913 4.102-3.174-1.48-1.913Z"
24
+ }), /*#__PURE__*/React.createElement("path", {
25
+ fill: "#DDDEE1",
26
+ d: "m65.334 60.811-6.159 4.762L70.748 80.54l6.16-4.761L65.333 60.81Z"
27
+ }), /*#__PURE__*/React.createElement("path", {
28
+ fill: "#B7B9BE",
29
+ d: "m64.344 61.577-4.178 3.23 3.925 5.076 4.178-3.23-3.925-5.076Z"
30
+ }), /*#__PURE__*/React.createElement("path", {
31
+ fill: "#DDDEE1",
32
+ fillRule: "evenodd",
33
+ d: "M55.057 33.452 36.213 52.296l-2.468-2.469 18.844-18.844 2.468 2.469Z",
34
+ clipRule: "evenodd"
35
+ }), /*#__PURE__*/React.createElement("path", {
36
+ fill: "#DDDEE1",
37
+ fillRule: "evenodd",
38
+ d: "M52.589 52.296 33.745 33.452l2.468-2.469 18.844 18.844-2.468 2.469Z",
39
+ clipRule: "evenodd"
40
+ }));
41
+ };
@@ -745,6 +745,11 @@ export const messages = defineMessages({
745
745
  defaultMessage: 'Something went wrong',
746
746
  description: 'Title for related links error'
747
747
  },
748
+ related_links_modal_error_title: {
749
+ id: 'fabric.linking.related_links_modal_error_title',
750
+ defaultMessage: `We're having trouble loading related links`,
751
+ description: 'Title for related links error'
752
+ },
748
753
  related_links_modal_unavailable_title: {
749
754
  id: 'fabric.linking.related_links_modal_unavailable_title',
750
755
  defaultMessage: `We couldn't find any related links`,
@@ -755,6 +760,11 @@ export const messages = defineMessages({
755
760
  defaultMessage: 'We ran into an issue trying to load recent links. Check your connection or refresh to try again.',
756
761
  description: 'Informs the user that there was a problem loading related links'
757
762
  },
763
+ related_links_modal_error_description: {
764
+ id: 'fabric.linking.related_links_modal_error_description',
765
+ defaultMessage: 'Check your connection or refresh the page to try again',
766
+ description: 'Informs the user that there was a problem loading related links'
767
+ },
758
768
  related_links_modal_unavailable_description: {
759
769
  id: 'fabric.linking.related_links_modal_unavailable_description',
760
770
  defaultMessage: 'We continuously review and add related links for updated pages or other content types',
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
2
2
  export const context = {
3
3
  componentName: 'smart-cards',
4
4
  packageName: "@atlaskit/smart-card",
5
- packageVersion: "36.2.7"
5
+ packageVersion: "36.3.0"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { lazy, useCallback } from 'react';
3
3
  import { FormattedMessage } from 'react-intl-next';
4
- import { fg } from "@atlaskit/platform-feature-flags";
4
+ import { fg } from '@atlaskit/platform-feature-flags';
5
5
  import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
6
6
  import { messages } from '../../../../../messages';
7
7
  import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
10
10
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
11
11
  const PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "36.2.7",
13
+ packageVersion: "36.3.0",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  const Anchor = withLinkClickedEvent('a');
@@ -6,7 +6,7 @@ import { useCallback, useRef } from 'react';
6
6
  import { FormattedMessage } from 'react-intl-next';
7
7
  import Button from '@atlaskit/button/new';
8
8
  import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
9
- import { fg } from "@atlaskit/platform-feature-flags";
9
+ import { fg } from '@atlaskit/platform-feature-flags';
10
10
  import { Box } from '@atlaskit/primitives/compiled';
11
11
  import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
12
12
  import { messages } from '../../../messages';
@@ -2,7 +2,7 @@
2
2
  import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { fg } from "@atlaskit/platform-feature-flags";
5
+ import { fg } from '@atlaskit/platform-feature-flags';
6
6
  import { SmartLinkStatus } from '../../../../constants';
7
7
  import { Card, ElementName, SmartLinkPosition, SmartLinkSize, SmartLinkTheme, TitleBlock } from '../../../../index';
8
8
  const hoverStyleOld = null;
@@ -3,7 +3,7 @@ import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { FormattedMessage } from 'react-intl-next';
6
- import { fg } from "@atlaskit/platform-feature-flags";
6
+ import { fg } from '@atlaskit/platform-feature-flags';
7
7
  import { Box, Stack } from '@atlaskit/primitives/compiled';
8
8
  import { messages } from '../../../../messages';
9
9
  import RelatedLinkItem from '../related-link-item';
@@ -1,11 +1,17 @@
1
1
  import React from 'react';
2
2
  import { FormattedMessage, useIntl } from 'react-intl-next';
3
+ import { fg } from "@atlaskit/platform-feature-flags";
4
+ import { GenericErrorIcon } from "../../../../common/ui/icons/generic-error-icon";
3
5
  import { messages } from '../../../../messages';
4
6
  import { EmptyState } from '../../components/EmptyState';
5
7
  import { ErrorSVG } from './error-svg';
6
8
  const RelatedLinksErroredView = () => {
7
9
  const intl = useIntl();
8
- return /*#__PURE__*/React.createElement(EmptyState, {
10
+ return fg('platform-linking-visual-refresh-v2') ? /*#__PURE__*/React.createElement(EmptyState, {
11
+ renderImage: () => /*#__PURE__*/React.createElement(GenericErrorIcon, null),
12
+ header: intl.formatMessage(messages.related_links_modal_error_title),
13
+ description: /*#__PURE__*/React.createElement(FormattedMessage, messages.related_links_modal_error_description)
14
+ }) : /*#__PURE__*/React.createElement(EmptyState, {
9
15
  renderImage: () => /*#__PURE__*/React.createElement(ErrorSVG, null),
10
16
  header: intl.formatMessage(messages.related_links_modal_error_header),
11
17
  description: /*#__PURE__*/React.createElement(FormattedMessage, messages.related_links_modal_error_message)
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { AnalyticsContext } from '@atlaskit/analytics-next';
3
- import { fg } from "@atlaskit/platform-feature-flags";
3
+ import { fg } from '@atlaskit/platform-feature-flags';
4
4
  import { Stack } from '@atlaskit/primitives/compiled';
5
5
  import { messages } from '../../../../messages';
6
6
  import RelatedLinksList from '../../components/related-links-list';
@@ -8,7 +8,7 @@ const RelatedLinksResolvedView = ({
8
8
  incomingLinks = [],
9
9
  outgoingLinks = []
10
10
  }) => {
11
- const [selected, setSelected] = React.useState("");
11
+ const [selected, setSelected] = React.useState('');
12
12
  const handleSelectedUpdate = selectedKey => {
13
13
  setSelected(selectedKey);
14
14
  };
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { FormattedMessage, useIntl } from 'react-intl-next';
3
- import { fg } from "@atlaskit/platform-feature-flags";
3
+ import { fg } from '@atlaskit/platform-feature-flags';
4
4
  import { messages } from '../../../../messages';
5
5
  import { EmptyState } from '../../components/EmptyState';
6
- import { SpotSearchNoResult } from "../errored/error-svg/search-no-result";
6
+ import { SpotSearchNoResult } from '../errored/error-svg/search-no-result';
7
7
  import { UnavailableSVG } from './unavailable-svg';
8
8
  const RelatedLinksUnavailableView = () => {
9
9
  const intl = useIntl();
@@ -0,0 +1,3 @@
1
+ ._1bsbwdok{width:var(--_cjikvn)}
2
+ ._1e0c1ule{display:block}
3
+ ._4t3iwdok{height:var(--_cjikvn)}
@@ -0,0 +1,44 @@
1
+ /* generic-error-icon.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import _extends from "@babel/runtime/helpers/extends";
3
+ import "./generic-error-icon.compiled.css";
4
+ import * as React from 'react';
5
+ import { ax, ix } from "@compiled/react/runtime";
6
+ var SIZE = 96;
7
+ var genericErrorStyles = null;
8
+ export var GenericErrorIcon = function GenericErrorIcon(props) {
9
+ return /*#__PURE__*/React.createElement("svg", _extends({
10
+ viewBox: "0 0 96 96",
11
+ fill: "none",
12
+ xmlns: "http://www.w3.org/2000/svg"
13
+ }, props, {
14
+ className: ax(["_1bsbwdok _4t3iwdok _1e0c1ule"]),
15
+ style: {
16
+ "--_cjikvn": ix("".concat(SIZE, "px"))
17
+ }
18
+ }), /*#__PURE__*/React.createElement("path", {
19
+ fill: "#fff",
20
+ d: "M64.861 32.06a27.753 27.753 0 0 0-2.667-4.133 28.187 28.187 0 0 0-3.376-3.669c-6.985-6.311-15.57-6.89-23.609-2.53a30.226 30.226 0 0 0-4.056 2.656 30.624 30.624 0 0 0-3.735 3.4c-6.225 6.717-7.82 15.154-3.505 23.462a28.108 28.108 0 0 0 2.698 4.193 27.67 27.67 0 0 0 3.33 3.62c6.94 6.266 15.518 6.85 23.596 2.507a30.492 30.492 0 0 0 4.23-2.758 30.07 30.07 0 0 0 3.593-3.257c6.252-6.692 7.847-15.161 3.494-23.49h.007Z"
21
+ }), /*#__PURE__*/React.createElement("path", {
22
+ fill: "#DDDEE1",
23
+ d: "M43.092 66.774c-5.306 0-10.382-1.997-14.75-5.938a30.405 30.405 0 0 1-3.62-3.93 30.243 30.243 0 0 1-2.928-4.553c-4.657-8.961-3.247-18.509 3.871-26.192a33.271 33.271 0 0 1 4.025-3.67 32.834 32.834 0 0 1 4.378-2.869c9.209-4.995 18.816-3.951 26.353 2.86a30.945 30.945 0 0 1 3.665 3.98 30.303 30.303 0 0 1 2.898 4.488c4.705 9.003 3.295 18.565-3.868 26.231a32.148 32.148 0 0 1-3.879 3.515 33.415 33.415 0 0 1-4.562 2.975c-3.858 2.073-7.782 3.1-11.583 3.1v.003Zm2.53-45.486c-3.019 0-6.147.84-9.275 2.54a28.433 28.433 0 0 0-3.735 2.448 28.059 28.059 0 0 0-3.442 3.135c-5.746 6.203-6.86 13.566-3.135 20.736a25.395 25.395 0 0 0 2.472 3.83 25.304 25.304 0 0 0 3.044 3.309c5.99 5.41 13.398 6.182 20.862 2.175a28.02 28.02 0 0 0 3.899-2.545 28.03 28.03 0 0 0 3.31-2.999c5.777-6.182 6.883-13.552 3.124-20.75a25.553 25.553 0 0 0-2.44-3.777 25.848 25.848 0 0 0-3.087-3.358c-3.49-3.153-7.442-4.744-11.59-4.744h-.006Z"
24
+ }), /*#__PURE__*/React.createElement("path", {
25
+ fill: "#DDDEE1",
26
+ d: "M62.822 59.694c-1.235-1.72-2.562-1.71-3.857-.708-1.215.939-1.54 2.21-.244 3.882l1.48 1.913 4.102-3.174-1.48-1.913Z"
27
+ }), /*#__PURE__*/React.createElement("path", {
28
+ fill: "#DDDEE1",
29
+ d: "m65.334 60.811-6.159 4.762L70.748 80.54l6.16-4.761L65.333 60.81Z"
30
+ }), /*#__PURE__*/React.createElement("path", {
31
+ fill: "#B7B9BE",
32
+ d: "m64.344 61.577-4.178 3.23 3.925 5.076 4.178-3.23-3.925-5.076Z"
33
+ }), /*#__PURE__*/React.createElement("path", {
34
+ fill: "#DDDEE1",
35
+ fillRule: "evenodd",
36
+ d: "M55.057 33.452 36.213 52.296l-2.468-2.469 18.844-18.844 2.468 2.469Z",
37
+ clipRule: "evenodd"
38
+ }), /*#__PURE__*/React.createElement("path", {
39
+ fill: "#DDDEE1",
40
+ fillRule: "evenodd",
41
+ d: "M52.589 52.296 33.745 33.452l2.468-2.469 18.844 18.844-2.468 2.469Z",
42
+ clipRule: "evenodd"
43
+ }));
44
+ };
@@ -745,6 +745,11 @@ export var messages = defineMessages({
745
745
  defaultMessage: 'Something went wrong',
746
746
  description: 'Title for related links error'
747
747
  },
748
+ related_links_modal_error_title: {
749
+ id: 'fabric.linking.related_links_modal_error_title',
750
+ defaultMessage: "We're having trouble loading related links",
751
+ description: 'Title for related links error'
752
+ },
748
753
  related_links_modal_unavailable_title: {
749
754
  id: 'fabric.linking.related_links_modal_unavailable_title',
750
755
  defaultMessage: "We couldn't find any related links",
@@ -755,6 +760,11 @@ export var messages = defineMessages({
755
760
  defaultMessage: 'We ran into an issue trying to load recent links. Check your connection or refresh to try again.',
756
761
  description: 'Informs the user that there was a problem loading related links'
757
762
  },
763
+ related_links_modal_error_description: {
764
+ id: 'fabric.linking.related_links_modal_error_description',
765
+ defaultMessage: 'Check your connection or refresh the page to try again',
766
+ description: 'Informs the user that there was a problem loading related links'
767
+ },
758
768
  related_links_modal_unavailable_description: {
759
769
  id: 'fabric.linking.related_links_modal_unavailable_description',
760
770
  defaultMessage: 'We continuously review and add related links for updated pages or other content types',
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
4
4
  export var context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card",
7
- packageVersion: "36.2.7"
7
+ packageVersion: "36.3.0"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["onClick"];
4
4
  import React, { lazy, useCallback } from 'react';
5
5
  import { FormattedMessage } from 'react-intl-next';
6
- import { fg } from "@atlaskit/platform-feature-flags";
6
+ import { fg } from '@atlaskit/platform-feature-flags';
7
7
  import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
8
8
  import { messages } from '../../../../../messages';
9
9
  import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
13
13
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
14
14
  var PACKAGE_DATA = {
15
15
  packageName: "@atlaskit/smart-card",
16
- packageVersion: "36.2.7",
16
+ packageVersion: "36.3.0",
17
17
  componentName: 'linkUrl'
18
18
  };
19
19
  var Anchor = withLinkClickedEvent('a');
@@ -6,7 +6,7 @@ import { useCallback, useRef } from 'react';
6
6
  import { FormattedMessage } from 'react-intl-next';
7
7
  import Button from '@atlaskit/button/new';
8
8
  import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
9
- import { fg } from "@atlaskit/platform-feature-flags";
9
+ import { fg } from '@atlaskit/platform-feature-flags';
10
10
  import { Box } from '@atlaskit/primitives/compiled';
11
11
  import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
12
12
  import { messages } from '../../../messages';
@@ -2,7 +2,7 @@
2
2
  import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { fg } from "@atlaskit/platform-feature-flags";
5
+ import { fg } from '@atlaskit/platform-feature-flags';
6
6
  import { SmartLinkStatus } from '../../../../constants';
7
7
  import { Card, ElementName, SmartLinkPosition, SmartLinkSize, SmartLinkTheme, TitleBlock } from '../../../../index';
8
8
  var hoverStyleOld = null;
@@ -3,7 +3,7 @@ import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { FormattedMessage } from 'react-intl-next';
6
- import { fg } from "@atlaskit/platform-feature-flags";
6
+ import { fg } from '@atlaskit/platform-feature-flags';
7
7
  import { Box, Stack } from '@atlaskit/primitives/compiled';
8
8
  import { messages } from '../../../../messages';
9
9
  import RelatedLinkItem from '../related-link-item';
@@ -1,11 +1,19 @@
1
1
  import React from 'react';
2
2
  import { FormattedMessage, useIntl } from 'react-intl-next';
3
+ import { fg } from "@atlaskit/platform-feature-flags";
4
+ import { GenericErrorIcon } from "../../../../common/ui/icons/generic-error-icon";
3
5
  import { messages } from '../../../../messages';
4
6
  import { EmptyState } from '../../components/EmptyState';
5
7
  import { ErrorSVG } from './error-svg';
6
8
  var RelatedLinksErroredView = function RelatedLinksErroredView() {
7
9
  var intl = useIntl();
8
- return /*#__PURE__*/React.createElement(EmptyState, {
10
+ return fg('platform-linking-visual-refresh-v2') ? /*#__PURE__*/React.createElement(EmptyState, {
11
+ renderImage: function renderImage() {
12
+ return /*#__PURE__*/React.createElement(GenericErrorIcon, null);
13
+ },
14
+ header: intl.formatMessage(messages.related_links_modal_error_title),
15
+ description: /*#__PURE__*/React.createElement(FormattedMessage, messages.related_links_modal_error_description)
16
+ }) : /*#__PURE__*/React.createElement(EmptyState, {
9
17
  renderImage: function renderImage() {
10
18
  return /*#__PURE__*/React.createElement(ErrorSVG, null);
11
19
  },
@@ -1,7 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React from 'react';
3
3
  import { AnalyticsContext } from '@atlaskit/analytics-next';
4
- import { fg } from "@atlaskit/platform-feature-flags";
4
+ import { fg } from '@atlaskit/platform-feature-flags';
5
5
  import { Stack } from '@atlaskit/primitives/compiled';
6
6
  import { messages } from '../../../../messages';
7
7
  import RelatedLinksList from '../../components/related-links-list';
@@ -10,7 +10,7 @@ var RelatedLinksResolvedView = function RelatedLinksResolvedView(_ref) {
10
10
  incomingLinks = _ref$incomingLinks === void 0 ? [] : _ref$incomingLinks,
11
11
  _ref$outgoingLinks = _ref.outgoingLinks,
12
12
  outgoingLinks = _ref$outgoingLinks === void 0 ? [] : _ref$outgoingLinks;
13
- var _React$useState = React.useState(""),
13
+ var _React$useState = React.useState(''),
14
14
  _React$useState2 = _slicedToArray(_React$useState, 2),
15
15
  selected = _React$useState2[0],
16
16
  setSelected = _React$useState2[1];
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { FormattedMessage, useIntl } from 'react-intl-next';
3
- import { fg } from "@atlaskit/platform-feature-flags";
3
+ import { fg } from '@atlaskit/platform-feature-flags';
4
4
  import { messages } from '../../../../messages';
5
5
  import { EmptyState } from '../../components/EmptyState';
6
- import { SpotSearchNoResult } from "../errored/error-svg/search-no-result";
6
+ import { SpotSearchNoResult } from '../errored/error-svg/search-no-result';
7
7
  import { UnavailableSVG } from './unavailable-svg';
8
8
  var RelatedLinksUnavailableView = function RelatedLinksUnavailableView() {
9
9
  var intl = useIntl();
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const GenericErrorIcon: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { type 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_title' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title' | 'direct_access_title' | 'direct_access_description' | 'direct_access' | 'access_exists_description' | 'not_found_description' | 'not_found_title';
3
- export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | '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' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | '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' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'more_information_about_this_work_item' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | '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' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_header' | 'related_links_modal_error_message' | 'related_links_modal_unavailable_header' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_message' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_modal_title_v2' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_found_in_v2' | 'related_links_includes_links_to' | 'related_links_includes_links_to_v2' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'status_change_permission_errorIssueTermRefresh';
3
+ export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | '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' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | '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' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'more_information_about_this_work_item' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | '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' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_header' | 'related_links_modal_error_title' | 'related_links_modal_error_message' | 'related_links_modal_error_description' | 'related_links_modal_unavailable_header' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_message' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_modal_title_v2' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_found_in_v2' | 'related_links_includes_links_to' | 'related_links_includes_links_to_v2' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'status_change_permission_errorIssueTermRefresh';
4
4
  type Messages = {
5
5
  [K in MessageKey]: MessageDescriptor;
6
6
  };
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { type RelatedLinksListProp } from '../types';
3
- declare const RelatedLinksList: ({ urls, title, testId, selected, handleSelectedUpdate }: RelatedLinksListProp) => JSX.Element;
3
+ declare const RelatedLinksList: ({ urls, title, testId, selected, handleSelectedUpdate, }: RelatedLinksListProp) => JSX.Element;
4
4
  export default RelatedLinksList;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const GenericErrorIcon: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { type 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_title' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title' | 'direct_access_title' | 'direct_access_description' | 'direct_access' | 'access_exists_description' | 'not_found_description' | 'not_found_title';
3
- export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | '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' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | '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' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'more_information_about_this_work_item' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | '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' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_header' | 'related_links_modal_error_message' | 'related_links_modal_unavailable_header' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_message' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_modal_title_v2' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_found_in_v2' | 'related_links_includes_links_to' | 'related_links_includes_links_to_v2' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'status_change_permission_errorIssueTermRefresh';
3
+ export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | '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' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | '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' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'more_information_about_this_work_item' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | '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' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_header' | 'related_links_modal_error_title' | 'related_links_modal_error_message' | 'related_links_modal_error_description' | 'related_links_modal_unavailable_header' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_message' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_modal_title_v2' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_found_in_v2' | 'related_links_includes_links_to' | 'related_links_includes_links_to_v2' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'status_change_permission_errorIssueTermRefresh';
4
4
  type Messages = {
5
5
  [K in MessageKey]: MessageDescriptor;
6
6
  };
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { type RelatedLinksListProp } from '../types';
3
- declare const RelatedLinksList: ({ urls, title, testId, selected, handleSelectedUpdate }: RelatedLinksListProp) => JSX.Element;
3
+ declare const RelatedLinksList: ({ urls, title, testId, selected, handleSelectedUpdate, }: RelatedLinksListProp) => JSX.Element;
4
4
  export default RelatedLinksList;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "36.2.7",
3
+ "version": "36.3.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/icon-object": "^7.0.0",
46
46
  "@atlaskit/icon-priority": "^6.3.0",
47
47
  "@atlaskit/image": "^3.0.0",
48
- "@atlaskit/json-ld-types": "^1.0.0",
48
+ "@atlaskit/json-ld-types": "^1.1.0",
49
49
  "@atlaskit/legacy-custom-icons": "^0.22.0",
50
50
  "@atlaskit/link": "^3.1.0",
51
51
  "@atlaskit/link-analytics": "^9.1.0",
@@ -62,7 +62,7 @@
62
62
  "@atlaskit/popup": "^4.0.0",
63
63
  "@atlaskit/primitives": "^14.3.0",
64
64
  "@atlaskit/section-message": "^8.2.0",
65
- "@atlaskit/select": "^20.1.0",
65
+ "@atlaskit/select": "^20.2.0",
66
66
  "@atlaskit/spinner": "^18.0.0",
67
67
  "@atlaskit/textarea": "^8.0.0",
68
68
  "@atlaskit/textfield": "^8.0.0",
@@ -94,7 +94,7 @@
94
94
  "@af/integration-testing": "^0.5.0",
95
95
  "@af/visual-regression": "^1.3.0",
96
96
  "@atlaskit/analytics-listeners": "^9.0.0",
97
- "@atlaskit/css-reset": "^7.1.0",
97
+ "@atlaskit/css-reset": "^7.2.0",
98
98
  "@atlaskit/link-test-helpers": "^8.0.0",
99
99
  "@atlaskit/media-test-helpers": "^35.0.0",
100
100
  "@atlaskit/react-ufo": "^3.4.0",