@yuktishaalaa/yuktai 4.6.0 → 4.6.1
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/index.d.mts +31 -26
- package/dist/index.d.ts +31 -26
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -280,31 +280,6 @@ interface YuktaiGridAIProps<T> {
|
|
|
280
280
|
}
|
|
281
281
|
declare function YuktaiGridAI<T extends Record<string, unknown>>({ data, columns, onSearch, onSort, theme, language, }: YuktaiGridAIProps<T>): react_jsx_runtime.JSX.Element;
|
|
282
282
|
|
|
283
|
-
type GridColumn = {
|
|
284
|
-
key: string;
|
|
285
|
-
label: string;
|
|
286
|
-
type?: "text" | "number" | "date";
|
|
287
|
-
};
|
|
288
|
-
type GridToolContext<T> = {
|
|
289
|
-
data: T[];
|
|
290
|
-
columns: GridColumn[];
|
|
291
|
-
onSelectRow?: (id: string) => void;
|
|
292
|
-
onHighlightRows?: (ids: string[]) => void;
|
|
293
|
-
onOpenRow?: (id: string) => void;
|
|
294
|
-
};
|
|
295
|
-
type GridToolResult<T = unknown> = {
|
|
296
|
-
success: boolean;
|
|
297
|
-
message: string;
|
|
298
|
-
data?: T;
|
|
299
|
-
};
|
|
300
|
-
declare function searchGrid<T extends Record<string, unknown>>(context: GridToolContext<T>, query: string): GridToolResult<T[]>;
|
|
301
|
-
declare function countGrid<T>(context: GridToolContext<T>): GridToolResult<number>;
|
|
302
|
-
declare function getColumns<T>(context: GridToolContext<T>): GridToolResult<GridColumn[]>;
|
|
303
|
-
declare function getRow<T extends Record<string, unknown>>(context: GridToolContext<T>, id: string): GridToolResult<T>;
|
|
304
|
-
declare function highlightRows<T extends Record<string, unknown>>(context: GridToolContext<T>, ids: string[]): GridToolResult<string[]>;
|
|
305
|
-
declare function selectRow<T extends Record<string, unknown>>(context: GridToolContext<T>, id: string): GridToolResult<string>;
|
|
306
|
-
declare function openRow<T extends Record<string, unknown>>(context: GridToolContext<T>, id: string): GridToolResult<string>;
|
|
307
|
-
|
|
308
283
|
declare global {
|
|
309
284
|
interface Document {
|
|
310
285
|
modelContext?: {
|
|
@@ -320,9 +295,14 @@ declare global {
|
|
|
320
295
|
};
|
|
321
296
|
}
|
|
322
297
|
}
|
|
298
|
+
type WebMCPColumn = {
|
|
299
|
+
key: string;
|
|
300
|
+
label: string;
|
|
301
|
+
type?: "text" | "number" | "date";
|
|
302
|
+
};
|
|
323
303
|
type YuktaiGridWebMCPProps<T> = {
|
|
324
304
|
data: T[];
|
|
325
|
-
columns:
|
|
305
|
+
columns: WebMCPColumn[];
|
|
326
306
|
name?: string;
|
|
327
307
|
onSelectRow?: (id: string) => void;
|
|
328
308
|
onHighlightRows?: (ids: string[]) => void;
|
|
@@ -346,6 +326,31 @@ declare function useYuktaiGridAgent({ tools, onResult, onError, }: YuktaiGridAge
|
|
|
346
326
|
executeTool: (name: string, input?: Record<string, unknown>) => Promise<unknown>;
|
|
347
327
|
};
|
|
348
328
|
|
|
329
|
+
type GridColumn = {
|
|
330
|
+
key: string;
|
|
331
|
+
label: string;
|
|
332
|
+
type?: "text" | "number" | "date";
|
|
333
|
+
};
|
|
334
|
+
type GridToolContext<T> = {
|
|
335
|
+
data: T[];
|
|
336
|
+
columns: GridColumn[];
|
|
337
|
+
onSelectRow?: (id: string) => void;
|
|
338
|
+
onHighlightRows?: (ids: string[]) => void;
|
|
339
|
+
onOpenRow?: (id: string) => void;
|
|
340
|
+
};
|
|
341
|
+
type GridToolResult<T = unknown> = {
|
|
342
|
+
success: boolean;
|
|
343
|
+
message: string;
|
|
344
|
+
data?: T;
|
|
345
|
+
};
|
|
346
|
+
declare function searchGrid<T extends Record<string, unknown>>(context: GridToolContext<T>, query: string): GridToolResult<T[]>;
|
|
347
|
+
declare function countGrid<T>(context: GridToolContext<T>): GridToolResult<number>;
|
|
348
|
+
declare function getColumns<T>(context: GridToolContext<T>): GridToolResult<GridColumn[]>;
|
|
349
|
+
declare function getRow<T extends Record<string, unknown>>(context: GridToolContext<T>, id: string): GridToolResult<T>;
|
|
350
|
+
declare function highlightRows<T extends Record<string, unknown>>(context: GridToolContext<T>, ids: string[]): GridToolResult<string[]>;
|
|
351
|
+
declare function selectRow<T extends Record<string, unknown>>(context: GridToolContext<T>, id: string): GridToolResult<string>;
|
|
352
|
+
declare function openRow<T extends Record<string, unknown>>(context: GridToolContext<T>, id: string): GridToolResult<string>;
|
|
353
|
+
|
|
349
354
|
interface IconProps extends React.SVGAttributes<SVGSVGElement> {
|
|
350
355
|
/** Size in pixels — applied to both width and height. Default: 20 */
|
|
351
356
|
size?: number | string;
|
package/dist/index.d.ts
CHANGED
|
@@ -280,31 +280,6 @@ interface YuktaiGridAIProps<T> {
|
|
|
280
280
|
}
|
|
281
281
|
declare function YuktaiGridAI<T extends Record<string, unknown>>({ data, columns, onSearch, onSort, theme, language, }: YuktaiGridAIProps<T>): react_jsx_runtime.JSX.Element;
|
|
282
282
|
|
|
283
|
-
type GridColumn = {
|
|
284
|
-
key: string;
|
|
285
|
-
label: string;
|
|
286
|
-
type?: "text" | "number" | "date";
|
|
287
|
-
};
|
|
288
|
-
type GridToolContext<T> = {
|
|
289
|
-
data: T[];
|
|
290
|
-
columns: GridColumn[];
|
|
291
|
-
onSelectRow?: (id: string) => void;
|
|
292
|
-
onHighlightRows?: (ids: string[]) => void;
|
|
293
|
-
onOpenRow?: (id: string) => void;
|
|
294
|
-
};
|
|
295
|
-
type GridToolResult<T = unknown> = {
|
|
296
|
-
success: boolean;
|
|
297
|
-
message: string;
|
|
298
|
-
data?: T;
|
|
299
|
-
};
|
|
300
|
-
declare function searchGrid<T extends Record<string, unknown>>(context: GridToolContext<T>, query: string): GridToolResult<T[]>;
|
|
301
|
-
declare function countGrid<T>(context: GridToolContext<T>): GridToolResult<number>;
|
|
302
|
-
declare function getColumns<T>(context: GridToolContext<T>): GridToolResult<GridColumn[]>;
|
|
303
|
-
declare function getRow<T extends Record<string, unknown>>(context: GridToolContext<T>, id: string): GridToolResult<T>;
|
|
304
|
-
declare function highlightRows<T extends Record<string, unknown>>(context: GridToolContext<T>, ids: string[]): GridToolResult<string[]>;
|
|
305
|
-
declare function selectRow<T extends Record<string, unknown>>(context: GridToolContext<T>, id: string): GridToolResult<string>;
|
|
306
|
-
declare function openRow<T extends Record<string, unknown>>(context: GridToolContext<T>, id: string): GridToolResult<string>;
|
|
307
|
-
|
|
308
283
|
declare global {
|
|
309
284
|
interface Document {
|
|
310
285
|
modelContext?: {
|
|
@@ -320,9 +295,14 @@ declare global {
|
|
|
320
295
|
};
|
|
321
296
|
}
|
|
322
297
|
}
|
|
298
|
+
type WebMCPColumn = {
|
|
299
|
+
key: string;
|
|
300
|
+
label: string;
|
|
301
|
+
type?: "text" | "number" | "date";
|
|
302
|
+
};
|
|
323
303
|
type YuktaiGridWebMCPProps<T> = {
|
|
324
304
|
data: T[];
|
|
325
|
-
columns:
|
|
305
|
+
columns: WebMCPColumn[];
|
|
326
306
|
name?: string;
|
|
327
307
|
onSelectRow?: (id: string) => void;
|
|
328
308
|
onHighlightRows?: (ids: string[]) => void;
|
|
@@ -346,6 +326,31 @@ declare function useYuktaiGridAgent({ tools, onResult, onError, }: YuktaiGridAge
|
|
|
346
326
|
executeTool: (name: string, input?: Record<string, unknown>) => Promise<unknown>;
|
|
347
327
|
};
|
|
348
328
|
|
|
329
|
+
type GridColumn = {
|
|
330
|
+
key: string;
|
|
331
|
+
label: string;
|
|
332
|
+
type?: "text" | "number" | "date";
|
|
333
|
+
};
|
|
334
|
+
type GridToolContext<T> = {
|
|
335
|
+
data: T[];
|
|
336
|
+
columns: GridColumn[];
|
|
337
|
+
onSelectRow?: (id: string) => void;
|
|
338
|
+
onHighlightRows?: (ids: string[]) => void;
|
|
339
|
+
onOpenRow?: (id: string) => void;
|
|
340
|
+
};
|
|
341
|
+
type GridToolResult<T = unknown> = {
|
|
342
|
+
success: boolean;
|
|
343
|
+
message: string;
|
|
344
|
+
data?: T;
|
|
345
|
+
};
|
|
346
|
+
declare function searchGrid<T extends Record<string, unknown>>(context: GridToolContext<T>, query: string): GridToolResult<T[]>;
|
|
347
|
+
declare function countGrid<T>(context: GridToolContext<T>): GridToolResult<number>;
|
|
348
|
+
declare function getColumns<T>(context: GridToolContext<T>): GridToolResult<GridColumn[]>;
|
|
349
|
+
declare function getRow<T extends Record<string, unknown>>(context: GridToolContext<T>, id: string): GridToolResult<T>;
|
|
350
|
+
declare function highlightRows<T extends Record<string, unknown>>(context: GridToolContext<T>, ids: string[]): GridToolResult<string[]>;
|
|
351
|
+
declare function selectRow<T extends Record<string, unknown>>(context: GridToolContext<T>, id: string): GridToolResult<string>;
|
|
352
|
+
declare function openRow<T extends Record<string, unknown>>(context: GridToolContext<T>, id: string): GridToolResult<string>;
|
|
353
|
+
|
|
349
354
|
interface IconProps extends React.SVGAttributes<SVGSVGElement> {
|
|
350
355
|
/** Size in pixels — applied to both width and height. Default: 20 */
|
|
351
356
|
size?: number | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuktishaalaa/yuktai",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.1",
|
|
4
4
|
"description": "Universal runtime accessibility plugin — auto-fixes WCAG 2.2 violations with on-device AI features. Zero API keys.",
|
|
5
5
|
"author": "Sandeep Miriyala — Yuktishaalaa AI Lab",
|
|
6
6
|
"license": "ISC",
|