@comet/cms-admin 8.5.1-canary-20251028112827 → 8.5.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.
@@ -1 +1 @@
1
- {"version":3,"file":"BlocksFinalForm.d.ts","sourceRoot":"","sources":["../../../src/blocks/form/BlocksFinalForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAQ,KAAK,SAAS,EAAiC,MAAM,kBAAkB,CAAC;AAgCvG,wBAAgB,eAAe,CAAC,UAAU,GAAG,SAAS,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,CAAC,UAAU,CAAC,GAAG,GAAG,CAAC,OAAO,CAoB3H"}
1
+ {"version":3,"file":"BlocksFinalForm.d.ts","sourceRoot":"","sources":["../../../src/blocks/form/BlocksFinalForm.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAQ,KAAK,SAAS,EAAiC,MAAM,kBAAkB,CAAC;AAkCvG,wBAAgB,eAAe,CAAC,UAAU,GAAG,SAAS,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,CAAC,UAAU,CAAC,GAAG,GAAG,CAAC,OAAO,CAoB3H"}
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.BlocksFinalForm = BlocksFinalForm;
8
8
  var _admin = require("@comet/admin");
9
+ var _reactDom = require("react-dom");
9
10
  var _reactFinalForm = require("react-final-form");
10
11
  var _jsxRuntime = require("react/jsx-runtime");
11
12
  var _excluded = ["onSubmit", "children"];
@@ -28,8 +29,10 @@ function AutosaveSpy(_ref) {
28
29
  if (dirty) {
29
30
  // works around endless loop when using setState from inside render
30
31
  setTimeout(function () {
31
- form.submit(); // to show validation errors, form.submit does not update anything
32
- onSubmit(form.getState().values, form); // call passed onSubmit manually, also when validation errors are present
32
+ (0, _reactDom.flushSync)(function () {
33
+ form.submit(); // to show validation errors, form.submit does not update anything
34
+ onSubmit(form.getState().values, form); // call passed onSubmit manually, also when validation errors are present
35
+ });
33
36
  }, 1);
34
37
  }
35
38
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comet/cms-admin",
3
- "version": "8.5.1-canary-20251028112827",
3
+ "version": "8.5.1",
4
4
  "description": "Comet CMS Admin package",
5
5
  "repository": {
6
6
  "directory": "packages/admin/cms-admin",
@@ -41,10 +41,10 @@
41
41
  "slugify": "^1.6.6",
42
42
  "use-debounce": "^10.0.5",
43
43
  "uuid": "^11.1.0",
44
- "@comet/admin": "8.5.1-canary-20251028112827",
45
- "@comet/admin-date-time": "8.5.1-canary-20251028112827",
46
- "@comet/admin-icons": "8.5.1-canary-20251028112827",
47
- "@comet/admin-rte": "8.5.1-canary-20251028112827"
44
+ "@comet/admin": "8.5.1",
45
+ "@comet/admin-date-time": "8.5.1",
46
+ "@comet/admin-icons": "8.5.1",
47
+ "@comet/admin-rte": "8.5.1"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@apollo/client": "^3.13.8",
@@ -98,9 +98,9 @@
98
98
  "react-router-dom": "^5.3.4",
99
99
  "ts-jest": "^29.4.0",
100
100
  "typescript": "5.8.3",
101
- "@comet/admin-babel-preset": "8.5.1-canary-20251028112827",
102
- "@comet/cli": "8.5.1-canary-20251028112827",
103
- "@comet/eslint-config": "8.5.1-canary-20251028112827"
101
+ "@comet/admin-babel-preset": "8.5.1",
102
+ "@comet/cli": "8.5.1",
103
+ "@comet/eslint-config": "8.5.1"
104
104
  },
105
105
  "peerDependencies": {
106
106
  "@apollo/client": "^3.7.0",