nuance-ui 0.1.23 → 0.1.24

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/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^4.0.0"
6
6
  },
7
- "version": "0.1.23",
7
+ "version": "0.1.24",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
@@ -1,5 +1,5 @@
1
1
  import type { Ref } from 'vue';
2
2
  export declare function useTreeItemHandlers(path: string, isFolder: Ref<boolean>, expanded: Ref<boolean>): {
3
3
  handleClick: (event: MouseEvent) => void;
4
- handleKeyDown: (event: KeyboardEvent) => any;
4
+ handleKeyDown: (event: KeyboardEvent) => void;
5
5
  };
@@ -2,7 +2,7 @@ import { useRovingFocus } from "@nui/components";
2
2
  import { useTreeState } from "./context.js";
3
3
  export function useTreeItemHandlers(path, isFolder, expanded) {
4
4
  const ctx = useTreeState();
5
- const { focus } = useRovingFocus();
5
+ const { focus } = useRovingFocus() ?? {};
6
6
  function handleClick(event) {
7
7
  if (event.shiftKey)
8
8
  ctx.toggle("select", path, "range");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuance-ui",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "description": "A UI Library for Modern Web Apps, powered by Vue.",
5
5
  "repository": {
6
6
  "type": "git",