@bpmn-io/form-js-editor 1.21.2 → 1.23.0

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.
@@ -124,6 +124,10 @@ export class FormEditor {
124
124
  * @internal
125
125
  */
126
126
  _getModules(): ({
127
+ __init__: string[];
128
+ formFieldContextActions: (string | typeof import("./features/context-pad").FormFieldContextActions)[];
129
+ deleteActionProvider: (string | typeof import("./features/context-pad").DeleteActionProvider)[];
130
+ } | {
127
131
  __depends__: {
128
132
  editorActions: (string | typeof import("diagram-js/lib/features/editor-actions/EditorActions").default)[];
129
133
  }[];
@@ -0,0 +1,22 @@
1
+ /**
2
+ * A context pad provider that contributes the delete action for form fields.
3
+ *
4
+ * @param {import('./FormFieldContextActions').FormFieldContextActions} formFieldContextActions
5
+ * @param {import('../modeling/Modeling').Modeling} modeling
6
+ * @param {import('../../core/FormFieldRegistry').FormFieldRegistry} formFieldRegistry
7
+ * @param {import('../../render/EditorFormFields').EditorFormFields} formFields
8
+ */
9
+ export class DeleteActionProvider {
10
+ constructor(formFieldContextActions: any, modeling: any, formFieldRegistry: any, formFields: any);
11
+ _modeling: any;
12
+ _formFieldRegistry: any;
13
+ _formFields: any;
14
+ /**
15
+ * @param {Object} formField
16
+ * @return {Object} entries
17
+ */
18
+ getContextPadEntries(formField: any): any;
19
+ }
20
+ export namespace DeleteActionProvider {
21
+ let $inject: string[];
22
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * A service that manages context pad action providers for form fields.
3
+ * Providers can register to contribute context pad entries for specific
4
+ * form field types.
5
+ *
6
+ * Inspired by the diagram-js ContextPad + provider pattern.
7
+ *
8
+ * @param {import('../../core/EventBus').EventBus} eventBus
9
+ */
10
+ export class FormFieldContextActions {
11
+ constructor(eventBus: any);
12
+ _eventBus: any;
13
+ /**
14
+ * Register a context pad provider with the default priority.
15
+ *
16
+ * @overlord
17
+ * @param {Object} provider
18
+ */
19
+ /**
20
+ * Register a context pad provider with the given priority.
21
+ *
22
+ * @param {number} priority
23
+ * @param {Object} provider
24
+ */
25
+ registerProvider(priority: number, provider: any): void;
26
+ /**
27
+ * Get context pad entries for the given form field.
28
+ *
29
+ * @param {Object} formField
30
+ *
31
+ * @return {Object} entries map
32
+ */
33
+ getEntries(formField: any): any;
34
+ _getProviders(): any;
35
+ }
36
+ export namespace FormFieldContextActions {
37
+ let $inject: string[];
38
+ }
@@ -0,0 +1,9 @@
1
+ export namespace ContextPadModule {
2
+ let __init__: string[];
3
+ let formFieldContextActions: (string | typeof FormFieldContextActions)[];
4
+ let deleteActionProvider: (string | typeof DeleteActionProvider)[];
5
+ }
6
+ export { FormFieldContextActions } from "./FormFieldContextActions";
7
+ export { DeleteActionProvider } from "./DeleteActionProvider";
8
+ import { FormFieldContextActions } from './FormFieldContextActions';
9
+ import { DeleteActionProvider } from './DeleteActionProvider';
@@ -15,3 +15,4 @@ import { schemaVersion } from '@bpmn-io/form-js-viewer';
15
15
  export { FormEditor, schemaVersion };
16
16
  export { useDebounce, usePrevious, useService } from "./render/hooks";
17
17
  export { useService as usePropertiesPanelService, useVariables } from "./features/properties-panel/hooks";
18
+ export { ContextPadModule, FormFieldContextActions } from "./features/context-pad";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmn-io/form-js-editor",
3
- "version": "1.21.2",
3
+ "version": "1.23.0",
4
4
  "description": "Edit forms - powered by bpmn.io",
5
5
  "exports": {
6
6
  ".": {
@@ -48,13 +48,13 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@bpmn-io/draggle": "^4.1.2",
51
- "@bpmn-io/form-js-viewer": "1.21.2",
52
- "@bpmn-io/properties-panel": "^3.40.3",
51
+ "@bpmn-io/form-js-viewer": "1.23.0",
52
+ "@bpmn-io/properties-panel": "^3.45.0",
53
53
  "array-move": "^4.0.0",
54
54
  "big.js": "^7.0.1",
55
- "ids": "^3.0.1",
55
+ "ids": "^3.0.2",
56
56
  "min-dash": "^5.0.0",
57
- "min-dom": "^5.2.0",
57
+ "min-dom": "^5.3.0",
58
58
  "preact": ">=10.5.14 <=10.15.1"
59
59
  },
60
60
  "sideEffects": [
@@ -63,5 +63,5 @@
63
63
  "files": [
64
64
  "dist"
65
65
  ],
66
- "gitHead": "c0cc5188b11954fe78aa612805d7763a5efe2120"
66
+ "gitHead": "2f1727cc15d9619cb895ccd778e54a0d9ec14fc6"
67
67
  }