@bpmn-io/form-js-viewer 1.24.1 → 1.26.0

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.
@@ -1,14 +1,20 @@
1
+ /**
2
+ * @typedef { import('diagram-js/lib/i18n/translate/translate').default } Translate
3
+ */
1
4
  export class FieldFactory {
2
5
  /**
3
6
  * @constructor
4
7
  *
5
- * @param formFieldRegistry
6
- * @param formFields
8
+ * @param formFieldRegistry
9
+ * @param pathRegistry
10
+ * @param formFields
11
+ * @param {Translate} translate
7
12
  */
8
- constructor(formFieldRegistry: any, pathRegistry: any, formFields: any);
13
+ constructor(formFieldRegistry: any, pathRegistry: any, formFields: any, translate: Translate);
9
14
  _formFieldRegistry: any;
10
15
  _pathRegistry: any;
11
16
  _formFields: any;
17
+ _translate: typeof import("diagram-js/lib/i18n/translate/translate").default;
12
18
  create(attrs: any, isNewField?: boolean): any;
13
19
  _ensureId(field: any): void;
14
20
  _ensureKey(field: any): void;
@@ -18,3 +24,4 @@ export class FieldFactory {
18
24
  export namespace FieldFactory {
19
25
  let $inject: string[];
20
26
  }
27
+ export type Translate = typeof import("diagram-js/lib/i18n/translate/translate").default;
@@ -1,9 +1,10 @@
1
1
  export class Validator {
2
- constructor(expressionLanguage: any, conditionChecker: any, form: any, formFieldRegistry: any);
2
+ constructor(expressionLanguage: any, conditionChecker: any, form: any, formFieldRegistry: any, translate: any);
3
3
  _expressionLanguage: any;
4
4
  _conditionChecker: any;
5
5
  _form: any;
6
6
  _formFieldRegistry: any;
7
+ _translate: any;
7
8
  /**
8
9
  * Validate against a field definition, does not support proper expression evaluation.
9
10
  *
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @typedef { import('diagram-js/lib/i18n/translate/translate').default } Translate
3
+ */
1
4
  /**
2
5
  * @typedef DocumentEndpointBuilder
3
6
  * @property {(document: DocumentMetadata) => string} [buildUrl]
@@ -37,6 +40,7 @@ export namespace DocumentPreview {
37
40
  };
38
41
  }
39
42
  }
43
+ export type Translate = typeof import("diagram-js/lib/i18n/translate/translate").default;
40
44
  export type DocumentEndpointBuilder = {
41
45
  buildUrl?: (document: DocumentMetadata) => string;
42
46
  buildRequestInit?: (document: DocumentMetadata) => RequestInit | undefined;
@@ -49,3 +49,4 @@ export type Props = {
49
49
  };
50
50
  value?: string;
51
51
  };
52
+ export type Translate = typeof import("diagram-js/lib/i18n/translate/translate").default;
@@ -1,4 +1,6 @@
1
1
  /**
2
+ * @typedef { import('diagram-js/lib/i18n/translate/translate').default } Translate
3
+ *
2
4
  * @typedef {('asc'|'desc')} Direction
3
5
  *
4
6
  * @typedef Sorting
@@ -51,6 +53,7 @@ export namespace Table {
51
53
  }[];
52
54
  }
53
55
  }
56
+ export type Translate = typeof import("diagram-js/lib/i18n/translate/translate").default;
54
57
  export type Direction = ("asc" | "desc");
55
58
  export type Sorting = {
56
59
  key: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmn-io/form-js-viewer",
3
- "version": "1.24.1",
3
+ "version": "1.26.0",
4
4
  "description": "View forms - powered by bpmn.io",
5
5
  "exports": {
6
6
  ".": {
@@ -49,6 +49,7 @@
49
49
  "@carbon/grid": "^11.49.0",
50
50
  "big.js": "^7.0.1",
51
51
  "classnames": "^2.5.1",
52
+ "diagram-js": "^15.22.0",
52
53
  "didi": "^11.0.0",
53
54
  "dompurify": "^3.4.11",
54
55
  "feelers": "^3.1.0",
@@ -66,5 +67,7 @@
66
67
  "files": [
67
68
  "dist"
68
69
  ],
69
- "gitHead": "81e618336af03005c15b1237c030adbc954f6109"
70
+ "devDependencies": {
71
+ "@bpmn-io/form-js-i18n": "^1.26.0"
72
+ }
70
73
  }