@bpmn-io/form-js-editor 1.0.0-alpha.2 → 1.0.0-alpha.3

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.
Files changed (38) hide show
  1. package/LICENSE +22 -22
  2. package/README.md +116 -116
  3. package/dist/assets/form-js-editor-base.css +734 -734
  4. package/dist/index.cjs +305 -292
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.es.js +305 -292
  7. package/dist/index.es.js.map +1 -1
  8. package/dist/types/features/SectionModuleBase.d.ts +6 -1
  9. package/dist/types/features/assistant/AssistantPrompter.d.ts +20 -0
  10. package/dist/types/features/assistant/AssistantPrompterLayout.d.ts +20 -0
  11. package/dist/types/features/assistant/AssistantPrompterLayoutV2.d.ts +20 -0
  12. package/dist/types/features/assistant/AssistantRenderer.d.ts +34 -0
  13. package/dist/types/features/assistant/components/Assistant.d.ts +10 -0
  14. package/dist/types/features/assistant/data/minischema.d.ts +1 -0
  15. package/dist/types/features/assistant/index.d.ts +7 -0
  16. package/dist/types/features/assistant/model/AssistantPrompterLayoutV2/AssistantPrompterLayoutV2.d.ts +20 -0
  17. package/dist/types/features/assistant/model/AssistantPrompterLayoutV2/Prompts.d.ts +4 -0
  18. package/dist/types/features/assistant/util/CleanupUtil.d.ts +1 -0
  19. package/dist/types/features/form-generation-ui/FormGenerationUIModule.d.ts +3 -0
  20. package/dist/types/features/form-generation-ui/components/FormGeneration.d.ts +2 -0
  21. package/dist/types/features/form-generation-ui/components/GPTModal.d.ts +2 -0
  22. package/dist/types/features/form-generation-ui/dist/index.d.cts +63 -0
  23. package/dist/types/features/form-generation-ui/dist/index.es.d.ts +60 -0
  24. package/dist/types/features/form-generation-ui/index.d.ts +2 -0
  25. package/dist/types/features/form-generation-ui/inject.d.ts +7 -0
  26. package/dist/types/features/palette/PaletteRenderer.d.ts +33 -0
  27. package/dist/types/features/properties-panel/PropertiesPanelRenderer.d.ts +37 -0
  28. package/dist/types/features/properties-panel/context/FormPropertiesPanelContext.d.ts +11 -0
  29. package/dist/types/features/properties-panel/context/index.d.ts +1 -0
  30. package/dist/types/features/properties-panel/entries/ExpressionValidationEntry.d.ts +44 -0
  31. package/dist/types/features/properties-panel/groups/ExpressionValidationsGroup.d.ts +53 -0
  32. package/dist/types/features/properties-panel/hooks/usePropertiesPanelService.d.ts +1 -0
  33. package/dist/types/features/properties-panel/icons/index.d.ts +1 -0
  34. package/dist/types/features/render-injection/TestInjection.d.ts +7 -0
  35. package/dist/types/features/render-injection/components/TestInjectionComponent.d.ts +2 -0
  36. package/dist/types/features/util/renderManagerBuilder.d.ts +45 -0
  37. package/dist/types/types.d.ts +28 -28
  38. package/package.json +3 -3
@@ -17,7 +17,8 @@ export default class SectionModuleBase {
17
17
  */
18
18
  constructor(eventBus: any, sectionKey: string);
19
19
  _eventBus: any;
20
- sectionKey: string;
20
+ _sectionKey: string;
21
+ isSectionRendered: boolean;
21
22
  /**
22
23
  * Attach the managed section to a parent node.
23
24
  *
@@ -32,4 +33,8 @@ export default class SectionModuleBase {
32
33
  * Reset the managed section to its initial state.
33
34
  */
34
35
  reset(): void;
36
+ /**
37
+ * Circumvents timing issues.
38
+ */
39
+ _onceSectionRendered(callback: any): void;
35
40
  }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @typedef { import('../../core/EventBus').default } EventBus
