@bpmn-io/form-js-viewer 1.8.0 → 1.8.1

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
@@ -7022,6 +7022,8 @@ var slice = Array.prototype.slice;
7022
7022
  * var sum = eventBus.fire('sum', 1, 2);
7023
7023
  * console.log(sum); // 3
7024
7024
  * ```
7025
+ *
7026
+ * @template [EventMap=null]
7025
7027
  */
7026
7028
  function EventBus() {
7027
7029
  /**
@@ -7035,6 +7037,8 @@ function EventBus() {
7035
7037
  }
7036
7038
 
7037
7039
  /**
7040
+ * @overlord
7041
+ *
7038
7042
  * Register an event listener for events with the given name.
7039
7043
  *
7040
7044
  * The callback will be invoked with `event, ...additionalArguments`
@@ -7053,6 +7057,25 @@ function EventBus() {
7053
7057
  * @param {EventBusEventCallback<T>} callback
7054
7058
  * @param {any} [that] callback context
7055
7059
  */
7060
+ /**
7061
+ * Register an event listener for events with the given name.
7062
+ *
7063
+ * The callback will be invoked with `event, ...additionalArguments`
7064
+ * that have been passed to {@link EventBus#fire}.
7065
+ *
7066
+ * Returning false from a listener will prevent the events default action
7067
+ * (if any is specified). To stop an event from being processed further in
7068
+ * other listeners execute {@link Event#stopPropagation}.
7069
+ *
7070
+ * Returning anything but `undefined` from a listener will stop the listener propagation.
7071
+ *
7072
+ * @template {keyof EventMap} EventName
7073
+ *
7074
+ * @param {EventName} events to subscribe to
7075
+ * @param {number} [priority=1000] listen priority
7076
+ * @param {EventBusEventCallback<EventMap[EventName]>} callback
7077
+ * @param {any} [that] callback context
7078
+ */
7056
7079
  EventBus.prototype.on = function (events, priority, callback, that) {
7057
7080
  events = minDash.isArray(events) ? events : [events];
7058
7081
  if (minDash.isFunction(priority)) {
@@ -7083,6 +7106,8 @@ EventBus.prototype.on = function (events, priority, callback, that) {
7083
7106
  };
7084
7107
 
7085
7108
  /**
7109
+ * @overlord
7110
+ *
7086
7111
  * Register an event listener that is called only once.
7087
7112
  *
7088
7113
  * @template T
@@ -7092,6 +7117,16 @@ EventBus.prototype.on = function (events, priority, callback, that) {
7092
7117
  * @param {EventBusEventCallback<T>} callback
7093
7118
  * @param {any} [that] callback context
7094
7119
  */
7120
+ /**
7121
+ * Register an event listener that is called only once.
7122
+ *
7123
+ * @template {keyof EventMap} EventName
7124
+ *
7125
+ * @param {EventName} events to subscribe to
7126
+ * @param {number} [priority=1000] listen priority
7127
+ * @param {EventBusEventCallback<EventMap[EventName]>} callback
7128
+ * @param {any} [that] callback context
7129
+ */
7095
7130
  EventBus.prototype.once = function (events, priority, callback, that) {
7096
7131
  var self = this;
7097
7132
  if (minDash.isFunction(priority)) {