@datarecce/ui 0.1.20 → 0.1.22

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.
Files changed (82) hide show
  1. package/dist/RecceCheckContext-BETsmiD5.mjs +228 -0
  2. package/dist/RecceCheckContext-BETsmiD5.mjs.map +1 -0
  3. package/dist/RecceCheckContext-DNKi97uE.js +302 -0
  4. package/dist/RecceCheckContext-DNKi97uE.js.map +1 -0
  5. package/dist/api.d.mts +2 -102
  6. package/dist/api.d.ts +2 -102
  7. package/dist/api.js +82 -494
  8. package/dist/api.js.map +1 -1
  9. package/dist/api.mjs +29 -435
  10. package/dist/api.mjs.map +1 -1
  11. package/dist/components-C735_oqD.mjs +10438 -0
  12. package/dist/components-C735_oqD.mjs.map +1 -0
  13. package/dist/{styles-JV3V5MVO.css → components-D2DRqJsz.css} +28 -0
  14. package/dist/components-D2DRqJsz.css.map +1 -0
  15. package/dist/components-DeA4kqxK.js +12763 -0
  16. package/dist/components-DeA4kqxK.js.map +1 -0
  17. package/dist/components-dVXbmdqd.css +70 -0
  18. package/dist/components-dVXbmdqd.css.map +1 -0
  19. package/dist/components.d.mts +2 -471
  20. package/dist/components.d.ts +2 -471
  21. package/dist/components.js +81 -27392
  22. package/dist/components.mjs +8 -27250
  23. package/dist/hooks-Ba-AoxcK.mjs +34 -0
  24. package/dist/hooks-Ba-AoxcK.mjs.map +1 -0
  25. package/dist/hooks-D6xvNXEc.js +40 -0
  26. package/dist/hooks-D6xvNXEc.js.map +1 -0
  27. package/dist/hooks.d.mts +2 -296
  28. package/dist/hooks.d.ts +2 -296
  29. package/dist/hooks.js +33 -7583
  30. package/dist/hooks.mjs +6 -7521
  31. package/dist/html2canvas-pro.esm-BR5xeFe-.mjs +7249 -0
  32. package/dist/html2canvas-pro.esm-BR5xeFe-.mjs.map +1 -0
  33. package/dist/html2canvas-pro.esm-CVOsBdk0.js +7250 -0
  34. package/dist/html2canvas-pro.esm-CVOsBdk0.js.map +1 -0
  35. package/dist/index-DYduBYD8.d.ts +1807 -0
  36. package/dist/index-DYduBYD8.d.ts.map +1 -0
  37. package/dist/index-Sj_wOmNH.d.mts +1809 -0
  38. package/dist/index-Sj_wOmNH.d.mts.map +1 -0
  39. package/dist/index.d.mts +2 -29
  40. package/dist/index.d.ts +2 -29
  41. package/dist/index.js +173 -28784
  42. package/dist/index.js.map +1 -1
  43. package/dist/index.mjs +16 -28555
  44. package/dist/index.mjs.map +1 -1
  45. package/dist/state-BjKRZMwY.js +9158 -0
  46. package/dist/state-BjKRZMwY.js.map +1 -0
  47. package/dist/state-BySLlIE7.mjs +8198 -0
  48. package/dist/state-BySLlIE7.mjs.map +1 -0
  49. package/dist/{style-466WWZLM.css → state-IA7HWYOs.css} +81 -0
  50. package/dist/state-IA7HWYOs.css.map +1 -0
  51. package/dist/state-eEsMhIy4.css +215 -0
  52. package/dist/state-eEsMhIy4.css.map +1 -0
  53. package/dist/tooltipMessage-CrXjOmVM.mjs +7 -0
  54. package/dist/tooltipMessage-CrXjOmVM.mjs.map +1 -0
  55. package/dist/tooltipMessage-Dbi1kkfi.js +13 -0
  56. package/dist/tooltipMessage-Dbi1kkfi.js.map +1 -0
  57. package/dist/types.d.mts +2 -32
  58. package/dist/types.d.ts +2 -32
  59. package/dist/types.js +8 -24
  60. package/dist/types.mjs +4 -18
  61. package/dist/urls-D7PrPolY.mjs +16 -0
  62. package/dist/urls-D7PrPolY.mjs.map +1 -0
  63. package/dist/urls-SazAekCZ.js +34 -0
  64. package/dist/urls-SazAekCZ.js.map +1 -0
  65. package/dist/user-BHOgMaBf.mjs +65 -0
  66. package/dist/user-BHOgMaBf.mjs.map +1 -0
  67. package/dist/user-Dt_n5IJX.js +107 -0
  68. package/dist/user-Dt_n5IJX.js.map +1 -0
  69. package/package.json +11 -11
  70. package/dist/LineageViewContext-DEa54ZNF.d.mts +0 -103
  71. package/dist/LineageViewContext-DPVC8ak8.d.ts +0 -103
  72. package/dist/agGridStyles-VYALGSJU.css +0 -55
  73. package/dist/components.js.map +0 -1
  74. package/dist/components.mjs.map +0 -1
  75. package/dist/hooks.js.map +0 -1
  76. package/dist/hooks.mjs.map +0 -1
  77. package/dist/lineagecheck-BQaKAQzn.d.mts +0 -597
  78. package/dist/lineagecheck-BQaKAQzn.d.ts +0 -597
  79. package/dist/styles-QUPOR3LM.css +0 -24
  80. package/dist/styles-TU5BYTIL.css +0 -21
  81. package/dist/types.js.map +0 -1
  82. package/dist/types.mjs.map +0 -1
