drizzle-cube 0.1.13 → 0.1.14
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/README.md +48 -213
- package/dist/client/components/AnalyticsDashboard.d.ts +1 -1
- package/dist/client/components/DashboardGrid.d.ts +1 -2
- package/dist/client/components/PortletEditModal.d.ts +1 -2
- package/dist/client/components/QueryBuilder/types.d.ts +0 -1
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +7162 -7130
- package/dist/client/providers/CubeProvider.d.ts +6 -3
- package/dist/client/types.d.ts +0 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { CubeClient } from '../client/CubeClient';
|
|
3
|
-
import { CubeQueryOptions } from '../types';
|
|
3
|
+
import { CubeQueryOptions, CubeApiOptions } from '../types';
|
|
4
4
|
import { CubeMeta, FieldLabelMap } from '../hooks/useCubeMeta';
|
|
5
5
|
interface CubeContextValue {
|
|
6
6
|
cubeApi: CubeClient;
|
|
@@ -11,12 +11,15 @@ interface CubeContextValue {
|
|
|
11
11
|
metaError: string | null;
|
|
12
12
|
getFieldLabel: (fieldName: string) => string;
|
|
13
13
|
refetchMeta: () => void;
|
|
14
|
+
updateApiConfig: (apiOptions: CubeApiOptions, token?: string) => void;
|
|
14
15
|
}
|
|
15
16
|
interface CubeProviderProps {
|
|
16
|
-
cubeApi
|
|
17
|
+
cubeApi?: CubeClient;
|
|
18
|
+
apiOptions?: CubeApiOptions;
|
|
19
|
+
token?: string;
|
|
17
20
|
options?: CubeQueryOptions;
|
|
18
21
|
children: React.ReactNode;
|
|
19
22
|
}
|
|
20
|
-
export declare function CubeProvider({ cubeApi, options, children }: CubeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function CubeProvider({ cubeApi: initialCubeApi, apiOptions: initialApiOptions, token: initialToken, options, children }: CubeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
21
24
|
export declare function useCubeContext(): CubeContextValue;
|
|
22
25
|
export {};
|
package/dist/client/types.d.ts
CHANGED
|
@@ -102,8 +102,6 @@ export interface AnalyticsPortletProps {
|
|
|
102
102
|
}
|
|
103
103
|
export interface AnalyticsDashboardProps {
|
|
104
104
|
config: DashboardConfig;
|
|
105
|
-
apiUrl?: string;
|
|
106
|
-
apiOptions?: CubeApiOptions;
|
|
107
105
|
editable?: boolean;
|
|
108
106
|
onConfigChange?: (config: DashboardConfig) => void;
|
|
109
107
|
onSave?: (config: DashboardConfig) => Promise<void> | void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drizzle-cube",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "Drizzle ORM-first semantic layer with Cube.js compatibility. Type-safe analytics and dashboards with SQL injection protection.",
|
|
5
5
|
"main": "./dist/server/index.js",
|
|
6
6
|
"types": "./dist/server/index.d.ts",
|