@startupjs-ui/form 0.2.0-alpha.0 → 0.2.0-alpha.1
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 +8 -0
- package/index.tsx +1 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.2.0-alpha.1](https://github.com/startupjs/startupjs-ui/compare/v0.2.0-alpha.0...v0.2.0-alpha.1) (2026-04-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @startupjs-ui/form
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [0.2.0-alpha.0](https://github.com/startupjs/startupjs-ui/compare/v0.1.22...v0.2.0-alpha.0) (2026-03-27)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @startupjs-ui/form
|
package/index.tsx
CHANGED
|
@@ -71,10 +71,9 @@ function Form ({
|
|
|
71
71
|
() => fields, [JSON.stringify(fields)]
|
|
72
72
|
)
|
|
73
73
|
|
|
74
|
-
if (!$errors) $errors = $()
|
|
74
|
+
if (!$errors) $errors = $()
|
|
75
75
|
const validator = useMemo(() => new Validator(), [])
|
|
76
76
|
|
|
77
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
78
77
|
useMemo(() => {
|
|
79
78
|
validator.init({
|
|
80
79
|
fields: $fields?.get() || memoizedFields,
|
|
@@ -108,7 +107,6 @@ function Form ({
|
|
|
108
107
|
debouncedValidate()
|
|
109
108
|
}))
|
|
110
109
|
|
|
111
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
112
110
|
useMemo(() => {
|
|
113
111
|
// if validate prop is set, trigger validation right away on mount.
|
|
114
112
|
if (validate === true) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs-ui/form",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"types": "index.d.ts",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@startupjs-ui/core": "^0.2.0-alpha.
|
|
12
|
-
"@startupjs-ui/input": "^0.2.0-alpha.
|
|
13
|
-
"@startupjs-ui/object-input": "^0.2.0-alpha.
|
|
11
|
+
"@startupjs-ui/core": "^0.2.0-alpha.1",
|
|
12
|
+
"@startupjs-ui/input": "^0.2.0-alpha.1",
|
|
13
|
+
"@startupjs-ui/object-input": "^0.2.0-alpha.1",
|
|
14
14
|
"lodash": "^4.17.20"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"react-native": "*",
|
|
19
19
|
"startupjs": "*"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "b48004779559b16c96a2a1995dab13b998eafce9"
|
|
22
22
|
}
|