@octanejs/cmdk 0.1.0 → 0.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/cmdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -30,21 +30,21 @@
30
30
  ".": "./src/index.ts"
31
31
  },
32
32
  "dependencies": {
33
- "@octanejs/radix": "0.1.16"
33
+ "@octanejs/radix": "0.1.18"
34
34
  },
35
35
  "peerDependencies": {
36
- "octane": "0.1.17"
36
+ "octane": "0.1.19"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@testing-library/jest-dom": "^6.9.1",
40
- "@tsrx/react": "^0.2.50",
40
+ "@tsrx/react": "^0.2.56",
41
41
  "cmdk": "1.1.1",
42
42
  "esbuild": "^0.28.1",
43
43
  "react": "^19.2.7",
44
44
  "react-dom": "^19.2.7",
45
45
  "vitest": "^4.1.10",
46
- "octane": "0.1.17",
47
- "@octanejs/testing-library": "0.1.14"
46
+ "@octanejs/testing-library": "0.1.16",
47
+ "octane": "0.1.19"
48
48
  },
49
49
  "scripts": {
50
50
  "test": "vitest run"
@@ -674,7 +674,7 @@ export function CommandRoot(props: CommandProps) @{
674
674
  };
675
675
 
676
676
  <div
677
- ref={props.ref}
677
+ ref={props.ref ?? null}
678
678
  tabIndex={-1}
679
679
  {...etc}
680
680
  cmdk-root=""
@@ -24,5 +24,5 @@ export function Empty(props: EmptyProps) @{
24
24
  if (!render) return null;
25
25
 
26
26
  const { ref: _ref, children, ...etc } = props;
27
- <div ref={props.ref} {...etc} cmdk-empty="" role="presentation">{children}</div>
27
+ <div ref={props.ref ?? null} {...etc} cmdk-empty="" role="presentation">{children}</div>
28
28
  }
@@ -36,7 +36,7 @@ export function Group(props: GroupProps) @{
36
36
  const contextValue = useMemo(() => ({ id, forceMount }), [forceMount]);
37
37
 
38
38
  <div
39
- ref={[ref, props.ref]}
39
+ ref={[ref, props.ref ?? null]}
40
40
  {...etc}
41
41
  cmdk-group=""
42
42
  role="presentation"
@@ -20,7 +20,7 @@ export function Input(props: InputProps) @{
20
20
  }, [props.value]);
21
21
 
22
22
  <input
23
- ref={props.ref}
23
+ ref={props.ref ?? null}
24
24
  {...etc}
25
25
  cmdk-input=""
26
26
  autoComplete="off"
@@ -80,7 +80,7 @@ export function Item(props: ItemProps) @{
80
80
  } = props;
81
81
 
82
82
  <div
83
- ref={[ref, props.ref]}
83
+ ref={[ref, props.ref ?? null]}
84
84
  {...etc}
85
85
  id={id}
86
86
  cmdk-item=""
@@ -36,7 +36,7 @@ export function List(props: ListProps) @{
36
36
  }, []);
37
37
 
38
38
  <div
39
- ref={[ref, props.ref]}
39
+ ref={[ref, props.ref ?? null]}
40
40
  {...etc}
41
41
  cmdk-list=""
42
42
  role="listbox"
@@ -5,7 +5,7 @@ export function Loading(props: LoadingProps) @{
5
5
  const { progress, children, label = 'Loading...', ref: _ref, ...etc } = props;
6
6
 
7
7
  <div
8
- ref={props.ref}
8
+ ref={props.ref ?? null}
9
9
  {...etc}
10
10
  cmdk-loading=""
11
11
  role="progressbar"
@@ -10,5 +10,5 @@ export function Separator(props: SeparatorProps) @{
10
10
  const render = useCmdk((s) => !s.search);
11
11
 
12
12
  if (!alwaysRender && !render) return null;
13
- <div ref={[ref, props.ref]} {...etc} cmdk-separator="" role="separator" />
13
+ <div ref={[ref, props.ref ?? null]} {...etc} cmdk-separator="" role="separator" />
14
14
  }