@bpmn-io/form-js-editor 0.7.0 → 0.7.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.
@@ -11,6 +11,10 @@ export function exportSchema(schema: any, exporter: any, schemaVersion: any): an
11
11
  * properties: FormEditorProperties,
12
12
  * schema: Schema
13
13
  * } } State
14
+ *
15
+ * @typedef { (type:string, priority:number, handler:Function) => void } OnEventWithPriority
16
+ * @typedef { (type:string, handler:Function) => void } OnEventWithOutPriority
17
+ * @typedef { OnEventWithPriority & OnEventWithOutPriority } OnEventType
14
18
  */
15
19
  /**
16
20
  * The form editor.
@@ -21,6 +25,11 @@ export default class FormEditor {
21
25
  * @param {FormEditorOptions} options
22
26
  */
23
27
  constructor(options?: FormEditorOptions);
28
+ /**
29
+ * @public
30
+ * @type {OnEventType}
31
+ */
32
+ public on: OnEventType;
24
33
  /**
25
34
  * @public
26
35
  * @type {String}
@@ -77,12 +86,6 @@ export default class FormEditor {
77
86
  * @param {any} value
78
87
  */
79
88
  setProperty(property: any, value: any): void;
80
- /**
81
- * @param {string} type
82
- * @param {number} priority
83
- * @param {Function} handler
84
- */
85
- on(type: string, priority: number, handler: Function): void;
86
89
  /**
87
90
  * @param {string} type
88
91
  * @param {Function} handler
@@ -128,6 +131,10 @@ export default class FormEditor {
128
131
  selection: (string | typeof import("./features/selection/Selection").default)[];
129
132
  selectionBehavior: (string | typeof import("./features/selection/SelectionBehavior").default)[];
130
133
  })[];
134
+ /**
135
+ * @internal
136
+ */
137
+ _onEvent(type: any, priority: any, handler: any): void;
131
138
  }
132
139
  export type Injector = any;
133
140
  export type Module = import('./types').Module;
@@ -138,3 +145,6 @@ export type State = {
138
145
  properties: FormEditorProperties;
139
146
  schema: Schema;
140
147
  };
148
+ export type OnEventWithPriority = OnEventWithPriority;
149
+ export type OnEventWithOutPriority = OnEventWithOutPriority;
150
+ export type OnEventType = OnEventWithPriority & OnEventWithOutPriority;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmn-io/form-js-editor",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Edit forms - powered by bpmn.io",
5
5
  "exports": {
6
6
  ".": {
@@ -41,7 +41,7 @@
41
41
  "url": "https://github.com/bpmn-io"
42
42
  },
43
43
  "dependencies": {
44
- "@bpmn-io/form-js-viewer": "^0.7.0",
44
+ "@bpmn-io/form-js-viewer": "^0.7.1",
45
45
  "array-move": "^3.0.1",
46
46
  "dragula": "^3.7.3",
47
47
  "ids": "^1.0.0",
@@ -55,5 +55,5 @@
55
55
  "files": [
56
56
  "dist"
57
57
  ],
58
- "gitHead": "978132ea4bda84b1045b815e24f2dab9a102ccd9"
58
+ "gitHead": "75a12520e4a55c2d3b4fcab6464fe86026ba40b2"
59
59
  }