@digigov/form 0.8.7-alpha → 0.9.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.
- package/CHANGELOG.md +13 -1
- package/create-simple-form.mdx +3 -0
- package/es/create-simple-form.mdx +3 -0
- package/es/internal.js +1 -0
- package/esm/create-simple-form.mdx +3 -0
- package/esm/index.js +1 -1
- package/esm/internal.js +1 -0
- package/internal.d.ts +1 -0
- package/internal.js +14 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
# Change Log - @digigov/form
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 30 Sep 2022 10:47:58 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.9.0
|
|
6
|
+
Fri, 30 Sep 2022 10:47:58 GMT
|
|
7
|
+
|
|
8
|
+
### Minor changes
|
|
9
|
+
|
|
10
|
+
- update sdk-docs with a note about shouldFocusError prop
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- Add storybook example for preview display of multiplicity fields
|
|
15
|
+
- Fix missing export for FormContext causing apps to fail when they use it
|
|
4
16
|
|
|
5
17
|
## 0.8.6
|
|
6
18
|
Tue, 27 Sep 2022 14:49:37 GMT
|
package/create-simple-form.mdx
CHANGED
|
@@ -227,6 +227,9 @@ inputs with almost zero coding needed.
|
|
|
227
227
|
|
|
228
228
|
That's good. But we have yet to gather data in our code when users submit the form.
|
|
229
229
|
|
|
230
|
+
Note. We should note that behind the scenes the Digigov Form inherits a prop (from [React Hook Form](https://react-hook-form.com/api/useform/)) called `shouldFocusError`
|
|
231
|
+
which sets focus on the first field that has an error. You can check it out by pessing the submit button.
|
|
232
|
+
|
|
230
233
|
## Handling onSubmit events
|
|
231
234
|
|
|
232
235
|
Naturally, when we get data from HTML forms, we make use of the `submit` events
|
|
@@ -227,6 +227,9 @@ inputs with almost zero coding needed.
|
|
|
227
227
|
|
|
228
228
|
That's good. But we have yet to gather data in our code when users submit the form.
|
|
229
229
|
|
|
230
|
+
Note. We should note that behind the scenes the Digigov Form inherits a prop (from [React Hook Form](https://react-hook-form.com/api/useform/)) called `shouldFocusError`
|
|
231
|
+
which sets focus on the first field that has an error. You can check it out by pessing the submit button.
|
|
232
|
+
|
|
230
233
|
## Handling onSubmit events
|
|
231
234
|
|
|
232
235
|
Naturally, when we get data from HTML forms, we make use of the `submit` events
|
package/es/internal.js
CHANGED
|
@@ -25,6 +25,7 @@ export * from '@digigov/form/inputs/Label';
|
|
|
25
25
|
export { default as Radio } from '@digigov/form/inputs/Radio';
|
|
26
26
|
export * from '@digigov/form/inputs/Radio';
|
|
27
27
|
export { default as Select } from '@digigov/form/inputs/Select';
|
|
28
|
+
export * from '@digigov/form/FormContext';
|
|
28
29
|
export * from '@digigov/form/inputs/Select';
|
|
29
30
|
export * from '@digigov/form/inputs';
|
|
30
31
|
export * from '@digigov/form/internal';
|
|
@@ -227,6 +227,9 @@ inputs with almost zero coding needed.
|
|
|
227
227
|
|
|
228
228
|
That's good. But we have yet to gather data in our code when users submit the form.
|
|
229
229
|
|
|
230
|
+
Note. We should note that behind the scenes the Digigov Form inherits a prop (from [React Hook Form](https://react-hook-form.com/api/useform/)) called `shouldFocusError`
|
|
231
|
+
which sets focus on the first field that has an error. You can check it out by pessing the submit button.
|
|
232
|
+
|
|
230
233
|
## Handling onSubmit events
|
|
231
234
|
|
|
232
235
|
Naturally, when we get data from HTML forms, we make use of the `submit` events
|
package/esm/index.js
CHANGED
package/esm/internal.js
CHANGED
|
@@ -25,6 +25,7 @@ export * from '@digigov/form/inputs/Label';
|
|
|
25
25
|
export { default as Radio } from '@digigov/form/inputs/Radio';
|
|
26
26
|
export * from '@digigov/form/inputs/Radio';
|
|
27
27
|
export { default as Select } from '@digigov/form/inputs/Select';
|
|
28
|
+
export * from '@digigov/form/FormContext';
|
|
28
29
|
export * from '@digigov/form/inputs/Select';
|
|
29
30
|
export * from '@digigov/form/inputs';
|
|
30
31
|
export * from '@digigov/form/internal';
|
package/internal.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export * from '@digigov/form/inputs/Label';
|
|
|
25
25
|
export { default as Radio } from '@digigov/form/inputs/Radio';
|
|
26
26
|
export * from '@digigov/form/inputs/Radio';
|
|
27
27
|
export { default as Select } from '@digigov/form/inputs/Select';
|
|
28
|
+
export * from '@digigov/form/FormContext';
|
|
28
29
|
export * from '@digigov/form/inputs/Select';
|
|
29
30
|
export * from '@digigov/form/inputs';
|
|
30
31
|
export * from '@digigov/form/internal';
|
package/internal.js
CHANGED
|
@@ -302,6 +302,20 @@ Object.keys(_Select).forEach(function (key) {
|
|
|
302
302
|
});
|
|
303
303
|
});
|
|
304
304
|
|
|
305
|
+
var _FormContext = require("@digigov/form/FormContext");
|
|
306
|
+
|
|
307
|
+
Object.keys(_FormContext).forEach(function (key) {
|
|
308
|
+
if (key === "default" || key === "__esModule") return;
|
|
309
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
310
|
+
if (key in exports && exports[key] === _FormContext[key]) return;
|
|
311
|
+
Object.defineProperty(exports, key, {
|
|
312
|
+
enumerable: true,
|
|
313
|
+
get: function get() {
|
|
314
|
+
return _FormContext[key];
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
});
|
|
318
|
+
|
|
305
319
|
var _inputs = require("@digigov/form/inputs");
|
|
306
320
|
|
|
307
321
|
Object.keys(_inputs).forEach(function (key) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/form",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "@digigov form builder",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"@hookform/resolvers": "2.9.6"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@digigov/ui": "0.26.7
|
|
22
|
-
"@digigov/react-core": "0.16.
|
|
23
|
-
"@digigov/react-extensions": "0.18.
|
|
21
|
+
"@digigov/ui": "0.26.7",
|
|
22
|
+
"@digigov/react-core": "0.16.5",
|
|
23
|
+
"@digigov/react-extensions": "0.18.4",
|
|
24
24
|
"clsx": "1.1.1",
|
|
25
25
|
"react": "^16.8.0 || ^17.0.0",
|
|
26
26
|
"react-dom": "^16.8.0 || ^17.0.0"
|