@mdxui/do 4.0.1 → 4.0.8
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/app/index.d.ts +32 -186
- package/dist/app/index.js +19 -11
- package/dist/auth/index.d.ts +48 -0
- package/dist/auth/index.js +4 -0
- package/dist/{breadcrumbs-C9Qn3S7d.d.ts → breadcrumbs-DltlCiHt.d.ts} +3 -3
- package/dist/chunk-2FWXT4HH.js +576 -0
- package/dist/chunk-2FWXT4HH.js.map +1 -0
- package/dist/chunk-5PC6U46L.js +604 -0
- package/dist/chunk-5PC6U46L.js.map +1 -0
- package/dist/chunk-63VCRTDQ.js +2505 -0
- package/dist/chunk-63VCRTDQ.js.map +1 -0
- package/dist/chunk-7J3RSIG4.js +178 -0
- package/dist/chunk-7J3RSIG4.js.map +1 -0
- package/dist/chunk-7QCTRNEJ.js +173 -0
- package/dist/chunk-7QCTRNEJ.js.map +1 -0
- package/dist/chunk-7TFHUKS7.js +66 -0
- package/dist/chunk-7TFHUKS7.js.map +1 -0
- package/dist/{chunk-LJIWB7KE.js → chunk-BU5HMHGQ.js} +3 -3
- package/dist/chunk-BU5HMHGQ.js.map +1 -0
- package/dist/{chunk-GGO5GW72.js → chunk-BZURBNFD.js} +305 -51
- package/dist/chunk-BZURBNFD.js.map +1 -0
- package/dist/{chunk-XH3LVW7J.js → chunk-FM2RTAHV.js} +5 -65
- package/dist/chunk-FM2RTAHV.js.map +1 -0
- package/dist/{chunk-OHWWWONS.js → chunk-HC4PBXV4.js} +131 -58
- package/dist/chunk-HC4PBXV4.js.map +1 -0
- package/dist/{chunk-Y52IEYVM.js → chunk-JPZ6RZJE.js} +78 -45
- package/dist/chunk-JPZ6RZJE.js.map +1 -0
- package/dist/{chunk-KAZJ43F6.js → chunk-KLN5OTQH.js} +168 -361
- package/dist/chunk-KLN5OTQH.js.map +1 -0
- package/dist/chunk-LCYBQR35.js +79 -0
- package/dist/chunk-LCYBQR35.js.map +1 -0
- package/dist/chunk-PJYGRD7N.js +216 -0
- package/dist/chunk-PJYGRD7N.js.map +1 -0
- package/dist/chunk-QEXY4FZV.js +292 -0
- package/dist/chunk-QEXY4FZV.js.map +1 -0
- package/dist/chunk-SX4IIE2R.js +53 -0
- package/dist/chunk-SX4IIE2R.js.map +1 -0
- package/dist/chunk-UCWMSKCW.js +901 -0
- package/dist/chunk-UCWMSKCW.js.map +1 -0
- package/dist/{chunk-YMQRC6IC.js → chunk-WC6SFBAF.js} +59 -6
- package/dist/chunk-WC6SFBAF.js.map +1 -0
- package/dist/chunk-WIKU77ZY.js +18 -0
- package/dist/chunk-WIKU77ZY.js.map +1 -0
- package/dist/chunk-X3AWNFBF.js +47 -0
- package/dist/chunk-X3AWNFBF.js.map +1 -0
- package/dist/chunk-ZZTQGMLX.js +23 -0
- package/dist/chunk-ZZTQGMLX.js.map +1 -0
- package/dist/{lib → client}/index.d.ts +97 -345
- package/dist/client/index.js +3 -0
- package/dist/common-DW_JM2dW.d.ts +454 -0
- package/dist/components/index.d.ts +11 -2
- package/dist/components/index.js +8 -3
- package/dist/{config-CxvpD8Y6.d.ts → config-DB14_LhF.d.ts} +1 -1
- package/dist/{do-D27i5bU0.d.ts → do-D37hbmL9.d.ts} +6 -14
- package/dist/dotdo-client-2DkwXHM2.d.ts +344 -0
- package/dist/errors-BOY11CJs.d.ts +373 -0
- package/dist/features/data-browser/index.d.ts +51 -0
- package/dist/features/data-browser/index.js +12 -0
- package/dist/features/data-browser/index.js.map +1 -0
- package/dist/features/data-grid/index.d.ts +22 -0
- package/dist/features/data-grid/index.js +12 -0
- package/dist/features/data-grid/index.js.map +1 -0
- package/dist/features/document-editor/index.d.ts +26 -0
- package/dist/features/document-editor/index.js +12 -0
- package/dist/features/document-editor/index.js.map +1 -0
- package/dist/features/function-editor/index.d.ts +215 -0
- package/dist/features/function-editor/index.js +7 -0
- package/dist/features/function-editor/index.js.map +1 -0
- package/dist/hooks/index.d.ts +64 -7
- package/dist/hooks/index.js +8 -7
- package/dist/hooks/things/index.d.ts +5 -297
- package/dist/hooks/things/index.js +6 -6
- package/dist/index-C0m9UI6W.d.ts +444 -0
- package/dist/index.d.ts +41 -31
- package/dist/index.js +21 -13
- package/dist/providers/index.d.ts +16 -28
- package/dist/providers/index.js +3 -3
- package/dist/schemas/index.d.ts +4551 -109
- package/dist/schemas/index.js +2 -260
- package/dist/schemas/index.js.map +1 -1
- package/dist/shell/index.d.ts +92 -0
- package/dist/shell/index.js +6 -0
- package/dist/shell/index.js.map +1 -0
- package/dist/{thing-BF25aUtJ.d.ts → thing-Dc3AE2XI.d.ts} +22 -22
- package/dist/thing-adapters-aMjF0h9u.d.ts +1214 -0
- package/dist/types/index.d.ts +954 -7521
- package/dist/types/index.js +2 -2
- package/dist/ui-filters-BvrjMP_U.d.ts +108 -0
- package/dist/{errors-DratdVIz.d.ts → utils/index.d.ts} +38 -77
- package/dist/utils/index.js +4 -0
- package/dist/utils/index.js.map +1 -0
- package/dist-app/assets/index-DWX3479M.js +7 -0
- package/dist-app/assets/index-DWX3479M.js.map +1 -0
- package/dist-app/assets/main-BptePr_C.js +318 -0
- package/dist-app/assets/main-BptePr_C.js.map +1 -0
- package/dist-app/assets/main-CS9jgKzj.css +1 -0
- package/dist-app/index.html +38 -0
- package/package.json +46 -33
- package/dist/agents-2_r9e9i7.d.ts +0 -1043
- package/dist/capnweb-client-Bq78FtEA.d.ts +0 -229
- package/dist/chunk-3XKYQRXY.js +0 -192
- package/dist/chunk-3XKYQRXY.js.map +0 -1
- package/dist/chunk-4KXVN3EQ.js +0 -56
- package/dist/chunk-4KXVN3EQ.js.map +0 -1
- package/dist/chunk-GGO5GW72.js.map +0 -1
- package/dist/chunk-GYIMQZE7.js +0 -1994
- package/dist/chunk-GYIMQZE7.js.map +0 -1
- package/dist/chunk-IQ23B4ME.js +0 -944
- package/dist/chunk-IQ23B4ME.js.map +0 -1
- package/dist/chunk-JJLAES6W.js +0 -76
- package/dist/chunk-JJLAES6W.js.map +0 -1
- package/dist/chunk-KAZJ43F6.js.map +0 -1
- package/dist/chunk-LJIWB7KE.js.map +0 -1
- package/dist/chunk-OHWWWONS.js.map +0 -1
- package/dist/chunk-VRLUXCLD.js +0 -31
- package/dist/chunk-VRLUXCLD.js.map +0 -1
- package/dist/chunk-XH3LVW7J.js.map +0 -1
- package/dist/chunk-Y52IEYVM.js.map +0 -1
- package/dist/chunk-YMQRC6IC.js.map +0 -1
- package/dist/lib/index.js +0 -6
- package/dist/query-keys-CZNFikIi.d.ts +0 -153
- package/dist/views/index.d.ts +0 -131
- package/dist/views/index.js +0 -11
- /package/dist/{lib → auth}/index.js.map +0 -0
- /package/dist/{views → client}/index.js.map +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { T as Thing, S as SemanticType, h as ThingUpdateInput } from '../../thing-Dc3AE2XI.js';
|
|
3
|
+
import 'zod';
|
|
4
|
+
|
|
5
|
+
interface DataBrowserViewProps {
|
|
6
|
+
/** Initial namespace */
|
|
7
|
+
initialNamespace?: string;
|
|
8
|
+
/** Initial type filter */
|
|
9
|
+
initialType?: string;
|
|
10
|
+
/** Callback when a Thing is selected */
|
|
11
|
+
onSelect?: (thing: Thing) => void;
|
|
12
|
+
/** Callback when a Thing is double-clicked (e.g., to edit) */
|
|
13
|
+
onOpen?: (thing: Thing) => void;
|
|
14
|
+
/** Custom className */
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
declare function DataBrowserView({ initialNamespace, initialType, onSelect, onOpen, className, }: DataBrowserViewProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Shared types for DataBrowser domain-specific components
|
|
21
|
+
*
|
|
22
|
+
* Generic types (DataFilterCondition, etc.) are now in @mdxui/admin.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Props for CreateDialog component
|
|
27
|
+
*/
|
|
28
|
+
interface CreateDialogProps {
|
|
29
|
+
open: boolean;
|
|
30
|
+
onOpenChange: (open: boolean) => void;
|
|
31
|
+
namespace: string;
|
|
32
|
+
defaultType?: string;
|
|
33
|
+
types: SemanticType[];
|
|
34
|
+
onCreated?: (thing: Thing) => void;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Props for DetailSheet component
|
|
38
|
+
*/
|
|
39
|
+
interface DetailSheetProps {
|
|
40
|
+
open: boolean;
|
|
41
|
+
onOpenChange: (open: boolean) => void;
|
|
42
|
+
thing: Thing | null;
|
|
43
|
+
onEdit?: (thing: Thing) => void;
|
|
44
|
+
onSave?: (thing: Thing, updates: ThingUpdateInput) => Promise<void>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
declare function CreateDialog({ open, onOpenChange, namespace, defaultType, types, onCreated, }: CreateDialogProps): react_jsx_runtime.JSX.Element;
|
|
48
|
+
|
|
49
|
+
declare function DetailSheet({ open, onOpenChange, thing, onEdit, onSave }: DetailSheetProps): react_jsx_runtime.JSX.Element | null;
|
|
50
|
+
|
|
51
|
+
export { CreateDialog, type CreateDialogProps, DataBrowserView, type DataBrowserViewProps, DetailSheet, type DetailSheetProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { CreateDialog, DataBrowserView, DetailSheet } from '../../chunk-UCWMSKCW.js';
|
|
2
|
+
import '../../chunk-FM2RTAHV.js';
|
|
3
|
+
import '../../chunk-WC6SFBAF.js';
|
|
4
|
+
import '../../chunk-BZURBNFD.js';
|
|
5
|
+
import '../../chunk-LCYBQR35.js';
|
|
6
|
+
import '../../chunk-7TFHUKS7.js';
|
|
7
|
+
import '../../chunk-HC4PBXV4.js';
|
|
8
|
+
import '../../chunk-KLN5OTQH.js';
|
|
9
|
+
import '../../chunk-JPZ6RZJE.js';
|
|
10
|
+
import '../../chunk-X3AWNFBF.js';
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { T as Thing } from '../../thing-Dc3AE2XI.js';
|
|
3
|
+
import 'zod';
|
|
4
|
+
|
|
5
|
+
interface DataGridViewProps {
|
|
6
|
+
/** Initial namespace */
|
|
7
|
+
initialNamespace?: string;
|
|
8
|
+
/** Initial type */
|
|
9
|
+
initialType?: string;
|
|
10
|
+
/** Read-only mode */
|
|
11
|
+
readOnly?: boolean;
|
|
12
|
+
/** Callback when a row is selected */
|
|
13
|
+
onRowSelect?: (thing: Thing | null) => void;
|
|
14
|
+
/** Custom className */
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
declare function DataGridView({ initialNamespace, initialType, readOnly, onRowSelect: _onRowSelect, className, }: DataGridViewProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
declare namespace DataGridView {
|
|
19
|
+
var displayName: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { DataGridView, type DataGridViewProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { DataGridView } from '../../chunk-2FWXT4HH.js';
|
|
2
|
+
import '../../chunk-FM2RTAHV.js';
|
|
3
|
+
import '../../chunk-WC6SFBAF.js';
|
|
4
|
+
import '../../chunk-BZURBNFD.js';
|
|
5
|
+
import '../../chunk-LCYBQR35.js';
|
|
6
|
+
import '../../chunk-7TFHUKS7.js';
|
|
7
|
+
import '../../chunk-HC4PBXV4.js';
|
|
8
|
+
import '../../chunk-KLN5OTQH.js';
|
|
9
|
+
import '../../chunk-JPZ6RZJE.js';
|
|
10
|
+
import '../../chunk-X3AWNFBF.js';
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { T as Thing } from '../../thing-Dc3AE2XI.js';
|
|
3
|
+
import 'zod';
|
|
4
|
+
|
|
5
|
+
interface DocumentEditorViewProps {
|
|
6
|
+
/** Initial namespace */
|
|
7
|
+
initialNamespace?: string;
|
|
8
|
+
/** Initial type */
|
|
9
|
+
initialType?: string;
|
|
10
|
+
/** Initial thing ID */
|
|
11
|
+
initialId?: string;
|
|
12
|
+
/** Callback when save completes */
|
|
13
|
+
onSave?: (thing: Thing) => void;
|
|
14
|
+
/** Callback when delete completes */
|
|
15
|
+
onDelete?: () => void;
|
|
16
|
+
/** Callback when back is clicked */
|
|
17
|
+
onBack?: () => void;
|
|
18
|
+
/** Custom className */
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
declare function DocumentEditorView({ initialNamespace, initialType, initialId, onSave, onDelete, onBack: _onBack, className, }: DocumentEditorViewProps): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare namespace DocumentEditorView {
|
|
23
|
+
var displayName: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { DocumentEditorView, type DocumentEditorViewProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { DocumentEditorView } from '../../chunk-QEXY4FZV.js';
|
|
2
|
+
import '../../chunk-FM2RTAHV.js';
|
|
3
|
+
import '../../chunk-WC6SFBAF.js';
|
|
4
|
+
import '../../chunk-BZURBNFD.js';
|
|
5
|
+
import '../../chunk-LCYBQR35.js';
|
|
6
|
+
import '../../chunk-7TFHUKS7.js';
|
|
7
|
+
import '../../chunk-HC4PBXV4.js';
|
|
8
|
+
import '../../chunk-KLN5OTQH.js';
|
|
9
|
+
import '../../chunk-JPZ6RZJE.js';
|
|
10
|
+
import '../../chunk-X3AWNFBF.js';
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { a4 as CardAdapter, P as ConsoleMessage, a2 as GraphAdapter, a0 as GraphNode, a1 as GraphEdge, a5 as DataFormat, _ as ColumnDef } from '../../thing-adapters-aMjF0h9u.js';
|
|
2
|
+
export { a3 as CardConfig, al as CodeExecutor, Q as ConsoleMethod, C as CopyButton, E as ExecutionTimeBadge, z as FilterPopover, y as FormatDropdown, a6 as FormatOption, a as FunctionEditor, q as FunctionEditorProps, t as FunctionResult, b as FunctionResultsPanel, s as FunctionResultsPanelProps, a9 as FunctionSidebarProps, a8 as FunctionToolbarProps, F as FunctionWorkspace, r as FunctionWorkspaceProps, aa as HistoryEntry, ar as NormalizedResult, S as ResultTab, V as ResultTabContentProps, c as ResultsActions, Y as ResultsFilterCondition, Z as ResultsFilterConfig, W as ResultsFilterField, X as ResultsFilterOperator, a7 as ResultsPanelRenderProps, R as ResultsStateWrapper, ab as SavedQuery, ac as StarterTemplate, T as THING_TEMPLATES, $ as TableAdapter, as as ThingAdapters, x as UIRelationship, w as UIThing, am as UseCodeExecutorOptions, ad as UseFunctionExecutionOptions, ae as UseFunctionExecutionReturn, af as UseFunctionHistoryOptions, ag as UseFunctionHistoryReturn, U as UseFunctionWorkspaceOptions, v as UseFunctionWorkspaceReturn, an as UseMobileCollapseOptions, ao as UseMobileCollapseReturn, aj as UseResultsFilterOptions, ak as UseResultsFilterReturn, ap as UseSaveQueryDialogOptions, aq as UseSaveQueryDialogReturn, ah as UseSavedQueriesOptions, ai as UseSavedQueriesReturn, M as createGenericFilterFields, L as createGenericTableAdapter, K as createRelationshipFilterFields, k as createThingAdapters, n as createThingCardAdapter, o as createThingFilterFields, m as createThingGraphAdapter, l as createThingTableAdapter, J as flattenThingsForTable, B as formatPropertyLabel, I as generateThingColumns, G as getNestedValue, H as getUniqueValues, D as inferColumnType, A as isDateString, p as normalizeResult, O as normalizeToUIRelationship, N as normalizeToUIThing, i as useCodeExecutor, d as useFunctionExecution, e as useFunctionHistory, u as useFunctionWorkspace, g as useMobileCollapse, j as useResultsFilter, h as useSaveQueryDialog, f as useSavedQueries } from '../../thing-adapters-aMjF0h9u.js';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
export { FunctionSidebarProps as AdminFunctionSidebarProps, FunctionViewToolbarProps as AdminFunctionViewToolbarProps, SavedQuery as AdminSavedQuery, StarterTemplate as AdminStarterTemplate, FunctionSidebar, FunctionSidebarTrigger, FunctionSidebarTriggerProps, FunctionViewToolbar, QueryHistoryItem } from '@mdxui/admin';
|
|
5
|
+
import 'react';
|
|
6
|
+
|
|
7
|
+
interface FunctionEditorViewProps {
|
|
8
|
+
/** Initial code */
|
|
9
|
+
initialCode?: string;
|
|
10
|
+
/** Callback when code changes */
|
|
11
|
+
onCodeChange?: (code: string) => void;
|
|
12
|
+
/** Custom className */
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
declare function FunctionEditorView({ initialCode, onCodeChange, className, }: FunctionEditorViewProps): react_jsx_runtime.JSX.Element;
|
|
16
|
+
declare namespace FunctionEditorView {
|
|
17
|
+
var displayName: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface CardTabProps<T = unknown> {
|
|
21
|
+
/** Data items */
|
|
22
|
+
data: T[];
|
|
23
|
+
/** Card adapter for rendering */
|
|
24
|
+
adapter?: CardAdapter<T>;
|
|
25
|
+
/** Card click handler */
|
|
26
|
+
onCardClick?: (item: T) => void;
|
|
27
|
+
/** Currently selected item ID */
|
|
28
|
+
selectedId?: string;
|
|
29
|
+
/** Additional CSS classes */
|
|
30
|
+
className?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Card grid view using admin's ResultsCardView component
|
|
34
|
+
*
|
|
35
|
+
* Features (from ResultsCardView):
|
|
36
|
+
* - Card layout with type badge
|
|
37
|
+
* - Display name extraction
|
|
38
|
+
* - ID with hash icon
|
|
39
|
+
* - Status/role badges
|
|
40
|
+
* - Key properties display
|
|
41
|
+
* - Creation timestamp
|
|
42
|
+
* - Click to select
|
|
43
|
+
* - Hover effects
|
|
44
|
+
* - Empty state
|
|
45
|
+
*/
|
|
46
|
+
declare function CardTab<T>({ data, adapter, onCardClick, selectedId, className, }: CardTabProps<T>): react_jsx_runtime.JSX.Element;
|
|
47
|
+
|
|
48
|
+
interface ConsoleTabProps {
|
|
49
|
+
/** Console messages */
|
|
50
|
+
logs: ConsoleMessage[];
|
|
51
|
+
/** Return value from execution */
|
|
52
|
+
returnValue?: unknown;
|
|
53
|
+
/** Callback to clear console */
|
|
54
|
+
onClear?: () => void;
|
|
55
|
+
/** Additional CSS classes */
|
|
56
|
+
className?: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Console output display
|
|
60
|
+
*
|
|
61
|
+
* Uses the ConsoleView component from @mdxui/admin for consistent
|
|
62
|
+
* console output rendering with expandable values and copy functionality.
|
|
63
|
+
*/
|
|
64
|
+
declare function ConsoleTab({ logs, returnValue, onClear, className }: ConsoleTabProps): react_jsx_runtime.JSX.Element;
|
|
65
|
+
|
|
66
|
+
interface GraphTabProps<T = unknown, S = unknown> {
|
|
67
|
+
/** Primary data (nodes) */
|
|
68
|
+
data: T[];
|
|
69
|
+
/** Secondary data (edges) */
|
|
70
|
+
secondary?: S[];
|
|
71
|
+
/** Graph adapter to transform data to nodes/edges */
|
|
72
|
+
adapter?: GraphAdapter<T, S>;
|
|
73
|
+
/** Node click handler */
|
|
74
|
+
onNodeClick?: (node: GraphNode) => void;
|
|
75
|
+
/** Edge click handler */
|
|
76
|
+
onEdgeClick?: (edge: GraphEdge) => void;
|
|
77
|
+
/** Currently selected node ID */
|
|
78
|
+
selectedNodeId?: string;
|
|
79
|
+
/** Height in pixels */
|
|
80
|
+
height?: number;
|
|
81
|
+
/** Additional CSS classes */
|
|
82
|
+
className?: string;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Graph visualization using admin's GraphVisualization component
|
|
86
|
+
*
|
|
87
|
+
* Features (from GraphVisualization):
|
|
88
|
+
* - Force-directed layout simulation
|
|
89
|
+
* - Drag nodes to reposition
|
|
90
|
+
* - Zoom and pan controls
|
|
91
|
+
* - Mouse wheel zoom
|
|
92
|
+
* - Click to select nodes/edges
|
|
93
|
+
* - Hover tooltips with details
|
|
94
|
+
* - Color coding by type
|
|
95
|
+
* - Edge labels
|
|
96
|
+
* - Fit-to-view and reset
|
|
97
|
+
*/
|
|
98
|
+
declare function GraphTab<T, S>({ data, secondary, adapter, onNodeClick, onEdgeClick, selectedNodeId, height, className, }: GraphTabProps<T, S>): react_jsx_runtime.JSX.Element;
|
|
99
|
+
|
|
100
|
+
interface JsonTabProps {
|
|
101
|
+
/** Formatted content to display */
|
|
102
|
+
content: string;
|
|
103
|
+
/** Current format */
|
|
104
|
+
format: DataFormat;
|
|
105
|
+
/** Additional CSS classes */
|
|
106
|
+
className?: string;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* JSON/Data view with syntax highlighting
|
|
110
|
+
*/
|
|
111
|
+
declare function JsonTab({ content, format, className }: JsonTabProps): react_jsx_runtime.JSX.Element;
|
|
112
|
+
|
|
113
|
+
interface TableTabProps {
|
|
114
|
+
/** Table columns */
|
|
115
|
+
columns: ColumnDef[];
|
|
116
|
+
/** Table rows */
|
|
117
|
+
rows: Record<string, unknown>[];
|
|
118
|
+
/** Row click handler */
|
|
119
|
+
onRowClick?: (row: Record<string, unknown>) => void;
|
|
120
|
+
/** Page size for pagination */
|
|
121
|
+
pageSize?: number;
|
|
122
|
+
/** Additional CSS classes */
|
|
123
|
+
className?: string;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Generic table view
|
|
127
|
+
*/
|
|
128
|
+
declare function TableTab({ columns, rows, onRowClick, pageSize, className, }: TableTabProps): react_jsx_runtime.JSX.Element;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Console Capture Utility
|
|
132
|
+
*
|
|
133
|
+
* Creates a proxy console that captures log output while
|
|
134
|
+
* passing through to the real console for debugging.
|
|
135
|
+
*/
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Create a console proxy that captures specified methods
|
|
139
|
+
*
|
|
140
|
+
* @param logs - Array to push captured logs into (mutated)
|
|
141
|
+
* @param passThrough - Whether to also call the real console (default: true)
|
|
142
|
+
* @returns A console-compatible object
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* ```ts
|
|
146
|
+
* const logs: ConsoleMessage[] = []
|
|
147
|
+
* const captureConsole = createCaptureConsole(logs)
|
|
148
|
+
*
|
|
149
|
+
* // Use in dynamic code execution
|
|
150
|
+
* const fn = new AsyncFunction('console', code)
|
|
151
|
+
* await fn(captureConsole)
|
|
152
|
+
*
|
|
153
|
+
* // logs now contains captured output
|
|
154
|
+
* console.log('Captured:', logs)
|
|
155
|
+
* ```
|
|
156
|
+
*/
|
|
157
|
+
declare function createCaptureConsole(logs: ConsoleMessage[], passThrough?: boolean): typeof console;
|
|
158
|
+
/**
|
|
159
|
+
* Add an error entry to the logs array
|
|
160
|
+
*/
|
|
161
|
+
declare function addErrorToLogs(logs: ConsoleMessage[], error: Error): void;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Data Formatters
|
|
165
|
+
*
|
|
166
|
+
* Convert data to various output formats (JSON, YAML, CSV, etc.)
|
|
167
|
+
* Ported from ResultsPanel with no type coupling.
|
|
168
|
+
*/
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Format data as JSON string
|
|
172
|
+
*/
|
|
173
|
+
declare function formatAsJson(data: unknown): string;
|
|
174
|
+
/**
|
|
175
|
+
* Simple YAML formatter
|
|
176
|
+
*/
|
|
177
|
+
declare function formatAsYaml(value: unknown, indent?: number): string;
|
|
178
|
+
/**
|
|
179
|
+
* Format data as CSV (Comma Separated Values)
|
|
180
|
+
*/
|
|
181
|
+
declare function formatAsCsv(data: unknown): string;
|
|
182
|
+
/**
|
|
183
|
+
* Format data as TSV (Tab Separated Values)
|
|
184
|
+
*/
|
|
185
|
+
declare function formatAsTsv(data: unknown): string;
|
|
186
|
+
/**
|
|
187
|
+
* Format data as TOON (Tabular Object Notation)
|
|
188
|
+
* TOON is a compact format for tabular data with a header defining columns
|
|
189
|
+
*/
|
|
190
|
+
declare function formatAsToon(data: unknown): string;
|
|
191
|
+
/**
|
|
192
|
+
* Format data as MDXLD (MDX Linked Data with YAML frontmatter)
|
|
193
|
+
*/
|
|
194
|
+
declare function formatAsMdxld(data: unknown): string;
|
|
195
|
+
/**
|
|
196
|
+
* Format data in the specified format
|
|
197
|
+
*/
|
|
198
|
+
declare function formatData(data: unknown, format: DataFormat): string;
|
|
199
|
+
/**
|
|
200
|
+
* Get appropriate editor language for a data format
|
|
201
|
+
*/
|
|
202
|
+
/**
|
|
203
|
+
* Get the Monaco editor language for a format
|
|
204
|
+
* Returns languages supported by CodeEditor
|
|
205
|
+
*/
|
|
206
|
+
declare function getEditorLanguage(format: DataFormat): 'json' | 'yaml' | 'markdown' | 'typescript';
|
|
207
|
+
/**
|
|
208
|
+
* Available format options for dropdown
|
|
209
|
+
*/
|
|
210
|
+
declare const FORMAT_OPTIONS: Array<{
|
|
211
|
+
value: DataFormat;
|
|
212
|
+
label: string;
|
|
213
|
+
}>;
|
|
214
|
+
|
|
215
|
+
export { CardAdapter, CardTab, ColumnDef, ConsoleMessage, ConsoleTab, DataFormat, FORMAT_OPTIONS, FunctionEditorView, type FunctionEditorViewProps, GraphAdapter, GraphEdge, GraphNode, GraphTab, JsonTab, TableTab, addErrorToLogs, createCaptureConsole, formatAsCsv, formatAsJson, formatAsMdxld, formatAsToon, formatAsTsv, formatAsYaml, formatData, getEditorLanguage };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { CardTab, ConsoleTab, CopyButton, ExecutionTimeBadge, FORMAT_OPTIONS, FilterPopover, FormatDropdown, FunctionEditor, FunctionEditorView, FunctionResultsPanel, FunctionSidebar, FunctionSidebarTrigger, FunctionViewToolbar, FunctionWorkspace, GraphTab, JsonTab, ResultsActions, ResultsStateWrapper, THING_TEMPLATES, TableTab, addErrorToLogs, createCaptureConsole, createGenericFilterFields, createGenericTableAdapter, createRelationshipFilterFields, createThingAdapters, createThingCardAdapter, createThingFilterFields, createThingGraphAdapter, createThingTableAdapter, flattenThingsForTable, formatAsCsv, formatAsJson, formatAsMdxld, formatAsToon, formatAsTsv, formatAsYaml, formatData, formatPropertyLabel, generateThingColumns, getEditorLanguage, getNestedValue, getUniqueValues, inferColumnType, isDateString, normalizeResult, normalizeToUIRelationship, normalizeToUIThing, useCodeExecutor, useFunctionExecution, useFunctionHistory, useFunctionWorkspace, useMobileCollapse, useResultsFilter, useSaveQueryDialog, useSavedQueries } from '../../chunk-63VCRTDQ.js';
|
|
2
|
+
import '../../chunk-HC4PBXV4.js';
|
|
3
|
+
import '../../chunk-KLN5OTQH.js';
|
|
4
|
+
import '../../chunk-JPZ6RZJE.js';
|
|
5
|
+
import '../../chunk-X3AWNFBF.js';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { N as Namespace, S as SemanticType, c as ThingFilter, T as Thing } from '../thing-
|
|
2
|
-
export { DeleteThingOptions, UseCreateThingResult, UseDeleteThingResult, UseThingResult, UseThingVersionsResult, UseThingsResult, UseTypeStatsResult, UseUpdateThingResult, useCreateThing, useDeleteThing, useThing, useThingVersions, useThings, useTypeStats, useUpdateThing } from '
|
|
3
|
-
|
|
4
|
-
import { a as BreadcrumbItemConfig } from '../breadcrumbs-C9Qn3S7d.js';
|
|
1
|
+
import { N as Namespace, S as SemanticType, c as ThingFilter, T as Thing } from '../thing-Dc3AE2XI.js';
|
|
2
|
+
export { D as DeleteThingOptions, Q as QueryKeys, P as QueryPagination, j as UseCreateThingResult, l as UseDeleteThingResult, g as UseThingResult, h as UseThingVersionsResult, U as UseThingsResult, i as UseTypeStatsResult, k as UseUpdateThingResult, m as agentsKeys, n as createQueryKeys, r as relationshipsKeys, t as thingsKeys, d as useCreateThing, f as useDeleteThing, a as useThing, b as useThingVersions, u as useThings, c as useTypeStats, e as useUpdateThing, w as workflowsKeys } from '../index-C0m9UI6W.js';
|
|
3
|
+
import { a as BreadcrumbItemConfig } from '../breadcrumbs-DltlCiHt.js';
|
|
5
4
|
import 'zod';
|
|
6
5
|
import '@tanstack/react-query';
|
|
7
|
-
import '../
|
|
8
|
-
import '../
|
|
6
|
+
import '../common-DW_JM2dW.js';
|
|
7
|
+
import '../ui-filters-BvrjMP_U.js';
|
|
9
8
|
import 'react/jsx-runtime';
|
|
10
9
|
import 'react';
|
|
11
10
|
|
|
@@ -557,4 +556,62 @@ interface UseBreadcrumbsOptions {
|
|
|
557
556
|
*/
|
|
558
557
|
declare function useBreadcrumbs(options?: UseBreadcrumbsOptions): BreadcrumbItemConfig[];
|
|
559
558
|
|
|
560
|
-
|
|
559
|
+
/**
|
|
560
|
+
* Configuration for health check behavior
|
|
561
|
+
*/
|
|
562
|
+
interface HealthCheckConfig {
|
|
563
|
+
/** API endpoint base URL (e.g., 'https://api.do/admin') */
|
|
564
|
+
apiEndpoint: string;
|
|
565
|
+
/** Optional auth token for Bearer authentication */
|
|
566
|
+
authToken?: string;
|
|
567
|
+
/** Request timeout in milliseconds (defaults to DEFAULT_REQUEST_TIMEOUT) */
|
|
568
|
+
requestTimeout?: number;
|
|
569
|
+
/** Number of retry attempts (defaults to 3) */
|
|
570
|
+
healthCheckRetries?: number;
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* Result of the health check hook
|
|
574
|
+
*/
|
|
575
|
+
interface HealthCheckResult {
|
|
576
|
+
/** Whether the API is reachable */
|
|
577
|
+
isConnected: boolean;
|
|
578
|
+
/** Error from the last failed attempt, if any */
|
|
579
|
+
connectionError?: Error;
|
|
580
|
+
/** Manually trigger a health check */
|
|
581
|
+
checkConnection: () => Promise<void>;
|
|
582
|
+
/** Whether a check is currently in progress */
|
|
583
|
+
isChecking: boolean;
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* Hook to perform health checks against an API endpoint
|
|
587
|
+
*
|
|
588
|
+
* Automatically checks connection on mount with retry and exponential backoff.
|
|
589
|
+
* Can also be manually triggered via the returned `checkConnection` function.
|
|
590
|
+
*
|
|
591
|
+
* @param config - Health check configuration
|
|
592
|
+
* @returns Health check state and manual trigger function
|
|
593
|
+
*
|
|
594
|
+
* @example
|
|
595
|
+
* ```tsx
|
|
596
|
+
* function MyComponent() {
|
|
597
|
+
* const { isConnected, connectionError, checkConnection } = useHealthCheck({
|
|
598
|
+
* apiEndpoint: 'https://api.do/admin',
|
|
599
|
+
* authToken: 'my-token',
|
|
600
|
+
* healthCheckRetries: 3,
|
|
601
|
+
* })
|
|
602
|
+
*
|
|
603
|
+
* if (connectionError) {
|
|
604
|
+
* return <div>Connection failed: {connectionError.message}</div>
|
|
605
|
+
* }
|
|
606
|
+
*
|
|
607
|
+
* if (!isConnected) {
|
|
608
|
+
* return <div>Connecting...</div>
|
|
609
|
+
* }
|
|
610
|
+
*
|
|
611
|
+
* return <div>Connected!</div>
|
|
612
|
+
* }
|
|
613
|
+
* ```
|
|
614
|
+
*/
|
|
615
|
+
declare function useHealthCheck(config: HealthCheckConfig): HealthCheckResult;
|
|
616
|
+
|
|
617
|
+
export { type EditOperation as CellEditOperation, type HealthCheckConfig, type HealthCheckResult, type KeyboardShortcutConfig, type SchemaDefinition, type SchemaDiscoveryResult, type SchemaProperty, type SubscriptionEvent, type SubscriptionEventType, type SubscriptionState, type UseBreadcrumbsOptions, type UseEditHistoryReturn as UseEditHistoryHookReturn, type UseEditHistoryOptions, type UseKeyboardShortcutsOptions, type UseNamespacesOptions, type UseNamespacesResult, type UseSchemaOptions, type UseSchemaResult, type UseThingSubscriptionOptions, type UseThingSubscriptionResult, type UseTypesOptions, type UseTypesResult, namespacesKeys, schemaKeys, typesKeys, useBreadcrumbs, useEditHistory, useHealthCheck, useKeyboardShortcuts, useNamespaces, useSchema, useSchemaDefinition, useSingleThingSubscription, useThingSubscription, useTypes };
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export { namespacesKeys, schemaKeys, typesKeys,
|
|
2
|
-
export { useCreateThing, useDeleteThing, useThing, useThingVersions, useThings, useTypeStats, useUpdateThing } from '../chunk-
|
|
3
|
-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import '../chunk-
|
|
1
|
+
export { namespacesKeys, schemaKeys, typesKeys, useEditHistory, useKeyboardShortcuts, useNamespaces, useSchema, useSchemaDefinition, useSingleThingSubscription, useThingSubscription, useTypes } from '../chunk-FM2RTAHV.js';
|
|
2
|
+
export { agentsKeys, createQueryKeys, relationshipsKeys, thingsKeys, useCreateThing, useDeleteThing, useThing, useThingVersions, useThings, useTypeStats, useUpdateThing, workflowsKeys } from '../chunk-WC6SFBAF.js';
|
|
3
|
+
import '../chunk-BZURBNFD.js';
|
|
4
|
+
import '../chunk-LCYBQR35.js';
|
|
5
|
+
export { useBreadcrumbs } from '../chunk-7TFHUKS7.js';
|
|
6
|
+
export { useHealthCheck } from '../chunk-HC4PBXV4.js';
|
|
7
|
+
import '../chunk-KLN5OTQH.js';
|
|
8
|
+
import '../chunk-X3AWNFBF.js';
|
|
8
9
|
//# sourceMappingURL=index.js.map
|
|
9
10
|
//# sourceMappingURL=index.js.map
|