@tamagui/animations-react-native 1.125.6 → 1.125.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.
@@ -4,29 +4,33 @@ import { useEvent } from "@tamagui/web";
4
4
  import React from "react";
5
5
  import { Animated } from "react-native";
6
6
  var animatedStyleKey = {
7
- transform: !0,
8
- opacity: !0
9
- }, colorStyleKey = {
10
- backgroundColor: !0,
11
- color: !0,
12
- borderColor: !0,
13
- borderLeftColor: !0,
14
- borderRightColor: !0,
15
- borderTopColor: !0,
16
- borderBottomColor: !0
17
- }, costlyToAnimateStyleKey = {
18
- borderRadius: !0,
19
- borderTopLeftRadius: !0,
20
- borderTopRightRadius: !0,
21
- borderBottomLeftRadius: !0,
22
- borderBottomRightRadius: !0,
23
- borderWidth: !0,
24
- borderLeftWidth: !0,
25
- borderRightWidth: !0,
26
- borderTopWidth: !0,
27
- borderBottomWidth: !0,
28
- ...colorStyleKey
29
- }, AnimatedView = Animated.View, AnimatedText = Animated.Text;
7
+ transform: !0,
8
+ opacity: !0
9
+ },
10
+ colorStyleKey = {
11
+ backgroundColor: !0,
12
+ color: !0,
13
+ borderColor: !0,
14
+ borderLeftColor: !0,
15
+ borderRightColor: !0,
16
+ borderTopColor: !0,
17
+ borderBottomColor: !0
18
+ },
19
+ costlyToAnimateStyleKey = {
20
+ borderRadius: !0,
21
+ borderTopLeftRadius: !0,
22
+ borderTopRightRadius: !0,
23
+ borderBottomLeftRadius: !0,
24
+ borderBottomRightRadius: !0,
25
+ borderWidth: !0,
26
+ borderLeftWidth: !0,
27
+ borderRightWidth: !0,
28
+ borderTopWidth: !0,
29
+ borderBottomWidth: !0,
30
+ ...colorStyleKey
31
+ },
32
+ AnimatedView = Animated.View,
33
+ AnimatedText = Animated.Text;
30
34
  function useAnimatedNumber(initial) {
31
35
  var state = React.useRef(null);
32
36
  return state.current || (state.current = {
@@ -47,15 +51,21 @@ function useAnimatedNumber(initial) {
47
51
  (_state_current_composite = state.current.composite) === null || _state_current_composite === void 0 || _state_current_composite.stop(), state.current.composite = null;
48
52
  },
49
53
  setValue(next) {
50
- var { type, ...config } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
51
- type: "spring"
52
- }, onFinish = arguments.length > 2 ? arguments[2] : void 0, val = state.current.val, handleFinish = onFinish ? function(param) {
53
- var { finished } = param;
54
- return finished ? onFinish() : null;
55
- } : void 0;
56
- if (type === "direct")
57
- val.setValue(next);
58
- else if (type === "spring") {
54
+ var {
55
+ type,
56
+ ...config
57
+ } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
58
+ type: "spring"
59
+ },
60
+ onFinish = arguments.length > 2 ? arguments[2] : void 0,
61
+ val = state.current.val,
62
+ handleFinish = onFinish ? function (param) {
63
+ var {
64
+ finished
65
+ } = param;
66
+ return finished ? onFinish() : null;
67
+ } : void 0;
68
+ if (type === "direct") val.setValue(next);else if (type === "spring") {
59
69
  var _state_current_composite;
60
70
  (_state_current_composite = state.current.composite) === null || _state_current_composite === void 0 || _state_current_composite.stop();
61
71
  var composite = Animated.spring(val, {
@@ -77,22 +87,23 @@ function useAnimatedNumber(initial) {
77
87
  }
78
88
  };
79
89
  }
80
- var useAnimatedNumberReaction = function(param, onValue) {
81
- var { value } = param, onChange = useEvent(function(current) {
82
- onValue(current.value);
83
- });
84
- React.useEffect(function() {
85
- var id = value.getInstance().addListener(onChange);
86
- return function() {
87
- value.getInstance().removeListener(id);
88
- };
89
- }, [
90
- value,
91
- onChange
92
- ]);
93
- }, useAnimatedNumberStyle = function(value, getStyle) {
94
- return getStyle(value.getInstance());
95
- };
90
+ var useAnimatedNumberReaction = function (param, onValue) {
91
+ var {
92
+ value
93
+ } = param,
94
+ onChange = useEvent(function (current) {
95
+ onValue(current.value);
96
+ });
97
+ React.useEffect(function () {
98
+ var id = value.getInstance().addListener(onChange);
99
+ return function () {
100
+ value.getInstance().removeListener(id);
101
+ };
102
+ }, [value, onChange]);
103
+ },
104
+ useAnimatedNumberStyle = function (value, getStyle) {
105
+ return getStyle(value.getInstance());
106
+ };
96
107
  function createAnimations(animations) {
97
108
  return {
98
109
  isReactNative: !0,
@@ -104,142 +115,154 @@ function createAnimations(animations) {
104
115
  useAnimatedNumberStyle,
105
116
  usePresence,
106
117
  ResetPresence,
107
- useAnimations: function(param) {
108
- var { props, onDidAnimate, style, componentState, presence } = param, isDisabled = isWeb && componentState.unmounted === !0, isExiting = presence?.[0] === !1, sendExitComplete = presence?.[1], animateStyles = React.useRef({}), animatedTranforms = React.useRef([]), animationsState = React.useRef(/* @__PURE__ */ new WeakMap()), animateOnly = props.animateOnly || [], hasAnimateOnly = !!props.animateOnly, args = [
109
- JSON.stringify(style),
110
- componentState,
111
- isExiting,
112
- !!onDidAnimate
113
- ], isThereNoNativeStyleKeys = React.useMemo(function() {
114
- return isWeb ? !0 : Object.keys(style).some(function(key) {
115
- return animateOnly ? !animatedStyleKey[key] && animateOnly.indexOf(key) === -1 : !animatedStyleKey[key];
116
- });
117
- }, args), res = React.useMemo(function() {
118
- var runners = [], completions = [], nonAnimatedStyle = {};
119
- for (var key in style) {
120
- var val = style[key];
121
- if (!isDisabled) {
122
- if (animatedStyleKey[key] == null && !costlyToAnimateStyleKey[key]) {
123
- nonAnimatedStyle[key] = val;
124
- continue;
125
- }
126
- if (hasAnimateOnly && !animateOnly.includes(key)) {
127
- nonAnimatedStyle[key] = val;
128
- continue;
129
- }
130
- if (key !== "transform") {
131
- animateStyles.current[key] = update(key, animateStyles.current[key], val);
132
- continue;
133
- }
134
- if (val) {
135
- if (typeof val == "string") {
136
- console.warn("Warning: Tamagui can't animate string transforms yet!");
118
+ useAnimations: function (param) {
119
+ var {
120
+ props,
121
+ onDidAnimate,
122
+ style,
123
+ componentState,
124
+ presence
125
+ } = param,
126
+ isDisabled = isWeb && componentState.unmounted === !0,
127
+ isExiting = presence?.[0] === !1,
128
+ sendExitComplete = presence?.[1],
129
+ animateStyles = React.useRef({}),
130
+ animatedTranforms = React.useRef([]),
131
+ animationsState = React.useRef(/* @__PURE__ */new WeakMap()),
132
+ animateOnly = props.animateOnly || [],
133
+ hasAnimateOnly = !!props.animateOnly,
134
+ args = [JSON.stringify(style), componentState, isExiting, !!onDidAnimate],
135
+ isThereNoNativeStyleKeys = React.useMemo(function () {
136
+ return isWeb ? !0 : Object.keys(style).some(function (key) {
137
+ return animateOnly ? !animatedStyleKey[key] && animateOnly.indexOf(key) === -1 : !animatedStyleKey[key];
138
+ });
139
+ }, args),
140
+ res = React.useMemo(function () {
141
+ var runners = [],
142
+ completions = [],
143
+ nonAnimatedStyle = {};
144
+ for (var key in style) {
145
+ var val = style[key];
146
+ if (!isDisabled) {
147
+ if (animatedStyleKey[key] == null && !costlyToAnimateStyleKey[key]) {
148
+ nonAnimatedStyle[key] = val;
137
149
  continue;
138
150
  }
139
- var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
140
- try {
141
- for (var _iterator = val.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
142
- var [index, transform] = _step.value, _animatedTranforms_current_index;
143
- if (transform) {
144
- var tkey = Object.keys(transform)[0], currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];
145
- animatedTranforms.current[index] = {
146
- [tkey]: update(tkey, currentTransform, transform[tkey])
147
- }, animatedTranforms.current = [
148
- ...animatedTranforms.current
149
- ];
150
- }
151
+ if (hasAnimateOnly && !animateOnly.includes(key)) {
152
+ nonAnimatedStyle[key] = val;
153
+ continue;
154
+ }
155
+ if (key !== "transform") {
156
+ animateStyles.current[key] = update(key, animateStyles.current[key], val);
157
+ continue;
158
+ }
159
+ if (val) {
160
+ if (typeof val == "string") {
161
+ console.warn("Warning: Tamagui can't animate string transforms yet!");
162
+ continue;
151
163
  }
152
- } catch (err) {
153
- _didIteratorError = !0, _iteratorError = err;
154
- } finally {
164
+ var _iteratorNormalCompletion = !0,
165
+ _didIteratorError = !1,
166
+ _iteratorError = void 0;
155
167
  try {
156
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
168
+ for (var _iterator = val.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
169
+ var [index, transform] = _step.value,
170
+ _animatedTranforms_current_index;
171
+ if (transform) {
172
+ var tkey = Object.keys(transform)[0],
173
+ currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];
174
+ animatedTranforms.current[index] = {
175
+ [tkey]: update(tkey, currentTransform, transform[tkey])
176
+ }, animatedTranforms.current = [...animatedTranforms.current];
177
+ }
178
+ }
179
+ } catch (err) {
180
+ _didIteratorError = !0, _iteratorError = err;
157
181
  } finally {
158
- if (_didIteratorError)
159
- throw _iteratorError;
182
+ try {
183
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
184
+ } finally {
185
+ if (_didIteratorError) throw _iteratorError;
186
+ }
160
187
  }
161
188
  }
162
189
  }
163
190
  }
164
- }
165
- var animatedStyle = {
166
- ...Object.fromEntries(Object.entries(animateStyles.current).map(function(param2) {
167
- var [k, v] = param2, _animationsState_current_get;
168
- return [
169
- k,
170
- ((_animationsState_current_get = animationsState.current.get(v)) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || v
171
- ];
172
- })),
173
- transform: animatedTranforms.current.map(function(r) {
174
- var _animationsState_current_get, key2 = Object.keys(r)[0], val2 = ((_animationsState_current_get = animationsState.current.get(r[key2])) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || r[key2];
175
- return {
176
- [key2]: val2
177
- };
178
- })
179
- };
180
- return {
181
- runners,
182
- completions,
183
- style: [
184
- nonAnimatedStyle,
185
- animatedStyle
186
- ]
187
- };
188
- function update(key2, animated, valIn) {
189
- var isColorStyleKey = colorStyleKey[key2], [val2, type] = isColorStyleKey ? [
190
- 0,
191
- void 0
192
- ] : getValue(valIn), animateToValue = val2, value = animated || new Animated.Value(val2), curInterpolation = animationsState.current.get(value), interpolateArgs;
193
- if (type) {
194
- var _curInterpolation_current;
195
- interpolateArgs = getInterpolated((_curInterpolation_current = curInterpolation?.current) !== null && _curInterpolation_current !== void 0 ? _curInterpolation_current : value._value, val2, type), animationsState.current.set(value, {
196
- interpolation: value.interpolate(interpolateArgs),
197
- current: val2
198
- });
199
- }
200
- if (isColorStyleKey && (animateToValue = curInterpolation?.animateToValue ? 0 : 1, interpolateArgs = getColorInterpolated(
201
- curInterpolation?.current,
191
+ var animatedStyle = {
192
+ ...Object.fromEntries(Object.entries(animateStyles.current).map(function (param2) {
193
+ var [k, v] = param2,
194
+ _animationsState_current_get;
195
+ return [k, ((_animationsState_current_get = animationsState.current.get(v)) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || v];
196
+ })),
197
+ transform: animatedTranforms.current.map(function (r) {
198
+ var _animationsState_current_get,
199
+ key2 = Object.keys(r)[0],
200
+ val2 = ((_animationsState_current_get = animationsState.current.get(r[key2])) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || r[key2];
201
+ return {
202
+ [key2]: val2
203
+ };
204
+ })
205
+ };
206
+ return {
207
+ runners,
208
+ completions,
209
+ style: [nonAnimatedStyle, animatedStyle]
210
+ };
211
+ function update(key2, animated, valIn) {
212
+ var isColorStyleKey = colorStyleKey[key2],
213
+ [val2, type] = isColorStyleKey ? [0, void 0] : getValue(valIn),
214
+ animateToValue = val2,
215
+ value = animated || new Animated.Value(val2),
216
+ curInterpolation = animationsState.current.get(value),
217
+ interpolateArgs;
218
+ if (type) {
219
+ var _curInterpolation_current;
220
+ interpolateArgs = getInterpolated((_curInterpolation_current = curInterpolation?.current) !== null && _curInterpolation_current !== void 0 ? _curInterpolation_current : value._value, val2, type), animationsState.current.set(value, {
221
+ interpolation: value.interpolate(interpolateArgs),
222
+ current: val2
223
+ });
224
+ }
225
+ if (isColorStyleKey && (animateToValue = curInterpolation?.animateToValue ? 0 : 1, interpolateArgs = getColorInterpolated(curInterpolation?.current,
202
226
  // valIn is the next color
203
- valIn,
204
- animateToValue
205
- ), animationsState.current.set(value, {
206
- current: valIn,
207
- interpolation: value.interpolate(interpolateArgs),
208
- animateToValue: curInterpolation?.animateToValue ? 0 : 1
209
- })), value) {
210
- var animationConfig = getAnimationConfig(key2, animations, props.animation), resolve, promise = new Promise(function(res2) {
211
- resolve = res2;
212
- });
213
- completions.push(promise), runners.push(function() {
214
- value.stopAnimation();
215
- function getAnimation() {
216
- return Animated[animationConfig.type || "spring"](value, {
217
- toValue: animateToValue,
218
- useNativeDriver: !isWeb && !isThereNoNativeStyleKeys,
219
- ...animationConfig
227
+ valIn, animateToValue), animationsState.current.set(value, {
228
+ current: valIn,
229
+ interpolation: value.interpolate(interpolateArgs),
230
+ animateToValue: curInterpolation?.animateToValue ? 0 : 1
231
+ })), value) {
232
+ var animationConfig = getAnimationConfig(key2, animations, props.animation),
233
+ resolve,
234
+ promise = new Promise(function (res2) {
235
+ resolve = res2;
236
+ });
237
+ completions.push(promise), runners.push(function () {
238
+ value.stopAnimation();
239
+ function getAnimation() {
240
+ return Animated[animationConfig.type || "spring"](value, {
241
+ toValue: animateToValue,
242
+ useNativeDriver: !isWeb && !isThereNoNativeStyleKeys,
243
+ ...animationConfig
244
+ });
245
+ }
246
+ var animation = animationConfig.delay ? Animated.sequence([Animated.delay(animationConfig.delay), getAnimation()]) : getAnimation();
247
+ animation.start(function (param2) {
248
+ var {
249
+ finished
250
+ } = param2;
251
+ finished && resolve();
220
252
  });
221
- }
222
- var animation = animationConfig.delay ? Animated.sequence([
223
- Animated.delay(animationConfig.delay),
224
- getAnimation()
225
- ]) : getAnimation();
226
- animation.start(function(param2) {
227
- var { finished } = param2;
228
- finished && resolve();
229
253
  });
230
- });
254
+ }
255
+ return process.env.NODE_ENV === "development" && props.debug === "verbose" && console.info(" \u{1F4A0} animate", key2, `from (${value._value}) to`, valIn, `(${val2})`, "type", type, "interpolate", interpolateArgs), value;
231
256
  }
232
- return process.env.NODE_ENV === "development" && props.debug === "verbose" && console.info(" \u{1F4A0} animate", key2, `from (${value._value}) to`, valIn, `(${val2})`, "type", type, "interpolate", interpolateArgs), value;
233
- }
234
- }, args);
235
- return useIsomorphicLayoutEffect(function() {
236
- res.runners.forEach(function(r) {
257
+ }, args);
258
+ return useIsomorphicLayoutEffect(function () {
259
+ res.runners.forEach(function (r) {
237
260
  return r();
238
261
  });
239
262
  var cancel = !1;
240
- return Promise.all(res.completions).then(function() {
263
+ return Promise.all(res.completions).then(function () {
241
264
  cancel || (onDidAnimate?.(), isExiting && sendExitComplete?.());
242
- }), function() {
265
+ }), function () {
243
266
  cancel = !0;
244
267
  };
245
268
  }, args), process.env.NODE_ENV === "development" && props.debug === "verbose" && console.info("Animated", {
@@ -251,13 +274,8 @@ function createAnimations(animations) {
251
274
  };
252
275
  }
253
276
  function getColorInterpolated(currentColor, nextColor, animateToValue) {
254
- var inputRange = [
255
- 0,
256
- 1
257
- ], outputRange = [
258
- currentColor || nextColor,
259
- nextColor
260
- ];
277
+ var inputRange = [0, 1],
278
+ outputRange = [currentColor || nextColor, nextColor];
261
279
  return animateToValue === 0 && outputRange.reverse(), {
262
280
  inputRange,
263
281
  outputRange
@@ -266,29 +284,27 @@ function getColorInterpolated(currentColor, nextColor, animateToValue) {
266
284
  function getInterpolated(current, next) {
267
285
  var postfix = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "deg";
268
286
  next === current && (current = next - 1e-9);
269
- var inputRange = [
270
- current,
271
- next
272
- ], outputRange = [
273
- `${current}${postfix}`,
274
- `${next}${postfix}`
275
- ];
287
+ var inputRange = [current, next],
288
+ outputRange = [`${current}${postfix}`, `${next}${postfix}`];
276
289
  return next < current && (inputRange.reverse(), outputRange.reverse()), {
277
290
  inputRange,
278
291
  outputRange
279
292
  };
280
293
  }
281
294
  function getAnimationConfig(key, animations, animation) {
282
- if (typeof animation == "string")
283
- return animations[animation];
284
- var type = "", extraConf, shortKey = transformShorthands[key];
295
+ if (typeof animation == "string") return animations[animation];
296
+ var type = "",
297
+ extraConf,
298
+ shortKey = transformShorthands[key];
285
299
  if (Array.isArray(animation)) {
286
300
  var _animation_, _animation_1;
287
301
  type = animation[0];
288
- var _animation__key, conf = (_animation__key = (_animation_ = animation[1]) === null || _animation_ === void 0 ? void 0 : _animation_[key]) !== null && _animation__key !== void 0 ? _animation__key : (_animation_1 = animation[1]) === null || _animation_1 === void 0 ? void 0 : _animation_1[shortKey];
302
+ var _animation__key,
303
+ conf = (_animation__key = (_animation_ = animation[1]) === null || _animation_ === void 0 ? void 0 : _animation_[key]) !== null && _animation__key !== void 0 ? _animation__key : (_animation_1 = animation[1]) === null || _animation_1 === void 0 ? void 0 : _animation_1[shortKey];
289
304
  conf && (typeof conf == "string" ? type = conf : (type = conf.type || type, extraConf = conf));
290
305
  } else {
291
- var _animation_key, val = (_animation_key = animation?.[key]) !== null && _animation_key !== void 0 ? _animation_key : animation?.[shortKey];
306
+ var _animation_key,
307
+ val = (_animation_key = animation?.[key]) !== null && _animation_key !== void 0 ? _animation_key : animation?.[shortKey];
292
308
  type = val?.type, extraConf = val;
293
309
  }
294
310
  var found = animations[type];
@@ -305,22 +321,10 @@ var transformShorthands = {
305
321
  };
306
322
  function getValue(input) {
307
323
  var isColor = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
308
- if (typeof input != "string")
309
- return [
310
- input
311
- ];
312
- var _input_match, [_, number, after] = (_input_match = input.match(/([-0-9]+)(deg|%|px)/)) !== null && _input_match !== void 0 ? _input_match : [];
313
- return [
314
- +number,
315
- after
316
- ];
324
+ if (typeof input != "string") return [input];
325
+ var _input_match,
326
+ [_, number, after] = (_input_match = input.match(/([-0-9]+)(deg|%|px)/)) !== null && _input_match !== void 0 ? _input_match : [];
327
+ return [+number, after];
317
328
  }
318
- export {
319
- AnimatedText,
320
- AnimatedView,
321
- createAnimations,
322
- useAnimatedNumber,
323
- useAnimatedNumberReaction,
324
- useAnimatedNumberStyle
325
- };
326
- //# sourceMappingURL=createAnimations.js.map
329
+ export { AnimatedText, AnimatedView, createAnimations, useAnimatedNumber, useAnimatedNumberReaction, useAnimatedNumberStyle };
330
+ //# sourceMappingURL=createAnimations.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/tamagui/code/core/animations-react-native/src/createAnimations.tsx"],
4
- "mappings": "AAAA,SAASA,OAAOC,iCAAiC;AACjD,SAASC,eAAeC,mBAAmB;AAS3C,SAASC,gBAAgB;AACzB,OAAOC,WAAW;AAClB,SAASC,gBAAsC;AAwB/C,IAAMC,mBAAmB;EACvBC,WAAW;EACXC,SAAS;AACX,GAEMC,gBAAgB;EACpBC,iBAAiB;EACjBC,OAAO;EACPC,aAAa;EACbC,iBAAiB;EACjBC,kBAAkB;EAClBC,gBAAgB;EAChBC,mBAAmB;AACrB,GAGMC,0BAA0B;EAC9BC,cAAc;EACdC,qBAAqB;EACrBC,sBAAsB;EACtBC,wBAAwB;EACxBC,yBAAyB;EACzBC,aAAa;EACbC,iBAAiB;EACjBC,kBAAkB;EAClBC,gBAAgB;EAChBC,mBAAmB;EACnB,GAAGlB;AAEL,GAEamB,eAAwDvB,SAASwB,MACjEC,eAAwDzB,SAAS0B;AAEvE,SAASC,kBACdC,SAAe;AAEf,MAAMC,QAAQ9B,MAAM+B,OAClB,IAAA;AAMF,SAAKD,MAAME,YACTF,MAAME,UAAU;IACdC,WAAW;IACXC,KAAK,IAAIjC,SAASkC,MAAMN,OAAAA;IACxBO,UAAU;MAAEC,MAAM;IAAS;EAC7B,IAGK;IACLC,cAAAA;AACE,aAAOR,MAAME,QAAQE;IACvB;IACAK,WAAAA;AACE,aAAOT,MAAME,QAAQE,IAAI;IAC3B;IACAM,OAAAA;UACEV;OAAAA,2BAAAA,MAAME,QAAQC,eA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A,OAAE,QAAZA,iBAAAA,SAAAA,SAAAA,aAAe0B,QAAAA;AACnD,IAAII,SACE,OAAOA,QAAS,WAClBtH,OAAOsH,QAEPtH,OAAQsH,KAAatH,QAAQA,MAC7BiH,YAAYK;EAGlB,OAAO;QACO9B,gBAAN3F,OAAM2F,iBAAAA,YAAYnC,GAAAA,OAAI,QAAhBmC,mBAAAA,SAAAA,iBAAoBA,YAAY0B,QAAAA;AAC5ClH,WAAOH,KAAKG,MACZiH,YAAYpH;EACd;AACA,MAAM0H,QAAQ5F,WAAW3B,IAAAA;AACzB,SAAO;IACL,GAAGuH;IACH,GAAGN;EACL;AACF;AAGA,IAAME,sBAAsB;EAC1BK,GAAG;EACHC,GAAG;EACHC,YAAY;EACZC,YAAY;AACd;AAEA,SAASzH,SAAS0H,OAAsB;MAAEC,UAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAU;AAClD,MAAI,OAAOD,SAAU;AACnB,WAAO;MAACA;;MAEiBA,cAArB,CAACE,GAAGC,QAAQC,KAAAA,KAASJ,eAAAA,MAAMK,MAAM,qBAAA,OAAA,QAAZL,iBAAAA,SAAAA,eAAsC,CAAA;AACjE,SAAO;IAAC,CAACG;IAAQC;;AACnB;",
5
- "names": ["isWeb", "useIsomorphicLayoutEffect", "ResetPresence", "usePresence", "useEvent", "React", "Animated", "animatedStyleKey", "transform", "opacity", "colorStyleKey", "backgroundColor", "color", "borderColor", "borderLeftColor", "borderRightColor", "borderTopColor", "borderBottomColor", "costlyToAnimateStyleKey", "borderRadius", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius", "borderWidth", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth", "AnimatedView", "View", "AnimatedText", "Text", "useAnimatedNumber", "initial", "state", "useRef", "current", "composite", "val", "Value", "strategy", "type", "getInstance", "getValue", "stop", "setValue", "next", "config", "onFinish", "handleFinish", "finished", "undefined", "spring", "toValue", "useNativeDriver", "start", "timing", "useAnimatedNumberReaction", "onValue", "value", "onChange", "useEffect", "id", "addListener", "removeListener", "useAnimatedNumberStyle", "getStyle", "createAnimations", "animations", "isReactNative", "useAnimations", "props", "onDidAnimate", "style", "componentState", "presence", "isDisabled", "unmounted", "isExiting", "sendExitComplete", "animateStyles", "animatedTranforms", "animationsState", "WeakMap", "animateOnly", "hasAnimateOnly", "args", "JSON", "stringify", "isThereNoNativeStyleKeys", "useMemo", "Object", "keys", "some", "key", "indexOf", "res", "runners", "completions", "nonAnimatedStyle", "includes", "update", "console", "warn", "entries", "index", "tkey", "currentTransform", "animatedStyle", "fromEntries", "map", "param", "k", "v", "get", "interpolation", "r", "animated", "valIn", "isColorStyleKey", "animateToValue", "curInterpolation", "interpolateArgs", "getInterpolated", "set", "interpolate", "getColorInterpolated", "animationConfig", "getAnimationConfig", "animation", "resolve", "promise", "Promise", "push", "stopAnimation", "getAnimation", "delay", "sequence", "process", "env", "NODE_ENV", "info", "forEach", "cancel", "all", "then", "response", "inputStyle", "currentColor", "nextColor", "inputRange", "outputRange", "reverse", "postfix", "extraConf", "shortKey", "transformShorthands", "Array", "isArray", "conf", "found", "x", "y", "translateX", "translateY", "input", "isColor", "_", "number", "after", "match"]
6
- }
1
+ {"version":3,"names":["isWeb","useIsomorphicLayoutEffect","ResetPresence","usePresence","useEvent","React","Animated","animatedStyleKey","transform","opacity","colorStyleKey","backgroundColor","color","borderColor","borderLeftColor","borderRightColor","borderTopColor","borderBottomColor","costlyToAnimateStyleKey","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderWidth","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","AnimatedView","View","AnimatedText","Text","useAnimatedNumber","initial","state","useRef","current","composite","val","Value","strategy","type","getInstance","getValue","_value","stop","_state_current_composite","setValue","next","config","arguments","length","onFinish","handleFinish","param","finished","spring","toValue","useNativeDriver","start","_state_current_composite1","composite1","timing","useAnimatedNumberReaction","onValue","value","onChange","useEffect","id","addListener","removeListener","useAnimatedNumberStyle","getStyle","createAnimations","animations","isReactNative","useAnimations","props","onDidAnimate","style","componentState","presence","isDisabled","unmounted","isExiting","sendExitComplete","animateStyles","animatedTranforms","animationsState","WeakMap","animateOnly","hasAnimateOnly","args","JSON","stringify","isThereNoNativeStyleKeys","useMemo","Object","keys","some","key","indexOf","res","runners","completions","nonAnimatedStyle","includes","update","console","warn","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","entries","Symbol","iterator","_step","done","index","_animatedTranforms_current_index","tkey","currentTransform","err","return","animatedStyle","fromEntries","map","param2","k","v","_animationsState_current_get","get","interpolation","r","key2","val2","animated","valIn","isColorStyleKey","animateToValue","curInterpolation","interpolateArgs","_curInterpolation_current","getInterpolated","set","interpolate","getColorInterpolated","animationConfig","getAnimationConfig","animation","resolve","promise","Promise","res2","push","stopAnimation","getAnimation","delay","sequence","process","env","NODE_ENV","debug","info","forEach","cancel","all","then","response","inputStyle","currentColor","nextColor","inputRange","outputRange"],"sources":["../../src/createAnimations.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,KAAA,EAAOC,yBAAA,QAAiC;AACjD,SAASC,aAAA,EAAeC,WAAA,QAAmB;AAS3C,SAASC,QAAA,QAAgB;AACzB,OAAOC,KAAA,MAAW;AAClB,SAASC,QAAA,QAAsC;AAwB/C,IAAAC,gBAAM;IACJC,SAAA,EAAW;IACXC,OAAA,EAAS;EACX;EAEMC,aAAA,GAAgB;IACpBC,eAAA,EAAiB;IACjBC,KAAA,EAAO;IACPC,WAAA,EAAa;IACbC,eAAA,EAAiB;IACjBC,gBAAA,EAAkB;IAClBC,cAAA,EAAgB;IAChBC,iBAAA,EAAmB;EACrB;EAGMC,uBAAA,GAA0B;IAC9BC,YAAA,EAAc;IACdC,mBAAA,EAAqB;IACrBC,oBAAA,EAAsB;IACtBC,sBAAA,EAAwB;IACxBC,uBAAA,EAAyB;IACzBC,WAAA,EAA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AnE,GAAA;QACLoE,UAAA,EAAA3F,KAAA;QACFK;MAGM,IAAAkB,GAAA;IACJ;EACA;AAAG;AACS,SACZ6C,oBAAYA,CAAAwB,YAAA,EAAAC,SAAA,EAAAhC,cAAA;EACd,IAAAiC,UAAA,IAEA,GACE,EACE;IAAAC,WAAQ,GAAK,CAEfH,YAAU,IAAQC,SAAS,EAC3BA,SAAS,CACX","ignoreList":[]}
@@ -1,3 +1,2 @@
1
-
2
- export * from "./createAnimations";
3
- //# sourceMappingURL=index.js.map
1
+ export * from "./createAnimations.native.js";
2
+ //# sourceMappingURL=index.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/tamagui/code/core/animations-react-native/src/index.ts"],
4
- "mappings": "AAAA,OAAO;AAEP,cAAc;",
5
- "names": []
6
- }
1
+ {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAEA,cAAc","ignoreList":[]}
@@ -1,2 +1,2 @@
1
1
  typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = typeof setImmediate > "u" ? setTimeout : setImmediate);
2
- //# sourceMappingURL=polyfill.js.map
2
+ //# sourceMappingURL=polyfill.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/tamagui/code/core/animations-react-native/src/polyfill.ts"],
4
- "mappings": "AACI,OAAOA,wBAA0B,QACnCC,WAAW,wBACT,OAAOC,eAAiB,MAAcC,aAAaD;",
5
- "names": ["requestAnimationFrame", "globalThis", "setImmediate", "setTimeout"]
6
- }
1
+ {"version":3,"names":["requestAnimationFrame","globalThis","setImmediate","setTimeout"],"sources":["../../src/polyfill.ts"],"sourcesContent":[null],"mappings":"AACI,OAAOA,qBAAA,GAA0B,QACnCC,UAAA,CAAWD,qBAAA,GACT,OAAOE,YAAA,GAAiB,MAAcC,UAAA,GAAaD,YAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/animations-react-native",
3
- "version": "1.125.6",
3
+ "version": "1.125.8",
4
4
  "source": "src/index.ts",
5
5
  "removeSideEffects": true,
6
6
  "sideEffects": [
@@ -29,12 +29,12 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "@tamagui/constants": "1.125.6",
33
- "@tamagui/use-presence": "1.125.6",
34
- "@tamagui/web": "1.125.6"
32
+ "@tamagui/constants": "1.125.8",
33
+ "@tamagui/use-presence": "1.125.8",
34
+ "@tamagui/web": "1.125.8"
35
35
  },
36
36
  "devDependencies": {
37
- "@tamagui/build": "1.125.6",
37
+ "@tamagui/build": "1.125.8",
38
38
  "react": "*",
39
39
  "react-native": "^0.76.5"
40
40
  },