@atlaskit/link-datasource 2.3.9 → 2.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 2.3.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [#110278](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110278)
8
+ [`07cfb7e9a83b2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/07cfb7e9a83b2) -
9
+ [ux] allow close on click-away on assets config modal
10
+
3
11
  ## 2.3.9
4
12
 
5
13
  ### Patch Changes
@@ -345,8 +345,7 @@ var PlainAssetsConfigModal = function PlainAssetsConfigModal(props) {
345
345
  loaderFn: _fetchMessagesForLocale.fetchMessagesForLocale
346
346
  }, (0, _react2.jsx)(_modalDialog.ModalTransition, null, (0, _react2.jsx)(_datasourceModal.DatasourceModal, {
347
347
  testId: "asset-datasource-modal",
348
- onClose: onCancel,
349
- shouldCloseOnOverlayClick: false
348
+ onClose: onCancel
350
349
  }, (0, _react2.jsx)(_modalDialog.ModalHeader, null, renderModalTitleContent()), (0, _react2.jsx)(_modalDialog.ModalBody, null, errorState ? (0, _react2.jsx)("div", {
351
350
  css: modalBodyErrorWrapperStyles
352
351
  }, renderErrorState()) : (0, _react2.jsx)(_renderAssetsContent.RenderAssetsContent, {
@@ -22,14 +22,12 @@ var ScreenEvent = function ScreenEvent() {
22
22
  var DatasourceModal = exports.DatasourceModal = function DatasourceModal(_ref) {
23
23
  var testId = _ref.testId,
24
24
  onClose = _ref.onClose,
25
- shouldCloseOnOverlayClick = _ref.shouldCloseOnOverlayClick,
26
25
  children = _ref.children;
27
26
  return /*#__PURE__*/_react.default.createElement(_modalDialog.default, {
28
27
  testId: testId,
29
28
  onClose: onClose,
30
29
  width: "calc(100% - 80px)",
31
30
  shouldScrollInViewport: true,
32
- shouldCloseOnOverlayClick: shouldCloseOnOverlayClick,
33
31
  shouldReturnFocus: false
34
32
  }, /*#__PURE__*/_react.default.createElement(ScreenEvent, null), children);
35
33
  };
@@ -326,8 +326,7 @@ const PlainAssetsConfigModal = props => {
326
326
  loaderFn: fetchMessagesForLocale
327
327
  }, jsx(ModalTransition, null, jsx(DatasourceModal, {
328
328
  testId: "asset-datasource-modal",
329
- onClose: onCancel,
330
- shouldCloseOnOverlayClick: false
329
+ onClose: onCancel
331
330
  }, jsx(ModalHeader, null, renderModalTitleContent()), jsx(ModalBody, null, errorState ? jsx("div", {
332
331
  css: modalBodyErrorWrapperStyles
333
332
  }, renderErrorState()) : jsx(RenderAssetsContent, {
@@ -13,7 +13,6 @@ const ScreenEvent = () => {
13
13
  export const DatasourceModal = ({
14
14
  testId,
15
15
  onClose,
16
- shouldCloseOnOverlayClick,
17
16
  children
18
17
  }) => {
19
18
  return /*#__PURE__*/React.createElement(Modal, {
@@ -21,7 +20,6 @@ export const DatasourceModal = ({
21
20
  onClose: onClose,
22
21
  width: "calc(100% - 80px)",
23
22
  shouldScrollInViewport: true,
24
- shouldCloseOnOverlayClick: shouldCloseOnOverlayClick,
25
23
  shouldReturnFocus: false
26
24
  }, /*#__PURE__*/React.createElement(ScreenEvent, null), children);
27
25
  };
@@ -341,8 +341,7 @@ var PlainAssetsConfigModal = function PlainAssetsConfigModal(props) {
341
341
  loaderFn: fetchMessagesForLocale
342
342
  }, jsx(ModalTransition, null, jsx(DatasourceModal, {
343
343
  testId: "asset-datasource-modal",
344
- onClose: onCancel,
345
- shouldCloseOnOverlayClick: false
344
+ onClose: onCancel
346
345
  }, jsx(ModalHeader, null, renderModalTitleContent()), jsx(ModalBody, null, errorState ? jsx("div", {
347
346
  css: modalBodyErrorWrapperStyles
348
347
  }, renderErrorState()) : jsx(RenderAssetsContent, {
@@ -12,14 +12,12 @@ var ScreenEvent = function ScreenEvent() {
12
12
  export var DatasourceModal = function DatasourceModal(_ref) {
13
13
  var testId = _ref.testId,
14
14
  onClose = _ref.onClose,
15
- shouldCloseOnOverlayClick = _ref.shouldCloseOnOverlayClick,
16
15
  children = _ref.children;
17
16
  return /*#__PURE__*/React.createElement(Modal, {
18
17
  testId: testId,
19
18
  onClose: onClose,
20
19
  width: "calc(100% - 80px)",
21
20
  shouldScrollInViewport: true,
22
- shouldCloseOnOverlayClick: shouldCloseOnOverlayClick,
23
21
  shouldReturnFocus: false
24
22
  }, /*#__PURE__*/React.createElement(ScreenEvent, null), children);
25
23
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { type ModalDialogProps } from '@atlaskit/modal-dialog';
3
- type DatasourceModalProps = Pick<ModalDialogProps, 'testId' | 'onClose' | 'children' | 'shouldCloseOnOverlayClick'>;
4
- export declare const DatasourceModal: ({ testId, onClose, shouldCloseOnOverlayClick, children, }: DatasourceModalProps) => JSX.Element;
3
+ type DatasourceModalProps = Pick<ModalDialogProps, 'testId' | 'onClose' | 'children'>;
4
+ export declare const DatasourceModal: ({ testId, onClose, children }: DatasourceModalProps) => JSX.Element;
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { type ModalDialogProps } from '@atlaskit/modal-dialog';
3
- type DatasourceModalProps = Pick<ModalDialogProps, 'testId' | 'onClose' | 'children' | 'shouldCloseOnOverlayClick'>;
4
- export declare const DatasourceModal: ({ testId, onClose, shouldCloseOnOverlayClick, children, }: DatasourceModalProps) => JSX.Element;
3
+ type DatasourceModalProps = Pick<ModalDialogProps, 'testId' | 'onClose' | 'children'>;
4
+ export declare const DatasourceModal: ({ testId, onClose, children }: DatasourceModalProps) => JSX.Element;
5
5
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "2.3.9",
3
+ "version": "2.3.10",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -42,7 +42,7 @@
42
42
  "@atlaskit/badge": "^16.2.0",
43
43
  "@atlaskit/button": "^17.17.0",
44
44
  "@atlaskit/datetime-picker": "^13.5.0",
45
- "@atlaskit/dropdown-menu": "^12.11.0",
45
+ "@atlaskit/dropdown-menu": "^12.12.0",
46
46
  "@atlaskit/editor-prosemirror": "4.0.1",
47
47
  "@atlaskit/empty-state": "^7.8.0",
48
48
  "@atlaskit/form": "^10.3.0",