@coinbase/cds-mobile-visualization 3.4.0-beta.20 → 3.4.0-beta.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/CHANGELOG.md CHANGED
@@ -8,6 +8,12 @@ All notable changes to this project will be documented in this file.
8
8
 
9
9
  <!-- template-start -->
10
10
 
11
+ ## 3.4.0-beta.21 (3/2/2026 PST)
12
+
13
+ #### 🚀 Updates
14
+
15
+ - Fix issues with animations that spread props. [[#463](https://github.com/coinbase/cds/pull/463)]
16
+
11
17
  ## 3.4.0-beta.20 (2/27/2026 PST)
12
18
 
13
19
  #### 🚀 Updates
@@ -1,5 +1,3 @@
1
- const _excluded = ["delay"];
2
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
3
1
  import { useEffect, useMemo, useRef } from 'react';
4
2
  import { useAnimatedReaction, useSharedValue, withDelay, withSpring, withTiming } from 'react-native-reanimated';
5
3
  import { notifyChange, Skia } from '@shopify/react-native-skia';
@@ -108,20 +106,17 @@ export const useInterpolator = (factory, value, interpolator, input, output, opt
108
106
  export const buildTransition = (targetValue, transition) => {
109
107
  'worklet';
110
108
 
111
- const {
112
- delay: delayMs
113
- } = transition,
114
- config = _objectWithoutPropertiesLoose(transition, _excluded);
109
+ const delayMs = transition.delay;
115
110
  let animation;
116
- switch (config.type) {
111
+ switch (transition.type) {
117
112
  case 'timing':
118
113
  {
119
- animation = withTiming(targetValue, config);
114
+ animation = withTiming(targetValue, transition);
120
115
  break;
121
116
  }
122
117
  case 'spring':
123
118
  {
124
- animation = withSpring(targetValue, config);
119
+ animation = withSpring(targetValue, transition);
125
120
  break;
126
121
  }
127
122
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cds-mobile-visualization",
3
- "version": "3.4.0-beta.20",
3
+ "version": "3.4.0-beta.21",
4
4
  "description": "Coinbase Design System - Mobile Visualization Native",
5
5
  "repository": {
6
6
  "type": "git",