@ssgoi/react 7.0.0-beta.2 → 7.0.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/LICENSE +21 -0
- package/README.md +17 -3
- package/package.json +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 MeurSyphus
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -253,9 +253,20 @@ import { drill, slide, zoom } from "@ssgoi/react/view-transitions";
|
|
|
253
253
|
|
|
254
254
|
const config = {
|
|
255
255
|
transitions: [
|
|
256
|
-
{
|
|
257
|
-
|
|
258
|
-
|
|
256
|
+
{
|
|
257
|
+
on: "/posts/**",
|
|
258
|
+
except: "/posts",
|
|
259
|
+
transition: drill(),
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
from: "/gallery",
|
|
263
|
+
to: "/gallery/*",
|
|
264
|
+
transition: zoom(),
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
ordered: ["/tabs/a", "/tabs/b"],
|
|
268
|
+
transition: slide(),
|
|
269
|
+
},
|
|
259
270
|
],
|
|
260
271
|
};
|
|
261
272
|
```
|
|
@@ -263,6 +274,9 @@ const config = {
|
|
|
263
274
|
- `on`: route family.
|
|
264
275
|
- `from`/`to`: precise pair.
|
|
265
276
|
- `ordered`: directional sequence.
|
|
277
|
+
- Scroll is automatic: `on` and `from`/`to` restore `from` and reset `to`;
|
|
278
|
+
`ordered` restores both. Override with
|
|
279
|
+
`preserveScroll: { from: boolean, to: boolean }`.
|
|
266
280
|
- Patterns support exact paths, a `*` path segment, and suffix `**`.
|
|
267
281
|
- `priority` overrides path specificity.
|
|
268
282
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ssgoi/react",
|
|
3
|
-
"version": "7.0.0
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "React bindings for SSGOI - Native app-like page transitions for React applications",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"unplugin": "^2.3.2",
|
|
68
68
|
"@babel/core": "^7.26.10",
|
|
69
|
-
"@ssgoi/core": "^7.0.0
|
|
69
|
+
"@ssgoi/core": "^7.0.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/babel__core": "^7.20.5",
|