@acmekit/dashboard 2.13.26 → 2.13.28

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/dist/app.js CHANGED
@@ -113694,7 +113694,7 @@ var DashboardApp = class {
113694
113694
  const parentItem = allMenuItems.find(
113695
113695
  (menuItem) => menuItem.path === parentPath
113696
113696
  );
113697
- if (parentItem?.nested && import_admin_shared.NESTED_ROUTE_POSITIONS.includes(parentItem?.nested) && pathParts.length > 1) {
113697
+ if (parentItem?.nested && pathParts.length > 1) {
113698
113698
  if (process.env.NODE_ENV === "development") {
113699
113699
  console.warn(
113700
113700
  `[@acmekit/dashboard] Nested menu item "${item.path}" can't be added to the sidebar as it is nested under "${parentItem.nested}".`
package/dist/app.mjs CHANGED
@@ -56,8 +56,7 @@ import {
56
56
 
57
57
  // src/dashboard-app/dashboard-app.tsx
58
58
  import {
59
- deepMerge,
60
- NESTED_ROUTE_POSITIONS
59
+ deepMerge
61
60
  } from "@acmekit/admin-shared";
62
61
  import {
63
62
  createBrowserRouter,
@@ -95787,7 +95786,7 @@ var DashboardApp = class {
95787
95786
  const parentItem = allMenuItems.find(
95788
95787
  (menuItem) => menuItem.path === parentPath
95789
95788
  );
95790
- if (parentItem?.nested && NESTED_ROUTE_POSITIONS.includes(parentItem?.nested) && pathParts.length > 1) {
95789
+ if (parentItem?.nested && pathParts.length > 1) {
95791
95790
  if (process.env.NODE_ENV === "development") {
95792
95791
  console.warn(
95793
95792
  `[@acmekit/dashboard] Nested menu item "${item.path}" can't be added to the sidebar as it is nested under "${parentItem.nested}".`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acmekit/dashboard",
3
- "version": "2.13.26",
3
+ "version": "2.13.28",
4
4
  "scripts": {
5
5
  "generate:static": "node ./scripts/generate-currencies.js && prettier --write ./src/lib/currencies.ts",
6
6
  "dev": "../../../node_modules/.bin/vite",
@@ -39,10 +39,10 @@
39
39
  "dist"
40
40
  ],
41
41
  "dependencies": {
42
- "@acmekit/admin-shared": "2.13.26",
43
- "@acmekit/icons": "2.13.26",
44
- "@acmekit/js-sdk": "2.13.26",
45
- "@acmekit/ui": "4.1.22",
42
+ "@acmekit/admin-shared": "2.13.28",
43
+ "@acmekit/icons": "2.13.28",
44
+ "@acmekit/js-sdk": "2.13.28",
45
+ "@acmekit/ui": "4.1.24",
46
46
  "@ariakit/react": "^0.4.15",
47
47
  "@babel/runtime": "^7.26.10",
48
48
  "@dnd-kit/core": "^6.1.0",
@@ -80,10 +80,10 @@
80
80
  "zod": "3.25.76"
81
81
  },
82
82
  "devDependencies": {
83
- "@acmekit/admin-shared": "2.13.26",
84
- "@acmekit/admin-vite-plugin": "2.13.26",
85
- "@acmekit/types": "2.13.26",
86
- "@acmekit/ui-preset": "2.13.26"
83
+ "@acmekit/admin-shared": "2.13.28",
84
+ "@acmekit/admin-vite-plugin": "2.13.28",
85
+ "@acmekit/types": "2.13.28",
86
+ "@acmekit/ui-preset": "2.13.28"
87
87
  },
88
88
  "packageManager": "yarn@3.2.1"
89
89
  }
@@ -5,7 +5,6 @@ import {
5
5
  CustomFieldModel,
6
6
  deepMerge,
7
7
  InjectionZone,
8
- NESTED_ROUTE_POSITIONS,
9
8
  } from "@acmekit/admin-shared"
10
9
  import * as React from "react"
11
10
  import {
@@ -168,12 +167,8 @@ export class DashboardApp {
168
167
  (menuItem) => menuItem.path === parentPath
169
168
  )
170
169
 
171
- // Check if parent item is a nested route under existing route
172
- if (
173
- parentItem?.nested &&
174
- NESTED_ROUTE_POSITIONS.includes(parentItem?.nested) &&
175
- pathParts.length > 1
176
- ) {
170
+ // Don't add children of nested items to the sidebar (only one level of nesting)
171
+ if (parentItem?.nested && pathParts.length > 1) {
177
172
  if (process.env.NODE_ENV === "development") {
178
173
  console.warn(
179
174
  `[@acmekit/dashboard] Nested menu item "${item.path}" can't be added to the sidebar as it is nested under "${parentItem.nested}".`