@singularsystems/neo-core 1.6.0 → 1.6.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Neo core changelog
2
2
 
3
- ## Version 1.6.0 (23 June 2026)
3
+ ## Version 1.6.1 (23 June 2026)
4
4
 
5
5
  - Minor routing changes to support changes in neo-react.
6
6
 
@@ -20,4 +20,5 @@ export interface IMenuRoute extends IRoute {
20
20
  * Set this to true if this is a parent menu item which has sub menu items.
21
21
  */
22
22
  exact?: boolean;
23
+ clone?: () => IMenuRoute;
23
24
  }
@@ -1,4 +1,4 @@
1
- import { __decorate, __metadata, __param } from "tslib";
1
+ import { __assign, __decorate, __metadata, __param } from "tslib";
2
2
  import { injectable, inject } from 'inversify';
3
3
  import NeoTypes from '../AppServices/NeoTypes';
4
4
  var MenuItemProvider = /** @class */ (function () {
@@ -15,7 +15,8 @@ var MenuItemProvider = /** @class */ (function () {
15
15
  if (defaults === void 0) { defaults = { hideWhenEmpty: true, collapseSingle: true }; }
16
16
  var filtered = [];
17
17
  for (var _i = 0, routeItems_1 = routeItems; _i < routeItems_1.length; _i++) {
18
- var menuItem = routeItems_1[_i];
18
+ var route = routeItems_1[_i];
19
+ var menuItem = (route.clone ? route.clone() : __assign({}, route));
19
20
  var canShow = this.canShowItem(menuItem);
20
21
  if (canShow) {
21
22
  if (menuItem.children) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singularsystems/neo-core",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Core functionality for the Neo client library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",