@hitachivantara/app-shell-shared 1.0.0 → 1.2.0

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.
@@ -1,4 +1,5 @@
1
1
  import { Context } from 'react';
2
+ import type { HvContainerProps } from '@hitachivantara/uikit-react-core';
2
3
  import type { i18n } from 'i18next';
3
4
 
4
5
  export declare const CONFIG_TRANSLATIONS_NAMESPACE = "configTranslations";
@@ -58,10 +59,9 @@ export declare type HvAppShellLogo = {
58
59
  description?: string;
59
60
  };
60
61
 
61
- export declare type HvAppShellMainPanelConfig = {
62
- maxWidth?: "xs" | "sm" | "md" | "lg" | "xl" | false;
63
- views?: HvAppShellViewsConfig[];
64
- };
62
+ export declare interface HvAppShellMainPanelConfig extends ViewHvContainerProps {
63
+ views?: HvAppShellTopViewConfig[];
64
+ }
65
65
 
66
66
  export declare type HvAppShellMenuConfig = {
67
67
  label: string;
@@ -86,6 +86,9 @@ export declare type HvAppShellThemingConfig = {
86
86
  colorMode?: string;
87
87
  };
88
88
 
89
+ export declare interface HvAppShellTopViewConfig extends HvAppShellViewsConfig, ViewHvContainerProps {
90
+ }
91
+
89
92
  export declare const HvAppShellViewContext: Context<HvAppShellViewContextValue | undefined>;
90
93
 
91
94
  export declare interface HvAppShellViewContextValue {
@@ -94,8 +97,9 @@ export declare interface HvAppShellViewContextValue {
94
97
 
95
98
  export declare type HvAppShellViewsConfig = {
96
99
  bundle: string;
97
- route: string;
100
+ route: RouteString;
98
101
  config?: Record<string, unknown>;
102
+ views?: HvAppShellViewsConfig[];
99
103
  };
100
104
 
101
105
  export declare interface MenuItem {
@@ -113,8 +117,12 @@ export declare interface MenuItemsContext {
113
117
  rootMenuItemId: string | undefined;
114
118
  }
115
119
 
120
+ declare type RouteString = `/${string}`;
121
+
116
122
  export declare const useHvAppShellConfig: () => HvAppShellContextValue;
117
123
 
118
124
  export declare const useHvMenuItems: () => MenuItemsContext;
119
125
 
126
+ declare type ViewHvContainerProps = Omit<HvContainerProps, "children">;
127
+
120
128
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/app-shell-shared",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "App Shell Shared",
5
5
  "author": "Hitachi Vantara - Boba Fett Team",
6
6
  "license": "Apache-2.0",
@@ -50,5 +50,8 @@
50
50
  "vite-plugin-dts": "^3.6.4",
51
51
  "vite-tsconfig-paths": "^4.0.5"
52
52
  },
53
- "gitHead": "eccbbda7fa0fa5cdb38c2665d9d6233dd9fc2eb5"
53
+ "dependencies": {
54
+ "@hitachivantara/uikit-react-core": "^5.46.1"
55
+ },
56
+ "gitHead": "f32c45a8012716dd25df32f98efe5bb2c4457209"
54
57
  }