@formkit/zod 0.18.0-34efff6 → 0.18.0-58f8ea7

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/dist/index.cjs CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var core = require('@formkit/core');
6
4
 
7
5
  function createMessageName(node) {
@@ -101,7 +99,7 @@ function createZodPlugin(zodSchema, submitCallback) {
101
99
  setFormValidations(zodResults.error, node);
102
100
  }
103
101
  else {
104
- await submitCallback(payload, node);
102
+ await submitCallback(zodResults.data, node);
105
103
  }
106
104
  }
107
105
  // Sets the form errors on the correct nodes.
package/dist/index.d.ts CHANGED
@@ -25,6 +25,7 @@ export declare function createZodPlugin<Z extends z.ZodTypeAny>(zodSchema: Z, su
25
25
 
26
26
  /**
27
27
  * Extend FormKitNode with setZodErrors.
28
+ * @public
28
29
  */
29
30
  declare module '@formkit/core' {
30
31
  interface FormKitNodeExtensions {
package/dist/index.mjs CHANGED
@@ -97,7 +97,7 @@ function createZodPlugin(zodSchema, submitCallback) {
97
97
  setFormValidations(zodResults.error, node);
98
98
  }
99
99
  else {
100
- await submitCallback(payload, node);
100
+ await submitCallback(zodResults.data, node);
101
101
  }
102
102
  }
103
103
  // Sets the form errors on the correct nodes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formkit/zod",
3
- "version": "0.18.0-34efff6",
3
+ "version": "0.18.0-58f8ea7",
4
4
  "type": "module",
5
5
  "description": "Zod validation for FormKit.",
6
6
  "main": "dist/index.cjs",
@@ -30,14 +30,14 @@
30
30
  "Justin Schroeder <justin@formkit.com>"
31
31
  ],
32
32
  "license": "MIT",
33
- "scripts": {
34
- "test": "jest"
35
- },
36
33
  "dependencies": {
37
- "@formkit/core": "0.18.0-34efff6"
34
+ "@formkit/core": "0.18.0-58f8ea7"
38
35
  },
39
36
  "devDependencies": {},
40
37
  "peerDependencies": {
41
38
  "zod": "^3.0.0"
39
+ },
40
+ "scripts": {
41
+ "test": "jest"
42
42
  }
43
43
  }