@zac-apps/commons 1.3.4-beta.1 → 1.3.4-beta.3

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -3
  2. package/package.json +19 -19
package/dist/index.js CHANGED
@@ -203,7 +203,8 @@ function MenuButton(_ref) {
203
203
 
204
204
  function NextListMenu(_ref) {
205
205
  var availApps = _ref.availApps,
206
- start = _ref.start;
206
+ start = _ref.start,
207
+ basePath = _ref.basePath;
207
208
  var _React$useState = React.useState(null),
208
209
  _React$useState2 = _slicedToArray(_React$useState, 2),
209
210
  anchorEl = _React$useState2[0],
@@ -216,7 +217,9 @@ function NextListMenu(_ref) {
216
217
  setAnchorEl(null);
217
218
  };
218
219
  var pathname = usePathname();
219
- var basePath = process.env.basePath;
220
+ if (!basePath || basePath === null) {
221
+ basePath = "/";
222
+ }
220
223
  function StartEntry() {
221
224
  if (start) {
222
225
  return /*#__PURE__*/jsxs(React.Fragment, {
@@ -307,12 +310,13 @@ function AppWrapper(_ref) {
307
310
  sx: {
308
311
  color: AppTheme.palette.primary.contrastText
309
312
  },
310
- href: basePath,
311
313
  component: Link$2,
314
+ href: basePath,
312
315
  children: title
313
316
  }),
314
317
  children: menu ? /*#__PURE__*/jsx(NextListMenu, {
315
318
  availApps: availApps,
319
+ basePath: basePath,
316
320
  start: true
317
321
  }) : null
318
322
  }), /*#__PURE__*/jsx(Box, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zac-apps/commons",
3
- "version": "1.3.4-beta.1",
3
+ "version": "1.3.4-beta.3",
4
4
  "scripts": {
5
5
  "rollup": "node_modules/rollup/dist/rollup.js",
6
6
  "dev": "next dev",
@@ -28,33 +28,33 @@
28
28
  "author": "ZAC",
29
29
  "license": "CC-BY-SA-4.0",
30
30
  "dependencies": {
31
- "@mui/icons-material": "^5.15.0",
32
- "@mui/material": "^5.15.0"
31
+ "@mui/icons-material": "^5.15.14",
32
+ "@mui/material": "^5.15.14"
33
33
  },
34
34
  "devDependencies": {
35
- "@babel/plugin-transform-runtime": "^7.23.6",
35
+ "@babel/plugin-transform-runtime": "^7.24.3",
36
36
  "@rollup/plugin-babel": "^6.0.4",
37
37
  "@rollup/plugin-commonjs": "^25.0.7",
38
38
  "@rollup/plugin-json": "^6.1.0",
39
39
  "@rollup/plugin-node-resolve": "^15.2.3",
40
40
  "@semantic-release/git": "^10.0.1",
41
- "@semantic-release/gitlab": "^12.1.1",
42
- "@semantic-release/npm": "^11.0.2",
43
- "@storybook/addon-essentials": "^7.6.5",
44
- "@storybook/addon-interactions": "^7.6.5",
45
- "@storybook/addon-links": "^7.6.5",
46
- "@storybook/addon-onboarding": "^1.0.10",
47
- "@storybook/blocks": "^7.6.5",
48
- "@storybook/nextjs": "^7.6.5",
49
- "@storybook/react": "^7.6.5",
50
- "@storybook/test": "^7.6.5",
41
+ "@semantic-release/gitlab": "^13.0.3",
42
+ "@semantic-release/npm": "^12.0.0",
43
+ "@storybook/addon-essentials": "^8.0.4",
44
+ "@storybook/addon-interactions": "^8.0.4",
45
+ "@storybook/addon-links": "^8.0.4",
46
+ "@storybook/addon-onboarding": "^8.0.4",
47
+ "@storybook/blocks": "^8.0.4",
48
+ "@storybook/nextjs": "^8.0.4",
49
+ "@storybook/react": "^8.0.4",
50
+ "@storybook/test": "^8.0.4",
51
51
  "babel-loader": "^9.1.3",
52
52
  "eslint": "^8",
53
- "eslint-config-next": "14.0.4",
54
- "eslint-plugin-storybook": "^0.6.15",
55
- "rollup": "^4.9.0",
56
- "semantic-release": "^22.0.12",
57
- "storybook": "^7.6.5"
53
+ "eslint-config-next": "14.1.4",
54
+ "eslint-plugin-storybook": "^0.8.0",
55
+ "rollup": "^4.13.0",
56
+ "semantic-release": "^23.0.6",
57
+ "storybook": "^8.0.4"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "next": "^14.0.4",