@@ -0,0 +1,1809 @@
1
+
2
+ import * as React$2 from "react";
3
+ import React$1, { CSSProperties, ComponentType, Dispatch, ForwardRefExoticComponent, ReactNode, Ref, RefAttributes, SetStateAction } from "react";
4
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
5
+ import { BoxProps } from "@mui/material/Box";
6
+ import { FallbackRender } from "@sentry/react";
7
+ import { SplitProps } from "react-split";
8
+ import { Edge, EdgeProps, Node, NodeProps } from "@xyflow/react";
9
+ import * as axios0 from "axios";
10
+ import { AxiosInstance, AxiosResponse } from "axios";
11
+ import * as _tanstack_react_query0 from "@tanstack/react-query";
12
+ import { QueryClient } from "@tanstack/react-query";
13
+ import "@xyflow/react/dist/style.css";
14
+ import { IconType } from "react-icons";
15
+ import { ColDef, ColGroupDef, GridReadyEvent } from "ag-grid-community";
16
+ import { AgGridReactProps } from "ag-grid-react";
17
+ import { AnimationOptions } from "chart.js";
18
+ import "simplebar/dist/simplebar.min.css";
19
+
20
+ //#region recce-source/js/src/lib/api/axiosClient.d.ts
21
+ declare const axiosClient: axios0.AxiosInstance;
22
+ declare const reactQueryClient: QueryClient;
23
+ //#endregion
24
+ //#region recce-source/js/src/components/ui/mui-provider.d.ts
25
+ interface MuiProviderProps {
26
+ children: ReactNode;
27
+ /**
28
+ * Force a specific theme mode. If not provided, follows system/user preference.
29
+ */
30
+ forcedTheme?: "light" | "dark";
31
+ /**
32
+ * Whether to include MUI's CssBaseline for consistent baseline styles.
33
+ * Disabled by default to avoid conflicts with Chakra/Tailwind during migration.
34
+ */
35
+ enableCssBaseline?: boolean;
36
+ }
37
+ /**
38
+ * MUI Theme Provider for Recce
39
+ *
40
+ * This provider integrates MUI theming with the existing next-themes
41
+ * color mode system used by Chakra UI. During the migration period,
42
+ * both Chakra and MUI components will share the same theme mode.
43
+ *
44
+ * Usage:
45
+ * ```tsx
46
+ * <MuiProvider>
47
+ * <MuiButton>Click me</MuiButton>
48
+ * </MuiProvider>
49
+ * ```
50
+ */
51
+ declare function MuiProvider({
52
+ children,
53
+ forcedTheme,
54
+ enableCssBaseline
55
+ }: MuiProviderProps): react_jsx_runtime5.JSX.Element;
56
+ //#endregion
57
+ //#region recce-source/js/src/components/ui/toaster.d.ts
58
+ /**
59
+ * Toast types and interfaces
60
+ */
61
+ interface ToastOptions {
62
+ id?: string;
63
+ title?: string;
64
+ description?: ReactNode;
65
+ type?: "success" | "error" | "warning" | "info" | "loading";
66
+ duration?: number;
67
+ closable?: boolean;
68
+ action?: {
69
+ label: string;
70
+ onClick: () => void;
71
+ };
72
+ }
73
+ interface ToasterContextValue {
74
+ toast: (options: ToastOptions) => string;
75
+ success: (options: Omit<ToastOptions, "type">) => string;
76
+ error: (options: Omit<ToastOptions, "type">) => string;
77
+ warning: (options: Omit<ToastOptions, "type">) => string;
78
+ info: (options: Omit<ToastOptions, "type">) => string;
79
+ loading: (options: Omit<ToastOptions, "type">) => string;
80
+ dismiss: (id: string) => void;
81
+ update: (id: string, options: Partial<ToastOptions>) => void;
82
+ }
83
+ /**
84
+ * Simple toaster implementation using MUI Snackbar
85
+ */
86
+ declare function ToasterProvider({
87
+ children
88
+ }: {
89
+ children: ReactNode;
90
+ }): react_jsx_runtime5.JSX.Element;
91
+ /**
92
+ * Hook to use the toaster
93
+ */
94
+ declare function useToaster(): ToasterContextValue;
95
+ /**
96
+ * Toaster component that renders toasts from the standalone toaster
97
+ */
98
+ declare function Toaster(): react_jsx_runtime5.JSX.Element;
99
+ //#endregion
100
+ //#region recce-source/js/src/components/errorboundary/ErrorBoundary.d.ts
101
+ declare const ErrorBoundary$1: ({
102
+ children,
103
+ fallback
104
+ }: {
105
+ children: ReactNode;
106
+ fallback?: React$2.ReactElement | FallbackRender | undefined;
107
+ }) => react_jsx_runtime5.JSX.Element;
108
+ //#endregion
109
+ //#region recce-source/js/src/components/split/Split.d.ts
110
+ declare const HSplit: (props: SplitProps) => react_jsx_runtime5.JSX.Element;
111
+ declare const VSplit: (props: SplitProps) => react_jsx_runtime5.JSX.Element;
112
+ //#endregion
113
+ //#region recce-source/js/src/components/screenshot/ScreenshotBox.d.ts
114
+ interface ScreenshotBoxProps extends BoxProps {
115
+ backgroundColor?: string;
116
+ blockSize?: string;
117
+ children?: React.ReactNode;
118
+ }
119
+ declare const ScreenshotBox: React$2.ForwardRefExoticComponent<Omit<ScreenshotBoxProps, "ref"> & React$2.RefAttributes<HTMLDivElement>>;
120
+ //#endregion
121
+ //#region recce-source/js/src/components/lineage/LineagePage.d.ts
122
+ declare function LineagePage(): react_jsx_runtime5.JSX.Element;
123
+ //#endregion
124
+ //#region recce-source/js/src/lib/api/info.d.ts
125
+ /**
126
+ * The data from the API
127
+ */
128
+ interface NodeColumnData {
129
+ name: string;
130
+ type: string;
131
+ transformation_type?: string;
132
+ change_status?: "added" | "removed" | "modified";
133
+ not_null?: boolean;
134
+ unique?: boolean;
135
+ }
136
+ interface NodeData {
137
+ id: string;
138
+ unique_id: string;
139
+ name: string;
140
+ schema?: string;
141
+ checksum?: {
142
+ name: string;
143
+ checksum: string;
144
+ };
145
+ raw_code?: string;
146
+ resource_type?: string;
147
+ package_name?: string;
148
+ columns?: Record<string, NodeColumnData | undefined>;
149
+ primary_key?: string;
150
+ }
151
+ interface ArtifactMetadata {
152
+ dbt_version: string;
153
+ dbt_schema_version: string;
154
+ generated_at: string;
155
+ adapter_type: string;
156
+ env: Record<string, string>;
157
+ invocation_id: string;
158
+ }
159
+ interface ManifestMetadata extends ArtifactMetadata {
160
+ project_id?: string;
161
+ project_name?: string;
162
+ user_id?: string;
163
+ }
164
+ interface SQLMeshInfo {
165
+ base_env: string;
166
+ current_env: string;
167
+ }
168
+ type CatalogMetadata = ArtifactMetadata;
169
+ interface LineageData {
170
+ metadata: {
171
+ pr_url: string;
172
+ git_branch?: string;
173
+ };
174
+ nodes: Record<string, NodeData>;
175
+ parent_map: Record<string, string[]>;
176
+ manifest_metadata?: ManifestMetadata | null;
177
+ catalog_metadata?: CatalogMetadata | null;
178
+ }
179
+ interface LineageDataFromMetadata extends Omit<LineageData, "nodes"> {
180
+ nodes: Record<string, NodeData | undefined>;
181
+ }
182
+ type LineageDiffData = Record<string, {
183
+ change_status: "added" | "removed" | "modified";
184
+ change: {
185
+ category: "breaking" | "non_breaking" | "partial_breaking" | "unknown";
186
+ columns: Record<string, "added" | "removed" | "modified"> | null;
187
+ } | null;
188
+ }>;
189
+ interface LineageOutput {
190
+ error?: string;
191
+ data?: LineageData;
192
+ }
193
+ declare function getLineage(base?: boolean): Promise<LineageData>;
194
+ declare function getLineageWithError(base?: boolean): Promise<LineageOutput>;
195
+ interface LineageDiffResult {
196
+ base?: LineageData;
197
+ current?: LineageData;
198
+ base_error?: string;
199
+ current_error?: string;
200
+ }
201
+ declare function getLineageDiff(): Promise<LineageDiffResult>;
202
+ interface stateMetadata {
203
+ schema_version: string;
204
+ recce_version: string;
205
+ generated_at: string;
206
+ }
207
+ interface gitInfo {
208
+ branch?: string;
209
+ }
210
+ interface pullRequestInfo {
211
+ id?: string | number;
212
+ title?: string;
213
+ url?: string;
214
+ branch?: string;
215
+ base_branch?: string;
216
+ }
217
+ interface ServerInfoResult {
218
+ state_metadata: stateMetadata;
219
+ adapter_type: string;
220
+ review_mode: boolean;
221
+ cloud_mode: boolean;
222
+ file_mode: boolean;
223
+ filename?: string;
224
+ git?: gitInfo;
225
+ pull_request?: pullRequestInfo;
226
+ sqlmesh?: SQLMeshInfo;
227
+ lineage: {
228
+ base: LineageData;
229
+ current: LineageData;
230
+ diff: LineageDiffData;
231
+ };
232
+ demo: boolean;
233
+ codespace: boolean;
234
+ support_tasks: Record<string, boolean>;
235
+ }
236
+ declare function getServerInfo(client?: AxiosInstance): Promise<ServerInfoResult>;
237
+ interface ModelInfoResult {
238
+ model: {
239
+ base: {
240
+ columns?: Record<string, NodeColumnData>;
241
+ primary_key?: string;
242
+ };
243
+ current: {
244
+ columns?: Record<string, NodeColumnData>;
245
+ primary_key?: string;
246
+ };
247
+ };
248
+ }
249
+ declare function getModelInfo(model: string): Promise<ModelInfoResult>;
250
+ //#endregion
251
+ //#region recce-source/js/src/lib/api/cll.d.ts
252
+ interface CllInput {
253
+ node_id?: string;
254
+ column?: string;
255
+ change_analysis?: boolean;
256
+ no_cll?: boolean;
257
+ no_upstream?: boolean;
258
+ no_downstream?: boolean;
259
+ }
260
+ interface ImpactRadiusParams {
261
+ node_id: string;
262
+ }
263
+ interface CllNodeData {
264
+ id: string;
265
+ name: string;
266
+ source_name: string;
267
+ resource_type: string;
268
+ raw_code?: string;
269
+ change_status?: "added" | "removed" | "modified";
270
+ change_category?: "breaking" | "non_breaking" | "partial_breaking" | "unknown";
271
+ impacted?: boolean;
272
+ columns?: Record<string, NodeColumnData>;
273
+ }
274
+ interface ColumnLineageData {
275
+ current: {
276
+ nodes: Record<string, CllNodeData>;
277
+ columns: Record<string, NodeColumnData>;
278
+ parent_map: Record<string, Set<string>>;
279
+ child_map: Record<string, Set<string>>;
280
+ };
281
+ }
282
+ declare function getCll(input: CllInput): Promise<ColumnLineageData>;
283
+ //#endregion
284
+ //#region recce-source/js/src/components/lineage/lineage.d.ts
285
+ /**
286
+ * The types for internal data structures.
287
+ */
288
+ type LineageFrom = "both" | "base" | "current";
289
+ type LineageGraphNode = Node<{
290
+ id: string;
291
+ name: string;
292
+ from: LineageFrom;
293
+ data: {
294
+ base?: NodeData;
295
+ current?: NodeData;
296
+ };
297
+ changeStatus?: "added" | "removed" | "modified";
298
+ change?: {
299
+ category: "breaking" | "non_breaking" | "partial_breaking" | "unknown";
300
+ columns: Record<string, "added" | "removed" | "modified"> | null;
301
+ };
302
+ resourceType?: string;
303
+ packageName?: string;
304
+ parents: Record<string, LineageGraphEdge>;
305
+ children: Record<string, LineageGraphEdge>;
306
+ }, "lineageGraphNode">;
307
+ type LineageGraphColumnNode = Node<{
308
+ node: LineageGraphNode["data"];
309
+ column: string;
310
+ type: string;
311
+ transformationType?: string;
312
+ changeStatus?: "added" | "removed" | "modified";
313
+ }, "lineageGraphColumnNode">;
314
+ type LineageGraphEdge = Edge<{
315
+ from: LineageFrom;
316
+ changeStatus?: "added" | "removed";
317
+ }, "lineageGraphEdge">;
318
+ type LineageGraphNodes = LineageGraphNode | LineageGraphColumnNode;
319
+ interface LineageGraph {
320
+ nodes: Record<string, LineageGraphNode>;
321
+ edges: Record<string, LineageGraphEdge>;
322
+ modifiedSet: string[];
323
+ manifestMetadata: {
324
+ base?: ManifestMetadata;
325
+ current?: ManifestMetadata;
326
+ };
327
+ catalogMetadata: {
328
+ base?: CatalogMetadata;
329
+ current?: CatalogMetadata;
330
+ };
331
+ }
332
+ //#endregion
333
+ //#region recce-source/js/src/lib/api/runs.d.ts
334
+ interface SubmitRunTrackProps {
335
+ breaking_change_analysis?: boolean;
336
+ source?: "lineage_model_node" | "lineage_column_node";
337
+ [key: string]: unknown;
338
+ }
339
+ interface SubmitOptions {
340
+ nowait?: boolean;
341
+ trackProps?: SubmitRunTrackProps;
342
+ }
343
+ declare function submitRun(type: RunType, params?: RunParamTypes, options?: SubmitOptions): Promise<Run | Pick<Run, "run_id">>;
344
+ declare function getRun(runId: string): Promise<Run>;
345
+ declare function waitRun(runId: string, timeout?: number): Promise<Run>;
346
+ declare function cancelRun(runId: string): Promise<AxiosResponse<never, any, {}>>;
347
+ declare function submitRunFromCheck(checkId: string, options?: SubmitOptions): Promise<Run | Pick<Run, "run_id">>;
348
+ declare function searchRuns(type: string, params?: AxiosQueryParams, limit?: number): Promise<Run[]>;
349
+ declare function listRuns(): Promise<Run[]>;
350
+ type RunsAggregated = Record<string, Record<"row_count_diff" | "value_diff" | "row_count", {
351
+ run_id: string;
352
+ result: unknown;
353
+ }>>;
354
+ declare function aggregateRuns(client?: AxiosInstance): Promise<RunsAggregated>;
355
+ //#endregion
356
+ //#region recce-source/js/src/lib/api/profile.d.ts
357
+ interface ProfileDiffParams {
358
+ model: string;
359
+ columns?: string[];
360
+ }
361
+ interface ProfileDiffResult {
362
+ base?: DataFrame;
363
+ current?: DataFrame;
364
+ }
365
+ interface ProfileDiffViewOptions {
366
+ pinned_columns?: string[];
367
+ display_mode?: "side_by_side" | "inline";
368
+ columnsRenderMode?: Record<string, ColumnRenderMode>;
369
+ }
370
+ declare function submitProfileDiff(params: ProfileDiffParams, options?: SubmitOptions): Promise<Run | Pick<Run, "run_id">>;
371
+ interface TopKDiffParams {
372
+ model: string;
373
+ column_name: string;
374
+ k: number;
375
+ }
376
+ interface TopKResult {
377
+ values: (string | number | undefined)[];
378
+ counts: number[];
379
+ valids: number;
380
+ }
381
+ interface TopKDiffResult {
382
+ base: TopKResult;
383
+ current: TopKResult;
384
+ }
385
+ interface HistogramDiffParams {
386
+ model: string;
387
+ column_name: string;
388
+ column_type: string;
389
+ }
390
+ interface HistogramResult {
391
+ counts: number[];
392
+ total: number;
393
+ }
394
+ interface HistogramDiffResult {
395
+ base: HistogramResult;
396
+ current: HistogramResult;
397
+ min: number;
398
+ max: number;
399
+ bin_edges: number[];
400
+ labels?: string[];
401
+ }
402
+ //#endregion
403
+ //#region recce-source/js/src/lib/api/models.d.ts
404
+ interface RowCount {
405
+ name?: string;
406
+ curr: number | null;
407
+ }
408
+ interface RowCountDiff {
409
+ name?: string;
410
+ base: number | null;
411
+ curr: number | null;
412
+ }
413
+ interface QueryRowCountResult {
414
+ runId: string;
415
+ result: RowCountDiffResult;
416
+ }
417
+ declare function fetchModelRowCount(modelName: string): Promise<RowCountDiff>;
418
+ declare function queryModelRowCount(modelName: string): Promise<RowCountDiff>;
419
+ declare function queryRowCount(modelNames: string[]): Promise<QueryRowCountResult>;
420
+ //#endregion
421
+ //#region recce-source/js/src/lib/api/rowcount.d.ts
422
+ interface RowCountParams {
423
+ node_names: string[];
424
+ }
425
+ type RowCountResult = Record<string, RowCount>;
426
+ interface RowCountDiffParams {
427
+ node_names: string[];
428
+ }
429
+ type RowCountDiffResult = Record<string, RowCountDiff>;
430
+ declare function submitRowCountDiff(params: RowCountDiffParams, options?: SubmitOptions): Promise<Run | Pick<Run, "run_id">>;
431
+ //#endregion
432
+ //#region recce-source/js/src/lib/api/valuediff.d.ts
433
+ interface ValueDiffResult {
434
+ summary: {
435
+ total: number;
436
+ added: number;
437
+ removed: number;
438
+ };
439
+ data: DataFrame;
440
+ }
441
+ interface ValueDiffParams {
442
+ model: string;
443
+ primary_key: string | string[];
444
+ columns?: string[];
445
+ }
446
+ declare function submitValueDiff(params: ValueDiffParams, options?: SubmitOptions): Promise<Run | Pick<Run, "run_id">>;
447
+ type ValueDiffDetailResult = DataFrame;
448
+ type ValueDiffDetailParams = ValueDiffParams;
449
+ interface ValueDiffDetailViewOptions {
450
+ changed_only?: boolean;
451
+ pinned_columns?: string[];
452
+ display_mode?: "inline" | "side_by_side";
453
+ columnsRenderMode?: Record<string, ColumnRenderMode>;
454
+ }
455
+ declare function submitValueDiffDetail(params: ValueDiffParams, options?: SubmitOptions): Promise<Run | Pick<Run, "run_id">>;
456
+ //#endregion
457
+ //#region recce-source/js/src/lib/api/types.d.ts
458
+ type AxiosQueryParams = Record<string, string | string[] | number | number[] | undefined>;
459
+ type RowDataTypes = number | string | boolean | null | undefined;
460
+ type RowData = RowDataTypes[];
461
+ type RowObjectType = Record<string, RowDataTypes> & {
462
+ __status: "added" | "removed" | "modified" | undefined;
463
+ _index?: number;
464
+ };
465
+ type ColumnType = "number" | "integer" | "text" | "boolean" | "date" | "datetime" | "timedelta" | "unknown";
466
+ type ColumnRenderMode = "raw" | "percent" | "delta" | 2;
467
+ interface DataFrame {
468
+ columns: {
469
+ key: string;
470
+ name: string;
471
+ type: ColumnType;
472
+ }[];
473
+ data: RowData[];
474
+ limit?: number;
475
+ more?: boolean;
476
+ }
477
+ interface SchemaDiffParams {
478
+ node_id?: string | string[];
479
+ select?: string;
480
+ exclude?: string;
481
+ packages?: string[];
482
+ view_mode?: "all" | "changed_models";
483
+ }
484
+ interface LineageDiffParams {
485
+ select?: string;
486
+ exclude?: string;
487
+ packages?: string[];
488
+ view_mode?: "all" | "changed_models";
489
+ }
490
+ type RunParamTypes = QueryRunParams | QueryDiffParams | ValueDiffParams | SchemaDiffParams | ProfileDiffParams | RowCountParams | RowCountDiffParams | LineageDiffParams | TopKDiffParams | HistogramDiffParams | undefined;
491
+ interface BaseRun {
492
+ type: RunType;
493
+ run_id: string;
494
+ run_at: string;
495
+ name?: string;
496
+ check_id?: string;
497
+ progress?: {
498
+ message?: string;
499
+ percentage?: number;
500
+ };
501
+ error?: string;
502
+ status?: "finished" | "failed" | "cancelled" | "running";
503
+ }
504
+ type Run = (BaseRun & {
505
+ type: "simple";
506
+ params?: undefined;
507
+ result?: undefined;
508
+ }) | (BaseRun & {
509
+ type: "sandbox";
510
+ params?: undefined;
511
+ result?: undefined;
512
+ }) | (BaseRun & {
513
+ type: "query";
514
+ params?: QueryRunParams;
515
+ result?: QueryResult;
516
+ }) | (BaseRun & {
517
+ type: "query_base";
518
+ params?: QueryRunParams;
519
+ result?: QueryResult;
520
+ }) | (BaseRun & {
521
+ type: "query_diff";
522
+ params?: QueryDiffParams;
523
+ result?: QueryDiffResult;
524
+ }) | (BaseRun & {
525
+ type: "value_diff";
526
+ params?: ValueDiffParams;
527
+ result?: ValueDiffResult;
528
+ }) | (BaseRun & {
529
+ type: "value_diff_detail";
530
+ params?: ValueDiffDetailParams;
531
+ result?: ValueDiffDetailResult;
532
+ }) | (BaseRun & {
533
+ type: "schema_diff";
534
+ params?: SchemaDiffParams;
535
+ result?: undefined;
536
+ }) | (BaseRun & {
537
+ type: "profile";
538
+ params?: ProfileDiffParams;
539
+ result?: ProfileDiffResult;
540
+ }) | (BaseRun & {
541
+ type: "profile_diff";
542
+ params?: ProfileDiffParams;
543
+ result?: ProfileDiffResult;
544
+ }) | (BaseRun & {
545
+ type: "row_count";
546
+ params?: RowCountParams;
547
+ result?: RowCountResult;
548
+ }) | (BaseRun & {
549
+ type: "row_count_diff";
550
+ params?: RowCountDiffParams;
551
+ result?: RowCountDiffResult;
552
+ }) | (BaseRun & {
553
+ type: "lineage_diff";
554
+ params?: LineageDiffParams;
555
+ result?: LineageDiffResult;
556
+ }) | (BaseRun & {
557
+ type: "top_k_diff";
558
+ params?: TopKDiffParams;
559
+ result?: TopKDiffResult;
560
+ }) | (BaseRun & {
561
+ type: "histogram_diff";
562
+ params?: HistogramDiffParams;
563
+ result?: HistogramDiffResult;
564
+ });
565
+ declare function isSimpleRun(run: Run): run is Extract<Run, {
566
+ type: "simple";
567
+ }>;
568
+ declare function isQueryRun(run: Run): run is Extract<Run, {
569
+ type: "query";
570
+ }>;
571
+ declare function isQueryBaseRun(run: Run): run is Extract<Run, {
572
+ type: "query_base";
573
+ }>;
574
+ declare function isQueryDiffRun(run: Run): run is Extract<Run, {
575
+ type: "query_diff";
576
+ }>;
577
+ declare function isValueDiffRun(run: Run): run is Extract<Run, {
578
+ type: "value_diff";
579
+ }>;
580
+ declare function isValueDiffDetailRun(run: Run): run is Extract<Run, {
581
+ type: "value_diff_detail";
582
+ }>;
583
+ declare function isSchemaDiffRun(run: Run): run is Extract<Run, {
584
+ type: "schema_diff";
585
+ }>;
586
+ declare function isProfileRun(run: Run): run is Extract<Run, {
587
+ type: "profile";
588
+ }>;
589
+ declare function isProfileDiffRun(run: Run): run is Extract<Run, {
590
+ type: "profile_diff";
591
+ }>;
592
+ declare function isRowCountRun(run: Run): run is Extract<Run, {
593
+ type: "row_count";
594
+ }>;
595
+ declare function isRowCountDiffRun(run: Run): run is Extract<Run, {
596
+ type: "row_count_diff";
597
+ }>;
598
+ declare function isLineageDiffRun(run: Run): run is Extract<Run, {
599
+ type: "lineage_diff";
600
+ }>;
601
+ declare function isTopKDiffRun(run: Run): run is Extract<Run, {
602
+ type: "top_k_diff";
603
+ }>;
604
+ declare function isHistogramDiffRun(run: Run): run is Extract<Run, {
605
+ type: "histogram_diff";
606
+ }>;
607
+ //#endregion
608
+ //#region recce-source/js/src/components/run/types.d.ts
609
+ interface RunFormProps<PT> {
610
+ params: Partial<PT>;
611
+ onParamsChanged: (params: Partial<PT>) => void;
612
+ setIsReadyToExecute: (isReadyToExecute: boolean) => void;
613
+ }
614
+ interface RunResultViewProps<VO = ViewOptionTypes> {
615
+ run: Run;
616
+ viewOptions?: VO;
617
+ onViewOptionsChanged?: (viewOptions: VO) => void;
618
+ }
619
+ //#endregion
620
+ //#region recce-source/js/src/components/run/RunToolbar.d.ts
621
+ interface DiffViewOptions {
622
+ changed_only?: boolean;
623
+ }
624
+ interface RunToolbarProps<VO> extends RunResultViewProps<VO> {
625
+ warnings?: string[];
626
+ children?: ReactNode;
627
+ }
628
+ declare const RunToolbar: ({
629
+ warnings,
630
+ children
631
+ }: RunToolbarProps<DiffViewOptions>) => react_jsx_runtime5.JSX.Element;
632
+ //#endregion
633
+ //#region recce-source/js/src/components/data-grid/ScreenshotDataGrid.d.ts
634
+ /**
635
+ * Handle type for accessing AG Grid API and DOM element (for screenshots)
636
+ */
637
+ interface DataGridHandle {
638
+ api: GridReadyEvent["api"] | null;
639
+ /** DOM element for screenshot functionality */
640
+ element: HTMLElement | null;
641
+ }
642
+ /**
643
+ * Props for ScreenshotDataGrid component
644
+ *
645
+ * Supports both new AG Grid style props (columnDefs/rowData) and
646
+ * legacy react-data-grid style props (columns/rows) for backward compatibility
647
+ */
648
+ interface ScreenshotDataGridProps<TData = RowObjectType> extends Omit<AgGridReactProps<TData>, "theme" | "rowClass"> {
649
+ /** Container style */
650
+ style?: CSSProperties;
651
+ /** Additional CSS class for container */
652
+ className?: string;
653
+ /** Empty state renderer (legacy) */
654
+ renderers?: {
655
+ noRowsFallback?: React$1.ReactNode;
656
+ };
657
+ /** Legacy: Column definitions (maps to columnDefs) */
658
+ columns?: (ColDef<TData> | ColGroupDef<TData>)[];
659
+ /** Legacy: Row data (maps to rowData) */
660
+ rows?: TData[];
661
+ /** Legacy: Default column options (maps to defaultColDef) */
662
+ defaultColumnOptions?: ColDef<TData>;
663
+ }
664
+ declare const ScreenshotDataGrid: <TData = RowObjectType>(props: ScreenshotDataGridProps<TData> & {
665
+ ref?: Ref<DataGridHandle>;
666
+ }) => React$1.ReactNode;
667
+ //#endregion
668
+ //#region recce-source/js/src/components/profile/ProfileDiffForm.d.ts
669
+ interface ProfileDiffFormParams {
670
+ model: string;
671
+ primary_key?: string | (string | undefined)[];
672
+ columns?: string[];
673
+ }
674
+ type ProfileDiffFormProp = RunFormProps<ProfileDiffFormParams>;
675
+ declare function ProfileDiffForm({
676
+ params,
677
+ onParamsChanged,
678
+ setIsReadyToExecute
679
+ }: ProfileDiffFormProp): react_jsx_runtime5.JSX.Element;
680
+ //#endregion
681
+ //#region recce-source/js/src/components/valuediff/ValueDiffForm.d.ts
682
+ interface ValueDiffFormParams {
683
+ model: string;
684
+ primary_key?: string | (string | undefined)[];
685
+ columns?: string[];
686
+ }
687
+ type ValueDiffFormProp = RunFormProps<ValueDiffFormParams>;
688
+ declare function ValueDiffForm({
689
+ params,
690
+ onParamsChanged,
691
+ setIsReadyToExecute
692
+ }: ValueDiffFormProp): react_jsx_runtime5.JSX.Element;
693
+ //#endregion
694
+ //#region recce-source/js/src/components/run/registry.d.ts
695
+ type ViewOptionTypes = LineageDiffViewOptions | DiffViewOptions | QueryViewOptions | QueryDiffViewOptions | ProfileDiffViewOptions | ValueDiffDetailViewOptions;
696
+ type RunType = "simple" | "query" | "query_base" | "query_diff" | "value_diff" | "value_diff_detail" | "schema_diff" | "profile" | "profile_diff" | "row_count" | "row_count_diff" | "lineage_diff" | "top_k_diff" | "histogram_diff" | "sandbox";
697
+ type RefTypes = React$1.Ref<DataGridHandle> | React$1.Ref<HTMLDivElement>;
698
+ type RunFormParamTypes = ProfileDiffFormParams | ValueDiffFormParams | TopKDiffParams | HistogramDiffParams | AxiosQueryParams;
699
+ interface RegistryEntry<PT = RefTypes, VO = ViewOptionTypes> {
700
+ title: string;
701
+ icon: IconType;
702
+ RunResultView?: ForwardRefExoticComponent<RunResultViewProps<VO> & RefAttributes<PT>>;
703
+ RunForm?: ComponentType<RunFormProps<RunFormParamTypes>>;
704
+ }
705
+ //#endregion
706
+ //#region recce-source/js/src/lib/api/checks.d.ts
707
+ interface Check<PT = unknown, VO = unknown> {
708
+ check_id: string;
709
+ name: string;
710
+ description?: string;
711
+ type: RunType;
712
+ params?: PT;
713
+ view_options?: VO;
714
+ is_checked?: boolean;
715
+ is_preset?: boolean;
716
+ last_run?: Run;
717
+ }
718
+ interface CreateCheckBody {
719
+ name?: string;
720
+ description?: string;
721
+ run_id?: string;
722
+ type?: RunType;
723
+ params?: Record<string, string | boolean>;
724
+ view_options?: Record<string, string | boolean>;
725
+ track_props?: Record<string, string | boolean>;
726
+ }
727
+ declare function createSimpleCheck(): Promise<Check>;
728
+ declare function createCheckByRun(runId: string, viewOptions?: Record<string, unknown>): Promise<Check>;
729
+ declare function listChecks(): Promise<Check[]>;
730
+ declare function useChecks(enabled: boolean): _tanstack_react_query0.UseQueryResult<Check<unknown, unknown>[], Error>;
731
+ declare function getCheck(checkId: string): Promise<Check<RunParamTypes>>;
732
+ declare function updateCheck(checkId: string, payload: Partial<Check>): Promise<Check>;
733
+ declare function deleteCheck(checkId: string): Promise<Pick<Check<unknown, unknown>, "check_id">>;
734
+ declare function reorderChecks(order: {
735
+ source: number;
736
+ destination: number;
737
+ }): Promise<AxiosResponse<unknown, any, {}>>;
738
+ declare function markAsPresetCheck(checkId: string): Promise<void>;
739
+ //#endregion
740
+ //#region recce-source/js/src/lib/api/lineagecheck.d.ts
741
+ interface LineageDiffViewOptions {
742
+ view_mode?: "changed_models" | "all";
743
+ node_ids?: string[];
744
+ packages?: string[];
745
+ select?: string;
746
+ exclude?: string;
747
+ column_level_lineage?: CllInput;
748
+ }
749
+ declare function createLineageDiffCheck(viewOptions: LineageDiffViewOptions): Promise<Check>;
750
+ //#endregion
751
+ //#region recce-source/js/src/components/lineage/LineageView.d.ts
752
+ interface LineageViewProps {
753
+ viewOptions?: LineageDiffViewOptions;
754
+ interactive?: boolean;
755
+ weight?: number;
756
+ height?: number;
757
+ filterNodes?: (key: string, node: LineageGraphNode) => boolean;
758
+ }
759
+ interface LineageViewRef {
760
+ copyToClipboard: () => void;
761
+ }
762
+ declare const LineageView: React$1.ForwardRefExoticComponent<LineageViewProps & React$1.RefAttributes<LineageViewRef>>;
763
+ //#endregion
764
+ //#region recce-source/js/src/components/lineage/LineageViewContext.d.ts
765
+ type NewType = LineageDiffViewOptions;
766
+ type ActionMode = "per_node" | "multi_nodes";
767
+ interface NodeAction {
768
+ mode: ActionMode;
769
+ status?: "pending" | "running" | "success" | "failure" | "skipped";
770
+ skipReason?: string;
771
+ run?: Run;
772
+ }
773
+ interface ActionState {
774
+ mode: ActionMode;
775
+ status: "pending" | "running" | "canceling" | "canceled" | "completed";
776
+ currentRun?: Partial<Run>;
777
+ completed: number;
778
+ total: number;
779
+ actions: Record<string, NodeAction>;
780
+ }
781
+ interface LineageViewContextType {
782
+ interactive: boolean;
783
+ nodes: LineageGraphNodes[];
784
+ focusedNode?: LineageGraphNode;
785
+ selectedNodes: LineageGraphNode[];
786
+ cll: ColumnLineageData | undefined;
787
+ showContextMenu: (event: React$1.MouseEvent, node: LineageGraphNodes) => void;
788
+ viewOptions: LineageDiffViewOptions;
789
+ onViewOptionsChanged: (options: NewType) => void;
790
+ selectMode: "selecting" | "action_result" | undefined;
791
+ selectNode: (nodeId: string) => void;
792
+ selectParentNodes: (nodeId: string, degree?: number) => void;
793
+ selectChildNodes: (nodeId: string, degree?: number) => void;
794
+ deselect: () => void;
795
+ isNodeHighlighted: (nodeId: string) => boolean;
796
+ isNodeSelected: (nodeId: string) => boolean;
797
+ isEdgeHighlighted: (source: string, target: string) => boolean;
798
+ getNodeAction: (nodeId: string) => NodeAction;
799
+ getNodeColumnSet: (nodeId: string) => Set<string>;
800
+ isNodeShowingChangeAnalysis: (nodeId: string) => boolean;
801
+ runRowCount: () => Promise<void>;
802
+ runRowCountDiff: () => Promise<void>;
803
+ runValueDiff: () => Promise<void>;
804
+ addLineageDiffCheck: (viewMode?: string) => void;
805
+ addSchemaDiffCheck: () => void;
806
+ cancel: () => void;
807
+ actionState: ActionState;
808
+ centerNode: (nodeId: string) => void;
809
+ showColumnLevelLineage: (cll?: CllInput) => Promise<void>;
810
+ resetColumnLevelLineage: (previous?: boolean) => Promise<void>;
811
+ }
812
+ declare const LineageViewContext: React$1.Context<LineageViewContextType>;
813
+ declare const useLineageViewContext: () => LineageViewContextType | undefined;
814
+ //#endregion
815
+ //#region recce-source/js/src/components/lineage/LineageViewTopBar.d.ts
816
+ declare const LineageViewTopBar: () => react_jsx_runtime5.JSX.Element;
817
+ //#endregion
818
+ //#region recce-source/js/src/components/lineage/GraphNode.d.ts
819
+ type GraphNodeProps = NodeProps<LineageGraphNode>;
820
+ declare function GraphNode(nodeProps: GraphNodeProps): react_jsx_runtime5.JSX.Element;
821
+ //#endregion
822
+ //#region recce-source/js/src/components/lineage/GraphEdge.d.ts
823
+ type GraphEdgeProps = EdgeProps<LineageGraphEdge>;
824
+ declare function GraphEdge(props: GraphEdgeProps): react_jsx_runtime5.JSX.Element;
825
+ //#endregion
826
+ //#region recce-source/js/src/components/lineage/GraphColumnNode.d.ts
827
+ type GrapeColumnNodeProps = NodeProps<LineageGraphColumnNode>;
828
+ declare function GraphColumnNode(nodeProps: GrapeColumnNodeProps): react_jsx_runtime5.JSX.Element;
829
+ //#endregion
830
+ //#region recce-source/js/src/components/lineage/NodeView.d.ts
831
+ interface NodeViewProps {
832
+ node: LineageGraphNode;
833
+ onCloseNode: () => void;
834
+ }
835
+ declare function NodeView({
836
+ node,
837
+ onCloseNode
838
+ }: NodeViewProps): react_jsx_runtime5.JSX.Element;
839
+ //#endregion
840
+ //#region recce-source/js/src/components/lineage/NodeSqlView.d.ts
841
+ interface NodeSqlViewProps {
842
+ node: LineageGraphNode;
843
+ }
844
+ declare const NodeSqlView: ({
845
+ node
846
+ }: NodeSqlViewProps) => react_jsx_runtime5.JSX.Element | "Not available";
847
+ //#endregion
848
+ //#region recce-source/js/src/components/lineage/NodeTag.d.ts
849
+ declare function ResourceTypeTag({
850
+ node
851
+ }: {
852
+ node: LineageGraphNode;
853
+ }): react_jsx_runtime5.JSX.Element;
854
+ interface ModelRowCountProps {
855
+ rowCount?: RowCountDiff;
856
+ }
857
+ declare function ModelRowCount({
858
+ rowCount
859
+ }: ModelRowCountProps): react_jsx_runtime5.JSX.Element;
860
+ interface RowCountDiffTagProps {
861
+ node: LineageGraphNode;
862
+ rowCount?: RowCountDiff;
863
+ onRefresh?: () => void;
864
+ isFetching?: boolean;
865
+ error?: Error | null;
866
+ }
867
+ declare function RowCountDiffTag({
868
+ rowCount: fetchedRowCount,
869
+ node,
870
+ onRefresh,
871
+ isFetching
872
+ }: RowCountDiffTagProps): react_jsx_runtime5.JSX.Element;
873
+ interface RowCountTagProps {
874
+ node: LineageGraphNode;
875
+ rowCount?: RowCount;
876
+ onRefresh?: () => void;
877
+ isFetching?: boolean;
878
+ error?: Error | null;
879
+ }
880
+ //#endregion
881
+ //#region recce-source/js/src/components/lineage/SetupConnectionBanner.d.ts
882
+ declare function SetupConnectionBanner(): react_jsx_runtime5.JSX.Element;
883
+ //#endregion
884
+ //#region recce-source/js/src/components/query/QueryPage.d.ts
885
+ declare const QueryPage: () => react_jsx_runtime5.JSX.Element;
886
+ //#endregion
887
+ //#region recce-source/js/src/components/query/QueryForm.d.ts
888
+ interface QueryFormProps extends BoxProps {
889
+ defaultPrimaryKeys: string[] | undefined;
890
+ onPrimaryKeysChange: (primaryKeys: string[]) => void;
891
+ }
892
+ declare const QueryForm: ({
893
+ defaultPrimaryKeys,
894
+ onPrimaryKeysChange,
895
+ ...props
896
+ }: QueryFormProps) => react_jsx_runtime5.JSX.Element;
897
+ //#endregion
898
+ //#region recce-source/js/src/components/query/SqlEditor.d.ts
899
+ interface SqlEditorProps {
900
+ language?: string;
901
+ theme?: string;
902
+ value: string;
903
+ baseValue?: string;
904
+ onChange?: (value: string) => void;
905
+ onChangeBase?: (value: string) => void;
906
+ onRun?: () => void;
907
+ onRunBase?: () => void;
908
+ onRunDiff?: () => void;
909
+ options?: {
910
+ readOnly?: boolean;
911
+ fontSize?: number;
912
+ lineNumbers?: "on" | "off";
913
+ wordWrap?: "on" | "off";
914
+ };
915
+ manifestData?: ManifestMetadata;
916
+ schemas?: string;
917
+ label?: string;
918
+ CustomEditor?: React$1.ReactNode;
919
+ }
920
+ declare function SqlEditor({
921
+ value,
922
+ onChange,
923
+ onRun,
924
+ onRunBase,
925
+ onRunDiff,
926
+ label,
927
+ CustomEditor,
928
+ options,
929
+ manifestData,
930
+ schemas,
931
+ ...props
932
+ }: SqlEditorProps): react_jsx_runtime5.JSX.Element;
933
+ //#endregion
934
+ //#region recce-source/js/src/components/query/QueryResultView.d.ts
935
+ interface QueryResultViewProp extends RunResultViewProps<QueryViewOptions> {
936
+ onAddToChecklist?: (run: Run) => void;
937
+ }
938
+ declare const QueryResultView: React$1.ForwardRefExoticComponent<QueryResultViewProp & React$1.RefAttributes<DataGridHandle>>;
939
+ //#endregion
940
+ //#region recce-source/js/src/components/query/QueryDiffResultView.d.ts
941
+ interface QueryDiffResultViewProps extends RunResultViewProps<QueryDiffViewOptions> {
942
+ onAddToChecklist?: (run: Run) => void;
943
+ baseTitle?: string;
944
+ currentTitle?: string;
945
+ }
946
+ declare const QueryDiffResultView: React$2.ForwardRefExoticComponent<QueryDiffResultViewProps & React$2.RefAttributes<DataGridHandle>>;
947
+ //#endregion
948
+ //#region recce-source/js/src/components/query/DiffText.d.ts
949
+ interface DiffTextProps {
950
+ value: string;
951
+ colorPalette: "red" | "green";
952
+ grayOut?: boolean;
953
+ noCopy?: boolean;
954
+ fontSize?: string;
955
+ }
956
+ declare const DiffText: ({
957
+ value,
958
+ colorPalette,
959
+ grayOut,
960
+ noCopy,
961
+ fontSize
962
+ }: DiffTextProps) => react_jsx_runtime5.JSX.Element;
963
+ //#endregion
964
+ //#region recce-source/js/src/components/query/SetupConnectionGuide.d.ts
965
+ declare function SetupConnectionGuide(): react_jsx_runtime5.JSX.Element;
966
+ //#endregion
967
+ //#region recce-source/js/src/components/editor/CodeEditor.d.ts
968
+ type CodeEditorLanguage = "sql" | "yaml";
969
+ type CodeEditorTheme = "light" | "dark";
970
+ interface CodeEditorProps {
971
+ value: string;
972
+ onChange?: (value: string) => void;
973
+ language?: CodeEditorLanguage;
974
+ readOnly?: boolean;
975
+ lineNumbers?: boolean;
976
+ wordWrap?: boolean;
977
+ fontSize?: number;
978
+ height?: string;
979
+ className?: string;
980
+ /** Theme: "light" for githubLight, "dark" for githubDark */
981
+ theme?: CodeEditorTheme;
982
+ /** Custom keyboard shortcuts: { key: handler } */
983
+ keyBindings?: Array<{
984
+ key: string;
985
+ run: () => boolean;
986
+ }>;
987
+ }
988
+ declare function CodeEditor({
989
+ value,
990
+ onChange,
991
+ language,
992
+ readOnly,
993
+ lineNumbers,
994
+ wordWrap,
995
+ fontSize,
996
+ height,
997
+ className,
998
+ theme,
999
+ keyBindings
1000
+ }: CodeEditorProps): react_jsx_runtime5.JSX.Element;
1001
+ //#endregion
1002
+ //#region recce-source/js/src/components/editor/DiffEditor.d.ts
1003
+ type DiffEditorLanguage = "sql" | "yaml";
1004
+ type DiffEditorTheme = "light" | "dark";
1005
+ interface DiffEditorProps {
1006
+ original: string;
1007
+ modified: string;
1008
+ language?: DiffEditorLanguage;
1009
+ readOnly?: boolean;
1010
+ lineNumbers?: boolean;
1011
+ sideBySide?: boolean;
1012
+ height?: string;
1013
+ className?: string;
1014
+ /** Theme: "light" for githubLight, "dark" for githubDark */
1015
+ theme?: DiffEditorTheme;
1016
+ /** Called when modified content changes (only if not readOnly) */
1017
+ onModifiedChange?: (value: string) => void;
1018
+ }
1019
+ declare function DiffEditor({
1020
+ original,
1021
+ modified,
1022
+ language,
1023
+ readOnly,
1024
+ lineNumbers,
1025
+ sideBySide,
1026
+ height,
1027
+ className,
1028
+ theme,
1029
+ onModifiedChange
1030
+ }: DiffEditorProps): react_jsx_runtime5.JSX.Element;
1031
+ //#endregion
1032
+ //#region recce-source/js/src/components/schema/SchemaView.d.ts
1033
+ interface SchemaViewProps {
1034
+ base?: NodeData;
1035
+ current?: NodeData;
1036
+ enableScreenshot?: boolean;
1037
+ showMenu?: boolean;
1038
+ }
1039
+ declare const SchemaView: React$2.ForwardRefExoticComponent<SchemaViewProps & React$2.RefAttributes<DataGridHandle>>;
1040
+ //#endregion
1041
+ //#region recce-source/js/src/lib/dataGrid/generators/toSchemaDataGrid.d.ts
1042
+ interface SchemaDiffRow extends RowObjectType {
1043
+ name: string;
1044
+ reordered?: boolean;
1045
+ currentIndex?: number;
1046
+ baseIndex?: number;
1047
+ currentType?: string;
1048
+ baseType?: string;
1049
+ }
1050
+ //#endregion
1051
+ //#region recce-source/js/src/components/schema/ColumnNameCell.d.ts
1052
+ declare function ColumnNameCell({
1053
+ model,
1054
+ row,
1055
+ singleEnv,
1056
+ cllRunning,
1057
+ showMenu
1058
+ }: {
1059
+ model: NodeData;
1060
+ row: SchemaDiffRow;
1061
+ singleEnv?: boolean;
1062
+ cllRunning?: boolean;
1063
+ showMenu?: boolean;
1064
+ }): react_jsx_runtime5.JSX.Element;
1065
+ //#endregion
1066
+ //#region recce-source/js/src/components/check/CheckList.d.ts
1067
+ declare const CheckList: ({
1068
+ checks,
1069
+ selectedItem,
1070
+ onCheckSelected,
1071
+ onChecksReordered
1072
+ }: {
1073
+ checks: Check[];
1074
+ selectedItem: string | null;
1075
+ onCheckSelected: (checkId: string) => void;
1076
+ onChecksReordered: (source: number, destination: number) => void;
1077
+ }) => react_jsx_runtime5.JSX.Element;
1078
+ //#endregion
1079
+ //#region recce-source/js/src/components/check/CheckDetail.d.ts
1080
+ interface CheckDetailProps {
1081
+ checkId: string;
1082
+ refreshCheckList?: () => void;
1083
+ }
1084
+ declare function CheckDetail({
1085
+ checkId,
1086
+ refreshCheckList
1087
+ }: CheckDetailProps): ReactNode;
1088
+ //#endregion
1089
+ //#region recce-source/js/src/components/check/CheckBreadcrumb.d.ts
1090
+ interface CheckBreadcrumbProps {
1091
+ name: string;
1092
+ setName: (name: string) => void;
1093
+ }
1094
+ declare function CheckBreadcrumb({
1095
+ name,
1096
+ setName
1097
+ }: CheckBreadcrumbProps): react_jsx_runtime5.JSX.Element;
1098
+ //#endregion
1099
+ //#region recce-source/js/src/components/check/CheckDescription.d.ts
1100
+ interface CheckDescriptionProps {
1101
+ value?: string;
1102
+ onChange?: (value?: string) => void;
1103
+ }
1104
+ declare function CheckDescription({
1105
+ value,
1106
+ onChange
1107
+ }: CheckDescriptionProps): react_jsx_runtime5.JSX.Element;
1108
+ //#endregion
1109
+ //#region recce-source/js/src/components/check/CheckEmptyState.d.ts
1110
+ declare const CheckEmptyState: () => react_jsx_runtime5.JSX.Element;
1111
+ //#endregion
1112
+ //#region recce-source/js/src/components/check/LineageDiffView.d.ts
1113
+ interface LineageDiffViewProps {
1114
+ check: Check;
1115
+ }
1116
+ declare const LineageDiffView: React$2.ForwardRefExoticComponent<LineageDiffViewProps & React$2.RefAttributes<LineageViewRef>>;
1117
+ //#endregion
1118
+ //#region recce-source/js/src/components/check/SchemaDiffView.d.ts
1119
+ interface SchemaDiffViewProps {
1120
+ check: Check;
1121
+ }
1122
+ declare const SchemaDiffView: React$1.ForwardRefExoticComponent<SchemaDiffViewProps & React$1.RefAttributes<DataGridHandle>>;
1123
+ //#endregion
1124
+ //#region recce-source/js/src/components/run/RunPage.d.ts
1125
+ interface RunPageProps$1 {
1126
+ runId: string;
1127
+ }
1128
+ declare const RunPage: ({
1129
+ runId
1130
+ }: RunPageProps$1) => react_jsx_runtime5.JSX.Element;
1131
+ //#endregion
1132
+ //#region recce-source/js/src/components/run/RunList.d.ts
1133
+ declare const RunList: () => react_jsx_runtime5.JSX.Element;
1134
+ //#endregion
1135
+ //#region recce-source/js/src/components/run/RunView.d.ts
1136
+ interface RunViewProps<VO = ViewOptionTypes> {
1137
+ isRunning?: boolean;
1138
+ run?: Run;
1139
+ error?: Error | null;
1140
+ progress?: Run["progress"];
1141
+ isAborting?: boolean;
1142
+ isCheckDetail?: boolean;
1143
+ onCancel?: () => void;
1144
+ onExecuteRun?: () => void;
1145
+ viewOptions?: VO;
1146
+ onViewOptionsChanged?: (viewOptions: VO) => void;
1147
+ RunResultView?: RegistryEntry["RunResultView"] | undefined;
1148
+ children?: (params: RunResultViewProps) => React$1.ReactNode;
1149
+ }
1150
+ declare const RunView: React$1.ForwardRefExoticComponent<RunViewProps<ViewOptionTypes> & React$1.RefAttributes<RefTypes>>;
1151
+ //#endregion
1152
+ //#region recce-source/js/src/components/run/RunModal.d.ts
1153
+ interface RunModalProps {
1154
+ isOpen: boolean;
1155
+ onClose: () => void;
1156
+ onExecute: (type: RunType, params: RunFormParamTypes) => void;
1157
+ title: string;
1158
+ type: RunType;
1159
+ params?: RunFormParamTypes;
1160
+ initialRun?: Run;
1161
+ RunForm?: ComponentType<RunFormProps<RunFormParamTypes>>;
1162
+ }
1163
+ declare const RunModal: ({
1164
+ isOpen,
1165
+ onClose,
1166
+ onExecute,
1167
+ type,
1168
+ title,
1169
+ params: defaultParams,
1170
+ RunForm
1171
+ }: RunModalProps) => react_jsx_runtime5.JSX.Element;
1172
+ //#endregion
1173
+ //#region recce-source/js/src/components/run/RunResultPane.d.ts
1174
+ interface RunPageProps {
1175
+ onClose?: () => void;
1176
+ disableAddToChecklist?: boolean;
1177
+ isSingleEnvironment?: boolean;
1178
+ }
1179
+ declare const RunResultPane: ({
1180
+ onClose,
1181
+ isSingleEnvironment
1182
+ }: RunPageProps) => react_jsx_runtime5.JSX.Element;
1183
+ //#endregion
1184
+ //#region recce-source/js/src/components/run/RunStatusAndDate.d.ts
1185
+ declare const RunStatusAndDate: ({
1186
+ run
1187
+ }: {
1188
+ run: Run;
1189
+ }) => react_jsx_runtime5.JSX.Element;
1190
+ //#endregion
1191
+ //#region recce-source/js/src/components/profile/ProfileDiffResultView.d.ts
1192
+ type ProfileDiffResultViewProp = RunResultViewProps<ProfileDiffViewOptions>;
1193
+ declare const ProfileDiffResultView: React$2.ForwardRefExoticComponent<ProfileDiffResultViewProp & React$2.RefAttributes<DataGridHandle>>;
1194
+ //#endregion
1195
+ //#region recce-source/js/src/components/valuediff/ValueDiffResultView.d.ts
1196
+ type ValueDiffResultViewProp = RunResultViewProps;
1197
+ declare const ValueDiffResultView: React$1.ForwardRefExoticComponent<ValueDiffResultViewProp & React$1.RefAttributes<DataGridHandle>>;
1198
+ //#endregion
1199
+ //#region recce-source/js/src/components/valuediff/ValueDiffDetailResultView.d.ts
1200
+ interface ValueDiffDetailResultViewProps extends RunResultViewProps<ValueDiffDetailViewOptions> {
1201
+ onAddToChecklist?: (run: Run) => void;
1202
+ }
1203
+ declare const ValueDiffDetailResultView: React$2.ForwardRefExoticComponent<ValueDiffDetailResultViewProps & React$2.RefAttributes<DataGridHandle>>;
1204
+ //#endregion
1205
+ //#region recce-source/js/src/components/histogram/HistogramDiffForm.d.ts
1206
+ type HistogramDiffEditProps = RunFormProps<HistogramDiffParams>;
1207
+ declare function HistogramDiffForm({
1208
+ params,
1209
+ onParamsChanged,
1210
+ setIsReadyToExecute
1211
+ }: HistogramDiffEditProps): react_jsx_runtime5.JSX.Element;
1212
+ //#endregion
1213
+ //#region recce-source/js/src/components/histogram/HistogramDiffResultView.d.ts
1214
+ type HistogramDiffResultViewProp = RunResultViewProps;
1215
+ declare const HistogramDiffResultView: React$2.ForwardRefExoticComponent<HistogramDiffResultViewProp & React$2.RefAttributes<HTMLDivElement>>;
1216
+ //#endregion
1217
+ //#region recce-source/js/src/components/top-k/TopKDiffForm.d.ts
1218
+ type TopKDiffFormProps = RunFormProps<TopKDiffParams>;
1219
+ declare function TopKDiffForm({
1220
+ params,
1221
+ onParamsChanged,
1222
+ setIsReadyToExecute
1223
+ }: TopKDiffFormProps): react_jsx_runtime5.JSX.Element;
1224
+ //#endregion
1225
+ //#region recce-source/js/src/components/top-k/TopKDiffResultView.d.ts
1226
+ type TopKDiffResultViewProp = RunResultViewProps;
1227
+ declare const TopKDiffResultView: React$2.ForwardRefExoticComponent<TopKDiffResultViewProp & React$2.RefAttributes<HTMLDivElement>>;
1228
+ //#endregion
1229
+ //#region recce-source/js/src/components/rowcount/RowCountDiffResultView.d.ts
1230
+ declare const RowCountDiffResultView: React$2.ForwardRefExoticComponent<RunResultViewProps<ViewOptionTypes> & React$2.RefAttributes<DataGridHandle>>;
1231
+ //#endregion
1232
+ //#region recce-source/js/src/components/charts/HistogramChart.d.ts
1233
+ /**
1234
+ * Histogram Chart that can display generic data types such as Numeric, Datetime, Integer
1235
+ * X: The Min/Max of the labels range is the scaled width of charting area
1236
+ * Y: The Min/Max of the counts range is the scaled height of charting area
1237
+ * Counts: Abbreviated based on K, Mn, Bn, Tr (see formatters)
1238
+ */
1239
+ interface HistogramChartProps {
1240
+ data: {
1241
+ title: string;
1242
+ type: string;
1243
+ samples?: number;
1244
+ min?: string | number;
1245
+ max?: string | number;
1246
+ binEdges: number[];
1247
+ datasets: HistogramResult[];
1248
+ };
1249
+ animation?: AnimationOptions<"bar">["animation"];
1250
+ hideAxis?: boolean;
1251
+ }
1252
+ declare function HistogramChart({
1253
+ data,
1254
+ hideAxis,
1255
+ animation
1256
+ }: HistogramChartProps): react_jsx_runtime5.JSX.Element;
1257
+ //#endregion
1258
+ //#region recce-source/js/src/components/charts/TopKSummaryList.d.ts
1259
+ interface Props$2 {
1260
+ topk: TopKResult;
1261
+ valids: number;
1262
+ isDisplayTopTen: boolean;
1263
+ }
1264
+ /**
1265
+ * A list of each topk summary item (categorical)
1266
+ * Last list item will show 'others' when there are leftover values, which is the count difference of valids and displayed topk items
1267
+ */
1268
+ declare function TopKSummaryList({
1269
+ topk,
1270
+ valids,
1271
+ isDisplayTopTen
1272
+ }: Props$2): react_jsx_runtime5.JSX.Element;
1273
+ //#endregion
1274
+ //#region recce-source/js/src/components/charts/SquareIcon.d.ts
1275
+ declare function SquareIcon({
1276
+ color
1277
+ }: {
1278
+ color: string;
1279
+ }): react_jsx_runtime5.JSX.Element;
1280
+ //#endregion
1281
+ //#region recce-source/js/src/components/summary/SummaryView.d.ts
1282
+ declare function SummaryView(): react_jsx_runtime5.JSX.Element;
1283
+ //#endregion
1284
+ //#region recce-source/js/src/components/summary/ChangeSummary.d.ts
1285
+ interface Props$1 {
1286
+ lineageGraph: LineageGraph;
1287
+ }
1288
+ declare function ChangeSummary({
1289
+ lineageGraph
1290
+ }: Props$1): react_jsx_runtime5.JSX.Element;
1291
+ //#endregion
1292
+ //#region recce-source/js/src/components/summary/SchemaSummary.d.ts
1293
+ interface Props {
1294
+ lineageGraph: LineageGraph;
1295
+ }
1296
+ declare function SchemaSummary({
1297
+ lineageGraph
1298
+ }: Props): react_jsx_runtime5.JSX.Element;
1299
+ //#endregion
1300
+ //#region recce-source/js/src/components/app/EnvInfo.d.ts
1301
+ declare function EnvInfo$1(): react_jsx_runtime5.JSX.Element;
1302
+ //#endregion
1303
+ //#region recce-source/js/src/components/shared/HistoryToggle.d.ts
1304
+ declare function HistoryToggle(): ReactNode;
1305
+ //#endregion
1306
+ //#region recce-source/js/src/components/timeout/IdleTimeoutBadge.d.ts
1307
+ /**
1308
+ * Badge component that displays idle timeout warning countdown
1309
+ * Only shows when remaining time is below the warning threshold
1310
+ * Styled as a warning indicator to draw user attention
1311
+ */
1312
+ declare function IdleTimeoutBadge(): react_jsx_runtime5.JSX.Element;
1313
+ //#endregion
1314
+ //#region recce-source/js/src/components/icons/index.d.ts
1315
+ declare const IconSync: (props: React$1.SVGProps<SVGSVGElement>) => react_jsx_runtime5.JSX.Element;
1316
+ declare const IconExport: (props: React$1.SVGProps<SVGSVGElement>) => react_jsx_runtime5.JSX.Element;
1317
+ declare const IconImport: (props: React$1.SVGProps<SVGSVGElement>) => react_jsx_runtime5.JSX.Element;
1318
+ declare const IconSave: (props: React$1.SVGProps<SVGSVGElement>) => react_jsx_runtime5.JSX.Element;
1319
+ declare const IconEdit: (props: React$1.SVGProps<SVGSVGElement>) => react_jsx_runtime5.JSX.Element;
1320
+ declare const IconInfo: (props: React$1.SVGProps<SVGSVGElement>) => react_jsx_runtime5.JSX.Element;
1321
+ //#endregion
1322
+ //#region recce-source/js/src/lib/api/instanceInfo.d.ts
1323
+ interface RecceInstanceInfo {
1324
+ server_mode: "server" | "preview" | "read-only";
1325
+ single_env: boolean;
1326
+ authed: boolean;
1327
+ cloud_instance: boolean;
1328
+ lifetime_expired_at?: Date;
1329
+ idle_timeout?: number;
1330
+ share_url?: string;
1331
+ session_id?: string;
1332
+ organization_name?: string;
1333
+ web_url?: string;
1334
+ }
1335
+ //#endregion
1336
+ //#region recce-source/js/src/lib/hooks/useRecceInstanceInfo.d.ts
1337
+ declare const useRecceInstanceInfo: () => _tanstack_react_query0.UseQueryResult<RecceInstanceInfo, Error>;
1338
+ //#endregion
1339
+ //#region recce-source/js/src/lib/hooks/useCheckToast.d.ts
1340
+ declare function useCheckToast(): {
1341
+ markedAsApprovedToast: () => void;
1342
+ };
1343
+ //#endregion
1344
+ //#region recce-source/js/src/lib/hooks/useClipBoardToast.d.ts
1345
+ declare function useClipBoardToast(): {
1346
+ successToast: (message: string) => void;
1347
+ failToast: (title: string, error: unknown) => void;
1348
+ };
1349
+ //#endregion
1350
+ //#region recce-source/js/src/components/lineage/useValueDiffAlertDialog.d.ts
1351
+ declare function useValueDiffAlertDialog(): {
1352
+ confirm: (nodeCount: number) => Promise<boolean>;
1353
+ AlertDialog: react_jsx_runtime5.JSX.Element;
1354
+ };
1355
+ //#endregion
1356
+ //#region recce-source/js/src/lib/hooks/RecceContextProvider.d.ts
1357
+ interface RecceContextProps {
1358
+ children: React$1.ReactNode;
1359
+ }
1360
+ /**
1361
+ * Main context provider for Recce application.
1362
+ *
1363
+ * For custom API configuration (e.g., recce-cloud), wrap this provider
1364
+ * with ApiConfigProvider:
1365
+ *
1366
+ * ```tsx
1367
+ * <ApiConfigProvider
1368
+ * apiPrefix="/api/v2/sessions/abc123"
1369
+ * authToken="eyJ..."
1370
+ * >
1371
+ * <RecceContextProvider>
1372
+ * {children}
1373
+ * </RecceContextProvider>
1374
+ * </ApiConfigProvider>
1375
+ * ```
1376
+ *
1377
+ * When used without ApiConfigProvider (OSS mode), hooks will use
1378
+ * the default axios client with standard /api/* endpoints.
1379
+ */
1380
+ declare function RecceContextProvider({
1381
+ children
1382
+ }: RecceContextProps): react_jsx_runtime5.JSX.Element;
1383
+ //#endregion
1384
+ //#region recce-source/js/src/lib/hooks/RecceInstanceContext.d.ts
1385
+ type RecceFeatureMode = "read only" | "metadata only" | null;
1386
+ interface RecceFeatureToggles {
1387
+ mode: RecceFeatureMode;
1388
+ disableSaveToFile: boolean;
1389
+ disableExportStateFile: boolean;
1390
+ disableImportStateFile: boolean;
1391
+ disableUpdateChecklist: boolean;
1392
+ disableDatabaseQuery: boolean;
1393
+ disableViewActionDropdown: boolean;
1394
+ disableNodeActionDropdown: boolean;
1395
+ disableShare: boolean;
1396
+ }
1397
+ interface InstanceInfoType {
1398
+ singleEnv: boolean;
1399
+ authed: boolean;
1400
+ featureToggles: RecceFeatureToggles;
1401
+ lifetimeExpiredAt?: Date;
1402
+ shareUrl?: string;
1403
+ sessionId?: string;
1404
+ }
1405
+ declare function RecceInstanceInfoProvider({
1406
+ children
1407
+ }: {
1408
+ children: React.ReactNode;
1409
+ }): react_jsx_runtime5.JSX.Element;
1410
+ declare const useRecceInstanceContext: () => InstanceInfoType;
1411
+ //#endregion
1412
+ //#region recce-source/js/src/lib/hooks/LineageGraphContext.d.ts
1413
+ interface EnvInfo {
1414
+ stateMetadata?: stateMetadata;
1415
+ adapterType?: string;
1416
+ git?: gitInfo;
1417
+ pullRequest?: pullRequestInfo;
1418
+ dbt?: {
1419
+ base: ManifestMetadata | undefined | null;
1420
+ current: ManifestMetadata | undefined | null;
1421
+ };
1422
+ sqlmesh?: SQLMeshInfo | null;
1423
+ }
1424
+ interface LineageGraphContextType {
1425
+ lineageGraph?: LineageGraph;
1426
+ envInfo?: EnvInfo;
1427
+ reviewMode?: boolean;
1428
+ cloudMode?: boolean;
1429
+ fileMode?: boolean;
1430
+ fileName?: string;
1431
+ isDemoSite: boolean;
1432
+ isCodespace?: boolean;
1433
+ isLoading?: boolean;
1434
+ error?: string;
1435
+ supportTasks?: Record<string, boolean>;
1436
+ retchLineageGraph?: () => void;
1437
+ isActionAvailable: (actionName: string) => boolean;
1438
+ runsAggregated?: RunsAggregated;
1439
+ refetchRunsAggregated?: () => void;
1440
+ }
1441
+ interface LineageGraphProps {
1442
+ children: React$1.ReactNode;
1443
+ }
1444
+ declare function LineageGraphContextProvider({
1445
+ children
1446
+ }: LineageGraphProps): react_jsx_runtime5.JSX.Element;
1447
+ declare const useLineageGraphContext: () => LineageGraphContextType;
1448
+ declare const useRunsAggregated: () => [RunsAggregated | undefined, () => void];
1449
+ //#endregion
1450
+ //#region recce-source/js/src/lib/hooks/RecceShareStateContext.d.ts
1451
+ interface ShareStateProps {
1452
+ shareUrl?: string;
1453
+ isLoading: boolean;
1454
+ error?: string;
1455
+ handleShareClick: () => Promise<void>;
1456
+ }
1457
+ declare function RecceShareStateContextProvider({
1458
+ children
1459
+ }: {
1460
+ children: React$1.ReactNode;
1461
+ }): react_jsx_runtime5.JSX.Element;
1462
+ declare const useRecceShareStateContext: () => ShareStateProps;
1463
+ //#endregion
1464
+ //#region recce-source/js/src/lib/hooks/RecceQueryContext.d.ts
1465
+ interface QueryContext {
1466
+ sqlQuery: string;
1467
+ setSqlQuery: (sqlQuery: string) => void;
1468
+ primaryKeys: string[] | undefined;
1469
+ setPrimaryKeys: (primaryKeys: string[] | undefined) => void;
1470
+ isCustomQueries: boolean;
1471
+ setCustomQueries: (isCustomQueries: boolean) => void;
1472
+ baseSqlQuery?: string;
1473
+ setBaseSqlQuery?: (baseSqlQuery: string) => void;
1474
+ }
1475
+ interface QueryContextProps {
1476
+ children: React$1.ReactNode;
1477
+ }
1478
+ declare function RecceQueryContextProvider({
1479
+ children
1480
+ }: QueryContextProps): react_jsx_runtime5.JSX.Element;
1481
+ declare const useRecceQueryContext: () => QueryContext;
1482
+ interface RowCountStateContext {
1483
+ isNodesFetching: string[];
1484
+ setIsNodesFetching: (nodes: string[]) => void;
1485
+ }
1486
+ interface RowCountStateContextProps {
1487
+ children: React$1.ReactNode;
1488
+ }
1489
+ declare function RowCountStateContextProvider({
1490
+ children
1491
+ }: RowCountStateContextProps): react_jsx_runtime5.JSX.Element;
1492
+ declare const useRowCountStateContext: () => RowCountStateContext;
1493
+ //#endregion
1494
+ //#region recce-source/js/src/lib/hooks/RecceActionContext.d.ts
1495
+ interface RecceActionOptions {
1496
+ showForm: boolean;
1497
+ showLast?: boolean;
1498
+ trackProps?: SubmitRunTrackProps;
1499
+ }
1500
+ interface RecceActionContextType {
1501
+ runAction: (type: RunType, params?: AxiosQueryParams, actionOptions?: RecceActionOptions) => void;
1502
+ runId?: string;
1503
+ showRunId: (runId: string, refreshHistory?: boolean) => void;
1504
+ isRunResultOpen: boolean;
1505
+ closeRunResult: () => void;
1506
+ isHistoryOpen: boolean;
1507
+ closeHistory: () => void;
1508
+ showHistory: () => void;
1509
+ setHistoryOpen: Dispatch<SetStateAction<boolean>>;
1510
+ clearRunResult: () => void;
1511
+ }
1512
+ interface RecceActionContextProviderProps {
1513
+ children: React$1.ReactNode;
1514
+ }
1515
+ declare function RecceActionContextProvider({
1516
+ children
1517
+ }: RecceActionContextProviderProps): react_jsx_runtime5.JSX.Element;
1518
+ declare const useRecceActionContext: () => RecceActionContextType;
1519
+ //#endregion
1520
+ //#region recce-source/js/src/lib/hooks/RecceCheckContext.d.ts
1521
+ interface CheckContext {
1522
+ latestSelectedCheckId: string;
1523
+ setLatestSelectedCheckId: (selectCheckId: string) => void;
1524
+ }
1525
+ interface CheckContextProps {
1526
+ children: React$1.ReactNode;
1527
+ }
1528
+ declare function RecceCheckContextProvider({
1529
+ children
1530
+ }: CheckContextProps): react_jsx_runtime5.JSX.Element;
1531
+ declare const useRecceCheckContext: () => CheckContext;
1532
+ //#endregion
1533
+ //#region recce-source/js/src/lib/hooks/IdleTimeoutContext.d.ts
1534
+ /**
1535
+ * Context for sharing idle timeout state across components
1536
+ *
1537
+ * IMPORTANT: The countdown is based on the last SUCCESSFUL keep-alive API call,
1538
+ * NOT on user activity. This ensures the countdown accurately reflects the
1539
+ * server's idle timeout state.
1540
+ */
1541
+ interface IdleTimeoutContextType {
1542
+ /** Remaining seconds until timeout (null if idle timeout not enabled) */
1543
+ remainingSeconds: number | null;
1544
+ /** Idle timeout value from server in seconds (null if not configured) */
1545
+ idleTimeout: number | null;
1546
+ /** Whether idle timeout is enabled */
1547
+ isEnabled: boolean;
1548
+ /** Mark as disconnected - stops countdown and keep-alive */
1549
+ setDisconnected: () => void;
1550
+ /** Reset connection state - restarts countdown and keep-alive after successful reconnect */
1551
+ resetConnection: () => void;
1552
+ /** Whether the connection is disconnected */
1553
+ isDisconnected: boolean;
1554
+ }
1555
+ /**
1556
+ * Provider for idle timeout state
1557
+ *
1558
+ * The countdown is based on lastServerSyncTime (when keep-alive API was last
1559
+ * successfully sent), not on user activity. This provides accurate server state.
1560
+ */
1561
+ declare function IdleTimeoutProvider({
1562
+ children
1563
+ }: {
1564
+ children: ReactNode;
1565
+ }): react_jsx_runtime5.JSX.Element;
1566
+ /**
1567
+ * Hook to access idle timeout context
1568
+ * @throws Error if used outside IdleTimeoutProvider
1569
+ */
1570
+ declare function useIdleTimeout(): IdleTimeoutContextType;
1571
+ //#endregion
1572
+ //#region recce-source/js/src/lib/hooks/ApiConfigContext.d.ts
1573
+ /**
1574
+ * API Configuration Context
1575
+ *
1576
+ * Provides configurable API endpoint prefix and authentication token
1577
+ * for use with recce-cloud or other custom API backends.
1578
+ *
1579
+ * Default behavior (OSS):
1580
+ * - apiPrefix: "" (uses /api/* paths directly)
1581
+ * - authToken: undefined (no auth header)
1582
+ *
1583
+ * Cloud usage example:
1584
+ * - apiPrefix: "/api/v2/sessions/abc123" (replaces /api with this prefix)
1585
+ * - authToken: "eyJ..." (adds Authorization: Bearer header)
1586
+ */
1587
+ interface ApiConfig {
1588
+ /**
1589
+ * API endpoint prefix to replace `/api` in all requests.
1590
+ * For OSS: "" (empty string, uses default /api/* paths)
1591
+ * For Cloud: "/api/v2/sessions/<session_id>" (replaces /api with this)
1592
+ */
1593
+ apiPrefix: string;
1594
+ /**
1595
+ * Optional authentication token for API requests.
1596
+ * When provided, adds "Authorization: Bearer <token>" header.
1597
+ */
1598
+ authToken?: string;
1599
+ /**
1600
+ * Optional base URL override.
1601
+ * When provided, overrides the PUBLIC_API_URL for this context.
1602
+ */
1603
+ baseUrl?: string;
1604
+ }
1605
+ interface ApiConfigContextType extends ApiConfig {
1606
+ /**
1607
+ * Pre-configured axios instance with interceptors for
1608
+ * API prefix replacement and auth token injection.
1609
+ */
1610
+ apiClient: AxiosInstance;
1611
+ }
1612
+ interface ApiConfigProviderProps extends Partial<ApiConfig> {
1613
+ children: React$1.ReactNode;
1614
+ }
1615
+ declare function ApiConfigProvider({
1616
+ children,
1617
+ apiPrefix,
1618
+ authToken,
1619
+ baseUrl
1620
+ }: ApiConfigProviderProps): react_jsx_runtime5.JSX.Element;
1621
+ /**
1622
+ * Hook to access the API configuration and configured axios client.
1623
+ *
1624
+ * When used outside ApiConfigProvider, returns default config with
1625
+ * standard axiosClient (for OSS backward compatibility).
1626
+ *
1627
+ * @returns ApiConfigContextType with apiPrefix, authToken, and apiClient
1628
+ */
1629
+ declare function useApiConfig(): ApiConfigContextType;
1630
+ /**
1631
+ * Hook to get the configured axios client.
1632
+ * Convenience wrapper around useApiConfig().apiClient
1633
+ *
1634
+ * @returns AxiosInstance configured with API prefix and auth token
1635
+ */
1636
+ declare function useApiClient(): AxiosInstance;
1637
+ /**
1638
+ * Safe version of useApiConfig that returns null if outside provider.
1639
+ * Useful for components that need to detect if ApiConfigProvider is present.
1640
+ */
1641
+ declare function useApiConfigSafe(): ApiConfigContextType | null;
1642
+ //#endregion
1643
+ //#region recce-source/js/src/components/check/check.d.ts
1644
+ declare function buildTitle(check: Check): string;
1645
+ declare function buildDescription(check: Check): string;
1646
+ declare function buildQuery(check: Check<RunParamTypes>): string;
1647
+ //#endregion
1648
+ //#region recce-source/js/src/components/schema/schemaDiff.d.ts
1649
+ declare function isSchemaChanged(baseSchema: NodeData["columns"], currSchema: NodeData["columns"]): boolean;
1650
+ //#endregion
1651
+ //#region recce-source/js/src/components/valuediff/shared.d.ts
1652
+ declare function columnPrecisionSelectOptions(colName: string, onColumnsRenderModeChanged: (col: Record<string, ColumnRenderMode>) => void): {
1653
+ value: string;
1654
+ onClick: () => void;
1655
+ }[];
1656
+ //#endregion
1657
+ //#region recce-source/js/src/components/rowcount/delta.d.ts
1658
+ declare function deltaPercentageString(base: number, current: number): string;
1659
+ //#endregion
1660
+ //#region recce-source/js/src/constants/urls.d.ts
1661
+ declare const RECCE_SUPPORT_CALENDAR_URL = "https://cal.com/team/recce/chat";
1662
+ //#endregion
1663
+ //#region recce-source/js/src/constants/tooltipMessage.d.ts
1664
+ declare const DisableTooltipMessages: {
1665
+ readonly add_or_remove: "Unavailable for added or removed resources.";
1666
+ };
1667
+ //#endregion
1668
+ //#region recce-source/js/src/lib/const.d.ts
1669
+ declare const PUBLIC_API_URL: string;
1670
+ declare const PUBLIC_CLOUD_WEB_URL: string;
1671
+ //#endregion
1672
+ //#region src/index.d.ts
1673
+ declare const VERSION = "0.1.0";
1674
+ //#endregion
1675
+ //#region recce-source/js/src/lib/api/adhocQuery.d.ts
1676
+ interface QueryParams extends QueryRunParams, QueryDiffParams, QueryPreviewChangeParams {}
1677
+ interface QueryPreviewChangeParams {
1678
+ current_model?: string;
1679
+ sql_template: string;
1680
+ primary_keys?: string[];
1681
+ }
1682
+ interface QueryRunParams {
1683
+ sql_template: string;
1684
+ }
1685
+ interface QueryViewOptions {
1686
+ pinned_columns?: string[];
1687
+ columnsRenderMode?: Record<string, ColumnRenderMode>;
1688
+ }
1689
+ type QueryResult = DataFrame;
1690
+ interface QueryDiffParams {
1691
+ sql_template: string;
1692
+ base_sql_template?: string;
1693
+ primary_keys?: string[];
1694
+ }
1695
+ interface QueryDiffResult {
1696
+ base?: DataFrame;
1697
+ current?: DataFrame;
1698
+ diff?: DataFrame;
1699
+ }
1700
+ interface QueryDiffViewOptions {
1701
+ changed_only?: boolean;
1702
+ primary_keys?: string[];
1703
+ pinned_columns?: string[];
1704
+ display_mode?: "inline" | "side_by_side";
1705
+ columnsRenderMode?: Record<string, ColumnRenderMode>;
1706
+ }
1707
+ declare function submitQuery(params: QueryRunParams, options?: SubmitOptions): Promise<Run | Pick<Run, "run_id">>;
1708
+ declare function submitQueryBase(params: QueryRunParams, options?: SubmitOptions): Promise<Run | Pick<Run, "run_id">>;
1709
+ declare function submitQueryDiff(params: QueryDiffParams, options?: SubmitOptions): Promise<Run | Pick<Run, "run_id">>;
1710
+ //#endregion
1711
+ //#region recce-source/js/src/lib/api/connectToCloud.d.ts
1712
+ interface ConnectToCloud {
1713
+ connection_url: string;
1714
+ }
1715
+ declare function connectToCloud(): Promise<ConnectToCloud>;
1716
+ //#endregion
1717
+ //#region recce-source/js/src/lib/api/flag.d.ts
1718
+ interface RecceServerFlags {
1719
+ single_env_onboarding: boolean;
1720
+ show_relaunch_hint: boolean;
1721
+ }
1722
+ declare function getServerFlag(client?: AxiosInstance): Promise<RecceServerFlags>;
1723
+ declare function markOnboardingCompleted(client?: AxiosInstance): Promise<void>;
1724
+ declare function markRelaunchHintCompleted(client?: AxiosInstance): Promise<void>;
1725
+ //#endregion
1726
+ //#region recce-source/js/src/lib/api/schemacheck.d.ts
1727
+ interface SchemaDiffViewParams {
1728
+ node_id?: string | string[];
1729
+ select?: string;
1730
+ exclude?: string;
1731
+ view_mode?: "all" | "changed_models";
1732
+ packages?: string[];
1733
+ }
1734
+ declare function createSchemaDiffCheck(params: SchemaDiffViewParams): Promise<Check>;
1735
+ //#endregion
1736
+ //#region recce-source/js/src/lib/api/select.d.ts
1737
+ interface SelectInput {
1738
+ select?: string;
1739
+ exclude?: string;
1740
+ packages?: string[];
1741
+ view_mode?: "all" | "changed_models";
1742
+ }
1743
+ interface SelectOutput {
1744
+ nodes: string[];
1745
+ }
1746
+ declare function select(input: SelectInput): Promise<SelectOutput>;
1747
+ //#endregion
1748
+ //#region recce-source/js/src/lib/api/state.d.ts
1749
+ interface SaveAsInput {
1750
+ filename: string;
1751
+ overwrite?: boolean;
1752
+ }
1753
+ interface ImportedState {
1754
+ runs: number;
1755
+ checks: number;
1756
+ }
1757
+ declare function saveAs(input: SaveAsInput): Promise<void>;
1758
+ declare function rename(input: SaveAsInput): Promise<void>;
1759
+ declare function exportState(): Promise<string>;
1760
+ declare function importState(file: File, checksOnly?: boolean): Promise<ImportedState>;
1761
+ declare function isStateSyncing(): Promise<boolean>;
1762
+ interface SyncStateInput {
1763
+ method?: "overwrite" | "revert" | "merge";
1764
+ }
1765
+ interface SyncStateResponse {
1766
+ status: "accepted" | "conflict" | "syncing";
1767
+ }
1768
+ declare function syncState(input: SyncStateInput): Promise<SyncStateResponse>;
1769
+ interface ShareStateResponse {
1770
+ status: string;
1771
+ message: string;
1772
+ share_url?: string;
1773
+ }
1774
+ declare function shareState(): Promise<ShareStateResponse>;
1775
+ //#endregion
1776
+ //#region recce-source/js/src/lib/api/user.d.ts
1777
+ interface User {
1778
+ id: string;
1779
+ login: string;
1780
+ login_type: string;
1781
+ email: string;
1782
+ onboarding_state: string;
1783
+ }
1784
+ declare function fetchUser(): Promise<User>;
1785
+ declare function fetchGitHubAvatar(userId: string): Promise<string | null>;
1786
+ //#endregion
1787
+ //#region recce-source/js/src/lib/api/version.d.ts
1788
+ declare function useVersionNumber(): {
1789
+ version: string;
1790
+ latestVersion: string;
1791
+ };
1792
+ //#endregion
1793
+ //#region recce-source/js/src/lib/api/localStorageKeys.d.ts
1794
+ declare const localStorageKeys: {
1795
+ bypassSaveOverwrite: string;
1796
+ previewChangeFeedbackID: string;
1797
+ prepareEnvGuideID: string;
1798
+ };
1799
+ //#endregion
1800
+ //#region recce-source/js/src/lib/api/sessionStorageKeys.d.ts
1801
+ declare const sessionStorageKeys: {
1802
+ recommendationIgnored: string;
1803
+ recommendationShowed: string;
1804
+ prevRefreshTimeStamp: string;
1805
+ lineageNotificationDismissed: string;
1806
+ };
1807
+ //#endregion
1808
+ export { ApiConfigProvider as $, ColumnRenderMode as $n, SubmitRunTrackProps as $r, RunPage as $t, QueryDiffParams as A, pullRequestInfo as Ai, LineageViewContext as An, RowCountDiffParams as Ar, IconSync as At, submitQueryDiff as B, MuiProvider as Bi, getCheck as Bn, queryRowCount as Br, RowCountDiffResultView as Bt, createSchemaDiffCheck as C, ServerInfoResult as Ci, RowCountTagProps as Cn, ValueDiffDetailParams as Cr, useCheckToast as Ct, markRelaunchHintCompleted as D, getModelInfo as Di, GraphEdge as Dn, ValueDiffResult as Dr, IconImport as Dt, markOnboardingCompleted as E, getLineageWithError as Ei, GraphColumnNode as En, ValueDiffParams as Er, IconExport as Et, QueryResult as F, VSplit as Fi, Check as Fn, QueryRowCountResult as Fr, ChangeSummary as Ft, RECCE_SUPPORT_CALENDAR_URL as G, useChecks as Gn, ProfileDiffResult as Gr, ValueDiffDetailResultView as Gt, PUBLIC_API_URL as H, reactQueryClient as Hi, markAsPresetCheck as Hn, HistogramDiffResult as Hr, TopKDiffForm as Ht, QueryRunParams as I, ErrorBoundary$1 as Ii, CreateCheckBody as In, RowCount as Ir, SummaryView as It, isSchemaChanged as J, ScreenshotDataGrid as Jn, TopKDiffResult as Jr, RunStatusAndDate as Jt, deltaPercentageString as K, ValueDiffForm as Kn, ProfileDiffViewOptions as Kr, ValueDiffResultView as Kt, QueryViewOptions as L, Toaster as Li, createCheckByRun as Ln, RowCountDiff as Lr, SquareIcon as Lt, QueryDiffViewOptions as M, LineagePage as Mi, LineageView as Mn, RowCountParams as Mr, HistoryToggle as Mt, QueryParams as N, ScreenshotBox as Ni, LineageDiffViewOptions as Nn, RowCountResult as Nr, EnvInfo$1 as Nt, ConnectToCloud as O, getServerInfo as Oi, GraphNode as On, submitValueDiff as Or, IconInfo as Ot, QueryPreviewChangeParams as P, HSplit as Pi, createLineageDiffCheck as Pn, submitRowCountDiff as Pr, SchemaSummary as Pt, ApiConfig as Q, AxiosQueryParams as Qn, SubmitOptions as Qr, RunList as Qt, submitQuery as R, ToasterProvider as Ri, createSimpleCheck as Rn, fetchModelRowCount as Rr, TopKSummaryList as Rt, SchemaDiffViewParams as S, SQLMeshInfo as Si, RowCountDiffTagProps as Sn, isValueDiffRun as Sr, useClipBoardToast as St, getServerFlag as T, getLineageDiff as Ti, NodeView as Tn, ValueDiffDetailViewOptions as Tr, IconEdit as Tt, PUBLIC_CLOUD_WEB_URL as U, reorderChecks as Un, HistogramResult as Ur, HistogramDiffResultView as Ut, VERSION as V, axiosClient as Vi, listChecks as Vn, HistogramDiffParams as Vr, TopKDiffResultView as Vt, DisableTooltipMessages as W, updateCheck as Wn, ProfileDiffParams as Wr, HistogramDiffForm as Wt, buildQuery as X, RunFormProps as Xn, submitProfileDiff as Xr, RunModal as Xt, buildDescription as Y, RunToolbar as Yn, TopKResult as Yr, RunResultPane as Yt, buildTitle as Z, RunResultViewProps as Zn, RunsAggregated as Zr, RunView as Zt, shareState as _, LineageDiffResult as _i, QueryPage as _n, isRowCountRun as _r, useRunsAggregated as _t, fetchGitHubAvatar as a, submitRun as ai, CheckDetail as an, RowObjectType as ar, RecceCheckContextProvider as at, SelectOutput as b, NodeColumnData as bi, ResourceTypeTag as bn, isTopKDiffRun as br, RecceContextProvider as bt, SaveAsInput as c, CllInput as ci, SchemaView as cn, SchemaDiffParams as cr, useRecceActionContext as ct, SyncStateResponse as d, ImpactRadiusParams as di, SetupConnectionGuide as dn, isProfileDiffRun as dr, useRecceQueryContext as dt, aggregateRuns as ei, SchemaDiffView as en, ColumnType as er, useApiClient as et, exportState as f, getCll as fi, DiffText as fn, isProfileRun as fr, useRowCountStateContext as ft, saveAs as g, LineageDiffData as gi, QueryForm as gn, isRowCountDiffRun as gr, useLineageGraphContext as gt, rename as h, LineageDataFromMetadata as hi, SqlEditor as hn, isQueryRun as hr, LineageGraphContextProvider as ht, User as i, searchRuns as ii, CheckBreadcrumb as in, RowDataTypes as ir, useIdleTimeout as it, QueryDiffResult as j, stateMetadata as ji, useLineageViewContext as jn, RowCountDiffResult as jr, IdleTimeoutBadge as jt, connectToCloud as k, gitInfo as ki, LineageViewTopBar as kn, submitValueDiffDetail as kr, IconSave as kt, ShareStateResponse as l, CllNodeData as li, DiffEditor as ln, isHistogramDiffRun as lr, RecceQueryContextProvider as lt, isStateSyncing as m, LineageData as mi, QueryResultView as mn, isQueryDiffRun as mr, useRecceShareStateContext as mt, localStorageKeys as n, getRun as ni, CheckEmptyState as nn, LineageDiffParams as nr, useApiConfigSafe as nt, fetchUser as o, submitRunFromCheck as oi, CheckList as on, Run as or, useRecceCheckContext as ot, importState as p, CatalogMetadata as pi, QueryDiffResultView as pn, isQueryBaseRun as pr, RecceShareStateContextProvider as pt, columnPrecisionSelectOptions as q, ProfileDiffForm as qn, TopKDiffParams as qr, ProfileDiffResultView as qt, useVersionNumber as r, listRuns as ri, CheckDescription as rn, RowData as rr, IdleTimeoutProvider as rt, ImportedState as s, waitRun as si, ColumnNameCell as sn, RunParamTypes as sr, RecceActionContextProvider as st, sessionStorageKeys as t, cancelRun as ti, LineageDiffView as tn, DataFrame as tr, useApiConfig as tt, SyncStateInput as u, ColumnLineageData as ui, CodeEditor as un, isLineageDiffRun as ur, RowCountStateContextProvider as ut, syncState as v, ManifestMetadata as vi, SetupConnectionBanner as vn, isSchemaDiffRun as vr, RecceInstanceInfoProvider as vt, RecceServerFlags as w, getLineage as wi, NodeSqlView as wn, ValueDiffDetailResult as wr, useRecceInstanceInfo as wt, select as x, NodeData as xi, RowCountDiffTag as xn, isValueDiffDetailRun as xr, useValueDiffAlertDialog as xt, SelectInput as y, ModelInfoResult as yi, ModelRowCount as yn, isSimpleRun as yr, useRecceInstanceContext as yt, submitQueryBase as z, useToaster as zi, deleteCheck as zn, queryModelRowCount as zr, HistogramChart as zt };
1809
+ //# sourceMappingURL=index-Sj_wOmNH.d.mts.map