@bpmn-io/form-js-editor 1.0.0-alpha.7 → 1.0.0-alpha.9

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.
@@ -147,7 +147,7 @@ export default class FormEditor {
147
147
  templating: (string | typeof import("./features/expression-language/EditorTemplating").default)[];
148
148
  } | typeof MarkdownModule | {
149
149
  __init__: string[];
150
- propertiesPanel: (string | typeof import("./features/properties-panel/PropertiesPanelModule").default)[];
150
+ propertiesPanel: (string | typeof import("./features/properties-panel/PropertiesPanelRenderer").default)[];
151
151
  } | {
152
152
  __init__: string[];
153
153
  renderInjector: (string | typeof import("./features/render-injection/RenderInjector").default)[];
@@ -1 +1 @@
1
- export default function FormPropertiesPanel(): import("preact").JSX.Element;
1
+ export default function FormPropertiesPanel(props: any): import("preact").JSX.Element;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @typedef { { parent: Element } } PropertiesPanelConfig
3
+ * @typedef { import('../../core/EventBus').default } EventBus
4
+ * @typedef { import('../../types').Injector } Injector
5
+ */
6
+ /**
7
+ * @param {PropertiesPanelConfig} propertiesPanelConfig
8
+ * @param {Injector} injector
9
+ * @param {EventBus} eventBus
10
+ */
11
+ declare class PropertiesPanelRenderer {
12
+ constructor(propertiesPanelConfig: any, injector: any, eventBus: any);
13
+ _eventBus: any;
14
+ _injector: any;
15
+ _container: HTMLElement;
16
+ /**
17
+ * Attach the properties panel to a parent node.
18
+ *
19
+ * @param {HTMLElement} container
20
+ */
21
+ attachTo(container: HTMLElement): void;
22
+ /**
23
+ * Detach the properties panel from its parent node.
24
+ */
25
+ detach(): void;
26
+ _render(): void;
27
+ _destroy(): void;
28
+ }
29
+ declare namespace PropertiesPanelRenderer {
30
+ const $inject: string[];
31
+ }
32
+ export default PropertiesPanelRenderer;
33
+ export type PropertiesPanelConfig = {
34
+ parent: Element;
35
+ };
36
+ export type EventBus = import('../../core/EventBus').default;
37
+ export type Injector = import('../../types').Injector;
@@ -0,0 +1,11 @@
1
+ export default PropertiesPanelContext;
2
+ declare const PropertiesPanelContext: import("preact").Context<{
3
+ getService: typeof getService;
4
+ }>;
5
+ /**
6
+ * @param {string} type
7
+ * @param {boolean} [strict]
8
+ *
9
+ * @returns {any}
10
+ */
11
+ declare function getService(type: string, strict?: boolean): any;
@@ -0,0 +1 @@
1
+ export { default as FormPropertiesPanelContext } from "./FormPropertiesPanelContext";
@@ -1,2 +1,2 @@
1
1
  export { useVariables } from "./useVariables";
2
- export { useService } from "./useService";
2
+ export { default as useService } from "./usePropertiesPanelService";
@@ -0,0 +1 @@
1
+ export default function _default(type: any, strict: any): any;
@@ -3,4 +3,4 @@ declare namespace _default {
3
3
  const propertiesPanel: (string | typeof PropertiesPanelModule)[];
4
4
  }
5
5
  export default _default;
6
- import PropertiesPanelModule from './PropertiesPanelModule';
6
+ import PropertiesPanelModule from './PropertiesPanelRenderer';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmn-io/form-js-editor",
3
- "version": "1.0.0-alpha.7",
3
+ "version": "1.0.0-alpha.9",
4
4
  "description": "Edit forms - powered by bpmn.io",
5
5
  "exports": {
6
6
  ".": {
@@ -46,7 +46,7 @@
46
46
  "url": "https://github.com/bpmn-io"
47
47
  },
48
48
  "dependencies": {
49
- "@bpmn-io/form-js-viewer": "^1.0.0-alpha.7",
49
+ "@bpmn-io/form-js-viewer": "^1.0.0-alpha.9",
50
50
  "@bpmn-io/properties-panel": "^2.1.0",
51
51
  "array-move": "^3.0.1",
52
52
  "big.js": "^6.2.1",
@@ -62,5 +62,5 @@
62
62
  "files": [
63
63
  "dist"
64
64
  ],
65
- "gitHead": "ced83b4bbba91cf0c2ca9e2f9950bb278f36ed3c"
65
+ "gitHead": "5b714f952e6f153644e8fbbfd6bc983d90fac62b"
66
66
  }
@@ -1,8 +0,0 @@
1
- declare class PropertiesPanelModule extends SectionModuleBase {
2
- constructor(eventBus: any);
3
- }
4
- declare namespace PropertiesPanelModule {
5
- const $inject: string[];
6
- }
7
- export default PropertiesPanelModule;
8
- import SectionModuleBase from '../SectionModuleBase';
@@ -1,2 +0,0 @@
1
- export { useService };
2
- import { useService } from '../../../render/hooks';