@homecode/ui 4.18.45 → 4.18.46

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.
@@ -15,7 +15,7 @@ const Router = (props) => {
15
15
  const fullPath = ctx.basePath + basePath;
16
16
  useEffect(() => {
17
17
  const onPopState = () => {
18
- STORE.go(window.location.pathname, {}, { replace: true });
18
+ STORE.go(window.location.pathname, STORE.query, { replace: true });
19
19
  };
20
20
  window.addEventListener('popstate', onPopState);
21
21
  return () => window.removeEventListener('popstate', onPopState);
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import STORE from './store';
2
+ import type { RouterStore as RouterStoreType } from './store';
3
3
  import * as T from './Router.types';
4
4
  export declare const Router: {
5
5
  (props: T.Props): JSX.Element;
@@ -10,4 +10,4 @@ export * from './Redirect';
10
10
  export * from './Link/Link';
11
11
  export declare const RouterStore: any;
12
12
  export declare const RouterContext: import("react").Context<import("./context").ContextType>;
13
- export type RouterStore = typeof STORE;
13
+ export type RouterStore = RouterStoreType;
@@ -1,2 +1,4 @@
1
1
  declare const STORE: any;
2
- export default STORE;
2
+ export type RouterStore = typeof STORE;
3
+ declare const _default: any;
4
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homecode/ui",
3
- "version": "4.18.45",
3
+ "version": "4.18.46",
4
4
  "description": "React UI components library",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",