@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.cjs CHANGED
@@ -7605,6 +7605,9 @@ class Validator {
7605
7605
  expressionContextInfo
7606
7606
  } = fieldInstance;
7607
7607
  const field = this._formFieldRegistry.get(id);
7608
+ if (!field) {
7609
+ return [];
7610
+ }
7608
7611
  const {
7609
7612
  type,
7610
7613
  validate
@@ -8425,6 +8428,10 @@ class FormFieldInstanceRegistry {
8425
8428
  valuePath,
8426
8429
  indexes
8427
8430
  };
8431
+ this._eventBus.fire('formFieldInstanceRegistry.changed', {
8432
+ instanceId,
8433
+ action: 'added'
8434
+ });
8428
8435
  return instanceId;
8429
8436
  }
8430
8437
  remove(instanceId) {
@@ -8432,6 +8439,10 @@ class FormFieldInstanceRegistry {
8432
8439
  return;
8433
8440
  }
8434
8441
  delete this._formFieldInstances[instanceId];
8442
+ this._eventBus.fire('formFieldInstanceRegistry.changed', {
8443
+ instanceId,
8444
+ action: 'removed'
8445
+ });
8435
8446
  }
8436
8447
  getAll() {
8437
8448
  return Object.values(this._formFieldInstances);