@datarecce/ui 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LineageViewContext-BPpYWJ2B.d.mts +103 -0
- package/dist/LineageViewContext-DqJPwm_c.d.ts +103 -0
- package/dist/api.d.mts +102 -0
- package/dist/api.d.ts +102 -0
- package/dist/components.d.mts +388 -0
- package/dist/components.d.ts +388 -0
- package/dist/hooks.d.mts +212 -0
- package/dist/hooks.d.ts +212 -0
- package/dist/hooks.js +7078 -34
- package/dist/hooks.js.map +1 -1
- package/dist/hooks.mjs +7026 -21
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.d.mts +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +1375 -314
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1094 -54
- package/dist/index.mjs.map +1 -1
- package/dist/lineagecheck-BIlm5vq1.d.mts +597 -0
- package/dist/lineagecheck-BIlm5vq1.d.ts +597 -0
- package/dist/types.d.mts +33 -0
- package/dist/types.d.ts +33 -0
- package/package.json +13 -18
package/dist/hooks.d.ts
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { d as LineageGraph } from './LineageViewContext-DqJPwm_c.js';
|
|
3
|
+
export { u as useLineageViewContext } from './LineageViewContext-DqJPwm_c.js';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import React__default, { Dispatch, SetStateAction, ReactNode } from 'react';
|
|
6
|
+
import { J as stateMetadata, K as gitInfo, O as pullRequestInfo, M as ManifestMetadata, z as SQLMeshInfo, as as RunsAggregated, b4 as RunType, aB as AxiosQueryParams, aj as SubmitRunTrackProps } from './lineagecheck-BIlm5vq1.js';
|
|
7
|
+
import '@xyflow/react';
|
|
8
|
+
import 'axios';
|
|
9
|
+
import 'react-icons';
|
|
10
|
+
import 'ag-grid-community';
|
|
11
|
+
import 'ag-grid-react';
|
|
12
|
+
|
|
13
|
+
interface RecceInstanceInfo {
|
|
14
|
+
server_mode: "server" | "preview" | "read-only";
|
|
15
|
+
single_env: boolean;
|
|
16
|
+
authed: boolean;
|
|
17
|
+
cloud_instance: boolean;
|
|
18
|
+
lifetime_expired_at?: Date;
|
|
19
|
+
idle_timeout?: number;
|
|
20
|
+
share_url?: string;
|
|
21
|
+
session_id?: string;
|
|
22
|
+
organization_name?: string;
|
|
23
|
+
web_url?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare const useRecceInstanceInfo: () => _tanstack_react_query.UseQueryResult<RecceInstanceInfo, Error>;
|
|
27
|
+
|
|
28
|
+
declare function useCheckToast(): {
|
|
29
|
+
markedAsApprovedToast: () => void;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
declare function useClipBoardToast(): {
|
|
33
|
+
successToast: (message: string) => void;
|
|
34
|
+
failToast: (title: string, error: unknown) => void;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
declare function useValueDiffAlertDialog(): {
|
|
38
|
+
confirm: (nodeCount: number) => Promise<boolean>;
|
|
39
|
+
AlertDialog: react_jsx_runtime.JSX.Element;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
interface RecceContextProps {
|
|
43
|
+
children: React__default.ReactNode;
|
|
44
|
+
}
|
|
45
|
+
declare function RecceContextProvider({ children }: RecceContextProps): react_jsx_runtime.JSX.Element;
|
|
46
|
+
|
|
47
|
+
type RecceFeatureMode = "read only" | "metadata only" | null;
|
|
48
|
+
interface RecceFeatureToggles {
|
|
49
|
+
mode: RecceFeatureMode;
|
|
50
|
+
disableSaveToFile: boolean;
|
|
51
|
+
disableExportStateFile: boolean;
|
|
52
|
+
disableImportStateFile: boolean;
|
|
53
|
+
disableUpdateChecklist: boolean;
|
|
54
|
+
disableDatabaseQuery: boolean;
|
|
55
|
+
disableViewActionDropdown: boolean;
|
|
56
|
+
disableNodeActionDropdown: boolean;
|
|
57
|
+
disableShare: boolean;
|
|
58
|
+
}
|
|
59
|
+
interface InstanceInfoType {
|
|
60
|
+
singleEnv: boolean;
|
|
61
|
+
authed: boolean;
|
|
62
|
+
featureToggles: RecceFeatureToggles;
|
|
63
|
+
lifetimeExpiredAt?: Date;
|
|
64
|
+
shareUrl?: string;
|
|
65
|
+
sessionId?: string;
|
|
66
|
+
}
|
|
67
|
+
declare function RecceInstanceInfoProvider({ children, }: {
|
|
68
|
+
children: React.ReactNode;
|
|
69
|
+
}): react_jsx_runtime.JSX.Element;
|
|
70
|
+
declare const useRecceInstanceContext: () => InstanceInfoType;
|
|
71
|
+
|
|
72
|
+
interface EnvInfo {
|
|
73
|
+
stateMetadata?: stateMetadata;
|
|
74
|
+
adapterType?: string;
|
|
75
|
+
git?: gitInfo;
|
|
76
|
+
pullRequest?: pullRequestInfo;
|
|
77
|
+
dbt?: {
|
|
78
|
+
base: ManifestMetadata | undefined | null;
|
|
79
|
+
current: ManifestMetadata | undefined | null;
|
|
80
|
+
};
|
|
81
|
+
sqlmesh?: SQLMeshInfo | null;
|
|
82
|
+
}
|
|
83
|
+
interface LineageGraphContextType {
|
|
84
|
+
lineageGraph?: LineageGraph;
|
|
85
|
+
envInfo?: EnvInfo;
|
|
86
|
+
reviewMode?: boolean;
|
|
87
|
+
cloudMode?: boolean;
|
|
88
|
+
fileMode?: boolean;
|
|
89
|
+
fileName?: string;
|
|
90
|
+
isDemoSite: boolean;
|
|
91
|
+
isCodespace?: boolean;
|
|
92
|
+
isLoading?: boolean;
|
|
93
|
+
error?: string;
|
|
94
|
+
supportTasks?: Record<string, boolean>;
|
|
95
|
+
retchLineageGraph?: () => void;
|
|
96
|
+
isActionAvailable: (actionName: string) => boolean;
|
|
97
|
+
runsAggregated?: RunsAggregated;
|
|
98
|
+
refetchRunsAggregated?: () => void;
|
|
99
|
+
}
|
|
100
|
+
interface LineageGraphProps {
|
|
101
|
+
children: React__default.ReactNode;
|
|
102
|
+
}
|
|
103
|
+
declare function LineageGraphContextProvider({ children }: LineageGraphProps): react_jsx_runtime.JSX.Element;
|
|
104
|
+
declare const useLineageGraphContext: () => LineageGraphContextType;
|
|
105
|
+
declare const useRunsAggregated: () => [RunsAggregated | undefined, () => void];
|
|
106
|
+
|
|
107
|
+
interface ShareStateProps {
|
|
108
|
+
shareUrl?: string;
|
|
109
|
+
isLoading: boolean;
|
|
110
|
+
error?: string;
|
|
111
|
+
handleShareClick: () => Promise<void>;
|
|
112
|
+
}
|
|
113
|
+
declare function RecceShareStateContextProvider({ children, }: {
|
|
114
|
+
children: React__default.ReactNode;
|
|
115
|
+
}): react_jsx_runtime.JSX.Element;
|
|
116
|
+
declare const useRecceShareStateContext: () => ShareStateProps;
|
|
117
|
+
|
|
118
|
+
interface QueryContext {
|
|
119
|
+
sqlQuery: string;
|
|
120
|
+
setSqlQuery: (sqlQuery: string) => void;
|
|
121
|
+
primaryKeys: string[] | undefined;
|
|
122
|
+
setPrimaryKeys: (primaryKeys: string[] | undefined) => void;
|
|
123
|
+
isCustomQueries: boolean;
|
|
124
|
+
setCustomQueries: (isCustomQueries: boolean) => void;
|
|
125
|
+
baseSqlQuery?: string;
|
|
126
|
+
setBaseSqlQuery?: (baseSqlQuery: string) => void;
|
|
127
|
+
}
|
|
128
|
+
interface QueryContextProps {
|
|
129
|
+
children: React__default.ReactNode;
|
|
130
|
+
}
|
|
131
|
+
declare function RecceQueryContextProvider({ children }: QueryContextProps): react_jsx_runtime.JSX.Element;
|
|
132
|
+
declare const useRecceQueryContext: () => QueryContext;
|
|
133
|
+
interface RowCountStateContext {
|
|
134
|
+
isNodesFetching: string[];
|
|
135
|
+
setIsNodesFetching: (nodes: string[]) => void;
|
|
136
|
+
}
|
|
137
|
+
interface RowCountStateContextProps {
|
|
138
|
+
children: React__default.ReactNode;
|
|
139
|
+
}
|
|
140
|
+
declare function RowCountStateContextProvider({ children, }: RowCountStateContextProps): react_jsx_runtime.JSX.Element;
|
|
141
|
+
declare const useRowCountStateContext: () => RowCountStateContext;
|
|
142
|
+
|
|
143
|
+
interface RecceActionOptions {
|
|
144
|
+
showForm: boolean;
|
|
145
|
+
showLast?: boolean;
|
|
146
|
+
trackProps?: SubmitRunTrackProps;
|
|
147
|
+
}
|
|
148
|
+
interface RecceActionContextType {
|
|
149
|
+
runAction: (type: RunType, params?: AxiosQueryParams, actionOptions?: RecceActionOptions) => void;
|
|
150
|
+
runId?: string;
|
|
151
|
+
showRunId: (runId: string, refreshHistory?: boolean) => void;
|
|
152
|
+
isRunResultOpen: boolean;
|
|
153
|
+
closeRunResult: () => void;
|
|
154
|
+
isHistoryOpen: boolean;
|
|
155
|
+
closeHistory: () => void;
|
|
156
|
+
showHistory: () => void;
|
|
157
|
+
setHistoryOpen: Dispatch<SetStateAction<boolean>>;
|
|
158
|
+
clearRunResult: () => void;
|
|
159
|
+
}
|
|
160
|
+
interface RecceActionContextProviderProps {
|
|
161
|
+
children: React__default.ReactNode;
|
|
162
|
+
}
|
|
163
|
+
declare function RecceActionContextProvider({ children, }: RecceActionContextProviderProps): react_jsx_runtime.JSX.Element;
|
|
164
|
+
declare const useRecceActionContext: () => RecceActionContextType;
|
|
165
|
+
|
|
166
|
+
interface CheckContext {
|
|
167
|
+
latestSelectedCheckId: string;
|
|
168
|
+
setLatestSelectedCheckId: (selectCheckId: string) => void;
|
|
169
|
+
}
|
|
170
|
+
interface CheckContextProps {
|
|
171
|
+
children: React__default.ReactNode;
|
|
172
|
+
}
|
|
173
|
+
declare function RecceCheckContextProvider({ children }: CheckContextProps): react_jsx_runtime.JSX.Element;
|
|
174
|
+
declare const useRecceCheckContext: () => CheckContext;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Context for sharing idle timeout state across components
|
|
178
|
+
*
|
|
179
|
+
* IMPORTANT: The countdown is based on the last SUCCESSFUL keep-alive API call,
|
|
180
|
+
* NOT on user activity. This ensures the countdown accurately reflects the
|
|
181
|
+
* server's idle timeout state.
|
|
182
|
+
*/
|
|
183
|
+
interface IdleTimeoutContextType {
|
|
184
|
+
/** Remaining seconds until timeout (null if idle timeout not enabled) */
|
|
185
|
+
remainingSeconds: number | null;
|
|
186
|
+
/** Idle timeout value from server in seconds (null if not configured) */
|
|
187
|
+
idleTimeout: number | null;
|
|
188
|
+
/** Whether idle timeout is enabled */
|
|
189
|
+
isEnabled: boolean;
|
|
190
|
+
/** Mark as disconnected - stops countdown and keep-alive */
|
|
191
|
+
setDisconnected: () => void;
|
|
192
|
+
/** Reset connection state - restarts countdown and keep-alive after successful reconnect */
|
|
193
|
+
resetConnection: () => void;
|
|
194
|
+
/** Whether the connection is disconnected */
|
|
195
|
+
isDisconnected: boolean;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Provider for idle timeout state
|
|
199
|
+
*
|
|
200
|
+
* The countdown is based on lastServerSyncTime (when keep-alive API was last
|
|
201
|
+
* successfully sent), not on user activity. This provides accurate server state.
|
|
202
|
+
*/
|
|
203
|
+
declare function IdleTimeoutProvider({ children }: {
|
|
204
|
+
children: ReactNode;
|
|
205
|
+
}): react_jsx_runtime.JSX.Element;
|
|
206
|
+
/**
|
|
207
|
+
* Hook to access idle timeout context
|
|
208
|
+
* @throws Error if used outside IdleTimeoutProvider
|
|
209
|
+
*/
|
|
210
|
+
declare function useIdleTimeout(): IdleTimeoutContextType;
|
|
211
|
+
|
|
212
|
+
export { IdleTimeoutProvider, LineageGraphContextProvider, RecceActionContextProvider, RecceCheckContextProvider, RecceContextProvider, RecceInstanceInfoProvider, RecceQueryContextProvider, RecceShareStateContextProvider, RowCountStateContextProvider, useCheckToast, useClipBoardToast, useIdleTimeout, useLineageGraphContext, useRecceActionContext, useRecceCheckContext, useRecceInstanceContext, useRecceInstanceInfo, useRecceQueryContext, useRecceShareStateContext, useRowCountStateContext, useRunsAggregated, useValueDiffAlertDialog };
|