@etsoo/appscript 1.4.94 → 1.4.96

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.
@@ -12,7 +12,7 @@ export type CustomFieldRef<V> = {
12
12
  * Set value
13
13
  * Its type is 'unknown' because the 'type' configuration of the CustomField may be changed
14
14
  * First time editing with the new 'type' may break the component
15
- * @param value Value
15
+ * @param value Value, similar with the 'defaultValue' of the component
16
16
  */
17
17
  setValue(value: unknown): void;
18
18
  };
@@ -23,7 +23,7 @@ export type CustomFieldRef<V> = {
23
23
  export type CustomFieldProps<D extends CustomFieldData, V> = {
24
24
  field: D;
25
25
  onChange: (name: string, value: V | undefined) => void;
26
- defaultValue?: V;
26
+ defaultValue?: unknown;
27
27
  };
28
28
  /**
29
29
  * Custom field interface
@@ -12,7 +12,7 @@ export type CustomFieldRef<V> = {
12
12
  * Set value
13
13
  * Its type is 'unknown' because the 'type' configuration of the CustomField may be changed
14
14
  * First time editing with the new 'type' may break the component
15
- * @param value Value
15
+ * @param value Value, similar with the 'defaultValue' of the component
16
16
  */
17
17
  setValue(value: unknown): void;
18
18
  };
@@ -23,7 +23,7 @@ export type CustomFieldRef<V> = {
23
23
  export type CustomFieldProps<D extends CustomFieldData, V> = {
24
24
  field: D;
25
25
  onChange: (name: string, value: V | undefined) => void;
26
- defaultValue?: V;
26
+ defaultValue?: unknown;
27
27
  };
28
28
  /**
29
29
  * Custom field interface
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.4.94",
3
+ "version": "1.4.96",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -54,7 +54,7 @@
54
54
  "dependencies": {
55
55
  "@etsoo/notificationbase": "^1.1.42",
56
56
  "@etsoo/restclient": "^1.1.5",
57
- "@etsoo/shared": "^1.2.40",
57
+ "@etsoo/shared": "^1.2.41",
58
58
  "crypto-js": "^4.2.0"
59
59
  },
60
60
  "devDependencies": {
@@ -67,7 +67,7 @@
67
67
  "@types/jest": "^29.5.12",
68
68
  "jest": "^29.7.0",
69
69
  "jest-environment-jsdom": "^29.7.0",
70
- "ts-jest": "^29.1.3",
70
+ "ts-jest": "^29.1.4",
71
71
  "typescript": "^5.4.5"
72
72
  }
73
73
  }
@@ -14,7 +14,7 @@ export type CustomFieldRef<V> = {
14
14
  * Set value
15
15
  * Its type is 'unknown' because the 'type' configuration of the CustomField may be changed
16
16
  * First time editing with the new 'type' may break the component
17
- * @param value Value
17
+ * @param value Value, similar with the 'defaultValue' of the component
18
18
  */
19
19
  setValue(value: unknown): void;
20
20
  };
@@ -26,7 +26,7 @@ export type CustomFieldRef<V> = {
26
26
  export type CustomFieldProps<D extends CustomFieldData, V> = {
27
27
  field: D;
28
28
  onChange: (name: string, value: V | undefined) => void;
29
- defaultValue?: V;
29
+ defaultValue?: unknown;
30
30
  };
31
31
 
32
32
  /**