@real-router/solid 0.12.0 → 0.13.0

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/README.md CHANGED
@@ -524,7 +524,7 @@ Opt-in preservation of scroll position across navigations:
524
524
  </RouterProvider>
525
525
  ```
526
526
 
527
- Restores scroll on back/forward, scrolls to top (or `#hash`) on push. Three modes: `"restore"` (default), `"top"`, `"native"`. Custom containers via `scrollContainer: () => HTMLElement | null`. Options are read once on mount — changing the prop at runtime does not reconfigure the utility (Solid `onMount` is non-reactive). See [Scroll Restoration guide](https://github.com/greydragon888/real-router/wiki/Scroll-Restoration) for details.
527
+ Restores scroll on back/forward, scrolls to top (or `#hash`) on push. Three modes: `"restore"` (default), `"top"`, `"native"`. Custom containers via `scrollContainer: () => HTMLElement | null`. Options are read once on mount — changing the prop at runtime does not reconfigure the utility (Solid `onMount` is non-reactive). Under `@real-router/browser-plugin`, replace transitions now preserve scroll position and programmatic reloads restore from `sessionStorage` (portable via `state.transition.replace` / `state.transition.reload`). See [Scroll Restoration guide](https://github.com/greydragon888/real-router/wiki/Scroll-Restoration) for the full behaviour matrix.
528
528
 
529
529
  ## View Transitions
530
530
 
package/dist/cjs/index.js CHANGED
Binary file
Binary file
@@ -1 +1 @@
1
- {"version":3,"file":"scroll-restore.d.ts","sourceRoot":"","sources":["../../../src/dom-utils/scroll-restore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAUvD,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEjE,MAAM,WAAW,wBAAwB;IACvC,IAAI,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;IACzC,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,eAAe,CAAC,EAAE,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;IACzD;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEpD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@real-router/solid",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "type": "commonjs",
5
5
  "description": "Solid.js integration for Real-Router",
6
6
  "main": "./dist/cjs/index.js",
@@ -67,9 +67,9 @@
67
67
  "license": "MIT",
68
68
  "sideEffects": false,
69
69
  "dependencies": {
70
- "@real-router/core": "^0.53.0",
70
+ "@real-router/core": "^0.54.1",
71
71
  "@real-router/route-utils": "^0.2.2",
72
- "@real-router/sources": "^0.8.2"
72
+ "@real-router/sources": "^0.8.3"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@babel/core": "7.29.0",
@@ -86,8 +86,8 @@
86
86
  "rollup-plugin-dts": "6.4.1",
87
87
  "solid-js": "1.9.12",
88
88
  "vite-plugin-solid": "2.11.11",
89
- "vitest": "4.1.0",
90
- "@real-router/browser-plugin": "^0.17.2"
89
+ "vitest": "4.1.6",
90
+ "@real-router/browser-plugin": "^0.17.4"
91
91
  },
92
92
  "peerDependencies": {
93
93
  "solid-js": ">=1.7.0"