@bpmn-io/form-js-viewer 1.14.1-alpha.0 → 1.15.2

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,7 +1,11 @@
1
+ /**
2
+ * @typedef DocumentEndpointBuilder
3
+ * @property {(document: DocumentMetadata) => string} buildUrl
4
+ */
1
5
  /**
2
6
  * @typedef DocumentMetadata
3
7
  * @property {string} documentId
4
- * @property {string} contentHash
8
+ * @property {string} endpoint
5
9
  * @property {Object} metadata
6
10
  * @property {string|undefined} [metadata.contentType]
7
11
  * @property {string} metadata.fileName
@@ -10,7 +14,6 @@
10
14
  * @property {string} id
11
15
  * @property {string} [title]
12
16
  * @property {string} [dataSource]
13
- * @property {string} [endpointKey]
14
17
  * @property {number} [maxHeight]
15
18
  * @property {string} [label]
16
19
  *
@@ -30,13 +33,15 @@ export namespace DocumentPreview {
30
33
  export let name: string;
31
34
  export function create(options?: {}): {
32
35
  label: string;
33
- endpointKey: string;
34
36
  };
35
37
  }
36
38
  }
39
+ export type DocumentEndpointBuilder = {
40
+ buildUrl: (document: DocumentMetadata) => string;
41
+ };
37
42
  export type DocumentMetadata = {
38
43
  documentId: string;
39
- contentHash: string;
44
+ endpoint: string;
40
45
  metadata: {
41
46
  contentType?: string | undefined;
42
47
  fileName: string;
@@ -46,7 +51,6 @@ export type Field = {
46
51
  id: string;
47
52
  title?: string;
48
53
  dataSource?: string;
49
- endpointKey?: string;
50
54
  maxHeight?: number;
51
55
  label?: string;
52
56
  };
@@ -56,8 +60,6 @@ export type Props = {
56
60
  };
57
61
  export type GetErrorOptions = {
58
62
  dataSource: string | undefined;
59
- endpointKey: string | undefined;
60
- endpoint: string | null;
61
63
  };
62
64
  declare const type: "documentPreview";
63
65
  export {};
@@ -1,4 +1,4 @@
1
- export const formFields: (typeof Button | typeof Default | typeof Datetime | typeof Group | typeof IFrame | typeof Image | typeof Radio | typeof Separator | typeof Spacer | typeof Html | typeof ExpressionField | typeof Table | typeof FilePicker | typeof DocumentPreview)[];
1
+ export const formFields: (typeof Default | typeof Datetime | typeof Group | typeof Image | typeof Radio | typeof Separator | typeof Spacer | typeof Html | typeof ExpressionField | typeof Table | typeof FilePicker | typeof DocumentPreview)[];
2
2
  export * from "./icons";
3
3
  export * from "./Sanitizer";
4
4
  export * from "./util/domUtil";
@@ -10,10 +10,14 @@ export namespace TIME_SERIALISING_FORMATS {
10
10
  let NO_TIMEZONE: string;
11
11
  }
12
12
  export const DATETIME_SUBTYPES_LABELS: {
13
- [x: string]: string;
13
+ [DATETIME_SUBTYPES.DATE]: string;
14
+ [DATETIME_SUBTYPES.TIME]: string;
15
+ [DATETIME_SUBTYPES.DATETIME]: string;
14
16
  };
15
17
  export const TIME_SERIALISINGFORMAT_LABELS: {
16
- [x: string]: string;
18
+ [TIME_SERIALISING_FORMATS.UTC_OFFSET]: string;
19
+ [TIME_SERIALISING_FORMATS.UTC_NORMALIZED]: string;
20
+ [TIME_SERIALISING_FORMATS.NO_TIMEZONE]: string;
17
21
  };
18
22
  export const DATETIME_SUBTYPE_PATH: string[];
19
23
  export const DATE_LABEL_PATH: string[];
@@ -6,14 +6,20 @@ export namespace OPTIONS_SOURCES {
6
6
  }
7
7
  export const OPTIONS_SOURCE_DEFAULT: string;
8
8
  export const OPTIONS_SOURCES_LABELS: {
9
- [x: string]: string;
9
+ [OPTIONS_SOURCES.STATIC]: string;
10
+ [OPTIONS_SOURCES.INPUT]: string;
11
+ [OPTIONS_SOURCES.EXPRESSION]: string;
10
12
  };
11
13
  export const OPTIONS_SOURCES_PATHS: {
12
- [x: string]: string[];
14
+ [OPTIONS_SOURCES.STATIC]: string[];
15
+ [OPTIONS_SOURCES.INPUT]: string[];
16
+ [OPTIONS_SOURCES.EXPRESSION]: string[];
13
17
  };
14
18
  export const OPTIONS_SOURCES_DEFAULTS: {
15
- [x: string]: string | {
19
+ [OPTIONS_SOURCES.STATIC]: {
16
20
  label: string;
17
21
  value: string;
18
22
  }[];
23
+ [OPTIONS_SOURCES.INPUT]: string;
24
+ [OPTIONS_SOURCES.EXPRESSION]: string;
19
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmn-io/form-js-viewer",
3
- "version": "1.14.1-alpha.0",
3
+ "version": "1.15.2",
4
4
  "description": "View forms - powered by bpmn.io",
5
5
  "exports": {
6
6
  ".": {
@@ -45,7 +45,7 @@
45
45
  "url": "https://github.com/bpmn-io"
46
46
  },
47
47
  "dependencies": {
48
- "@carbon/grid": "^11.31.0",
48
+ "@carbon/grid": "^11.32.2",
49
49
  "big.js": "^6.2.2",
50
50
  "classnames": "^2.5.1",
51
51
  "didi": "^10.2.2",
@@ -57,7 +57,7 @@
57
57
  "lodash": "^4.17.21",
58
58
  "luxon": "^3.5.0",
59
59
  "marked": "^15.0.7",
60
- "min-dash": "^4.2.2",
60
+ "min-dash": "^4.2.3",
61
61
  "preact": "^10.5.14"
62
62
  },
63
63
  "sideEffects": [
@@ -66,5 +66,5 @@
66
66
  "files": [
67
67
  "dist"
68
68
  ],
69
- "gitHead": "d8f2f93b5632bc70b7b6054583d689558eab5475"
69
+ "gitHead": "ef9301a743c083512615b78b8f6aebfca97a92a7"
70
70
  }