svelte-command 2.0.0 → 3.0.0
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/README.md +2 -2
- package/package.json +13 -13
- package/src/CommandButton.svelte +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[](https://svelte.dev)
|
|
2
2
|
[](https://www.npmjs.com/package/svelte-command)
|
|
3
3
|
[](https://opensource.org/licenses/BSD-3-Clause)
|
|
4
4
|
[](https://bundlejs.com/?q=svelte-command)
|
|
@@ -72,7 +72,7 @@ general command execution handling for svelte components
|
|
|
72
72
|
|
|
73
73
|
**Extends BasicCommand**
|
|
74
74
|
|
|
75
|
-
Ask for confirmation before
|
|
75
|
+
Ask for confirmation before execution a given Command.
|
|
76
76
|
|
|
77
77
|
### Parameters
|
|
78
78
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-command",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -38,27 +38,27 @@
|
|
|
38
38
|
"preview": "vite preview"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@semantic-release/commit-analyzer": "^
|
|
41
|
+
"@semantic-release/commit-analyzer": "^13.0.0",
|
|
42
42
|
"@semantic-release/exec": "^6.0.3",
|
|
43
|
-
"@semantic-release/github": "^10.
|
|
44
|
-
"@semantic-release/release-notes-generator": "^
|
|
45
|
-
"@sveltejs/vite-plugin-svelte": "^3.1.
|
|
43
|
+
"@semantic-release/github": "^10.1.3",
|
|
44
|
+
"@semantic-release/release-notes-generator": "^14.0.1",
|
|
45
|
+
"@sveltejs/vite-plugin-svelte": "^3.1.1",
|
|
46
46
|
"ava": "^6.1.3",
|
|
47
47
|
"documentation": "^14.0.3",
|
|
48
|
-
"mf-styling": "^3.1.
|
|
49
|
-
"npm-pkgbuild": "^15.3.
|
|
50
|
-
"semantic-release": "^
|
|
51
|
-
"svelte": "^5.0.0-next.
|
|
52
|
-
"testcafe": "^3.6.
|
|
53
|
-
"vite": "^5.
|
|
54
|
-
"vite-plugin-compression2": "^1.1.
|
|
48
|
+
"mf-styling": "^3.1.7",
|
|
49
|
+
"npm-pkgbuild": "^15.3.27",
|
|
50
|
+
"semantic-release": "^24.0.0",
|
|
51
|
+
"svelte": "^5.0.0-next.202",
|
|
52
|
+
"testcafe": "^3.6.2",
|
|
53
|
+
"vite": "^5.3.5",
|
|
54
|
+
"vite-plugin-compression2": "^1.1.3"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"svelte": "^5.0.0-next.0"
|
|
58
58
|
},
|
|
59
59
|
"optionalDependencies": {
|
|
60
60
|
"mf-hosting-cloudflare": "^1.0.6",
|
|
61
|
-
"mf-hosting-frontend": "^3.
|
|
61
|
+
"mf-hosting-frontend": "^3.2.1"
|
|
62
62
|
},
|
|
63
63
|
"repository": {
|
|
64
64
|
"type": "git",
|
package/src/CommandButton.svelte
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
|
|
2
|
+
let { command } = $props();
|
|
3
3
|
|
|
4
4
|
function onkeydown(event) {
|
|
5
5
|
if (command.matchesKeydown?.(event)) {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
aria-keyshortcuts={$command.disabled ? undefined : $command.shortcuts}
|
|
16
16
|
class:active={$command.active}
|
|
17
17
|
class:failed={$command.failed}
|
|
18
|
-
|
|
18
|
+
onclick={() => command.start()}>
|
|
19
19
|
{#if $command.title !== undefined}
|
|
20
20
|
{$command.title}
|
|
21
21
|
{$command.shortcutDefinition}
|