@etsoo/react 1.7.99 → 1.8.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.
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { RouteObject } from "react-router-dom";
2
+ import { RouteObject } from "react-router";
3
3
  /**
4
4
  * Dynamic router props
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { BridgeUtils } from "@etsoo/appscript";
3
- import { BrowserRouter, createBrowserRouter, createMemoryRouter, MemoryRouter } from "react-router-dom";
3
+ import { BrowserRouter, createBrowserRouter, createMemoryRouter, MemoryRouter } from "react-router";
4
4
  function getEntries(host) {
5
5
  const startUrl = host.getStartUrl();
6
6
  return startUrl == null ? undefined : [startUrl];
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from "react";
3
- import { useLocation } from "react-router-dom";
3
+ import { useLocation } from "react-router";
4
4
  import { useWindowScroll } from "../uses/useWindowScroll";
5
5
  const urls = {};
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  import { DomUtils } from "@etsoo/shared";
2
- import { useParams } from "react-router-dom";
2
+ import { useParams } from "react-router";
3
3
  /**
4
4
  * Extended useParams of react-router-dom
5
5
  * Provide exact type data
@@ -1,5 +1,5 @@
1
1
  import { DomUtils } from "@etsoo/shared";
2
- import { useSearchParams } from "react-router-dom";
2
+ import { useSearchParams } from "react-router";
3
3
  /**
4
4
  * Extended useSearchParams of react-router-dom
5
5
  * Provide exact type data
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.7.99",
3
+ "version": "1.8.1",
4
4
  "description": "TypeScript ReactJs UI Independent Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -48,12 +48,12 @@
48
48
  "@emotion/css": "^11.13.5",
49
49
  "@emotion/react": "^11.13.5",
50
50
  "@emotion/styled": "^11.13.5",
51
- "@etsoo/appscript": "^1.5.66",
51
+ "@etsoo/appscript": "^1.5.67",
52
52
  "@etsoo/notificationbase": "^1.1.53",
53
53
  "@etsoo/shared": "^1.2.54",
54
54
  "react": "^18.3.1",
55
55
  "react-dom": "^18.3.1",
56
- "react-router-dom": "^7.0.1",
56
+ "react-router-dom": "7.0.0",
57
57
  "react-window": "^1.8.10"
58
58
  },
59
59
  "devDependencies": {
@@ -6,7 +6,7 @@ import {
6
6
  createMemoryRouter,
7
7
  MemoryRouter,
8
8
  RouteObject
9
- } from "react-router-dom";
9
+ } from "react-router";
10
10
 
11
11
  /**
12
12
  * Dynamic router props
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { useLocation } from "react-router-dom";
2
+ import { useLocation } from "react-router";
3
3
  import { IScrollPos, useWindowScroll } from "../uses/useWindowScroll";
4
4
 
5
5
  const urls: Record<string, IScrollPos | undefined> = {};
@@ -1,5 +1,5 @@
1
1
  import { DataTypes, DomUtils } from "@etsoo/shared";
2
- import { useParams } from "react-router-dom";
2
+ import { useParams } from "react-router";
3
3
 
4
4
  /**
5
5
  * Extended useParams of react-router-dom
@@ -1,5 +1,5 @@
1
1
  import { DataTypes, DomUtils } from "@etsoo/shared";
2
- import { useSearchParams } from "react-router-dom";
2
+ import { useSearchParams } from "react-router";
3
3
 
4
4
  /**
5
5
  * Extended useSearchParams of react-router-dom