@form-instant/react-resolver-zod 1.18.12 → 2.0.0-rc.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.
Files changed (34) hide show
  1. package/dist/components/FormInstantProvider.d.ts +10 -0
  2. package/dist/components/SchemaMapper.d.ts +24 -0
  3. package/dist/examples/completeExample.d.ts +6 -0
  4. package/dist/examples/fieldConfigExample.d.ts +158 -0
  5. package/dist/examples/formInstantExample.d.ts +6 -0
  6. package/dist/examples/legacyCompatibility.d.ts +30 -0
  7. package/dist/hooks/useSchemaMapping.d.ts +22 -0
  8. package/dist/hooks/useSchemaMetadata.d.ts +26 -0
  9. package/dist/hooks/useSchemaNavigation.d.ts +18 -0
  10. package/dist/index.d.ts +5 -6
  11. package/dist/index.js +2 -7
  12. package/dist/index.js.map +13 -0
  13. package/dist/types.d.ts +48 -0
  14. package/dist/utils/pathResolver.d.ts +26 -0
  15. package/dist/utils/schemaParser.d.ts +19 -0
  16. package/dist/utils/zodExtensions.d.ts +974 -0
  17. package/package.json +57 -58
  18. package/dist/context.d.ts +0 -2
  19. package/dist/funcs/default-values.d.ts +0 -4
  20. package/dist/funcs/field-config.d.ts +0 -11
  21. package/dist/funcs/field-type-inference.d.ts +0 -3
  22. package/dist/funcs/index.d.ts +0 -5
  23. package/dist/funcs/schema-parser.d.ts +0 -2
  24. package/dist/funcs/types.d.ts +0 -11
  25. package/dist/provider.d.ts +0 -6
  26. package/dist/react-resolver-zod.cjs.development.js +0 -416
  27. package/dist/react-resolver-zod.cjs.development.js.map +0 -1
  28. package/dist/react-resolver-zod.cjs.production.min.js +0 -2
  29. package/dist/react-resolver-zod.cjs.production.min.js.map +0 -1
  30. package/dist/react-resolver-zod.esm.js +0 -401
  31. package/dist/react-resolver-zod.esm.js.map +0 -1
  32. package/dist/type.d.ts +0 -2
  33. package/dist/useSchema.d.ts +0 -14
  34. /package/dist/{element.d.ts → components/FormInstantElement.d.ts} +0 -0
package/dist/type.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { ZodDiscriminatedUnion, ZodEffects, ZodObject } from 'zod';
2
- export type zodResolverProps = ZodObject<any, any> | ZodEffects<any, any> | ZodDiscriminatedUnion<any, any>;
@@ -1,14 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const useFields: <Sc extends Record<string, any>>(key: keyof Sc) => import("@form-instant/react-input-mapping").ParsedField<null, string>;
3
- type Data = Zod.AnyZodObject | Zod.ZodEffects<Zod.AnyZodObject> | Zod.ZodDiscriminatedUnion<any, any>;
4
- type DP = Record<string, any>;
5
- export declare const generateInitialValues: <S extends Record<string, any>>(schema: Data, dp: DP) => S;
6
- export declare const useSchema: <S extends Record<string, any>>(cbP: (dp: DP, preData?: Data) => Data, dp: DP) => {
7
- schema: z.AnyZodObject | z.ZodEffects<z.AnyZodObject, {
8
- [x: string]: any;
9
- }, {
10
- [x: string]: any;
11
- }> | z.ZodDiscriminatedUnion<any, any>;
12
- initialValues: S;
13
- };
14
- export {};