@worknice/whiteboard 0.9.1 → 0.10.0-rc.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.
@@ -21,8 +21,8 @@ const useForm = ({ initialValues, onSubmit, onSuccess, validators })=>{
21
21
  } else try {
22
22
  const result = await onSubmit(data);
23
23
  setStatus("success");
24
+ await sleep(1000, ()=>setStatus("modified"));
24
25
  if (onSuccess) await onSuccess(result);
25
- else await sleep(1000, ()=>setStatus("modified"));
26
26
  setStatus("modified");
27
27
  } catch (error) {
28
28
  if (error instanceof __WEBPACK_EXTERNAL_MODULE__FormError_js_149fc952__["default"]) setErrors(error.validationErrors);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@worknice/whiteboard",
3
3
  "description": "",
4
- "version": "0.9.1",
4
+ "version": "0.10.0-rc.2",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "files": [
@@ -38,7 +38,7 @@
38
38
  "react-markdown": "^10.1.0",
39
39
  "utf8": "^3.0.0",
40
40
  "zod": "^3.22.3",
41
- "@worknice/utils": "^0.4.5"
41
+ "@worknice/utils": "^0.4.6-rc.2"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@anolilab/semantic-release-pnpm": "^1.1.10",