@vuu-ui/vuu-shell 0.7.0 → 0.7.1-debug

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/types/shell.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { HTMLAttributes, ReactElement, ReactNode } from "react";
2
2
  import { LayoutJSON } from "@vuu-ui/vuu-layout/src/layout-reducer";
3
3
  import "./shell.css";
4
+ import { SaveLocation } from "./shellTypes";
4
5
  export type VuuUser = {
5
6
  username: string;
6
7
  token: string;
@@ -10,7 +11,9 @@ export interface ShellProps extends HTMLAttributes<HTMLDivElement> {
10
11
  defaultLayout?: LayoutJSON;
11
12
  leftSidePanel?: ReactElement;
12
13
  loginUrl?: string;
14
+ saveLocation?: SaveLocation;
15
+ saveUrl?: string;
13
16
  serverUrl?: string;
14
17
  user: VuuUser;
15
18
  }
16
- export declare const Shell: ({ children, className: classNameProp, defaultLayout, leftSidePanel, loginUrl, serverUrl, user, ...htmlAttributes }: ShellProps) => JSX.Element;
19
+ export declare const Shell: ({ children, className: classNameProp, defaultLayout, leftSidePanel, loginUrl, saveLocation, saveUrl, serverUrl, user, ...htmlAttributes }: ShellProps) => JSX.Element;
@@ -1,6 +1,7 @@
1
1
  declare global {
2
2
  const vuuConfig: Promise<VuuConfig>;
3
3
  }
4
+ export type SaveLocation = "local" | "remote";
4
5
  export interface FeatureConfig {
5
6
  name: string;
6
7
  title: string;
@@ -1,2 +0,0 @@
1
- export default useLayoutConfig;
2
- declare function useLayoutConfig(user: any, defaultLayout: any): any[];