@yuktishaalaa/yuktai 4.3.0 → 4.4.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 CHANGED
@@ -111,20 +111,6 @@ declare const voicePlugin: {
111
111
  execute(input: string): Promise<string>;
112
112
  };
113
113
 
114
- interface YuktaiGridAIProps<T> {
115
- data: T[];
116
- columns: {
117
- key: string;
118
- label: string;
119
- type?: "number" | "text" | "date";
120
- }[];
121
- onSearch: (query: string) => void;
122
- onSort?: (key: string, dir: "asc" | "desc") => void;
123
- theme?: "light" | "dark";
124
- language?: "en-US" | "en-IN" | "hi-IN" | "te-IN";
125
- }
126
- declare function YuktaiGrid<T extends Record<string, unknown>>({ data, columns, onSearch, onSort, theme, language, }: YuktaiGridAIProps<T>): react_jsx_runtime.JSX.Element;
127
-
128
114
  interface GridColumn<T = Record<string, unknown>> {
129
115
  /** Unique key — must match a property in your data */
130
116
  key: keyof T & string;
@@ -233,6 +219,13 @@ interface YuktaiGridProps<T = Record<string, unknown>> {
233
219
  loading?: boolean;
234
220
  /** Custom empty state */
235
221
  empty?: ReactNode;
222
+ /** ───── v4.2.0 — Ask & Highlight ───── */
223
+ /** Row IDs to highlight (glow yellow). Used by "Ask & Highlight" AI feature. */
224
+ highlightIds?: (string | number)[];
225
+ /** Highlight background color (default: soft yellow) */
226
+ highlightColor?: string;
227
+ /** Auto-scroll to first highlighted row (default: true) */
228
+ autoScrollToHighlight?: boolean;
236
229
  /** Callbacks */
237
230
  onSelectionChange?: (keys: string[]) => void;
238
231
  onRowClick?: (row: T, index: number) => void;
@@ -241,6 +234,8 @@ interface YuktaiGridProps<T = Record<string, unknown>> {
241
234
  className?: string;
242
235
  }
243
236
 
237
+ declare function YuktaiGrid<T extends Record<string, unknown>>(props: YuktaiGridProps<T>): react_jsx_runtime.JSX.Element;
238
+
244
239
  interface UseGridOptions<T> {
245
240
  data: T[];
246
241
  columns: GridColumn<T>[];
@@ -266,6 +261,19 @@ interface UseGridReturn<T> {
266
261
  }
267
262
  declare function useGrid<T extends Record<string, unknown>>(options: UseGridOptions<T>): UseGridReturn<T>;
268
263
 
264
+ interface YuktaiGridAIProps<T> {
265
+ data: T[];
266
+ columns: {
267
+ key: string;
268
+ label: string;
269
+ type?: "number" | "text" | "date";
270
+ }[];
271
+ onSearch: (query: string) => void;
272
+ onSort?: (key: string, dir: "asc" | "desc") => void;
273
+ theme?: "light" | "dark";
274
+ language?: "en-US" | "en-IN" | "hi-IN" | "te-IN";
275
+ }
276
+
269
277
  interface IconProps extends React.SVGAttributes<SVGSVGElement> {
270
278
  /** Size in pixels — applied to both width and height. Default: 20 */
271
279
  size?: number | string;
@@ -331,4 +339,4 @@ declare const YuktAI: {
331
339
  scan(): A11yReport;
332
340
  };
333
341
 
334
- export { type A11yConfig, type A11yFix, type A11yReport, type AIFeatures, CheckIcon, ChevronLeftIcon, ChevronRightIcon, CloseIcon, type ColorBlindMode, type FilterConfig, type FilterOperator, type GridColumn, type GridLocale, type GridTheme, 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, type YuktaiGridProps, aiPlugin, YuktAIWrapper as default, useGrid, voicePlugin, wcagPlugin as wcag, wcagPlugin };
342
+ export { type A11yConfig, type A11yFix, type A11yReport, type AIFeatures, CheckIcon, ChevronLeftIcon, ChevronRightIcon, CloseIcon, type ColorBlindMode, type FilterConfig, type FilterOperator, type GridColumn, type GridLocale, type GridTheme, 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, type YuktaiGridAIProps, type YuktaiGridProps, aiPlugin, YuktAIWrapper as default, useGrid, voicePlugin, wcagPlugin as wcag, wcagPlugin };
package/dist/index.d.ts CHANGED
@@ -111,20 +111,6 @@ declare const voicePlugin: {
111
111
  execute(input: string): Promise<string>;
112
112
  };
113
113
 
114
- interface YuktaiGridAIProps<T> {
115
- data: T[];
116
- columns: {
117
- key: string;
118
- label: string;
119
- type?: "number" | "text" | "date";
120
- }[];
121
- onSearch: (query: string) => void;
122
- onSort?: (key: string, dir: "asc" | "desc") => void;
123
- theme?: "light" | "dark";
124
- language?: "en-US" | "en-IN" | "hi-IN" | "te-IN";
125
- }
126
- declare function YuktaiGrid<T extends Record<string, unknown>>({ data, columns, onSearch, onSort, theme, language, }: YuktaiGridAIProps<T>): react_jsx_runtime.JSX.Element;
127
-
128
114
  interface GridColumn<T = Record<string, unknown>> {
129
115
  /** Unique key — must match a property in your data */
130
116
  key: keyof T & string;
@@ -233,6 +219,13 @@ interface YuktaiGridProps<T = Record<string, unknown>> {
233
219
  loading?: boolean;
234
220
  /** Custom empty state */
235
221
  empty?: ReactNode;
222
+ /** ───── v4.2.0 — Ask & Highlight ───── */
223
+ /** Row IDs to highlight (glow yellow). Used by "Ask & Highlight" AI feature. */
224
+ highlightIds?: (string | number)[];
225
+ /** Highlight background color (default: soft yellow) */
226
+ highlightColor?: string;
227
+ /** Auto-scroll to first highlighted row (default: true) */
228
+ autoScrollToHighlight?: boolean;
236
229
  /** Callbacks */
237
230
  onSelectionChange?: (keys: string[]) => void;
238
231
  onRowClick?: (row: T, index: number) => void;
@@ -241,6 +234,8 @@ interface YuktaiGridProps<T = Record<string, unknown>> {
241
234
  className?: string;
242
235
  }
243
236
 
237
+ declare function YuktaiGrid<T extends Record<string, unknown>>(props: YuktaiGridProps<T>): react_jsx_runtime.JSX.Element;
238
+
244
239
  interface UseGridOptions<T> {
245
240
  data: T[];
246
241
  columns: GridColumn<T>[];
@@ -266,6 +261,19 @@ interface UseGridReturn<T> {
266
261
  }
267
262
  declare function useGrid<T extends Record<string, unknown>>(options: UseGridOptions<T>): UseGridReturn<T>;
268
263
 
264
+ interface YuktaiGridAIProps<T> {
265
+ data: T[];
266
+ columns: {
267
+ key: string;
268
+ label: string;
269
+ type?: "number" | "text" | "date";
270
+ }[];
271
+ onSearch: (query: string) => void;
272
+ onSort?: (key: string, dir: "asc" | "desc") => void;
273
+ theme?: "light" | "dark";
274
+ language?: "en-US" | "en-IN" | "hi-IN" | "te-IN";
275
+ }
276
+
269
277
  interface IconProps extends React.SVGAttributes<SVGSVGElement> {
270
278
  /** Size in pixels — applied to both width and height. Default: 20 */
271
279
  size?: number | string;
@@ -331,4 +339,4 @@ declare const YuktAI: {
331
339
  scan(): A11yReport;
332
340
  };
333
341
 
334
- export { type A11yConfig, type A11yFix, type A11yReport, type AIFeatures, CheckIcon, ChevronLeftIcon, ChevronRightIcon, CloseIcon, type ColorBlindMode, type FilterConfig, type FilterOperator, type GridColumn, type GridLocale, type GridTheme, 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, type YuktaiGridProps, aiPlugin, YuktAIWrapper as default, useGrid, voicePlugin, wcagPlugin as wcag, wcagPlugin };
342
+ export { type A11yConfig, type A11yFix, type A11yReport, type AIFeatures, CheckIcon, ChevronLeftIcon, ChevronRightIcon, CloseIcon, type ColorBlindMode, type FilterConfig, type FilterOperator, type GridColumn, type GridLocale, type GridTheme, 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, type YuktaiGridAIProps, type YuktaiGridProps, aiPlugin, YuktAIWrapper as default, useGrid, voicePlugin, wcagPlugin as wcag, wcagPlugin };