@atlaskit/forge-react-types 0.35.5 → 0.35.7

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,19 @@
1
1
  # @atlaskit/forge-react-types
2
2
 
3
+ ## 0.35.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.35.6
10
+
11
+ ### Patch Changes
12
+
13
+ - [#112145](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112145)
14
+ [`f4270a2af5cb7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f4270a2af5cb7) -
15
+ Fix form component onSubmit behaviour in jira assets import module
16
+
3
17
  ## 0.35.5
4
18
 
5
19
  ### Patch Changes
@@ -3,12 +3,13 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - FormProps
5
5
  *
6
- * @codegen <<SignedSource::090d27d13d3501730a8a468864818a17>>
6
+ * @codegen <<SignedSource::dea38cc30d6c9b3c90a177c2653326bf>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/form/index.tsx <<SignedSource::4e22f44554236bb94cd211c5a4fec470>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/form/index.tsx <<SignedSource::8609216439e3924527aacde2ec0cef97>>
9
9
  */
10
10
  import type { ReactNode } from 'react';
11
11
  export type FormProps = {
12
- onSubmit: () => void;
12
+ onSubmit: () => void | boolean;
13
13
  children: ReactNode;
14
14
  };
15
+ export type TForm<T> = (props: FormProps) => T;
@@ -3,12 +3,13 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - FormProps
5
5
  *
6
- * @codegen <<SignedSource::090d27d13d3501730a8a468864818a17>>
6
+ * @codegen <<SignedSource::dea38cc30d6c9b3c90a177c2653326bf>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/form/index.tsx <<SignedSource::4e22f44554236bb94cd211c5a4fec470>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/form/index.tsx <<SignedSource::8609216439e3924527aacde2ec0cef97>>
9
9
  */
10
10
  import type { ReactNode } from 'react';
11
11
  export type FormProps = {
12
- onSubmit: () => void;
12
+ onSubmit: () => void | boolean;
13
13
  children: ReactNode;
14
14
  };
15
+ export type TForm<T> = (props: FormProps) => T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/forge-react-types",
3
- "version": "0.35.5",
3
+ "version": "0.35.7",
4
4
  "description": "Component types for Forge UI Kit React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,7 +29,7 @@
29
29
  "@atlaskit/calendar": "^16.3.0",
30
30
  "@atlaskit/checkbox": "^15.3.0",
31
31
  "@atlaskit/code": "^15.7.0",
32
- "@atlaskit/datetime-picker": "^15.12.0",
32
+ "@atlaskit/datetime-picker": "^15.13.0",
33
33
  "@atlaskit/dynamic-table": "^17.1.0",
34
34
  "@atlaskit/empty-state": "^8.2.0",
35
35
  "@atlaskit/form": "^11.1.0",
@@ -43,14 +43,14 @@
43
43
  "@atlaskit/progress-tracker": "9.3.2",
44
44
  "@atlaskit/radio": "^7.2.0",
45
45
  "@atlaskit/range": "^8.1.0",
46
- "@atlaskit/renderer": "^112.13.0",
46
+ "@atlaskit/renderer": "^112.14.0",
47
47
  "@atlaskit/section-message": "^6.9.0",
48
48
  "@atlaskit/select": "^18.10.0",
49
49
  "@atlaskit/spinner": "^17.1.0",
50
50
  "@atlaskit/tabs": "^17.2.0",
51
51
  "@atlaskit/tag": "^13.0.0",
52
52
  "@atlaskit/tag-group": "^11.1.0",
53
- "@atlaskit/textarea": "^6.0.0",
53
+ "@atlaskit/textarea": "^7.0.0",
54
54
  "@atlaskit/textfield": "^6.8.0",
55
55
  "@atlaskit/toggle": "^14.1.0",
56
56
  "@atlaskit/tokens": "^3.3.0",
@@ -3,15 +3,17 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - FormProps
5
5
  *
6
- * @codegen <<SignedSource::090d27d13d3501730a8a468864818a17>>
6
+ * @codegen <<SignedSource::dea38cc30d6c9b3c90a177c2653326bf>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/form/index.tsx <<SignedSource::4e22f44554236bb94cd211c5a4fec470>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/form/index.tsx <<SignedSource::8609216439e3924527aacde2ec0cef97>>
9
9
  */
10
10
  /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
11
 
12
12
  import type { ReactNode } from 'react';
13
13
 
14
14
  export type FormProps = {
15
- onSubmit: () => void;
15
+ onSubmit: () => void | boolean;
16
16
  children: ReactNode;
17
- };
17
+ };
18
+
19
+ export type TForm<T> = (props: FormProps) => T;