remix-validated-form 4.6.8 → 4.6.10
Sign up to get free protection for your applications and to get access to all the features.
- package/.turbo/turbo-build.log +18 -17
- package/.turbo/turbo-typecheck.log +0 -13
- package/dist/index.cjs.js +4 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/ValidatedForm.tsx +4 -3
package/.turbo/turbo-build.log
CHANGED
@@ -1,17 +1,18 @@
|
|
1
|
-
[2K[1G[2m$
|
2
|
-
[
|
3
|
-
|
4
|
-
[
|
5
|
-
|
6
|
-
[
|
7
|
-
[
|
8
|
-
[
|
9
|
-
[
|
10
|
-
|
11
|
-
|
12
|
-
[
|
13
|
-
[
|
14
|
-
[
|
15
|
-
[
|
16
|
-
[
|
17
|
-
[39m
|
1
|
+
[2K[1G[2m$ tsup[22m
|
2
|
+
[34mCLI[39m Building entry: src/index.ts
|
3
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
4
|
+
[34mCLI[39m tsup v6.5.0
|
5
|
+
[34mCLI[39m Using tsup config: /Users/aaronpettengill/dev/remix-validated-form/packages/remix-validated-form/tsup.config.ts
|
6
|
+
[34mCLI[39m Target: es2019
|
7
|
+
[34mCLI[39m Cleaning output folder
|
8
|
+
[34mESM[39m Build start
|
9
|
+
[34mCJS[39m Build start
|
10
|
+
[32mESM[39m [1mdist/index.esm.js [22m[32m56.25 KB[39m
|
11
|
+
[32mESM[39m [1mdist/index.esm.js.map [22m[32m121.08 KB[39m
|
12
|
+
[32mESM[39m ⚡️ Build success in 27ms
|
13
|
+
[32mCJS[39m [1mdist/index.cjs.js [22m[32m58.87 KB[39m
|
14
|
+
[32mCJS[39m [1mdist/index.cjs.js.map [22m[32m121.22 KB[39m
|
15
|
+
[32mCJS[39m ⚡️ Build success in 26ms
|
16
|
+
[34mDTS[39m Build start
|
17
|
+
[32mDTS[39m ⚡️ Build success in 1588ms
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m11.67 KB[39m
|
@@ -1,14 +1 @@
|
|
1
1
|
[2K[1G[2m$ tsc --noEmit[22m
|
2
|
-
src/internal/state/createFormStore.ts(4,10): error TS2614: Module '"zustand"' has no exported member 'create'. Did you mean to use 'import create from "zustand"' instead?
|
3
|
-
src/internal/state/createFormStore.ts(496,12): error TS7006: Parameter 'formId' implicitly has an 'any' type.
|
4
|
-
src/internal/state/createFormStore.ts(497,14): error TS2571: Object is of type 'unknown'.
|
5
|
-
src/internal/state/createFormStore.ts(500,12): error TS7006: Parameter 'state' implicitly has an 'any' type.
|
6
|
-
src/internal/state/createFormStore.ts(505,11): error TS2571: Object is of type 'unknown'.
|
7
|
-
src/internal/state/createFormStore.ts(506,12): error TS7006: Parameter 'state' implicitly has an 'any' type.
|
8
|
-
src/internal/state/createFormStore.ts(508,28): error TS7006: Parameter 'state' implicitly has an 'any' type.
|
9
|
-
src/internal/state/createFormStore.ts(509,17): error TS2571: Object is of type 'unknown'.
|
10
|
-
src/internal/state/storeHooks.ts(8,28): error TS7006: Parameter 'state' implicitly has an 'any' type.
|
11
|
-
src/ValidatedForm.tsx(251,41): error TS7006: Parameter 'state' implicitly has an 'any' type.
|
12
|
-
src/ValidatedForm.tsx(252,42): error TS7006: Parameter 'state' implicitly has an 'any' type.
|
13
|
-
[2K[1G[31merror[39m Command failed with exit code 2.
|
14
|
-
[2K[1G[34minfo[39m Visit [1mhttps://yarnpkg.com/en/docs/cli/run[22m for documentation about this command.
|
package/dist/index.cjs.js
CHANGED
@@ -1584,7 +1584,8 @@ function ValidatedForm({
|
|
1584
1584
|
const handleSubmit = async (e, target, nativeEvent) => {
|
1585
1585
|
startSubmit();
|
1586
1586
|
const submitter = nativeEvent.submitter;
|
1587
|
-
const
|
1587
|
+
const formMethod = (submitter == null ? void 0 : submitter.formMethod) || method;
|
1588
|
+
const formDataToValidate = getDataFromForm(target);
|
1588
1589
|
if (submitter == null ? void 0 : submitter.name) {
|
1589
1590
|
formDataToValidate.append(submitter.name, submitter.value);
|
1590
1591
|
}
|
@@ -1608,11 +1609,11 @@ function ValidatedForm({
|
|
1608
1609
|
return;
|
1609
1610
|
}
|
1610
1611
|
if (fetcher)
|
1611
|
-
fetcher.submit(submitter ||
|
1612
|
+
fetcher.submit(submitter || target, { method: formMethod });
|
1612
1613
|
else
|
1613
1614
|
submit(submitter || target, {
|
1614
1615
|
replace: replace2,
|
1615
|
-
method:
|
1616
|
+
method: formMethod
|
1616
1617
|
});
|
1617
1618
|
}
|
1618
1619
|
};
|