@worknice/whiteboard 0.43.0 → 0.43.1

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.
@@ -10,7 +10,7 @@ const useForm = ({ initialValues, onSubmit, onSuccess, validators })=>{
10
10
  const transitionStatus = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((newStatus)=>{
11
11
  clearTimeout(statusTimeout.current);
12
12
  setStatus(newStatus);
13
- if ("success" === newStatus || "errored" === newStatus) statusTimeout.current = setTimeout(()=>setStatus("modified"), 1000);
13
+ if ("errored" === newStatus) statusTimeout.current = setTimeout(()=>setStatus("modified"), 1000);
14
14
  }, [
15
15
  setStatus
16
16
  ]);
@@ -71,7 +71,10 @@ const useForm = ({ initialValues, onSubmit, onSuccess, validators })=>{
71
71
  errors: true,
72
72
  data: true
73
73
  })=>{
74
- if (opts?.status) setStatus("fresh");
74
+ if (opts?.status) {
75
+ setStatus("fresh");
76
+ clearTimeout(statusTimeout.current);
77
+ }
75
78
  if (opts?.errors) setErrors([]);
76
79
  if (opts?.data) setData(initialValues);
77
80
  }, [
@@ -2,7 +2,7 @@
2
2
  border: 1px solid var(--color-grey-t08);
3
3
  border-radius: var(--size-n3);
4
4
  flex-direction: column;
5
- max-height: 320px;
5
+ max-height: 460px;
6
6
  display: flex;
7
7
  overflow: hidden;
8
8
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@worknice/whiteboard",
3
3
  "description": "",
4
- "version": "0.43.0",
4
+ "version": "0.43.1",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "files": [
@@ -39,7 +39,7 @@
39
39
  "react-markdown": "^10.1.0",
40
40
  "utf8": "^3.0.0",
41
41
  "zod": "^4.1.13",
42
- "@worknice/utils": "^0.26.0"
42
+ "@worknice/utils": "^0.26.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@anolilab/semantic-release-pnpm": "^3.2.2",