@malloy-publisher/sdk 0.0.52 → 0.0.53
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/components/Model/SourcesExplorer.d.ts +3 -2
- package/dist/components/MutableNotebook/EditableMalloyCell.d.ts +3 -2
- package/dist/components/Project/Project.d.ts +4 -3
- package/dist/index.cjs.js +17 -17
- package/dist/index.es.js +1460 -1480
- package/package.json +1 -1
- package/src/components/Model/ModelCell.tsx +12 -13
- package/src/components/Model/SourcesExplorer.tsx +26 -17
- package/src/components/MutableNotebook/EditableMalloyCell.tsx +8 -3
- package/src/components/MutableNotebook/MutableCell.tsx +19 -5
- package/src/components/MutableNotebook/MutableNotebook.tsx +43 -43
- package/src/components/Notebook/Notebook.tsx +7 -12
- package/src/components/Notebook/NotebookCell.tsx +4 -5
- package/src/components/Package/Config.tsx +24 -18
- package/src/components/Package/Connections.tsx +4 -5
- package/src/components/Package/Databases.tsx +6 -7
- package/src/components/Package/Models.tsx +2 -3
- package/src/components/Package/Notebooks.tsx +2 -3
- package/src/components/Package/Package.tsx +1 -6
- package/src/components/Project/About.tsx +11 -14
- package/src/components/Project/Packages.tsx +50 -57
- package/src/components/Project/Project.tsx +15 -19
- package/src/components/RenderedResult/ResultContainer.tsx +4 -4
- package/src/components/styles.ts +4 -7
|
@@ -7,7 +7,8 @@ export interface SourceExplorerProps {
|
|
|
7
7
|
sourceAndPaths: SourceAndPath[];
|
|
8
8
|
existingQuery?: QueryExplorerResult;
|
|
9
9
|
existingSourceName?: string;
|
|
10
|
-
|
|
10
|
+
onQueryChange?: (query: QueryExplorerResult) => void;
|
|
11
|
+
onSourceChange?: (index: number) => void;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* Component for Exploring a set of sources.
|
|
@@ -16,7 +17,7 @@ export interface SourceExplorerProps {
|
|
|
16
17
|
* It is expected that multiple sourceInfo entries will correspond to the same
|
|
17
18
|
* model path.
|
|
18
19
|
*/
|
|
19
|
-
export declare function SourcesExplorer({ sourceAndPaths, existingQuery, existingSourceName,
|
|
20
|
+
export declare function SourcesExplorer({ sourceAndPaths, existingQuery, existingSourceName, onQueryChange, onSourceChange, }: SourceExplorerProps): import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
interface SourceExplorerComponentProps {
|
|
21
22
|
sourceAndPath: SourceAndPath;
|
|
22
23
|
existingQuery?: QueryExplorerResult;
|
|
@@ -4,7 +4,8 @@ import { NotebookCellValue } from '../NotebookManager';
|
|
|
4
4
|
interface EditableMalloyCellProps {
|
|
5
5
|
cell: NotebookCellValue;
|
|
6
6
|
sourceAndPaths: SourceAndPath[];
|
|
7
|
-
|
|
7
|
+
onQueryChange: (query: QueryExplorerResult) => void;
|
|
8
|
+
onSourceChange?: (index: number) => void;
|
|
8
9
|
}
|
|
9
|
-
export declare function EditableMalloyCell({ cell, sourceAndPaths,
|
|
10
|
+
export declare function EditableMalloyCell({ cell, sourceAndPaths, onQueryChange, onSourceChange, }: EditableMalloyCellProps): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -2,11 +2,12 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
export interface ProjectContextProps {
|
|
3
3
|
projectName: string;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
export declare function useProject(): ProjectContextProps;
|
|
6
|
+
interface ProjectProviderProps {
|
|
6
7
|
children: ReactNode;
|
|
8
|
+
projectName: string;
|
|
7
9
|
}
|
|
8
|
-
export declare
|
|
9
|
-
export declare function useProject(): ProjectContextProps;
|
|
10
|
+
export declare function ProjectProvider({ children, projectName, }: ProjectProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
interface ProjectProps {
|
|
11
12
|
navigate: (to: string, event?: React.MouseEvent) => void;
|
|
12
13
|
}
|