remix-validated-form 4.6.9 → 4.6.11
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/.turbo/turbo-build.log +18 -18
- package/dist/index.cjs.js +5 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/ValidatedForm.tsx +2 -3
- package/src/internal/hooks.ts +4 -1
package/.turbo/turbo-build.log
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
$ tsup
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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
|
package/dist/index.cjs.js
CHANGED
@@ -1073,7 +1073,9 @@ var useDefaultValuesFromLoader = ({
|
|
1073
1073
|
const matches = (0, import_react2.useMatches)();
|
1074
1074
|
if (typeof formId === "string") {
|
1075
1075
|
const dataKey = formDefaultValuesKey(formId);
|
1076
|
-
const match = matches.reverse().find(
|
1076
|
+
const match = matches.reverse().find(
|
1077
|
+
(match2) => match2.data && typeof match2.data === "object" && dataKey in match2.data
|
1078
|
+
);
|
1077
1079
|
return match == null ? void 0 : match.data[dataKey];
|
1078
1080
|
}
|
1079
1081
|
return null;
|
@@ -1585,7 +1587,7 @@ function ValidatedForm({
|
|
1585
1587
|
startSubmit();
|
1586
1588
|
const submitter = nativeEvent.submitter;
|
1587
1589
|
const formMethod = (submitter == null ? void 0 : submitter.formMethod) || method;
|
1588
|
-
const formDataToValidate = getDataFromForm(
|
1590
|
+
const formDataToValidate = getDataFromForm(target);
|
1589
1591
|
if (submitter == null ? void 0 : submitter.name) {
|
1590
1592
|
formDataToValidate.append(submitter.name, submitter.value);
|
1591
1593
|
}
|
@@ -1609,7 +1611,7 @@ function ValidatedForm({
|
|
1609
1611
|
return;
|
1610
1612
|
}
|
1611
1613
|
if (fetcher)
|
1612
|
-
fetcher.submit(submitter ||
|
1614
|
+
fetcher.submit(submitter || target, { method: formMethod });
|
1613
1615
|
else
|
1614
1616
|
submit(submitter || target, {
|
1615
1617
|
replace: replace2,
|