@vuu-ui/vuu-shell 0.8.82 → 0.8.83

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.
Files changed (81) hide show
  1. package/cjs/application-provider/ApplicationContext.js.map +1 -1
  2. package/cjs/application-provider/ApplicationProvider.js.map +1 -1
  3. package/cjs/feature/Feature.js.map +1 -1
  4. package/cjs/feature/FeatureErrorBoundary.js.map +1 -1
  5. package/cjs/feature-list/FeatureList.js +37 -41
  6. package/cjs/feature-list/FeatureList.js.map +1 -1
  7. package/cjs/feature-provider/FeatureProvider.js +11 -19
  8. package/cjs/feature-provider/FeatureProvider.js.map +1 -1
  9. package/cjs/index.js +0 -3
  10. package/cjs/index.js.map +1 -1
  11. package/cjs/left-nav/LeftNav.js +16 -24
  12. package/cjs/left-nav/LeftNav.js.map +1 -1
  13. package/cjs/persistence-manager/LocalPersistenceManager.js.map +1 -1
  14. package/cjs/persistence-manager/RemotePersistenceManager.js.map +1 -1
  15. package/cjs/shell-layout-templates/context-panel/ContextPanel.js.map +1 -1
  16. package/cjs/shell-layout-templates/full-height-left-panel/useFullHeightLeftPanel.js +1 -1
  17. package/cjs/shell-layout-templates/full-height-left-panel/useFullHeightLeftPanel.js.map +1 -1
  18. package/cjs/shell-layout-templates/inlay-left-panel/useInlayLeftPanel.js +1 -1
  19. package/cjs/shell-layout-templates/inlay-left-panel/useInlayLeftPanel.js.map +1 -1
  20. package/cjs/shell-layout-templates/left-main-tabs/useLeftMainTabs.js +66 -0
  21. package/cjs/shell-layout-templates/left-main-tabs/useLeftMainTabs.js.map +1 -0
  22. package/cjs/shell-layout-templates/simple-content-pane/useSimpleContentPane.js.map +1 -1
  23. package/cjs/shell-layout-templates/useShellLayout.js +2 -0
  24. package/cjs/shell-layout-templates/useShellLayout.js.map +1 -1
  25. package/cjs/shell.css.js +1 -1
  26. package/cjs/shell.js.map +1 -1
  27. package/cjs/theme-switch/ThemeSwitch.js.map +1 -1
  28. package/cjs/user-settings/SettingsForm.js.map +1 -1
  29. package/cjs/workspace-management/LayoutList.js.map +1 -1
  30. package/cjs/workspace-management/SaveLayoutPanel.js.map +1 -1
  31. package/cjs/workspace-management/WorkspaceProvider.js.map +1 -1
  32. package/cjs/workspace-management/defaultWorkspaceJSON.js.map +1 -1
  33. package/cjs/workspace-management/useWorkspaceContextMenuItems.js.map +1 -1
  34. package/esm/application-provider/ApplicationContext.js.map +1 -1
  35. package/esm/application-provider/ApplicationProvider.js.map +1 -1
  36. package/esm/feature/Feature.js.map +1 -1
  37. package/esm/feature/FeatureErrorBoundary.js.map +1 -1
  38. package/esm/feature-list/FeatureList.js +38 -42
  39. package/esm/feature-list/FeatureList.js.map +1 -1
  40. package/esm/feature-provider/FeatureProvider.js +11 -19
  41. package/esm/feature-provider/FeatureProvider.js.map +1 -1
  42. package/esm/index.js +0 -1
  43. package/esm/index.js.map +1 -1
  44. package/esm/left-nav/LeftNav.js +16 -24
  45. package/esm/left-nav/LeftNav.js.map +1 -1
  46. package/esm/persistence-manager/LocalPersistenceManager.js.map +1 -1
  47. package/esm/persistence-manager/RemotePersistenceManager.js.map +1 -1
  48. package/esm/shell-layout-templates/context-panel/ContextPanel.js.map +1 -1
  49. package/esm/shell-layout-templates/full-height-left-panel/useFullHeightLeftPanel.js +1 -1
  50. package/esm/shell-layout-templates/full-height-left-panel/useFullHeightLeftPanel.js.map +1 -1
  51. package/esm/shell-layout-templates/inlay-left-panel/useInlayLeftPanel.js +1 -1
  52. package/esm/shell-layout-templates/inlay-left-panel/useInlayLeftPanel.js.map +1 -1
  53. package/esm/shell-layout-templates/left-main-tabs/useLeftMainTabs.js +64 -0
  54. package/esm/shell-layout-templates/left-main-tabs/useLeftMainTabs.js.map +1 -0
  55. package/esm/shell-layout-templates/simple-content-pane/useSimpleContentPane.js.map +1 -1
  56. package/esm/shell-layout-templates/useShellLayout.js +2 -0
  57. package/esm/shell-layout-templates/useShellLayout.js.map +1 -1
  58. package/esm/shell.css.js +1 -1
  59. package/esm/shell.js.map +1 -1
  60. package/esm/theme-switch/ThemeSwitch.js.map +1 -1
  61. package/esm/user-settings/SettingsForm.js.map +1 -1
  62. package/esm/workspace-management/LayoutList.js.map +1 -1
  63. package/esm/workspace-management/SaveLayoutPanel.js.map +1 -1
  64. package/esm/workspace-management/WorkspaceProvider.js.map +1 -1
  65. package/esm/workspace-management/defaultWorkspaceJSON.js.map +1 -1
  66. package/esm/workspace-management/useWorkspaceContextMenuItems.js.map +1 -1
  67. package/package.json +12 -12
  68. package/types/feature/Feature.d.ts +2 -2
  69. package/types/feature/FeatureErrorBoundary.d.ts +2 -2
  70. package/types/feature-list/FeatureList.d.ts +5 -6
  71. package/types/feature-provider/FeatureProvider.d.ts +8 -9
  72. package/types/index.d.ts +0 -1
  73. package/types/left-nav/LeftNav.d.ts +0 -3
  74. package/types/shell-layout-templates/left-main-tabs/useLeftMainTabs.d.ts +2 -0
  75. package/types/shell-layout-templates/useShellLayout.d.ts +12 -2
  76. package/cjs/datasource-provider/DataSourceProvider.js +0 -31
  77. package/cjs/datasource-provider/DataSourceProvider.js.map +0 -1
  78. package/esm/datasource-provider/DataSourceProvider.js +0 -28
  79. package/esm/datasource-provider/DataSourceProvider.js.map +0 -1
  80. package/types/datasource-provider/DataSourceProvider.d.ts +0 -21
  81. package/types/datasource-provider/index.d.ts +0 -1
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
- "version": "0.8.82",
2
+ "version": "0.8.83",
3
3
  "description": "VUU UI Shell",
