@vuu-ui/vuu-shell 0.8.56 → 0.8.58
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/cjs/app-header/AppHeader.js +27 -8
- package/cjs/app-header/AppHeader.js.map +1 -1
- package/cjs/application-provider/ApplicationContext.js +21 -0
- package/cjs/application-provider/ApplicationContext.js.map +1 -0
- package/cjs/application-provider/ApplicationProvider.js +38 -0
- package/cjs/application-provider/ApplicationProvider.js.map +1 -0
- package/cjs/application-settings/ApplicationSettingsPanel.css.js +6 -0
- package/cjs/application-settings/ApplicationSettingsPanel.css.js.map +1 -0
- package/cjs/application-settings/ApplicationSettingsPanel.js +49 -0
- package/cjs/application-settings/ApplicationSettingsPanel.js.map +1 -0
- package/cjs/feature/Feature.js +1 -2
- package/cjs/feature/Feature.js.map +1 -1
- package/cjs/index.js +0 -2
- package/cjs/index.js.map +1 -1
- package/cjs/layout-management/SaveLayoutPanel.js +24 -43
- package/cjs/layout-management/SaveLayoutPanel.js.map +1 -1
- package/cjs/shell.js +11 -30
- package/cjs/shell.js.map +1 -1
- package/esm/app-header/AppHeader.js +27 -8
- package/esm/app-header/AppHeader.js.map +1 -1
- package/esm/application-provider/ApplicationContext.js +19 -0
- package/esm/application-provider/ApplicationContext.js.map +1 -0
- package/esm/application-provider/ApplicationProvider.js +35 -0
- package/esm/application-provider/ApplicationProvider.js.map +1 -0
- package/esm/application-settings/ApplicationSettingsPanel.css.js +4 -0
- package/esm/application-settings/ApplicationSettingsPanel.css.js.map +1 -0
- package/esm/application-settings/ApplicationSettingsPanel.js +47 -0
- package/esm/application-settings/ApplicationSettingsPanel.js.map +1 -0
- package/esm/feature/Feature.js +1 -2
- package/esm/feature/Feature.js.map +1 -1
- package/esm/index.js +0 -1
- package/esm/index.js.map +1 -1
- package/esm/layout-management/SaveLayoutPanel.js +25 -44
- package/esm/layout-management/SaveLayoutPanel.js.map +1 -1
- package/esm/shell.js +12 -31
- package/esm/shell.js.map +1 -1
- package/package.json +12 -12
- package/types/app-header/AppHeader.d.ts +1 -6
- package/types/application-provider/ApplicationContext.d.ts +11 -0
- package/types/application-provider/ApplicationProvider.d.ts +11 -0
- package/types/application-provider/index.d.ts +1 -0
- package/types/application-settings/ApplicationSettingsPanel.d.ts +7 -0
- package/types/application-settings/index.d.ts +1 -0
- package/types/get-layout-history.d.ts +1 -1
- package/types/index.d.ts +2 -1
- package/types/layout-management/useLayoutContextMenuItems.d.ts +1 -1
- package/types/shell.d.ts +1 -4
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ThemeMode, VuuUser } from "@vuu-ui/vuu-utils";
|
|
3
|
+
export interface CoreSettings {
|
|
4
|
+
themeMode: ThemeMode;
|
|
5
|
+
}
|
|
6
|
+
export interface ApplicationContextProps {
|
|
7
|
+
changeSetting: (propertyName: string, value: unknown) => void;
|
|
8
|
+
settings: CoreSettings;
|
|
9
|
+
user: VuuUser;
|
|
10
|
+
}
|
|
11
|
+
export declare const ApplicationContext: import("react").Context<ApplicationContextProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from "react";
|
|
2
|
+
import { ApplicationContextProps } from "./ApplicationContext";
|
|
3
|
+
export interface ApplicationProviderProps extends Partial<ApplicationContextProps> {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const ApplicationProvider: ({ children, settings: settingsProp, user, }: ApplicationProviderProps) => ReactElement;
|
|
7
|
+
export declare const useApplicationUser: () => import("packages/vuu-utils/src").VuuUser;
|
|
8
|
+
export declare const useApplicationSettings: () => {
|
|
9
|
+
changeSetting: (propertyName: string, value: unknown) => void;
|
|
10
|
+
settings: import("./ApplicationContext").CoreSettings;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ApplicationProvider";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ApplicationSettingsPanel";
|
package/types/index.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ export * from "./left-nav";
|
|
|
6
6
|
export * from "./login";
|
|
7
7
|
export * from "./session-editing-form";
|
|
8
8
|
export * from "./shell";
|
|
9
|
-
export * from "./shell-layouts";
|
|
9
|
+
export * from "./shell-layouts/context-panel";
|
|
10
|
+
export * from "./shell-layouts/side-panel";
|
|
10
11
|
export * from "./shellTypes";
|
|
11
12
|
export * from "./ShellContextProvider";
|
|
12
13
|
export * from "./feature-list";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MenuActionHandler, MenuBuilder } from "@vuu-ui/vuu-data-types";
|
|
2
2
|
import { SetDialog } from "@vuu-ui/vuu-popups";
|
|
3
3
|
export declare const useLayoutContextMenuItems: (setDialogState: SetDialog) => {
|
|
4
|
-
buildMenuOptions: MenuBuilder
|
|
4
|
+
buildMenuOptions: MenuBuilder;
|
|
5
5
|
handleMenuAction: MenuActionHandler;
|
|
6
6
|
};
|
package/types/shell.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { LayoutProviderProps } from "@vuu-ui/vuu-layout";
|
|
2
|
+
import { VuuUser } from "@vuu-ui/vuu-utils";
|
|
2
3
|
import { HTMLAttributes, ReactNode } from "react";
|
|
3
4
|
import { SidePanelProps } from "./shell-layouts";
|
|
4
5
|
import { SaveLocation } from "./shellTypes";
|
|
5
|
-
export type VuuUser = {
|
|
6
|
-
username: string;
|
|
7
|
-
token: string;
|
|
8
|
-
};
|
|
9
6
|
export type LayoutTemplateName = "full-height" | "inlay";
|
|
10
7
|
export interface ShellProps extends HTMLAttributes<HTMLDivElement> {
|
|
11
8
|
LayoutProps?: Pick<LayoutProviderProps, "createNewChild" | "pathToDropTarget">;
|