@form-instant/react-input-mapping 1.2.0 → 1.3.0

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 (2) hide show
  1. package/README.md +4 -16
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -186,18 +186,6 @@ To use our resolver we must add the function **_fieldConfig_**.
186
186
 
187
187
  #### **zod**
188
188
 
189
- generate provider and hook by use resolver.
190
-
191
- ```typescript
192
- import { createFormInstantContainer } from '@form-instant/react-input-mapping';
193
- import { inputMapping, P, K, extendProps } from './inputMapping.tsx';
194
-
195
- export const { FormInstantInputsProvider, useInputMapping, useSchema } = createFormInstantContainer<
196
- P,
197
- K
198
- >(inputMapping);
199
- ```
200
-
201
189
  add **_fieldConfig_** in the zod schema.
202
190
 
203
191
  ```typescript
@@ -212,7 +200,7 @@ export { z };
212
200
 
213
201
  #### \* **_build form_**
214
202
 
215
- - schema:
203
+ - schema:
216
204
 
217
205
  ```typescript
218
206
  import { z } from 'zod';
@@ -228,7 +216,7 @@ const formSchema = z.object({
228
216
  export type formSchemaType = Zod.infer<typeof formSchema>;
229
217
  ```
230
218
 
231
- - component
219
+ - component
232
220
 
233
221
  ```typescript
234
222
  import {
@@ -380,8 +368,8 @@ When used in **z.discriminatedUnion**, an array of objects is received, where th
380
368
  ```typescript
381
369
  import { Fragment, useId } from "react";
382
370
  import { ElementMapping, ParsedField, useFormInstantField } from "@form-instant/react-input-mapping";
383
- import { FormInstantElement, FormInstantProvider } from "@form-instant/react-resolver-zod";
384
- import { FormInstantInputsProvider, useInputMapping, useSchema } from "@/resolver";
371
+ import { FormInstantElement, FormInstantProvider, useSchema } from "@form-instant/react-resolver-zod";
372
+ import { FormInstantInputsProvider, useInputMapping } from "@/resolver";
385
373
  import { P } from "@/providers";
386
374
  import { z } from '@/zod';
387
375
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@form-instant/react-input-mapping",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "leomerida15",