@bolttech/form-engine 3.0.0-beta.26 → 3.0.0-beta.27

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 +5 -8
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -310,7 +310,6 @@ And this will give you the following properties in addition to the native ones o
310
310
  | masks | TSchemaMasks | Allows you to display the value of the masked component by events |
311
311
  | clearFields | TSchemaClearFields | Will clear target fields in case they do not pass with the specified validations |
312
312
  | api | TSchemaApi | Allows you to make api calls using events emitted by the component. |
313
- | errorMessages | TErrorMessages | Field error messages in case any validation fails |
314
313
  | filter | TSchemaValidation | Filters the component value based on a validation. |
315
314
  | formatters | TSchemaFormatters | Allows you to format the value that the field will receive for each event issuance |
316
315
  | visibilityConditions | TSchemaVisibilityConditions | Allows you to specify the conditions a given field will be visible what will run when this field meets the specified life-cycle |
@@ -355,16 +354,14 @@ In the following example `asFormField` hooks are used to create `Component` fiel
355
354
  ]
356
355
  }
357
356
  validations={{
358
- config: {
357
+ methods: {
359
358
  callback: (data) => {
360
- return {
361
- fail: data === '10/10/1000',
362
- };
363
- },
359
+ return data === '10/10/1000';
360
+ }
364
361
  },
365
- events: ['ON_FIELD_BLUR']
362
+ eventMessages: { ON_FIELD_BLUR: [ 'callback' ] },
363
+ messages: { callback: 'ERRRO' }
366
364
  }}
367
- errorMessages={{ callback: 'ERRRO' }}
368
365
  />
369
366
  </FormGroupContextProvider>;
370
367
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@bolttech/form-engine",
3
- "version": "3.0.0-beta.26",
3
+ "version": "3.0.0-beta.27",
4
4
  "description": "A react adapter for bolttech form engine",
5
5
  "module": "./index.esm.js",
6
6
  "type": "module",
7
7
  "main": "./index.esm.js",
8
8
  "dependencies": {
9
- "@bolttech/form-engine-core": "0.0.1-beta.17",
9
+ "@bolttech/form-engine-core": "0.0.1-beta.18",
10
10
  "react": "18.2.0"
11
11
  },
12
12
  "peerDependencies": {}