@tamagui/animations-react-native 1.26.0 → 1.27.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/animations-react-native",
3
- "version": "1.26.0",
3
+ "version": "1.27.0",
4
4
  "source": "src/index.ts",
5
5
  "sideEffects": [
6
6
  "./polyfill.js"
@@ -15,11 +15,11 @@
15
15
  "dist"
16
16
  ],
17
17
  "dependencies": {
18
- "@tamagui/use-presence": "1.26.0",
19
- "@tamagui/web": "1.26.0"
18
+ "@tamagui/use-presence": "1.27.0",
19
+ "@tamagui/web": "1.27.0"
20
20
  },
21
21
  "devDependencies": {
22
- "@tamagui/build": "1.26.0",
22
+ "@tamagui/build": "1.27.0",
23
23
  "react": "^18.2.0",
24
24
  "react-native": "^0.71.7"
25
25
  },
@@ -1,363 +0,0 @@
1
- import { usePresence } from "@tamagui/use-presence";
2
- import {
3
- isWeb,
4
- useEvent,
5
- useIsomorphicLayoutEffect,
6
- useSafeRef
7
- } from "@tamagui/web";
8
- import { useEffect, useMemo } from "react";
9
- import { Animated } from "react-native";
10
- const animatedStyleKey = {
11
- transform: true,
12
- opacity: true
13
- };
14
- const colorStyleKey = {
15
- backgroundColor: true,
16
- color: true,
17
- borderColor: true,
18
- borderLeftColor: true,
19
- borderRightColor: true,
20
- borderTopColor: true,
21
- borderBottomColor: true
22
- };
23
- const costlyToAnimateStyleKey = {
24
- borderRadius: true,
25
- borderTopLeftRadius: true,
26
- borderTopRightRadius: true,
27
- borderBottomLeftRadius: true,
28
- borderBottomRightRadius: true,
29
- borderWidth: true,
30
- borderLeftWidth: true,
31
- borderRightWidth: true,
32
- borderTopWidth: true,
33
- borderBottomWidth: true,
34
- ...colorStyleKey
35
- // TODO for other keys like height or width, it's better to not add them here till layout animations are ready
36
- };
37
- const AnimatedView = Animated.View;
38
- const AnimatedText = Animated.Text;
39
- function useAnimatedNumber(initial) {
40
- const state = useSafeRef(
41
- null
42
- );
43
- if (!state.current) {
44
- state.current = {
45
- composite: null,
46
- val: new Animated.Value(initial),
47
- strategy: { type: "spring" }
48
- };
49
- }
50
- return {
51
- getInstance() {
52
- return state.current.val;
53
- },
54
- getValue() {
55
- return state.current.val["_value"];
56
- },
57
- stop() {
58
- var _a;
59
- (_a = state.current.composite) == null ? void 0 : _a.stop();
60
- state.current.composite = null;
61
- },
62
- setValue(next, { type, ...config } = { type: "spring" }) {
63
- var _a, _b;
64
- const val = state.current.val;
65
- if (type === "direct") {
66
- val.setValue(next);
67
- } else if (type === "spring") {
68
- (_a = state.current.composite) == null ? void 0 : _a.stop();
69
- const composite = Animated.spring(val, {
70
- ...config,
71
- toValue: next,
72
- useNativeDriver: !isWeb
73
- });
74
- composite.start();
75
- state.current.composite = composite;
76
- } else {
77
- (_b = state.current.composite) == null ? void 0 : _b.stop();
78
- const composite = Animated.timing(val, {
79
- ...config,
80
- toValue: next,
81
- useNativeDriver: !isWeb
82
- });
83
- composite.start();
84
- state.current.composite = composite;
85
- }
86
- }
87
- };
88
- }
89
- function useAnimatedNumberReaction({
90
- value
91
- }, onValue) {
92
- const onChange = useEvent((current) => {
93
- onValue(current.value);
94
- });
95
- useEffect(() => {
96
- const id = value.getInstance().addListener(onChange);
97
- return () => {
98
- value.getInstance().removeListener(id);
99
- };
100
- }, [value, onChange]);
101
- }
102
- function useAnimatedNumberStyle(value, getStyle) {
103
- return getStyle(value.getInstance());
104
- }
105
- function createAnimations(animations) {
106
- AnimatedView["displayName"] = "AnimatedView";
107
- AnimatedText["displayName"] = "AnimatedText";
108
- return {
109
- isReactNative: true,
110
- animations,
111
- View: AnimatedView,
112
- Text: AnimatedText,
113
- useAnimatedNumber,
114
- useAnimatedNumberReaction,
115
- useAnimatedNumberStyle,
116
- usePresence,
117
- useAnimations: ({ props, onDidAnimate, style, state, presence }) => {
118
- const isExiting = (presence == null ? void 0 : presence[0]) === false;
119
- const sendExitComplete = presence == null ? void 0 : presence[1];
120
- const animateStyles = useSafeRef({});
121
- const animatedTranforms = useSafeRef([]);
122
- const animationsState = useSafeRef(
123
- /* @__PURE__ */ new WeakMap()
124
- );
125
- const animateOnly = props.animateOnly || [];
126
- const args = [style, state, isExiting, !!onDidAnimate];
127
- const isThereNoNativeStyleKeys = useMemo(() => {
128
- if (isWeb)
129
- return true;
130
- return Object.keys(style).some((key) => {
131
- if (animateOnly.length) {
132
- return !animatedStyleKey[key] && animateOnly.indexOf(key) === -1;
133
- } else {
134
- return !animatedStyleKey[key];
135
- }
136
- });
137
- }, args);
138
- const res = useMemo(() => {
139
- var _a;
140
- const runners = [];
141
- const completions = [];
142
- const nonAnimatedStyle = {};
143
- for (const key in style) {
144
- const val = style[key];
145
- if (!animatedStyleKey[key] && !costlyToAnimateStyleKey[key]) {
146
- nonAnimatedStyle[key] = val;
147
- continue;
148
- }
149
- if (animateOnly.length && animateOnly.indexOf(key) === -1) {
150
- nonAnimatedStyle[key] = val;
151
- continue;
152
- }
153
- if (key !== "transform") {
154
- animateStyles.current[key] = update(key, animateStyles.current[key], val);
155
- continue;
156
- }
157
- if (!val)
158
- continue;
159
- for (const [index, transform] of val.entries()) {
160
- if (!transform)
161
- continue;
162
- const tkey = Object.keys(transform)[0];
163
- const currentTransform = (_a = animatedTranforms.current[index]) == null ? void 0 : _a[tkey];
164
- animatedTranforms.current[index] = {
165
- [tkey]: update(tkey, currentTransform, transform[tkey])
166
- };
167
- animatedTranforms.current = [...animatedTranforms.current];
168
- }
169
- }
170
- const animatedStyle = {
171
- ...Object.fromEntries(
172
- Object.entries(animateStyles.current).map(([k, v]) => {
173
- var _a2;
174
- return [
175
- k,
176
- ((_a2 = animationsState.current.get(v)) == null ? void 0 : _a2.interpolation) || v
177
- ];
178
- })
179
- ),
180
- transform: animatedTranforms.current.map((r) => {
181
- var _a2;
182
- const key = Object.keys(r)[0];
183
- const val = ((_a2 = animationsState.current.get(r[key])) == null ? void 0 : _a2.interpolation) || r[key];
184
- return { [key]: val };
185
- })
186
- };
187
- return {
188
- runners,
189
- completions,
190
- style: [nonAnimatedStyle, animatedStyle]
191
- };
192
- function update(key, animated, valIn) {
193
- const isColorStyleKey = colorStyleKey[key];
194
- const [val, type] = isColorStyleKey ? [0, void 0] : getValue(valIn);
195
- let animateToValue = val;
196
- const value = animated || new Animated.Value(val);
197
- const curInterpolation = animationsState.current.get(value);
198
- let interpolateArgs;
199
- if (type) {
200
- interpolateArgs = getInterpolated(
201
- (curInterpolation == null ? void 0 : curInterpolation.current) ?? value["_value"],
202
- val,
203
- type
204
- );
205
- animationsState.current.set(value, {
206
- interpolation: value.interpolate(interpolateArgs),
207
- current: val
208
- });
209
- }
210
- if (isColorStyleKey) {
211
- animateToValue = (curInterpolation == null ? void 0 : curInterpolation.animateToValue) ? 0 : 1;
212
- interpolateArgs = getColorInterpolated(
213
- curInterpolation == null ? void 0 : curInterpolation.current,
214
- // valIn is the next color
215
- valIn,
216
- animateToValue
217
- );
218
- animationsState.current.set(value, {
219
- current: valIn,
220
- interpolation: value.interpolate(interpolateArgs),
221
- animateToValue: (curInterpolation == null ? void 0 : curInterpolation.animateToValue) ? 0 : 1
222
- });
223
- }
224
- if (value) {
225
- const animationConfig = getAnimationConfig(key, animations, props.animation);
226
- let resolve;
227
- const promise = new Promise((res2) => {
228
- resolve = res2;
229
- });
230
- completions.push(promise);
231
- runners.push(() => {
232
- value.stopAnimation();
233
- function getAnimation() {
234
- return Animated[animationConfig.type || "spring"](value, {
235
- toValue: animateToValue,
236
- useNativeDriver: !isWeb && !isThereNoNativeStyleKeys,
237
- ...animationConfig
238
- });
239
- }
240
- const animation = animationConfig.delay ? Animated.sequence([
241
- Animated.delay(animationConfig.delay),
242
- getAnimation()
243
- ]) : getAnimation();
244
- animation.start(({ finished }) => {
245
- if (finished) {
246
- resolve();
247
- }
248
- });
249
- });
250
- }
251
- if (process.env.NODE_ENV === "development") {
252
- if (props["debug"] === "verbose") {
253
- console.log(" \u{1F4A0} animate", key, `from ${value["_value"]} to`, valIn, `(${val})`, "type", type, "interpolate", interpolateArgs);
254
- }
255
- }
256
- return value;
257
- }
258
- }, args);
259
- useIsomorphicLayoutEffect(() => {
260
- res.runners.forEach((r) => r());
261
- let cancel = false;
262
- Promise.all(res.completions).then(() => {
263
- if (cancel)
264
- return;
265
- onDidAnimate == null ? void 0 : onDidAnimate();
266
- if (isExiting) {
267
- sendExitComplete == null ? void 0 : sendExitComplete();
268
- }
269
- });
270
- return () => {
271
- cancel = true;
272
- };
273
- }, args);
274
- if (process.env.NODE_ENV === "development") {
275
- if (props["debug"] === "verbose") {
276
- console.log(`Returning animated`, res);
277
- }
278
- }
279
- return res;
280
- }
281
- };
282
- }
283
- function getColorInterpolated(currentColor, nextColor, animateToValue) {
284
- const inputRange = [0, 1];
285
- const outputRange = [currentColor ? currentColor : nextColor, nextColor];
286
- if (animateToValue === 0) {
287
- outputRange.reverse();
288
- }
289
- return {
290
- inputRange,
291
- outputRange
292
- };
293
- }
294
- function getInterpolated(current, next, postfix = "deg") {
295
- if (next === current) {
296
- current = next - 1e-9;
297
- }
298
- const inputRange = [current, next];
299
- const outputRange = [`${current}${postfix}`, `${next}${postfix}`];
300
- if (next < current) {
301
- inputRange.reverse();
302
- outputRange.reverse();
303
- }
304
- return {
305
- inputRange,
306
- outputRange
307
- };
308
- }
309
- function getAnimationConfig(key, animations, animation) {
310
- var _a, _b;
311
- if (typeof animation === "string") {
312
- return animations[animation];
313
- }
314
- let type = "";
315
- let extraConf;
316
- const shortKey = transformShorthands[key];
317
- if (Array.isArray(animation)) {
318
- type = animation[0];
319
- const conf = ((_a = animation[1]) == null ? void 0 : _a[key]) ?? ((_b = animation[1]) == null ? void 0 : _b[shortKey]);
320
- if (conf) {
321
- if (typeof conf === "string") {
322
- type = conf;
323
- } else {
324
- type = conf.type || type;
325
- extraConf = conf;
326
- }
327
- }
328
- } else {
329
- const val = (animation == null ? void 0 : animation[key]) ?? (animation == null ? void 0 : animation[shortKey]);
330
- type = val == null ? void 0 : val.type;
331
- extraConf = val;
332
- }
333
- const found = animations[type];
334
- if (!found) {
335
- throw new Error(`No animation of type "${type}" for key "${key}"`);
336
- }
337
- return {
338
- ...found,
339
- ...extraConf
340
- };
341
- }
342
- const transformShorthands = {
343
- x: "translateX",
344
- y: "translateY",
345
- translateX: "x",
346
- translateY: "y"
347
- };
348
- function getValue(input, isColor = false) {
349
- if (typeof input !== "string") {
350
- return [input];
351
- }
352
- const [_, number, after] = input.match(/([-0-9]+)(deg|%|px)/) ?? [];
353
- return [+number, after];
354
- }
355
- export {
356
- AnimatedText,
357
- AnimatedView,
358
- createAnimations,
359
- useAnimatedNumber,
360
- useAnimatedNumberReaction,
361
- useAnimatedNumberStyle
362
- };
363
- //# sourceMappingURL=createAnimations.mjs.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/createAnimations.tsx"],
4
- "mappings": "AAAA,SAAS,mBAAmB;AAC5B;AAAA,EAKE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,WAAW,eAAe;AACnC,SAAS,gBAAgB;AA0BzB,MAAM,mBAAmB;AAAA,EACvB,WAAW;AAAA,EACX,SAAS;AACX;AAEA,MAAM,gBAAgB;AAAA,EACpB,iBAAiB;AAAA,EACjB,OAAO;AAAA,EACP,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,mBAAmB;AACrB;AAEA,MAAM,0BAA0B;AAAA,EAC9B,cAAc;AAAA,EACd,qBAAqB;AAAA,EACrB,sBAAsB;AAAA,EACtB,wBAAwB;AAAA,EACxB,yBAAyB;AAAA,EACzB,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,mBAAmB;AAAA,EACnB,GAAG;AAAA;AAEL;AAEO,MAAM,eAAe,SAAS;AAC9B,MAAM,eAAe,SAAS;AAE9B,SAAS,kBACd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ACZ,YAAY;AACd;AAEA,SAAS,SAAS,OAAwB,UAAU,OAAO;AACzD,MAAI,OAAO,UAAU,UAAU;AAC7B,WAAO,CAAC,KAAK;AAAA,EACf;AACA,QAAM,CAAC,GAAG,QAAQ,KAAK,IAAI,MAAM,MAAM,qBAAqB,KAAK,CAAC;AAClE,SAAO,CAAC,CAAC,QAAQ,KAAK;AACxB;",
5
- "names": ["_a", "res"]
6
- }
@@ -1,3 +0,0 @@
1
- import "./polyfill";
2
- export * from "./createAnimations";
3
- //# sourceMappingURL=index.mjs.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.tsx"],
4
- "mappings": "AAAA,OAAO;AAEP,cAAc;",
5
- "names": []
6
- }
@@ -1,4 +0,0 @@
1
- if (typeof requestAnimationFrame === "undefined") {
2
- globalThis["requestAnimationFrame"] = setImmediate;
3
- }
4
- //# sourceMappingURL=polyfill.mjs.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/polyfill.ts"],
4
- "mappings": "AACA,IAAI,OAAO,0BAA0B,aAAa;AAChD,aAAW,uBAAuB,IAAI;AACxC;",
5
- "names": []
6
- }