@leavepulse/ui 0.71.0 → 0.71.1

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.
@@ -62,7 +62,13 @@ function usePaletteCommands(commands, options = {}) {
62
62
  const unregister = scope.registry.register({
63
63
  automatic: options.automatic,
64
64
  priority: scope.depth * 100 + (options.automatic ? 0 : 10),
65
- commands: () => scope.enabled && (!options.automatic || scope.discover) ? toValue(commands).map((command) => ({ ...command, group: command.group ?? scope.label })) : []
65
+ commands: () => scope.enabled && (!options.automatic || scope.discover) ? toValue(commands).map((command) => ({
66
+ ...command,
67
+ group: command.group ?? scope.label,
68
+ // A discovered "Save" or "Restart" says nothing on its own: typing the
69
+ // page or card it sits in ("settings save") has to find it.
70
+ keywords: options.automatic ? [...command.keywords ?? [], scope.label] : command.keywords
71
+ })) : []
66
72
  });
67
73
  onScopeDispose(unregister);
68
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leavepulse/ui",
3
- "version": "0.71.0",
3
+ "version": "0.71.1",
4
4
  "type": "module",
5
5
  "description": "LeavePulse token-driven Vue component kit.",
6
6
  "repository": {
@@ -89,7 +89,13 @@ export function usePaletteCommands(commands: MaybeRefOrGetter<readonly Command[]
89
89
  automatic: options.automatic,
90
90
  priority: scope.depth * 100 + (options.automatic ? 0 : 10),
91
91
  commands: () => scope.enabled && (!options.automatic || scope.discover)
92
- ? toValue(commands).map(command => ({ ...command, group: command.group ?? scope.label })) : [],
92
+ ? toValue(commands).map(command => ({
93
+ ...command,
94
+ group: command.group ?? scope.label,
95
+ // A discovered "Save" or "Restart" says nothing on its own: typing the
96
+ // page or card it sits in ("settings save") has to find it.
97
+ keywords: options.automatic ? [...(command.keywords ?? []), scope.label] : command.keywords,
98
+ })) : [],
93
99
  })
94
100
  onScopeDispose(unregister)
95
101
  }