@bpmn-io/form-js-viewer 1.3.0-alpha.0 → 1.3.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.
@@ -6,6 +6,7 @@ import Checklist from './form-fields/Checklist';
6
6
  import Default from './form-fields/Default';
7
7
  import Datetime from './form-fields/Datetime';
8
8
  import FormComponent from './FormComponent';
9
+ import FormField from './FormField';
9
10
  import Group from './form-fields/Group';
10
11
  import Image from './form-fields/Image';
11
12
  import Numberfield from './form-fields/Number';
@@ -16,4 +17,4 @@ import Taglist from './form-fields/Taglist';
16
17
  import Text from './form-fields/Text';
17
18
  import Textfield from './form-fields/Textfield';
18
19
  import Textarea from './form-fields/Textarea';
19
- export { Button, Checkbox, Checklist, Default, Datetime, FormComponent, Group, Image, Numberfield, Radio, Select, Spacer, Taglist, Text, Textfield, Textarea };
20
+ export { Button, Checkbox, Checklist, Default, Datetime, FormComponent, FormField, Group, Image, Numberfield, Radio, Select, Spacer, Taglist, Text, Textfield, Textarea };
@@ -4,5 +4,7 @@ export { default as useFilteredFormData } from "./useFilteredFormData";
4
4
  export { default as useKeyDownAction } from "./useKeyDownAction";
5
5
  export { default as useReadonly } from "./useReadonly";
6
6
  export { default as useService } from "./useService";
7
+ export { default as usePrevious } from "./usePrevious";
8
+ export { default as useDeepCompareState } from "./useDeepCompareState";
7
9
  export { default as useSingleLineTemplateEvaluation } from "./useSingleLineTemplateEvaluation";
8
10
  export { default as useTemplateEvaluation } from "./useTemplateEvaluation";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * A custom hook to manage state changes with deep comparison.
3
+ *
4
+ * @param {any} value - The current value to manage.
5
+ * @param {any} defaultValue - The initial default value for the state.
6
+ * @returns {any} - Returns the current state.
7
+ */
8
+ export default function useDeepCompareState(value: any, defaultValue: any): any;
@@ -0,0 +1 @@
1
+ export default function usePrevious(value: any, defaultValue: any, dependencies: any): any;
@@ -1,36 +1,36 @@
1
- import { Injector } from 'didi';
2
-
3
- export type Module = any;
4
- export type Schema = any;
5
-
6
- export interface Data {
7
- [x: string]: any;
8
- }
9
-
10
- export interface Errors {
11
- [x: string]: string[];
12
- }
13
-
14
- export type FormProperty = ('readOnly' | 'disabled' | string);
15
- export type FormEvent = ('submit' | 'changed' | string);
16
-
17
- export interface FormProperties {
18
- [x: string]: any;
19
- }
20
-
21
- export interface FormOptions {
22
- additionalModules?: Module[];
23
- container?: Element | null | string;
24
- injector?: Injector;
25
- modules?: Module[];
26
- properties?: FormProperties;
27
- }
28
-
29
- export interface CreateFormOptions extends FormOptions {
30
- data?: Data;
31
- schema: Schema;
32
- }
33
-
34
- export {
35
- Injector
1
+ import { Injector } from 'didi';
2
+
3
+ export type Module = any;
4
+ export type Schema = any;
5
+
6
+ export interface Data {
7
+ [x: string]: any;
8
+ }
9
+
10
+ export interface Errors {
11
+ [x: string]: string[];
12
+ }
13
+
14
+ export type FormProperty = ('readOnly' | 'disabled' | string);
15
+ export type FormEvent = ('submit' | 'changed' | string);
16
+
17
+ export interface FormProperties {
18
+ [x: string]: any;
19
+ }
20
+
21
+ export interface FormOptions {
22
+ additionalModules?: Module[];
23
+ container?: Element | null | string;
24
+ injector?: Injector;
25
+ modules?: Module[];
26
+ properties?: FormProperties;
27
+ }
28
+
29
+ export interface CreateFormOptions extends FormOptions {
30
+ data?: Data;
31
+ schema: Schema;
32
+ }
33
+
34
+ export {
35
+ Injector
36
36
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmn-io/form-js-viewer",
3
- "version": "1.3.0-alpha.0",
3
+ "version": "1.3.0",
4
4
  "description": "View forms - powered by bpmn.io",
5
5
  "exports": {
6
6
  ".": {
@@ -63,5 +63,5 @@
63
63
  "files": [
64
64
  "dist"
65
65
  ],
66
- "gitHead": "dd5504e512c13945767159900dc8cf884834b937"
66
+ "gitHead": "f7cc5395b19de74eb7d9183af38dc462170a6179"
67
67
  }