@bpmn-io/form-js-viewer 1.4.0 → 1.5.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.
Files changed (53) hide show
  1. package/dist/assets/form-js-base.css +24 -0
  2. package/dist/assets/form-js.css +457 -654
  3. package/dist/index.cjs +394 -230
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.es.js +391 -232
  6. package/dist/index.es.js.map +1 -1
  7. package/dist/types/core/FieldFactory.d.ts +1 -1
  8. package/dist/types/core/FormFieldRegistry.d.ts +1 -1
  9. package/dist/types/core/FormLayouter.d.ts +2 -2
  10. package/dist/types/core/Importer.d.ts +1 -1
  11. package/dist/types/core/PathRegistry.d.ts +1 -1
  12. package/dist/types/core/Validator.d.ts +1 -1
  13. package/dist/types/core/index.d.ts +8 -8
  14. package/dist/types/features/expression-language/ConditionChecker.d.ts +1 -1
  15. package/dist/types/features/expression-language/FeelExpressionLanguage.d.ts +1 -1
  16. package/dist/types/features/expression-language/FeelersTemplating.d.ts +1 -1
  17. package/dist/types/features/expression-language/index.d.ts +4 -4
  18. package/dist/types/features/markdown/MarkdownRenderer.d.ts +1 -1
  19. package/dist/types/features/markdown/index.d.ts +2 -2
  20. package/dist/types/features/viewerCommands/ViewerCommands.d.ts +1 -1
  21. package/dist/types/features/viewerCommands/cmd/UpdateFieldValidationHandler.d.ts +1 -1
  22. package/dist/types/features/viewerCommands/index.d.ts +3 -3
  23. package/dist/types/index.d.ts +1 -1
  24. package/dist/types/render/Renderer.d.ts +1 -1
  25. package/dist/types/render/components/Sanitizer.d.ts +8 -0
  26. package/dist/types/render/components/form-fields/Button.d.ts +3 -3
  27. package/dist/types/render/components/form-fields/Checkbox.d.ts +4 -4
  28. package/dist/types/render/components/form-fields/Checklist.d.ts +5 -5
  29. package/dist/types/render/components/form-fields/Datetime.d.ts +4 -4
  30. package/dist/types/render/components/form-fields/Default.d.ts +4 -4
  31. package/dist/types/render/components/form-fields/Group.d.ts +4 -4
  32. package/dist/types/render/components/form-fields/IFrame.d.ts +12 -0
  33. package/dist/types/render/components/form-fields/Image.d.ts +3 -3
  34. package/dist/types/render/components/form-fields/Number.d.ts +4 -4
  35. package/dist/types/render/components/form-fields/Radio.d.ts +5 -5
  36. package/dist/types/render/components/form-fields/Select.d.ts +5 -5
  37. package/dist/types/render/components/form-fields/Separator.d.ts +3 -3
  38. package/dist/types/render/components/form-fields/Spacer.d.ts +3 -3
  39. package/dist/types/render/components/form-fields/Taglist.d.ts +5 -5
  40. package/dist/types/render/components/form-fields/Text.d.ts +3 -3
  41. package/dist/types/render/components/form-fields/Textarea.d.ts +4 -4
  42. package/dist/types/render/components/form-fields/Textfield.d.ts +4 -4
  43. package/dist/types/render/components/index.d.ts +3 -2
  44. package/dist/types/render/components/util/optionsUtil.d.ts +8 -0
  45. package/dist/types/render/hooks/useCleanupMultiSelectValues.d.ts +1 -0
  46. package/dist/types/render/hooks/useCleanupSingleSelectValue.d.ts +1 -0
  47. package/dist/types/render/hooks/useOptionsAsync.d.ts +28 -0
  48. package/dist/types/render/index.d.ts +4 -3
  49. package/dist/types/util/constants/DatetimeConstants.d.ts +6 -6
  50. package/dist/types/util/constants/ValuesSourceConstants.d.ts +3 -3
  51. package/package.json +4 -4
  52. package/dist/types/render/components/util/valuesUtil.d.ts +0 -8
  53. package/dist/types/render/hooks/useValuesAsync.d.ts +0 -28
@@ -14,6 +14,6 @@ declare class FieldFactory {
14
14
  _ensureKey(field: any): void;
15
15
  }
