@yuktishaalaa/yuktai 4.6.0 → 4.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.
- package/dist/index.d.mts +35 -30
- package/dist/index.d.ts +35 -30
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -125,7 +125,7 @@ interface YuktaiGridAIProps$1<T> {
|
|
|
125
125
|
}
|
|
126
126
|
declare function YuktaiGrid<T extends Record<string, unknown>>({ data, columns, onSearch, onSort, theme, language, }: YuktaiGridAIProps$1<T>): react_jsx_runtime.JSX.Element;
|
|
127
127
|
|
|
128
|
-
interface GridColumn
|
|
128
|
+
interface GridColumn<T = Record<string, unknown>> {
|
|
129
129
|
/** Unique key — must match a property in your data */
|
|
130
130
|
key: keyof T & string;
|
|
131
131
|
/** Display label for the header */
|
|
@@ -206,7 +206,7 @@ interface YuktaiGridProps<T = Record<string, unknown>> {
|
|
|
206
206
|
/** The data to display */
|
|
207
207
|
data: T[];
|
|
208
208
|
/** Column definitions */
|
|
209
|
-
columns: GridColumn
|
|
209
|
+
columns: GridColumn<T>[];
|
|
210
210
|
/** View mode — "auto" picks based on screen size */
|
|
211
211
|
view?: ViewMode;
|
|
212
212
|
/** Mobile breakpoint in pixels (default: 768) */
|
|
@@ -243,7 +243,7 @@ interface YuktaiGridProps<T = Record<string, unknown>> {
|
|
|
243
243
|
|
|
244
244
|
interface UseGridOptions<T> {
|
|
245
245
|
data: T[];
|
|
246
|
-
columns: GridColumn
|
|
246
|
+
columns: GridColumn<T>[];
|
|
247
247
|
pagination?: boolean | PaginationConfig;
|
|
248
248
|
mobileBreakpoint?: number;
|
|
249
249
|
}
|
|
@@ -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 GridToolColumn = {
|
|
330
|
+
key: string;
|
|
331
|
+
label: string;
|
|
332
|
+
type?: "text" | "number" | "date";
|
|
333
|
+
};
|
|
334
|
+
type GridToolContext<T> = {
|
|
335
|
+
data: T[];
|
|
336
|
+
columns: GridToolColumn[];
|
|
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<GridToolColumn[]>;
|
|
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;
|
|
@@ -411,4 +416,4 @@ declare const YuktAI: {
|
|
|
411
416
|
scan(): A11yReport;
|
|
412
417
|
};
|
|
413
418
|
|
|
414
|
-
export { type A11yConfig, type A11yFix, type A11yReport, type AIFeatures, CheckIcon, ChevronLeftIcon, ChevronRightIcon, CloseIcon, type ColorBlindMode, type FilterConfig, type FilterOperator, type GridAgentTool, type GridColumn
|
|
419
|
+
export { type A11yConfig, type A11yFix, type A11yReport, type AIFeatures, CheckIcon, ChevronLeftIcon, ChevronRightIcon, CloseIcon, type ColorBlindMode, type FilterConfig, type FilterOperator, type GridAgentTool, type GridColumn, type GridLocale, type GridTheme, type GridToolColumn, type GridToolContext, type GridToolResult, type GridTranslations, IconBase, type IconProps, type PaginationConfig, Runtime, SearchIcon, type Severity, type SortConfig, type SortDirection, SortDownIcon, SortUpIcon, type ViewMode, type VoiceFeatures, YuktAI, YuktAIWrapper, type YuktAIWrapperProps, YuktaiGrid, YuktaiGridAI, type YuktaiGridAIProps, useYuktaiGridAgent as YuktaiGridAgent, type YuktaiGridAgentProps, type YuktaiGridProps, YuktaiGridWebMCP, type YuktaiGridWebMCPProps, aiPlugin, countGrid, YuktAIWrapper as default, getColumns, getRow, highlightRows, openRow, searchGrid, selectRow, useGrid, useYuktaiGridAgent, voicePlugin, wcagPlugin as wcag, wcagPlugin };
|
package/dist/index.d.ts
CHANGED
|
@@ -125,7 +125,7 @@ interface YuktaiGridAIProps$1<T> {
|
|
|
125
125
|
}
|
|
126
126
|
declare function YuktaiGrid<T extends Record<string, unknown>>({ data, columns, onSearch, onSort, theme, language, }: YuktaiGridAIProps$1<T>): react_jsx_runtime.JSX.Element;
|
|
127
127
|
|
|
128
|
-
interface GridColumn
|
|
128
|
+
interface GridColumn<T = Record<string, unknown>> {
|
|
129
129
|
/** Unique key — must match a property in your data */
|
|
130
130
|
key: keyof T & string;
|
|
131
131
|
/** Display label for the header */
|
|
@@ -206,7 +206,7 @@ interface YuktaiGridProps<T = Record<string, unknown>> {
|
|
|
206
206
|
/** The data to display */
|
|
207
207
|
data: T[];
|
|
208
208
|
/** Column definitions */
|
|
209
|
-
columns: GridColumn
|
|
209
|
+
columns: GridColumn<T>[];
|
|
210
210
|
/** View mode — "auto" picks based on screen size */
|
|
211
211
|
view?: ViewMode;
|
|
212
212
|
/** Mobile breakpoint in pixels (default: 768) */
|
|
@@ -243,7 +243,7 @@ interface YuktaiGridProps<T = Record<string, unknown>> {
|
|
|
243
243
|
|
|
244
244
|
interface UseGridOptions<T> {
|
|
245
245
|
data: T[];
|
|
246
|
-
columns: GridColumn
|
|
246
|
+
columns: GridColumn<T>[];
|
|
247
247
|
pagination?: boolean | PaginationConfig;
|
|
248
248
|
mobileBreakpoint?: number;
|
|
249
249
|
}
|
|
@@ -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 GridToolColumn = {
|
|
330
|
+
key: string;
|
|
331
|
+
label: string;
|
|
332
|
+
type?: "text" | "number" | "date";
|
|
333
|
+
};
|
|
334
|
+
type GridToolContext<T> = {
|
|
335
|
+
data: T[];
|
|
336
|
+
columns: GridToolColumn[];
|
|
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<GridToolColumn[]>;
|
|
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;
|
|
@@ -411,4 +416,4 @@ declare const YuktAI: {
|
|
|
411
416
|
scan(): A11yReport;
|
|
412
417
|
};
|
|
413
418
|
|
|
414
|
-
export { type A11yConfig, type A11yFix, type A11yReport, type AIFeatures, CheckIcon, ChevronLeftIcon, ChevronRightIcon, CloseIcon, type ColorBlindMode, type FilterConfig, type FilterOperator, type GridAgentTool, type GridColumn
|
|
419
|
+
export { type A11yConfig, type A11yFix, type A11yReport, type AIFeatures, CheckIcon, ChevronLeftIcon, ChevronRightIcon, CloseIcon, type ColorBlindMode, type FilterConfig, type FilterOperator, type GridAgentTool, type GridColumn, type GridLocale, type GridTheme, type GridToolColumn, type GridToolContext, type GridToolResult, type GridTranslations, IconBase, type IconProps, type PaginationConfig, Runtime, SearchIcon, type Severity, type SortConfig, type SortDirection, SortDownIcon, SortUpIcon, type ViewMode, type VoiceFeatures, YuktAI, YuktAIWrapper, type YuktAIWrapperProps, YuktaiGrid, YuktaiGridAI, type YuktaiGridAIProps, useYuktaiGridAgent as YuktaiGridAgent, type YuktaiGridAgentProps, type YuktaiGridProps, YuktaiGridWebMCP, type YuktaiGridWebMCPProps, aiPlugin, countGrid, YuktAIWrapper as default, getColumns, getRow, highlightRows, openRow, searchGrid, selectRow, useGrid, useYuktaiGridAgent, voicePlugin, wcagPlugin as wcag, wcagPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuktishaalaa/yuktai",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.2",
|
|
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",
|