@atlaskit/link-create 1.0.1 → 1.0.3
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 +13 -0
- package/analytics.spec.yaml +1 -1
- package/dist/cjs/common/utils/analytics/analytics.codegen.js +1 -1
- package/dist/cjs/ui/create-form/async-select/main.js +2 -2
- package/dist/cjs/ui/create-form/form-footer/main.js +5 -0
- package/dist/cjs/ui/create-form/form-loader/main.js +5 -0
- package/dist/cjs/ui/create-form/select/main.js +2 -2
- package/dist/cjs/ui/create-form/textfield/main.js +1 -1
- package/dist/cjs/ui/main.js +2 -3
- package/dist/es2019/common/utils/analytics/analytics.codegen.js +1 -1
- package/dist/es2019/ui/create-form/async-select/main.js +2 -2
- package/dist/es2019/ui/create-form/form-footer/main.js +5 -0
- package/dist/es2019/ui/create-form/form-loader/main.js +5 -0
- package/dist/es2019/ui/create-form/select/main.js +2 -2
- package/dist/es2019/ui/create-form/textfield/main.js +1 -1
- package/dist/es2019/ui/main.js +2 -3
- package/dist/esm/common/utils/analytics/analytics.codegen.js +1 -1
- package/dist/esm/ui/create-form/async-select/main.js +2 -2
- package/dist/esm/ui/create-form/form-footer/main.js +5 -0
- package/dist/esm/ui/create-form/form-loader/main.js +5 -0
- package/dist/esm/ui/create-form/select/main.js +2 -2
- package/dist/esm/ui/create-form/textfield/main.js +1 -1
- package/dist/esm/ui/main.js +2 -3
- package/dist/types/common/utils/analytics/analytics.codegen.d.ts +2 -2
- package/dist/types/ui/create-form/async-select/main.d.ts +2 -2
- package/dist/types/ui/create-form/form-footer/main.d.ts +5 -0
- package/dist/types/ui/create-form/form-loader/main.d.ts +4 -0
- package/dist/types/ui/create-form/select/main.d.ts +2 -2
- package/dist/types/ui/create-form/textfield/main.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/analytics/analytics.codegen.d.ts +2 -2
- package/dist/types-ts4.5/ui/create-form/async-select/main.d.ts +2 -2
- package/dist/types-ts4.5/ui/create-form/form-footer/main.d.ts +5 -0
- package/dist/types-ts4.5/ui/create-form/form-loader/main.d.ts +4 -0
- package/dist/types-ts4.5/ui/create-form/select/main.d.ts +2 -2
- package/dist/types-ts4.5/ui/create-form/textfield/main.d.ts +1 -1
- package/package.json +3 -8
- package/report.api.md +1 -1
- package/tmp/api-report-tmp.d.ts +1 -1
- package/dist/cjs/version.json +0 -5
- package/dist/es2019/version.json +0 -5
- package/dist/esm/version.json +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/link-create
|
|
2
2
|
|
|
3
|
+
## 1.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 1.0.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`f01deb5e6ab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f01deb5e6ab) - Use injected env vars instead of version.json
|
|
15
|
+
|
|
3
16
|
## 1.0.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/analytics.spec.yaml
CHANGED
|
@@ -11,7 +11,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
11
11
|
*
|
|
12
12
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
13
13
|
*
|
|
14
|
-
* @codegen <<SignedSource::
|
|
14
|
+
* @codegen <<SignedSource::afcb2b69ebf56a35a2926fa7fdfd1118>>
|
|
15
15
|
* @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
|
|
16
16
|
*/
|
|
17
17
|
|
|
@@ -23,8 +23,8 @@ var _excluded = ["id", "name", "label", "isRequired", "validators", "validationH
|
|
|
23
23
|
var TEST_ID = 'link-create-async-select';
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
* An async select utilising the Atlaskit AsyncSelect and
|
|
27
|
-
*
|
|
26
|
+
* An async select utilising the Atlaskit AsyncSelect and CreateField.
|
|
27
|
+
* Validation is handled by the form on form submission. Any
|
|
28
28
|
* errors returned by the handleSubmit function passed to the form <Form> that
|
|
29
29
|
* have a key matching the `name` of this field are shown below the field.
|
|
30
30
|
*/
|
|
@@ -26,6 +26,11 @@ var errorStyles = (0, _react.css)({
|
|
|
26
26
|
alignItems: 'center',
|
|
27
27
|
marginRight: 'auto'
|
|
28
28
|
});
|
|
29
|
+
/**
|
|
30
|
+
* Footer for the Create Form, used as a wrapper for action buttons
|
|
31
|
+
* and form error messages. This component is unmounted if
|
|
32
|
+
* hideFooter is true in the Create Form.
|
|
33
|
+
*/
|
|
29
34
|
function CreateFormFooter(_ref) {
|
|
30
35
|
var formErrorMessage = _ref.formErrorMessage,
|
|
31
36
|
handleCancel = _ref.handleCancel,
|
|
@@ -16,6 +16,11 @@ var formLoaderStyles = (0, _react.css)({
|
|
|
16
16
|
justifyContent: "center",
|
|
17
17
|
minHeight: "".concat(_constants.CREATE_FORM_MIN_HEIGHT_IN_PX, "px")
|
|
18
18
|
});
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Wrapper component for the Spinner, shows while the form
|
|
22
|
+
* performs async functions on load.
|
|
23
|
+
*/
|
|
19
24
|
function CreateFormLoader(_ref) {
|
|
20
25
|
var _ref$size = _ref.size,
|
|
21
26
|
size = _ref$size === void 0 ? 'large' : _ref$size;
|
|
@@ -16,8 +16,8 @@ var _excluded = ["id", "name", "label", "isRequired", "validators", "validationH
|
|
|
16
16
|
/** @jsx jsx */
|
|
17
17
|
var TEST_ID = 'link-create-select';
|
|
18
18
|
/**
|
|
19
|
-
* A select utilising the Atlaskit Select and
|
|
20
|
-
*
|
|
19
|
+
* A select component utilising the Atlaskit Select and CreateField.
|
|
20
|
+
* Validation is handled by the form on form submission. Any
|
|
21
21
|
* errors returned by the handleSubmit function passed to the form <Form> that
|
|
22
22
|
* have a key matching the `name` of this field are shown below the field.
|
|
23
23
|
*/
|
|
@@ -17,7 +17,7 @@ var _excluded = ["id", "name", "label", "isRequired", "validators", "validationH
|
|
|
17
17
|
var TEST_ID = 'link-create-text-field';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* A text field utilising the Atlaskit Textfield and
|
|
20
|
+
* A text field utilising the Atlaskit Textfield and CreateField.
|
|
21
21
|
* Validation is handled by the form as it is on form submission. Any errors returned by
|
|
22
22
|
* the handleSubmit function passed to the form <Form> that have a key matching the `name`
|
|
23
23
|
* of this text field are shown above the field.
|
package/dist/cjs/ui/main.js
CHANGED
|
@@ -15,7 +15,6 @@ var _constants = require("../common/constants");
|
|
|
15
15
|
var _analytics = require("../common/utils/analytics");
|
|
16
16
|
var _fetchMessagesForLocale = require("../common/utils/locale/fetch-messages-for-locale");
|
|
17
17
|
var _en = _interopRequireDefault(require("../i18n/en"));
|
|
18
|
-
var _version = require("../version.json");
|
|
19
18
|
var _linkCreate = _interopRequireDefault(require("./link-create"));
|
|
20
19
|
/** @jsx jsx */
|
|
21
20
|
|
|
@@ -24,8 +23,8 @@ var LinkCreateWithAnalyticsContext = (0, _analytics.withLinkCreateAnalyticsConte
|
|
|
24
23
|
return (0, _react2.jsx)(_linkCreate.default, props);
|
|
25
24
|
}));
|
|
26
25
|
var PACKAGE_DATA = {
|
|
27
|
-
packageName:
|
|
28
|
-
packageVersion:
|
|
26
|
+
packageName: "@atlaskit/link-create",
|
|
27
|
+
packageVersion: "1.0.3",
|
|
29
28
|
componentName: _constants.COMPONENT_NAME,
|
|
30
29
|
source: _constants.COMPONENT_NAME
|
|
31
30
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::afcb2b69ebf56a35a2926fa7fdfd1118>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -9,8 +9,8 @@ import { CreateField } from '../../../controllers/create-field';
|
|
|
9
9
|
export const TEST_ID = 'link-create-async-select';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* An async select utilising the Atlaskit AsyncSelect and
|
|
13
|
-
*
|
|
12
|
+
* An async select utilising the Atlaskit AsyncSelect and CreateField.
|
|
13
|
+
* Validation is handled by the form on form submission. Any
|
|
14
14
|
* errors returned by the handleSubmit function passed to the form <Form> that
|
|
15
15
|
* have a key matching the `name` of this field are shown below the field.
|
|
16
16
|
*/
|
|
@@ -15,6 +15,11 @@ const errorStyles = css({
|
|
|
15
15
|
alignItems: 'center',
|
|
16
16
|
marginRight: 'auto'
|
|
17
17
|
});
|
|
18
|
+
/**
|
|
19
|
+
* Footer for the Create Form, used as a wrapper for action buttons
|
|
20
|
+
* and form error messages. This component is unmounted if
|
|
21
|
+
* hideFooter is true in the Create Form.
|
|
22
|
+
*/
|
|
18
23
|
export function CreateFormFooter({
|
|
19
24
|
formErrorMessage,
|
|
20
25
|
handleCancel,
|
|
@@ -8,6 +8,11 @@ const formLoaderStyles = css({
|
|
|
8
8
|
justifyContent: `center`,
|
|
9
9
|
minHeight: `${CREATE_FORM_MIN_HEIGHT_IN_PX}px`
|
|
10
10
|
});
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Wrapper component for the Spinner, shows while the form
|
|
14
|
+
* performs async functions on load.
|
|
15
|
+
*/
|
|
11
16
|
export function CreateFormLoader({
|
|
12
17
|
size = 'large'
|
|
13
18
|
}) {
|
|
@@ -6,8 +6,8 @@ import AkSelect from '@atlaskit/select';
|
|
|
6
6
|
import { CreateField } from '../../../controllers/create-field';
|
|
7
7
|
export const TEST_ID = 'link-create-select';
|
|
8
8
|
/**
|
|
9
|
-
* A select utilising the Atlaskit Select and
|
|
10
|
-
*
|
|
9
|
+
* A select component utilising the Atlaskit Select and CreateField.
|
|
10
|
+
* Validation is handled by the form on form submission. Any
|
|
11
11
|
* errors returned by the handleSubmit function passed to the form <Form> that
|
|
12
12
|
* have a key matching the `name` of this field are shown below the field.
|
|
13
13
|
*/
|
|
@@ -6,7 +6,7 @@ import { CreateField } from '../../../controllers/create-field';
|
|
|
6
6
|
export const TEST_ID = 'link-create-text-field';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* A text field utilising the Atlaskit Textfield and
|
|
9
|
+
* A text field utilising the Atlaskit Textfield and CreateField.
|
|
10
10
|
* Validation is handled by the form as it is on form submission. Any errors returned by
|
|
11
11
|
* the handleSubmit function passed to the form <Form> that have a key matching the `name`
|
|
12
12
|
* of this text field are shown above the field.
|
package/dist/es2019/ui/main.js
CHANGED
|
@@ -7,7 +7,6 @@ import { COMPONENT_NAME } from '../common/constants';
|
|
|
7
7
|
import { withLinkCreateAnalyticsContext } from '../common/utils/analytics';
|
|
8
8
|
import { fetchMessagesForLocale } from '../common/utils/locale/fetch-messages-for-locale';
|
|
9
9
|
import i18nEN from '../i18n/en';
|
|
10
|
-
import { name as packageName, version as packageVersion } from '../version.json';
|
|
11
10
|
import LinkCreate from './link-create';
|
|
12
11
|
const LinkCreateWithAnalyticsContext = withLinkCreateAnalyticsContext( /*#__PURE__*/memo(({
|
|
13
12
|
...props
|
|
@@ -15,8 +14,8 @@ const LinkCreateWithAnalyticsContext = withLinkCreateAnalyticsContext( /*#__PURE
|
|
|
15
14
|
return jsx(LinkCreate, props);
|
|
16
15
|
}));
|
|
17
16
|
export const PACKAGE_DATA = {
|
|
18
|
-
packageName,
|
|
19
|
-
packageVersion,
|
|
17
|
+
packageName: "@atlaskit/link-create",
|
|
18
|
+
packageVersion: "1.0.3",
|
|
20
19
|
componentName: COMPONENT_NAME,
|
|
21
20
|
source: COMPONENT_NAME
|
|
22
21
|
};
|
|
@@ -4,7 +4,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
4
4
|
*
|
|
5
5
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
6
6
|
*
|
|
7
|
-
* @codegen <<SignedSource::
|
|
7
|
+
* @codegen <<SignedSource::afcb2b69ebf56a35a2926fa7fdfd1118>>
|
|
8
8
|
* @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -15,8 +15,8 @@ import { CreateField } from '../../../controllers/create-field';
|
|
|
15
15
|
export var TEST_ID = 'link-create-async-select';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* An async select utilising the Atlaskit AsyncSelect and
|
|
19
|
-
*
|
|
18
|
+
* An async select utilising the Atlaskit AsyncSelect and CreateField.
|
|
19
|
+
* Validation is handled by the form on form submission. Any
|
|
20
20
|
* errors returned by the handleSubmit function passed to the form <Form> that
|
|
21
21
|
* have a key matching the `name` of this field are shown below the field.
|
|
22
22
|
*/
|
|
@@ -15,6 +15,11 @@ var errorStyles = css({
|
|
|
15
15
|
alignItems: 'center',
|
|
16
16
|
marginRight: 'auto'
|
|
17
17
|
});
|
|
18
|
+
/**
|
|
19
|
+
* Footer for the Create Form, used as a wrapper for action buttons
|
|
20
|
+
* and form error messages. This component is unmounted if
|
|
21
|
+
* hideFooter is true in the Create Form.
|
|
22
|
+
*/
|
|
18
23
|
export function CreateFormFooter(_ref) {
|
|
19
24
|
var formErrorMessage = _ref.formErrorMessage,
|
|
20
25
|
handleCancel = _ref.handleCancel,
|
|
@@ -8,6 +8,11 @@ var formLoaderStyles = css({
|
|
|
8
8
|
justifyContent: "center",
|
|
9
9
|
minHeight: "".concat(CREATE_FORM_MIN_HEIGHT_IN_PX, "px")
|
|
10
10
|
});
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Wrapper component for the Spinner, shows while the form
|
|
14
|
+
* performs async functions on load.
|
|
15
|
+
*/
|
|
11
16
|
export function CreateFormLoader(_ref) {
|
|
12
17
|
var _ref$size = _ref.size,
|
|
13
18
|
size = _ref$size === void 0 ? 'large' : _ref$size;
|
|
@@ -9,8 +9,8 @@ import AkSelect from '@atlaskit/select';
|
|
|
9
9
|
import { CreateField } from '../../../controllers/create-field';
|
|
10
10
|
export var TEST_ID = 'link-create-select';
|
|
11
11
|
/**
|
|
12
|
-
* A select utilising the Atlaskit Select and
|
|
13
|
-
*
|
|
12
|
+
* A select component utilising the Atlaskit Select and CreateField.
|
|
13
|
+
* Validation is handled by the form on form submission. Any
|
|
14
14
|
* errors returned by the handleSubmit function passed to the form <Form> that
|
|
15
15
|
* have a key matching the `name` of this field are shown below the field.
|
|
16
16
|
*/
|
|
@@ -9,7 +9,7 @@ import { CreateField } from '../../../controllers/create-field';
|
|
|
9
9
|
export var TEST_ID = 'link-create-text-field';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* A text field utilising the Atlaskit Textfield and
|
|
12
|
+
* A text field utilising the Atlaskit Textfield and CreateField.
|
|
13
13
|
* Validation is handled by the form as it is on form submission. Any errors returned by
|
|
14
14
|
* the handleSubmit function passed to the form <Form> that have a key matching the `name`
|
|
15
15
|
* of this text field are shown above the field.
|
package/dist/esm/ui/main.js
CHANGED
|
@@ -9,15 +9,14 @@ import { COMPONENT_NAME } from '../common/constants';
|
|
|
9
9
|
import { withLinkCreateAnalyticsContext } from '../common/utils/analytics';
|
|
10
10
|
import { fetchMessagesForLocale } from '../common/utils/locale/fetch-messages-for-locale';
|
|
11
11
|
import i18nEN from '../i18n/en';
|
|
12
|
-
import { name as packageName, version as packageVersion } from '../version.json';
|
|
13
12
|
import LinkCreate from './link-create';
|
|
14
13
|
var LinkCreateWithAnalyticsContext = withLinkCreateAnalyticsContext( /*#__PURE__*/memo(function (_ref) {
|
|
15
14
|
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
16
15
|
return jsx(LinkCreate, props);
|
|
17
16
|
}));
|
|
18
17
|
export var PACKAGE_DATA = {
|
|
19
|
-
packageName:
|
|
20
|
-
packageVersion:
|
|
18
|
+
packageName: "@atlaskit/link-create",
|
|
19
|
+
packageVersion: "1.0.3",
|
|
21
20
|
componentName: COMPONENT_NAME,
|
|
22
21
|
source: COMPONENT_NAME
|
|
23
22
|
};
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::afcb2b69ebf56a35a2926fa7fdfd1118>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
10
|
-
packageName:
|
|
10
|
+
packageName: string;
|
|
11
11
|
packageVersion: string;
|
|
12
12
|
source: 'linkCreate';
|
|
13
13
|
componentName: 'linkCreate';
|
|
@@ -3,8 +3,8 @@ import { OptionType } from '@atlaskit/select';
|
|
|
3
3
|
import { AsyncSelectProps } from './types';
|
|
4
4
|
export declare const TEST_ID = "link-create-async-select";
|
|
5
5
|
/**
|
|
6
|
-
* An async select utilising the Atlaskit AsyncSelect and
|
|
7
|
-
*
|
|
6
|
+
* An async select utilising the Atlaskit AsyncSelect and CreateField.
|
|
7
|
+
* Validation is handled by the form on form submission. Any
|
|
8
8
|
* errors returned by the handleSubmit function passed to the form <Form> that
|
|
9
9
|
* have a key matching the `name` of this field are shown below the field.
|
|
10
10
|
*/
|
|
@@ -6,4 +6,9 @@ export interface CreateFormFooterProps {
|
|
|
6
6
|
submitting: boolean;
|
|
7
7
|
testId?: string;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Footer for the Create Form, used as a wrapper for action buttons
|
|
11
|
+
* and form error messages. This component is unmounted if
|
|
12
|
+
* hideFooter is true in the Create Form.
|
|
13
|
+
*/
|
|
9
14
|
export declare function CreateFormFooter({ formErrorMessage, handleCancel, submitting, testId, }: CreateFormFooterProps): jsx.JSX.Element;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
3
|
import { SpinnerProps } from '@atlaskit/spinner';
|
|
4
|
+
/**
|
|
5
|
+
* Wrapper component for the Spinner, shows while the form
|
|
6
|
+
* performs async functions on load.
|
|
7
|
+
*/
|
|
4
8
|
export declare function CreateFormLoader({ size }: Partial<SpinnerProps>): jsx.JSX.Element;
|
|
@@ -4,8 +4,8 @@ import { OptionType } from '@atlaskit/select';
|
|
|
4
4
|
import { SelectProps } from './types';
|
|
5
5
|
export declare const TEST_ID = "link-create-select";
|
|
6
6
|
/**
|
|
7
|
-
* A select utilising the Atlaskit Select and
|
|
8
|
-
*
|
|
7
|
+
* A select component utilising the Atlaskit Select and CreateField.
|
|
8
|
+
* Validation is handled by the form on form submission. Any
|
|
9
9
|
* errors returned by the handleSubmit function passed to the form <Form> that
|
|
10
10
|
* have a key matching the `name` of this field are shown below the field.
|
|
11
11
|
*/
|
|
@@ -3,7 +3,7 @@ import { jsx } from '@emotion/react';
|
|
|
3
3
|
import { TextFieldProps } from './types';
|
|
4
4
|
export declare const TEST_ID = "link-create-text-field";
|
|
5
5
|
/**
|
|
6
|
-
* A text field utilising the Atlaskit Textfield and
|
|
6
|
+
* A text field utilising the Atlaskit Textfield and CreateField.
|
|
7
7
|
* Validation is handled by the form as it is on form submission. Any errors returned by
|
|
8
8
|
* the handleSubmit function passed to the form <Form> that have a key matching the `name`
|
|
9
9
|
* of this text field are shown above the field.
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::afcb2b69ebf56a35a2926fa7fdfd1118>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
10
|
-
packageName:
|
|
10
|
+
packageName: string;
|
|
11
11
|
packageVersion: string;
|
|
12
12
|
source: 'linkCreate';
|
|
13
13
|
componentName: 'linkCreate';
|
|
@@ -3,8 +3,8 @@ import { OptionType } from '@atlaskit/select';
|
|
|
3
3
|
import { AsyncSelectProps } from './types';
|
|
4
4
|
export declare const TEST_ID = "link-create-async-select";
|
|
5
5
|
/**
|
|
6
|
-
* An async select utilising the Atlaskit AsyncSelect and
|
|
7
|
-
*
|
|
6
|
+
* An async select utilising the Atlaskit AsyncSelect and CreateField.
|
|
7
|
+
* Validation is handled by the form on form submission. Any
|
|
8
8
|
* errors returned by the handleSubmit function passed to the form <Form> that
|
|
9
9
|
* have a key matching the `name` of this field are shown below the field.
|
|
10
10
|
*/
|
|
@@ -6,4 +6,9 @@ export interface CreateFormFooterProps {
|
|
|
6
6
|
submitting: boolean;
|
|
7
7
|
testId?: string;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Footer for the Create Form, used as a wrapper for action buttons
|
|
11
|
+
* and form error messages. This component is unmounted if
|
|
12
|
+
* hideFooter is true in the Create Form.
|
|
13
|
+
*/
|
|
9
14
|
export declare function CreateFormFooter({ formErrorMessage, handleCancel, submitting, testId, }: CreateFormFooterProps): jsx.JSX.Element;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
3
|
import { SpinnerProps } from '@atlaskit/spinner';
|
|
4
|
+
/**
|
|
5
|
+
* Wrapper component for the Spinner, shows while the form
|
|
6
|
+
* performs async functions on load.
|
|
7
|
+
*/
|
|
4
8
|
export declare function CreateFormLoader({ size }: Partial<SpinnerProps>): jsx.JSX.Element;
|
|
@@ -4,8 +4,8 @@ import { OptionType } from '@atlaskit/select';
|
|
|
4
4
|
import { SelectProps } from './types';
|
|
5
5
|
export declare const TEST_ID = "link-create-select";
|
|
6
6
|
/**
|
|
7
|
-
* A select utilising the Atlaskit Select and
|
|
8
|
-
*
|
|
7
|
+
* A select component utilising the Atlaskit Select and CreateField.
|
|
8
|
+
* Validation is handled by the form on form submission. Any
|
|
9
9
|
* errors returned by the handleSubmit function passed to the form <Form> that
|
|
10
10
|
* have a key matching the `name` of this field are shown below the field.
|
|
11
11
|
*/
|
|
@@ -3,7 +3,7 @@ import { jsx } from '@emotion/react';
|
|
|
3
3
|
import { TextFieldProps } from './types';
|
|
4
4
|
export declare const TEST_ID = "link-create-text-field";
|
|
5
5
|
/**
|
|
6
|
-
* A text field utilising the Atlaskit Textfield and
|
|
6
|
+
* A text field utilising the Atlaskit Textfield and CreateField.
|
|
7
7
|
* Validation is handled by the form as it is on form submission. Any errors returned by
|
|
8
8
|
* the handleSubmit function passed to the form <Form> that have a key matching the `name`
|
|
9
9
|
* of this text field are shown above the field.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-create",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "The driver component of meta creation flow",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
38
|
-
"@atlaskit/button": "^16.
|
|
38
|
+
"@atlaskit/button": "^16.9.0",
|
|
39
39
|
"@atlaskit/empty-state": "^7.6.0",
|
|
40
40
|
"@atlaskit/form": "^8.11.0",
|
|
41
41
|
"@atlaskit/icon": "^21.12.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/select": "^16.5.0",
|
|
45
45
|
"@atlaskit/spinner": "^15.4.0",
|
|
46
46
|
"@atlaskit/textfield": "^5.6.0",
|
|
47
|
-
"@atlaskit/tokens": "^1.
|
|
47
|
+
"@atlaskit/tokens": "^1.15.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"@emotion/react": "^11.7.1",
|
|
50
50
|
"debounce-promise": "^3.1.2",
|
|
@@ -106,10 +106,5 @@
|
|
|
106
106
|
]
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
|
-
"techstackIgnore": {
|
|
110
|
-
"stricter": [
|
|
111
|
-
"@atlassian/tangerine/project-structure"
|
|
112
|
-
]
|
|
113
|
-
},
|
|
114
109
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
115
110
|
}
|
package/report.api.md
CHANGED
|
@@ -74,7 +74,7 @@ export const CreateForm: <FormData_1 extends Record<string, any> = {}>({
|
|
|
74
74
|
initialValues,
|
|
75
75
|
}: CreateFormProps<FormData_1>) => jsx.JSX.Element;
|
|
76
76
|
|
|
77
|
-
// @public
|
|
77
|
+
// @public
|
|
78
78
|
export function CreateFormLoader({
|
|
79
79
|
size,
|
|
80
80
|
}: Partial<SpinnerProps>): jsx.JSX.Element;
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export default ComposedLinkCreate;
|
|
|
39
39
|
// @public (undocumented)
|
|
40
40
|
export const CreateForm: <FormData_1 extends Record<string, any> = {}>({ children, testId, onSubmit, onCancel, isLoading, hideFooter, initialValues, }: CreateFormProps<FormData_1>) => jsx.JSX.Element;
|
|
41
41
|
|
|
42
|
-
// @public
|
|
42
|
+
// @public
|
|
43
43
|
export function CreateFormLoader({ size }: Partial<SpinnerProps>): jsx.JSX.Element;
|
|
44
44
|
|
|
45
45
|
// @public (undocumented)
|
package/dist/cjs/version.json
DELETED
package/dist/es2019/version.json
DELETED