drizzle-cube 0.4.36 → 0.4.38
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/adapters/express/index.cjs +1 -1
- package/dist/adapters/express/index.js +3 -3
- package/dist/adapters/fastify/index.cjs +1 -1
- package/dist/adapters/fastify/index.js +3 -3
- package/dist/adapters/{handler-DzUX7CBs.cjs → handler-dHHEEbG9.cjs} +1 -1
- package/dist/adapters/{handler-J55KQKe5.js → handler-fto6TSVn.js} +1 -1
- package/dist/adapters/hono/index.cjs +1 -1
- package/dist/adapters/hono/index.js +3 -3
- package/dist/adapters/{mcp-transport-CjA5_6G_.cjs → mcp-transport-ro4OL4BW.cjs} +4 -4
- package/dist/adapters/{mcp-transport-x_A7Q5OL.js → mcp-transport-tB5a7Het.js} +70 -17
- package/dist/adapters/nextjs/index.cjs +1 -1
- package/dist/adapters/nextjs/index.js +3 -3
- package/dist/adapters/{utils-CDExg9uP.cjs → utils-2MwxiQ2o.cjs} +1 -1
- package/dist/adapters/{utils-DkKcpkx5.js → utils-_2o905Fi.js} +2 -1
- package/dist/adapters/utils.cjs +1 -1
- package/dist/adapters/utils.d.ts +2 -0
- package/dist/adapters/utils.js +1 -1
- package/dist/client/charts.js +3 -3
- package/dist/client/chunks/{DashboardEditModal-kWEk4KJC.js → DashboardEditModal-DrjEsyoO.js} +7 -7
- package/dist/client/chunks/DashboardEditModal-DrjEsyoO.js.map +1 -0
- package/dist/client/chunks/{FieldSearchModal-rB26lhBD.js → FieldSearchModal-BxQ5JhWz.js} +2 -2
- package/dist/client/chunks/{FieldSearchModal-rB26lhBD.js.map → FieldSearchModal-BxQ5JhWz.js.map} +1 -1
- package/dist/client/chunks/{analysis-builder-CdDPUAEU.js → analysis-builder-CmJhXXc7.js} +1863 -2554
- package/dist/client/chunks/analysis-builder-CmJhXXc7.js.map +1 -0
- package/dist/client/chunks/{analysis-builder-shared-3V70XUNW.js → analysis-builder-shared-BxHYfTzo.js} +1516 -722
- package/dist/client/chunks/analysis-builder-shared-BxHYfTzo.js.map +1 -0
- package/dist/client/chunks/{chart-data-table-BlkFWPhF.js → chart-data-table-CW_qZDpt.js} +11 -1
- package/dist/client/chunks/chart-data-table-CW_qZDpt.js.map +1 -0
- package/dist/client/chunks/{chart-kpi-delta-CUIjCDS3.js → chart-kpi-delta-BPexzOe7.js} +2 -2
- package/dist/client/chunks/{chart-kpi-delta-CUIjCDS3.js.map → chart-kpi-delta-BPexzOe7.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-number-CxlpSKYh.js → chart-kpi-number-BBtGBtZL.js} +3 -3
- package/dist/client/chunks/{chart-kpi-number-CxlpSKYh.js.map → chart-kpi-number-BBtGBtZL.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-text-C16fwohp.js → chart-kpi-text-BqHhmJEB.js} +2 -2
- package/dist/client/chunks/{chart-kpi-text-C16fwohp.js.map → chart-kpi-text-BqHhmJEB.js.map} +1 -1
- package/dist/client/chunks/{charts-loader-BFhQWB_d.js → charts-loader-gZjOqZwG.js} +5 -5
- package/dist/client/chunks/{charts-loader-BFhQWB_d.js.map → charts-loader-gZjOqZwG.js.map} +1 -1
- package/dist/client/chunks/{schema-visualization-qmLI8MGQ.js → schema-visualization-XLFzV_7p.js} +2 -2
- package/dist/client/chunks/{schema-visualization-qmLI8MGQ.js.map → schema-visualization-XLFzV_7p.js.map} +1 -1
- package/dist/client/chunks/{useDebounce-xfPFr2fi.js → useDebounce-C_wstEud.js} +2 -2
- package/dist/client/chunks/{useDebounce-xfPFr2fi.js.map → useDebounce-C_wstEud.js.map} +1 -1
- package/dist/client/chunks/{useExplainAI-6COjssus.js → useExplainAI-C9ytXRIC.js} +21 -18
- package/dist/client/chunks/{useExplainAI-6COjssus.js.map → useExplainAI-C9ytXRIC.js.map} +1 -1
- package/dist/client/chunks/{utils-nCeVL-Hm.js → utils-3FNmeZJR.js} +2 -2
- package/dist/client/chunks/{utils-nCeVL-Hm.js.map → utils-3FNmeZJR.js.map} +1 -1
- package/dist/client/chunks/{vendor-WzXX36hd.js → vendor-BPRWulB7.js} +2 -2
- package/dist/client/chunks/{vendor-WzXX36hd.js.map → vendor-BPRWulB7.js.map} +1 -1
- package/dist/client/components/AIAssistant/utils.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/LimitSection.d.ts +14 -0
- package/dist/client/components/AnalysisBuilder/types.d.ts +7 -0
- package/dist/client/components/AnalysisBuilder/utils/queryUtils.d.ts +1 -1
- package/dist/client/components/DataBrowser/DataBrowserSidebar.d.ts +16 -0
- package/dist/client/components/DataBrowser/DataBrowserTable.d.ts +16 -0
- package/dist/client/components/DataBrowser/DataBrowserToolbar.d.ts +22 -0
- package/dist/client/components/DataBrowser/index.d.ts +28 -0
- package/dist/client/components.js +3 -3
- package/dist/client/hooks/useAnalysisBuilderHook.d.ts +1 -0
- package/dist/client/hooks/useDataBrowser.d.ts +67 -0
- package/dist/client/hooks.js +3 -3
- package/dist/client/icons/types.d.ts +1 -0
- package/dist/client/icons.js +1 -1
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.js +774 -192
- package/dist/client/index.js.map +1 -1
- package/dist/client/providers/CubeApiProvider.d.ts +1 -0
- package/dist/client/providers.js +1 -1
- package/dist/client/stores/analysisBuilderStore.d.ts +2 -0
- package/dist/client/stores/dataBrowserStore.d.ts +34 -0
- package/dist/client/stores/slices/querySlice.d.ts +1 -0
- package/dist/client/styles.css +1 -1
- package/dist/client/types.d.ts +2 -0
- package/dist/client/utils.js +3 -3
- package/dist/client-bundle-stats.html +1 -1
- package/dist/server/index.cjs +3 -3
- package/dist/server/index.d.ts +18 -0
- package/dist/server/index.js +68 -15
- package/package.json +1 -1
- package/dist/client/chunks/DashboardEditModal-kWEk4KJC.js.map +0 -1
- package/dist/client/chunks/analysis-builder-CdDPUAEU.js.map +0 -1
- package/dist/client/chunks/analysis-builder-shared-3V70XUNW.js.map +0 -1
- package/dist/client/chunks/chart-data-table-BlkFWPhF.js.map +0 -1
|
@@ -175,6 +175,7 @@ export interface UseAnalysisBuilderResult {
|
|
|
175
175
|
setFilters: (filters: Filter[]) => void;
|
|
176
176
|
dropFieldToFilter: (field: string) => void;
|
|
177
177
|
setOrder: (fieldName: string, direction: 'asc' | 'desc' | null) => void;
|
|
178
|
+
setLimit: (limit: number | undefined) => void;
|
|
178
179
|
addQuery: () => void;
|
|
179
180
|
removeQuery: (index: number) => void;
|
|
180
181
|
setFunnelBindingKey: (bindingKey: FunnelBindingKey | null) => void;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { CubeQuery } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Get field type from metadata
|
|
4
|
+
*/
|
|
5
|
+
export declare function getFieldType(fieldName: string, meta: {
|
|
6
|
+
cubes: Array<{
|
|
7
|
+
name: string;
|
|
8
|
+
dimensions: Array<{
|
|
9
|
+
name: string;
|
|
10
|
+
type: string;
|
|
11
|
+
}>;
|
|
12
|
+
measures: Array<{
|
|
13
|
+
name: string;
|
|
14
|
+
type: string;
|
|
15
|
+
}>;
|
|
16
|
+
}>;
|
|
17
|
+
} | null): string;
|
|
18
|
+
/**
|
|
19
|
+
* Get all browsable columns for a cube (dimensions + ungrouped-compatible measures)
|
|
20
|
+
*/
|
|
21
|
+
export declare function getCubeColumns(cubeName: string, meta: {
|
|
22
|
+
cubes: Array<{
|
|
23
|
+
name: string;
|
|
24
|
+
dimensions: Array<{
|
|
25
|
+
name: string;
|
|
26
|
+
}>;
|
|
27
|
+
measures: Array<{
|
|
28
|
+
name: string;
|
|
29
|
+
type: string;
|
|
30
|
+
}>;
|
|
31
|
+
}>;
|
|
32
|
+
} | null): {
|
|
33
|
+
dimensions: string[];
|
|
34
|
+
measures: string[];
|
|
35
|
+
};
|
|
36
|
+
export declare function useDataBrowser(): {
|
|
37
|
+
refetch: (options?: import('./queries/useCubeLoadQuery').RefetchOptions) => void;
|
|
38
|
+
selectCube: (cubeName: string, allDimensions: string[]) => void;
|
|
39
|
+
setVisibleColumns: (columns: string[]) => void;
|
|
40
|
+
toggleColumn: (column: string) => void;
|
|
41
|
+
setSort: (column: string) => void;
|
|
42
|
+
clearSort: () => void;
|
|
43
|
+
setPage: (page: number) => void;
|
|
44
|
+
setPageSize: (size: number) => void;
|
|
45
|
+
setFilters: (filters: import('../types').Filter[]) => void;
|
|
46
|
+
toggleFilterBar: () => void;
|
|
47
|
+
setShowColumnPicker: (show: boolean) => void;
|
|
48
|
+
selectedCube: string | null;
|
|
49
|
+
visibleColumns: string[];
|
|
50
|
+
sortColumn: string | null;
|
|
51
|
+
sortDirection: "asc" | "desc";
|
|
52
|
+
page: number;
|
|
53
|
+
pageSize: number;
|
|
54
|
+
filters: import('../types').Filter[];
|
|
55
|
+
showFilterBar: boolean;
|
|
56
|
+
showColumnPicker: boolean;
|
|
57
|
+
rawData: unknown[] | null;
|
|
58
|
+
isLoading: boolean;
|
|
59
|
+
isFetching: boolean;
|
|
60
|
+
error: Error | null;
|
|
61
|
+
query: CubeQuery | null;
|
|
62
|
+
rowCount: number;
|
|
63
|
+
hasNextPage: boolean;
|
|
64
|
+
hasPrevPage: boolean;
|
|
65
|
+
meta: import('../types').CubeMeta | null;
|
|
66
|
+
getFieldLabel: (fieldName: string) => string;
|
|
67
|
+
};
|
package/dist/client/hooks.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as e } from "./chunks/chart-data-table-
|
|
2
|
-
import { a as t, b as n, i as r, l as i, n as a, o, r as s, s as c, t as l } from "./chunks/useDebounce-
|
|
3
|
-
import { a as u, i as d, n as f, o as p, r as m, t as h } from "./chunks/useExplainAI-
|
|
1
|
+
import { O as e } from "./chunks/chart-data-table-CW_qZDpt.js";
|
|
2
|
+
import { a as t, b as n, i as r, l as i, n as a, o, r as s, s as c, t as l } from "./chunks/useDebounce-C_wstEud.js";
|
|
3
|
+
import { a as u, i as d, n as f, o as p, r as m, t as h } from "./chunks/useExplainAI-C9ytXRIC.js";
|
|
4
4
|
import { n as g, t as _ } from "./chunks/useDirtyStateTracking-CgKZWkel.js";
|
|
5
5
|
import { t as v } from "./chunks/useNotebookLayout-BFZ_33Kb.js";
|
|
6
6
|
export { f as createExplainQueryKey, r as createFlowQueryKey, o as createFunnelQueryKey, n as useCubeLoadQuery, n as useCubeQuery, e as useCubeMetaQuery, l as useDebounce, _ as useDirtyStateTracking, d as useDryRunQueries, u as useDryRunQuery, h as useExplainAI, m as useExplainQuery, a as useFilterValues, t as useFlowQuery, c as useFunnelQuery, i as useMultiCubeLoadQuery, p as useMultiDryRunQueries, v as useNotebookLayout, g as useResponsiveDashboard, s as useRetentionQuery };
|
package/dist/client/icons.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as e, d as t, f as n, g as r, h as i, l as a, m as o, p as s, u as c, v as l, y as u } from "./chunks/chart-data-table-
|
|
1
|
+
import { _ as e, d as t, f as n, g as r, h as i, l as a, m as o, p as s, u as c, v as l, y as u } from "./chunks/chart-data-table-CW_qZDpt.js";
|
|
2
2
|
export { u as DEFAULT_ICONS, a as getChartTypeIcon, c as getFieldTypeIcon, t as getIcon, n as getIconData, s as getIconRegistry, o as getIconsByCategory, i as getMeasureTypeIcon, r as registerIcons, e as resetIcons, l as setIcon };
|
package/dist/client/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export { AnalyticsPage } from './components/AnalyticsPage';
|
|
|
6
6
|
export { default as ChartErrorBoundary } from './components/ChartErrorBoundary';
|
|
7
7
|
export { default as LoadingIndicator } from './components/LoadingIndicator';
|
|
8
8
|
export type { LoadingIndicatorProps } from './components/LoadingIndicator';
|
|
9
|
+
export { default as DataBrowser } from './components/DataBrowser';
|
|
10
|
+
export type { DataBrowserProps } from './components/DataBrowser';
|
|
9
11
|
export { LazyChart, preloadChart, preloadCharts, isValidChartType, getAvailableChartTypes, isChartTypeAvailable, getUnavailableChartTypes } from './charts/ChartLoader';
|
|
10
12
|
export type { LazyChartProps } from './charts/ChartLoader';
|
|
11
13
|
export { default as DashboardGrid } from './components/DashboardGrid';
|
|
@@ -35,6 +37,7 @@ export { useCubeMetaQuery, useCubeLoadQuery, useCubeQuery, useMultiCubeLoadQuery
|
|
|
35
37
|
export type { UseCubeMetaQueryOptions, UseCubeMetaQueryResult, UseCubeLoadQueryOptions, UseCubeLoadQueryResult, UseMultiCubeLoadQueryOptions, UseMultiCubeLoadQueryResult, DebugDataEntry, UseExplainQueryOptions, UseExplainQueryResult, UseExplainAIOptions, UseExplainAIResult, UseFlowQueryOptions, UseFlowQueryResult, } from './hooks/queries';
|
|
36
38
|
export { useAnalysisBuilder } from './hooks/useAnalysisBuilderHook';
|
|
37
39
|
export type { UseAnalysisBuilderOptions, UseAnalysisBuilderResult, } from './hooks/useAnalysisBuilderHook';
|
|
40
|
+
export { useDataBrowser } from './hooks/useDataBrowser';
|
|
38
41
|
export { useDashboard } from './hooks/useDashboardHook';
|
|
39
42
|
export type { UseDashboardOptions, UseDashboardResult, UseDashboardActions, } from './hooks/useDashboardHook';
|
|
40
43
|
export { useAnalysisBuilderStore, selectCurrentState, selectMetrics, selectBreakdowns, selectFilters, selectChartConfig, selectUIState, selectMultiQueryState, selectFunnelState, } from './stores/analysisBuilderStore';
|