@sveltia/ui 0.31.8 → 0.31.10

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.
@@ -24,6 +24,7 @@
24
24
  role = 'button',
25
25
  name = undefined,
26
26
  value = undefined,
27
+ // svelte-ignore state_referenced_locally
27
28
  valueType = typeof value,
28
29
  hidden = false,
29
30
  disabled = false,
@@ -34,7 +34,9 @@
34
34
  class: className,
35
35
  disabled = false,
36
36
  label,
37
+ // svelte-ignore state_referenced_locally
37
38
  value = label,
39
+ // svelte-ignore state_referenced_locally
38
40
  searchValue = label,
39
41
  wrap = false,
40
42
  children,
@@ -27,7 +27,7 @@
27
27
  } = $props();
28
28
 
29
29
  /** @type {number} */
30
- let loadedItemSize = $state(itemChunkSize);
30
+ let loadedItemSize = $derived(itemChunkSize);
31
31
 
32
32
  /** @type {HTMLElement | undefined} */
33
33
  let spinner = $state(undefined);
@@ -412,10 +412,10 @@ export const convertMarkdownToLexical = async (editor, value) => {
412
412
  // Split multiline formatting into separate lines to prevent Markdown parsing issues
413
413
  // @see https://github.com/sveltia/sveltia-cms/issues/548
414
414
  value = value
415
- .replace(/_([^_\n]+?)\n([^_\n]+?)_/gm, '_$1_\n_$2_')
416
- .replace(/\*\*([^*\n]+?)\n([^*\n]+?)\*\*/gm, '**$1**\n**$2**')
417
- .replace(/~~([^~\n]+?)\n([^~\n]+?)~~/gm, '~~$1~~\n~~$2~~')
418
- .replace(/`([^`\n]+?)\n([^`\n]+?)`/gm, '`$1`\n`$2`');
415
+ .replace(/(\s+)_([^_\n]+?)\n([^_\n]+?)_(\s+)/gm, '$1_$2_\n_$3_$4')
416
+ .replace(/(\s+)\*\*([^*\n]+?)\n([^*\n]+?)\*\*(\s+)/gm, '$1**$2**\n**$3**$4')
417
+ .replace(/(\s+)~~([^~\n]+?)\n([^~\n]+?)~~(\s+)/gm, '$1~~$2~~\n~~$3~~$4')
418
+ .replace(/(\s+)`([^`\n]+?)\n([^`\n]+?)`(\s+)/gm, '$1`$2`\n`$3`$4');
419
419
 
420
420
  // Increase list indentation levels to prevent Markdown parsing issues: Slate uses 2 spaces for
421
421
  // each indentation level, whereas Lexical uses 4 spaces
@@ -65,6 +65,7 @@
65
65
 
66
66
  const editorStore = createEditorStore();
67
67
 
68
+ // svelte-ignore state_referenced_locally
68
69
  editorStore.config = { ...editorStore.config, modes, enabledButtons: buttons, components };
69
70
 
70
71
  setContext('editorStore', editorStore);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/ui",
3
- "version": "0.31.8",
3
+ "version": "0.31.10",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -8,18 +8,18 @@
8
8
  "url": "github:sveltia/sveltia-ui"
9
9
  },
10
10
  "dependencies": {
11
- "@lexical/code": "^0.38.2",
12
- "@lexical/dragon": "^0.38.2",
13
- "@lexical/history": "^0.38.2",
14
- "@lexical/link": "^0.38.2",
15
- "@lexical/list": "^0.38.2",
16
- "@lexical/markdown": "^0.38.2",
17
- "@lexical/rich-text": "^0.38.2",
18
- "@lexical/selection": "^0.38.2",
19
- "@lexical/table": "^0.38.2",
20
- "@lexical/utils": "^0.38.2",
11
+ "@lexical/code": "^0.39.0",
12
+ "@lexical/dragon": "^0.39.0",
13
+ "@lexical/history": "^0.39.0",
14
+ "@lexical/link": "^0.39.0",
15
+ "@lexical/list": "^0.39.0",
16
+ "@lexical/markdown": "^0.39.0",
17
+ "@lexical/rich-text": "^0.39.0",
18
+ "@lexical/selection": "^0.39.0",
19
+ "@lexical/table": "^0.39.0",
20
+ "@lexical/utils": "^0.39.0",
21
21
  "@sveltia/utils": "^0.8.6",
22
- "lexical": "^0.38.2",
22
+ "lexical": "^0.39.0",
23
23
  "prismjs": "^1.30.0",
24
24
  "svelte-i18n": "^4.0.1"
25
25
  },
@@ -28,31 +28,31 @@
28
28
  },
29
29
  "devDependencies": {
30
30
  "@sveltejs/adapter-auto": "^7.0.0",
31
- "@sveltejs/kit": "^2.49.0",
31
+ "@sveltejs/kit": "^2.49.2",
32
32
  "@sveltejs/package": "^2.5.7",
33
33
  "@sveltejs/vite-plugin-svelte": "^6.2.1",
34
- "cspell": "^9.3.2",
34
+ "cspell": "^9.4.0",
35
35
  "eslint": "^8.57.1",
36
36
  "eslint-config-airbnb-base": "^15.0.0",
37
37
  "eslint-config-prettier": "^10.1.8",
38
38
  "eslint-plugin-import": "^2.32.0",
39
- "eslint-plugin-jsdoc": "^61.4.1",
39
+ "eslint-plugin-jsdoc": "^61.5.0",
40
40
  "eslint-plugin-svelte": "^2.46.1",
41
- "oxlint": "^1.30.0",
41
+ "oxlint": "^1.32.0",
42
42
  "postcss": "^8.5.6",
43
43
  "postcss-html": "^1.8.0",
44
- "prettier": "^3.7.3",
44
+ "prettier": "^3.7.4",
45
45
  "prettier-plugin-svelte": "^3.4.0",
46
- "sass": "^1.94.2",
46
+ "sass": "^1.96.0",
47
47
  "stylelint": "^16.26.1",
48
48
  "stylelint-config-recommended-scss": "^16.0.2",
49
- "stylelint-scss": "^6.12.1",
50
- "svelte": "^5.45.2",
49
+ "stylelint-scss": "^6.13.0",
50
+ "svelte": "^5.46.0",
51
51
  "svelte-check": "^4.3.4",
52
52
  "svelte-preprocess": "^6.0.3",
53
53
  "tslib": "^2.8.1",
54
- "vite": "^7.2.4",
55
- "vitest": "^4.0.14"
54
+ "vite": "^7.2.7",
55
+ "vitest": "^4.0.15"
56
56
  },
57
57
  "exports": {
58
58
  ".": {