@bpmn-io/form-js-editor 0.11.1 → 0.12.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.
@@ -150,6 +150,6 @@ export type State = {
150
150
  properties: FormEditorProperties;
151
151
  schema: Schema;
152
152
  };
153
- export type OnEventWithPriority = OnEventWithPriority;
154
- export type OnEventWithOutPriority = OnEventWithOutPriority;
153
+ export type OnEventWithPriority = (type: string, priority: number, handler: Function) => void;
154
+ export type OnEventWithOutPriority = (type: string, handler: Function) => void;
155
155
  export type OnEventType = OnEventWithPriority & OnEventWithOutPriority;
@@ -3,7 +3,7 @@ declare namespace _default {
3
3
  importer: (string | typeof import("../import/Importer").default)[];
4
4
  } | {
5
5
  __init__: string[];
6
- formFields: (string | typeof import("@bpmn-io/form-js-viewer").FormFields)[];
6
+ formFields: (string | typeof import("../render/EditorFormFields").default)[];
7
7
  renderer: (string | typeof import("../render/Renderer").default)[];
8
8
  })[];
9
9
  const eventBus: any[];
@@ -1 +1,10 @@
1
1
  export default function Palette(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,9 @@
1
+ export default function SelectEntries(props: any): {
2
+ id: any;
3
+ label: any;
4
+ path: any;
5
+ field: any;
6
+ editField: any;
7
+ component: (props: any) => any;
8
+ isEdited: any;
9
+ }[];
@@ -1 +1,2 @@
1
1
  export { default as simpleStringEntryFactory } from "./simpleStringEntryFactory";
2
+ export { default as simpleBoolEntryFactory } from "./simpleBoolEntryFactory";
@@ -0,0 +1,9 @@
1
+ export default function simpleBoolEntryFactory(options: any): {
2
+ id: any;
3
+ label: any;
4
+ path: any;
5
+ field: any;
6
+ editField: any;
7
+ component: (props: any) => any;
8
+ isEdited: any;
9
+ };
@@ -14,6 +14,7 @@ export { default as NumberSerializationEntry } from "./NumberSerializationEntry"
14
14
  export { default as DateTimeEntry } from "./DateTimeEntry";
15
15
  export { default as DateTimeConstraintsEntry } from "./DateTimeConstraintsEntry";
16
16
  export { default as DateTimeSerializationEntry } from "./DateTimeSerializationEntry";
17
+ export { default as SelectEntries } from "./SelectEntries";
17
18
  export { default as ValueEntry } from "./ValueEntry";
18
19
  export { default as CustomValueEntry } from "./CustomValueEntry";
19
20
  export { default as ValuesSourceSelectEntry } from "./ValuesSourceSelectEntry";
@@ -0,0 +1,3 @@
1
+ export default class EditorFormFields extends FormFields {
2
+ }
3
+ import { FormFields } from "@bpmn-io/form-js-viewer/dist/types/render";
@@ -0,0 +1,3 @@
1
+ export function editorFormFieldClasses(type: any, { disabled }?: {
2
+ disabled?: boolean;
3
+ }): string;
@@ -0,0 +1,8 @@
1
+ declare function EditorText(props: any): any;
2
+ declare namespace EditorText {
3
+ const create: typeof Text.create;
4
+ const type: "text";
5
+ const keyed: boolean;
6
+ }
7
+ export default EditorText;
8
+ import { Text } from "@bpmn-io/form-js-viewer/dist/types/render/components";
@@ -0,0 +1,2 @@
1
+ export const editorFormFields: (typeof EditorText)[];
2
+ import EditorText from "./EditorText";
@@ -1 +1,2 @@
1
1
  export { iconsByType } from "@bpmn-io/form-js-viewer";
2
+ export { CloseIcon, SearchIcon };
@@ -1,8 +1,8 @@
1
1
  declare namespace _default {
2
2
  const __init__: string[];
3
- const formFields: (string | typeof FormFields)[];
3
+ const formFields: (string | typeof EditorFormFields)[];
4
4
  const renderer: (string | typeof Renderer)[];
5
5
  }
6
6
  export default _default;
7
- import { FormFields } from "@bpmn-io/form-js-viewer/dist/types/render";
7
+ import EditorFormFields from "./EditorFormFields";
8
8
  import Renderer from "./Renderer";
@@ -0,0 +1,3 @@
1
+ export function set(mode: any): void;
2
+ export function unset(): void;
3
+ export function has(mode: any): boolean;
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmn-io/form-js-editor",
3
- "version": "0.11.1",
3
+ "version": "0.12.1",
4
4
  "description": "Edit forms - powered by bpmn.io",
5
5
  "exports": {
6
6
  ".": {
@@ -21,13 +21,13 @@
21
21
  "scripts": {
22
22
  "all": "run-s lint test build",
23
23
  "build": "run-p bundle generate-types",
24
- "bundle": "rollup -c --failAfterWarnings",
25
- "bundle:watch": "rollup -c -w",
24
+ "bundle": "rollup -c --failAfterWarnings --bundleConfigAsCjs",
25
+ "bundle:watch": "rollup -c -w --bundleConfigAsCjs",
26
26
  "dev": "npm test -- --auto-watch --no-single-run",
27
27
  "example:dev": "cd example && npm start",
28
28
  "lint": "run-s lint:*",
29
29
  "lint:eslint": "eslint .",
30
- "generate-types": "tsc --allowJs --skipLibCheck --declaration --emitDeclarationOnly --outDir dist/types src/index.js && copyfiles src/**.d.ts dist/types",
30
+ "generate-types": "tsc --allowJs --skipLibCheck --declaration --emitDeclarationOnly --outDir dist/types src/index.js && copyfiles --flat src/**.d.ts dist/types",
31
31
  "test": "cross-env NODE_ENV=test karma start",
32
32
  "prepublishOnly": "npm run build"
33
33
  },
@@ -42,8 +42,8 @@
42
42
  "url": "https://github.com/bpmn-io"
43
43
  },
44
44
  "dependencies": {
45
- "@bpmn-io/form-js-viewer": "^0.11.0",
46
- "@bpmn-io/properties-panel": "^1.0.0",
45
+ "@bpmn-io/form-js-viewer": "^0.12.1",
46
+ "@bpmn-io/properties-panel": "^1.2.0",
47
47
  "array-move": "^3.0.1",
48
48
  "big.js": "^6.2.1",
49
49
  "dragula": "^3.7.3",
@@ -58,5 +58,5 @@
58
58
  "files": [
59
59
  "dist"
60
60
  ],
61
- "gitHead": "2e4734eae1e244d6a4b728893cd86c2f4de402e2"
61
+ "gitHead": "e4a01e3215209858258b2fb83dfc09b86fccc0db"
62
62
  }