16
16
  declare namespace FieldFactory {
17
- const $inject: string[];
17
+ let $inject: string[];
18
18
  }
19
19
  export default FieldFactory;
@@ -11,6 +11,6 @@ declare class FormFieldRegistry {
11
11
  clear(): void;
12
12
  }
13
13
  declare namespace FormFieldRegistry {
14
- const $inject: string[];
14
+ let $inject: string[];
15
15
  }
16
16
  export default FormFieldRegistry;
@@ -18,7 +18,7 @@
18
18
  declare class FormLayouter {
19
19
  constructor(eventBus: any);
20
20
  /** @type Array<FormRows> */
21
- _rows: FormRows[];
21
+ _rows: Array<FormRows>;
22
22
  _ids: any;
23
23
  _eventBus: any;
24
24
  /**
@@ -51,7 +51,7 @@ declare class FormLayouter {
51
51
  clear(): void;
52
52
  }
53
53
  declare namespace FormLayouter {
54
- const $inject: string[];
54
+ let $inject: string[];
55
55
  }
56
56
  export default FormLayouter;
57
57
  export type FormRow = {
@@ -51,6 +51,6 @@ declare class Importer {
51
51
  importFormFields(components: Array<any>, parentId: string): Array<any>;
52
52
  }
53
53
  declare namespace Importer {
54
- const $inject: string[];
54
+ let $inject: string[];
55
55
  }
56
56
  export default Importer;
@@ -66,6 +66,6 @@ declare class PathRegistry {
66
66
  clear(): void;
67
67
  }
68
68
  declare namespace PathRegistry {
69
- const $inject: string[];
69
+ let $inject: string[];
70
70
  }
71
71
  export default PathRegistry;
@@ -6,6 +6,6 @@ declare class Validator {
6
6
  validateField(field: any, value: any): any[];
7
7
  }
8
8
  declare namespace Validator {
9
- const $inject: string[];
9
+ let $inject: string[];
10
10
  }
11
11
  export default Validator;
@@ -1,16 +1,16 @@
1
1
  declare namespace _default {
2
- const __depends__: {
2
+ let __depends__: {
3
3
  __init__: string[];
4
4
  formFields: (string | typeof import("../render").FormFields)[];
5
5
  renderer: (string | typeof import("../render/Renderer").default)[];
6
6
  }[];
7
- const eventBus: (string | typeof EventBus)[];
8
- const importer: (string | typeof Importer)[];
9
- const fieldFactory: (string | typeof FieldFactory)[];
10
- const formFieldRegistry: (string | typeof FormFieldRegistry)[];
11
- const pathRegistry: (string | typeof PathRegistry)[];
12
- const formLayouter: (string | typeof FormLayouter)[];
13
- const validator: (string | typeof Validator)[];
7
+ let eventBus: (string | typeof EventBus)[];
8
+ let importer: (string | typeof Importer)[];
9
+ let fieldFactory: (string | typeof FieldFactory)[];
10
+ let formFieldRegistry: (string | typeof FormFieldRegistry)[];
11
+ let pathRegistry: (string | typeof PathRegistry)[];
12
+ let formLayouter: (string | typeof FormLayouter)[];
13
+ let validator: (string | typeof Validator)[];
14
14
  }
15
15
  export default _default;
16
16
  import Importer from './Importer';
@@ -46,7 +46,7 @@ declare class ConditionChecker {
46
46
  _clearObjectValueRecursively(valuePath: any, obj: any): void;
47
47
  }
48
48
  declare namespace ConditionChecker {
49
- const $inject: string[];
49
+ let $inject: string[];
50
50
  }
51
51
  export default ConditionChecker;
52
52
  export type Condition = {
@@ -32,6 +32,6 @@ declare class FeelExpressionLanguage {
32
32
  evaluate(expression: string, data?: import('../../types').Data): any;
33
33
  }
34
34
  declare namespace FeelExpressionLanguage {
35
- const $inject: string[];
35
+ let $inject: string[];
36
36
  }
37
37
  export default FeelExpressionLanguage;
@@ -63,6 +63,6 @@ declare class FeelersTemplating {
63
63
  }[];
64
64
  }
65
65
  declare namespace FeelersTemplating {
66
- const $inject: any[];
66
+ let $inject: any[];
67
67
  }
68
68
  export default FeelersTemplating;
@@ -1,8 +1,8 @@
1
1
  declare namespace _default {
2
- const __init__: string[];
3
- const expressionLanguage: (string | typeof FeelExpressionLanguage)[];
4
- const templating: (string | typeof FeelersTemplating)[];
5
- const conditionChecker: (string | typeof ConditionChecker)[];
2
+ let __init__: string[];
3
+ let expressionLanguage: (string | typeof FeelExpressionLanguage)[];
4
+ let templating: (string | typeof FeelersTemplating)[];
5
+ let conditionChecker: (string | typeof ConditionChecker)[];
6
6
  }
7
7
  export default _default;
8
8
  import FeelExpressionLanguage from './FeelExpressionLanguage';
@@ -10,6 +10,6 @@ declare class MarkdownRenderer {
10
10
  render(markdown: string): string;
11
11
  }
12
12
  declare namespace MarkdownRenderer {
13
- const $inject: any[];
13
+ let $inject: any[];
14
14
  }
15
15
  export default MarkdownRenderer;
@@ -1,6 +1,6 @@
1
1
  declare namespace _default {
2
- const __init__: string[];
3
- const markdownRenderer: (string | typeof MarkdownRenderer)[];
2
+ let __init__: string[];
3
+ let markdownRenderer: (string | typeof MarkdownRenderer)[];
4
4
  }
5
5
  export default _default;
6
6
  export { MarkdownRenderer };
@@ -8,7 +8,7 @@ declare class ViewerCommands {
8
8
  updateFieldValidation(field: any, value: any): void;
9
9
  }
10
10
  declare namespace ViewerCommands {
11
- const $inject: string[];
11
+ let $inject: string[];
12
12
  }
13
13
  export default ViewerCommands;
14
14
  import UpdateFieldValidationHandler from './cmd/UpdateFieldValidationHandler';
@@ -6,6 +6,6 @@ declare class UpdateFieldValidationHandler {
6
6
  revert(context: any): void;
7
7
  }
8
8
  declare namespace UpdateFieldValidationHandler {
9
- const $inject: string[];
9
+ let $inject: string[];
10
10
  }
11
11
  export default UpdateFieldValidationHandler;
@@ -1,7 +1,7 @@
1
1
  declare namespace _default {
2
- const __depends__: import("didi").ModuleDeclaration[];
3
- const __init__: string[];
4
- const viewerCommands: (string | typeof ViewerCommands)[];
2
+ let __depends__: import("didi").ModuleDeclaration[];
3
+ let __init__: string[];
4
+ let viewerCommands: (string | typeof ViewerCommands)[];
5
5
  }
6
6
  export default _default;
7
7
  export { ViewerCommands };
@@ -14,6 +14,6 @@ export * from "./util";
14
14
  export * from "./features";
15
15
  export type CreateFormOptions = import('./types').CreateFormOptions;
16
16
  import Form from './Form';
17
- export const schemaVersion: 12;
17
+ export const schemaVersion: 13;
18
18
  export { Form };
19
19
  export { FormFieldRegistry, FormLayouter, Importer, FieldFactory, PathRegistry } from "./core";
@@ -12,7 +12,7 @@
12
12
  */
13
13
  declare function Renderer(config: Config, eventBus: EventBus, form: Form, injector: Injector): void;
14
14
  declare namespace Renderer {
15
- const $inject: string[];
15
+ let $inject: string[];
16
16
  }
17
17
  export default Renderer;
18
18
  export type Config = {
@@ -15,3 +15,11 @@ export function sanitizeHTML(html: string): string;
15
15
  * @returns {string}
16
16
  */
17
17
  export function sanitizeImageSource(src: string): string;
18
+ /**
19
+ * Sanitizes an iframe source to ensure we only allow for links
20
+ * that start with http(s).
21
+ *
22
+ * @param {string} src
23
+ * @returns {string}
24
+ */
25
+ export function sanitizeIFrameSource(src: string): string;
@@ -2,9 +2,9 @@ declare function Button(props: any): import("preact").JSX.Element;
2
2
  declare namespace Button {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
8
  export function create(options?: {}): {
9
9
  action: string;
10
10
  };
@@ -2,10 +2,10 @@ declare function Checkbox(props: any): import("preact").JSX.Element;
2
2
  declare namespace Checkbox {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
8
- export const emptyValue: boolean;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
+ export let emptyValue: boolean;
9
9
  export function sanitizeValue({ value }: {
10
10
  value: any;
11
11
  }): boolean;
@@ -2,10 +2,10 @@ declare function Checklist(props: any): import("preact").JSX.Element;
2
2
  declare namespace Checklist {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
8
- export const emptyValue: any[];
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
+ export let emptyValue: any[];
9
9
  export { sanitizeMultiSelectValue as sanitizeValue };
10
10
  export { createEmptyOptions as create };
11
11
  }
@@ -13,4 +13,4 @@ declare namespace Checklist {
13
13
  export default Checklist;
14
14
  declare const type: "checklist";
15
15
  import { sanitizeMultiSelectValue } from '../util/sanitizerUtil';
16
- import { createEmptyOptions } from '../util/valuesUtil';
16
+ import { createEmptyOptions } from '../util/optionsUtil';
@@ -2,10 +2,10 @@ declare function Datetime(props: any): import("preact").JSX.Element;
2
2
  declare namespace Datetime {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
8
- export const emptyValue: any;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
+ export let emptyValue: any;
9
9
  export { sanitizeDateTimePickerValue as sanitizeValue };
10
10
  export function create(options?: {}): {};
11
11
  }
@@ -1,10 +1,10 @@
1
1
  declare function FormComponent(props: any): import("preact").JSX.Element;
2
2
  declare namespace FormComponent {
3
3
  namespace config {
4
- const type: string;
5
- const keyed: boolean;
6
- const label: any;
7
- const group: any;
4
+ let type: string;
5
+ let keyed: boolean;
6
+ let label: any;
7
+ let group: any;
8
8
  function create(options?: {}): {
9
9
  components: any[];
10
10
  };
@@ -1,10 +1,10 @@
1
1
  declare function Group(props: any): import("preact").JSX.Element;
2
2
  declare namespace Group {
3
3
  namespace config {
4
- const type: string;
5
- const pathed: boolean;
6
- const label: string;
7
- const group: string;
4
+ let type: string;
5
+ let pathed: boolean;
6
+ let label: string;
7
+ let group: string;
8
8
  function create(options?: {}): {
9
9
  components: any[];
10
10
  showOutline: boolean;
@@ -0,0 +1,12 @@
1
+ declare function IFrame(props: any): import("preact").JSX.Element;
2
+ declare namespace IFrame {
3
+ namespace config {
4
+ export { type };
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
+ export function create(options?: {}): {};
9
+ }
10
+ }
11
+ export default IFrame;
12
+ declare const type: "iframe";
@@ -2,9 +2,9 @@ declare function Image(props: any): import("preact").JSX.Element;
2
2
  declare namespace Image {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
8
  export function create(options?: {}): {};
9
9
  }
10
10
  }
@@ -2,10 +2,10 @@ declare function Numberfield(props: any): import("preact").JSX.Element;
2
2
  declare namespace Numberfield {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
8
- export const emptyValue: any;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
+ export let emptyValue: any;
9
9
  export function sanitizeValue({ value, formField }: {
10
10
  value: any;
11
11
  formField: any;
@@ -2,10 +2,10 @@ declare function Radio(props: any): import("preact").JSX.Element;
2
2
  declare namespace Radio {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
8
- export const emptyValue: any;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
+ export let emptyValue: any;
9
9
  export { sanitizeSingleSelectValue as sanitizeValue };
10
10
  export { createEmptyOptions as create };
11
11
  }
@@ -13,4 +13,4 @@ declare namespace Radio {
13
13
  export default Radio;
14
14
  declare const type: "radio";
15
15
  import { sanitizeSingleSelectValue } from '../util/sanitizerUtil';
16
- import { createEmptyOptions } from '../util/valuesUtil';
16
+ import { createEmptyOptions } from '../util/optionsUtil';
@@ -2,10 +2,10 @@ declare function Select(props: any): import("preact").JSX.Element;
2
2
  declare namespace Select {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
8
- export const emptyValue: any;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
+ export let emptyValue: any;
9
9
  export { sanitizeSingleSelectValue as sanitizeValue };
10
10
  export { createEmptyOptions as create };
11
11
  }
@@ -13,4 +13,4 @@ declare namespace Select {
13
13
  export default Select;
14
14
  declare const type: "select";
15
15
  import { sanitizeSingleSelectValue } from '../util/sanitizerUtil';
16
- import { createEmptyOptions } from '../util/valuesUtil';
16
+ import { createEmptyOptions } from '../util/optionsUtil';
@@ -2,9 +2,9 @@ declare function Separator(): import("preact").JSX.Element;
2
2
  declare namespace Separator {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
8
  export function create(options?: {}): {};
9
9
  }
10
10
  }
@@ -2,9 +2,9 @@ declare function Spacer(props: any): import("preact").JSX.Element;
2
2
  declare namespace Spacer {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
8
  export function create(options?: {}): {
9
9
  height: number;
10
10
  };
@@ -2,10 +2,10 @@ declare function Taglist(props: any): import("preact").JSX.Element;
2
2
  declare namespace Taglist {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
8
- export const emptyValue: any[];
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
+ export let emptyValue: any[];
9
9
  export { sanitizeMultiSelectValue as sanitizeValue };
10
10
  export { createEmptyOptions as create };
11
11
  }
@@ -13,4 +13,4 @@ declare namespace Taglist {
13
13
  export default Taglist;
14
14
  declare const type: "taglist";
15
15
  import { sanitizeMultiSelectValue } from '../util/sanitizerUtil';
16
- import { createEmptyOptions } from '../util/valuesUtil';
16
+ import { createEmptyOptions } from '../util/optionsUtil';
@@ -2,9 +2,9 @@ declare function Text(props: any): import("preact").JSX.Element;
2
2
  declare namespace Text {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
8
  export function create(options?: {}): {
9
9
  text: string;
10
10
  };
@@ -2,10 +2,10 @@ declare function Textarea(props: any): import("preact").JSX.Element;
2
2
  declare namespace Textarea {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
8
- export const emptyValue: string;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
+ export let emptyValue: string;
9
9
  export function sanitizeValue({ value }: {
10
10
  value: any;
11
11
  }): string;
@@ -2,10 +2,10 @@ declare function Textfield(props: any): import("preact").JSX.Element;
2
2
  declare namespace Textfield {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
8
- export const emptyValue: string;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
+ export let emptyValue: string;
9
9
  export function sanitizeValue({ value }: {
10
10
  value: any;
11
11
  }): string;
@@ -1,4 +1,4 @@
1
- export const formFields: (typeof Default | typeof Group | typeof Image)[];
1
+ export const formFields: (typeof Default | typeof Group | typeof IFrame)[];
2
2
  export * from "./icons";
3
3
  export * from "./Sanitizer";
4
4
  import Label from './Label';
@@ -12,6 +12,7 @@ import Datetime from './form-fields/Datetime';
12
12
  import FormComponent from './FormComponent';
13
13
  import FormField from './FormField';
14
14
  import Group from './form-fields/Group';
15
+ import IFrame from './form-fields/IFrame';
15
16
  import Image from './form-fields/Image';
16
17
  import Numberfield from './form-fields/Number';
17
18
  import Radio from './form-fields/Radio';
@@ -22,4 +23,4 @@ import Taglist from './form-fields/Taglist';
22
23
  import Text from './form-fields/Text';
23
24
  import Textfield from './form-fields/Textfield';
24
25
  import Textarea from './form-fields/Textarea';
25
- export { Label, Description, Errors, Button, Checkbox, Checklist, Default, Datetime, FormComponent, FormField, Group, Image, Numberfield, Radio, Select, Separator, Spacer, Taglist, Text, Textfield, Textarea };
26
+ export { Label, Description, Errors, Button, Checkbox, Checklist, Default, Datetime, FormComponent, FormField, Group, IFrame, Image, Numberfield, Radio, Select, Separator, Spacer, Taglist, Text, Textfield, Textarea };
@@ -0,0 +1,8 @@
1
+ export function getOptionsData(formField: any, formData: any): any;
2
+ export function normalizeOptionsData(optionsData: any): any;
3
+ export function createEmptyOptions(options?: {}): {
4
+ values: {
5
+ label: string;
6
+ value: string;
7
+ }[];
8
+ };
@@ -0,0 +1 @@
1
+ export default function _default(props: any): void;
@@ -0,0 +1 @@
1
+ export default function _default(props: any): void;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @typedef {Object} OptionsGetter
3
+ * @property {Object[]} options - The options data
4
+ * @property {(LOAD_STATES)} loadState - The options data's loading state, to use for conditional rendering
5
+ */
6
+ /**
7
+ * A hook to load options for single and multiselect components.
8
+ *
9
+ * @param {Object} field - The form field to handle options for
10
+ * @return {OptionsGetter} optionsGetter - A options getter object providing loading state and options
11
+ */
12
+ export default function _default(field: any): OptionsGetter;
13
+ export type LOAD_STATES = string;
14
+ export namespace LOAD_STATES {
15
+ let LOADING: string;
16
+ let LOADED: string;
17
+ let ERROR: string;
18
+ }
19
+ export type OptionsGetter = {
20
+ /**
21
+ * - The options data
22
+ */
23
+ options: any[];
24
+ /**
25
+ * - The options data's loading state, to use for conditional rendering
26
+ */
27
+ loadState: (LOAD_STATES);
28
+ };
@@ -2,10 +2,11 @@ export { FormFields };
2
2
  export * from "./components";
3
3
  export * from "./context";
4
4
  declare namespace _default {
5
- const __init__: string[];
6
- const formFields: (string | typeof FormFields)[];
7
- const renderer: (string | typeof Renderer)[];
5
+ let __init__: string[];
6
+ let formFields: (string | typeof FormFields)[];
7
+ let renderer: (string | typeof Renderer)[];
8
8
  }
9
9
  export default _default;
10
10
  import FormFields from './FormFields';
11
11
  import Renderer from './Renderer';
12
+ export { useExpressionEvaluation, useSingleLineTemplateEvaluation, useTemplateEvaluation } from "./hooks";
@@ -1,13 +1,13 @@
1
1
  export const MINUTES_IN_DAY: number;
2
2
  export namespace DATETIME_SUBTYPES {
3
- const DATE: string;
4
- const TIME: string;
5
- const DATETIME: string;
3
+ let DATE: string;
4
+ let TIME: string;
5
+ let DATETIME: string;
6
6
  }
7
7
  export namespace TIME_SERIALISING_FORMATS {
8
- const UTC_OFFSET: string;
9
- const UTC_NORMALIZED: string;
10
- const NO_TIMEZONE: string;
8
+ let UTC_OFFSET: string;
9
+ let UTC_NORMALIZED: string;
10
+ let NO_TIMEZONE: string;
11
11
  }
12
12
  export const DATETIME_SUBTYPES_LABELS: {
13
13
  [x: string]: string;
@@ -1,8 +1,8 @@
1
1
  export function getValuesSource(field: any): string;
2
2
  export namespace VALUES_SOURCES {
3
- const STATIC: string;
4
- const INPUT: string;
5
- const EXPRESSION: string;
3
+ let STATIC: string;
4
+ let INPUT: string;
5
+ let EXPRESSION: string;
6
6
  }
7
7
  export const VALUES_SOURCE_DEFAULT: string;
8
8
  export const VALUES_SOURCES_LABELS: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmn-io/form-js-viewer",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "View forms - powered by bpmn.io",
5
5
  "exports": {
6
6
  ".": {
@@ -48,8 +48,8 @@
48
48
  "big.js": "^6.2.1",
49
49
  "classnames": "^2.3.1",
50
50
  "didi": "^9.0.0",
51
- "feelers": "^1.0.0",
52
- "feelin": "^1.2.0",
51
+ "feelers": "^1.2.0",
52
+ "feelin": "^2.3.0",
53
53
  "flatpickr": "^4.6.13",
54
54
  "ids": "^1.0.0",
55
55
  "min-dash": "^4.0.0",
@@ -63,5 +63,5 @@
63
63
  "files": [
64
64
  "dist"
65
65
  ],
66
- "gitHead": "cf256b38f256abf7b4d676ea5cd2bdf796b08f31"
66
+ "gitHead": "02814e168dd3078869fede070bcc6d8f1f741ec7"
67
67
  }