@shaper.org/vite-react-plugin 1.0.19 → 1.0.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shaper.org/vite-react-plugin",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "private": false,
@@ -18,7 +18,7 @@
18
18
  "peerDependencies": {
19
19
  "@shaper.org/core": "^1.0.4",
20
20
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
21
- "react": "^3.2.25"
21
+ "react": "^19.2.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@babel/core": "^7.28.5",
@@ -153,7 +153,7 @@ export class ReactRouteMonitor {
153
153
  const routes = validRoutes.map((route) => ({
154
154
  name: route.id,
155
155
  path: route.id === "index" ? route.path : `/${route.path}`,
156
- file: `src/${route.id}.tsx`,
156
+ file: `src/pages/${route.id}.tsx`,
157
157
  }));
158
158
 
159
159
  this.iframeClient.sendAllRoutes(routes);
@@ -191,7 +191,7 @@ export class ReactRouteMonitor {
191
191
  const routeInfo = {
192
192
  name: to.id,
193
193
  path: to.id === "index" ? to.path : `/${to.path}`,
194
- file: `src/${to.id}.tsx`,
194
+ file: `src/pages/${to.id}.tsx`,
195
195
  };
196
196
  this.iframeClient.sendRouteChange(routeInfo);
197
197
  };