@atlaskit/form 10.4.7 → 10.5.0

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 (42) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/field.js +2 -1
  3. package/dist/cjs/fieldset.js +1 -1
  4. package/dist/cjs/form-footer.js +1 -1
  5. package/dist/cjs/form-header.js +1 -1
  6. package/dist/cjs/form-section.js +1 -1
  7. package/dist/cjs/label.js +1 -1
  8. package/dist/cjs/messages.js +1 -1
  9. package/dist/cjs/required-asterisk.js +1 -1
  10. package/dist/es2019/field.js +1 -1
  11. package/dist/es2019/fieldset.js +1 -1
  12. package/dist/es2019/form-footer.js +1 -1
  13. package/dist/es2019/form-header.js +1 -1
  14. package/dist/es2019/form-section.js +1 -1
  15. package/dist/es2019/label.js +1 -1
  16. package/dist/es2019/messages.js +1 -1
  17. package/dist/es2019/required-asterisk.js +1 -1
  18. package/dist/esm/field.js +1 -1
  19. package/dist/esm/fieldset.js +1 -1
  20. package/dist/esm/form-footer.js +1 -1
  21. package/dist/esm/form-header.js +1 -1
  22. package/dist/esm/form-section.js +1 -1
  23. package/dist/esm/label.js +1 -1
  24. package/dist/esm/messages.js +1 -1
  25. package/dist/esm/required-asterisk.js +1 -1
  26. package/dist/types/field.d.ts +1 -1
  27. package/dist/types/fieldset.d.ts +1 -1
  28. package/dist/types/form-footer.d.ts +1 -1
  29. package/dist/types/form-header.d.ts +1 -1
  30. package/dist/types/form-section.d.ts +1 -1
  31. package/dist/types/label.d.ts +1 -1
  32. package/dist/types/messages.d.ts +1 -1
  33. package/dist/types/required-asterisk.d.ts +1 -1
  34. package/dist/types-ts4.5/field.d.ts +1 -1
  35. package/dist/types-ts4.5/fieldset.d.ts +1 -1
  36. package/dist/types-ts4.5/form-footer.d.ts +1 -1
  37. package/dist/types-ts4.5/form-header.d.ts +1 -1
  38. package/dist/types-ts4.5/form-section.d.ts +1 -1
  39. package/dist/types-ts4.5/label.d.ts +1 -1
  40. package/dist/types-ts4.5/messages.d.ts +1 -1
  41. package/dist/types-ts4.5/required-asterisk.d.ts +1 -1
  42. package/package.json +16 -16
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @atlaskit/form
2
2
 
