@atlaskit/smart-card 40.16.0 → 40.17.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 (56) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/utils/analytics/analytics.js +1 -1
  3. package/dist/cjs/view/BlockCard/views/utils/withFlexibleUIBlockCardStyle.compiled.css +1 -1
  4. package/dist/cjs/view/BlockCard/views/utils/withFlexibleUIBlockCardStyle.js +1 -1
  5. package/dist/cjs/view/EmbedModal/components/link-info/index.js +12 -1
  6. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/main.js +4 -1
  7. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.js +4 -1
  8. package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/index.js +1 -8
  9. package/dist/cjs/view/HoverCard/components/ContentContainer.compiled.css +1 -1
  10. package/dist/cjs/view/HoverCard/components/ContentContainer.js +1 -1
  11. package/dist/cjs/view/HoverCard/components/ImagePreview.js +2 -2
  12. package/dist/cjs/view/HoverCard/components/views/forbidden/index.compiled.css +2 -2
  13. package/dist/cjs/view/HoverCard/components/views/forbidden/index.js +1 -1
  14. package/dist/cjs/view/LinkUrl/LinkWarningModal/index.js +4 -1
  15. package/dist/cjs/view/LinkUrl/index.js +1 -1
  16. package/dist/cjs/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +3 -1
  17. package/dist/cjs/view/common/ai-prism/index.compiled.css +1 -1
  18. package/dist/cjs/view/common/ai-prism/index.js +1 -1
  19. package/dist/cjs/view/common/stop-propagation/index.js +1 -5
  20. package/dist/es2019/utils/analytics/analytics.js +1 -1
  21. package/dist/es2019/view/BlockCard/views/utils/withFlexibleUIBlockCardStyle.compiled.css +1 -1
  22. package/dist/es2019/view/BlockCard/views/utils/withFlexibleUIBlockCardStyle.js +1 -1
  23. package/dist/es2019/view/EmbedModal/components/link-info/index.js +13 -2
  24. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/main.js +4 -1
  25. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.js +4 -1
  26. package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/index.js +1 -8
  27. package/dist/es2019/view/HoverCard/components/ContentContainer.compiled.css +1 -1
  28. package/dist/es2019/view/HoverCard/components/ContentContainer.js +1 -1
  29. package/dist/es2019/view/HoverCard/components/ImagePreview.js +2 -2
  30. package/dist/es2019/view/HoverCard/components/views/forbidden/index.compiled.css +2 -2
  31. package/dist/es2019/view/HoverCard/components/views/forbidden/index.js +1 -1
  32. package/dist/es2019/view/LinkUrl/LinkWarningModal/index.js +4 -1
  33. package/dist/es2019/view/LinkUrl/index.js +1 -1
  34. package/dist/es2019/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +3 -1
  35. package/dist/es2019/view/common/ai-prism/index.compiled.css +1 -1
  36. package/dist/es2019/view/common/ai-prism/index.js +1 -1
  37. package/dist/es2019/view/common/stop-propagation/index.js +1 -5
  38. package/dist/esm/utils/analytics/analytics.js +1 -1
  39. package/dist/esm/view/BlockCard/views/utils/withFlexibleUIBlockCardStyle.compiled.css +1 -1
  40. package/dist/esm/view/BlockCard/views/utils/withFlexibleUIBlockCardStyle.js +1 -1
  41. package/dist/esm/view/EmbedModal/components/link-info/index.js +13 -2
  42. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/main.js +4 -1
  43. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.js +4 -1
  44. package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/index.js +1 -8
  45. package/dist/esm/view/HoverCard/components/ContentContainer.compiled.css +1 -1
  46. package/dist/esm/view/HoverCard/components/ContentContainer.js +1 -1
  47. package/dist/esm/view/HoverCard/components/ImagePreview.js +2 -2
  48. package/dist/esm/view/HoverCard/components/views/forbidden/index.compiled.css +2 -2
  49. package/dist/esm/view/HoverCard/components/views/forbidden/index.js +1 -1
  50. package/dist/esm/view/LinkUrl/LinkWarningModal/index.js +4 -1
  51. package/dist/esm/view/LinkUrl/index.js +1 -1
  52. package/dist/esm/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +3 -1
  53. package/dist/esm/view/common/ai-prism/index.compiled.css +1 -1
  54. package/dist/esm/view/common/ai-prism/index.js +1 -1
  55. package/dist/esm/view/common/stop-propagation/index.js +1 -5
  56. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 40.17.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`6ce6f7249075d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6ce6f7249075d) -
8
+ [ux] NAVX-1483 using the ADS modal built in hasCloseButton for LP components to adhere to a11y
9
+
10
+ ### Patch Changes
11
+
12
+ - [`d28c4180ae756`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d28c4180ae756) -
13
+ Internal changes to how border radius is applied.
14
+ - [`fe80630362c42`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fe80630362c42) -
15
+ NAVX-1379 Cleaning up navx-1184-fix-smart-link-a-11-y-interactive-states
16
+ - Updated dependencies
17
+
3
18
  ## 40.16.0
4
19
 
5
20
  ### Minor Changes
@@ -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: "40.15.2"
14
+ packageVersion: "40.16.0"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,2 +1,2 @@
1
- ._1g96pd34>div{border-radius:var(--ds-border-radius-200,8px)}
1
+ ._1g961mok>div{border-radius:var(--ds-radius-large,8px)}
2
2
  ._1qo3n8v0>div{border:var(--_vzvmm2)}
@@ -15,7 +15,7 @@ var flexibleBlockCardStyle = null;
15
15
  var withFlexibleUIBlockCardStyle = exports.withFlexibleUIBlockCardStyle = function withFlexibleUIBlockCardStyle(FlexibleBlockCardView) {
16
16
  return function (props) {
17
17
  return /*#__PURE__*/React.createElement("div", {
18
- className: (0, _runtime.ax)(["_1g96pd34 _1qo3n8v0"]),
18
+ className: (0, _runtime.ax)(["_1g961mok _1qo3n8v0"]),
19
19
  style: {
20
20
  "--_vzvmm2": (0, _runtime.ix)("1px solid ".concat("var(--ds-border, ".concat(_colors.N40, ")")))
21
21
  }
@@ -20,6 +20,8 @@ var _linkExternalShortcut = _interopRequireDefault(require("@atlaskit/icon/core/
20
20
  var _download2 = _interopRequireDefault(require("@atlaskit/icon/glyph/download"));
21
21
  var _vidFullScreenOff = _interopRequireDefault(require("@atlaskit/icon/glyph/vid-full-screen-off"));
22
22
  var _modalDialog = require("@atlaskit/modal-dialog");
23
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
24
+ var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
23
25
  var _messages = require("../../../../messages");
24
26
  var _Icon = require("../../../common/Icon");
25
27
  var _constants = require("../../constants");
@@ -127,7 +129,16 @@ var LinkInfo = function LinkInfo(_ref) {
127
129
  "aria-hidden": true
128
130
  })), /*#__PURE__*/_react.default.createElement("div", {
129
131
  className: (0, _runtime.ax)(["_16jlidpf _1o9zidpf _i0dl1wug _zulp1b66 _1e0c1txw _3kllglyw"])
130
- }, downloadButton, urlButton, sizeButton, /*#__PURE__*/_react.default.createElement(_linkInfoButton.default, {
132
+ }, downloadButton, urlButton, sizeButton, (0, _platformFeatureFlags.fg)('navx-1483-a11y-close-button-in-modal-updates') ? /*#__PURE__*/_react.default.createElement(_tooltip.default, {
133
+ content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.preview_close),
134
+ hideTooltipOnClick: true,
135
+ tag: "span",
136
+ testId: "".concat(testId, "-close-tooltip")
137
+ }, /*#__PURE__*/_react.default.createElement(_modalDialog.CloseButton, {
138
+ onClick: onClose,
139
+ label: _messages.messages.preview_close.defaultMessage,
140
+ testId: "".concat(testId, "-close-button")
141
+ })) : /*#__PURE__*/_react.default.createElement(_linkInfoButton.default, {
131
142
  content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.preview_close),
132
143
  icon: function icon() {
133
144
  return /*#__PURE__*/_react.default.createElement(_cross.default, {
@@ -12,6 +12,7 @@ var _reactMagneticDi = require("react-magnetic-di");
12
12
  var _new = _interopRequireDefault(require("@atlaskit/button/new"));
13
13
  var _form = _interopRequireWildcard(require("@atlaskit/form"));
14
14
  var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
15
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
16
  var _messages = _interopRequireDefault(require("../common/messages"));
16
17
  var _types = require("../common/types");
17
18
  var _main = _interopRequireDefault(require("./boolean-prompt/main"));
@@ -120,7 +121,9 @@ var UserInputForm = function UserInputForm(props) {
120
121
  }, function (_ref4) {
121
122
  var formProps = _ref4.formProps,
122
123
  submitting = _ref4.submitting;
123
- return /*#__PURE__*/_react.default.createElement("form", formProps, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader, null, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTitle, null, rule.name)), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, _messages.default.inputRequiredForAction.defaultMessage, /*#__PURE__*/_react.default.createElement(_form.FormSection, null, userInputPrompts.map(generateUserInputForm))), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalFooter, null, /*#__PURE__*/_react.default.createElement(_new.default, {
124
+ return /*#__PURE__*/_react.default.createElement("form", formProps, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader, {
125
+ hasCloseButton: (0, _platformFeatureFlags.fg)('navx-1483-a11y-close-button-in-modal-updates')
126
+ }, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTitle, null, rule.name)), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, _messages.default.inputRequiredForAction.defaultMessage, /*#__PURE__*/_react.default.createElement(_form.FormSection, null, userInputPrompts.map(generateUserInputForm))), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalFooter, null, /*#__PURE__*/_react.default.createElement(_new.default, {
124
127
  appearance: "subtle",
125
128
  onClick: handleClose,
126
129
  isDisabled: submitting
@@ -14,6 +14,7 @@ var _reactIntlNext = require("react-intl-next");
14
14
  var _heading = _interopRequireDefault(require("@atlaskit/heading"));
15
15
  var _manualTriggerIcon = _interopRequireDefault(require("@atlaskit/legacy-custom-icons/manual-trigger-icon"));
16
16
  var _modalDialog = require("@atlaskit/modal-dialog");
17
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
18
  var _compiled = require("@atlaskit/primitives/compiled");
18
19
  var _colors = require("@atlaskit/theme/colors");
19
20
  var _menuContext = require("../../menu-context");
@@ -40,7 +41,9 @@ var AutomationModalHeader = exports.AutomationModalHeader = function AutomationM
40
41
  var _useModal = (0, _modalDialog.useModal)(),
41
42
  titleId = _useModal.titleId;
42
43
  var showDescription = initialised && rules.length > 0 && !!modalDescription;
43
- return /*#__PURE__*/React.createElement(_modalDialog.ModalHeader, null, /*#__PURE__*/React.createElement(_compiled.Stack, null, /*#__PURE__*/React.createElement(_compiled.Inline, {
44
+ return /*#__PURE__*/React.createElement(_modalDialog.ModalHeader, {
45
+ hasCloseButton: (0, _platformFeatureFlags.fg)('navx-1483-a11y-close-button-in-modal-updates')
46
+ }, /*#__PURE__*/React.createElement(_compiled.Stack, null, /*#__PURE__*/React.createElement(_compiled.Inline, {
44
47
  alignBlock: "center"
45
48
  }, /*#__PURE__*/React.createElement(_compiled.Box, {
46
49
  xcss: styles.iconStyle
@@ -68,17 +68,10 @@ var LozengeActionError = function LozengeActionError(_ref) {
68
68
  }
69
69
  }, typeof errorMessage === 'string' ? errorMessage : (0, _utils.getFormattedMessage)(errorMessage))), isPreviewAvailable ? /*#__PURE__*/React.createElement("div", {
70
70
  className: (0, _runtime.ax)([styles.linkStyles])
71
- }, (0, _platformFeatureFlags.fg)('navx-1184-fix-smart-link-a11y-interactive-states') ? /*#__PURE__*/React.createElement(_compiled.Pressable, {
71
+ }, /*#__PURE__*/React.createElement(_compiled.Pressable, {
72
72
  testId: "".concat(testId, "-open-embed"),
73
73
  onClick: handlePreviewOpen,
74
74
  xcss: styles.openIssueInJiraStyles
75
- }, (0, _platformFeatureFlags.fg)('confluence-issue-terminology-refresh') ? /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _messages.messages.open_issue_in_jiraIssueTermRefresh) : /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _messages.messages.open_issue_in_jira)) :
76
- /*#__PURE__*/
77
- // eslint-disable-next-line @atlaskit/design-system/no-html-anchor, jsx-a11y/anchor-is-valid, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
78
- React.createElement("a", {
79
- target: "_blank",
80
- "data-testid": "".concat(testId, "-open-embed"),
81
- onClick: handlePreviewOpen
82
75
  }, (0, _platformFeatureFlags.fg)('confluence-issue-terminology-refresh') ? /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _messages.messages.open_issue_in_jiraIssueTermRefresh) : /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _messages.messages.open_issue_in_jira))) : null);
83
76
  }, [errorMessage, handlePreviewOpen, isPreviewAvailable, testId, dynamicCss]);
84
77
  return /*#__PURE__*/React.createElement("span", {
@@ -1,5 +1,5 @@
1
1
  ._11q7glyw{background:none}
2
- ._2rkopd34{border-radius:var(--ds-border-radius-200,8px)}
2
+ ._2rko1mok{border-radius:var(--ds-radius-large,8px)}
3
3
  ._189eidpf{border-width:0}
4
4
  ._16qsie2t{box-shadow:var(--ds-shadow-overlay,0 8px 9pt rgba(9,30,66,.15),0 0 1px rgba(9,30,66,.31))}
5
5
  ._1bsby0ve{width:var(--_1rzblqv)}
@@ -42,7 +42,7 @@ var ConnectedAIPrismContainer = function ConnectedAIPrismContainer(_ref) {
42
42
  }, [status]);
43
43
  var container = /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
44
44
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
45
- className: (0, _runtime.ax)(["_11q7glyw _189eidpf _vchhusvi _1bsby0ve _9spsglyw", !isAIEnabled && "_2rkopd34 _bfhk1bhr _16qsie2t", _HoverCardContent.hoverCardClassName]),
45
+ className: (0, _runtime.ax)(["_11q7glyw _189eidpf _vchhusvi _1bsby0ve _9spsglyw", !isAIEnabled && "_2rko1mok _bfhk1bhr _16qsie2t", _HoverCardContent.hoverCardClassName]),
46
46
  "data-testid": testId
47
47
  }, props, {
48
48
  style: {
@@ -34,8 +34,8 @@ var ImagePreview = function ImagePreview(_ref) {
34
34
  var _previewBlockRef$curr;
35
35
  var previewHeight = (_previewBlockRef$curr = previewBlockRef.current) === null || _previewBlockRef$curr === void 0 ? void 0 : _previewBlockRef$curr.getBoundingClientRect().height;
36
36
  setDynamicStyles(_objectSpread({
37
- borderTopLeftRadius: "var(--ds-border-radius-200, 8px)",
38
- borderTopRightRadius: "var(--ds-border-radius-200, 8px)",
37
+ borderTopLeftRadius: "var(--ds-radius-large, 8px)",
38
+ borderTopRightRadius: "var(--ds-radius-large, 8px)",
39
39
  marginBottom: "var(--ds-space-100, 8px)"
40
40
  }, previewHeight ? {
41
41
  height: "".concat(previewHeight, "px")
@@ -1,10 +1,10 @@
1
1
  ._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
- ._13lipd34{border-top-left-radius:var(--ds-border-radius-200,8px)}
2
+ ._13li1mok{border-top-left-radius:var(--ds-radius-large,8px)}
3
3
  ._19pku2gc{margin-top:var(--ds-space-100,8px)}
4
4
  ._19pkze3t{margin-top:var(--ds-space-0,0)}
5
5
  ._1bah1h6o{justify-content:center}
6
6
  ._1e0c1nu9{display:inline}
7
7
  ._k48p1pd9{font-weight:var(--ds-font-weight-semibold,600)}
8
8
  ._otyru2gc{margin-bottom:var(--ds-space-100,8px)}
9
- ._qrwqpd34{border-top-right-radius:var(--ds-border-radius-200,8px)}
9
+ ._qrwq1mok{border-top-right-radius:var(--ds-radius-large,8px)}
10
10
  ._y3gn1h6o{text-align:center}
@@ -55,7 +55,7 @@ var HoverCardForbiddenView = function HoverCardForbiddenView(_ref) {
55
55
  }), /*#__PURE__*/React.createElement(_blocks.PreviewBlock, {
56
56
  ignoreContainerPadding: true,
57
57
  testId: testId,
58
- className: (0, _runtime.ax)(["_13lipd34 _qrwqpd34 _otyru2gc"])
58
+ className: (0, _runtime.ax)(["_13li1mok _qrwq1mok _otyru2gc"])
59
59
  }), /*#__PURE__*/React.createElement(_blocks.CustomBlock, {
60
60
  testId: "".concat(testId, "-title"),
61
61
  className: (0, _runtime.ax)(["_1bah1h6o _k48p1pd9 _19pku2gc"])
@@ -15,6 +15,7 @@ var _reactIntlNext = require("react-intl-next");
15
15
  var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
16
16
  var _link = _interopRequireDefault(require("@atlaskit/link"));
17
17
  var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
18
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
19
  var _messages = require("../../../messages");
19
20
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
20
21
  var breakWordsCss = null;
@@ -28,7 +29,9 @@ var WarningModal = function WarningModal(props) {
28
29
  var content = /*#__PURE__*/React.createElement(_modalDialog.ModalTransition, null, isOpen && /*#__PURE__*/React.createElement(_modalDialog.default, {
29
30
  onClose: onClose,
30
31
  testId: "link-with-safety-warning"
31
- }, /*#__PURE__*/React.createElement(_modalDialog.ModalHeader, null, /*#__PURE__*/React.createElement(_modalDialog.ModalTitle, {
32
+ }, /*#__PURE__*/React.createElement(_modalDialog.ModalHeader, {
33
+ hasCloseButton: (0, _platformFeatureFlags.fg)('navx-1483-a11y-close-button-in-modal-updates')
34
+ }, /*#__PURE__*/React.createElement(_modalDialog.ModalTitle, {
32
35
  appearance: "warning"
33
36
  }, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _messages.messages.check_this_link))), /*#__PURE__*/React.createElement(_modalDialog.ModalBody, null, /*#__PURE__*/React.createElement("div", {
34
37
  className: (0, _runtime.ax)(["_o5726vc6 _1nmz9jpi"])
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
19
19
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
20
20
  var PACKAGE_DATA = {
21
21
  packageName: "@atlaskit/smart-card",
22
- packageVersion: "40.15.2",
22
+ packageVersion: "40.16.0",
23
23
  componentName: 'linkUrl'
24
24
  };
25
25
  var Anchor = (0, _click.withLinkClickedEvent)('a');
@@ -48,7 +48,9 @@ var RelatedLinksBaseModal = function RelatedLinksBaseModal(_ref) {
48
48
  shouldReturnFocus: false,
49
49
  onOpenComplete: openCompleteHandler,
50
50
  height: '504px'
51
- }), /*#__PURE__*/React.createElement(_modalDialog.ModalHeader, null, /*#__PURE__*/React.createElement(_modalDialog.ModalTitle, null, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _messages.messages.related_links_modal_title))), /*#__PURE__*/React.createElement(_modalDialog.ModalBody, null, children), /*#__PURE__*/React.createElement(_modalDialog.ModalFooter, null, /*#__PURE__*/React.createElement(_new.default, {
51
+ }), /*#__PURE__*/React.createElement(_modalDialog.ModalHeader, {
52
+ hasCloseButton: (0, _platformFeatureFlags.fg)('navx-1483-a11y-close-button-in-modal-updates')
53
+ }, /*#__PURE__*/React.createElement(_modalDialog.ModalTitle, null, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _messages.messages.related_links_modal_title))), /*#__PURE__*/React.createElement(_modalDialog.ModalBody, null, children), /*#__PURE__*/React.createElement(_modalDialog.ModalFooter, null, /*#__PURE__*/React.createElement(_new.default, {
52
54
  appearance: "primary",
53
55
  onClick: closeHandler
54
56
  }, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _messages.messages.close)))));
@@ -1,5 +1,5 @@
1
1
 
2
- ._2rkopd34{border-radius:var(--ds-border-radius-200,8px)}
2
+ ._2rko1mok{border-radius:var(--ds-radius-large,8px)}
3
3
  ._v5649spz{transition:box-shadow .5s ease}
4
4
  ._v564fs5d{transition:opacity .5s ease}._16qs1aef{box-shadow:0 8px 9pt rgba(9,30,66,0),0 0 1px rgba(9,30,66,0)}
5
5
  ._16qsie2t{box-shadow:var(--ds-shadow-overlay,0 8px 9pt rgba(9,30,66,.15),0 0 1px rgba(9,30,66,.31))}
@@ -40,7 +40,7 @@ var AIPrism = function AIPrism(_ref) {
40
40
  testId: testId,
41
41
  className: (0, _runtime.ax)([animatedSvgContainerStyles[isVisible ? 'true' : 'false']])
42
42
  }, /*#__PURE__*/React.createElement("div", {
43
- className: (0, _runtime.ax)(["_2rkopd34 _bfhk1bhr _16qsie2t", "_v5649spz", isVisible && "_16qs1aef"])
43
+ className: (0, _runtime.ax)(["_2rko1mok _bfhk1bhr _16qsie2t", "_v5649spz", isVisible && "_16qs1aef"])
44
44
  }, children));
45
45
  };
46
46
  var _default = exports.default = AIPrism;
@@ -9,7 +9,6 @@ exports.StopPropagation = void 0;
9
9
  require("./index.compiled.css");
10
10
  var _runtime = require("@compiled/react/runtime");
11
11
  var _react = _interopRequireWildcard(require("react"));
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
12
  var _compiled = require("@atlaskit/primitives/compiled");
14
13
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
15
14
  var styles = {
@@ -21,11 +20,8 @@ var StopPropagation = exports.StopPropagation = function StopPropagation(_ref) {
21
20
  // Prevent click event inside modal from bubble up
22
21
  e.stopPropagation();
23
22
  }, []);
24
- return (0, _platformFeatureFlags.fg)('navx-1184-fix-smart-link-a11y-interactive-states') ? /*#__PURE__*/_react.default.createElement(_compiled.Pressable, {
23
+ return /*#__PURE__*/_react.default.createElement(_compiled.Pressable, {
25
24
  xcss: styles.pressable,
26
25
  onClick: onClick
27
- }, children) : /*#__PURE__*/_react.default.createElement("span", {
28
- onClick: onClick,
29
- className: (0, _runtime.ax)([styles.pressable])
30
26
  }, children);
31
27
  };
@@ -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: "40.15.2"
5
+ packageVersion: "40.16.0"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,2 +1,2 @@
1
- ._1g96pd34>div{border-radius:var(--ds-border-radius-200,8px)}
1
+ ._1g961mok>div{border-radius:var(--ds-radius-large,8px)}
2
2
  ._1qo3h6cr>div{border:1px solid var(--ds-border,#dfe1e6)}
@@ -6,6 +6,6 @@ import { N40 } from '@atlaskit/theme/colors';
6
6
  const flexibleBlockCardStyle = null;
7
7
  export const withFlexibleUIBlockCardStyle = FlexibleBlockCardView => props => {
8
8
  return /*#__PURE__*/React.createElement("div", {
9
- className: ax(["_1g96pd34 _1qo3h6cr"])
9
+ className: ax(["_1g961mok _1qo3h6cr"])
10
10
  }, /*#__PURE__*/React.createElement(FlexibleBlockCardView, props));
11
11
  };
@@ -11,7 +11,9 @@ import VidFullScreenOnIcon from '@atlaskit/icon/core/migration/fullscreen-enter-
11
11
  import ShortcutIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
12
12
  import DownloadIconLegacy from '@atlaskit/icon/glyph/download';
13
13
  import VidFullScreenOffIcon from '@atlaskit/icon/glyph/vid-full-screen-off';
14
- import { useModal } from '@atlaskit/modal-dialog';
14
+ import { CloseButton, useModal } from '@atlaskit/modal-dialog';
15
+ import { fg } from '@atlaskit/platform-feature-flags';
16
+ import Tooltip from '@atlaskit/tooltip';
15
17
  import { messages } from '../../../../messages';
16
18
  import { Icon } from '../../../common/Icon';
17
19
  import { MAX_MODAL_SIZE } from '../../constants';
@@ -114,7 +116,16 @@ const LinkInfo = ({
114
116
  "aria-hidden": true
115
117
  })), /*#__PURE__*/React.createElement("div", {
116
118
  className: ax(["_16jlidpf _1o9zidpf _i0dl1wug _zulp1b66 _1e0c1txw _3kllglyw"])
117
- }, downloadButton, urlButton, sizeButton, /*#__PURE__*/React.createElement(LinkInfoButton, {
119
+ }, downloadButton, urlButton, sizeButton, fg('navx-1483-a11y-close-button-in-modal-updates') ? /*#__PURE__*/React.createElement(Tooltip, {
120
+ content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_close),
121
+ hideTooltipOnClick: true,
122
+ tag: "span",
123
+ testId: `${testId}-close-tooltip`
124
+ }, /*#__PURE__*/React.createElement(CloseButton, {
125
+ onClick: onClose,
126
+ label: messages.preview_close.defaultMessage,
127
+ testId: `${testId}-close-button`
128
+ })) : /*#__PURE__*/React.createElement(LinkInfoButton, {
118
129
  content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_close),
119
130
  icon: () => /*#__PURE__*/React.createElement(CrossIcon, {
120
131
  label: messages.preview_close.defaultMessage,
@@ -3,6 +3,7 @@ import { di } from 'react-magnetic-di';
3
3
  import Button from '@atlaskit/button/new';
4
4
  import Form, { ErrorMessage, FormSection } from '@atlaskit/form';
5
5
  import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
6
+ import { fg } from '@atlaskit/platform-feature-flags';
6
7
  import messages from '../common/messages';
7
8
  import { UserInputType } from '../common/types';
8
9
  import BooleanInputPrompt from './boolean-prompt/main';
@@ -112,7 +113,9 @@ const UserInputForm = props => {
112
113
  }, ({
113
114
  formProps,
114
115
  submitting
115
- }) => /*#__PURE__*/React.createElement("form", formProps, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(ModalTitle, null, rule.name)), /*#__PURE__*/React.createElement(ModalBody, null, messages.inputRequiredForAction.defaultMessage, /*#__PURE__*/React.createElement(FormSection, null, userInputPrompts.map(generateUserInputForm))), /*#__PURE__*/React.createElement(ModalFooter, null, /*#__PURE__*/React.createElement(Button, {
116
+ }) => /*#__PURE__*/React.createElement("form", formProps, /*#__PURE__*/React.createElement(ModalHeader, {
117
+ hasCloseButton: fg('navx-1483-a11y-close-button-in-modal-updates')
118
+ }, /*#__PURE__*/React.createElement(ModalTitle, null, rule.name)), /*#__PURE__*/React.createElement(ModalBody, null, messages.inputRequiredForAction.defaultMessage, /*#__PURE__*/React.createElement(FormSection, null, userInputPrompts.map(generateUserInputForm))), /*#__PURE__*/React.createElement(ModalFooter, null, /*#__PURE__*/React.createElement(Button, {
116
119
  appearance: "subtle",
117
120
  onClick: handleClose,
118
121
  isDisabled: submitting
@@ -6,6 +6,7 @@ import { defineMessages, useIntl } from 'react-intl-next';
6
6
  import Heading from '@atlaskit/heading';
7
7
  import LegacyManualTriggerIcon from '@atlaskit/legacy-custom-icons/manual-trigger-icon';
8
8
  import { ModalHeader, useModal } from '@atlaskit/modal-dialog';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
9
10
  import { Box, Inline, Stack } from '@atlaskit/primitives/compiled';
10
11
  import { G50 } from '@atlaskit/theme/colors';
11
12
  import { useAutomationMenu } from '../../menu-context';
@@ -35,7 +36,9 @@ export const AutomationModalHeader = ({
35
36
  titleId
36
37
  } = useModal();
37
38
  const showDescription = initialised && rules.length > 0 && !!modalDescription;
38
- return /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Inline, {
39
+ return /*#__PURE__*/React.createElement(ModalHeader, {
40
+ hasCloseButton: fg('navx-1483-a11y-close-button-in-modal-updates')
41
+ }, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Inline, {
39
42
  alignBlock: "center"
40
43
  }, /*#__PURE__*/React.createElement(Box, {
41
44
  xcss: styles.iconStyle
@@ -59,17 +59,10 @@ const LozengeActionError = ({
59
59
  }
60
60
  }, typeof errorMessage === 'string' ? errorMessage : getFormattedMessage(errorMessage))), isPreviewAvailable ? /*#__PURE__*/React.createElement("div", {
61
61
  className: ax([styles.linkStyles])
62
- }, fg('navx-1184-fix-smart-link-a11y-interactive-states') ? /*#__PURE__*/React.createElement(Pressable, {
62
+ }, /*#__PURE__*/React.createElement(Pressable, {
63
63
  testId: `${testId}-open-embed`,
64
64
  onClick: handlePreviewOpen,
65
65
  xcss: styles.openIssueInJiraStyles
66
- }, fg('confluence-issue-terminology-refresh') ? /*#__PURE__*/React.createElement(FormattedMessage, messages.open_issue_in_jiraIssueTermRefresh) : /*#__PURE__*/React.createElement(FormattedMessage, messages.open_issue_in_jira)) :
67
- /*#__PURE__*/
68
- // eslint-disable-next-line @atlaskit/design-system/no-html-anchor, jsx-a11y/anchor-is-valid, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
69
- React.createElement("a", {
70
- target: "_blank",
71
- "data-testid": `${testId}-open-embed`,
72
- onClick: handlePreviewOpen
73
66
  }, fg('confluence-issue-terminology-refresh') ? /*#__PURE__*/React.createElement(FormattedMessage, messages.open_issue_in_jiraIssueTermRefresh) : /*#__PURE__*/React.createElement(FormattedMessage, messages.open_issue_in_jira))) : null);
74
67
  }, [errorMessage, handlePreviewOpen, isPreviewAvailable, testId, dynamicCss]);
75
68
  return /*#__PURE__*/React.createElement("span", {
@@ -1,5 +1,5 @@
1
1
  ._11q7glyw{background:none}
2
- ._2rkopd34{border-radius:var(--ds-border-radius-200,8px)}
2
+ ._2rko1mok{border-radius:var(--ds-radius-large,8px)}
3
3
  ._189eidpf{border-width:0}
4
4
  ._16qsie2t{box-shadow:var(--ds-shadow-overlay,0 8px 9pt rgba(9,30,66,.15),0 0 1px rgba(9,30,66,.31))}
5
5
  ._1bsb1f23{width:25rem}
@@ -29,7 +29,7 @@ const ConnectedAIPrismContainer = ({
29
29
  }, [status]);
30
30
  const container = /*#__PURE__*/React.createElement("div", _extends({
31
31
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
32
- className: ax(["_11q7glyw _189eidpf _vchhusvi _1bsb1f23 _9spsglyw", !isAIEnabled && "_2rkopd34 _bfhk1bhr _16qsie2t", hoverCardClassName]),
32
+ className: ax(["_11q7glyw _189eidpf _vchhusvi _1bsb1f23 _9spsglyw", !isAIEnabled && "_2rko1mok _bfhk1bhr _16qsie2t", hoverCardClassName]),
33
33
  "data-testid": testId
34
34
  }, props), children);
35
35
  return isAIEnabled ? /*#__PURE__*/React.createElement(AIPrism, {
@@ -16,8 +16,8 @@ const ImagePreview = ({
16
16
  var _previewBlockRef$curr;
17
17
  const previewHeight = (_previewBlockRef$curr = previewBlockRef.current) === null || _previewBlockRef$curr === void 0 ? void 0 : _previewBlockRef$curr.getBoundingClientRect().height;
18
18
  setDynamicStyles({
19
- borderTopLeftRadius: "var(--ds-border-radius-200, 8px)",
20
- borderTopRightRadius: "var(--ds-border-radius-200, 8px)",
19
+ borderTopLeftRadius: "var(--ds-radius-large, 8px)",
20
+ borderTopRightRadius: "var(--ds-radius-large, 8px)",
21
21
  marginBottom: "var(--ds-space-100, 8px)",
22
22
  ...(previewHeight ? {
23
23
  height: `${previewHeight}px`
@@ -1,10 +1,10 @@
1
1
  ._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
- ._13lipd34{border-top-left-radius:var(--ds-border-radius-200,8px)}
2
+ ._13li1mok{border-top-left-radius:var(--ds-radius-large,8px)}
3
3
  ._19pku2gc{margin-top:var(--ds-space-100,8px)}
4
4
  ._19pkze3t{margin-top:var(--ds-space-0,0)}
5
5
  ._1bah1h6o{justify-content:center}
6
6
  ._1e0c1nu9{display:inline}
7
7
  ._k48p1pd9{font-weight:var(--ds-font-weight-semibold,600)}
8
8
  ._otyru2gc{margin-bottom:var(--ds-space-100,8px)}
9
- ._qrwqpd34{border-top-right-radius:var(--ds-border-radius-200,8px)}
9
+ ._qrwq1mok{border-top-right-radius:var(--ds-radius-large,8px)}
10
10
  ._y3gn1h6o{text-align:center}
@@ -50,7 +50,7 @@ const HoverCardForbiddenView = ({
50
50
  }), /*#__PURE__*/React.createElement(PreviewBlock, {
51
51
  ignoreContainerPadding: true,
52
52
  testId: testId,
53
- className: ax(["_13lipd34 _qrwqpd34 _otyru2gc"])
53
+ className: ax(["_13li1mok _qrwq1mok _otyru2gc"])
54
54
  }), /*#__PURE__*/React.createElement(CustomBlock, {
55
55
  testId: `${testId}-title`,
56
56
  className: ax(["_1bah1h6o _k48p1pd9 _19pku2gc"])
@@ -7,6 +7,7 @@ import { FormattedMessage, injectIntl, IntlProvider } from 'react-intl-next';
7
7
  import Button from '@atlaskit/button/standard-button';
8
8
  import Link from '@atlaskit/link';
9
9
  import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
10
+ import { fg } from '@atlaskit/platform-feature-flags';
10
11
  import { messages } from '../../../messages';
11
12
  const breakWordsCss = null;
12
13
  const WarningModal = props => {
@@ -21,7 +22,9 @@ const WarningModal = props => {
21
22
  const content = /*#__PURE__*/React.createElement(ModalTransition, null, isOpen && /*#__PURE__*/React.createElement(Modal, {
22
23
  onClose: onClose,
23
24
  testId: "link-with-safety-warning"
24
- }, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(ModalTitle, {
25
+ }, /*#__PURE__*/React.createElement(ModalHeader, {
26
+ hasCloseButton: fg('navx-1483-a11y-close-button-in-modal-updates')
27
+ }, /*#__PURE__*/React.createElement(ModalTitle, {
25
28
  appearance: "warning"
26
29
  }, /*#__PURE__*/React.createElement(FormattedMessage, messages.check_this_link))), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement("div", {
27
30
  className: ax(["_o5726vc6 _1nmz9jpi"])
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
9
9
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
10
10
  const PACKAGE_DATA = {
11
11
  packageName: "@atlaskit/smart-card",
12
- packageVersion: "40.15.2",
12
+ packageVersion: "40.16.0",
13
13
  componentName: 'linkUrl'
14
14
  };
15
15
  const Anchor = withLinkClickedEvent('a');
@@ -41,7 +41,9 @@ const RelatedLinksBaseModal = ({
41
41
  shouldReturnFocus: false,
42
42
  onOpenComplete: openCompleteHandler,
43
43
  height: '504px'
44
- }), /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(ModalTitle, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.related_links_modal_title))), /*#__PURE__*/React.createElement(ModalBody, null, children), /*#__PURE__*/React.createElement(ModalFooter, null, /*#__PURE__*/React.createElement(Button, {
44
+ }), /*#__PURE__*/React.createElement(ModalHeader, {
45
+ hasCloseButton: fg('navx-1483-a11y-close-button-in-modal-updates')
46
+ }, /*#__PURE__*/React.createElement(ModalTitle, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.related_links_modal_title))), /*#__PURE__*/React.createElement(ModalBody, null, children), /*#__PURE__*/React.createElement(ModalFooter, null, /*#__PURE__*/React.createElement(Button, {
45
47
  appearance: "primary",
46
48
  onClick: closeHandler
47
49
  }, /*#__PURE__*/React.createElement(FormattedMessage, messages.close)))));
@@ -1,5 +1,5 @@
1
1
 
2
- ._2rkopd34{border-radius:var(--ds-border-radius-200,8px)}
2
+ ._2rko1mok{border-radius:var(--ds-radius-large,8px)}
3
3
  ._v5649spz{transition:box-shadow .5s ease}
4
4
  ._v564fs5d{transition:opacity .5s ease}._16qs1aef{box-shadow:0 8px 9pt rgba(9,30,66,0),0 0 1px rgba(9,30,66,0)}
5
5
  ._16qsie2t{box-shadow:var(--ds-shadow-overlay,0 8px 9pt rgba(9,30,66,.15),0 0 1px rgba(9,30,66,.31))}
@@ -30,7 +30,7 @@ const AIPrism = ({
30
30
  testId: testId,
31
31
  className: ax([animatedSvgContainerStyles[isVisible ? 'true' : 'false']])
32
32
  }, /*#__PURE__*/React.createElement("div", {
33
- className: ax(["_2rkopd34 _bfhk1bhr _16qsie2t", "_v5649spz", isVisible && "_16qs1aef"])
33
+ className: ax(["_2rko1mok _bfhk1bhr _16qsie2t", "_v5649spz", isVisible && "_16qs1aef"])
34
34
  }, children));
35
35
  };
36
36
  export default AIPrism;
@@ -2,7 +2,6 @@
2
2
  import "./index.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback } from 'react';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { Pressable } from '@atlaskit/primitives/compiled';
7
6
  const styles = {
8
7
  pressable: "_c71lidpf _p12fidpf _kqswstnw"
@@ -14,11 +13,8 @@ export const StopPropagation = ({
14
13
  // Prevent click event inside modal from bubble up
15
14
  e.stopPropagation();
16
15
  }, []);
17
- return fg('navx-1184-fix-smart-link-a11y-interactive-states') ? /*#__PURE__*/React.createElement(Pressable, {
16
+ return /*#__PURE__*/React.createElement(Pressable, {
18
17
  xcss: styles.pressable,
19
18
  onClick: onClick
20
- }, children) : /*#__PURE__*/React.createElement("span", {
21
- onClick: onClick,
22
- className: ax([styles.pressable])
23
19
  }, children);
24
20
  };
@@ -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: "40.15.2"
7
+ packageVersion: "40.16.0"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,2 +1,2 @@
1
- ._1g96pd34>div{border-radius:var(--ds-border-radius-200,8px)}
1
+ ._1g961mok>div{border-radius:var(--ds-radius-large,8px)}
2
2
  ._1qo3n8v0>div{border:var(--_vzvmm2)}
@@ -7,7 +7,7 @@ var flexibleBlockCardStyle = null;
7
7
  export var withFlexibleUIBlockCardStyle = function withFlexibleUIBlockCardStyle(FlexibleBlockCardView) {
8
8
  return function (props) {
9
9
  return /*#__PURE__*/React.createElement("div", {
10
- className: ax(["_1g96pd34 _1qo3n8v0"]),
10
+ className: ax(["_1g961mok _1qo3n8v0"]),
11
11
  style: {
12
12
  "--_vzvmm2": ix("1px solid ".concat("var(--ds-border, ".concat(N40, ")")))
13
13
  }
@@ -11,7 +11,9 @@ import VidFullScreenOnIcon from '@atlaskit/icon/core/migration/fullscreen-enter-
11
11
  import ShortcutIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
12
12
  import DownloadIconLegacy from '@atlaskit/icon/glyph/download';
13
13
  import VidFullScreenOffIcon from '@atlaskit/icon/glyph/vid-full-screen-off';
14
- import { useModal } from '@atlaskit/modal-dialog';
14
+ import { CloseButton, useModal } from '@atlaskit/modal-dialog';
15
+ import { fg } from '@atlaskit/platform-feature-flags';
16
+ import Tooltip from '@atlaskit/tooltip';
15
17
  import { messages } from '../../../../messages';
16
18
  import { Icon } from '../../../common/Icon';
17
19
  import { MAX_MODAL_SIZE } from '../../constants';
@@ -118,7 +120,16 @@ var LinkInfo = function LinkInfo(_ref) {
118
120
  "aria-hidden": true
119
121
  })), /*#__PURE__*/React.createElement("div", {
120
122
  className: ax(["_16jlidpf _1o9zidpf _i0dl1wug _zulp1b66 _1e0c1txw _3kllglyw"])
121
- }, downloadButton, urlButton, sizeButton, /*#__PURE__*/React.createElement(LinkInfoButton, {
123
+ }, downloadButton, urlButton, sizeButton, fg('navx-1483-a11y-close-button-in-modal-updates') ? /*#__PURE__*/React.createElement(Tooltip, {
124
+ content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_close),
125
+ hideTooltipOnClick: true,
126
+ tag: "span",
127
+ testId: "".concat(testId, "-close-tooltip")
128
+ }, /*#__PURE__*/React.createElement(CloseButton, {
129
+ onClick: onClose,
130
+ label: messages.preview_close.defaultMessage,
131
+ testId: "".concat(testId, "-close-button")
132
+ })) : /*#__PURE__*/React.createElement(LinkInfoButton, {
122
133
  content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_close),
123
134
  icon: function icon() {
124
135
  return /*#__PURE__*/React.createElement(CrossIcon, {
@@ -4,6 +4,7 @@ import { di } from 'react-magnetic-di';
4
4
  import Button from '@atlaskit/button/new';
5
5
  import Form, { ErrorMessage, FormSection } from '@atlaskit/form';
6
6
  import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  import messages from '../common/messages';
8
9
  import { UserInputType } from '../common/types';
9
10
  import BooleanInputPrompt from './boolean-prompt/main';
@@ -111,7 +112,9 @@ var UserInputForm = function UserInputForm(props) {
111
112
  }, function (_ref4) {
112
113
  var formProps = _ref4.formProps,
113
114
  submitting = _ref4.submitting;
114
- return /*#__PURE__*/React.createElement("form", formProps, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(ModalTitle, null, rule.name)), /*#__PURE__*/React.createElement(ModalBody, null, messages.inputRequiredForAction.defaultMessage, /*#__PURE__*/React.createElement(FormSection, null, userInputPrompts.map(generateUserInputForm))), /*#__PURE__*/React.createElement(ModalFooter, null, /*#__PURE__*/React.createElement(Button, {
115
+ return /*#__PURE__*/React.createElement("form", formProps, /*#__PURE__*/React.createElement(ModalHeader, {
116
+ hasCloseButton: fg('navx-1483-a11y-close-button-in-modal-updates')
117
+ }, /*#__PURE__*/React.createElement(ModalTitle, null, rule.name)), /*#__PURE__*/React.createElement(ModalBody, null, messages.inputRequiredForAction.defaultMessage, /*#__PURE__*/React.createElement(FormSection, null, userInputPrompts.map(generateUserInputForm))), /*#__PURE__*/React.createElement(ModalFooter, null, /*#__PURE__*/React.createElement(Button, {
115
118
  appearance: "subtle",
116
119
  onClick: handleClose,
117
120
  isDisabled: submitting
@@ -6,6 +6,7 @@ import { defineMessages, useIntl } from 'react-intl-next';
6
6
  import Heading from '@atlaskit/heading';
7
7
  import LegacyManualTriggerIcon from '@atlaskit/legacy-custom-icons/manual-trigger-icon';
8
8
  import { ModalHeader, useModal } from '@atlaskit/modal-dialog';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
9
10
  import { Box, Inline, Stack } from '@atlaskit/primitives/compiled';
10
11
  import { G50 } from '@atlaskit/theme/colors';
11
12
  import { useAutomationMenu } from '../../menu-context';
@@ -31,7 +32,9 @@ export var AutomationModalHeader = function AutomationModalHeader(_ref) {
31
32
  var _useModal = useModal(),
32
33
  titleId = _useModal.titleId;
33
34
  var showDescription = initialised && rules.length > 0 && !!modalDescription;
34
- return /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Inline, {
35
+ return /*#__PURE__*/React.createElement(ModalHeader, {
36
+ hasCloseButton: fg('navx-1483-a11y-close-button-in-modal-updates')
37
+ }, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Inline, {
35
38
  alignBlock: "center"
36
39
  }, /*#__PURE__*/React.createElement(Box, {
37
40
  xcss: styles.iconStyle
@@ -59,17 +59,10 @@ var LozengeActionError = function LozengeActionError(_ref) {
59
59
  }
60
60
  }, typeof errorMessage === 'string' ? errorMessage : getFormattedMessage(errorMessage))), isPreviewAvailable ? /*#__PURE__*/React.createElement("div", {
61
61
  className: ax([styles.linkStyles])
62
- }, fg('navx-1184-fix-smart-link-a11y-interactive-states') ? /*#__PURE__*/React.createElement(Pressable, {
62
+ }, /*#__PURE__*/React.createElement(Pressable, {
63
63
  testId: "".concat(testId, "-open-embed"),
64
64
  onClick: handlePreviewOpen,
65
65
  xcss: styles.openIssueInJiraStyles
66
- }, fg('confluence-issue-terminology-refresh') ? /*#__PURE__*/React.createElement(FormattedMessage, messages.open_issue_in_jiraIssueTermRefresh) : /*#__PURE__*/React.createElement(FormattedMessage, messages.open_issue_in_jira)) :
67
- /*#__PURE__*/
68
- // eslint-disable-next-line @atlaskit/design-system/no-html-anchor, jsx-a11y/anchor-is-valid, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
69
- React.createElement("a", {
70
- target: "_blank",
71
- "data-testid": "".concat(testId, "-open-embed"),
72
- onClick: handlePreviewOpen
73
66
  }, fg('confluence-issue-terminology-refresh') ? /*#__PURE__*/React.createElement(FormattedMessage, messages.open_issue_in_jiraIssueTermRefresh) : /*#__PURE__*/React.createElement(FormattedMessage, messages.open_issue_in_jira))) : null);
74
67
  }, [errorMessage, handlePreviewOpen, isPreviewAvailable, testId, dynamicCss]);
75
68
  return /*#__PURE__*/React.createElement("span", {
@@ -1,5 +1,5 @@
1
1
  ._11q7glyw{background:none}
2
- ._2rkopd34{border-radius:var(--ds-border-radius-200,8px)}
2
+ ._2rko1mok{border-radius:var(--ds-radius-large,8px)}
3
3
  ._189eidpf{border-width:0}
4
4
  ._16qsie2t{box-shadow:var(--ds-shadow-overlay,0 8px 9pt rgba(9,30,66,.15),0 0 1px rgba(9,30,66,.31))}
5
5
  ._1bsby0ve{width:var(--_1rzblqv)}
@@ -33,7 +33,7 @@ var ConnectedAIPrismContainer = function ConnectedAIPrismContainer(_ref) {
33
33
  }, [status]);
34
34
  var container = /*#__PURE__*/React.createElement("div", _extends({
35
35
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
36
- className: ax(["_11q7glyw _189eidpf _vchhusvi _1bsby0ve _9spsglyw", !isAIEnabled && "_2rkopd34 _bfhk1bhr _16qsie2t", hoverCardClassName]),
36
+ className: ax(["_11q7glyw _189eidpf _vchhusvi _1bsby0ve _9spsglyw", !isAIEnabled && "_2rko1mok _bfhk1bhr _16qsie2t", hoverCardClassName]),
37
37
  "data-testid": testId
38
38
  }, props, {
39
39
  style: {
@@ -25,8 +25,8 @@ var ImagePreview = function ImagePreview(_ref) {
25
25
  var _previewBlockRef$curr;
26
26
  var previewHeight = (_previewBlockRef$curr = previewBlockRef.current) === null || _previewBlockRef$curr === void 0 ? void 0 : _previewBlockRef$curr.getBoundingClientRect().height;
27
27
  setDynamicStyles(_objectSpread({
28
- borderTopLeftRadius: "var(--ds-border-radius-200, 8px)",
29
- borderTopRightRadius: "var(--ds-border-radius-200, 8px)",
28
+ borderTopLeftRadius: "var(--ds-radius-large, 8px)",
29
+ borderTopRightRadius: "var(--ds-radius-large, 8px)",
30
30
  marginBottom: "var(--ds-space-100, 8px)"
31
31
  }, previewHeight ? {
32
32
  height: "".concat(previewHeight, "px")
@@ -1,10 +1,10 @@
1
1
  ._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
- ._13lipd34{border-top-left-radius:var(--ds-border-radius-200,8px)}
2
+ ._13li1mok{border-top-left-radius:var(--ds-radius-large,8px)}
3
3
  ._19pku2gc{margin-top:var(--ds-space-100,8px)}
4
4
  ._19pkze3t{margin-top:var(--ds-space-0,0)}
5
5
  ._1bah1h6o{justify-content:center}
6
6
  ._1e0c1nu9{display:inline}
7
7
  ._k48p1pd9{font-weight:var(--ds-font-weight-semibold,600)}
8
8
  ._otyru2gc{margin-bottom:var(--ds-space-100,8px)}
9
- ._qrwqpd34{border-top-right-radius:var(--ds-border-radius-200,8px)}
9
+ ._qrwq1mok{border-top-right-radius:var(--ds-radius-large,8px)}
10
10
  ._y3gn1h6o{text-align:center}
@@ -46,7 +46,7 @@ var HoverCardForbiddenView = function HoverCardForbiddenView(_ref) {
46
46
  }), /*#__PURE__*/React.createElement(PreviewBlock, {
47
47
  ignoreContainerPadding: true,
48
48
  testId: testId,
49
- className: ax(["_13lipd34 _qrwqpd34 _otyru2gc"])
49
+ className: ax(["_13li1mok _qrwq1mok _otyru2gc"])
50
50
  }), /*#__PURE__*/React.createElement(CustomBlock, {
51
51
  testId: "".concat(testId, "-title"),
52
52
  className: ax(["_1bah1h6o _k48p1pd9 _19pku2gc"])
@@ -7,6 +7,7 @@ import { FormattedMessage, injectIntl, IntlProvider } from 'react-intl-next';
7
7
  import Button from '@atlaskit/button/standard-button';
8
8
  import Link from '@atlaskit/link';
9
9
  import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
10
+ import { fg } from '@atlaskit/platform-feature-flags';
10
11
  import { messages } from '../../../messages';
11
12
  var breakWordsCss = null;
12
13
  var WarningModal = function WarningModal(props) {
@@ -19,7 +20,9 @@ var WarningModal = function WarningModal(props) {
19
20
  var content = /*#__PURE__*/React.createElement(ModalTransition, null, isOpen && /*#__PURE__*/React.createElement(Modal, {
20
21
  onClose: onClose,
21
22
  testId: "link-with-safety-warning"
22
- }, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(ModalTitle, {
23
+ }, /*#__PURE__*/React.createElement(ModalHeader, {
24
+ hasCloseButton: fg('navx-1483-a11y-close-button-in-modal-updates')
25
+ }, /*#__PURE__*/React.createElement(ModalTitle, {
23
26
  appearance: "warning"
24
27
  }, /*#__PURE__*/React.createElement(FormattedMessage, messages.check_this_link))), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement("div", {
25
28
  className: ax(["_o5726vc6 _1nmz9jpi"])
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
12
12
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
13
13
  var PACKAGE_DATA = {
14
14
  packageName: "@atlaskit/smart-card",
15
- packageVersion: "40.15.2",
15
+ packageVersion: "40.16.0",
16
16
  componentName: 'linkUrl'
17
17
  };
18
18
  var Anchor = withLinkClickedEvent('a');
@@ -39,7 +39,9 @@ var RelatedLinksBaseModal = function RelatedLinksBaseModal(_ref) {
39
39
  shouldReturnFocus: false,
40
40
  onOpenComplete: openCompleteHandler,
41
41
  height: '504px'
42
- }), /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(ModalTitle, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.related_links_modal_title))), /*#__PURE__*/React.createElement(ModalBody, null, children), /*#__PURE__*/React.createElement(ModalFooter, null, /*#__PURE__*/React.createElement(Button, {
42
+ }), /*#__PURE__*/React.createElement(ModalHeader, {
43
+ hasCloseButton: fg('navx-1483-a11y-close-button-in-modal-updates')
44
+ }, /*#__PURE__*/React.createElement(ModalTitle, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.related_links_modal_title))), /*#__PURE__*/React.createElement(ModalBody, null, children), /*#__PURE__*/React.createElement(ModalFooter, null, /*#__PURE__*/React.createElement(Button, {
43
45
  appearance: "primary",
44
46
  onClick: closeHandler
45
47
  }, /*#__PURE__*/React.createElement(FormattedMessage, messages.close)))));
@@ -1,5 +1,5 @@
1
1
 
2
- ._2rkopd34{border-radius:var(--ds-border-radius-200,8px)}
2
+ ._2rko1mok{border-radius:var(--ds-radius-large,8px)}
3
3
  ._v5649spz{transition:box-shadow .5s ease}
4
4
  ._v564fs5d{transition:opacity .5s ease}._16qs1aef{box-shadow:0 8px 9pt rgba(9,30,66,0),0 0 1px rgba(9,30,66,0)}
5
5
  ._16qsie2t{box-shadow:var(--ds-shadow-overlay,0 8px 9pt rgba(9,30,66,.15),0 0 1px rgba(9,30,66,.31))}
@@ -31,7 +31,7 @@ var AIPrism = function AIPrism(_ref) {
31
31
  testId: testId,
32
32
  className: ax([animatedSvgContainerStyles[isVisible ? 'true' : 'false']])
33
33
  }, /*#__PURE__*/React.createElement("div", {
34
- className: ax(["_2rkopd34 _bfhk1bhr _16qsie2t", "_v5649spz", isVisible && "_16qs1aef"])
34
+ className: ax(["_2rko1mok _bfhk1bhr _16qsie2t", "_v5649spz", isVisible && "_16qs1aef"])
35
35
  }, children));
36
36
  };
37
37
  export default AIPrism;
@@ -2,7 +2,6 @@
2
2
  import "./index.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback } from 'react';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { Pressable } from '@atlaskit/primitives/compiled';
7
6
  var styles = {
8
7
  pressable: "_c71lidpf _p12fidpf _kqswstnw"
@@ -13,11 +12,8 @@ export var StopPropagation = function StopPropagation(_ref) {
13
12
  // Prevent click event inside modal from bubble up
14
13
  e.stopPropagation();
15
14
  }, []);
16
- return fg('navx-1184-fix-smart-link-a11y-interactive-states') ? /*#__PURE__*/React.createElement(Pressable, {
15
+ return /*#__PURE__*/React.createElement(Pressable, {
17
16
  xcss: styles.pressable,
18
17
  onClick: onClick
19
- }, children) : /*#__PURE__*/React.createElement("span", {
20
- onClick: onClick,
21
- className: ax([styles.pressable])
22
18
  }, children);
23
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "40.16.0",
3
+ "version": "40.17.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,7 +36,7 @@
36
36
  "@atlaskit/css": "^0.12.0",
37
37
  "@atlaskit/dropdown-menu": "^16.3.0",
38
38
  "@atlaskit/feature-gate-js-client": "^5.5.0",
39
- "@atlaskit/form": "^12.2.0",
39
+ "@atlaskit/form": "^12.4.0",
40
40
  "@atlaskit/frontend-utilities": "^3.1.0",
41
41
  "@atlaskit/heading": "^5.2.0",
42
42
  "@atlaskit/icon": "^28.1.0",
@@ -68,7 +68,7 @@
68
68
  "@atlaskit/textarea": "^8.0.0",
69
69
  "@atlaskit/textfield": "^8.0.0",
70
70
  "@atlaskit/theme": "^20.0.0",
71
- "@atlaskit/tmp-editor-statsig": "^11.12.0",
71
+ "@atlaskit/tmp-editor-statsig": "^12.0.0",
72
72
  "@atlaskit/tokens": "^6.1.0",
73
73
  "@atlaskit/tooltip": "^20.4.0",
74
74
  "@atlaskit/ufo": "^0.4.0",
@@ -217,9 +217,6 @@
217
217
  "platform_editor_inline_card_selected_state_fix": {
218
218
  "type": "boolean"
219
219
  },
220
- "navx-1184-fix-smart-link-a11y-interactive-states": {
221
- "type": "boolean"
222
- },
223
220
  "navx-1304-related-links-remove-false-autofocus": {
224
221
  "type": "boolean"
225
222
  },
@@ -231,6 +228,9 @@
231
228
  },
232
229
  "ptc-enable-embed-team-smart-links": {
233
230
  "type": "boolean"
231
+ },
232
+ "navx-1483-a11y-close-button-in-modal-updates": {
233
+ "type": "boolean"
234
234
  }
235
235
  },
236
236
  "compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/f74ef1bc-7240-4aac-9dc8-9dc43b502089"