@atlaskit/link-create 2.11.2 → 2.11.4

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,23 @@
1
1
  # @atlaskit/link-create
2
2
 
3
+ ## 2.11.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#130886](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/130886)
8
+ [`6eca3df7a5fb0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6eca3df7a5fb0) -
9
+ Tests fixing avoid bug where create placed in modal closes popup when pressing escape after
10
+ closing exit warning modal (behind feature flag).
11
+ - Updated dependencies
12
+
13
+ ## 2.11.3
14
+
15
+ ### Patch Changes
16
+
17
+ - [#131099](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/131099)
18
+ [`9df8c5e6d9886`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9df8c5e6d9886) -
19
+ Accessibility and minor UI bug fixes
20
+
3
21
  ## 2.11.2
4
22
 
5
23
  ### Patch Changes
@@ -13,7 +13,7 @@ var CREATE_FORM_MIN_HEIGHT_IN_PX = exports.CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
13
13
  var LINK_CREATE_FORM_POST_CREATE_FIELD = exports.LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
14
14
  var PACKAGE_DATA = exports.PACKAGE_DATA = {
15
15
  packageName: "@atlaskit/link-create" || '',
16
- packageVersion: "2.11.2" || '',
16
+ packageVersion: "2.11.4" || '',
17
17
  component: COMPONENT_NAME,
18
18
  componentName: COMPONENT_NAME
19
19
  };
@@ -59,6 +59,7 @@ function UserPicker(_ref) {
59
59
  productKey: productKey,
60
60
  siteId: siteId,
61
61
  fieldId: fieldId,
62
+ inputId: fieldId,
62
63
  debounceTime: DEFAULT_DEBOUNCE_TIME,
63
64
  prefetch: true,
64
65
  isClearable: false,
@@ -11,7 +11,9 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
11
11
  var _react = require("react");
12
12
  var _react2 = require("@emotion/react");
13
13
  var _reactIntlNext = require("react-intl-next");
14
+ var _layering = require("@atlaskit/layering");
14
15
  var _modalDialog = require("@atlaskit/modal-dialog");
16
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
17
  var _primitives = require("@atlaskit/primitives");
16
18
  var _constants = require("../../common/constants");
17
19
  var _confirmDismissDialog = require("../../common/ui/confirm-dismiss-dialog");
@@ -83,11 +85,17 @@ var LinkCreateWithModal = function LinkCreateWithModal(_ref) {
83
85
  onClose: onComplete,
84
86
  editViewPayload: editViewPayload,
85
87
  activePlugin: activePlugin
86
- }), (0, _react2.jsx)(_confirmDismissDialog.ConfirmDismissDialog, {
88
+ }), !(0, _platformFeatureFlags.fg)('linking-platform-link-create-nest-exit-warning') && (0, _react2.jsx)(_confirmDismissDialog.ConfirmDismissDialog, {
87
89
  active: showExitWarning,
88
90
  onClose: handleCloseExitWarning,
89
91
  onCancel: onCancel
90
- }));
92
+ }), (0, _platformFeatureFlags.fg)('linking-platform-link-create-nest-exit-warning') && (0, _react2.jsx)(_layering.UNSAFE_LAYERING, {
93
+ isDisabled: false
94
+ }, (0, _react2.jsx)(_confirmDismissDialog.ConfirmDismissDialog, {
95
+ active: showExitWarning,
96
+ onClose: handleCloseExitWarning,
97
+ onCancel: onCancel
98
+ })));
91
99
  };
92
100
  var LinkCreateModal = function LinkCreateModal(props) {
93
101
  var shouldCallCloseComplete = (0, _react.useRef)(!props.active);
@@ -7,7 +7,7 @@ export const CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
7
7
  export const LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
8
8
  export const PACKAGE_DATA = {
9
9
  packageName: "@atlaskit/link-create" || '',
10
- packageVersion: "2.11.2" || '',
10
+ packageVersion: "2.11.4" || '',
11
11
  component: COMPONENT_NAME,
12
12
  componentName: COMPONENT_NAME
13
13
  };
@@ -46,6 +46,7 @@ export function UserPicker({
46
46
  productKey: productKey,
47
47
  siteId: siteId,
48
48
  fieldId: fieldId,
49
+ inputId: fieldId,
49
50
  debounceTime: DEFAULT_DEBOUNCE_TIME,
50
51
  prefetch: true,
51
52
  isClearable: false,
@@ -8,7 +8,9 @@ import { useLayoutEffect, useRef } from 'react';
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { jsx } from '@emotion/react';
10
10
  import { useIntl } from 'react-intl-next';
11
+ import { UNSAFE_LAYERING } from '@atlaskit/layering';
11
12
  import { ModalBody, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
13
+ import { fg } from '@atlaskit/platform-feature-flags';
12
14
  import { Box } from '@atlaskit/primitives';
13
15
  import { CREATE_FORM_MAX_WIDTH_IN_PX, DEFAULT_TEST_ID, SCREEN_ID } from '../../common/constants';
14
16
  import { ConfirmDismissDialog } from '../../common/ui/confirm-dismiss-dialog';
@@ -74,11 +76,17 @@ const LinkCreateWithModal = ({
74
76
  onClose: onComplete,
75
77
  editViewPayload: editViewPayload,
76
78
  activePlugin: activePlugin
77
- }), jsx(ConfirmDismissDialog, {
79
+ }), !fg('linking-platform-link-create-nest-exit-warning') && jsx(ConfirmDismissDialog, {
78
80
  active: showExitWarning,
79
81
  onClose: handleCloseExitWarning,
80
82
  onCancel: onCancel
81
- }));
83
+ }), fg('linking-platform-link-create-nest-exit-warning') && jsx(UNSAFE_LAYERING, {
84
+ isDisabled: false
85
+ }, jsx(ConfirmDismissDialog, {
86
+ active: showExitWarning,
87
+ onClose: handleCloseExitWarning,
88
+ onCancel: onCancel
89
+ })));
82
90
  };
83
91
  const LinkCreateModal = props => {
84
92
  const shouldCallCloseComplete = useRef(!props.active);
@@ -7,7 +7,7 @@ export var CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
7
7
  export var LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
8
8
  export var PACKAGE_DATA = {
9
9
  packageName: "@atlaskit/link-create" || '',
10
- packageVersion: "2.11.2" || '',
10
+ packageVersion: "2.11.4" || '',
11
11
  component: COMPONENT_NAME,
12
12
  componentName: COMPONENT_NAME
13
13
  };
@@ -51,6 +51,7 @@ export function UserPicker(_ref) {
51
51
  productKey: productKey,
52
52
  siteId: siteId,
53
53
  fieldId: fieldId,
54
+ inputId: fieldId,
54
55
  debounceTime: DEFAULT_DEBOUNCE_TIME,
55
56
  prefetch: true,
56
57
  isClearable: false,
@@ -10,7 +10,9 @@ import { useLayoutEffect, useRef } from 'react';
10
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
11
  import { jsx } from '@emotion/react';
12
12
  import { useIntl } from 'react-intl-next';
13
+ import { UNSAFE_LAYERING } from '@atlaskit/layering';
13
14
  import { ModalBody, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
15
+ import { fg } from '@atlaskit/platform-feature-flags';
14
16
  import { Box } from '@atlaskit/primitives';
15
17
  import { CREATE_FORM_MAX_WIDTH_IN_PX, DEFAULT_TEST_ID, SCREEN_ID } from '../../common/constants';
16
18
  import { ConfirmDismissDialog } from '../../common/ui/confirm-dismiss-dialog';
@@ -75,11 +77,17 @@ var LinkCreateWithModal = function LinkCreateWithModal(_ref) {
75
77
  onClose: onComplete,
76
78
  editViewPayload: editViewPayload,
77
79
  activePlugin: activePlugin
78
- }), jsx(ConfirmDismissDialog, {
80
+ }), !fg('linking-platform-link-create-nest-exit-warning') && jsx(ConfirmDismissDialog, {
79
81
  active: showExitWarning,
80
82
  onClose: handleCloseExitWarning,
81
83
  onCancel: onCancel
82
- }));
84
+ }), fg('linking-platform-link-create-nest-exit-warning') && jsx(UNSAFE_LAYERING, {
85
+ isDisabled: false
86
+ }, jsx(ConfirmDismissDialog, {
87
+ active: showExitWarning,
88
+ onClose: handleCloseExitWarning,
89
+ onCancel: onCancel
90
+ })));
83
91
  };
84
92
  var LinkCreateModal = function LinkCreateModal(props) {
85
93
  var shouldCallCloseComplete = useRef(!props.active);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "2.11.2",
3
+ "version": "2.11.4",
4
4
  "description": "The driver component of meta creation flow",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -41,16 +41,18 @@
41
41
  "dependencies": {
42
42
  "@atlaskit/analytics-next": "^10.1.0",
43
43
  "@atlaskit/atlassian-context": "^0.0.0",
44
- "@atlaskit/button": "^20.0.0",
44
+ "@atlaskit/button": "^20.1.0",
45
45
  "@atlaskit/empty-state": "^7.11.0",
46
46
  "@atlaskit/form": "^10.5.0",
47
47
  "@atlaskit/icon": "^22.13.0",
48
48
  "@atlaskit/icon-file-type": "^6.4.0",
49
49
  "@atlaskit/intl-messages-provider": "^1.0.2",
50
+ "@atlaskit/layering": "^0.4.0",
50
51
  "@atlaskit/linking-common": "^5.11.0",
51
52
  "@atlaskit/modal-dialog": "^12.15.0",
53
+ "@atlaskit/platform-feature-flags": "^0.3.0",
52
54
  "@atlaskit/primitives": "^12.0.0",
53
- "@atlaskit/select": "^17.13.0",
55
+ "@atlaskit/select": "^17.15.0",
54
56
  "@atlaskit/smart-user-picker": "^6.10.0",
55
57
  "@atlaskit/spinner": "^16.3.0",
56
58
  "@atlaskit/textfield": "^6.5.0",
@@ -72,6 +74,7 @@
72
74
  "@af/visual-regression": "*",
73
75
  "@atlaskit/drawer": "^7.14.0",
74
76
  "@atlaskit/link-test-helpers": "^7.4.0",
77
+ "@atlaskit/popup": "^1.20.0",
75
78
  "@atlaskit/visual-regression": "*",
76
79
  "@atlassian/feature-flags-test-utils": "*",
77
80
  "@testing-library/react": "^12.1.5",
@@ -122,5 +125,9 @@
122
125
  ]
123
126
  }
124
127
  },
125
- "platform-feature-flags": {}
128
+ "platform-feature-flags": {
129
+ "linking-platform-link-create-nest-exit-warning": {
130
+ "type": "boolean"
131
+ }
132
+ }
126
133
  }