@datarecce/ui 0.1.11 → 0.1.13

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 (36) hide show
  1. package/dist/{LineageViewContext-BPpYWJ2B.d.mts → LineageViewContext-DEa54ZNF.d.mts} +1 -1
  2. package/dist/{LineageViewContext-DqJPwm_c.d.ts → LineageViewContext-DPVC8ak8.d.ts} +1 -1
  3. package/dist/{agGridStyles-L5J6VVIU.css → agGridStyles-VYALGSJU.css} +4 -3
  4. package/dist/api.d.mts +6 -5
  5. package/dist/api.d.ts +6 -5
  6. package/dist/api.js +13 -12
  7. package/dist/api.js.map +1 -1
  8. package/dist/api.mjs +13 -12
  9. package/dist/api.mjs.map +1 -1
  10. package/dist/components.d.mts +162 -78
  11. package/dist/components.d.ts +162 -78
  12. package/dist/components.js +2140 -1403
  13. package/dist/components.js.map +1 -1
  14. package/dist/components.mjs +1875 -1155
  15. package/dist/components.mjs.map +1 -1
  16. package/dist/hooks.d.mts +23 -3
  17. package/dist/hooks.d.ts +23 -3
  18. package/dist/hooks.js +742 -538
  19. package/dist/hooks.js.map +1 -1
  20. package/dist/hooks.mjs +587 -383
  21. package/dist/hooks.mjs.map +1 -1
  22. package/dist/index.d.mts +6 -5
  23. package/dist/index.d.ts +6 -5
  24. package/dist/index.js +2196 -1491
  25. package/dist/index.js.map +1 -1
  26. package/dist/index.mjs +1871 -1183
  27. package/dist/index.mjs.map +1 -1
  28. package/dist/{lineagecheck-BIlm5vq1.d.ts → lineagecheck-BQaKAQzn.d.mts} +3 -3
  29. package/dist/{lineagecheck-BIlm5vq1.d.mts → lineagecheck-BQaKAQzn.d.ts} +3 -3
  30. package/dist/{style-LYNBK7ND.css → style-466WWZLM.css} +36 -8
  31. package/dist/styles-JV3V5MVO.css +42 -0
  32. package/dist/{styles-PJUYW64Y.css → styles-QUPOR3LM.css} +7 -2
  33. package/dist/types.d.mts +2 -2
  34. package/dist/types.d.ts +2 -2
  35. package/package.json +5 -5
  36. package/dist/styles-VXS6KNFS.css +0 -9
@@ -1,14 +1,15 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
3
  import React__default, { ReactNode, ComponentType } from 'react';
4
- import { a as LineageGraphNode, b as LineageGraphEdge, c as LineageGraphColumnNode, d as LineageGraph } from './LineageViewContext-DqJPwm_c.js';
5
- export { L as LineageViewContext, u as useLineageViewContext } from './LineageViewContext-DqJPwm_c.js';
6
- import { Y as LineageDiffViewOptions, $ as RowCountDiff, _ as RowCount, M as ManifestMetadata, a$ as RunResultViewProps, c as QueryViewOptions, aL as Run, b0 as DataGridHandle, g as QueryDiffViewOptions, a6 as ProfileDiffViewOptions, ac as HistogramResult, a9 as TopKResult, a_ as RunFormProps, ab as HistogramDiffParams, a8 as TopKDiffParams, b1 as ViewOptionTypes, y as NodeData, aE as RowObjectType, C as Check, b2 as RegistryEntry, b3 as RefTypes, b4 as RunType, b5 as RunFormParamTypes } from './lineagecheck-BIlm5vq1.js';
7
- export { P as ProfileDiffForm, R as RunToolbar, S as ScreenshotDataGrid, V as ValueDiffForm } from './lineagecheck-BIlm5vq1.js';
8
- import { NodeProps, EdgeProps } from '@xyflow/react';
4
+ import { FallbackRender } from '@sentry/react';
5
+ import { SplitProps } from 'react-split';
9
6
  import { BoxProps } from '@mui/material/Box';
