@atlaskit/link-create 1.0.0 → 1.0.2

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 (44) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/analytics.spec.yaml +1 -1
  3. package/dist/cjs/common/utils/analytics/analytics.codegen.js +1 -1
  4. package/dist/cjs/ui/create-form/async-select/main.js +2 -2
  5. package/dist/cjs/ui/create-form/form-footer/main.js +5 -0
  6. package/dist/cjs/ui/create-form/form-loader/main.js +5 -0
  7. package/dist/cjs/ui/create-form/main.js +1 -1
  8. package/dist/cjs/ui/create-form/select/main.js +2 -2
  9. package/dist/cjs/ui/create-form/textfield/main.js +1 -1
  10. package/dist/cjs/ui/main.js +2 -3
  11. package/dist/cjs/version.json +1 -1
  12. package/dist/es2019/common/utils/analytics/analytics.codegen.js +1 -1
  13. package/dist/es2019/ui/create-form/async-select/main.js +2 -2
  14. package/dist/es2019/ui/create-form/form-footer/main.js +5 -0
  15. package/dist/es2019/ui/create-form/form-loader/main.js +5 -0
  16. package/dist/es2019/ui/create-form/main.js +1 -1
  17. package/dist/es2019/ui/create-form/select/main.js +2 -2
  18. package/dist/es2019/ui/create-form/textfield/main.js +1 -1
  19. package/dist/es2019/ui/main.js +2 -3
  20. package/dist/es2019/version.json +1 -1
  21. package/dist/esm/common/utils/analytics/analytics.codegen.js +1 -1
  22. package/dist/esm/ui/create-form/async-select/main.js +2 -2
  23. package/dist/esm/ui/create-form/form-footer/main.js +5 -0
  24. package/dist/esm/ui/create-form/form-loader/main.js +5 -0
  25. package/dist/esm/ui/create-form/main.js +1 -1
  26. package/dist/esm/ui/create-form/select/main.js +2 -2
  27. package/dist/esm/ui/create-form/textfield/main.js +1 -1
  28. package/dist/esm/ui/main.js +2 -3
  29. package/dist/esm/version.json +1 -1
  30. package/dist/types/common/utils/analytics/analytics.codegen.d.ts +2 -2
  31. package/dist/types/ui/create-form/async-select/main.d.ts +2 -2
  32. package/dist/types/ui/create-form/form-footer/main.d.ts +5 -0
  33. package/dist/types/ui/create-form/form-loader/main.d.ts +4 -0
  34. package/dist/types/ui/create-form/select/main.d.ts +2 -2
  35. package/dist/types/ui/create-form/textfield/main.d.ts +1 -1
  36. package/dist/types-ts4.5/common/utils/analytics/analytics.codegen.d.ts +2 -2
  37. package/dist/types-ts4.5/ui/create-form/async-select/main.d.ts +2 -2
  38. package/dist/types-ts4.5/ui/create-form/form-footer/main.d.ts +5 -0
  39. package/dist/types-ts4.5/ui/create-form/form-loader/main.d.ts +4 -0
  40. package/dist/types-ts4.5/ui/create-form/select/main.d.ts +2 -2
  41. package/dist/types-ts4.5/ui/create-form/textfield/main.d.ts +1 -1
  42. package/package.json +4 -9
  43. package/report.api.md +1 -1
  44. package/tmp/api-report-tmp.d.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/link-create
2
2
 
3
+ ## 1.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`f01deb5e6ab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f01deb5e6ab) - Use injected env vars instead of version.json
8
+
9
+ ## 1.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`572ea7d92bd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/572ea7d92bd) - revised form mutator types
14
+
3
15
  ## 1.0.0
4
16
 
5
17
  ### Major Changes
@@ -5,7 +5,7 @@ common:
5
5
  context:
6
6
  PackageMetaData: &PackageMetaDataContext
7
7
  packageName:
8
- type: ['@atlaskit/link-create']
8
+ type: string
9
9
  description: name of the package the event was fired from
10
10
  packageVersion:
11
11
  type: string
