@hitachivantara/app-shell-vite-plugin 1.10.1 → 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.
@@ -95,14 +95,10 @@ export default function processConfiguration(root, appShellConfig, selfAppName,
95
95
  }
96
96
  // theming structure does not rely on having the 'bundle' prop
97
97
  const { theming } = appShellConfig;
98
- if (theming != null) {
99
- theming.themes = theming.themes?.map((theme) => {
100
- if (startsWithSelf(theme)) {
101
- const bundleName = replaceSelf(theme);
102
- return `${selfAppName}/${bundleName}`;
103
- }
104
- return theme;
105
- });
98
+ if (theming?.theme) {
99
+ theming.theme = startsWithSelf(theming.theme)
100
+ ? `${selfAppName}/${replaceSelf(theming.theme)}`
101
+ : theming.theme;
106
102
  }
107
103
  finalAppShellConfig = { ...appShellConfig };
108
104
  // if no baseUrl is present on the configuration, then assume the calculated basePath
@@ -17,10 +17,8 @@ const prepareConfigForDevMode = (config, selfAppName) => {
17
17
  replacedConfig.header.actions = replaceReferencesToSelf(header.actions, selfAppName);
18
18
  }
19
19
  // Theming
20
- if (theming?.themes && replacedConfig.theming) {
21
- replacedConfig.theming.themes = theming.themes?.map((theme) => {
22
- return replaceSelf(theme, self);
23
- });
20
+ if (theming?.theme && replacedConfig.theming) {
21
+ replacedConfig.theming.theme = replaceSelf(theming.theme, self);
24
22
  }
25
23
  // Providers
26
24
  if (providers) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/app-shell-vite-plugin",
3
- "version": "1.10.1",
3
+ "version": "2.0.0-next.1",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "author": "Hitachi Vantara UI Kit Team",
@@ -20,11 +20,11 @@
20
20
  "dependencies": {
21
21
  "@emotion/cache": "^11.11.0",
22
22
  "@emotion/react": "^11.11.1",
23
- "@hitachivantara/app-shell-services": "^1.1.2",
24
- "@hitachivantara/app-shell-shared": "^1.7.6",
25
- "@hitachivantara/app-shell-ui": "^1.13.6",
26
- "@hitachivantara/uikit-react-icons": "^5.16.6",
27
- "@hitachivantara/uikit-react-shared": "^5.5.6",
23
+ "@hitachivantara/app-shell-services": "^2.0.0-next.1",
24
+ "@hitachivantara/app-shell-shared": "^2.0.0-next.1",
25
+ "@hitachivantara/app-shell-ui": "^2.0.0-next.1",
26
+ "@hitachivantara/uikit-react-icons": "^6.0.0-next.2",
27
+ "@hitachivantara/uikit-react-shared": "^6.0.0-next.2",
28
28
  "@rollup/plugin-commonjs": "^25.0.7",
29
29
  "@rollup/plugin-json": "^6.0.0",
30
30
  "@rollup/plugin-node-resolve": "^15.0.1",
@@ -59,5 +59,5 @@
59
59
  },
60
60
  "./package.json": "./package.json"
61
61
  },
62
- "gitHead": "7d60bff02f58ff47ae19146532553882c2e4b732"
62
+ "gitHead": "0b07240fb2ef75e046d8e6aaf0ff71bf2415c73f"
63
63
  }