7
+ import { a as LineageGraphNode, b as LineageGraphEdge, c as LineageGraphColumnNode, d as LineageGraph } from './LineageViewContext-DPVC8ak8.js';
8
+ export { L as LineageViewContext, u as useLineageViewContext } from './LineageViewContext-DPVC8ak8.js';
9
+ import { Y as LineageDiffViewOptions, $ as RowCountDiff, _ as RowCount, M as ManifestMetadata, a$ as RunResultViewProps, c as QueryViewOptions, aL as Run, b0 as DataGridHandle, g as QueryDiffViewOptions, y as NodeData, aE as RowObjectType, C as Check, b1 as ViewOptionTypes, b2 as RegistryEntry, b3 as RefTypes, b4 as RunType, b5 as RunFormParamTypes, a_ as RunFormProps, a6 as ProfileDiffViewOptions, az as ValueDiffDetailViewOptions, ab as HistogramDiffParams, a8 as TopKDiffParams, ac as HistogramResult, a9 as TopKResult } from './lineagecheck-BQaKAQzn.js';
10
+ export { P as ProfileDiffForm, R as RunToolbar, S as ScreenshotDataGrid, V as ValueDiffForm } from './lineagecheck-BQaKAQzn.js';
11
+ import { NodeProps, EdgeProps } from '@xyflow/react';
10
12
  import { AnimationOptions } from 'chart.js';
11
- import { SplitProps } from 'react-split';
12
13
  import '@tanstack/react-query';
13
14
  import 'axios';
14
15
  import 'react-icons';
@@ -83,6 +84,21 @@ declare function useToaster(): ToasterContextValue;
83
84
  */
84
85
  declare function Toaster(): react_jsx_runtime.JSX.Element;
85
86
 
87
+ declare const ErrorBoundary: ({ children, fallback, }: {
88
+ children: ReactNode;
89
+ fallback?: React$1.ReactElement | FallbackRender | undefined;
90
+ }) => react_jsx_runtime.JSX.Element;
91
+
92
+ declare const HSplit: (props: SplitProps) => react_jsx_runtime.JSX.Element;
93
+ declare const VSplit: (props: SplitProps) => react_jsx_runtime.JSX.Element;
94
+
95
+ interface ScreenshotBoxProps extends BoxProps {
96
+ backgroundColor?: string;
97
+ blockSize?: string;
98
+ children?: React.ReactNode;
99
+ }
100
+ declare const ScreenshotBox: React$1.ForwardRefExoticComponent<Omit<ScreenshotBoxProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
101
+
86
102
  declare function LineagePage(): react_jsx_runtime.JSX.Element;
87
103
 
