@octanejs/cmdk 0.1.43 → 0.1.45
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 +5 -5
- package/src/command-score.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/cmdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.45",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@octanejs/radix": "0.1.
|
|
34
|
+
"@octanejs/radix": "0.1.61"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"octane": "^0.
|
|
37
|
+
"octane": "^0.9.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"react": "19.2.7",
|
|
47
47
|
"react-dom": "19.2.7",
|
|
48
48
|
"vitest": "^4.1.10",
|
|
49
|
-
"@octanejs/testing-library": "0.1.
|
|
50
|
-
"octane": "0.
|
|
49
|
+
"@octanejs/testing-library": "0.1.58",
|
|
50
|
+
"octane": "0.9.1"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"test": "vitest run"
|
package/src/command-score.ts
CHANGED
|
@@ -39,8 +39,6 @@ var SCORE_CONTINUE_MATCH = 1,
|
|
|
39
39
|
// This will not change the order of suggestions based on SCORE_* until
|
|
40
40
|
// 1000 characters are inserted between matches.
|
|
41
41
|
PENALTY_CASE_MISMATCH = 0.9999,
|
|
42
|
-
// Match higher for letters closer to the beginning of the word
|
|
43
|
-
PENALTY_DISTANCE_FROM_START = 0.9,
|
|
44
42
|
// If the word has more characters than the user typed, it should
|
|
45
43
|
// be penalised slightly.
|
|
46
44
|
//
|