@atlaskit/link-create 2.6.0 → 2.7.1

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,20 @@
1
1
  # @atlaskit/link-create
2
2
 
3
+ ## 2.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`cb4871502a9d7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cb4871502a9d7) -
8
+ [ux] Stop event propagation on cancel button click of create form
9
+
10
+ ## 2.7.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [#112648](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112648)
15
+ [`3cd8fd44d0d08`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3cd8fd44d0d08) -
16
+ Export new InlineCreate component alongside related docs
17
+
3
18
  ## 2.6.0
4
19
 
5
20
  ### Minor 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.6.0" || '',
16
+ packageVersion: "2.7.1" || '',
17
17
  component: COMPONENT_NAME,
18
18
  componentName: COMPONENT_NAME
19
19
  };
package/dist/cjs/index.js CHANGED
@@ -34,6 +34,12 @@ Object.defineProperty(exports, "FormSpy", {
34
34
  return _index.FormSpy;
35
35
  }
36
36
  });
37
+ Object.defineProperty(exports, "InlineCreate", {
38
+ enumerable: true,
39
+ get: function get() {
40
+ return _index.InlineCreate;
41
+ }
42
+ });
37
43
  Object.defineProperty(exports, "LinkCreateCallbackProvider", {
38
44
  enumerable: true,
39
45
  get: function get() {
@@ -49,7 +49,10 @@ function CreateFormFooter(_ref) {
49
49
  type: "button",
50
50
  actionSubjectId: "cancel",
51
51
  appearance: "subtle",
52
- onClick: handleCancel,
52
+ onClick: function onClick(e) {
53
+ e.stopPropagation();
54
+ handleCancel();
55
+ },
53
56
  testId: "".concat(testId, "-button-cancel")
54
57
  }, intl.formatMessage(_messages.messages.close)), (0, _react.jsx)(_editButton.EditButton, null), (0, _react.jsx)(_submitButton.SubmitButton, null)));
55
58
  }
@@ -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.6.0" || '',
10
+ packageVersion: "2.7.1" || '',
11
11
  component: COMPONENT_NAME,
12
12
  componentName: COMPONENT_NAME
13
13
  };
@@ -1,7 +1,4 @@
1
- export { AsyncSelect, CreateForm, CreateFormLoader, FormSpy, Select, SiteSelect, TextField,
2
- // todo: EDM-10077 - export this once inline-create is tested/ready
3
- //InlineCreate,
4
- UserPicker, default } from './ui/index';
1
+ export { AsyncSelect, CreateForm, CreateFormLoader, FormSpy, Select, SiteSelect, TextField, InlineCreate, UserPicker, default } from './ui/index';
5
2
  export { LinkCreateCallbackProvider, useLinkCreateCallback } from './controllers/callback-context';
6
3
  export { ExitWarningModalProvider as LinkCreateExitWarningProvider, useWithExitWarning } from './controllers/exit-warning-modal-context';
7
4
  export { FORM_ERROR } from 'final-form';
@@ -42,7 +42,10 @@ export function CreateFormFooter({
42
42
  type: "button",
43
43
  actionSubjectId: "cancel",
44
44
  appearance: "subtle",
45
- onClick: handleCancel,
45
+ onClick: e => {
46
+ e.stopPropagation();
47
+ handleCancel();
48
+ },
46
49
  testId: `${testId}-button-cancel`
47
50
  }, intl.formatMessage(messages.close)), jsx(EditButton, null), jsx(SubmitButton, null)));
48
51
  }
@@ -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.6.0" || '',
10
+ packageVersion: "2.7.1" || '',
11
11
  component: COMPONENT_NAME,
12
12
  componentName: COMPONENT_NAME
13
13
  };
package/dist/esm/index.js CHANGED
@@ -1,7 +1,4 @@
1
- export { AsyncSelect, CreateForm, CreateFormLoader, FormSpy, Select, SiteSelect, TextField,
2
- // todo: EDM-10077 - export this once inline-create is tested/ready
3
- //InlineCreate,
4
- UserPicker, default } from './ui/index';
1
+ export { AsyncSelect, CreateForm, CreateFormLoader, FormSpy, Select, SiteSelect, TextField, InlineCreate, UserPicker, default } from './ui/index';
5
2
  export { LinkCreateCallbackProvider, useLinkCreateCallback } from './controllers/callback-context';