3
+ ## 10.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#127511](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/127511)
8
+ [`db30e29344013`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/db30e29344013) -
9
+ Widening range of `react` and `react-dom` peer dependencies from `^16.8.0 || ^17.0.0 || ~18.2.0`
10
+ to the wider range of ``^16.8.0 || ^17.0.0 || ^18.0.0` (where applicable).
11
+
12
+ This change has been done to enable usage of `react@18.3` as well as to have a consistent peer
13
+ dependency range for `react` and `react-dom` for `/platform` packages.
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
19
+ ## 10.4.8
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies
24
+
3
25
  ## 10.4.7
4
26
 
5
27
  ### Patch Changes
package/dist/cjs/field.js CHANGED
@@ -19,7 +19,8 @@ var _requiredAsterisk = _interopRequireDefault(require("./required-asterisk"));
19
19
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20
20
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
21
21
  * @jsxRuntime classic
22
- */ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
+ * @jsx jsx
23
+ */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
23
24
  var fieldWrapperStyles = (0, _react2.css)({
24
25
  marginBlockStart: "var(--ds-space-100, 8px)"
25
26
  });
@@ -8,8 +8,8 @@ var _react = require("@emotion/react");
8
8
  var _label = require("./label");
9
9
  /**
10
10
  * @jsxRuntime classic
11
+ * @jsx jsx
11
12
  */
12
- /** @jsx jsx */
13
13
 
14
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
15
 
@@ -7,8 +7,8 @@ exports.default = FormFooter;
7
7
  var _react = require("@emotion/react");
8
8
  /**
9
9
  * @jsxRuntime classic
10
+ * @jsx jsx
10
11
  */
11
- /** @jsx jsx */
12
12
 
13
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
14
14
 
@@ -12,8 +12,8 @@ var _primitives = require("@atlaskit/primitives");
12
12
  var _typography = require("@atlaskit/theme/typography");
13
13
  /**
14
14
  * @jsxRuntime classic
15
+ * @jsx jsx
15
16
  */
16
- /** @jsx jsx */
17
17
 
18
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
19
 
@@ -10,8 +10,8 @@ var _heading = _interopRequireDefault(require("@atlaskit/heading"));
10
10
  var _primitives = require("@atlaskit/primitives");
11
11
  /**
12
12
  * @jsxRuntime classic
13
+ * @jsx jsx
13
14
  */
14
- /** @jsx jsx */
15
15
 
16
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
17
17
 
package/dist/cjs/label.js CHANGED
@@ -9,8 +9,8 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
9
9
  var _colors = require("@atlaskit/theme/colors");
10
10
  /**
11
11
  * @jsxRuntime classic
12
+ * @jsx jsx
12
13
  */
13
- /** @jsx jsx */
14
14
 
15
15
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
16
 
@@ -12,8 +12,8 @@ var _colors = require("@atlaskit/theme/colors");
12
12
  var _fieldIdContext = require("./field-id-context");
13
13
  /**
14
14
  * @jsxRuntime classic
15
+ * @jsx jsx
15
16
  */
16
- /** @jsx jsx */
17
17
 
18
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
19
 
@@ -8,8 +8,8 @@ var _react = require("@emotion/react");
8
8
  var _colors = require("@atlaskit/theme/colors");
9
9
  /**
10
10
  * @jsxRuntime classic
11
+ * @jsx jsx
11
12
  */
12
- /** @jsx jsx */
13
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
14
14
 
15
15
  var requiredIndicatorStyles = (0, _react.css)({
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { useContext, useEffect, useMemo, useRef, useState } from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
 
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { css, jsx } from '@emotion/react';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
 
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { css, jsx } from '@emotion/react';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
 
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { css, jsx } from '@emotion/react';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
 
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { jsx } from '@emotion/react';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
 
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { css, jsx } from '@emotion/react';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
 
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { css, jsx } from '@emotion/react';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { css, jsx } from '@emotion/react';
7
7
  import { R400 } from '@atlaskit/theme/colors';
package/dist/esm/field.js CHANGED
@@ -5,8 +5,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
6
  /**
7
7
  * @jsxRuntime classic
8
+ * @jsx jsx
8
9
  */
9
- /** @jsx jsx */
10
10
  import { useContext, useEffect, useMemo, useRef, useState } from 'react';
11
11
 
12
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
 
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { css, jsx } from '@emotion/react';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
 
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { css, jsx } from '@emotion/react';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
 
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { css, jsx } from '@emotion/react';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
 
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { jsx } from '@emotion/react';
package/dist/esm/label.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
 
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { css, jsx } from '@emotion/react';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
 
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { css, jsx } from '@emotion/react';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { css, jsx } from '@emotion/react';
7
7
  import { R400 } from '@atlaskit/theme/colors';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type FormEvent, type ReactNode } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
7
  type SupportedElements = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type ReactNode } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
7
  export interface FieldsetProps {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type ReactNode } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
7
  import { type Align } from './types';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type ReactNode } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
7
  export interface FormHeaderProps {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type ReactNode } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
7
  export interface FormSectionProps {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type FC, type ReactNode } from 'react';
6
6
  export interface LabelProps {
7
7
  id?: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type ReactNode } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
7
  type MessageAppearance = 'default' | 'error' | 'valid';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { jsx } from '@emotion/react';
6
6
  export default function RequiredAsterisk(): jsx.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type FormEvent, type ReactNode } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
7
  type SupportedElements = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type ReactNode } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
7
  export interface FieldsetProps {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type ReactNode } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
7
  import { type Align } from './types';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type ReactNode } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
7
  export interface FormHeaderProps {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type ReactNode } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
7
  export interface FormSectionProps {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type FC, type ReactNode } from 'react';
6
6
  export interface LabelProps {
7
7
  id?: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type ReactNode } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
7
  type MessageAppearance = 'default' | 'error' | 'valid';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { jsx } from '@emotion/react';
6
6
  export default function RequiredAsterisk(): jsx.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/form",
3
- "version": "10.4.7",
3
+ "version": "10.5.0",
4
4
  "description": "A form allows users to input information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,11 +29,11 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@atlaskit/heading": "^2.4.0",
32
- "@atlaskit/icon": "^22.6.0",
32
+ "@atlaskit/icon": "^22.12.0",
33
33
  "@atlaskit/platform-feature-flags": "^0.3.0",
34
- "@atlaskit/primitives": "^11.0.0",
35
- "@atlaskit/theme": "^12.11.0",
36
- "@atlaskit/tokens": "^1.53.0",
34
+ "@atlaskit/primitives": "^12.0.0",
35
+ "@atlaskit/theme": "^12.12.0",
36
+ "@atlaskit/tokens": "^1.58.0",
37
37
  "@babel/runtime": "^7.0.0",
38
38
  "@emotion/react": "^11.7.1",
39
39
  "final-form": "^4.20.3",
@@ -43,23 +43,23 @@
43
43
  "tiny-invariant": "^1.2.0"
44
44
  },
45
45
  "peerDependencies": {
46
- "react": "^16.8.0 || ^17.0.0 || ~18.2.0"
46
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@af/accessibility-testing": "*",
50
50
  "@af/integration-testing": "*",
51
51
  "@af/visual-regression": "*",
52
- "@atlaskit/banner": "^12.4.0",
53
- "@atlaskit/button": "^18.3.0",
54
- "@atlaskit/checkbox": "^13.5.0",
55
- "@atlaskit/ds-lib": "^2.3.0",
56
- "@atlaskit/modal-dialog": "^12.14.0",
57
- "@atlaskit/radio": "^6.4.0",
58
- "@atlaskit/range": "^7.3.0",
59
- "@atlaskit/select": "^17.11.0",
52
+ "@atlaskit/banner": "^12.5.0",
53
+ "@atlaskit/button": "^19.2.0",
54
+ "@atlaskit/checkbox": "^13.7.0",
55
+ "@atlaskit/ds-lib": "^2.4.0",
56
+ "@atlaskit/modal-dialog": "^12.15.0",
57
+ "@atlaskit/radio": "^6.5.0",
58
+ "@atlaskit/range": "^7.4.0",
59
+ "@atlaskit/select": "^17.13.0",
60
60
  "@atlaskit/ssr": "*",
61
- "@atlaskit/textfield": "^6.4.0",
62
- "@atlaskit/toggle": "^13.2.0",
61
+ "@atlaskit/textfield": "^6.5.0",
62
+ "@atlaskit/toggle": "^13.3.0",
63
63
  "@atlaskit/visual-regression": "*",
64
64
  "@testing-library/react": "^12.1.5",
65
65
  "@testing-library/react-hooks": "^8.0.1",