@leavepulse/ui 0.38.0 → 0.38.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.
@@ -1,21 +1,21 @@
1
1
 
2
- .lp-cmd-excerpt[data-v-2a5d3558] {
2
+ .lp-cmd-excerpt[data-v-cc5b91ea] {
3
3
  display: -webkit-box;
4
4
  -webkit-box-orient: vertical;
5
5
  overflow: hidden;
6
6
  }
7
7
  /* Each result eases in; honours reduced motion. */
8
- .lp-cmd-item[data-v-2a5d3558] {
9
- animation: lp-cmd-in-2a5d3558 140ms ease-out both;
8
+ .lp-cmd-item[data-v-cc5b91ea] {
9
+ animation: lp-cmd-in-cc5b91ea 140ms ease-out both;
10
10
  }
11
- @keyframes lp-cmd-in-2a5d3558 {
11
+ @keyframes lp-cmd-in-cc5b91ea {
12
12
  from {
13
13
  opacity: 0;
14
14
  transform: translateY(3px);
15
15
  }
16
16
  }
17
17
  @media (prefers-reduced-motion: reduce) {
18
- .lp-cmd-item[data-v-2a5d3558] {
18
+ .lp-cmd-item[data-v-cc5b91ea] {
19
19
  animation: none;
20
20
  }
21
21
  }
@@ -6,7 +6,7 @@ import { useAsyncTask } from "../composables/useAsyncTask.js";
6
6
  import { useClipboard } from "../composables/useClipboard.js";
7
7
  import { useHotkeys } from "../composables/useHotkeys.js";
8
8
  import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper-1tPrXgE0.js";
9
- import '../assets/LpCommandPalette-C0yStVNy.css';const _hoisted_1 = { class: "flex shrink-0 items-center gap-2.5 border-b border-line px-4" };
9
+ import '../assets/LpCommandPalette-BV6-oPGZ.css';const _hoisted_1 = { class: "flex shrink-0 items-center gap-2.5 border-b border-line px-4" };
10
10
  const _hoisted_2 = ["title", "onClick"];
11
11
  const _hoisted_3 = ["aria-activedescendant", "placeholder", "onKeydown"];
12
12
  const _hoisted_4 = { class: "flex min-h-0 flex-1" };
@@ -457,7 +457,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
457
457
  await nextTick();
458
458
  inputRef.value?.focus();
459
459
  }
460
- }
460
+ },
461
+ { immediate: true }
461
462
  );
462
463
  useHotkeys(
463
464
  () => props.hotkey ? [
@@ -754,7 +755,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
754
755
  };
755
756
  }
756
757
  });
757
- const LpCommandPalette = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2a5d3558"]]);
758
+ const LpCommandPalette = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cc5b91ea"]]);
758
759
  export {
759
760
  LpCommandPalette as default
760
761
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leavepulse/ui",
3
- "version": "0.38.0",
3
+ "version": "0.38.1",
4
4
  "type": "module",
5
5
  "description": "LeavePulse token-driven Vue component kit.",
6
6
  "repository": {
@@ -780,6 +780,11 @@ function onEscape(event: KeyboardEvent) {
780
780
  // into the mode someone left three screens deep is never what they meant by
781
781
  // ⌘K, and a pending request from last time is dropped rather than landing in
782
782
  // the new list.
783
+ //
784
+ // Immediate, because a palette mounted already open — lazily, on the first
785
+ // ⌘K — never sees `open` change, and reka's own auto-focus is turned off
786
+ // below: without this the first open left focus on the page and the first
787
+ // keystrokes went nowhere.
783
788
  watch(
784
789
  () => props.open,
785
790
  async (o) => {
@@ -795,6 +800,7 @@ watch(
795
800
  inputRef.value?.focus()
796
801
  }
797
802
  },
803
+ { immediate: true },
798
804
  )
799
805
 
800
806
  // Through useHotkeys rather than a listener of its own: the palette is the one