6
3
  export { ExitWarningModalProvider as LinkCreateExitWarningProvider, useWithExitWarning } from './controllers/exit-warning-modal-context';
7
4
  export { FORM_ERROR } from 'final-form';
@@ -41,7 +41,10 @@ export function CreateFormFooter(_ref) {
41
41
  type: "button",
42
42
  actionSubjectId: "cancel",
43
43
  appearance: "subtle",
44
- onClick: handleCancel,
44
+ onClick: function onClick(e) {
45
+ e.stopPropagation();
46
+ handleCancel();
47
+ },
45
48
  testId: "".concat(testId, "-button-cancel")
46
49
  }, intl.formatMessage(messages.close)), jsx(EditButton, null), jsx(SubmitButton, null)));
47
50
  }
@@ -1,6 +1,6 @@
1
1
  export type { CreatePayload, EditViewProps, LinkCreatePlugin, LinkCreateProps, LinkCreateWithModalProps, } from './common/types';
2
2
  export type { CreateFormProps } from './ui/index';
3
- export { AsyncSelect, CreateForm, CreateFormLoader, FormSpy, Select, SiteSelect, TextField, UserPicker, default, type SitePickerOptionType, } from './ui/index';
3
+ export { AsyncSelect, CreateForm, CreateFormLoader, FormSpy, Select, SiteSelect, TextField, InlineCreate, UserPicker, default, type SitePickerOptionType, } from './ui/index';
4
4
  export { LinkCreateCallbackProvider, useLinkCreateCallback } from './controllers/callback-context';
5
5
  export { ExitWarningModalProvider as LinkCreateExitWarningProvider, useWithExitWarning, } from './controllers/exit-warning-modal-context';
6
6
  export type { Validator, ValidatorMap } from './common/types';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { jsx } from '@emotion/react';
3
- import type { LinkCreateWithModalProps } from '../../common/types';
4
- declare const ComposedLinkCreate: import("react").MemoExoticComponent<(props: LinkCreateWithModalProps) => jsx.JSX.Element>;
3
+ import type { LinkCreateProps } from '../../common/types';
4
+ declare const ComposedLinkCreate: import("react").MemoExoticComponent<(props: LinkCreateProps) => jsx.JSX.Element>;
5
5
  export default ComposedLinkCreate;
@@ -1,6 +1,6 @@
1
1
  export type { CreatePayload, EditViewProps, LinkCreatePlugin, LinkCreateProps, LinkCreateWithModalProps, } from './common/types';
2
2
  export type { CreateFormProps } from './ui/index';
3
- export { AsyncSelect, CreateForm, CreateFormLoader, FormSpy, Select, SiteSelect, TextField, UserPicker, default, type SitePickerOptionType, } from './ui/index';
3
+ export { AsyncSelect, CreateForm, CreateFormLoader, FormSpy, Select, SiteSelect, TextField, InlineCreate, UserPicker, default, type SitePickerOptionType, } from './ui/index';
4
4
  export { LinkCreateCallbackProvider, useLinkCreateCallback } from './controllers/callback-context';
5
5
  export { ExitWarningModalProvider as LinkCreateExitWarningProvider, useWithExitWarning, } from './controllers/exit-warning-modal-context';
6
6
  export type { Validator, ValidatorMap } from './common/types';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { jsx } from '@emotion/react';
3
- import type { LinkCreateWithModalProps } from '../../common/types';
4
- declare const ComposedLinkCreate: import("react").MemoExoticComponent<(props: LinkCreateWithModalProps) => jsx.JSX.Element>;
3
+ import type { LinkCreateProps } from '../../common/types';
4
+ declare const ComposedLinkCreate: import("react").MemoExoticComponent<(props: LinkCreateProps) => jsx.JSX.Element>;
5
5
  export default ComposedLinkCreate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "2.6.0",
3
+ "version": "2.7.1",
4
4
  "description": "The driver component of meta creation flow",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",