@autoafleveren/ui 1.6.1 → 1.6.2

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.
@@ -12,6 +12,7 @@ interface UseContextMenu<T> {
12
12
  setActions: (actions: Action[] | undefined) => void;
13
13
  instance: Ref<ContextMenuInstance | undefined>;
14
14
  instances: Ref<ContextMenuInstance[]>;
15
+ item: Ref<T>;
15
16
  }
16
17
  export declare function useContextMenu<T>(): UseContextMenu<T>;
17
18
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autoafleveren/ui",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/*",
@@ -44,9 +44,7 @@
44
44
  const type = computed((): Type => props.action.type ?? 'default');
45
45
  const itemHidden = computed(() => {
46
46
  if (typeof props.action.hidden === 'function') {
47
- // @ts-expect-error item not in unknown
48
47
  if (props.context && contextMenu.item) {
49
- // @ts-expect-error item not in unknown
50
48
  return props.action.hidden([toValue(contextMenu.item)], true);
51
49
  }
52
50
 
@@ -31,6 +31,7 @@ interface UseContextMenu<T> {
31
31
  setActions: (actions: Action[] | undefined) => void;
32
32
  instance: Ref<ContextMenuInstance | undefined>;
33
33
  instances: Ref<ContextMenuInstance[]>;
34
+ item: Ref<T>;
34
35
  }
35
36
 
36
37
  export function useContextMenu<T>(): UseContextMenu<T> {