@sveltia/ui 0.35.4 → 0.35.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.
@@ -1,7 +1,7 @@
1
1
  <script>
2
2
  import { LinkNode, TOGGLE_LINK_COMMAND } from '@lexical/link';
3
3
  import { $getNearestNodeOfType as getNearestNodeOfType } from '@lexical/utils';
4
- import { isMac, matchShortcuts } from '@sveltia/utils/events';
4
+ import { isMac, matchesShortcuts } from '@sveltia/utils/events';
5
5
  import {
6
6
  COMMAND_PRIORITY_NORMAL,
7
7
  KEY_DOWN_COMMAND,
@@ -111,7 +111,7 @@
111
111
  * @param {KeyboardEvent} event `keydown` event.
112
112
  */
113
113
  const onInputKeyDown = (event) => {
114
- if (matchShortcuts(event, 'Enter') && anchorURL) {
114
+ if (matchesShortcuts(event, 'Enter') && anchorURL) {
115
115
  openDialog = false;
116
116
  }
117
117
  };
@@ -168,7 +168,7 @@
168
168
  editorStore.editor?.registerCommand(
169
169
  KEY_DOWN_COMMAND,
170
170
  (event) => {
171
- if (matchShortcuts(event, isMac() ? 'Meta+K' : 'Ctrl+K')) {
171
+ if (matchesShortcuts(event, isMac() ? 'Meta+K' : 'Ctrl+K')) {
172
172
  event.preventDefault();
173
173
  onButtonClick();
174
174
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/ui",
3
- "version": "0.35.4",
3
+ "version": "0.35.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -20,7 +20,7 @@
20
20
  "@lexical/selection": "^0.42.0",
21
21
  "@lexical/table": "^0.42.0",
22
22
  "@lexical/utils": "^0.42.0",
23
- "@sveltia/utils": "^0.9.1",
23
+ "@sveltia/utils": "^0.9.3",
24
24
  "lexical": "^0.42.0",
25
25
  "prismjs": "^1.30.0",
26
26
  "svelte-i18n": "^4.0.1"