@sveltia/ui 0.31.3 → 0.31.5
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/dist/components/button/button.svelte +1 -1
- package/dist/components/button/select-button-group.svelte +1 -1
- package/dist/components/calendar/calendar.svelte +1 -1
- package/dist/components/grid/grid.svelte +1 -1
- package/dist/components/listbox/listbox.svelte +1 -1
- package/dist/components/menu/menu-item.svelte +1 -1
- package/dist/components/menu/menu.svelte +1 -1
- package/dist/components/radio/radio-group.svelte +1 -1
- package/dist/components/select/combobox.svelte +1 -1
- package/dist/components/tabs/tab-list.svelte +1 -1
- package/dist/components/text-editor/code-editor.svelte +1 -1
- package/dist/components/text-editor/core.js +2 -2
- package/dist/components/text-editor/lexical-root.svelte +1 -1
- package/dist/components/text-editor/store.svelte.js +1 -1
- package/dist/components/text-editor/text-editor.svelte +2 -2
- package/dist/components/text-editor/toolbar/code-language-switcher.svelte +1 -1
- package/dist/components/text-editor/toolbar/format-text-button.svelte +2 -2
- package/dist/components/text-editor/toolbar/insert-link-button.svelte +3 -3
- package/dist/components/text-editor/toolbar/text-editor-toolbar.svelte +1 -1
- package/dist/components/text-editor/toolbar/toggle-block-menu-item.svelte +2 -2
- package/dist/components/text-field/text-input.svelte +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/services/group.svelte.js +1 -1
- package/package.json +22 -22
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
@see https://www.w3.org/WAI/ARIA/apg/patterns/button/
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
-
import { activateKeyShortcuts } from '../../services/events.svelte';
|
|
8
|
+
import { activateKeyShortcuts } from '../../services/events.svelte.js';
|
|
9
9
|
import TruncatedText from '../typography/truncated-text.svelte';
|
|
10
10
|
import Popup from '../util/popup.svelte';
|
|
11
11
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
-->
|
|
5
5
|
<script>
|
|
6
6
|
import { _ } from 'svelte-i18n';
|
|
7
|
-
import { isRTL } from '../../services/i18n';
|
|
7
|
+
import { isRTL } from '../../services/i18n.js';
|
|
8
8
|
import Button from '../button/button.svelte';
|
|
9
9
|
import Divider from '../divider/divider.svelte';
|
|
10
10
|
import Spacer from '../divider/spacer.svelte';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
-->
|
|
6
6
|
<script>
|
|
7
7
|
import { onMount } from 'svelte';
|
|
8
|
-
import { isRTL } from '../../services/i18n';
|
|
8
|
+
import { isRTL } from '../../services/i18n.js';
|
|
9
9
|
import Button from '../button/button.svelte';
|
|
10
10
|
import Icon from '../icon/icon.svelte';
|
|
11
11
|
import Popup from '../util/popup.svelte';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
-->
|
|
8
8
|
<script>
|
|
9
9
|
import { _ } from 'svelte-i18n';
|
|
10
|
-
import { getSelectedItemDetail } from '../../services/select.svelte';
|
|
10
|
+
import { getSelectedItemDetail } from '../../services/select.svelte.js';
|
|
11
11
|
import Button from '../button/button.svelte';
|
|
12
12
|
import Icon from '../icon/icon.svelte';
|
|
13
13
|
import Listbox from '../listbox/listbox.svelte';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import Alert from '../alert/alert.svelte';
|
|
9
9
|
import Toast from '../toast/toast.svelte';
|
|
10
10
|
import LexicalRoot from './lexical-root.svelte';
|
|
11
|
-
import { createEditorStore } from './store.svelte';
|
|
11
|
+
import { createEditorStore } from './store.svelte.js';
|
|
12
12
|
import CodeEditorToolbar from './toolbar/code-editor-toolbar.svelte';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -52,8 +52,8 @@ import {
|
|
|
52
52
|
$isRangeSelection as isRangeSelection,
|
|
53
53
|
} from 'lexical';
|
|
54
54
|
import prismComponents from 'prismjs/components';
|
|
55
|
-
import { BLOCK_BUTTON_TYPES, TEXT_FORMAT_BUTTON_TYPES } from './constants';
|
|
56
|
-
import { TABLE } from './transformers/table';
|
|
55
|
+
import { BLOCK_BUTTON_TYPES, TEXT_FORMAT_BUTTON_TYPES } from './constants.js';
|
|
56
|
+
import { TABLE } from './transformers/table.js';
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* @import { CreateEditorArgs, LexicalEditor } from 'lexical';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { generateElementId } from '@sveltia/utils/element';
|
|
2
|
-
import { convertMarkdownToLexical } from './core';
|
|
2
|
+
import { convertMarkdownToLexical } from './core.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @import { TextEditorConfig, TextEditorSelectionState, TextEditorStore } from '../../typedefs';
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
import Alert from '../alert/alert.svelte';
|
|
9
9
|
import TextArea from '../text-field/text-area.svelte';
|
|
10
10
|
import Toast from '../toast/toast.svelte';
|
|
11
|
-
import { BLOCK_BUTTON_TYPES, INLINE_BUTTON_TYPES } from './constants';
|
|
11
|
+
import { BLOCK_BUTTON_TYPES, INLINE_BUTTON_TYPES } from './constants.js';
|
|
12
12
|
import LexicalRoot from './lexical-root.svelte';
|
|
13
|
-
import { createEditorStore } from './store.svelte';
|
|
13
|
+
import { createEditorStore } from './store.svelte.js';
|
|
14
14
|
import TextEditorToolbar from './toolbar/text-editor-toolbar.svelte';
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { _ } from 'svelte-i18n';
|
|
7
7
|
import Option from '../../listbox/option.svelte';
|
|
8
8
|
import Select from '../../select/select.svelte';
|
|
9
|
-
import { focusEditor, loadCodeHighlighter } from '../core';
|
|
9
|
+
import { focusEditor, loadCodeHighlighter } from '../core.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @import { TextEditorStore } from '../../../typedefs';
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import { _ } from 'svelte-i18n';
|
|
5
5
|
import Button from '../../button/button.svelte';
|
|
6
6
|
import Icon from '../../icon/icon.svelte';
|
|
7
|
-
import { AVAILABLE_BUTTONS } from '../constants';
|
|
8
|
-
import { focusEditor } from '../core';
|
|
7
|
+
import { AVAILABLE_BUTTONS } from '../constants.js';
|
|
8
|
+
import { focusEditor } from '../core.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @import { TextEditorFormatType, TextEditorStore } from '../../../typedefs';
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
} from 'lexical';
|
|
16
16
|
import { getContext } from 'svelte';
|
|
17
17
|
import { _ } from 'svelte-i18n';
|
|
18
|
-
import { isMac, matchShortcuts } from '../../../services/events.svelte';
|
|
18
|
+
import { isMac, matchShortcuts } from '../../../services/events.svelte.js';
|
|
19
19
|
import Button from '../../button/button.svelte';
|
|
20
20
|
import Dialog from '../../dialog/dialog.svelte';
|
|
21
21
|
import Icon from '../../icon/icon.svelte';
|
|
22
22
|
import TextInput from '../../text-field/text-input.svelte';
|
|
23
|
-
import { AVAILABLE_BUTTONS } from '../constants';
|
|
24
|
-
import { focusEditor } from '../core';
|
|
23
|
+
import { AVAILABLE_BUTTONS } from '../constants.js';
|
|
24
|
+
import { focusEditor } from '../core.js';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* @import { TextEditorStore } from '../../../typedefs';
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
BLOCK_BUTTON_TYPES,
|
|
15
15
|
IMAGE_COMPONENT_IDS,
|
|
16
16
|
INLINE_BUTTON_TYPES,
|
|
17
|
-
} from '../constants';
|
|
17
|
+
} from '../constants.js';
|
|
18
18
|
import CodeLanguageSwitcher from './code-language-switcher.svelte';
|
|
19
19
|
import FormatTextButton from './format-text-button.svelte';
|
|
20
20
|
import InsertImageButton from './insert-image-button.svelte';
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
import { _ } from 'svelte-i18n';
|
|
15
15
|
import Icon from '../../icon/icon.svelte';
|
|
16
16
|
import MenuItemCheckbox from '../../menu/menu-item-checkbox.svelte';
|
|
17
|
-
import { AVAILABLE_BUTTONS } from '../constants';
|
|
18
|
-
import { focusEditor } from '../core';
|
|
17
|
+
import { AVAILABLE_BUTTONS } from '../constants.js';
|
|
18
|
+
import { focusEditor } from '../core.js';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* @import { TextEditorBlockType, TextEditorStore } from '../../../typedefs';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
@see https://w3c.github.io/aria/#textbox
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
-
import { activateKeyShortcuts } from '../../services/events.svelte';
|
|
8
|
+
import { activateKeyShortcuts } from '../../services/events.svelte.js';
|
|
9
9
|
import TruncatedText from '../typography/truncated-text.svelte';
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -73,7 +73,7 @@ export { default as AppShell } from "./components/util/app-shell.svelte";
|
|
|
73
73
|
export { default as EmptyState } from "./components/util/empty-state.svelte";
|
|
74
74
|
export { default as Group } from "./components/util/group.svelte";
|
|
75
75
|
export { default as Modal } from "./components/util/modal.svelte";
|
|
76
|
-
export * from "./typedefs";
|
|
77
|
-
import { initLocales } from './services/i18n';
|
|
78
|
-
import { isRTL } from './services/i18n';
|
|
76
|
+
export * from "./typedefs.js";
|
|
77
|
+
import { initLocales } from './services/i18n.js';
|
|
78
|
+
import { isRTL } from './services/i18n.js';
|
|
79
79
|
export { initLocales, isRTL };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { initLocales, isRTL } from './services/i18n';
|
|
1
|
+
import { initLocales, isRTL } from './services/i18n.js';
|
|
2
2
|
|
|
3
3
|
initLocales();
|
|
4
4
|
|
|
@@ -80,4 +80,4 @@ export { default as Modal } from './components/util/modal.svelte';
|
|
|
80
80
|
export { initLocales, isRTL };
|
|
81
81
|
|
|
82
82
|
// eslint-disable-next-line import/export
|
|
83
|
-
export * from './typedefs';
|
|
83
|
+
export * from './typedefs.js';
|
|
@@ -6,7 +6,7 @@ import { generateElementId } from '@sveltia/utils/element';
|
|
|
6
6
|
import { sleep } from '@sveltia/utils/misc';
|
|
7
7
|
import { get } from 'svelte/store';
|
|
8
8
|
import { isRTL } from './i18n.js';
|
|
9
|
-
import { getSelectedItemDetail } from './select.svelte';
|
|
9
|
+
import { getSelectedItemDetail } from './select.svelte.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Normalize the given string for search value comparison. Since `transliterate` is slow, we only
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltia/ui",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.5",
|
|
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.
|
|
12
|
-
"@lexical/dragon": "^0.
|
|
13
|
-
"@lexical/history": "^0.
|
|
14
|
-
"@lexical/link": "^0.
|
|
15
|
-
"@lexical/list": "^0.
|
|
16
|
-
"@lexical/markdown": "^0.
|
|
17
|
-
"@lexical/rich-text": "^0.
|
|
18
|
-
"@lexical/selection": "^0.
|
|
19
|
-
"@lexical/table": "^0.
|
|
20
|
-
"@lexical/utils": "^0.
|
|
21
|
-
"@sveltia/utils": "^0.8.
|
|
22
|
-
"lexical": "^0.
|
|
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",
|
|
21
|
+
"@sveltia/utils": "^0.8.6",
|
|
22
|
+
"lexical": "^0.38.2",
|
|
23
23
|
"prismjs": "^1.30.0",
|
|
24
24
|
"svelte-i18n": "^4.0.1"
|
|
25
25
|
},
|
|
@@ -27,32 +27,32 @@
|
|
|
27
27
|
"svelte": "^5.0.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@sveltejs/adapter-auto": "^
|
|
31
|
-
"@sveltejs/kit": "^2.
|
|
30
|
+
"@sveltejs/adapter-auto": "^7.0.0",
|
|
31
|
+
"@sveltejs/kit": "^2.48.4",
|
|
32
32
|
"@sveltejs/package": "^2.5.4",
|
|
33
33
|
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
|
34
|
-
"cspell": "^9.2.
|
|
34
|
+
"cspell": "^9.2.2",
|
|
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.1.
|
|
39
|
+
"eslint-plugin-jsdoc": "^61.1.11",
|
|
40
40
|
"eslint-plugin-svelte": "^2.46.1",
|
|
41
|
-
"oxlint": "^1.
|
|
41
|
+
"oxlint": "^1.25.0",
|
|
42
42
|
"postcss": "^8.5.6",
|
|
43
43
|
"postcss-html": "^1.8.0",
|
|
44
44
|
"prettier": "^3.6.2",
|
|
45
45
|
"prettier-plugin-svelte": "^3.4.0",
|
|
46
|
-
"sass": "^1.93.
|
|
46
|
+
"sass": "^1.93.3",
|
|
47
47
|
"stylelint": "^16.25.0",
|
|
48
48
|
"stylelint-config-recommended-scss": "^16.0.2",
|
|
49
49
|
"stylelint-scss": "^6.12.1",
|
|
50
|
-
"svelte": "^5.
|
|
50
|
+
"svelte": "^5.43.2",
|
|
51
51
|
"svelte-check": "^4.3.3",
|
|
52
52
|
"svelte-preprocess": "^6.0.3",
|
|
53
53
|
"tslib": "^2.8.1",
|
|
54
|
-
"vite": "^7.1.
|
|
55
|
-
"vitest": "^
|
|
54
|
+
"vite": "^7.1.12",
|
|
55
|
+
"vitest": "^4.0.6"
|
|
56
56
|
},
|
|
57
57
|
"exports": {
|
|
58
58
|
".": {
|