@hitachivantara/app-shell-shared 1.7.6 → 2.0.0-next.1

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.
@@ -0,0 +1,150 @@
1
+ import { ComponentType } from 'react';
2
+ import { Context } from 'react';
3
+ import { ServicesConfig as HvAppShellServicesConfig } from '@hitachivantara/app-shell-services';
4
+ import { HvBaseTheme } from '@hitachivantara/uikit-react-core';
5
+ import { HvContainerProps } from '@hitachivantara/uikit-react-core';
6
+ import { HvThemeColorMode } from '@hitachivantara/uikit-react-core';
7
+ import { i18n } from 'i18next';
8
+ import { ReactNode } from 'react';
9
+
10
+ export declare const CONFIG_TRANSLATIONS_NAMESPACE = "configTranslations";
11
+
12
+ export declare type HvAppShellAppSwitcherConfig = {
13
+ title?: string;
14
+ showLogo?: boolean;
15
+ apps: HvAppShellAppSwitcherItemConfig[];
16
+ };
17
+
18
+ export declare type HvAppShellAppSwitcherItemConfig = {
19
+ label: string;
20
+ description?: string;
21
+ url: string;
22
+ target: "NEW" | "SELF";
23
+ icon?: HvAppShellIcon;
24
+ };
25
+
26
+ export declare const HvAppShellCombinedProvidersContext: Context<HvAppShellCombinedProvidersContextValue | undefined>;
27
+
28
+ export declare interface HvAppShellCombinedProvidersContextValue {
29
+ providers?: Array<{
30
+ component: ComponentType<{
31
+ children: ReactNode;
32
+ }>;
33
+ config?: Record<string, unknown>;
34
+ }>;
35
+ }
36
+
37
+ export declare type HvAppShellConfig = {
38
+ baseUrl?: string;
39
+ name?: string;
40
+ logo?: HvAppShellLogo | null;
41
+ apps?: Record<string, string>;
42
+ menu?: HvAppShellMenuConfig[];
43
+ translations?: Record<string, object>;
44
+ navigationMode?: "TOP_AND_LEFT" | "ONLY_TOP" | "ONLY_LEFT";
45
+ mainPanel?: HvAppShellMainPanelConfig;
46
+ theming?: HvAppShellThemingConfig;
47
+ header?: HvAppShellHeader;
48
+ providers?: HvAppShellProvidersConfig[];
49
+ services?: HvAppShellServicesConfig;
50
+ };
51
+
52
+ export declare const HvAppShellContext: Context<HvAppShellConfig | undefined>;
53
+
54
+ export declare type HvAppShellContextValue = HvAppShellConfig;
55
+
56
+ export declare type HvAppShellHeader = {
57
+ actions: HvAppShellHeaderAction[];
58
+ };
59
+
60
+ export declare type HvAppShellHeaderAction = {
61
+ bundle: string;
62
+ config?: HvAppShellHelp | HvAppShellAppSwitcherConfig | Record<string, unknown>;
63
+ };
64
+
65
+ export declare type HvAppShellHelp = {
66
+ url: string;
67
+ description?: string;
68
+ };
69
+
70
+ export declare type HvAppShellIcon = {
71
+ iconType: "uikit";
72
+ name: string;
73
+ };
74
+
75
+ export declare type HvAppShellLogo = {
76
+ name?: "LUMADA" | "HITACHI" | "PENTAHO+" | "PENTAHO";
77
+ description?: string;
78
+ };
79
+
80
+ export declare interface HvAppShellMainPanelConfig extends ViewHvContainerProps {
81
+ views?: HvAppShellTopViewConfig[];
82
+ }
83
+
84
+ export declare type HvAppShellMenuConfig = {
85
+ label: string;
86
+ icon?: HvAppShellIcon;
87
+ target?: string;
88
+ submenus?: HvAppShellMenuConfig[];
89
+ };
90
+
91
+ export declare type HvAppShellProvidersConfig = {
92
+ bundle: string;
93
+ config?: Record<string, unknown>;
94
+ };
95
+
96
+ export declare const HvAppShellRuntimeContext: Context<HvAppShellRuntimeContextValue | undefined>;
97
+
98
+ export declare interface HvAppShellRuntimeContextValue {
99
+ i18n: i18n;
100
+ }
101
+
102
+ export { HvAppShellServicesConfig }
103
+
104
+ export declare type HvAppShellThemingConfig = {
105
+ theme?: HvBaseTheme | (string & {});
106
+ colorMode?: HvThemeColorMode;
107
+ };
108
+
109
+ export declare interface HvAppShellTopViewConfig extends HvAppShellViewsConfig, ViewHvContainerProps {
110
+ }
111
+
112
+ export declare const HvAppShellViewContext: Context<HvAppShellViewContextValue | undefined>;
113
+
114
+ export declare interface HvAppShellViewContextValue {
115
+ id: string;
116
+ }
117
+
118
+ export declare type HvAppShellViewsConfig = {
119
+ bundle: string;
120
+ route: RouteString;
121
+ config?: Record<string, unknown>;
122
+ views?: HvAppShellViewsConfig[];
123
+ };
124
+
125
+ export declare interface MenuItem {
126
+ id: string;
127
+ label: string;
128
+ href?: string;
129
+ data?: MenuItem[];
130
+ icon?: HvAppShellIcon;
131
+ parent?: MenuItem;
132
+ }
133
+
134
+ export declare interface MenuItemsContext {
135
+ items: MenuItem[];
136
+ selectedMenuItemId: string | undefined;
137
+ rootMenuItemId: string | undefined;
138
+ }
139
+
140
+ declare type RouteString = `/${string}`;
141
+
142
+ export declare const useHvAppShellCombinedProviders: () => HvAppShellCombinedProvidersContextValue;
143
+
144
+ export declare const useHvAppShellConfig: () => HvAppShellContextValue;
145
+
146
+ export declare const useHvMenuItems: () => MenuItemsContext;
147
+
148
+ declare type ViewHvContainerProps = Omit<HvContainerProps, "children">;
149
+
150
+ export { }
@@ -1,149 +1,2 @@
1
- import { ComponentType } from 'react';
2
- import { Context } from 'react';
3
- import { ServicesConfig as HvAppShellServicesConfig } from '@hitachivantara/app-shell-services';
4
- import { HvContainerProps } from '@hitachivantara/uikit-react-core';
5
- import { i18n } from 'i18next';
6
- import { ReactNode } from 'react';
7
-
8
- export declare const CONFIG_TRANSLATIONS_NAMESPACE = "configTranslations";
9
-
10
- export declare type HvAppShellAppSwitcherConfig = {
11
- title?: string;
12
- showLogo?: boolean;
13
- apps: HvAppShellAppSwitcherItemConfig[];
14
- };
15
-
16
- export declare type HvAppShellAppSwitcherItemConfig = {
17
- label: string;
18
- description?: string;
19
- url: string;
20
- target: "NEW" | "SELF";
21
- icon?: HvAppShellIcon;
22
- };
23
-
24
- export declare const HvAppShellCombinedProvidersContext: Context<HvAppShellCombinedProvidersContextValue | undefined>;
25
-
26
- export declare interface HvAppShellCombinedProvidersContextValue {
27
- providers?: Array<{
28
- component: ComponentType<{
29
- children: ReactNode;
30
- }>;
31
- config?: Record<string, unknown>;
32
- }>;
33
- }
34
-
35
- export declare type HvAppShellConfig = {
36
- baseUrl?: string;
37
- name?: string;
38
- logo?: HvAppShellLogo | null;
39
- apps?: Record<string, string>;
40
- menu?: HvAppShellMenuConfig[];
41
- translations?: Record<string, object>;
42
- navigationMode?: "TOP_AND_LEFT" | "ONLY_TOP" | "ONLY_LEFT";
43
- mainPanel?: HvAppShellMainPanelConfig;
44
- theming?: HvAppShellThemingConfig;
45
- header?: HvAppShellHeader;
46
- providers?: HvAppShellProvidersConfig[];
47
- services?: HvAppShellServicesConfig;
48
- };
49
-
50
- export declare const HvAppShellContext: Context<HvAppShellConfig | undefined>;
51
-
52
- export declare type HvAppShellContextValue = HvAppShellConfig;
53
-
54
- export declare type HvAppShellHeader = {
55
- actions: HvAppShellHeaderAction[];
56
- };
57
-
58
- export declare type HvAppShellHeaderAction = {
59
- bundle: string;
60
- config?: HvAppShellHelp | HvAppShellAppSwitcherConfig | Record<string, unknown>;
61
- };
62
-
63
- export declare type HvAppShellHelp = {
64
- url: string;
65
- description?: string;
66
- };
67
-
68
- export declare type HvAppShellIcon = {
69
- iconType: "uikit";
70
- name: string;
71
- };
72
-
73
- export declare type HvAppShellLogo = {
74
- name?: "LUMADA" | "HITACHI" | "PENTAHO+" | "PENTAHO";
75
- description?: string;
76
- };
77
-
78
- export declare interface HvAppShellMainPanelConfig extends ViewHvContainerProps {
79
- views?: HvAppShellTopViewConfig[];
80
- }
81
-
82
- export declare type HvAppShellMenuConfig = {
83
- label: string;
84
- icon?: HvAppShellIcon;
85
- target?: string;
86
- submenus?: HvAppShellMenuConfig[];
87
- };
88
-
89
- export declare type HvAppShellProvidersConfig = {
90
- bundle: string;
91
- config?: Record<string, unknown>;
92
- };
93
-
94
- export declare const HvAppShellRuntimeContext: Context<HvAppShellRuntimeContextValue | undefined>;
95
-
96
- export declare interface HvAppShellRuntimeContextValue {
97
- i18n: i18n;
98
- }
99
-
100
- export { HvAppShellServicesConfig }
101
-
102
- export declare type HvAppShellThemingConfig = {
103
- themes?: string[];
104
- theme?: string;
105
- colorMode?: string;
106
- };
107
-
108
- export declare interface HvAppShellTopViewConfig extends HvAppShellViewsConfig, ViewHvContainerProps {
109
- }
110
-
111
- export declare const HvAppShellViewContext: Context<HvAppShellViewContextValue | undefined>;
112
-
113
- export declare interface HvAppShellViewContextValue {
114
- id: string;
115
- }
116
-
117
- export declare type HvAppShellViewsConfig = {
118
- bundle: string;
119
- route: RouteString;
120
- config?: Record<string, unknown>;
121
- views?: HvAppShellViewsConfig[];
122
- };
123
-
124
- export declare interface MenuItem {
125
- id: string;
126
- label: string;
127
- href?: string;
128
- data?: MenuItem[];
129
- icon?: HvAppShellIcon;
130
- parent?: MenuItem;
131
- }
132
-
133
- export declare interface MenuItemsContext {
134
- items: MenuItem[];
135
- selectedMenuItemId: string | undefined;
136
- rootMenuItemId: string | undefined;
137
- }
138
-
139
- declare type RouteString = `/${string}`;
140
-
141
- export declare const useHvAppShellCombinedProviders: () => HvAppShellCombinedProvidersContextValue;
142
-
143
- export declare const useHvAppShellConfig: () => HvAppShellContextValue;
144
-
145
- export declare const useHvMenuItems: () => MenuItemsContext;
146
-
147
- declare type ViewHvContainerProps = Omit<HvContainerProps, "children">;
148
-
149
- export { }
1
+ export * from '../packages/app-shell-shared/src/index'
2
+ export {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/app-shell-shared",
3
- "version": "1.7.6",
3
+ "version": "2.0.0-next.1",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "author": "Hitachi Vantara UI Kit Team",
@@ -22,16 +22,16 @@
22
22
  "react-router-dom": "^6.9.0"
23
23
  },
24
24
  "optionalDependencies": {
25
- "@hitachivantara/uikit-react-core": "^5.106.1"
25
+ "@hitachivantara/uikit-react-core": "^6.0.0-next.2"
26
26
  },
27
27
  "files": [
28
28
  "dist"
29
29
  ],
30
30
  "exports": {
31
31
  ".": {
32
- "types": "./dist/types/index.d.ts",
33
- "import": "./dist/esm/index.js",
34
- "default": "./dist/esm/index.js"
32
+ "types": "./dist/index.d.ts",
33
+ "import": "./dist/index.js",
34
+ "default": "./dist/index.js"
35
35
  },
36
36
  "./package.json": "./package.json",
37
37
  "./bundles/*": "./dist/bundles/*"
@@ -40,7 +40,7 @@
40
40
  "access": "public",
41
41
  "directory": "package"
42
42
  },
43
- "gitHead": "7d60bff02f58ff47ae19146532553882c2e4b732",
43
+ "gitHead": "0b07240fb2ef75e046d8e6aaf0ff71bf2415c73f",
44
44
  "types": "./dist/types/index.d.ts",
45
- "module": "dist/esm/index.js"
45
+ "module": "dist/index.js"
46
46
  }
File without changes
File without changes
File without changes
File without changes