@singularsystems/neo-react 1.4.1 → 1.4.2

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
@@ -2,6 +2,11 @@
2
2
 
3
3
  This file details all new features and changes to functionality. If you only need to see changes that require updates to your project, see the [breaking changes](./Breaking.md) readme.
4
4
 
5
+ ## Version 1.4.2 (20 April 2026)
6
+
7
+ - Navigation helper
8
+ - Changed `openWindow` and `readOpenerState` to store state as string.
9
+
5
10
  ## Version 1.4.1 (17 April 2026)
6
11
 
7
12
  - AutoCompleteDropDown
@@ -36,12 +36,12 @@ export default class NavigationHelper implements INavigationHelper {
36
36
  navigateToView<TParams extends RouteParameterObject<TParams>>(view: ViewConstructor<TParams>, paramValues?: ParamValues<TParams>): void;
37
37
  openWindow(path: string, state?: {
38
38
  name: string;
39
- value: object;
39
+ value: any;
40
40
  }, options?: {
41
41
  target?: string;
42
42
  features?: string;
43
43
  }): Window | null;
44
- readOpenerState(name: string, reset?: boolean): object | undefined;
44
+ readOpenerState(name: string, reset?: boolean): string | undefined;
45
45
  getPathForView<TParams extends RouteParameterObject<TParams>>(view: ViewConstructor<TParams>, paramValues?: ParamValues<TParams>): string;
46
46
  getCurrentViewPath(): string;
47
47
  private historyPopState;
@@ -78,8 +78,12 @@ var NavigationHelper = /** @class */ (function () {
78
78
  NavigationHelper.prototype.openWindow = function (path, state, options) {
79
79
  var newWindow = window.open(this.routingState.basePath + path, options === null || options === void 0 ? void 0 : options.target, options === null || options === void 0 ? void 0 : options.features);
80
80
  if (newWindow && state) {
81
+ var value = state.value;
82
+ if (typeof value === "object") {
83
+ value = JSON.stringify(value);
84
+ }
81
85
  // @ts-ignore
82
- newWindow["__neoOpenerState" + state.name] = state.value;
86
+ newWindow["__neoOpenerState" + state.name] = value;
83
87
  }
84
88
  return newWindow;
85
89
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singularsystems/neo-react",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "React application logic and components for the Neo client library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "typescript": "5.9.3"
28
28
  },
29
29
  "dependencies": {
30
- "@singularsystems/neo-core": "1.3.8",
30
+ "@singularsystems/neo-core": "1.4.1",
31
31
  "@types/react-color": "3.0.13",
32
32
  "axios": "1.13.5",
33
33
  "inversify": "6.0.2",