@stnd/launcher 1.3.4 → 1.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @stnd/launcher
2
2
 
3
+ ## 1.3.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @stnd/ui@0.6.4
9
+ - @stnd/account@0.2.15
10
+ - @stnd/client@0.7.1
11
+
3
12
  ## 1.3.4
4
13
 
5
14
  ### Patch Changes
package/Launcher.svelte CHANGED
@@ -754,7 +754,7 @@
754
754
  .std-launcher {
755
755
  position: relative;
756
756
  width: 100%;
757
- max-width: 400px;
757
+ max-width: 60vw;
758
758
  font-family: var(--font-interface);
759
759
  background: var(--color-surface-high);
760
760
  border-radius: var(--radius);
@@ -770,10 +770,6 @@
770
770
  &.compact {
771
771
  max-width: 50vw;
772
772
  }
773
- &.standard {
774
- max-width: 60vw;
775
- }
776
-
777
773
  &.large {
778
774
  max-width: 70vw;
779
775
  }
package/launcher.ts CHANGED
@@ -443,7 +443,13 @@ export function computeMatches(
443
443
  export const activeView = derived(
444
444
  [registry, palette],
445
445
  ([$registry, $palette]) => {
446
- return $registry.views[$palette.view] || null;
446
+ if ($registry.views[$palette.view]) {
447
+ return $registry.views[$palette.view];
448
+ }
449
+ if ($palette.view === "search" && !$palette.query) {
450
+ return $registry.views["::welcome"] || null;
451
+ }
452
+ return null;
447
453
  },
448
454
  );
449
455
 
@@ -455,8 +461,15 @@ export const windowSize = derived(
455
461
 
456
462
  // 2. Registry Size
457
463
  if ($activeView) {
464
+ const targetTrigger =
465
+ $palette.view === "search" && !$palette.query
466
+ ? "::welcome"
467
+ : $palette.view;
458
468
  const cmd = $registry.commands.find(
459
- (c) => c.action === $activeView || c.trigger === $palette.view,
469
+ (c) =>
470
+ c.action === $activeView ||
471
+ c.trigger === targetTrigger ||
472
+ c.component === $activeView,
460
473
  );
461
474
  // Note: The registry commands might store the view component in a different property depending on how it was registered
462
475
  // In register(): if type=view, it goes to r.views. We don't necessarily keep a ref in r.commands to the component function easily?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stnd/launcher",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -20,12 +20,12 @@
20
20
  "dependencies": {
21
21
  "svelte": "5.57.0",
22
22
  "wrangler": "^4.129.0",
23
- "@stnd/account": "0.2.14",
24
- "@stnd/client": "0.7.0",
23
+ "@stnd/account": "0.2.15",
24
+ "@stnd/client": "0.7.1",
25
25
  "@stnd/icon": "0.2.2",
26
26
  "@stnd/log": "0.5.1",
27
27
  "@stnd/store": "0.5.1",
28
- "@stnd/ui": "0.6.3"
28
+ "@stnd/ui": "0.6.4"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "astro": ">=5.0.0"