@yuktishaalaa/yuktai 4.6.1 → 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 +7 -7
- package/dist/index.d.ts +7 -7
- 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
|
}
|
|
@@ -326,14 +326,14 @@ declare function useYuktaiGridAgent({ tools, onResult, onError, }: YuktaiGridAge
|
|
|
326
326
|
executeTool: (name: string, input?: Record<string, unknown>) => Promise<unknown>;
|
|
327
327
|
};
|
|
328
328
|
|
|
329
|
-
type
|
|
329
|
+
type GridToolColumn = {
|
|
330
330
|
key: string;
|
|
331
331
|
label: string;
|
|
332
332
|
type?: "text" | "number" | "date";
|
|
333
333
|
};
|
|
334
334
|
type GridToolContext<T> = {
|
|
335
335
|
data: T[];
|
|
336
|
-
columns:
|
|
336
|
+
columns: GridToolColumn[];
|
|
337
337
|
onSelectRow?: (id: string) => void;
|
|
338
338
|
onHighlightRows?: (ids: string[]) => void;
|
|
339
339
|
onOpenRow?: (id: string) => void;
|
|
@@ -345,7 +345,7 @@ type GridToolResult<T = unknown> = {
|
|
|
345
345
|
};
|
|
346
346
|
declare function searchGrid<T extends Record<string, unknown>>(context: GridToolContext<T>, query: string): GridToolResult<T[]>;
|
|
347
347
|
declare function countGrid<T>(context: GridToolContext<T>): GridToolResult<number>;
|
|
348
|
-
declare function getColumns<T>(context: GridToolContext<T>): GridToolResult<
|
|
348
|
+
declare function getColumns<T>(context: GridToolContext<T>): GridToolResult<GridToolColumn[]>;
|
|
349
349
|
declare function getRow<T extends Record<string, unknown>>(context: GridToolContext<T>, id: string): GridToolResult<T>;
|
|
350
350
|
declare function highlightRows<T extends Record<string, unknown>>(context: GridToolContext<T>, ids: string[]): GridToolResult<string[]>;
|
|
351
351
|
declare function selectRow<T extends Record<string, unknown>>(context: GridToolContext<T>, id: string): GridToolResult<string>;
|
|
@@ -416,4 +416,4 @@ declare const YuktAI: {
|
|
|
416
416
|
scan(): A11yReport;
|
|
417
417
|
};
|
|
418
418
|
|
|
419
|
-
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
|
}
|
|
@@ -326,14 +326,14 @@ declare function useYuktaiGridAgent({ tools, onResult, onError, }: YuktaiGridAge
|
|
|
326
326
|
executeTool: (name: string, input?: Record<string, unknown>) => Promise<unknown>;
|
|
327
327
|
};
|
|
328
328
|
|
|
329
|
-
type
|
|
329
|
+
type GridToolColumn = {
|
|
330
330
|
key: string;
|
|
331
331
|
label: string;
|
|
332
332
|
type?: "text" | "number" | "date";
|
|
333
333
|
};
|
|
334
334
|
type GridToolContext<T> = {
|
|
335
335
|
data: T[];
|
|
336
|
-
columns:
|
|
336
|
+
columns: GridToolColumn[];
|
|
337
337
|
onSelectRow?: (id: string) => void;
|
|
338
338
|
onHighlightRows?: (ids: string[]) => void;
|
|
339
339
|
onOpenRow?: (id: string) => void;
|
|
@@ -345,7 +345,7 @@ type GridToolResult<T = unknown> = {
|
|
|
345
345
|
};
|
|
346
346
|
declare function searchGrid<T extends Record<string, unknown>>(context: GridToolContext<T>, query: string): GridToolResult<T[]>;
|
|
347
347
|
declare function countGrid<T>(context: GridToolContext<T>): GridToolResult<number>;
|
|
348
|
-
declare function getColumns<T>(context: GridToolContext<T>): GridToolResult<
|
|
348
|
+
declare function getColumns<T>(context: GridToolContext<T>): GridToolResult<GridToolColumn[]>;
|
|
349
349
|
declare function getRow<T extends Record<string, unknown>>(context: GridToolContext<T>, id: string): GridToolResult<T>;
|
|
350
350
|
declare function highlightRows<T extends Record<string, unknown>>(context: GridToolContext<T>, ids: string[]): GridToolResult<string[]>;
|
|
351
351
|
declare function selectRow<T extends Record<string, unknown>>(context: GridToolContext<T>, id: string): GridToolResult<string>;
|
|
@@ -416,4 +416,4 @@ declare const YuktAI: {
|
|
|
416
416
|
scan(): A11yReport;
|
|
417
417
|
};
|
|
418
418
|
|
|
419
|
-
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",
|