@bpmn-io/form-js-editor 0.8.0-alpha.0 → 0.8.0-alpha.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/assets/form-js-editor.css +19 -13
- package/dist/index.cjs +397 -303
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +398 -304
- package/dist/index.es.js.map +1 -1
- package/dist/types/FormEditor.d.ts +6 -4
- package/dist/types/features/palette/PaletteRenderer.d.ts +33 -0
- package/dist/types/{render/components/palette → features/palette/components}/Palette.d.ts +0 -0
- package/dist/types/features/palette/index.d.ts +5 -0
- package/dist/types/render/Renderer.d.ts +1 -1
- package/dist/types/render/components/{palette/icons → icons}/index.d.ts +0 -0
- package/package.json +3 -3
|
@@ -50,8 +50,8 @@ export default class FormEditor {
|
|
|
50
50
|
* @type {State}
|
|
51
51
|
*/
|
|
52
52
|
private _state;
|
|
53
|
-
get:
|
|
54
|
-
invoke:
|
|
53
|
+
get: <T>(name: string, strict?: boolean) => T;
|
|
54
|
+
invoke: <T_1>(func: (...args: unknown[]) => T_1, context: unknown, locals: import("didi").LocalsMap) => T_1;
|
|
55
55
|
clear(): void;
|
|
56
56
|
destroy(): void;
|
|
57
57
|
/**
|
|
@@ -99,7 +99,7 @@ export default class FormEditor {
|
|
|
99
99
|
*
|
|
100
100
|
* @returns {Injector}
|
|
101
101
|
*/
|
|
102
|
-
_createInjector(options: FormEditorOptions, container: Element):
|
|
102
|
+
_createInjector(options: FormEditorOptions, container: Element): Injector;
|
|
103
103
|
/**
|
|
104
104
|
* @internal
|
|
105
105
|
*/
|
|
@@ -130,13 +130,15 @@ export default class FormEditor {
|
|
|
130
130
|
__init__: string[];
|
|
131
131
|
selection: (string | typeof import("./features/selection/Selection").default)[];
|
|
132
132
|
selectionBehavior: (string | typeof import("./features/selection/SelectionBehavior").default)[];
|
|
133
|
+
} | {
|
|
134
|
+
palette: (string | typeof import("./features/palette/PaletteRenderer").default)[];
|
|
133
135
|
})[];
|
|
134
136
|
/**
|
|
135
137
|
* @internal
|
|
136
138
|
*/
|
|
137
139
|
_onEvent(type: any, priority: any, handler: any): void;
|
|
138
140
|
}
|
|
139
|
-
export type Injector =
|
|
141
|
+
export type Injector = import('./types').Injector;
|
|
140
142
|
export type Module = import('./types').Module;
|
|
141
143
|
export type Schema = import('./types').Schema;
|
|
142
144
|
export type FormEditorOptions = import('./types').FormEditorOptions;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef { { parent: Element } } PaletteConfig
|
|
3
|
+
* @typedef { import('../../core/EventBus').default } EventBus
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @param {PaletteConfig} paletteConfig
|
|
7
|
+
* @param {EventBus} eventBus
|
|
8
|
+
*/
|
|
9
|
+
declare class PaletteRenderer {
|
|
10
|
+
constructor(paletteConfig: any, eventBus: any);
|
|
11
|
+
_eventBus: any;
|
|
12
|
+
_container: HTMLElement;
|
|
13
|
+
/**
|
|
14
|
+
* Attach the palette to a parent node.
|
|
15
|
+
*
|
|
16
|
+
* @param {HTMLElement} container
|
|
17
|
+
*/
|
|
18
|
+
attachTo(container: HTMLElement): void;
|
|
19
|
+
/**
|
|
20
|
+
* Detach the palette from its parent node.
|
|
21
|
+
*/
|
|
22
|
+
detach(): void;
|
|
23
|
+
_render(): void;
|
|
24
|
+
_destroy(): void;
|
|
25
|
+
}
|
|
26
|
+
declare namespace PaletteRenderer {
|
|
27
|
+
const $inject: string[];
|
|
28
|
+
}
|
|
29
|
+
export default PaletteRenderer;
|
|
30
|
+
export type PaletteConfig = {
|
|
31
|
+
parent: Element;
|
|
32
|
+
};
|
|
33
|
+
export type EventBus = any;
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bpmn-io/form-js-editor",
|
|
3
|
-
"version": "0.8.0-alpha.
|
|
3
|
+
"version": "0.8.0-alpha.1",
|
|
4
4
|
"description": "Edit forms - powered by bpmn.io",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"url": "https://github.com/bpmn-io"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@bpmn-io/form-js-viewer": "^0.8.0-alpha.
|
|
45
|
+
"@bpmn-io/form-js-viewer": "^0.8.0-alpha.1",
|
|
46
46
|
"array-move": "^3.0.1",
|
|
47
47
|
"dragula": "^3.7.3",
|
|
48
48
|
"ids": "^1.0.0",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"files": [
|
|
57
57
|
"dist"
|
|
58
58
|
],
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "2be914efeefa050fb4692ac1a644557fc424917f"
|
|
60
60
|
}
|