@sveltia/ui 0.22.4 → 0.22.6

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.
package/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Kohei Yoshino.
3
+ Copyright (c) 2025 Kohei Yoshino.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -227,7 +227,7 @@ export const initEditor = ({ components } = {}) => {
227
227
  registerHistory(editor, createEmptyHistoryState(), 1000);
228
228
 
229
229
  registerCodeHighlighting(editor, {
230
- defaultLanguage: 'plain',
230
+ defaultLanguage: '',
231
231
  // eslint-disable-next-line jsdoc/require-jsdoc
232
232
  tokenize: (code, language = 'plain') =>
233
233
  window.Prism.tokenize(code, window.Prism.languages[language] ?? window.Prism.languages.plain),
@@ -144,6 +144,7 @@
144
144
  .wrapper :global([role="toolbar"]) {
145
145
  position: sticky;
146
146
  top: 0;
147
+ z-index: 1;
147
148
  display: flex;
148
149
  gap: 8px;
149
150
  border-width: 1px 1px 0;
@@ -120,7 +120,7 @@
120
120
  * @see https://github.com/facebook/lexical/discussions/3013
121
121
  */
122
122
  const onDialogClose = async (event) => {
123
- if (event.detail !== 'cancel' && dialogMode !== 'remove') {
123
+ if (event.detail.returnValue !== 'cancel' && dialogMode !== 'remove') {
124
124
  await new Promise((resolve) => {
125
125
  $editor.update(async () => {
126
126
  let selection = getSelection() ?? getPreviousSelection()?.clone();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/ui",
3
- "version": "0.22.4",
3
+ "version": "0.22.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -28,19 +28,19 @@
28
28
  "test:unit": "vitest"
29
29
  },
30
30
  "dependencies": {
31
- "@lexical/code": "^0.22.0",
32
- "@lexical/dragon": "^0.22.0",
33
- "@lexical/history": "^0.22.0",
34
- "@lexical/link": "^0.22.0",
35
- "@lexical/list": "^0.22.0",
36
- "@lexical/markdown": "^0.22.0",
37
- "@lexical/rich-text": "^0.22.0",
38
- "@lexical/selection": "^0.22.0",
39
- "@lexical/table": "^0.22.0",
40
- "@lexical/utils": "^0.22.0",
31
+ "@lexical/code": "^0.23.1",
32
+ "@lexical/dragon": "^0.23.1",
33
+ "@lexical/history": "^0.23.1",
34
+ "@lexical/link": "^0.23.1",
35
+ "@lexical/list": "^0.23.1",
36
+ "@lexical/markdown": "^0.23.1",
37
+ "@lexical/rich-text": "^0.23.1",
38
+ "@lexical/selection": "^0.23.1",
39
+ "@lexical/table": "^0.23.1",
40
+ "@lexical/utils": "^0.23.1",
41
41
  "@sveltia/utils": "^0.6.3",
42
42
  "prismjs": "^1.29.0",
43
- "lexical": "^0.22.0"
43
+ "lexical": "^0.23.1"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "svelte": "^5.0.0"
@@ -48,7 +48,7 @@
48
48
  "devDependencies": {
49
49
  "@playwright/test": "^1.49.1",
50
50
  "@sveltejs/adapter-auto": "^3.3.1",
51
- "@sveltejs/kit": "^2.15.1",
51
+ "@sveltejs/kit": "^2.15.2",
52
52
  "@sveltejs/package": "^2.3.7",
53
53
  "@sveltejs/vite-plugin-svelte": "5.0.3",
54
54
  "cspell": "^8.17.1",
@@ -62,16 +62,16 @@
62
62
  "postcss-html": "^1.7.0",
63
63
  "prettier": "^3.4.2",
64
64
  "prettier-plugin-svelte": "^3.3.2",
65
- "sass": "^1.83.0",
65
+ "sass": "^1.83.1",
66
66
  "stylelint": "^16.12.0",
67
67
  "stylelint-config-recommended-scss": "^14.1.0",
68
68
  "stylelint-scss": "^6.10.0",
69
- "svelte": "5.16.0",
70
- "svelte-check": "^4.1.1",
69
+ "svelte": "5.17.3",
70
+ "svelte-check": "^4.1.3",
71
71
  "svelte-i18n": "^4.0.1",
72
72
  "svelte-preprocess": "^6.0.3",
73
73
  "tslib": "^2.8.1",
74
- "vite": "^6.0.6",
74
+ "vite": "^6.0.7",
75
75
  "vitest": "^2.1.8"
76
76
  },
77
77
  "exports": {