@bpmn-io/form-js-viewer 1.8.5 → 1.8.6

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.es.js CHANGED
@@ -7585,6 +7585,9 @@ class Validator {
7585
7585
  expressionContextInfo
7586
7586
  } = fieldInstance;
7587
7587
  const field = this._formFieldRegistry.get(id);
7588
+ if (!field) {
7589
+ return [];
7590
+ }
7588
7591
  const {
7589
7592
  type,
7590
7593
  validate
@@ -8405,6 +8408,10 @@ class FormFieldInstanceRegistry {
8405
8408
  valuePath,
8406
8409
  indexes
8407
8410
  };
8411
+ this._eventBus.fire('formFieldInstanceRegistry.changed', {
8412
+ instanceId,
8413
+ action: 'added'
8414
+ });
8408
8415
  return instanceId;
8409
8416
  }
8410
8417
  remove(instanceId) {
@@ -8412,6 +8419,10 @@ class FormFieldInstanceRegistry {
8412
8419
  return;
8413
8420
  }
8414
8421
  delete this._formFieldInstances[instanceId];
8422
+ this._eventBus.fire('formFieldInstanceRegistry.changed', {
8423
+ instanceId,
8424
+ action: 'removed'
8425
+ });
8415
8426
  }
8416
8427
  getAll() {
8417
8428
  return Object.values(this._formFieldInstances);