3
+ */
4
+ /**
5
+ * @param {EventBus} eventBus
6
+ */
7
+ declare class AssistantPrompter {
8
+ constructor(eventBus: any, formEditor: any);
9
+ _eventBus: any;
10
+ _formEditor: any;
11
+ _openai: OpenAIApi;
12
+ requestFormCreation(formDescription: any): Promise<"Error parsing JSON from GPT (1)" | "Error parsing JSON from GPT (2)" | "Error importing final schema" | "Request completed." | "Error during form creation.">;
13
+ _delay(time: any): Promise<any>;
14
+ }
15
+ declare namespace AssistantPrompter {
16
+ const $inject: string[];
17
+ }
18
+ export default AssistantPrompter;
19
+ export type EventBus = any;
20
+ import { OpenAIApi } from 'openai';
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @typedef { import('../../core/EventBus.js').default } EventBus
3
+ */
4
+ /**
5
+ * @param {EventBus} eventBus
6
+ */
7
+ declare class AssistantPrompterLayout {
8
+ constructor(eventBus: any, formEditor: any);
9
+ _eventBus: any;
10
+ _formEditor: any;
11
+ _openai: OpenAIApi;
12
+ requestFormCreation(formDescription: any): Promise<"Error parsing JSON from GPT (1)" | "Error parsing JSON from GPT (2)" | "Error importing final schema" | "Request completed." | "Hit context cap, try again, prompting for a shorter form." | "Something else went wrong, send debug info.">;
13
+ _delay(time: any): Promise<any>;
14
+ }
15
+ declare namespace AssistantPrompterLayout {
16
+ const $inject: string[];
17
+ }
18
+ export default AssistantPrompterLayout;
19
+ export type EventBus = any;
20
+ import { OpenAIApi } from 'openai';
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @typedef { import('../../core/EventBus.js').default } EventBus
3
+ */
4
+ /**
5
+ * @param {EventBus} eventBus
6
+ */
7
+ declare class AssistantPrompterLayoutV2 {
8
+ constructor(eventBus: any, formEditor: any);
9
+ _eventBus: any;
10
+ _formEditor: any;
11
+ _openai: OpenAIApi;
12
+ requestFormCreation(formDescription: any): Promise<"Error parsing JSON from GPT (1)" | "No components array returned" | "Error parsing JSON from GPT (2)" | "Error importing final schema" | "Request completed." | "Hit context cap, try again, prompting for a shorter form." | "Something else went wrong, send debug info.">;
13
+ _delay(time: any): Promise<any>;
14
+ }
15
+ declare namespace AssistantPrompterLayoutV2 {
16
+ const $inject: string[];
17
+ }
18
+ export default AssistantPrompterLayoutV2;
19
+ export type EventBus = any;
20
+ import { OpenAIApi } from 'openai';
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @typedef { { parent: Element } } AssistantConfig
3
+ * @typedef { import('../../core/EventBus').default } EventBus
4
+ */
5
+ /**
6
+ * @param {AssistantConfig} paletteConfig
7
+ * @param {EventBus} eventBus
8
+ */
9
+ declare class AssistantRenderer {
10
+ constructor(assistantPrompter: any, assistantConfig: any, eventBus: any);
11
+ _eventBus: any;
12
+ _assistantPrompter: any;
13
+ _container: HTMLElement;
14
+ /**
15
+ * Attach the palette to a parent node.
16
+ *
17
+ * @param {HTMLElement} container
18
+ */
19
+ attachTo(container: HTMLElement): void;
20
+ /**
21
+ * Detach the palette from its parent node.
22
+ */
23
+ detach(): void;
24
+ _render(): void;
25
+ _destroy(): void;
26
+ }
27
+ declare namespace AssistantRenderer {
28
+ const $inject: string[];
29
+ }
30
+ export default AssistantRenderer;
31
+ export type AssistantConfig = {
32
+ parent: Element;
33
+ };
34
+ export type EventBus = any;
@@ -0,0 +1,10 @@
1
+ export default function Assistant(props: any): any;
2
+ export const PALETTE_ENTRIES: {
3
+ label: any;
4
+ type: string;
5
+ group: any;
6
+ }[];
7
+ export const PALETTE_GROUPS: {
8
+ label: string;
9
+ id: string;
10
+ }[];
@@ -0,0 +1 @@
1
+ export function generateParameters(type: any): any;
@@ -0,0 +1,7 @@
1
+ declare namespace _default {
2
+ const assistantPrompter: (string | typeof AssistantPrompterLayoutV2)[];
3
+ const assistant: (string | typeof AssistantRenderer)[];
4
+ }
5
+ export default _default;
6
+ import AssistantPrompterLayoutV2 from './model/AssistantPrompterLayoutV2/AssistantPrompterLayoutV2';
7
+ import AssistantRenderer from './AssistantRenderer';
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @typedef { import('../../../../core/EventBus.js').default } EventBus
3
+ */
4
+ /**
5
+ * @param {EventBus} eventBus
6
+ */
7
+ declare class AssistantPrompterLayoutV2 {
8
+ constructor(eventBus: any, formEditor: any);
9
+ _eventBus: any;
10
+ _formEditor: any;
11
+ _openai: OpenAIApi;
12
+ requestFormCreation(formDescription: any): Promise<"Error parsing JSON from GPT (1)" | "No components array returned" | "Error parsing JSON from GPT (2)" | "Error importing final schema" | "Request completed. Feel free to try again." | "Hit context cap, try again, prompting for a shorter form." | "Something else went wrong, please send debug info to the HTO team">;
13
+ _delay(time: any): Promise<any>;
14
+ }
15
+ declare namespace AssistantPrompterLayoutV2 {
16
+ const $inject: string[];
17
+ }
18
+ export default AssistantPrompterLayoutV2;
19
+ export type EventBus = any;
20
+ import { OpenAIApi } from 'openai';
@@ -0,0 +1,4 @@
1
+ export function buildStructuralPromptExample(components: any, layoutedComponents: any): string;
2
+ export const structuralPromptExampleResponse: "{\n \"form_description\": \"small business registration form\",\n \"components\": [\n {\n \"type\": \"textfield\",\n \"prompt\": \"create a business name registration field\",\n \"layout\": {\n \"row\": \"row_1\",\n \"col\": \"auto\"\n }\n },\n {\n \"type\": \"textfield\",\n \"prompt\": \"create a business type registration field\",\n \"layout\": {\n \"row\": \"row_1\",\n \"col\": \"auto\"\n }\n },\n {\n \"type\": \"select\",\n \"prompt\": \"create a business type registration field with options private, public or other\"\n },\n {\n \"type\": \"number\",\n \"prompt\": \"create a starting capital field\"\n }\n ]\n}";
3
+ export function buildStructuralPrompt(components: any, layoutedComponents: any, formDescription: any): string;
4
+ export function buildComponentPrompt(formDescription: any, formStructure: any): string;
@@ -0,0 +1 @@
1
+ export function cleanupForm(form: any): void;
@@ -0,0 +1,3 @@
1
+ export default class FormGenerationUI {
2
+ constructor(renderInjector: any);
3
+ }
@@ -0,0 +1,2 @@
1
+ declare function _default(props: any): import("preact/compat").JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export default ModalComponent;
2
+ declare function ModalComponent(props: any): import("preact/compat").JSX.Element;
@@ -0,0 +1,63 @@
1
+ export namespace AssistantRenderer {
2
+ const __init__: string[];
3
+ const formGenerationUI: (string | typeof FormGenerationUI)[];
4
+ }
5
+ export function buildAssistantModule(assistantAPI: any): {
6
+ __init__: string[];
7
+ assistantRenderer: (string | {
8
+ __init__: string[];
9
+ formGenerationUI: (string | typeof FormGenerationUI)[];
10
+ })[];
11
+ assistantPrompter: (string | typeof LayoutedAssistantPrompter)[];
12
+ assistantAPI: any[];
13
+ };
14
+ declare class FormGenerationUI {
15
+ constructor(renderInjector: any);
16
+ }
17
+ declare class LayoutedAssistantPrompter {
18
+ constructor(eventBus: any, formEditor: any, assistantAPI: any);
19
+ _eventBus: any;
20
+ _formEditor: any;
21
+ _assistantAPI: any;
22
+ requestFormCreation(formDescription: any): Promise<{
23
+ error: any;
24
+ errorMessage: string;
25
+ intermediateState: any;
26
+ form?: undefined;
27
+ } | {
28
+ errorMessage: string;
29
+ intermediateState: any;
30
+ error?: undefined;
31
+ form?: undefined;
32
+ } | {
33
+ form: any;
34
+ error?: undefined;
35
+ errorMessage?: undefined;
36
+ intermediateState?: undefined;
37
+ }>;
38
+ requestFormUpdate(form: any): Promise<{
39
+ error: any;
40
+ errorMessage: string;
41
+ invalidForm: any;
42
+ }>;
43
+ _requestFormCreation(formDescription: any): Promise<{
44
+ error: any;
45
+ errorMessage: string;
46
+ intermediateState: any;
47
+ form?: undefined;
48
+ } | {
49
+ errorMessage: string;
50
+ intermediateState: any;
51
+ error?: undefined;
52
+ form?: undefined;
53
+ } | {
54
+ form: any;
55
+ error?: undefined;
56
+ errorMessage?: undefined;
57
+ intermediateState?: undefined;
58
+ }>;
59
+ }
60
+ declare namespace LayoutedAssistantPrompter {
61
+ const $inject: string[];
62
+ }
63
+ export {};
@@ -0,0 +1,60 @@
1
+ export class FormAssistantUI {
2
+ constructor(renderInjector: any);
3
+ }
4
+ export namespace FormAssistantUIModule {
5
+ const __init__: string[];
6
+ const formAssistantUI: (string | typeof FormAssistantUI)[];
7
+ }
8
+ export function buildAssistantModule(assistantAPI: any): {
9
+ __init__: string[];
10
+ assistantRenderer: (string | typeof FormAssistantUI)[];
11
+ assistantPrompter: (string | typeof LayoutedAssistantPrompter)[];
12
+ assistantAPI: any[];
13
+ };
14
+ declare class LayoutedAssistantPrompter {
15
+ constructor(eventBus: any, formEditor: any, importer: any, assistantAPI: any, assistantHOOKS: any);
16
+ _eventBus: any;
17
+ _formEditor: any;
18
+ _assistantAPI: any;
19
+ requestFormCreation(formDescription: any): Promise<{
20
+ error: any;
21
+ errorMessage: string;
22
+ intermediateState: any;
23
+ form?: undefined;
24
+ } | {
25
+ errorMessage: string;
26
+ intermediateState: any;
27
+ error?: undefined;
28
+ form?: undefined;
29
+ } | {
30
+ form: any;
31
+ error?: undefined;
32
+ errorMessage?: undefined;
33
+ intermediateState?: undefined;
34
+ }>;
35
+ requestFormUpdate(form: any): Promise<{
36
+ error: any;
37
+ errorMessage: string;
38
+ invalidForm: any;
39
+ }>;
40
+ _requestFormCreation(formDescription: any): Promise<{
41
+ error: any;
42
+ errorMessage: string;
43
+ intermediateState: any;
44
+ form?: undefined;
45
+ } | {
46
+ errorMessage: string;
47
+ intermediateState: any;
48
+ error?: undefined;
49
+ form?: undefined;
50
+ } | {
51
+ form: any;
52
+ error?: undefined;
53
+ errorMessage?: undefined;
54
+ intermediateState?: undefined;
55
+ }>;
56
+ }
57
+ declare namespace LayoutedAssistantPrompter {
58
+ const $inject: string[];
59
+ }
60
+ export {};
@@ -0,0 +1,2 @@
1
+ export default FormAssistantUIModule;
2
+ import { FormAssistantUIModule } from './dist/index.es';
@@ -0,0 +1,7 @@
1
+ declare class Inject {
2
+ constructor(renderInjector: any);
3
+ }
4
+ declare namespace Inject {
5
+ const $inject: string[];
6
+ }
7
+ export default Inject;
@@ -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,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 = any;
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";
@@ -0,0 +1,44 @@
1
+ export default function ExpressionValidationEntry(props: any): ({
2
+ component: typeof Name;
3
+ id: string;
4
+ idPrefix: any;
5
+ validateName: any;
6
+ onChangeName: any;
7
+ name: any;
8
+ validateExpression?: undefined;
9
+ onChangeExpression?: undefined;
10
+ expression?: undefined;
11
+ validateErrorMessage?: undefined;
12
+ onChangeErrorMessage?: undefined;
13
+ errorMessage?: undefined;
14
+ } | {
15
+ component: typeof Expression;
16
+ id: string;
17
+ idPrefix: any;
18
+ validateExpression: any;
19
+ onChangeExpression: any;
20
+ expression: any;
21
+ validateName?: undefined;
22
+ onChangeName?: undefined;
23
+ name?: undefined;
24
+ validateErrorMessage?: undefined;
25
+ onChangeErrorMessage?: undefined;
26
+ errorMessage?: undefined;
27
+ } | {
28
+ component: typeof ErrorMessage;
29
+ id: string;
30
+ idPrefix: any;
31
+ validateErrorMessage: any;
32
+ onChangeErrorMessage: any;
33
+ errorMessage: any;
34
+ validateName?: undefined;
35
+ onChangeName?: undefined;
36
+ name?: undefined;
37
+ validateExpression?: undefined;
38
+ onChangeExpression?: undefined;
39
+ expression?: undefined;
40
+ })[];
41
+ declare function Name(props: any): any;
42
+ declare function Expression(props: any): any;
43
+ declare function ErrorMessage(props: any): any;
44
+ export {};
@@ -0,0 +1,53 @@
1
+ export default function CustomValidationsGroup(field: any, editField: any): {
2
+ add: (event: any) => void;
3
+ component: any;
4
+ id: string;
5
+ items: {
6
+ autoFocusEntry: string;
7
+ entries: ({
8
+ component: (props: any) => any;
9
+ id: string;
10
+ idPrefix: any;
11
+ validateName: any;
12
+ onChangeName: any;
13
+ name: any;
14
+ validateExpression?: undefined;
15
+ onChangeExpression?: undefined;
16
+ expression?: undefined;
17
+ validateErrorMessage?: undefined;
18
+ onChangeErrorMessage?: undefined;
19
+ errorMessage?: undefined;
20
+ } | {
21
+ component: (props: any) => any;
22
+ id: string;
23
+ idPrefix: any;
24
+ validateExpression: any;
25
+ onChangeExpression: any;
26
+ expression: any;
27
+ validateName?: undefined;
28
+ onChangeName?: undefined;
29
+ name?: undefined;
30
+ validateErrorMessage?: undefined;
31
+ onChangeErrorMessage?: undefined;
32
+ errorMessage?: undefined;
33
+ } | {
34
+ component: (props: any) => any;
35
+ id: string;
36
+ idPrefix: any;
37
+ validateErrorMessage: any;
38
+ onChangeErrorMessage: any;
39
+ errorMessage: any;
40
+ validateName?: undefined;
41
+ onChangeName?: undefined;
42
+ name?: undefined;
43
+ validateExpression?: undefined;
44
+ onChangeExpression?: undefined;
45
+ expression?: undefined;
46
+ })[];
47
+ id: string;
48
+ label: string;
49
+ remove: (event: any) => void;
50
+ }[];
51
+ label: string;
52
+ shouldSort: boolean;
53
+ };
@@ -0,0 +1 @@
1
+ export default function _default(type: any, strict: any): any;
@@ -0,0 +1,7 @@
1
+ declare class TestInjection {
2
+ constructor(renderInjector: any);
3
+ }
4
+ declare namespace TestInjection {
5
+ const $inject: string[];
6
+ }
7
+ export default TestInjection;
@@ -0,0 +1,2 @@
1
+ declare function _default(props: any): import("preact").JSX.Element;
2
+ export default _default;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Factory function to create a new RenderManager for a specific ModularSection.
3
+ *
4
+ * @param {string} managerType - The type of render manager to create.
5
+ * @returns {RenderManagerBase} - A subclass of RenderManagerBase with the manager type set.
6
+ *
7
+ * @function createRenderManager
8
+ */
9
+ export function createRenderManager(managerType: string): RenderManagerBase;
10
+ /**
11
+ * Base class for render managers.
12
+ *
13
+ * @property {EventBus} _eventBus - EventBus instance used for event handling.
14
+ * @property {string} managerType - Type of the render manager. Used to form event names.
15
+ *
16
+ * @class RenderManagerBase
17
+ */
18
+ declare class RenderManagerBase {
19
+ /**
20
+ * Create a RenderManagerBase instance.
21
+ *
22
+ * @param {any} eventBus - The EventBus instance used for event handling.
23
+ * @param {string} managerType - The type of render manager. Used to form event names.
24
+ *
25
+ * @constructor
26
+ */
27
+ constructor(eventBus: any, managerType: string);
28
+ _eventBus: any;
29
+ _managerType: string;
30
+ /**
31
+ * Attach the managed section to a parent node.
32
+ *
33
+ * @param {HTMLElement} container - The parent node to attach to.
34
+ */
35
+ attachTo(container: HTMLElement): void;
36
+ /**
37
+ * Detach the managed section from its parent node.
38
+ */
39
+ detach(): void;
40
+ /**
41
+ * Reset the managed section to its initial state.
42
+ */
43
+ reset(): void;
44
+ }
45
+ export {};
@@ -1,29 +1,29 @@
1
- import { Injector } from 'didi';
2
-
3
- export type Module = any;
4
- export type Schema = any;
5
-
6
- export interface FormEditorProperties {
7
- [x: string]: any
8
- }
9
-
10
- export interface FormEditorOptions {
11
- additionalModules?: Module[];
12
- container?: Element | null | string;
13
- exporter?: {
14
- name: string,
15
- version: string
16
- };
17
- injector?: Injector;
18
- modules?: Module[];
19
- properties?: FormEditorProperties;
20
- [x:string]: any;
21
- }
22
-
23
- export interface CreateFormEditorOptions extends FormEditorOptions {
24
- schema?: Schema
25
- }
26
-
27
- export {
28
- Injector
1
+ import { Injector } from 'didi';
2
+
3
+ export type Module = any;
4
+ export type Schema = any;
5
+
6
+ export interface FormEditorProperties {
7
+ [x: string]: any
8
+ }
9
+
10
+ export interface FormEditorOptions {
11
+ additionalModules?: Module[];
12
+ container?: Element | null | string;
13
+ exporter?: {
14
+ name: string,
15
+ version: string
16
+ };
17
+ injector?: Injector;
18
+ modules?: Module[];
19
+ properties?: FormEditorProperties;
20
+ [x:string]: any;
21
+ }
22
+
23
+ export interface CreateFormEditorOptions extends FormEditorOptions {
24
+ schema?: Schema
25
+ }
26
+
27
+ export {
28
+ Injector
29
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmn-io/form-js-editor",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.0-alpha.3",
4
4
  "description": "Edit forms - powered by bpmn.io",
5
5
  "exports": {
6
6
  ".": {
@@ -44,7 +44,7 @@
44
44
  "url": "https://github.com/bpmn-io"
45
45
  },
46
46
  "dependencies": {
47
- "@bpmn-io/form-js-viewer": "^1.0.0-alpha.1",
47
+ "@bpmn-io/form-js-viewer": "^1.0.0-alpha.3",
48
48
  "@bpmn-io/properties-panel": "^2.1.0",
49
49
  "array-move": "^3.0.1",
50
50
  "big.js": "^6.2.1",
@@ -60,5 +60,5 @@
60
60
  "files": [
61
61
  "dist"
62
62
  ],
63
- "gitHead": "5a1afb8c0cd4ab53e745f4458213de180179d24f"
63
+ "gitHead": "7bd34c9bd219c930432ac15f8baaed49e2d5ec2a"
64
64
  }