@sveltia/ui 0.27.6 → 0.27.7

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.
@@ -413,14 +413,9 @@ export const convertMarkdownToLexical = async (editor, value) => {
413
413
  * @param {LexicalEditor} editor Editor instance.
414
414
  * @returns {Promise<void>} Nothing.
415
415
  */
416
- export const focusEditor = async (editor) => {
417
- await sleep(100);
418
- editor.getRootElement()?.focus();
419
-
420
- return new Promise((resolve) => {
421
- editor.focus(async () => {
422
- await sleep(100);
416
+ export const focusEditor = async (editor) =>
417
+ new Promise((resolve) => {
418
+ editor.focus(() => {
423
419
  resolve(undefined);
424
420
  });
425
421
  });
426
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/ui",
3
- "version": "0.27.6",
3
+ "version": "0.27.7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -48,30 +48,30 @@
48
48
  },
49
49
  "devDependencies": {
50
50
  "@sveltejs/adapter-auto": "^6.0.1",
51
- "@sveltejs/kit": "^2.24.0",
51
+ "@sveltejs/kit": "^2.26.1",
52
52
  "@sveltejs/package": "^2.4.0",
53
53
  "@sveltejs/vite-plugin-svelte": "6.1.0",
54
- "cspell": "^9.1.5",
54
+ "cspell": "^9.2.0",
55
55
  "eslint": "^8.57.1",
56
56
  "eslint-config-airbnb-base": "^15.0.0",
57
- "eslint-config-prettier": "^10.1.5",
57
+ "eslint-config-prettier": "^10.1.8",
58
58
  "eslint-plugin-import": "^2.32.0",
59
- "eslint-plugin-jsdoc": "^51.4.0",
59
+ "eslint-plugin-jsdoc": "^51.4.1",
60
60
  "eslint-plugin-svelte": "^2.46.1",
61
61
  "postcss": "^8.5.6",
62
62
  "postcss-html": "^1.8.0",
63
63
  "prettier": "^3.6.2",
64
64
  "prettier-plugin-svelte": "^3.4.0",
65
65
  "sass": "^1.89.2",
66
- "stylelint": "^16.21.1",
66
+ "stylelint": "^16.22.0",
67
67
  "stylelint-config-recommended-scss": "^15.0.1",
68
68
  "stylelint-scss": "^6.12.1",
69
- "svelte": "5.36.2",
70
- "svelte-check": "^4.2.2",
69
+ "svelte": "5.37.0",
70
+ "svelte-check": "^4.3.0",
71
71
  "svelte-i18n": "^4.0.1",
72
72
  "svelte-preprocess": "^6.0.3",
73
73
  "tslib": "^2.8.1",
74
- "vite": "^7.0.4",
74
+ "vite": "^7.0.6",
75
75
  "vitest": "^3.2.4"
76
76
  },
77
77
  "exports": {