@rootnative/inertia-gradients 0.0.3 → 0.0.5
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 +15 -4
- package/README.md +2 -2
- package/llms.txt +2 -2
- package/package.json +3 -3
- package/src/index.ts +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
All notable changes to `@rootnative/inertia-gradients` are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Pre-`1.0`, breaking changes may land in minor versions and are called out under their release.
|
|
3
|
+
All notable changes to `@rootnative/inertia-gradients` are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Pre-`1.0.0`, breaking changes may land in minor versions and are called out under their release.
|
|
4
4
|
|
|
5
5
|
This package ships in lockstep with `@rootnative/inertia` — version numbers track the core release that introduced or last touched the adapter.
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.0.5] - 2026-07-31
|
|
10
|
+
|
|
11
|
+
**Lockstep version bump** alongside `@rootnative/inertia@0.0.5` (40 layout and text-metric keys join the `animate` surface, `AnimateStyle<C>` narrows to reject keys the runtime doesn't drive, and reduced motion is no longer bypassable by a sequence step's own `type`). No runtime changes in this adapter; the `@rootnative/inertia` peer range moves to `>=0.0.5`.
|
|
12
|
+
|
|
13
|
+
## [0.0.4] - 2026-07-29
|
|
14
|
+
|
|
15
|
+
**Lockstep version bump** alongside `@rootnative/inertia@0.0.4` (`boxShadow` on the `animate` surface, plus window-coordinate measurement and a style carry for `layoutId` shared-element transitions). No runtime changes in this adapter; the `@rootnative/inertia` peer range moves to `>=0.0.4`.
|
|
16
|
+
|
|
9
17
|
## [0.0.3] - 2026-07-25
|
|
10
18
|
|
|
11
19
|
**Lockstep version bump** alongside `@rootnative/inertia@0.0.3` (correctness fixes to the resting-value base, `<Presence>` ordering and unmount, endless-repeat completion counters, `useColorCascade`, `useAnimator`, and the `layoutId` registry). No runtime changes in this adapter; the `@rootnative/inertia` peer range moves to `>=0.0.3`.
|
|
@@ -28,16 +36,19 @@ This package ships in lockstep with `@rootnative/inertia` — version numbers tr
|
|
|
28
36
|
|
|
29
37
|
Lockstep version bump alongside `@rootnative/inertia@0.0.0-alpha.1` (README updates only; no runtime changes).
|
|
30
38
|
|
|
31
|
-
##
|
|
39
|
+
## 0.0.0-alpha.0
|
|
40
|
+
|
|
41
|
+
_No git tag was cut for this release; the published artifact is on npm as [`@rootnative/inertia-gradients@0.0.0-alpha.0`](https://www.npmjs.com/package/@rootnative/inertia-gradients/v/0.0.0-alpha.0). Unlinked here for that reason — every other heading resolves to a real tag._
|
|
32
42
|
|
|
33
43
|
### Added
|
|
34
44
|
|
|
35
45
|
- `MotionLinearGradient` over `expo-linear-gradient`. Accepts the same `initial` / `animate` / `transition` shape as the core `Motion.*` primitives, with animatable keys for `colors`, `start`, `end`, and `locations`.
|
|
36
46
|
|
|
37
|
-
[unreleased]: https://github.com/rootnative/inertia/compare/core+gestures+gradients+svg@0.0.
|
|
47
|
+
[unreleased]: https://github.com/rootnative/inertia/compare/core+gestures+gradients+svg@0.0.5...HEAD
|
|
48
|
+
[0.0.5]: https://github.com/rootnative/inertia/releases/tag/core+gestures+gradients+svg@0.0.5
|
|
49
|
+
[0.0.4]: https://github.com/rootnative/inertia/releases/tag/core+gestures+gradients+svg@0.0.4
|
|
38
50
|
[0.0.3]: https://github.com/rootnative/inertia/releases/tag/core+gestures+gradients+svg@0.0.3
|
|
39
51
|
[0.0.2]: https://github.com/rootnative/inertia/releases/tag/core+gestures+gradients+svg@0.0.2
|
|
40
52
|
[0.0.1]: https://github.com/rootnative/inertia/releases/tag/core+gestures+gradients+svg@0.0.1
|
|
41
53
|
[0.0.0-alpha.2]: https://github.com/rootnative/inertia/releases/tag/core+gestures+gradients+svg@0.0.0-alpha.2
|
|
42
54
|
[0.0.0-alpha.1]: https://github.com/rootnative/inertia/releases/tag/core+gestures+gradients+svg@0.0.0-alpha.1
|
|
43
|
-
[0.0.0-alpha.0]: https://github.com/rootnative/inertia/releases/tag/core+gestures+gradients+svg@0.0.0-alpha.0
|
package/README.md
CHANGED
|
@@ -80,9 +80,9 @@ Pass `initial` to override the mount-frame values (so the component starts somew
|
|
|
80
80
|
|
|
81
81
|
`MotionLinearGradient` participates in `<MotionConfig reducedMotion>` the same way the core primitives do — when the OS reduce-motion setting is on, transitions resolve as direct assignment instead of `withSpring` / `withTiming`.
|
|
82
82
|
|
|
83
|
-
## What this primitive doesn't do
|
|
83
|
+
## What this primitive doesn't do
|
|
84
84
|
|
|
85
|
-
- **Radial / conic gradients** — linear-only
|
|
85
|
+
- **Radial / conic gradients** — linear-only. Radial / conic are backlog, unscheduled.
|
|
86
86
|
- **Slot-count resize** — the colors array length is locked at mount.
|
|
87
87
|
- **Per-stop sequence keyframes** — `animate.colors` accepts a single target array, not nested arrays. For chained gradient transitions, drive the target through state.
|
|
88
88
|
|
package/llms.txt
CHANGED
|
@@ -88,8 +88,8 @@ Pass `initial` to override the mount-frame values (so the component starts somew
|
|
|
88
88
|
|
|
89
89
|
`MotionLinearGradient` participates in [`<MotionConfig reducedMotion>`](./motion-config.md) the same way the core primitives do — when the OS reduce-motion setting is on (or you pass `reducedMotion="always"`), transitions resolve as direct assignment instead of `withSpring` / `withTiming`.
|
|
90
90
|
|
|
91
|
-
## What this primitive doesn't do
|
|
91
|
+
## What this primitive doesn't do
|
|
92
92
|
|
|
93
|
-
- **Radial / conic gradients** — linear-only
|
|
93
|
+
- **Radial / conic gradients** — linear-only. Radial / conic are backlog, unscheduled: they need their own prop shape, and the linear API earns that work first.
|
|
94
94
|
- **Slot-count resize** — the colors array length is locked at mount. To change it, remount via `key={...}`.
|
|
95
95
|
- **Per-stop sequence keyframes** — `animate.colors` accepts a single target array, not a nested array of arrays. For chained gradient transitions, drive the target through state and let React re-render.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rootnative/inertia-gradients",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Animated linear gradient primitive for @rootnative/inertia, built on expo-linear-gradient.",
|
|
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.5",
|
|
54
54
|
"expo-linear-gradient": ">=14.0.0",
|
|
55
55
|
"react": ">=19.0.0",
|
|
56
56
|
"react-native": ">=0.81.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"size-limit": "^11.1.0",
|
|
72
72
|
"tsup": "^8.3.5",
|
|
73
73
|
"typescript": "^5.7.3",
|
|
74
|
-
"@rootnative/inertia": "0.0.
|
|
74
|
+
"@rootnative/inertia": "0.0.5"
|
|
75
75
|
},
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
package/src/index.ts
CHANGED
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
* `@rootnative/inertia-gradients` — animated gradient primitives for
|
|
3
3
|
* `@rootnative/inertia`.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* Public surface:
|
|
6
6
|
* - `MotionLinearGradient` — animatable linear gradient over
|
|
7
7
|
* `expo-linear-gradient`. Animates `colors`, `start`, `end`, and
|
|
8
8
|
* `locations` with the same `initial` / `animate` / `transition` shape
|
|
9
9
|
* as the core Motion primitives.
|
|
10
10
|
*
|
|
11
|
-
* Radial / conic gradients
|
|
11
|
+
* Radial / conic gradients are backlog, unscheduled — they need their own
|
|
12
|
+
* prop shape, and the linear API earns that work first.
|
|
12
13
|
*/
|
|
13
14
|
export { MotionLinearGradient } from './MotionLinearGradient'
|
|
14
15
|
export type { MotionLinearGradientProps } from './MotionLinearGradient'
|