@yuktishaalaa/yuktai 4.4.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$1<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$1<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>[];
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$1<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$1<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>[];