@prismiq/react 0.1.0 → 0.2.0
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/{CustomSQLEditor-DYeId0Gp.d.ts → ChatBubble-ARocmvZD.d.cts} +48 -4
- package/dist/{CustomSQLEditor-BXB4rf1q.d.cts → ChatBubble-BN_CjIpk.d.ts} +48 -4
- package/dist/{DashboardDialog-B3vYC5Gs.d.ts → DashboardDialog-UhUGXx2h.d.ts} +6 -4
- package/dist/{DashboardDialog-LHmrtNQU.d.cts → DashboardDialog-Z-HypxmG.d.cts} +6 -4
- package/dist/{accessibility-2yy5yqRR.d.cts → accessibility-Bu2mNtaB.d.cts} +1 -1
- package/dist/{accessibility-2yy5yqRR.d.ts → accessibility-Bu2mNtaB.d.ts} +1 -1
- package/dist/charts/index.cjs +27 -27
- package/dist/charts/index.d.cts +2 -2
- package/dist/charts/index.d.ts +2 -2
- package/dist/charts/index.js +2 -2
- package/dist/{chunk-NK7HKX2J.cjs → chunk-73TPDGXB.cjs} +7 -7
- package/dist/{chunk-NK7HKX2J.cjs.map → chunk-73TPDGXB.cjs.map} +1 -1
- package/dist/{chunk-FEABEF3J.cjs → chunk-FKXCINUF.cjs} +551 -299
- package/dist/chunk-FKXCINUF.cjs.map +1 -0
- package/dist/{chunk-2H5WTH4K.js → chunk-FQ23KG6G.js} +3 -3
- package/dist/{chunk-2H5WTH4K.js.map → chunk-FQ23KG6G.js.map} +1 -1
- package/dist/{chunk-UPYINBZU.js → chunk-GELI7MDZ.js} +982 -51
- package/dist/chunk-GELI7MDZ.js.map +1 -0
- package/dist/{chunk-WWTT2OJ5.js → chunk-HKZFEXT6.js} +27 -9
- package/dist/chunk-HKZFEXT6.js.map +1 -0
- package/dist/{chunk-MOAEEF5P.js → chunk-JBJ5LEAG.js} +362 -110
- package/dist/chunk-JBJ5LEAG.js.map +1 -0
- package/dist/{chunk-4AVL6GQK.cjs → chunk-KXB2IZI2.cjs} +36 -9
- package/dist/chunk-KXB2IZI2.cjs.map +1 -0
- package/dist/{chunk-EX74SI67.js → chunk-LBE6GIBC.js} +36 -9
- package/dist/chunk-LBE6GIBC.js.map +1 -0
- package/dist/{chunk-NY6TZLST.cjs → chunk-PG7QBH3G.cjs} +988 -53
- package/dist/chunk-PG7QBH3G.cjs.map +1 -0
- package/dist/{chunk-MDXGGZSW.cjs → chunk-ZYVN6XAZ.cjs} +35 -37
- package/dist/chunk-ZYVN6XAZ.cjs.map +1 -0
- package/dist/components/index.cjs +63 -55
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +2 -2
- package/dist/dashboard/index.cjs +36 -36
- package/dist/dashboard/index.d.cts +7 -5
- package/dist/dashboard/index.d.ts +7 -5
- package/dist/dashboard/index.js +4 -4
- package/dist/export/index.cjs +7 -7
- package/dist/export/index.d.cts +6 -4
- package/dist/export/index.d.ts +6 -4
- package/dist/export/index.js +1 -1
- package/dist/{index-C-Qcuu4Y.d.cts → index-B8DelfpL.d.cts} +2 -2
- package/dist/{index-rPc7ijt8.d.ts → index-RbfYPQD_.d.ts} +2 -2
- package/dist/index.cjs +150 -134
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +97 -9
- package/dist/index.d.ts +97 -9
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/{types-WrCbOeAV.d.cts → types-ccB9Ps3k.d.cts} +59 -1
- package/dist/{types-WrCbOeAV.d.ts → types-ccB9Ps3k.d.ts} +59 -1
- package/dist/utils/index.cjs +15 -15
- package/dist/utils/index.d.cts +5 -21
- package/dist/utils/index.d.ts +5 -21
- package/dist/utils/index.js +1 -1
- package/package.json +3 -7
- package/dist/chunk-4AVL6GQK.cjs.map +0 -1
- package/dist/chunk-EX74SI67.js.map +0 -1
- package/dist/chunk-FEABEF3J.cjs.map +0 -1
- package/dist/chunk-MDXGGZSW.cjs.map +0 -1
- package/dist/chunk-MOAEEF5P.js.map +0 -1
- package/dist/chunk-NY6TZLST.cjs.map +0 -1
- package/dist/chunk-UPYINBZU.js.map +0 -1
- package/dist/chunk-WWTT2OJ5.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { D as DatabaseSchema, c as TableSchema, a as QueryDefinition, V as ValidationResult, Q as QueryResult, S as SQLValidationResult,
|
|
2
|
-
export { A as AggregationType,
|
|
3
|
-
import { P as PrismiqTheme, T as ThemeMode, D as DeepPartial, a as ThemeContextValue, C as ChartDataOptions, b as ChartDataResult } from './index-
|
|
4
|
-
export { A as AreaChart,
|
|
1
|
+
import { D as DatabaseSchema, c as TableSchema, d as DataSourceMeta, a as QueryDefinition, V as ValidationResult, Q as QueryResult, S as SQLValidationResult, e as Dashboard, f as DashboardCreate, g as DashboardUpdate, W as WidgetCreate, h as Widget, i as WidgetUpdate, j as WidgetPositionUpdate, k as SavedQuery, l as SavedQueryCreate, m as SavedQueryUpdate, P as PinnedDashboard, n as PinnedDashboardsResponse, L as LLMStatus, o as ChatMessage, p as StreamChunk, R as Relationship, q as WidgetPosition } from './types-ccB9Ps3k.js';
|
|
2
|
+
export { A as AggregationType, r as ChatRole, s as ColumnSchema, t as ColumnSelection, u as DashboardPinContextsResponse, E as ExecuteSQLRequest, F as FilterDefinition, v as FilterOperator, G as GroupByDefinition, J as JoinDefinition, w as JoinType, b as QueryTable, x as SortDefinition, y as SortDirection, z as StreamChunkType } from './types-ccB9Ps3k.js';
|
|
3
|
+
import { P as PrismiqTheme, T as ThemeMode, D as DeepPartial, a as ThemeContextValue, C as ChartDataOptions, b as ChartDataResult } from './index-RbfYPQD_.js';
|
|
4
|
+
export { A as AreaChart, c as AreaChartProps, d as AxisFormat, B as BarChart, e as BarChartProps, f as BaseChartProps, g as ChartClickParams, h as ChartDataPoint, i as ChartSeries, j as ChartSuggestion, k as ChartType, E as EChartWrapper, l as EChartWrapperProps, L as LegendPosition, m as LineChart, n as LineChartProps, M as MetricCard, o as MetricCardProps, p as PieChart, q as PieChartProps, R as ReferenceLineConfig, S as ScatterChart, r as ScatterChartProps, s as Sparkline, t as SparklineProps, u as TrendConfig, v as TrendIndicator, w as TrendIndicatorProps, x as applyThemeToOption, y as createChartTheme, z as createGradientColor, F as dataPointsToChartData, G as formatAxisLabel, H as formatCompact, I as formatMetricValue, J as getChartColors, K as isChartDataEmpty, N as queryResultToChartData, O as suggestChartType, Q as toChartData } from './index-RbfYPQD_.js';
|
|
5
5
|
import { ReactNode, CSSProperties } from 'react';
|
|
6
|
-
export {
|
|
6
|
+
export { A as AggregationPicker, a as AggregationPickerProps, B as Badge, b as BadgeProps, c as Button, d as ButtonProps, C as ChatBubble, e as ChatBubbleProps, f as ChatPanel, g as ChatPanelProps, h as Checkbox, i as CheckboxProps, j as ColumnNode, k as ColumnNodeProps, l as ColumnSelector, m as ColumnSelectorProps, n as CustomSQLEditor, o as CustomSQLEditorProps, D as Dialog, p as DialogFooter, q as DialogFooterProps, r as DialogHeader, s as DialogHeaderProps, t as DialogProps, u as Dropdown, v as DropdownItem, w as DropdownItemProps, x as DropdownProps, y as DropdownSeparator, z as DropdownSeparatorProps, E as EmptyDashboard, F as EmptyDashboardProps, G as EmptyState, H as EmptyStateProps, I as ErrorBoundary, J as ErrorBoundaryProps, K as ErrorFallback, L as ErrorFallbackProps, M as FilterBuilder, N as FilterBuilderProps, O as FilterRow, P as FilterRowProps, Q as FilterValueInput, R as FilterValueInputProps, S as Icon, T as IconName, U as IconProps, V as Input, W as InputProps, X as NoData, Y as NoDataProps, Z as NoResults, _ as NoResultsProps, $ as Pagination, a0 as PaginationProps, a1 as QueryBuilder, a2 as QueryBuilderProps, a3 as QueryBuilderState, a4 as QueryBuilderToolbar, a5 as QueryBuilderToolbarProps, a6 as QueryPreview, a7 as QueryPreviewProps, a8 as ResultsTable, a9 as ResultsTableProps, aa as SavedQueryPicker, ab as SavedQueryPickerProps, ac as SchemaExplorer, ad as SchemaExplorerProps, ae as Select, af as SelectOption, ag as SelectProps, ah as SelectedColumn, ai as SelectedColumnProps, aj as Skeleton, ak as SkeletonChart, al as SkeletonChartProps, am as SkeletonMetricCard, an as SkeletonMetricCardProps, ao as SkeletonProps, ap as SkeletonTable, aq as SkeletonTableProps, ar as SkeletonText, as as SkeletonTextProps, at as SortBuilder, au as SortBuilderProps, av as SortRow, aw as SortRowProps, ax as TableCell, ay as TableCellProps, az as TableHeader, aA as TableHeaderProps, aB as TableNode, aC as TableNodeProps, aD as TableRow, aE as TableRowProps, aF as Tooltip, aG as TooltipProps, aH as WidgetErrorBoundary, aI as WidgetErrorBoundaryProps } from './ChatBubble-BN_CjIpk.js';
|
|
7
7
|
export { ExcelCellStyle, ExcelExportOptions, ExportData, ExportOptions, UseExportOptions, UseExportResult, downloadFile, exportMultipleSheets, exportToCSV, exportToExcel, generateCSV, useExport } from './export/index.js';
|
|
8
|
-
export {
|
|
9
|
-
export { A as ArrowNavigationOptions, F as FocusTrapOptions, S as SkipLinkProps,
|
|
8
|
+
export { d as Dashboard, e as DashboardCard, f as DashboardCardProps, g as DashboardContext, h as DashboardContextValue, i as DashboardDefinition, j as DashboardDialog, k as DashboardDialogProps, l as DashboardEditor, m as DashboardEditorContextValue, n as DashboardEditorProps, o as DashboardFilter, p as DashboardFilterType, D as DashboardLayout, q as DashboardLayoutComponent, r as DashboardLayoutProps, s as DashboardList, t as DashboardListProps, u as DashboardProps, v as DashboardProvider, w as DashboardProviderProps, x as DateRangeFilter, y as DateRangeFilterProps, z as DateRangeValue, E as EditorToolbar, A as EditorToolbarProps, F as FilterBar, B as FilterBarProps, C as FilterOption, G as FilterValue, M as MultiSelectFilter, H as MultiSelectFilterProps, N as NumberRangeValue, S as SelectFilter, I as SelectFilterProps, T as TextFilter, J as TextFilterProps, U as UseAutoRefreshOptions, K as UseAutoRefreshResult, O as UseDashboardFiltersResult, P as UseFullscreenResult, Q as UseWidgetResult, V as Widget, c as WidgetConfig, X as WidgetContent, Y as WidgetContentProps, W as WidgetDefinition, _ as WidgetEditor, $ as WidgetEditorProps, a0 as WidgetHeader, a1 as WidgetHeaderProps, a3 as WidgetPalette, a4 as WidgetPaletteProps, a as WidgetPosition, a5 as WidgetProps, b as WidgetType, a6 as useAutoRefresh, a7 as useDashboard, a8 as useDashboardFilters, a9 as useFullscreen, aa as useWidget } from './DashboardDialog-UhUGXx2h.js';
|
|
9
|
+
export { A as ArrowNavigationOptions, F as FocusTrapOptions, S as SkipLinkProps, U as UseArrowNavigationResult, a as UseFocusTrapResult, b as announceToScreenReader, f as focusVisibleStyles, s as skipLinkFocusStyles, c as skipLinkStyles, u as useArrowNavigation, d as useFocusTrap, e as useFocusVisible, g as useRovingTabIndex } from './accessibility-Bu2mNtaB.js';
|
|
10
10
|
export { BREAKPOINTS, Breakpoint, ClientOnly, ClientOnlyProps, WindowSize, getLocalStorage, getWindowHeight, getWindowWidth, isBrowser, isServer, removeLocalStorage, setLocalStorage, useBreakpoint, useIsBreakpoint, useIsClient, useMediaQuery, useWindowSize } from './ssr/index.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -79,6 +79,9 @@ declare class PrismiqClient {
|
|
|
79
79
|
constructor(config: ClientConfig);
|
|
80
80
|
/**
|
|
81
81
|
* Make an authenticated request to the API.
|
|
82
|
+
*
|
|
83
|
+
* @param path - API path (starting with /)
|
|
84
|
+
* @param options - Fetch options including signal for cancellation
|
|
82
85
|
*/
|
|
83
86
|
private request;
|
|
84
87
|
/**
|
|
@@ -147,6 +150,15 @@ declare class PrismiqClient {
|
|
|
147
150
|
* @returns Array of sample values.
|
|
148
151
|
*/
|
|
149
152
|
getColumnSample(tableName: string, columnName: string, limit?: number): Promise<unknown[]>;
|
|
153
|
+
/**
|
|
154
|
+
* Get data source metadata including display names and descriptions.
|
|
155
|
+
*
|
|
156
|
+
* Returns metadata for all exposed tables/views that can be used
|
|
157
|
+
* to show user-friendly names in the UI instead of raw table names.
|
|
158
|
+
*
|
|
159
|
+
* @returns Array of data source metadata.
|
|
160
|
+
*/
|
|
161
|
+
getDataSources(): Promise<DataSourceMeta[]>;
|
|
150
162
|
/**
|
|
151
163
|
* Validate a query without executing it.
|
|
152
164
|
*
|
|
@@ -166,9 +178,10 @@ declare class PrismiqClient {
|
|
|
166
178
|
*
|
|
167
179
|
* @param query - The query definition to execute.
|
|
168
180
|
* @param bypassCache - If true, bypass cache and re-execute query.
|
|
181
|
+
* @param signal - Optional AbortSignal for cancellation.
|
|
169
182
|
* @returns The query result with all rows and cache metadata.
|
|
170
183
|
*/
|
|
171
|
-
executeQuery(query: QueryDefinition, bypassCache?: boolean): Promise<QueryResult>;
|
|
184
|
+
executeQuery(query: QueryDefinition, bypassCache?: boolean, signal?: AbortSignal): Promise<QueryResult>;
|
|
172
185
|
/**
|
|
173
186
|
* Execute a query with a limited result set for previewing.
|
|
174
187
|
*
|
|
@@ -335,6 +348,22 @@ declare class PrismiqClient {
|
|
|
335
348
|
* @param dashboardIds - Ordered list of dashboard IDs (new order).
|
|
336
349
|
*/
|
|
337
350
|
reorderPins(context: string, dashboardIds: string[]): Promise<void>;
|
|
351
|
+
/**
|
|
352
|
+
* Get the LLM agent status.
|
|
353
|
+
*
|
|
354
|
+
* @returns LLM status including enabled state, provider, and model.
|
|
355
|
+
*/
|
|
356
|
+
getLLMStatus(): Promise<LLMStatus>;
|
|
357
|
+
/**
|
|
358
|
+
* Stream a chat response from the LLM agent via SSE.
|
|
359
|
+
*
|
|
360
|
+
* @param message - User's message.
|
|
361
|
+
* @param history - Previous conversation messages.
|
|
362
|
+
* @param currentSql - Current SQL in the editor (for context).
|
|
363
|
+
* @param signal - Optional AbortSignal for cancellation.
|
|
364
|
+
* @yields StreamChunk objects as the response is generated.
|
|
365
|
+
*/
|
|
366
|
+
streamChat(message: string, history: ChatMessage[], currentSql: string | null, signal?: AbortSignal): AsyncGenerator<StreamChunk, void, undefined>;
|
|
338
367
|
}
|
|
339
368
|
|
|
340
369
|
/**
|
|
@@ -420,6 +449,8 @@ interface AnalyticsContextValue {
|
|
|
420
449
|
client: PrismiqClient;
|
|
421
450
|
/** The database schema, or null if not yet loaded. */
|
|
422
451
|
schema: DatabaseSchema | null;
|
|
452
|
+
/** Data source metadata (display names, descriptions), or empty array if not loaded. */
|
|
453
|
+
dataSources: DataSourceMeta[];
|
|
423
454
|
/** Whether the schema is currently loading. */
|
|
424
455
|
isLoading: boolean;
|
|
425
456
|
/** Error that occurred during schema loading, if any. */
|
|
@@ -515,12 +546,18 @@ interface UseSchemaResult {
|
|
|
515
546
|
tables: TableSchema[];
|
|
516
547
|
/** List of relationships between tables. */
|
|
517
548
|
relationships: Relationship[];
|
|
549
|
+
/** Data source metadata (display names, descriptions). */
|
|
550
|
+
dataSources: DataSourceMeta[];
|
|
518
551
|
/** Whether the schema is currently loading. */
|
|
519
552
|
isLoading: boolean;
|
|
520
553
|
/** Error that occurred during schema loading, if any. */
|
|
521
554
|
error: Error | null;
|
|
522
555
|
/** Get a table by name. */
|
|
523
556
|
getTable: (name: string) => TableSchema | undefined;
|
|
557
|
+
/** Get the display name for a table (returns table name if no display name configured). */
|
|
558
|
+
getDisplayName: (tableName: string) => string;
|
|
559
|
+
/** Get the description for a table (returns empty string if no description configured). */
|
|
560
|
+
getDescription: (tableName: string) => string;
|
|
524
561
|
}
|
|
525
562
|
/**
|
|
526
563
|
* Hook for accessing the database schema.
|
|
@@ -1207,6 +1244,57 @@ interface UseDashboardPinStatusResult {
|
|
|
1207
1244
|
*/
|
|
1208
1245
|
declare function useDashboardPinStatus(options: UseDashboardPinStatusOptions): UseDashboardPinStatusResult;
|
|
1209
1246
|
|
|
1247
|
+
/**
|
|
1248
|
+
* Hook for checking LLM agent availability.
|
|
1249
|
+
*/
|
|
1250
|
+
interface UseLLMStatusResult {
|
|
1251
|
+
/** Whether the LLM agent is enabled on the backend. */
|
|
1252
|
+
enabled: boolean;
|
|
1253
|
+
/** Provider name (e.g., 'gemini'). */
|
|
1254
|
+
provider: string | undefined;
|
|
1255
|
+
/** Model name (e.g., 'gemini-2.0-flash'). */
|
|
1256
|
+
model: string | undefined;
|
|
1257
|
+
/** Whether the status is still loading. */
|
|
1258
|
+
isLoading: boolean;
|
|
1259
|
+
/** Error from the status check, if any. */
|
|
1260
|
+
error: Error | null;
|
|
1261
|
+
}
|
|
1262
|
+
/**
|
|
1263
|
+
* Check if the LLM agent is available.
|
|
1264
|
+
*
|
|
1265
|
+
* Makes a single request to /llm/status on mount.
|
|
1266
|
+
* If the request fails (e.g., 404 because the backend doesn't support LLM),
|
|
1267
|
+
* returns enabled=false without throwing.
|
|
1268
|
+
*/
|
|
1269
|
+
declare function useLLMStatus(): UseLLMStatusResult;
|
|
1270
|
+
|
|
1271
|
+
/**
|
|
1272
|
+
* Hook for interacting with the LLM chat agent.
|
|
1273
|
+
*/
|
|
1274
|
+
|
|
1275
|
+
interface UseLLMChatResult {
|
|
1276
|
+
/** Full conversation history (user + assistant messages). */
|
|
1277
|
+
messages: ChatMessage[];
|
|
1278
|
+
/** Whether a response is currently streaming. */
|
|
1279
|
+
isStreaming: boolean;
|
|
1280
|
+
/** Content currently being streamed (partial assistant response). */
|
|
1281
|
+
streamingContent: string;
|
|
1282
|
+
/** Last SQL suggestion extracted from the response. */
|
|
1283
|
+
suggestedSql: string | null;
|
|
1284
|
+
/** Send a message to the agent. */
|
|
1285
|
+
sendMessage: (message: string, currentSql: string | null) => Promise<void>;
|
|
1286
|
+
/** Clear conversation history. */
|
|
1287
|
+
clearHistory: () => void;
|
|
1288
|
+
/** Error from the last request. */
|
|
1289
|
+
error: string | null;
|
|
1290
|
+
}
|
|
1291
|
+
/**
|
|
1292
|
+
* Hook for streaming chat with the LLM agent.
|
|
1293
|
+
*
|
|
1294
|
+
* Manages conversation state, streaming, and SQL extraction.
|
|
1295
|
+
*/
|
|
1296
|
+
declare function useLLMChat(): UseLLMChatResult;
|
|
1297
|
+
|
|
1210
1298
|
/**
|
|
1211
1299
|
* PinButton component.
|
|
1212
1300
|
*
|
|
@@ -1432,4 +1520,4 @@ declare function PinnedDashboardView({ context, selectedDashboard, onBack, onSel
|
|
|
1432
1520
|
|
|
1433
1521
|
declare const VERSION = "0.1.0";
|
|
1434
1522
|
|
|
1435
|
-
export { type AnalyticsCallbacks, type AnalyticsContextValue, AnalyticsProvider, type AnalyticsProviderProps, ChartDataOptions, ChartDataResult, type ClientConfig, DashboardCreate, DashboardUpdate, DatabaseSchema, DeepPartial, type MutationState, PinButton, type PinButtonProps, type PinContextOption, PinMenu, type PinMenuProps, type PinMutationState, PinnedDashboard, type PinnedDashboardItemActions, PinnedDashboardList, type PinnedDashboardListProps, PinnedDashboardView, type PinnedDashboardViewProps, PinnedDashboardsResponse, PrismiqClient, PrismiqError, PrismiqTheme, QueryDefinition, QueryResult, Relationship, SQLValidationResult, SavedQuery, SavedQueryCreate, SavedQueryUpdate, TableSchema, ThemeContextValue, ThemeMode, ThemeProvider, type ThemeProviderProps, type UseCustomSQLOptions, type UseCustomSQLResult, type UseDashboardMutationsResult, type UseDashboardOptions, type UseDashboardPinStatusOptions, type UseDashboardPinStatusResult, type UseDashboardResult, type UseDashboardsOptions, type UseDashboardsResult, type UsePinMutationsResult, type UsePinnedDashboardsOptions, type UsePinnedDashboardsResult, type UseQueryOptions, type UseQueryResult, type UseSavedQueriesOptions, type UseSavedQueriesResult, type UseSchemaResult, VERSION, ValidationResult, darkTheme, lightTheme, useAnalytics, useAnalyticsCallbacks, useChartData, useCustomSQL, useDashboard as useDashboardData, useDashboardMutations, useDashboardPinStatus, useDashboards, usePinMutations, usePinnedDashboards, useQuery, useSavedQueries, useSchema, useTheme };
|
|
1523
|
+
export { type AnalyticsCallbacks, type AnalyticsContextValue, AnalyticsProvider, type AnalyticsProviderProps, ChartDataOptions, ChartDataResult, ChatMessage, type ClientConfig, DashboardCreate, DashboardUpdate, DataSourceMeta, DatabaseSchema, DeepPartial, LLMStatus, type MutationState, PinButton, type PinButtonProps, type PinContextOption, PinMenu, type PinMenuProps, type PinMutationState, PinnedDashboard, type PinnedDashboardItemActions, PinnedDashboardList, type PinnedDashboardListProps, PinnedDashboardView, type PinnedDashboardViewProps, PinnedDashboardsResponse, PrismiqClient, PrismiqError, PrismiqTheme, QueryDefinition, QueryResult, Relationship, SQLValidationResult, SavedQuery, SavedQueryCreate, SavedQueryUpdate, StreamChunk, TableSchema, ThemeContextValue, ThemeMode, ThemeProvider, type ThemeProviderProps, type UseCustomSQLOptions, type UseCustomSQLResult, type UseDashboardMutationsResult, type UseDashboardOptions, type UseDashboardPinStatusOptions, type UseDashboardPinStatusResult, type UseDashboardResult, type UseDashboardsOptions, type UseDashboardsResult, type UseLLMChatResult, type UseLLMStatusResult, type UsePinMutationsResult, type UsePinnedDashboardsOptions, type UsePinnedDashboardsResult, type UseQueryOptions, type UseQueryResult, type UseSavedQueriesOptions, type UseSavedQueriesResult, type UseSchemaResult, VERSION, ValidationResult, darkTheme, lightTheme, useAnalytics, useAnalyticsCallbacks, useChartData, useCustomSQL, useDashboard as useDashboardData, useDashboardMutations, useDashboardPinStatus, useDashboards, useLLMChat, useLLMStatus, usePinMutations, usePinnedDashboards, useQuery, useSavedQueries, useSchema, useTheme };
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Dashboard } from './chunk-
|
|
2
|
-
export { Dashboard, DashboardCard, DashboardContext, DashboardDialog, DashboardEditor, DashboardLayout as DashboardLayoutComponent, DashboardList, DashboardProvider, DateRangeFilter, EditorToolbar, FilterBar, MultiSelectFilter, SelectFilter, TextFilter, Widget, WidgetContent, WidgetEditor, WidgetHeader, WidgetPalette, useAutoRefresh, useDashboard, useDashboardFilters, useFullscreen, useWidget } from './chunk-
|
|
3
|
-
export { AreaChart, BarChart, EChartWrapper, LineChart, MetricCard, PieChart, ScatterChart, Sparkline, TrendIndicator, applyThemeToOption, createChartTheme, createGradientColor, dataPointsToChartData, formatAxisLabel, formatCompact, formatMetricValue, getChartColors, isChartDataEmpty, queryResultToChartData, suggestChartType, toChartData } from './chunk-
|
|
4
|
-
import { useDashboardPinStatus, usePinMutations, usePinnedDashboards } from './chunk-
|
|
5
|
-
export { AggregationPicker, AnalyticsProvider, Badge, Button, Checkbox, ColumnNode, ColumnSelector, CustomSQLEditor, Dialog, DialogFooter, DialogHeader, Dropdown, DropdownItem, DropdownSeparator, EmptyDashboard, EmptyState, ErrorBoundary, ErrorFallback, FilterBuilder, FilterRow, FilterValueInput, Icon, Input, NoData, NoResults, Pagination, PrismiqClient, PrismiqError, QueryBuilder, QueryBuilderToolbar, QueryPreview, ResultsTable, SavedQueryPicker, SchemaExplorer, Select, SelectedColumn, Skeleton, SkeletonChart, SkeletonMetricCard, SkeletonTable, SkeletonText, SortBuilder, SortRow, TableCell, TableHeader, TableNode, TableRow, Tooltip, WidgetErrorBoundary, useAnalytics, useAnalyticsCallbacks, useChartData, useCustomSQL, useDashboard as useDashboardData, useDashboardMutations, useDashboardPinStatus, useDashboards, usePinMutations, usePinnedDashboards, useQuery, useSavedQueries, useSchema } from './chunk-
|
|
1
|
+
import { Dashboard } from './chunk-JBJ5LEAG.js';
|
|
2
|
+
export { Dashboard, DashboardCard, DashboardContext, DashboardDialog, DashboardEditor, DashboardLayout as DashboardLayoutComponent, DashboardList, DashboardProvider, DateRangeFilter, EditorToolbar, FilterBar, MultiSelectFilter, SelectFilter, TextFilter, Widget, WidgetContent, WidgetEditor, WidgetHeader, WidgetPalette, useAutoRefresh, useDashboard, useDashboardFilters, useFullscreen, useWidget } from './chunk-JBJ5LEAG.js';
|
|
3
|
+
export { AreaChart, BarChart, EChartWrapper, LineChart, MetricCard, PieChart, ScatterChart, Sparkline, TrendIndicator, applyThemeToOption, createChartTheme, createGradientColor, dataPointsToChartData, formatAxisLabel, formatCompact, formatMetricValue, getChartColors, isChartDataEmpty, queryResultToChartData, suggestChartType, toChartData } from './chunk-FQ23KG6G.js';
|
|
4
|
+
import { useDashboardPinStatus, usePinMutations, usePinnedDashboards } from './chunk-GELI7MDZ.js';
|
|
5
|
+
export { AggregationPicker, AnalyticsProvider, Badge, Button, ChatBubble, ChatPanel, Checkbox, ColumnNode, ColumnSelector, CustomSQLEditor, Dialog, DialogFooter, DialogHeader, Dropdown, DropdownItem, DropdownSeparator, EmptyDashboard, EmptyState, ErrorBoundary, ErrorFallback, FilterBuilder, FilterRow, FilterValueInput, Icon, Input, NoData, NoResults, Pagination, PrismiqClient, PrismiqError, QueryBuilder, QueryBuilderToolbar, QueryPreview, ResultsTable, SavedQueryPicker, SchemaExplorer, Select, SelectedColumn, Skeleton, SkeletonChart, SkeletonMetricCard, SkeletonTable, SkeletonText, SortBuilder, SortRow, TableCell, TableHeader, TableNode, TableRow, Tooltip, WidgetErrorBoundary, useAnalytics, useAnalyticsCallbacks, useChartData, useCustomSQL, useDashboard as useDashboardData, useDashboardMutations, useDashboardPinStatus, useDashboards, useLLMChat, useLLMStatus, usePinMutations, usePinnedDashboards, useQuery, useSavedQueries, useSchema } from './chunk-GELI7MDZ.js';
|
|
6
6
|
export { ThemeProvider, darkTheme, lightTheme, useTheme } from './chunk-T6STUE7E.js';
|
|
7
|
-
export { downloadFile, exportMultipleSheets, exportToCSV, exportToExcel, generateCSV, useExport } from './chunk-
|
|
7
|
+
export { downloadFile, exportMultipleSheets, exportToCSV, exportToExcel, generateCSV, useExport } from './chunk-HKZFEXT6.js';
|
|
8
8
|
export { BREAKPOINTS, ClientOnly, getLocalStorage, getWindowHeight, getWindowWidth, isBrowser, isServer, removeLocalStorage, setLocalStorage, useBreakpoint, useIsBreakpoint, useIsClient, useMediaQuery, useWindowSize } from './chunk-JTCBZDHY.js';
|
|
9
|
-
export { announceToScreenReader, focusVisibleStyles, skipLinkFocusStyles, skipLinkStyles, useArrowNavigation, useFocusTrap, useFocusVisible, useRovingTabIndex } from './chunk-
|
|
9
|
+
export { announceToScreenReader, focusVisibleStyles, skipLinkFocusStyles, skipLinkStyles, useArrowNavigation, useFocusTrap, useFocusVisible, useRovingTabIndex } from './chunk-LBE6GIBC.js';
|
|
10
10
|
import { useState, useCallback, useRef, useEffect } from 'react';
|
|
11
11
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
12
12
|
|