4
4
  "author": "heswell",
5
5
  "license": "Apache-2.0",
6
6
  "devDependencies": {
7
- "@vuu-ui/vuu-data-types": "0.8.82",
8
- "@vuu-ui/vuu-protocol-types": "0.8.82",
9
- "@vuu-ui/vuu-table-types": "0.8.82"
7
+ "@vuu-ui/vuu-data-types": "0.8.83",
8
+ "@vuu-ui/vuu-protocol-types": "0.8.83",
9
+ "@vuu-ui/vuu-table-types": "0.8.83"
10
10
  },
11
11
  "dependencies": {
12
12
  "@salt-ds/core": "1.34.0",
13
13
  "@salt-ds/styles": "0.2.1",
14
14
  "@salt-ds/window": "0.1.1",
15
- "@vuu-ui/vuu-data-react": "0.8.82",
16
- "@vuu-ui/vuu-data-remote": "0.8.82",
17
- "@vuu-ui/vuu-icons": "0.8.82",
18
- "@vuu-ui/vuu-layout": "0.8.82",
19
- "@vuu-ui/vuu-popups": "0.8.82",
20
- "@vuu-ui/vuu-table": "0.8.82",
21
- "@vuu-ui/vuu-ui-controls": "0.8.82",
22
- "@vuu-ui/vuu-utils": "0.8.82",
15
+ "@vuu-ui/vuu-data-react": "0.8.83",
16
+ "@vuu-ui/vuu-data-remote": "0.8.83",
17
+ "@vuu-ui/vuu-icons": "0.8.83",
18
+ "@vuu-ui/vuu-layout": "0.8.83",
19
+ "@vuu-ui/vuu-popups": "0.8.83",
20
+ "@vuu-ui/vuu-table": "0.8.83",
21
+ "@vuu-ui/vuu-ui-controls": "0.8.83",
22
+ "@vuu-ui/vuu-utils": "0.8.83",
23
23
  "html-to-image": "^1.11.11"
24
24
  },
