remix-validated-form 4.6.8 → 4.6.10

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.
@@ -1,17 +1,18 @@
1
- $ vite build
2
- vite v2.9.15 building for production...
3
- transforming...
4
- ✓ 291 modules transformed.
5
- rendering chunks...
6
- dist/remix-validated-form.cjs.js  32.76 KiB / gzip: 11.39 KiB
7
- dist/remix-validated-form.cjs.js.map 168.68 KiB
8
- dist/remix-validated-form.es.js  67.07 KiB / gzip: 15.71 KiB
9
- dist/remix-validated-form.es.js.map 166.22 KiB
10
- No name was provided for external module 'react' in output.globals – guessing 'React'
11
- No name was provided for external module '@remix-run/react' in output.globals – guessing 'react'
12
- dist/remix-validated-form.umd.js  32.95 KiB / gzip: 11.46 KiB
13
- dist/remix-validated-form.umd.js.map 168.64 KiB
14
- 
15
- [vite:dts] Start generate declaration files...
16
- [vite:dts] Declaration files built in 1834ms.
17
- 
1
+ $ tsup
2
+ CLI Building entry: src/index.ts
3
+ CLI Using tsconfig: tsconfig.json
4
+ CLI tsup v6.5.0
5
+ CLI Using tsup config: /Users/aaronpettengill/dev/remix-validated-form/packages/remix-validated-form/tsup.config.ts
6
+ CLI Target: es2019
7
+ CLI Cleaning output folder
8
+ ESM Build start
9
+ CJS Build start
10
+ ESM dist/index.esm.js 56.25 KB
11
+ ESM dist/index.esm.js.map 121.08 KB
12
+ ESM ⚡️ Build success in 27ms
13
+ CJS dist/index.cjs.js 58.87 KB
14
+ CJS dist/index.cjs.js.map 121.22 KB
15
+ CJS ⚡️ Build success in 26ms
16
+ DTS Build start
17
+ DTS ⚡️ Build success in 1588ms
18
+ DTS dist/index.d.ts 11.67 KB
@@ -1,14 +1 @@
1
1
  $ tsc --noEmit
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
- error Command failed with exit code 2.
14
- info Visit https://yarnpkg.com/en/docs/cli/run 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 formDataToValidate = getDataFromForm(e.currentTarget);
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 || e.currentTarget);
1612
+ fetcher.submit(submitter || target, { method: formMethod });
1612
1613
  else
1613
1614
  submit(submitter || target, {
1614
1615
  replace: replace2,
1615
- method: (submitter == null ? void 0 : submitter.formMethod) || method
1616
+ method: formMethod
1616
1617
  });
1617
1618
  }
1618
1619
  };