@bolttech/form-engine-core 0.0.2-beta.6 → 0.0.2-beta.7

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/index.esm.js +8 -8
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -2503,13 +2503,13 @@ class FormField {
2503
2503
  this.component = schemaComponent.component;
2504
2504
  this.path = path;
2505
2505
  this.children = children;
2506
- this.validations = schemaComponent.validations;
2507
- this.errorMessages = (_a = schemaComponent.validations) === null || _a === void 0 ? void 0 : _a.messages;
2508
- this.visibilityConditions = schemaComponent.visibilityConditions;
2509
- this.resetValues = schemaComponent.resetValues;
2510
- this.apiSchema = schemaComponent.api;
2511
- this.formatters = schemaComponent.formatters;
2512
- this.masks = schemaComponent.masks;
2506
+ this.validations = cloneDeep(schemaComponent.validations);
2507
+ this.errorMessages = cloneDeep((_a = schemaComponent.validations) === null || _a === void 0 ? void 0 : _a.messages);
2508
+ this.visibilityConditions = cloneDeep(schemaComponent.visibilityConditions);
2509
+ this.resetValues = cloneDeep(schemaComponent.resetValues);
2510
+ this.apiSchema = cloneDeep(schemaComponent.api);
2511
+ this.formatters = cloneDeep(schemaComponent.formatters);
2512
+ this.masks = cloneDeep(schemaComponent.masks);
2513
2513
  if (mapper.valueChangeEvent) this.valueChangeEvent = mapper.valueChangeEvent;
2514
2514
  if ((_b = mapper.events) === null || _b === void 0 ? void 0 : _b.setValue) this.valuePropName = mapper.events.setValue;
2515
2515
  this.mapper = mapper;
@@ -2520,7 +2520,7 @@ class FormField {
2520
2520
  this.fieldEventSubject$ = fieldEventSubject$;
2521
2521
  this.dataSubject$ = dataSubject$;
2522
2522
  this.formValidNotification$ = formValidNotification$;
2523
- this._props = schemaComponent.props || {};
2523
+ this._props = cloneDeep(schemaComponent.props || {});
2524
2524
  this._metadata = '';
2525
2525
  this.errorsString = '';
2526
2526
  this.errorsList = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bolttech/form-engine-core",
3
- "version": "0.0.2-beta.6",
3
+ "version": "0.0.2-beta.7",
4
4
  "module": "./index.esm.js",
5
5
  "type": "module",
6
6
  "main": "./index.esm.js",