25
25
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
- import { FeatureProps } from "@vuu-ui/vuu-utils";
1
+ import { DynamicFeatureProps } from "@vuu-ui/vuu-utils";
2
2
  import React from "react";
3
- declare function RawFeature<Params extends object | undefined>({ url, css, ComponentProps: params, ...props }: FeatureProps<Params>): JSX.Element;
3
+ declare function RawFeature<Params extends object | undefined>({ url, css, ComponentProps: params, ...props }: DynamicFeatureProps<Params>): JSX.Element;
4
4
  /**
5
5
  Feature is a wrapper around React Lazy Loading. It will load a component
6
6
  from the given url. That url must resolve to a javascript bundle with a
@@ -1,6 +1,6 @@
1
- import { FeatureProps } from "@vuu-ui/vuu-utils";
1
+ import { DynamicFeatureProps } from "@vuu-ui/vuu-utils";
2
2
  import React, { ErrorInfo, ReactNode } from "react";
3
- export interface FeatureErrorBoundaryProps extends FeatureProps {
3
+ export interface FeatureErrorBoundaryProps extends DynamicFeatureProps {
4
4
  children: ReactNode;
5
5
  }
6
6
  export declare class FeatureErrorBoundary extends React.Component<FeatureErrorBoundaryProps, any> {
@@ -1,8 +1,7 @@
1
- import { FeatureProps, StaticFeatures } from "@vuu-ui/vuu-utils";
1
+ import { DynamicFeatureProps, StaticFeatureDescriptor } from "@vuu-ui/vuu-utils";
2
2
  import { HTMLAttributes } from "react";
3
- export type GroupedFeatureProps<P extends object | undefined = object> = Record<string, FeatureProps<P>[]>;
4
- export interface FeatureListProps<P extends object | undefined = object> extends HTMLAttributes<HTMLDivElement> {
5
- features: FeatureProps<P>[] | GroupedFeatureProps<P> | StaticFeatures;
6
- isStatic?: boolean;
3
+ export type GroupedFeatureProps<P extends object | undefined = object> = Record<string, DynamicFeatureProps<P>[]>;
4
+ export interface FeatureListProps extends HTMLAttributes<HTMLDivElement> {
5
+ features: DynamicFeatureProps[] | GroupedFeatureProps | StaticFeatureDescriptor[];
7
6
  }
8
- export declare const FeatureList: ({ features, title, isStatic, ...htmlAttributes }: FeatureListProps) => JSX.Element;
7
+ export declare const FeatureList: ({ features, title, ...htmlAttributes }: FeatureListProps) => JSX.Element;
@@ -1,15 +1,14 @@
1
- import { DynamicFeatures, FeatureProps, FilterTableFeatureProps, StaticFeatures } from "@vuu-ui/vuu-utils";
1
+ import { DynamicFeatureDescriptor, DynamicFeatureProps, FilterTableFeatureProps, StaticFeatureDescriptor } from "@vuu-ui/vuu-utils";
2
2
  import { ReactElement, ReactNode } from "react";
3
3
  export interface FeatureContextProps {
4
- dynamicFeatures: FeatureProps[];
5
- tableFeatures: FeatureProps<FilterTableFeatureProps>[];
6
- staticFeatures?: StaticFeatures;
4
+ dynamicFeatures?: DynamicFeatureProps[];
5
+ tableFeatures?: DynamicFeatureProps<FilterTableFeatureProps>[];
6
+ staticFeatures?: StaticFeatureDescriptor[];
7
7
  }
8
8
  export interface FeatureProviderProps extends Partial<FeatureContextProps> {
9
9
  children: ReactNode;
10
- features: DynamicFeatures;
11
- staticFeatures?: StaticFeatures;
10
+ dynamicFeatures?: DynamicFeatureDescriptor[];
11
+ staticFeatures?: StaticFeatureDescriptor[];
12
12
  }
13
- export declare const FeatureProvider: ({ children, features, staticFeatures, }: FeatureProviderProps) => ReactElement;
14
- export type FeaturesHook = (props?: Partial<FeatureContextProps>) => FeatureContextProps;
15
- export declare const useFeatures: FeaturesHook;
13
+ export declare const FeatureProvider: ({ children, dynamicFeatures: dynamicFeaturesProp, staticFeatures, }: FeatureProviderProps) => ReactElement;
14
+ export declare const useFeatures: () => FeatureContextProps;
package/types/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  export * from "./application-provider";
2
2
  export * from "./app-header";
3
3
  export * from "./connection-status";
4
- export * from "./datasource-provider";
5
4
  export * from "./feature";
6
5
  export * from "./feature-provider";
7
6
  export * from "./left-nav";
@@ -1,4 +1,3 @@
1
- import { FeatureProps, FilterTableFeatureProps } from "@vuu-ui/vuu-utils";
2
1
  import { HTMLAttributes } from "react";
3
2
  export type NavDisplayStatus = "menu-full" | "menu-icons" | "menu-full-content" | "menu-icons-content";
4
3
  export type NavDisplayStatusHandler = (navDisplayStatus: NavDisplayStatus) => void;
@@ -6,12 +5,10 @@ export interface LeftNavProps extends HTMLAttributes<HTMLDivElement> {
6
5
  "data-path"?: string;
7
6
  defaultActiveTabIndex?: number;
8
7
  defaultExpanded?: boolean;
9
- features?: FeatureProps[];
10
8
  onActiveChange?: (activeTabIndex: number) => void;
11
9
  onTogglePrimaryMenu?: (expanded: boolean) => void;
12
10
  sizeCollapsed?: number;
13
11
  sizeContent?: number;
14
12
  sizeExpanded?: number;
15
- tableFeatures?: FeatureProps<FilterTableFeatureProps>[];
16
13
  }
17
14
  export declare const LeftNav: (props: LeftNavProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ShellLayoutTemplateHook } from "../useShellLayout";
2
+ export declare const useLeftMainTabs: ShellLayoutTemplateHook;
@@ -1,12 +1,18 @@
1
1
  import { HTMLAttributes, ReactElement, ReactNode } from "react";
2
- import { SidePanelProps } from "./side-panel";
2
+ import { SidePanelProps as ShellSidePanelProps } from "./side-panel";
3
3
  declare const LayoutHook: {
4
4
  "full-height": ShellLayoutTemplateHook;
5
5
  inlay: ShellLayoutTemplateHook;
6
+ "left-main-tabs": ShellLayoutTemplateHook;
6
7
  "simple-content-pane": ShellLayoutTemplateHook;
7
8
  };
8
9
  export type LayoutTemplateId = keyof typeof LayoutHook;
9
10
  export type ShellLayoutTemplateProps = Omit<ShellLayoutProps, "layoutTemplateId">;
11
+ export type ShellToolbarProps = {
12
+ children: ReactNode;
13
+ position?: "left";
14
+ width?: number;
15
+ };
10
16
  export type ShellLayoutTemplateHook = (props: ShellLayoutTemplateProps) => ReactElement;
11
17
  /**
12
18
  * The Shell Layout is the outermost 'chrome' of the appliciation,
@@ -30,7 +36,11 @@ export interface ShellLayoutProps {
30
36
  /**
31
37
  * If template renders SidePanel, these props will be provided
32
38
  */
