@rootnative/inertia-svg 0.0.7 → 0.0.8
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/CHANGELOG.md +6 -1
- package/llms.txt +12 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,10 @@ This package ships in lockstep with `@rootnative/inertia` — version numbers tr
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.0.8] - 2026-08-16
|
|
10
|
+
|
|
11
|
+
**Lockstep version bump** alongside `@rootnative/inertia@0.0.8` (`<Stagger>`, parent-owned per-child delays for cascading list entrances, and a settle callback on `buildReleaseAnimation`). No runtime changes in this adapter; the `@rootnative/inertia` peer range moves to `>=0.0.8`.
|
|
12
|
+
|
|
9
13
|
## [0.0.7] - 2026-08-14
|
|
10
14
|
|
|
11
15
|
**Lockstep version bump** alongside `@rootnative/inertia@0.0.7` (`Motion.FlatList`, a virtualized animated scroller, and `gesture={{ pressed }}` responding to a mouse on web). No runtime changes in this adapter; the `@rootnative/inertia` peer range moves to `>=0.0.7`.
|
|
@@ -57,7 +61,8 @@ _No git tag was cut for this release; the published artifact is on npm as [`@roo
|
|
|
57
61
|
|
|
58
62
|
- `MotionPath` over `react-native-svg`. Animatable: `d` (element-wise scalar interpolation on structurally-compatible paths), `fill`, `stroke`, `strokeWidth`, opacities, `strokeDashoffset`. Source and target paths must share the same command sequence after implicit-repeat expansion; remount with `key` to switch shape.
|
|
59
63
|
|
|
60
|
-
[unreleased]: https://github.com/rootnative/inertia/compare/core+gestures+gradients+svg@0.0.
|
|
64
|
+
[unreleased]: https://github.com/rootnative/inertia/compare/core+gestures+gradients+svg@0.0.8...HEAD
|
|
65
|
+
[0.0.8]: https://github.com/rootnative/inertia/releases/tag/core+gestures+gradients+svg@0.0.8
|
|
61
66
|
[0.0.7]: https://github.com/rootnative/inertia/releases/tag/core+gestures+gradients+svg@0.0.7
|
|
62
67
|
[0.0.6]: https://github.com/rootnative/inertia/releases/tag/core+gestures+gradients+svg@0.0.6
|
|
63
68
|
[0.0.5]: https://github.com/rootnative/inertia/releases/tag/core+gestures+gradients+svg@0.0.5
|
package/llms.txt
CHANGED
|
@@ -12,6 +12,18 @@
|
|
|
12
12
|
|
|
13
13
|
`MotionPath` wraps `<Path>` and accepts the same `initial` / `animate` / `transition` shape as the core `Motion.*` primitives, with animatable keys for the path data (`d`) plus color and numeric paint properties. Prebuilt [`MotionCircle` / `MotionRect` / `MotionLine`](#shapes) cover the other common shapes, and the [`createMotionSvgComponent`](#factory) factory behind them wraps any `react-native-svg` element.
|
|
14
14
|
|
|
15
|
+
## When to pick which
|
|
16
|
+
|
|
17
|
+
| You want | Reach for |
|
|
18
|
+
| ----------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
|
|
19
|
+
| Morph one shape into another (same command sequence) | `MotionPath` with `animate.d` — see [structural compatibility](#structural-compatibility) |
|
|
20
|
+
| Switch between structurally **different** shapes | A remount via `key={...}`, not a morph |
|
|
21
|
+
| Animate a circle / rect / line's geometry or paint | [`MotionCircle` / `MotionRect` / `MotionLine`](#shapes) |
|
|
22
|
+
| A "draw the stroke" effect (progress ring, signature) | Animate `strokeDashoffset` against a static `strokeDasharray` — see the [progress-ring example](#shapes) |
|
|
23
|
+
| Animate any other `react-native-svg` element (`Ellipse`, …) | [`createMotionSvgComponent`](#factory) |
|
|
24
|
+
| A gradient fill inside the SVG | `<Defs>` + `<LinearGradient>` from `react-native-svg`; the path references it by `url(#id)` — not this package |
|
|
25
|
+
| Animate a non-SVG view | The core `Motion.*` primitives — this package is for `react-native-svg` elements only |
|
|
26
|
+
|
|
15
27
|
## Install
|
|
16
28
|
|
|
17
29
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rootnative/inertia-svg",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "Animatable SVG primitives (path morphing, fill/stroke) for @rootnative/inertia, built on react-native-svg.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "RootNative",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"!**/*.test.*"
|
|
51
51
|
],
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@rootnative/inertia": ">=0.0.
|
|
53
|
+
"@rootnative/inertia": ">=0.0.8",
|
|
54
54
|
"react": ">=19.0.0",
|
|
55
55
|
"react-native": ">=0.81.0",
|
|
56
56
|
"react-native-reanimated": ">=4.0.0",
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
"react": "19.1.0",
|
|
66
66
|
"react-native": "0.81.5",
|
|
67
67
|
"react-native-reanimated": "~4.1.1",
|
|
68
|
-
"react-native-svg": "
|
|
68
|
+
"react-native-svg": "15.12.1",
|
|
69
69
|
"react-test-renderer": "19.1.0",
|
|
70
70
|
"tsup": "^8.3.5",
|
|
71
71
|
"typescript": "^5.7.3",
|
|
72
|
-
"@rootnative/inertia": "0.0.
|
|
72
|
+
"@rootnative/inertia": "0.0.8"
|
|
73
73
|
},
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|