88
104
  interface LineageViewProps {
@@ -142,14 +158,16 @@ interface RowCountTagProps {
142
158
  error?: Error | null;
143
159
  }
144
160
 
161
+ declare function SetupConnectionBanner(): react_jsx_runtime.JSX.Element;
162
+
163
+ declare const QueryPage: () => react_jsx_runtime.JSX.Element;
164
+
145
165
  interface QueryFormProps extends BoxProps {
146
166
  defaultPrimaryKeys: string[] | undefined;
147
167
  onPrimaryKeysChange: (primaryKeys: string[]) => void;
148
168
  }
149
169
  declare const QueryForm: ({ defaultPrimaryKeys, onPrimaryKeysChange, ...props }: QueryFormProps) => react_jsx_runtime.JSX.Element;
150
170
 
151
- declare const QueryPage: () => react_jsx_runtime.JSX.Element;
152
-
153
171
  interface SqlEditorProps {
154
172
  language?: string;
155
173
  theme?: string;
@@ -173,15 +191,6 @@ interface SqlEditorProps {
173
191
  }
174
192
  declare function SqlEditor({ value, onChange, onRun, onRunBase, onRunDiff, label, CustomEditor, options, manifestData, schemas, ...props }: SqlEditorProps): react_jsx_runtime.JSX.Element;
175
193
 
176
- interface DiffTextProps {
177
- value: string;
178
- colorPalette: "red" | "green";
179
- grayOut?: boolean;
180
- noCopy?: boolean;
181
- fontSize?: string;
182
- }
183
- declare const DiffText: ({ value, colorPalette, grayOut, noCopy, fontSize, }: DiffTextProps) => react_jsx_runtime.JSX.Element;
184
-
185
194
  interface QueryResultViewProp extends RunResultViewProps<QueryViewOptions> {
186
195
  onAddToChecklist?: (run: Run) => void;
187
196
  }
@@ -194,58 +203,56 @@ interface QueryDiffResultViewProps extends RunResultViewProps<QueryDiffViewOptio
194
203
  }
195
204
  declare const QueryDiffResultView: React$1.ForwardRefExoticComponent<QueryDiffResultViewProps & React$1.RefAttributes<DataGridHandle>>;
196
205
 
197
- type ProfileDiffResultViewProp = RunResultViewProps<ProfileDiffViewOptions>;
198
- declare const ProfileDiffResultView: React$1.ForwardRefExoticComponent<ProfileDiffResultViewProp & React$1.RefAttributes<DataGridHandle>>;
199
-
200
- /**
201
- * Histogram Chart that can display generic data types such as Numeric, Datetime, Integer
202
- * X: The Min/Max of the labels range is the scaled width of charting area
203
- * Y: The Min/Max of the counts range is the scaled height of charting area
204
- * Counts: Abbreviated based on K, Mn, Bn, Tr (see formatters)
205
- */
206
- interface HistogramChartProps {
207
- data: {
208
- title: string;
209
- type: string;
210
- samples?: number;
211
- min?: string | number;
212
- max?: string | number;
213
- binEdges: number[];
214
- datasets: HistogramResult[];
215
- };
216
- animation?: AnimationOptions<"bar">["animation"];
217
- hideAxis?: boolean;
218
- }
219
- declare function HistogramChart({ data, hideAxis, animation, }: HistogramChartProps): react_jsx_runtime.JSX.Element;
220
-
221
- interface Props$2 {
222
- topk: TopKResult;
223
- valids: number;
224
- isDisplayTopTen: boolean;
206
+ interface DiffTextProps {
207
+ value: string;
208
+ colorPalette: "red" | "green";
209
+ grayOut?: boolean;
210
+ noCopy?: boolean;
211
+ fontSize?: string;
225
212
  }
226
- /**
227
- * A list of each topk summary item (categorical)
228
- * Last list item will show 'others' when there are leftover values, which is the count difference of valids and displayed topk items
229
- */
230
- declare function TopKSummaryList({ topk, valids, isDisplayTopTen }: Props$2): react_jsx_runtime.JSX.Element;
231
-
232
- declare function SquareIcon({ color }: {
233
- color: string;
234
- }): react_jsx_runtime.JSX.Element;
235
-
236
- type HistogramDiffEditProps = RunFormProps<HistogramDiffParams>;
237
- declare function HistogramDiffForm({ params, onParamsChanged, setIsReadyToExecute, }: HistogramDiffEditProps): react_jsx_runtime.JSX.Element;
238
-
239
- type HistogramDiffResultViewProp = RunResultViewProps;
240
- declare const HistogramDiffResultView: React$1.ForwardRefExoticComponent<HistogramDiffResultViewProp & React$1.RefAttributes<HTMLDivElement>>;
213
+ declare const DiffText: ({ value, colorPalette, grayOut, noCopy, fontSize, }: DiffTextProps) => react_jsx_runtime.JSX.Element;
241
214
 
242
- type TopKDiffFormProps = RunFormProps<TopKDiffParams>;
243
- declare function TopKDiffForm({ params, onParamsChanged, setIsReadyToExecute, }: TopKDiffFormProps): react_jsx_runtime.JSX.Element;
215
+ declare function SetupConnectionGuide(): react_jsx_runtime.JSX.Element;
244
216
 
245
- type TopKDiffResultViewProp = RunResultViewProps;
246
- declare const TopKDiffResultView: React$1.ForwardRefExoticComponent<TopKDiffResultViewProp & React$1.RefAttributes<HTMLDivElement>>;
247
-
248
- declare const RowCountDiffResultView: React$1.ForwardRefExoticComponent<RunResultViewProps<ViewOptionTypes> & React$1.RefAttributes<DataGridHandle>>;
217
+ type CodeEditorLanguage = "sql" | "yaml";
218
+ type CodeEditorTheme = "light" | "dark";
219
+ interface CodeEditorProps {
220
+ value: string;
221
+ onChange?: (value: string) => void;
222
+ language?: CodeEditorLanguage;
223
+ readOnly?: boolean;
224
+ lineNumbers?: boolean;
225
+ wordWrap?: boolean;
226
+ fontSize?: number;
227
+ height?: string;
228
+ className?: string;
229
+ /** Theme: "light" for githubLight, "dark" for githubDark */
230
+ theme?: CodeEditorTheme;
231
+ /** Custom keyboard shortcuts: { key: handler } */
232
+ keyBindings?: Array<{
233
+ key: string;
234
+ run: () => boolean;
235
+ }>;
236
+ }
237
+ declare function CodeEditor({ value, onChange, language, readOnly, lineNumbers, wordWrap, fontSize, height, className, theme, keyBindings, }: CodeEditorProps): react_jsx_runtime.JSX.Element;
238
+
239
+ type DiffEditorLanguage = "sql" | "yaml";
240
+ type DiffEditorTheme = "light" | "dark";
241
+ interface DiffEditorProps {
242
+ original: string;
243
+ modified: string;
244
+ language?: DiffEditorLanguage;
245
+ readOnly?: boolean;
246
+ lineNumbers?: boolean;
247
+ sideBySide?: boolean;
248
+ height?: string;
249
+ className?: string;
250
+ /** Theme: "light" for githubLight, "dark" for githubDark */
251
+ theme?: DiffEditorTheme;
252
+ /** Called when modified content changes (only if not readOnly) */
253
+ onModifiedChange?: (value: string) => void;
254
+ }
255
+ declare function DiffEditor({ original, modified, language, readOnly, lineNumbers, sideBySide, height, className, theme, onModifiedChange, }: DiffEditorProps): react_jsx_runtime.JSX.Element;
249
256
 
250
257
  interface SchemaViewProps {
251
258
  base?: NodeData;
@@ -305,6 +312,8 @@ interface CheckDescriptionProps {
305
312
  }
306
313
  declare function CheckDescription({ value, onChange }: CheckDescriptionProps): react_jsx_runtime.JSX.Element;
307
314
 
315
+ declare const CheckEmptyState: () => react_jsx_runtime.JSX.Element;
316
+
308
317
  interface LineageDiffViewProps {
309
318
  check: Check;
310
319
  }
@@ -315,10 +324,10 @@ interface SchemaDiffViewProps {
315
324
  }
316
325
  declare const SchemaDiffView: React__default.ForwardRefExoticComponent<SchemaDiffViewProps & React__default.RefAttributes<DataGridHandle>>;
317
326
 
318
- interface RunPageProps {
327
+ interface RunPageProps$1 {
319
328
  runId: string;
320
329
  }
321
- declare const RunPage: ({ runId }: RunPageProps) => react_jsx_runtime.JSX.Element;
330
+ declare const RunPage: ({ runId }: RunPageProps$1) => react_jsx_runtime.JSX.Element;
322
331
 
323
332
  declare const RunList: () => react_jsx_runtime.JSX.Element;
324
333
 
@@ -350,10 +359,86 @@ interface RunModalProps {
350
359
  }
351
360
  declare const RunModal: ({ isOpen, onClose, onExecute, type, title, params: defaultParams, RunForm, }: RunModalProps) => react_jsx_runtime.JSX.Element;
352
361
 
362
+ interface RunPageProps {
363
+ onClose?: () => void;
364
+ disableAddToChecklist?: boolean;
365
+ isSingleEnvironment?: boolean;
366
+ }
367
+ declare const RunResultPane: ({ onClose, isSingleEnvironment, }: RunPageProps) => react_jsx_runtime.JSX.Element;
368
+
353
369
  declare const RunStatusAndDate: ({ run }: {
354
370
  run: Run;
355
371
  }) => react_jsx_runtime.JSX.Element;
356
372
 
373
+ type ProfileDiffResultViewProp = RunResultViewProps<ProfileDiffViewOptions>;
374
+ declare const ProfileDiffResultView: React$1.ForwardRefExoticComponent<ProfileDiffResultViewProp & React$1.RefAttributes<DataGridHandle>>;
375
+
376
+ /**
377
+ * @file ValueDiffResultView.tsx
378
+ * @description View component for displaying value diff summary results
379
+ *
380
+ * Shows a summary table of column-level match statistics from a value_diff run.
381
+ * Each row represents a column with its match count and percentage.
382
+ */
383
+
384
+ type ValueDiffResultViewProp = RunResultViewProps;
385
+ declare const ValueDiffResultView: React__default.ForwardRefExoticComponent<ValueDiffResultViewProp & React__default.RefAttributes<DataGridHandle>>;
386
+
387
+ interface ValueDiffDetailResultViewProps extends RunResultViewProps<ValueDiffDetailViewOptions> {
388
+ onAddToChecklist?: (run: Run) => void;
389
+ }
390
+ declare const ValueDiffDetailResultView: React$1.ForwardRefExoticComponent<ValueDiffDetailResultViewProps & React$1.RefAttributes<DataGridHandle>>;
391
+
392
+ type HistogramDiffEditProps = RunFormProps<HistogramDiffParams>;
393
+ declare function HistogramDiffForm({ params, onParamsChanged, setIsReadyToExecute, }: HistogramDiffEditProps): react_jsx_runtime.JSX.Element;
394
+
395
+ type HistogramDiffResultViewProp = RunResultViewProps;
396
+ declare const HistogramDiffResultView: React$1.ForwardRefExoticComponent<HistogramDiffResultViewProp & React$1.RefAttributes<HTMLDivElement>>;
397
+
398
+ type TopKDiffFormProps = RunFormProps<TopKDiffParams>;
399
+ declare function TopKDiffForm({ params, onParamsChanged, setIsReadyToExecute, }: TopKDiffFormProps): react_jsx_runtime.JSX.Element;
400
+
401
+ type TopKDiffResultViewProp = RunResultViewProps;
402
+ declare const TopKDiffResultView: React$1.ForwardRefExoticComponent<TopKDiffResultViewProp & React$1.RefAttributes<HTMLDivElement>>;
403
+
404
+ declare const RowCountDiffResultView: React$1.ForwardRefExoticComponent<RunResultViewProps<ViewOptionTypes> & React$1.RefAttributes<DataGridHandle>>;
405
+
406
+ /**
407
+ * Histogram Chart that can display generic data types such as Numeric, Datetime, Integer
408
+ * X: The Min/Max of the labels range is the scaled width of charting area
409
+ * Y: The Min/Max of the counts range is the scaled height of charting area
410
+ * Counts: Abbreviated based on K, Mn, Bn, Tr (see formatters)
411
+ */
412
+ interface HistogramChartProps {
413
+ data: {
414
+ title: string;
415
+ type: string;
416
+ samples?: number;
417
+ min?: string | number;
418
+ max?: string | number;
419
+ binEdges: number[];
420
+ datasets: HistogramResult[];
421
+ };
422
+ animation?: AnimationOptions<"bar">["animation"];
423
+ hideAxis?: boolean;
424
+ }
425
+ declare function HistogramChart({ data, hideAxis, animation, }: HistogramChartProps): react_jsx_runtime.JSX.Element;
426
+
427
+ interface Props$2 {
428
+ topk: TopKResult;
429
+ valids: number;
430
+ isDisplayTopTen: boolean;
431
+ }
432
+ /**
433
+ * A list of each topk summary item (categorical)
434
+ * Last list item will show 'others' when there are leftover values, which is the count difference of valids and displayed topk items
435
+ */
436
+ declare function TopKSummaryList({ topk, valids, isDisplayTopTen }: Props$2): react_jsx_runtime.JSX.Element;
437
+
438
+ declare function SquareIcon({ color }: {
439
+ color: string;
440
+ }): react_jsx_runtime.JSX.Element;
441
+
357
442
  declare function SummaryView(): react_jsx_runtime.JSX.Element;
358
443
 
359
444
  interface Props$1 {
@@ -366,17 +451,16 @@ interface Props {
366
451
  }
367
452
  declare function SchemaSummary({ lineageGraph }: Props): react_jsx_runtime.JSX.Element;
368
453
 
369
- declare function HistoryToggle(): ReactNode;
454
+ declare function EnvInfo(): react_jsx_runtime.JSX.Element;
370
455
 
371
- declare const HSplit: (props: SplitProps) => react_jsx_runtime.JSX.Element;
372
- declare const VSplit: (props: SplitProps) => react_jsx_runtime.JSX.Element;
456
+ declare function HistoryToggle(): ReactNode;
373
457
 
374
- interface ScreenshotBoxProps extends BoxProps {
375
- backgroundColor?: string;
376
- blockSize?: string;
377
- children?: React.ReactNode;
378
- }
379
- declare const ScreenshotBox: React$1.ForwardRefExoticComponent<Omit<ScreenshotBoxProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
458
+ /**
459
+ * Badge component that displays idle timeout warning countdown
460
+ * Only shows when remaining time is below the warning threshold
461
+ * Styled as a warning indicator to draw user attention
462
+ */
463
+ declare function IdleTimeoutBadge(): react_jsx_runtime.JSX.Element;
380
464
 
381
465
  declare const IconSync: (props: React__default.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
382
466
  declare const IconExport: (props: React__default.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
@@ -385,4 +469,4 @@ declare const IconSave: (props: React__default.SVGProps<SVGSVGElement>) => react
385
469
  declare const IconEdit: (props: React__default.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
386
470
  declare const IconInfo: (props: React__default.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
387
471
 
388
- export { ChangeSummary, CheckBreadcrumb, CheckDescription, CheckDetail, CheckList, ColumnNameCell, DiffText, GraphColumnNode, GraphEdge, GraphNode, HSplit, HistogramChart, HistogramDiffForm, HistogramDiffResultView, HistoryToggle, IconEdit, IconExport, IconImport, IconInfo, IconSave, IconSync, LineageDiffView, LineagePage, LineageView, LineageViewTopBar, ModelRowCount, MuiProvider, MuiProvider as MuiProviderDefault, NodeSqlView, NodeView, ProfileDiffResultView, QueryDiffResultView, QueryForm, QueryPage, QueryResultView, ResourceTypeTag, RowCountDiffResultView, RowCountDiffTag, type RowCountDiffTagProps, type RowCountTagProps, RunList, RunModal, RunPage, RunStatusAndDate, RunView, SchemaDiffView, SchemaSummary, SchemaView, ScreenshotBox, SqlEditor, SquareIcon, SummaryView, Toaster, ToasterProvider, TopKDiffForm, TopKDiffResultView, TopKSummaryList, VSplit, useToaster };
472
+ export { ChangeSummary, CheckBreadcrumb, CheckDescription, CheckDetail, CheckEmptyState, CheckList, CodeEditor, ColumnNameCell, DiffEditor, DiffText, EnvInfo, ErrorBoundary, GraphColumnNode, GraphEdge, GraphNode, HSplit, HistogramChart, HistogramDiffForm, HistogramDiffResultView, HistoryToggle, IconEdit, IconExport, IconImport, IconInfo, IconSave, IconSync, IdleTimeoutBadge, LineageDiffView, LineagePage, LineageView, LineageViewTopBar, ModelRowCount, MuiProvider, MuiProvider as MuiProviderDefault, NodeSqlView, NodeView, ProfileDiffResultView, QueryDiffResultView, QueryForm, QueryPage, QueryResultView, ResourceTypeTag, RowCountDiffResultView, RowCountDiffTag, type RowCountDiffTagProps, type RowCountTagProps, RunList, RunModal, RunPage, RunResultPane, RunStatusAndDate, RunView, SchemaDiffView, SchemaSummary, SchemaView, ScreenshotBox, SetupConnectionBanner, SetupConnectionGuide, SqlEditor, SquareIcon, SummaryView, Toaster, ToasterProvider, TopKDiffForm, TopKDiffResultView, TopKSummaryList, VSplit, ValueDiffDetailResultView, ValueDiffResultView, useToaster };