33
- LeftSidePanelProps?: SidePanelProps;
39
+ SidePanelProps?: ShellSidePanelProps;
40
+ /**
41
+ * If template renders Toolbar, these props will be provided
42
+ */
43
+ ToolbarProps?: ShellToolbarProps;
34
44
  }
35
45
  /**
36
46
  * This hook acts as a stub for the actual shell layout
@@ -1,31 +0,0 @@
1
- 'use strict';
2
-
3
- var jsxRuntime = require('react/jsx-runtime');
4
- var vuuDataRemote = require('@vuu-ui/vuu-data-remote');
5
- var React = require('react');
6
-
7
- const DataSourceContext = React.createContext({
8
- isLocalData: false,
9
- getServerAPI: vuuDataRemote.getServerAPI,
10
- VuuDataSource: vuuDataRemote.VuuDataSource
11
- });
12
- const DataSourceProvider = ({
13
- children,
14
- getServerAPI: getServerAPI2,
15
- isLocalData = true,
16
- VuuDataSource: VuuDataSource2,
17
- vuuModuleName
18
- }) => {
19
- return /* @__PURE__ */ jsxRuntime.jsx(
20
- DataSourceContext.Provider,
21
- {
22
- value: { isLocalData, vuuModuleName, VuuDataSource: VuuDataSource2, getServerAPI: getServerAPI2 },
23
- children
24
- }
25
- );
26
- };
27
- const useDataSource = () => React.useContext(DataSourceContext);
28
-
29
- exports.DataSourceProvider = DataSourceProvider;
30
- exports.useDataSource = useDataSource;
31
- //# sourceMappingURL=DataSourceProvider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSourceProvider.js","sources":["../../src/datasource-provider/DataSourceProvider.tsx"],"sourcesContent":["import {\n getServerAPI,\n ServerAPI,\n VuuDataSource,\n} from \"@vuu-ui/vuu-data-remote\";\nimport { DataSource, DataSourceConstructorProps } from \"@vuu-ui/vuu-data-types\";\nimport { createContext, ReactNode, useContext } from \"react\";\n\nexport type DataSourceConstructor = {\n new (props: DataSourceConstructorProps): DataSource;\n};\n\nexport interface DataSourceContextProps {\n isLocalData: boolean;\n VuuDataSource: DataSourceConstructor;\n vuuModuleName?: string;\n getServerAPI: () => Promise<\n Pick<ServerAPI, \"getTableList\" | \"getTableSchema\">\n >;\n}\n\nconst DataSourceContext = createContext<DataSourceContextProps>({\n isLocalData: false,\n getServerAPI,\n VuuDataSource,\n});\n\n/**\n * If a client is adding a DataSOurceProvider, it will ususlly be\n * to install local test data, so we default isLocalData to true\n */\nexport const DataSourceProvider = ({\n children,\n getServerAPI,\n isLocalData = true,\n VuuDataSource,\n vuuModuleName,\n}: Omit<DataSourceContextProps, \"isLocalData\"> & {\n children: ReactNode;\n isLocalData?: boolean;\n}) => {\n return (\n <DataSourceContext.Provider\n value={{ isLocalData, vuuModuleName, VuuDataSource, getServerAPI }}\n >\n {children}\n </DataSourceContext.Provider>\n );\n};\n\nexport const useDataSource = () => useContext(DataSourceContext);\n"],"names":["createContext","getServerAPI","VuuDataSource","jsx","useContext"],"mappings":";;;;;;AAqBA,MAAM,oBAAoBA,mBAAsC,CAAA;AAAA,EAC9D,WAAa,EAAA,KAAA;AAAA,gBACbC,0BAAA;AAAA,iBACAC,2BAAA;AACF,CAAC,CAAA,CAAA;AAMM,MAAM,qBAAqB,CAAC;AAAA,EACjC,QAAA;AAAA,EACA,YAAAD,EAAAA,aAAAA;AAAA,EACA,WAAc,GAAA,IAAA;AAAA,EACd,aAAAC,EAAAA,cAAAA;AAAA,EACA,aAAA;AACF,CAGM,KAAA;AACJ,EACE,uBAAAC,cAAA;AAAA,IAAC,iBAAkB,CAAA,QAAA;AAAA,IAAlB;AAAA,MACC,OAAO,EAAE,WAAA,EAAa,eAAe,aAAAD,EAAAA,cAAAA,EAAe,cAAAD,aAAa,EAAA;AAAA,MAEhE,QAAA;AAAA,KAAA;AAAA,GACH,CAAA;AAEJ,EAAA;AAEa,MAAA,aAAA,GAAgB,MAAMG,gBAAA,CAAW,iBAAiB;;;;;"}
@@ -1,28 +0,0 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import { getServerAPI, VuuDataSource } from '@vuu-ui/vuu-data-remote';
3
- import { createContext, useContext } from 'react';
4
-
5
- const DataSourceContext = createContext({
6
- isLocalData: false,
7
- getServerAPI,
8
- VuuDataSource
9
- });
10
- const DataSourceProvider = ({
11
- children,
12
- getServerAPI: getServerAPI2,
13
- isLocalData = true,
14
- VuuDataSource: VuuDataSource2,
15
- vuuModuleName
16
- }) => {
17
- return /* @__PURE__ */ jsx(
18
- DataSourceContext.Provider,
19
- {
20
- value: { isLocalData, vuuModuleName, VuuDataSource: VuuDataSource2, getServerAPI: getServerAPI2 },
21
- children
22
- }
23
- );
24
- };
25
- const useDataSource = () => useContext(DataSourceContext);
26
-
27
- export { DataSourceProvider, useDataSource };
28
- //# sourceMappingURL=DataSourceProvider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSourceProvider.js","sources":["../../src/datasource-provider/DataSourceProvider.tsx"],"sourcesContent":["import {\n getServerAPI,\n ServerAPI,\n VuuDataSource,\n} from \"@vuu-ui/vuu-data-remote\";\nimport { DataSource, DataSourceConstructorProps } from \"@vuu-ui/vuu-data-types\";\nimport { createContext, ReactNode, useContext } from \"react\";\n\nexport type DataSourceConstructor = {\n new (props: DataSourceConstructorProps): DataSource;\n};\n\nexport interface DataSourceContextProps {\n isLocalData: boolean;\n VuuDataSource: DataSourceConstructor;\n vuuModuleName?: string;\n getServerAPI: () => Promise<\n Pick<ServerAPI, \"getTableList\" | \"getTableSchema\">\n >;\n}\n\nconst DataSourceContext = createContext<DataSourceContextProps>({\n isLocalData: false,\n getServerAPI,\n VuuDataSource,\n});\n\n/**\n * If a client is adding a DataSOurceProvider, it will ususlly be\n * to install local test data, so we default isLocalData to true\n */\nexport const DataSourceProvider = ({\n children,\n getServerAPI,\n isLocalData = true,\n VuuDataSource,\n vuuModuleName,\n}: Omit<DataSourceContextProps, \"isLocalData\"> & {\n children: ReactNode;\n isLocalData?: boolean;\n}) => {\n return (\n <DataSourceContext.Provider\n value={{ isLocalData, vuuModuleName, VuuDataSource, getServerAPI }}\n >\n {children}\n </DataSourceContext.Provider>\n );\n};\n\nexport const useDataSource = () => useContext(DataSourceContext);\n"],"names":["getServerAPI","VuuDataSource"],"mappings":";;;;AAqBA,MAAM,oBAAoB,aAAsC,CAAA;AAAA,EAC9D,WAAa,EAAA,KAAA;AAAA,EACb,YAAA;AAAA,EACA,aAAA;AACF,CAAC,CAAA,CAAA;AAMM,MAAM,qBAAqB,CAAC;AAAA,EACjC,QAAA;AAAA,EACA,YAAAA,EAAAA,aAAAA;AAAA,EACA,WAAc,GAAA,IAAA;AAAA,EACd,aAAAC,EAAAA,cAAAA;AAAA,EACA,aAAA;AACF,CAGM,KAAA;AACJ,EACE,uBAAA,GAAA;AAAA,IAAC,iBAAkB,CAAA,QAAA;AAAA,IAAlB;AAAA,MACC,OAAO,EAAE,WAAA,EAAa,eAAe,aAAAA,EAAAA,cAAAA,EAAe,cAAAD,aAAa,EAAA;AAAA,MAEhE,QAAA;AAAA,KAAA;AAAA,GACH,CAAA;AAEJ,EAAA;AAEa,MAAA,aAAA,GAAgB,MAAM,UAAA,CAAW,iBAAiB;;;;"}
@@ -1,21 +0,0 @@
1
- import { ServerAPI } from "@vuu-ui/vuu-data-remote";
2
- import { DataSource, DataSourceConstructorProps } from "@vuu-ui/vuu-data-types";
3
- import { ReactNode } from "react";
4
- export type DataSourceConstructor = {
5
- new (props: DataSourceConstructorProps): DataSource;
6
- };
7
- export interface DataSourceContextProps {
8
- isLocalData: boolean;
9
- VuuDataSource: DataSourceConstructor;
10
- vuuModuleName?: string;
11
- getServerAPI: () => Promise<Pick<ServerAPI, "getTableList" | "getTableSchema">>;
12
- }
13
- /**
14
- * If a client is adding a DataSOurceProvider, it will ususlly be
15
- * to install local test data, so we default isLocalData to true
16
- */
17
- export declare const DataSourceProvider: ({ children, getServerAPI, isLocalData, VuuDataSource, vuuModuleName, }: Omit<DataSourceContextProps, "isLocalData"> & {
18
- children: ReactNode;
19
- isLocalData?: boolean | undefined;
20
- }) => JSX.Element;
21
- export declare const useDataSource: () => DataSourceContextProps;
@@ -1 +0,0 @@
1
- export * from "./DataSourceProvider";