@@ -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::50073590468fe2604f65d3e0b23d517b>>
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 Field components from
27
- * `@atlaskit/form`. Validation is handled by the form on form submission. Any
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;
@@ -82,7 +82,7 @@ var CreateForm = function CreateForm(_ref) {
82
82
  initialValues: initialValues,
83
83
  mutators: {
84
84
  setField: function setField(args, state, tools) {
85
- tools.changeValue(state, args[0], function () {
85
+ tools.changeValue(state, args[0].toString(), function () {
86
86
  return args[1];
87
87
  });
88
88
  }
@@ -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 Field components from
20
- * `@atlaskit/form`. Validation is handled by the form on form submission. Any
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 Field objects from `@atlaskit/form`.
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.
@@ -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: _version.name,
28
- packageVersion: _version.version,
26
+ packageName: "@atlaskit/link-create",
27
+ packageVersion: "1.0.2",
29
28
  componentName: _constants.COMPONENT_NAME,
30
29
  source: _constants.COMPONENT_NAME
31
30
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::50073590468fe2604f65d3e0b23d517b>>
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 Field components from
13
- * `@atlaskit/form`. Validation is handled by the form on form submission. Any
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
  }) {
@@ -55,7 +55,7 @@ export const CreateForm = ({
55
55
  initialValues: initialValues,
56
56
  mutators: {
57
57
  setField: (args, state, tools) => {
58
- tools.changeValue(state, args[0], () => args[1]);
58
+ tools.changeValue(state, args[0].toString(), () => args[1]);
59
59
  }
60
60
  }
61
61
  }, ({
@@ -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 Field components from
10
- * `@atlaskit/form`. Validation is handled by the form on form submission. Any
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 Field objects from `@atlaskit/form`.
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.
@@ -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.2",
20
19
  componentName: COMPONENT_NAME,
21
20
  source: COMPONENT_NAME
22
21
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -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::50073590468fe2604f65d3e0b23d517b>>
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 Field components from
19
- * `@atlaskit/form`. Validation is handled by the form on form submission. Any
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;
@@ -74,7 +74,7 @@ export var CreateForm = function CreateForm(_ref) {
74
74
  initialValues: initialValues,
75
75
  mutators: {
76
76
  setField: function setField(args, state, tools) {
77
- tools.changeValue(state, args[0], function () {
77
+ tools.changeValue(state, args[0].toString(), function () {
78
78
  return args[1];
79
79
  });
80
80
  }
@@ -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 Field components from
13
- * `@atlaskit/form`. Validation is handled by the form on form submission. Any
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 Field objects from `@atlaskit/form`.
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.
@@ -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: packageName,
20
- packageVersion: packageVersion,
18
+ packageName: "@atlaskit/link-create",
19
+ packageVersion: "1.0.2",
21
20
  componentName: COMPONENT_NAME,
22
21
  source: COMPONENT_NAME
23
22
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -3,11 +3,11 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::50073590468fe2604f65d3e0b23d517b>>
6
+ * @codegen <<SignedSource::afcb2b69ebf56a35a2926fa7fdfd1118>>
7
7
  * @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
8
8
  */
9
9
  export type PackageMetaDataType = {
10
- packageName: '@atlaskit/link-create';
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 Field components from
7
- * `@atlaskit/form`. Validation is handled by the form on form submission. Any
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 Field components from
8
- * `@atlaskit/form`. Validation is handled by the form on form submission. Any
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 Field objects from `@atlaskit/form`.
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::50073590468fe2604f65d3e0b23d517b>>
6
+ * @codegen <<SignedSource::afcb2b69ebf56a35a2926fa7fdfd1118>>
7
7
  * @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
8
8
  */
9
9
  export type PackageMetaDataType = {
10
- packageName: '@atlaskit/link-create';
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 Field components from
7
- * `@atlaskit/form`. Validation is handled by the form on form submission. Any
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 Field components from
8
- * `@atlaskit/form`. Validation is handled by the form on form submission. Any
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 Field objects from `@atlaskit/form`.
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.0",
3
+ "version": "1.0.2",
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.8.0",
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.13.0",
47
+ "@atlaskit/tokens": "^1.14.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@emotion/react": "^11.7.1",
50
50
  "debounce-promise": "^3.1.2",
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "devDependencies": {
59
59
  "@af/visual-regression": "*",
60
- "@atlaskit/link-test-helpers": "^5.0.0",
60
+ "@atlaskit/link-test-helpers": "^6.0.0",
61
61
  "@atlaskit/visual-regression": "*",
62
62
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
63
63
  "@testing-library/react": "^12.1.5",
@@ -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 (undocumented)
77
+ // @public
78
78
  export function CreateFormLoader({
79
79
  size,
80
80
  }: Partial<SpinnerProps>): jsx.JSX.Element;
@@ -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 (undocumented)
42
+ // @public
43
43
  export function CreateFormLoader({ size }: Partial<SpinnerProps>): jsx.JSX.Element;
44
44
 
45
45
  // @public (undocumented)