@box-kite/react 2.2.14 → 2.2.15
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/mcp/src/search.d.ts +12 -0
- package/package.json +2 -2
package/mcp/src/search.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PropRecord } from './data';
|
|
1
2
|
/**
|
|
2
3
|
* One entry point over the four corpora, because an agent mid-task knows what it wants the UI to do
|
|
3
4
|
* and not which of them holds the answer. Ranked rather than filtered: a query with no exact hit
|
|
@@ -12,6 +13,17 @@ export interface Hit {
|
|
|
12
13
|
summary: string;
|
|
13
14
|
score: number;
|
|
14
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* 2 when a prop writes `property`, 1 when it writes one of its longhands — exactly one segment more,
|
|
18
|
+
* so `border-bottom` reaches `border-bottom-width` and not `border-bottom-left-radius` — else 0.
|
|
19
|
+
*/
|
|
20
|
+
export declare function spells(record: PropRecord, property: string): number;
|
|
21
|
+
/**
|
|
22
|
+
* What a reader calls a key when they do not know its name: the words of a goal, or another library's
|
|
23
|
+
* spelling. Without them `startingStyle` is unreachable from "fade in when it mounts" and `rounded`
|
|
24
|
+
* from Tailwind's habit. `check_styles` reads the same words to suggest a prop for a misspelt one.
|
|
25
|
+
*/
|
|
26
|
+
export declare const SYNONYMS: Readonly<Record<string, string>>;
|
|
15
27
|
/** The four corpora, ranked together. `kind` narrows it when the caller already knows which it wants. */
|
|
16
28
|
export declare function search(query: string, options?: {
|
|
17
29
|
kind?: HitKind;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box-kite/react",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"pages/**"
|
|
@@ -653,7 +653,7 @@
|
|
|
653
653
|
"react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
654
654
|
},
|
|
655
655
|
"dependencies": {
|
|
656
|
-
"@box-kite/core": "2.2.
|
|
656
|
+
"@box-kite/core": "2.2.15",
|
|
657
657
|
"csstype": "^3.2.3",
|
|
658
658
|
"use-sync-external-store": "^1.6.0"
|
|
659
659
|
},
|