@datarecce/ui 0.1.12 → 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 +4 -4
  11. package/dist/components.d.ts +4 -4
  12. package/dist/components.js +1217 -879
  13. package/dist/components.js.map +1 -1
  14. package/dist/components.mjs +962 -623
  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 +2 -2
  23. package/dist/index.d.ts +2 -2
  24. package/dist/index.js +1311 -962
  25. package/dist/index.js.map +1 -1
  26. package/dist/index.mjs +998 -648
  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,5 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { AxiosResponse } from 'axios';
2
+ import { AxiosInstance, AxiosResponse } from 'axios';
3
3
  import React__default, { ReactNode, CSSProperties, Ref, ForwardRefExoticComponent, RefAttributes, ComponentType } from 'react';
4
4
  import { IconType } from 'react-icons';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -117,7 +117,7 @@ interface ServerInfoResult {
117
117
  codespace: boolean;
118
118
  support_tasks: Record<string, boolean>;
119
119
  }
120
- declare function getServerInfo(): Promise<ServerInfoResult>;
120
+ declare function getServerInfo(client?: AxiosInstance): Promise<ServerInfoResult>;
121
121
  interface ModelInfoResult {
122
122
  model: {
123
123
  base: {
@@ -184,7 +184,7 @@ type RunsAggregated = Record<string, Record<"row_count_diff" | "value_diff" | "r
184
184
  run_id: string;
185
185
  result: unknown;
186
186
  }>>;
187
- declare function aggregateRuns(): Promise<RunsAggregated>;
187
+ declare function aggregateRuns(client?: AxiosInstance): Promise<RunsAggregated>;
188
188
 
189
189
  interface QueryParams extends QueryRunParams, QueryDiffParams, QueryPreviewChangeParams {
190
190
  }
@@ -1,5 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { AxiosResponse } from 'axios';
2
+ import { AxiosInstance, AxiosResponse } from 'axios';
3
3
  import React__default, { ReactNode, CSSProperties, Ref, ForwardRefExoticComponent, RefAttributes, ComponentType } from 'react';
4
4
  import { IconType } from 'react-icons';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -117,7 +117,7 @@ interface ServerInfoResult {
117
117
  codespace: boolean;
118
118
  support_tasks: Record<string, boolean>;
119
119
  }
120
- declare function getServerInfo(): Promise<ServerInfoResult>;
120
+ declare function getServerInfo(client?: AxiosInstance): Promise<ServerInfoResult>;
121
121
  interface ModelInfoResult {
122
122
  model: {
123
123
  base: {
@@ -184,7 +184,7 @@ type RunsAggregated = Record<string, Record<"row_count_diff" | "value_diff" | "r
184
184
  run_id: string;
185
185
  result: unknown;
186
186
  }>>;
187
- declare function aggregateRuns(): Promise<RunsAggregated>;
187
+ declare function aggregateRuns(client?: AxiosInstance): Promise<RunsAggregated>;
188
188
 
189
189
  interface QueryParams extends QueryRunParams, QueryDiffParams, QueryPreviewChangeParams {
190
190
  }
@@ -1,11 +1,39 @@
1
- /* Schema diff color palette */
2
- :root {
1
+ /**
2
+ * Schema diff color palette
3
+ * Uses CSS custom properties for theme-aware colors
4
+ */
5
+
6
+ /* Light mode (default) */
7
+ :root,
8
+ .light {
3
9
  --schema-color-added: rgb(204 255 216);
4
10
  --schema-color-added-hover: rgb(193 246 205);
5
11
  --schema-color-added-active: rgb(166 242 184);
6
12
  --schema-color-removed: rgb(255 215 213);
7
13
  --schema-color-removed-hover: rgb(246 195 193);
8
14
  --schema-color-removed-active: rgb(242 170 166);
15
+ --schema-color-normal: #ffffff;
16
+ --schema-color-normal-hover: rgb(241 241 241);
17
+ --schema-color-normal-active: rgb(230 230 230);
18
+ --schema-color-reordered: rgb(255 173 21);
19
+ --schema-color-reordered-hover: rgb(249 164 6);
20
+ --schema-color-reordered-active: rgb(224 147 6);
21
+ }
22
+
23
+ /* Dark mode */
24
+ .dark {
25
+ --schema-color-added: rgb(26 77 26);
26
+ --schema-color-added-hover: rgb(34 97 34);
27
+ --schema-color-added-active: rgb(42 117 42);
28
+ --schema-color-removed: rgb(92 31 31);
29
+ --schema-color-removed-hover: rgb(112 41 41);
30
+ --schema-color-removed-active: rgb(132 51 51);
31
+ --schema-color-normal: #262626;
32
+ --schema-color-normal-hover: rgb(64 64 64);
33
+ --schema-color-normal-active: rgb(82 82 82);
34
+ --schema-color-reordered: rgb(180 83 9);
35
+ --schema-color-reordered-hover: rgb(146 64 14);
36
+ --schema-color-reordered-active: rgb(120 53 15);
9
37
  }
10
38
 
11
39
  /* Row backgrounds must be applied to cells because rows use display:contents */
@@ -40,18 +68,18 @@
40
68
  }
41
69
 
42
70
  .row-normal {
43
- background-color: white;
71
+ background-color: var(--schema-color-normal);
44
72
  }
45
73
 
46
74
  .row-normal:hover,
47
75
  .row-normal[aria-selected="true"],
48
76
  .row-normal.ag-row-selected {
49
- background-color: rgb(241 241 241);
77
+ background-color: var(--schema-color-normal-hover);
50
78
  }
51
79
 
52
80
  .row-normal[aria-selected="true"]:hover,
53
81
  .row-normal.ag-row-selected:hover {
54
- background-color: rgb(230 230 230);
82
+ background-color: var(--schema-color-normal-active);
55
83
  }
56
84
 
57
85
  .row-selectable {
@@ -91,16 +119,16 @@
91
119
  }
92
120
 
93
121
  .column-index-reordered {
94
- background-color: rgb(255 173 21);
122
+ background-color: var(--schema-color-reordered);
95
123
  }
96
124
 
97
125
  .row-normal:hover .column-index-reordered,
98
126
  .row-normal[aria-selected="true"] .column-index-reordered,
99
127
  .row-normal.ag-row-selected .column-index-reordered {
100
- background-color: rgb(249 164 6);
128
+ background-color: var(--schema-color-reordered-hover);
101
129
  }
102
130
 
103
131
  .row-normal[aria-selected="true"]:hover .column-index-reordered,
104
132
  .row-normal.ag-row-selected:hover .column-index-reordered {
105
- background-color: rgb(224 147 6);
133
+ background-color: var(--schema-color-reordered-active);
106
134
  }
@@ -0,0 +1,42 @@
1
+ /**
2
+ * React Flow Controls - Theme-aware colors
3
+ * Uses CSS custom properties for theme-aware colors
4
+ * Maps to colors from mui-theme.ts neutral palette
5
+ */
6
+
7
+ /* Light mode (default) */
8
+ :root,
9
+ .light {
10
+ --rf-controls-bg: #fafafa; /* neutral[50] */
11
+ --rf-controls-border: #e5e5e5; /* neutral[200] */
12
+ --rf-controls-text: #404040; /* neutral[700] */
13
+ --rf-controls-hover-bg: #e5e5e5; /* neutral[200] */
14
+ }
15
+
16
+ /* Dark mode */
17
+ .dark {
18
+ --rf-controls-bg: #404040; /* neutral[700] */
19
+ --rf-controls-border: #525252; /* neutral[600] */
20
+ --rf-controls-text: #e5e5e5; /* neutral[200] */
21
+ --rf-controls-hover-bg: #525252; /* neutral[600] */
22
+ }
23
+
24
+ /* React Flow Controls */
25
+ .react-flow__controls {
26
+ background-color: var(--rf-controls-bg);
27
+ border-color: var(--rf-controls-border);
28
+ }
29
+
30
+ .react-flow__controls-button {
31
+ background-color: var(--rf-controls-bg);
32
+ color: var(--rf-controls-text);
33
+ border-bottom-color: var(--rf-controls-border);
34
+ }
35
+
36
+ .react-flow__controls-button:hover {
37
+ background-color: var(--rf-controls-hover-bg);
38
+ }
39
+
40
+ .react-flow__controls-button svg {
41
+ fill: var(--rf-controls-text);
42
+ }
@@ -1,11 +1,16 @@
1
+ /**
2
+ * Split pane gutter styles
3
+ * Uses CSS custom properties from global.css for theme-aware colors.
4
+ */
5
+
1
6
  .gutter {
2
- background-color: #eee;
7
+ background-color: var(--recce-gutter-bg);
3
8
  background-repeat: no-repeat;
4
9
  background-position: 50%;
5
10
  }
6
11
 
7
12
  .gutter:hover {
8
- background-color: orange;
13
+ background-color: var(--recce-gutter-hover);
9
14
  }
10
15
 
11
16
  .gutter.gutter-vertical {
package/dist/types.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as Check, aK as RunParamTypes, y as NodeData, aG as ColumnRenderMode } from './lineagecheck-BIlm5vq1.mjs';
2
- export { aB as AxiosQueryParams, aF as ColumnType, aH as DataFrame, aJ as LineageDiffParams, aD as RowData, aC as RowDataTypes, aE as RowObjectType, aL as Run, a_ as RunFormProps, a$ as RunResultViewProps, aI as SchemaDiffParams, aZ as isHistogramDiffRun, aX as isLineageDiffRun, aU as isProfileDiffRun, aT as isProfileRun, aO as isQueryBaseRun, aP as isQueryDiffRun, aN as isQueryRun, aW as isRowCountDiffRun, aV as isRowCountRun, aS as isSchemaDiffRun, aM as isSimpleRun, aY as isTopKDiffRun, aR as isValueDiffDetailRun, aQ as isValueDiffRun } from './lineagecheck-BIlm5vq1.mjs';
1
+ import { C as Check, aK as RunParamTypes, y as NodeData, aG as ColumnRenderMode } from './lineagecheck-BQaKAQzn.mjs';
2
+ export { aB as AxiosQueryParams, aF as ColumnType, aH as DataFrame, aJ as LineageDiffParams, aD as RowData, aC as RowDataTypes, aE as RowObjectType, aL as Run, a_ as RunFormProps, a$ as RunResultViewProps, aI as SchemaDiffParams, aZ as isHistogramDiffRun, aX as isLineageDiffRun, aU as isProfileDiffRun, aT as isProfileRun, aO as isQueryBaseRun, aP as isQueryDiffRun, aN as isQueryRun, aW as isRowCountDiffRun, aV as isRowCountRun, aS as isSchemaDiffRun, aM as isSimpleRun, aY as isTopKDiffRun, aR as isValueDiffDetailRun, aQ as isValueDiffRun } from './lineagecheck-BQaKAQzn.mjs';
3
3
  import '@tanstack/react-query';
4
4
  import 'axios';
5
5
  import 'react';
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as Check, aK as RunParamTypes, y as NodeData, aG as ColumnRenderMode } from './lineagecheck-BIlm5vq1.js';
2
- export { aB as AxiosQueryParams, aF as ColumnType, aH as DataFrame, aJ as LineageDiffParams, aD as RowData, aC as RowDataTypes, aE as RowObjectType, aL as Run, a_ as RunFormProps, a$ as RunResultViewProps, aI as SchemaDiffParams, aZ as isHistogramDiffRun, aX as isLineageDiffRun, aU as isProfileDiffRun, aT as isProfileRun, aO as isQueryBaseRun, aP as isQueryDiffRun, aN as isQueryRun, aW as isRowCountDiffRun, aV as isRowCountRun, aS as isSchemaDiffRun, aM as isSimpleRun, aY as isTopKDiffRun, aR as isValueDiffDetailRun, aQ as isValueDiffRun } from './lineagecheck-BIlm5vq1.js';
1
+ import { C as Check, aK as RunParamTypes, y as NodeData, aG as ColumnRenderMode } from './lineagecheck-BQaKAQzn.js';
2
+ export { aB as AxiosQueryParams, aF as ColumnType, aH as DataFrame, aJ as LineageDiffParams, aD as RowData, aC as RowDataTypes, aE as RowObjectType, aL as Run, a_ as RunFormProps, a$ as RunResultViewProps, aI as SchemaDiffParams, aZ as isHistogramDiffRun, aX as isLineageDiffRun, aU as isProfileDiffRun, aT as isProfileRun, aO as isQueryBaseRun, aP as isQueryDiffRun, aN as isQueryRun, aW as isRowCountDiffRun, aV as isRowCountRun, aS as isSchemaDiffRun, aM as isSimpleRun, aY as isTopKDiffRun, aR as isValueDiffDetailRun, aQ as isValueDiffRun } from './lineagecheck-BQaKAQzn.js';
3
3
  import '@tanstack/react-query';
4
4
  import 'axios';
5
5
  import 'react';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarecce/ui",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Recce UI Components Library - Reusable React components for data validation and review",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -76,27 +76,27 @@
76
76
  },
77
77
  "dependencies": {
78
78
  "@amplitude/unified": "1.0.0-beta.9",
79
- "@emotion/react": "^11.14.0",
80
- "@tanstack/react-query": "^5.0.0",
81
- "@xyflow/react": "^12.0.0",
82
- "axios": "^1.0.0",
83
79
  "@codemirror/lang-sql": "^6.10.0",
84
80
  "@codemirror/lang-yaml": "^6.1.2",
85
81
  "@codemirror/merge": "^6.11.2",
86
82
  "@codemirror/state": "^6.5.2",
87
83
  "@codemirror/view": "^6.39.4",
88
84
  "@dagrejs/dagre": "^1.1.8",
85
+ "@emotion/react": "^11.14.0",
89
86
  "@emotion/styled": "^11.14.1",
90
87
  "@hello-pangea/dnd": "^18.0.1",
91
88
  "@jeromefitz/date-fns-tz": "3.0.0-canary.8",
92
89
  "@mui/material": "^7.3.6",
93
90
  "@mui/system": "^7.3.6",
94
91
  "@sentry/react": "^10.32.1",
92
+ "@tanstack/react-query": "^5.90.12",
95
93
  "@types/js-cookie": "^3.0.6",
96
94
  "@uiw/codemirror-theme-github": "^4.25.4",
97
95
  "@uiw/react-codemirror": "^4.25.4",
96
+ "@xyflow/react": "^12.10.0",
98
97
  "ag-grid-community": "^35.0.0",
99
98
  "ag-grid-react": "^35.0.0",
99
+ "axios": "^1.13.2",
100
100
  "chart.js": "^4.5.1",
101
101
  "codemirror": "^6.0.2",
102
102
  "common-tags": "^1.8.2",
@@ -1,9 +0,0 @@
1
- .node-unhighlight {
2
- filter: opacity(0.2) grayscale(50%);
3
- }
4
-
5
- .node-highlight {
6
- border-width: 1;
7
- border-color: "orange";
8
- box-shadow: "0px 5px 15px #00000040";
9
- }