@malloy-publisher/sdk 0.0.51 → 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.
@@ -7,7 +7,8 @@ export interface SourceExplorerProps {
7
7
  sourceAndPaths: SourceAndPath[];
8
8
  existingQuery?: QueryExplorerResult;
9
9
  existingSourceName?: string;
10
- onChange?: (query: QueryExplorerResult) => void;
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, onChange, }: SourceExplorerProps): import("react/jsx-runtime").JSX.Element;
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
- onChange: (query: QueryExplorerResult) => void;
7
+ onQueryChange: (query: QueryExplorerResult) => void;
8
+ onSourceChange?: (index: number) => void;
8
9
  }
9
- export declare function EditableMalloyCell({ cell, sourceAndPaths, onChange, }: EditableMalloyCellProps): import("react/jsx-runtime").JSX.Element;
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
- interface ProjectProviderProps extends ProjectContextProps {
5
+ export declare function useProject(): ProjectContextProps;
6
+ interface ProjectProviderProps {
6
7
  children: ReactNode;
8
+ projectName: string;
7
9
  }
8
- export declare const ProjectProvider: ({ projectName, children, }: ProjectProviderProps) => import("react/jsx-runtime").JSX.Element;
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
  }