@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.
@@ -50,8 +50,8 @@ export default class FormEditor {
50
50
  * @type {State}
51
51
  */
52
52
  private _state;
53
- get: any;
54
- invoke: any;
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): any;
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 = any;
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;
@@ -0,0 +1,5 @@
1
+ declare namespace _default {
2
+ const palette: (string | typeof PaletteRenderer)[];
3
+ }
4
+ export default _default;
5
+ import PaletteRenderer from "./PaletteRenderer";
@@ -21,6 +21,6 @@ export type RenderConfig = {
21
21
  container: Element;
22
22
  compact?: boolean;
23
23
  };
24
- export type Injector = any;
24
+ export type Injector = import('didi').Injector;
25
25
  export type EventBus = any;
26
26
  export type FormEditor = import('../FormEditor').default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmn-io/form-js-editor",
3
- "version": "0.8.0-alpha.0",
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.0",
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": "ffc5f0cedcf0b9a923b34ff56e7f63a34c362cf9"
59
+ "gitHead": "2be914efeefa050fb4692ac1a644557fc424917f"
60
60
  }