@hanzogui/animations-react-native 7.3.0 → 8.0.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/dist/cjs/createAnimations.cjs +84 -11
- package/dist/cjs/createAnimations.native.js +91 -15
- package/dist/cjs/createAnimations.native.js.map +1 -1
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/polyfill.native.js.map +1 -1
- package/dist/esm/createAnimations.mjs +84 -11
- package/dist/esm/createAnimations.mjs.map +1 -1
- package/dist/esm/createAnimations.native.js +91 -15
- package/dist/esm/createAnimations.native.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +1 -0
- package/dist/esm/index.native.js.map +1 -1
- package/package.json +14 -16
- package/src/createAnimations.tsx +151 -10
- package/types/createAnimations.d.ts.map +2 -2
- package/LICENSE +0 -42
|
@@ -69,6 +69,27 @@ const colorStyleKey = {
|
|
|
69
69
|
borderTopColor: true,
|
|
70
70
|
borderBottomColor: true
|
|
71
71
|
};
|
|
72
|
+
const layoutStyleKey = {
|
|
73
|
+
height: true,
|
|
74
|
+
width: true,
|
|
75
|
+
minHeight: true,
|
|
76
|
+
maxHeight: true,
|
|
77
|
+
minWidth: true,
|
|
78
|
+
maxWidth: true
|
|
79
|
+
};
|
|
80
|
+
function hasAnimatedLayoutKey(style, isDark, animateOnly) {
|
|
81
|
+
for (const key in layoutStyleKey) {
|
|
82
|
+
if (animateOnly && !animateOnly.includes(key)) continue;
|
|
83
|
+
if (typeof resolveDynamicValue(style[key], isDark) === "number") return true;
|
|
84
|
+
}
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
function isAnimatableColor(value) {
|
|
88
|
+
if (typeof value !== "string") return false;
|
|
89
|
+
if (value === "") return false;
|
|
90
|
+
if (value.includes("var(") || value.includes("calc(")) return false;
|
|
91
|
+
return true;
|
|
92
|
+
}
|
|
72
93
|
const costlyToAnimateStyleKey = {
|
|
73
94
|
borderRadius: true,
|
|
74
95
|
borderTopLeftRadius: true,
|
|
@@ -182,6 +203,7 @@ function createAnimations(animations, options) {
|
|
|
182
203
|
style,
|
|
183
204
|
componentState,
|
|
184
205
|
presence,
|
|
206
|
+
stateRef,
|
|
185
207
|
useStyleEmitter
|
|
186
208
|
}) => {
|
|
187
209
|
const isDisabled = import_constants.isWeb && componentState.unmounted === true;
|
|
@@ -192,6 +214,7 @@ function createAnimations(animations, options) {
|
|
|
192
214
|
const animateStyles = import_react.default.useRef({});
|
|
193
215
|
const animatedTranforms = import_react.default.useRef([]);
|
|
194
216
|
const animationsState = import_react.default.useRef(/* @__PURE__ */new WeakMap());
|
|
217
|
+
const pseudoActiveRef = import_react.default.useRef(false);
|
|
195
218
|
const exitCycleIdRef = import_react.default.useRef(0);
|
|
196
219
|
const exitCompletedRef = import_react.default.useRef(false);
|
|
197
220
|
const wasExitingRef = import_react.default.useRef(false);
|
|
@@ -218,6 +241,10 @@ function createAnimations(animations, options) {
|
|
|
218
241
|
const completions = [];
|
|
219
242
|
const animationState = isExiting ? "exit" : isEntering || justFinishedEntering ? "enter" : "default";
|
|
220
243
|
const nonAnimatedStyle = {};
|
|
244
|
+
const useNativeDriverForNode = nativeDriver && !hasAnimatedLayoutKey(style, isDark, hasTransitionOnly ? animateOnly : void 0);
|
|
245
|
+
const seenAnimateKeys = /* @__PURE__ */new Set();
|
|
246
|
+
let sawTransform = false;
|
|
247
|
+
let transformCount = 0;
|
|
221
248
|
for (const key in style) {
|
|
222
249
|
const rawVal = style[key];
|
|
223
250
|
const val = resolveDynamicValue(rawVal, isDark);
|
|
@@ -225,7 +252,7 @@ function createAnimations(animations, options) {
|
|
|
225
252
|
if (isDisabled) {
|
|
226
253
|
continue;
|
|
227
254
|
}
|
|
228
|
-
if (animatedStyleKey[key] == null && !costlyToAnimateStyleKey[key]) {
|
|
255
|
+
if (animatedStyleKey[key] == null && !costlyToAnimateStyleKey[key] && !layoutStyleKey[key]) {
|
|
229
256
|
nonAnimatedStyle[key] = val;
|
|
230
257
|
continue;
|
|
231
258
|
}
|
|
@@ -233,8 +260,17 @@ function createAnimations(animations, options) {
|
|
|
233
260
|
nonAnimatedStyle[key] = val;
|
|
234
261
|
continue;
|
|
235
262
|
}
|
|
263
|
+
if (layoutStyleKey[key] && typeof val !== "number") {
|
|
264
|
+
nonAnimatedStyle[key] = val;
|
|
265
|
+
continue;
|
|
266
|
+
}
|
|
267
|
+
if (colorStyleKey[key] && !isAnimatableColor(val)) {
|
|
268
|
+
nonAnimatedStyle[key] = val;
|
|
269
|
+
continue;
|
|
270
|
+
}
|
|
236
271
|
if (key !== "transform") {
|
|
237
272
|
animateStyles.current[key] = update(key, animateStyles.current[key], val);
|
|
273
|
+
seenAnimateKeys.add(key);
|
|
238
274
|
continue;
|
|
239
275
|
}
|
|
240
276
|
if (!val) continue;
|
|
@@ -242,8 +278,10 @@ function createAnimations(animations, options) {
|
|
|
242
278
|
console.warn(`Warning: Gui can't animate string transforms yet!`);
|
|
243
279
|
continue;
|
|
244
280
|
}
|
|
245
|
-
|
|
281
|
+
sawTransform = true;
|
|
282
|
+
for (const transform of val) {
|
|
246
283
|
if (!transform) continue;
|
|
284
|
+
const index = transformCount++;
|
|
247
285
|
const tkey = Object.keys(transform)[0];
|
|
248
286
|
const currentTransform = animatedTranforms.current[index]?.[tkey];
|
|
249
287
|
animatedTranforms.current[index] = {
|
|
@@ -252,6 +290,16 @@ function createAnimations(animations, options) {
|
|
|
252
290
|
animatedTranforms.current = [...animatedTranforms.current];
|
|
253
291
|
}
|
|
254
292
|
}
|
|
293
|
+
if (!isExiting && !isDisabled && !pseudoActiveRef.current) {
|
|
294
|
+
for (const k in animateStyles.current) {
|
|
295
|
+
if (!seenAnimateKeys.has(k)) delete animateStyles.current[k];
|
|
296
|
+
}
|
|
297
|
+
if (!sawTransform) {
|
|
298
|
+
if (animatedTranforms.current.length) animatedTranforms.current = [];
|
|
299
|
+
} else if (animatedTranforms.current.length > transformCount) {
|
|
300
|
+
animatedTranforms.current = animatedTranforms.current.slice(0, transformCount);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
255
303
|
const animatedTransformStyle = animatedTranforms.current.length > 0 ? {
|
|
256
304
|
transform: animatedTranforms.current.map(r => {
|
|
257
305
|
const key = Object.keys(r)[0];
|
|
@@ -307,8 +355,8 @@ function createAnimations(animations, options) {
|
|
|
307
355
|
function getAnimation() {
|
|
308
356
|
return import_react_native.Animated[animationConfig.type || "spring"](value, {
|
|
309
357
|
toValue: animateToValue,
|
|
310
|
-
|
|
311
|
-
|
|
358
|
+
...animationConfig,
|
|
359
|
+
useNativeDriver: useNativeDriverForNode
|
|
312
360
|
});
|
|
313
361
|
}
|
|
314
362
|
const animation = animationConfig.delay ? import_react_native.Animated.sequence([import_react_native.Animated.delay(animationConfig.delay), getAnimation()]) : getAnimation();
|
|
@@ -358,25 +406,50 @@ function createAnimations(animations, options) {
|
|
|
358
406
|
cancel = true;
|
|
359
407
|
};
|
|
360
408
|
}, args);
|
|
361
|
-
useStyleEmitter?.(nextStyle => {
|
|
409
|
+
useStyleEmitter?.((nextStyle, _effectiveTransition, pseudoActive) => {
|
|
410
|
+
pseudoActiveRef.current = pseudoActive === true;
|
|
411
|
+
const runners = [];
|
|
412
|
+
const seenAnimateKeys = /* @__PURE__ */new Set();
|
|
413
|
+
let transformCount = 0;
|
|
414
|
+
let animatedShapeChanged = false;
|
|
415
|
+
const useNativeDriverForNode = nativeDriver && !hasAnimatedLayoutKey(nextStyle, isDark) && !Object.keys(animateStyles.current).some(key => layoutStyleKey[key]);
|
|
362
416
|
for (const key in nextStyle) {
|
|
363
417
|
const rawVal = nextStyle[key];
|
|
364
418
|
const val = resolveDynamicValue(rawVal, isDark);
|
|
365
419
|
if (val === void 0) continue;
|
|
366
420
|
if (key === "transform" && Array.isArray(val)) {
|
|
367
|
-
for (const
|
|
421
|
+
for (const transform of val) {
|
|
368
422
|
if (!transform) continue;
|
|
423
|
+
const index = transformCount++;
|
|
369
424
|
const tkey = Object.keys(transform)[0];
|
|
370
425
|
const currentTransform = animatedTranforms.current[index]?.[tkey];
|
|
426
|
+
if (!currentTransform) animatedShapeChanged = true;
|
|
371
427
|
animatedTranforms.current[index] = {
|
|
372
428
|
[tkey]: update(tkey, currentTransform, transform[tkey])
|
|
373
429
|
};
|
|
374
430
|
}
|
|
375
|
-
} else if (animatedStyleKey[key] != null || costlyToAnimateStyleKey[key]) {
|
|
431
|
+
} else if (animatedStyleKey[key] != null || costlyToAnimateStyleKey[key] || layoutStyleKey[key]) {
|
|
432
|
+
if (layoutStyleKey[key] && typeof val !== "number") continue;
|
|
433
|
+
if (colorStyleKey[key] && !isAnimatableColor(val)) continue;
|
|
434
|
+
if (!animateStyles.current[key]) animatedShapeChanged = true;
|
|
376
435
|
animateStyles.current[key] = update(key, animateStyles.current[key], val);
|
|
436
|
+
seenAnimateKeys.add(key);
|
|
377
437
|
}
|
|
378
438
|
}
|
|
379
|
-
|
|
439
|
+
for (const key in animateStyles.current) {
|
|
440
|
+
if (!seenAnimateKeys.has(key)) {
|
|
441
|
+
delete animateStyles.current[key];
|
|
442
|
+
animatedShapeChanged = true;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
if (animatedTranforms.current.length > transformCount) {
|
|
446
|
+
animatedTranforms.current = animatedTranforms.current.slice(0, transformCount);
|
|
447
|
+
animatedShapeChanged = true;
|
|
448
|
+
}
|
|
449
|
+
runners.forEach(r => r());
|
|
450
|
+
if (animatedShapeChanged && stateRef.current.nextState) {
|
|
451
|
+
stateRef.current.baseSetStateShallow?.(stateRef.current.nextState);
|
|
452
|
+
}
|
|
380
453
|
function update(key, animated, valIn) {
|
|
381
454
|
const isColor = colorStyleKey[key];
|
|
382
455
|
const [numVal, type] = isColor ? [0, void 0] : getValue(valIn);
|
|
@@ -398,12 +471,12 @@ function createAnimations(animations, options) {
|
|
|
398
471
|
});
|
|
399
472
|
}
|
|
400
473
|
const animationConfig = getAnimationConfig(key, animations, props.transition, "default");
|
|
401
|
-
|
|
474
|
+
runners.push(() => {
|
|
402
475
|
value.stopAnimation();
|
|
403
476
|
const anim = import_react_native.Animated[animationConfig.type || "spring"](value, {
|
|
404
477
|
toValue: animateToValue,
|
|
405
|
-
|
|
406
|
-
|
|
478
|
+
...animationConfig,
|
|
479
|
+
useNativeDriver: useNativeDriverForNode
|
|
407
480
|
});
|
|
408
481
|
(animationConfig.delay ? import_react_native.Animated.sequence([import_react_native.Animated.delay(animationConfig.delay), anim]) : anim).start();
|
|
409
482
|
});
|
|
@@ -76,6 +76,27 @@ var colorStyleKey = {
|
|
|
76
76
|
borderTopColor: true,
|
|
77
77
|
borderBottomColor: true
|
|
78
78
|
};
|
|
79
|
+
var layoutStyleKey = {
|
|
80
|
+
height: true,
|
|
81
|
+
width: true,
|
|
82
|
+
minHeight: true,
|
|
83
|
+
maxHeight: true,
|
|
84
|
+
minWidth: true,
|
|
85
|
+
maxWidth: true
|
|
86
|
+
};
|
|
87
|
+
function hasAnimatedLayoutKey(style, isDark, animateOnly) {
|
|
88
|
+
for (var key in layoutStyleKey) {
|
|
89
|
+
if (animateOnly && !animateOnly.includes(key)) continue;
|
|
90
|
+
if (typeof resolveDynamicValue(style[key], isDark) === "number") return true;
|
|
91
|
+
}
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
function isAnimatableColor(value) {
|
|
95
|
+
if (typeof value !== "string") return false;
|
|
96
|
+
if (value === "") return false;
|
|
97
|
+
if (value.includes("var(") || value.includes("calc(")) return false;
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
79
100
|
var costlyToAnimateStyleKey = {
|
|
80
101
|
borderRadius: true,
|
|
81
102
|
borderTopLeftRadius: true,
|
|
@@ -202,6 +223,7 @@ function createAnimations(animations, options) {
|
|
|
202
223
|
style,
|
|
203
224
|
componentState,
|
|
204
225
|
presence,
|
|
226
|
+
stateRef,
|
|
205
227
|
useStyleEmitter
|
|
206
228
|
} = param;
|
|
207
229
|
var _themeState_name;
|
|
@@ -213,6 +235,7 @@ function createAnimations(animations, options) {
|
|
|
213
235
|
var animateStyles = import_react.default.useRef({});
|
|
214
236
|
var animatedTranforms = import_react.default.useRef([]);
|
|
215
237
|
var animationsState = import_react.default.useRef(/* @__PURE__ */new WeakMap());
|
|
238
|
+
var pseudoActiveRef = import_react.default.useRef(false);
|
|
216
239
|
var exitCycleIdRef = import_react.default.useRef(0);
|
|
217
240
|
var exitCompletedRef = import_react.default.useRef(false);
|
|
218
241
|
var wasExitingRef = import_react.default.useRef(false);
|
|
@@ -239,6 +262,10 @@ function createAnimations(animations, options) {
|
|
|
239
262
|
var completions = [];
|
|
240
263
|
var animationState = isExiting ? "exit" : isEntering || justFinishedEntering ? "enter" : "default";
|
|
241
264
|
var nonAnimatedStyle = {};
|
|
265
|
+
var useNativeDriverForNode = nativeDriver && !hasAnimatedLayoutKey(style, isDark, hasTransitionOnly ? animateOnly : void 0);
|
|
266
|
+
var seenAnimateKeys = /* @__PURE__ */new Set();
|
|
267
|
+
var sawTransform = false;
|
|
268
|
+
var transformCount = 0;
|
|
242
269
|
for (var key in style) {
|
|
243
270
|
var rawVal = style[key];
|
|
244
271
|
var val = resolveDynamicValue(rawVal, isDark);
|
|
@@ -246,7 +273,7 @@ function createAnimations(animations, options) {
|
|
|
246
273
|
if (isDisabled) {
|
|
247
274
|
continue;
|
|
248
275
|
}
|
|
249
|
-
if (animatedStyleKey[key] == null && !costlyToAnimateStyleKey[key]) {
|
|
276
|
+
if (animatedStyleKey[key] == null && !costlyToAnimateStyleKey[key] && !layoutStyleKey[key]) {
|
|
250
277
|
nonAnimatedStyle[key] = val;
|
|
251
278
|
continue;
|
|
252
279
|
}
|
|
@@ -254,8 +281,17 @@ function createAnimations(animations, options) {
|
|
|
254
281
|
nonAnimatedStyle[key] = val;
|
|
255
282
|
continue;
|
|
256
283
|
}
|
|
284
|
+
if (layoutStyleKey[key] && typeof val !== "number") {
|
|
285
|
+
nonAnimatedStyle[key] = val;
|
|
286
|
+
continue;
|
|
287
|
+
}
|
|
288
|
+
if (colorStyleKey[key] && !isAnimatableColor(val)) {
|
|
289
|
+
nonAnimatedStyle[key] = val;
|
|
290
|
+
continue;
|
|
291
|
+
}
|
|
257
292
|
if (key !== "transform") {
|
|
258
293
|
animateStyles.current[key] = update(key, animateStyles.current[key], val);
|
|
294
|
+
seenAnimateKeys.add(key);
|
|
259
295
|
continue;
|
|
260
296
|
}
|
|
261
297
|
if (!val) continue;
|
|
@@ -263,14 +299,16 @@ function createAnimations(animations, options) {
|
|
|
263
299
|
console.warn(`Warning: Gui can't animate string transforms yet!`);
|
|
264
300
|
continue;
|
|
265
301
|
}
|
|
302
|
+
sawTransform = true;
|
|
266
303
|
var _iteratorNormalCompletion = true,
|
|
267
304
|
_didIteratorError = false,
|
|
268
305
|
_iteratorError = void 0;
|
|
269
306
|
try {
|
|
270
|
-
for (var _iterator = val
|
|
271
|
-
var
|
|
307
|
+
for (var _iterator = val[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
308
|
+
var transform = _step.value;
|
|
272
309
|
var _animatedTranforms_current_index;
|
|
273
310
|
if (!transform) continue;
|
|
311
|
+
var index = transformCount++;
|
|
274
312
|
var tkey = Object.keys(transform)[0];
|
|
275
313
|
var currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];
|
|
276
314
|
animatedTranforms.current[index] = {
|
|
@@ -293,6 +331,16 @@ function createAnimations(animations, options) {
|
|
|
293
331
|
}
|
|
294
332
|
}
|
|
295
333
|
}
|
|
334
|
+
if (!isExiting && !isDisabled && !pseudoActiveRef.current) {
|
|
335
|
+
for (var k in animateStyles.current) {
|
|
336
|
+
if (!seenAnimateKeys.has(k)) delete animateStyles.current[k];
|
|
337
|
+
}
|
|
338
|
+
if (!sawTransform) {
|
|
339
|
+
if (animatedTranforms.current.length) animatedTranforms.current = [];
|
|
340
|
+
} else if (animatedTranforms.current.length > transformCount) {
|
|
341
|
+
animatedTranforms.current = animatedTranforms.current.slice(0, transformCount);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
296
344
|
var animatedTransformStyle = animatedTranforms.current.length > 0 ? {
|
|
297
345
|
transform: animatedTranforms.current.map(function (r) {
|
|
298
346
|
var _animationsState_current_get;
|
|
@@ -305,9 +353,9 @@ function createAnimations(animations, options) {
|
|
|
305
353
|
} : {};
|
|
306
354
|
var animatedStyle = {
|
|
307
355
|
...Object.fromEntries(Object.entries(animateStyles.current).map(function (param2) {
|
|
308
|
-
var [
|
|
356
|
+
var [k2, v] = param2;
|
|
309
357
|
var _animationsState_current_get;
|
|
310
|
-
return [
|
|
358
|
+
return [k2, ((_animationsState_current_get = animationsState.current.get(v)) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || v];
|
|
311
359
|
})),
|
|
312
360
|
...animatedTransformStyle
|
|
313
361
|
};
|
|
@@ -354,8 +402,8 @@ function createAnimations(animations, options) {
|
|
|
354
402
|
function getAnimation() {
|
|
355
403
|
return import_react_native.Animated[animationConfig.type || "spring"](value, {
|
|
356
404
|
toValue: animateToValue,
|
|
357
|
-
|
|
358
|
-
|
|
405
|
+
...animationConfig,
|
|
406
|
+
useNativeDriver: useNativeDriverForNode
|
|
359
407
|
});
|
|
360
408
|
}
|
|
361
409
|
var animation = animationConfig.delay ? import_react_native.Animated.sequence([import_react_native.Animated.delay(animationConfig.delay), getAnimation()]) : getAnimation();
|
|
@@ -408,7 +456,15 @@ function createAnimations(animations, options) {
|
|
|
408
456
|
cancel = true;
|
|
409
457
|
};
|
|
410
458
|
}, args);
|
|
411
|
-
useStyleEmitter === null || useStyleEmitter === void 0 ? void 0 : useStyleEmitter(function (nextStyle) {
|
|
459
|
+
useStyleEmitter === null || useStyleEmitter === void 0 ? void 0 : useStyleEmitter(function (nextStyle, _effectiveTransition, pseudoActive) {
|
|
460
|
+
pseudoActiveRef.current = pseudoActive === true;
|
|
461
|
+
var runners = [];
|
|
462
|
+
var seenAnimateKeys = /* @__PURE__ */new Set();
|
|
463
|
+
var transformCount = 0;
|
|
464
|
+
var animatedShapeChanged = false;
|
|
465
|
+
var useNativeDriverForNode = nativeDriver && !hasAnimatedLayoutKey(nextStyle, isDark) && !Object.keys(animateStyles.current).some(function (key2) {
|
|
466
|
+
return layoutStyleKey[key2];
|
|
467
|
+
});
|
|
412
468
|
for (var key in nextStyle) {
|
|
413
469
|
var rawVal = nextStyle[key];
|
|
414
470
|
var val = resolveDynamicValue(rawVal, isDark);
|
|
@@ -418,12 +474,14 @@ function createAnimations(animations, options) {
|
|
|
418
474
|
_didIteratorError = false,
|
|
419
475
|
_iteratorError = void 0;
|
|
420
476
|
try {
|
|
421
|
-
for (var _iterator = val
|
|
422
|
-
var
|
|
477
|
+
for (var _iterator = val[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
478
|
+
var transform = _step.value;
|
|
423
479
|
var _animatedTranforms_current_index;
|
|
424
480
|
if (!transform) continue;
|
|
481
|
+
var index = transformCount++;
|
|
425
482
|
var tkey = Object.keys(transform)[0];
|
|
426
483
|
var currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];
|
|
484
|
+
if (!currentTransform) animatedShapeChanged = true;
|
|
427
485
|
animatedTranforms.current[index] = {
|
|
428
486
|
[tkey]: update(tkey, currentTransform, transform[tkey])
|
|
429
487
|
};
|
|
@@ -442,13 +500,31 @@ function createAnimations(animations, options) {
|
|
|
442
500
|
}
|
|
443
501
|
}
|
|
444
502
|
}
|
|
445
|
-
} else if (animatedStyleKey[key] != null || costlyToAnimateStyleKey[key]) {
|
|
503
|
+
} else if (animatedStyleKey[key] != null || costlyToAnimateStyleKey[key] || layoutStyleKey[key]) {
|
|
504
|
+
if (layoutStyleKey[key] && typeof val !== "number") continue;
|
|
505
|
+
if (colorStyleKey[key] && !isAnimatableColor(val)) continue;
|
|
506
|
+
if (!animateStyles.current[key]) animatedShapeChanged = true;
|
|
446
507
|
animateStyles.current[key] = update(key, animateStyles.current[key], val);
|
|
508
|
+
seenAnimateKeys.add(key);
|
|
447
509
|
}
|
|
448
510
|
}
|
|
449
|
-
|
|
511
|
+
for (var key1 in animateStyles.current) {
|
|
512
|
+
if (!seenAnimateKeys.has(key1)) {
|
|
513
|
+
delete animateStyles.current[key1];
|
|
514
|
+
animatedShapeChanged = true;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
if (animatedTranforms.current.length > transformCount) {
|
|
518
|
+
animatedTranforms.current = animatedTranforms.current.slice(0, transformCount);
|
|
519
|
+
animatedShapeChanged = true;
|
|
520
|
+
}
|
|
521
|
+
runners.forEach(function (r) {
|
|
450
522
|
return r();
|
|
451
523
|
});
|
|
524
|
+
if (animatedShapeChanged && stateRef.current.nextState) {
|
|
525
|
+
var _stateRef_current_baseSetStateShallow, _stateRef_current;
|
|
526
|
+
(_stateRef_current_baseSetStateShallow = (_stateRef_current = stateRef.current).baseSetStateShallow) === null || _stateRef_current_baseSetStateShallow === void 0 ? void 0 : _stateRef_current_baseSetStateShallow.call(_stateRef_current, stateRef.current.nextState);
|
|
527
|
+
}
|
|
452
528
|
function update(key2, animated, valIn) {
|
|
453
529
|
var isColor = colorStyleKey[key2];
|
|
454
530
|
var [numVal, type] = isColor ? [0, void 0] : getValue(valIn);
|
|
@@ -471,12 +547,12 @@ function createAnimations(animations, options) {
|
|
|
471
547
|
});
|
|
472
548
|
}
|
|
473
549
|
var animationConfig = getAnimationConfig(key2, animations, props.transition, "default");
|
|
474
|
-
|
|
550
|
+
runners.push(function () {
|
|
475
551
|
value.stopAnimation();
|
|
476
552
|
var anim = import_react_native.Animated[animationConfig.type || "spring"](value, {
|
|
477
553
|
toValue: animateToValue,
|
|
478
|
-
|
|
479
|
-
|
|
554
|
+
...animationConfig,
|
|
555
|
+
useNativeDriver: useNativeDriverForNode
|
|
480
556
|
});
|
|
481
557
|
(animationConfig.delay ? import_react_native.Animated.sequence([import_react_native.Animated.delay(animationConfig.delay), anim]) : anim).start();
|
|
482
558
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toESM","mod","isNodeMode","__esModule","value","__toCommonJS","createAnimations_exports","AnimatedText","AnimatedView","createAnimations","useAnimatedNumber","useAnimatedNumberReaction","useAnimatedNumberStyle","useAnimatedNumbersStyle","module","exports","import_animation_helpers","require","import_constants","import_use_presence","import_web","import_react","import_react_native","_type_of","obj","Symbol","constructor","isFabric","isWeb","global","__nativeFabricUIManager","resolveDynamicValue","isDark","dynamicValue","dynamic","dark","light","animatedStyleKey","transform","opacity","colorStyleKey","backgroundColor","color","borderColor","borderLeftColor","borderRightColor","borderTopColor","borderBottomColor","costlyToAnimateStyleKey","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderWidth","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","Animated","View","Text","initial","state","default","useRef","current","composite","val","Value","strategy","type","getInstance","getValue","stop","_state_current_composite","setValue","next","config","arguments","length","onFinish","handleFinish","param","finished","spring","toValue","useNativeDriver","start","_state_current_composite1","composite1","timing","onValue","onChange","useEvent","useEffect","id","addListener","removeListener","getStyle","vals","map","v","animations","options","_options_useNativeDriver","nativeDriver","isReactNative","inputStyle","outputStyle","avoidReRenders","needsCustomComponent","usePresence","ResetPresence","useAnimations","props","onDidAnimate","style","componentState","presence","useStyleEmitter","_themeState_name","isDisabled","unmounted","isExiting","sendExitComplete","themeState","useThemeWithState","scheme","startsWith","animateStyles","animatedTranforms","animationsState","WeakMap","exitCycleIdRef","exitCompletedRef","wasExitingRef","justStartedExiting","justStoppedExiting","animateOnly","hasTransitionOnly","isEntering","wasEnteringRef","justFinishedEntering","args","JSON","stringify","res","useMemo","runners","completions","animationState","nonAnimatedStyle","rawVal","includes","update","console","warn","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","entries","iterator","_step","done","index","_animatedTranforms_current_index","tkey","keys","currentTransform","err","return","animatedTransformStyle","r","_animationsState_current_get","key2","val2","interpolation","animatedStyle","fromEntries","param2","k","animated","valIn","isColorStyleKey","animateToValue","curInterpolation","interpolateArgs","_curInterpolation_current","getInterpolated","set","interpolate","getColorInterpolated","animationConfig","getAnimationConfig","transition","resolve","promise","Promise","res2","push","stopAnimation","getAnimation","animation","delay","sequence","process","env","NODE_ENV","info","useIsomorphicLayoutEffect","forEach","cycleId","cancel","then","nextStyle","Array","isArray","isColor","numVal","anim","response","currentColor","nextColor","inputRange","outputRange","reverse","postfix","normalized","normalizeTransition","shortKey","transformShorthands","_normalized_properties_key","propAnimation","properties","animationType","extraConf","getEffectiveAnimation","found","x","y","translateX","translateY","input","_input_match","_","number","after","match"],"sources":["createAnimations.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar createAnimations_exports = {};\n__export(createAnimations_exports, {\n AnimatedText: () => AnimatedText,\n AnimatedView: () => AnimatedView,\n createAnimations: () => createAnimations,\n useAnimatedNumber: () => useAnimatedNumber,\n useAnimatedNumberReaction: () => useAnimatedNumberReaction,\n useAnimatedNumberStyle: () => useAnimatedNumberStyle,\n useAnimatedNumbersStyle: () => useAnimatedNumbersStyle\n});\nmodule.exports = __toCommonJS(createAnimations_exports);\nvar import_animation_helpers = require(\"@hanzogui/animation-helpers\");\nvar import_constants = require(\"@hanzogui/constants\");\nvar import_use_presence = require(\"@hanzogui/use-presence\");\nvar import_web = require(\"@hanzogui/web\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_react_native = require(\"react-native\");\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar isFabric = !import_constants.isWeb && typeof global !== \"undefined\" && !!global.__nativeFabricUIManager;\nvar resolveDynamicValue = function(value, isDark) {\n if (value && (typeof value === \"undefined\" ? \"undefined\" : _type_of(value)) === \"object\" && \"dynamic\" in value) {\n var dynamicValue = isDark ? value.dynamic.dark : value.dynamic.light;\n return dynamicValue;\n }\n return value;\n};\nvar animatedStyleKey = {\n transform: true,\n opacity: true\n};\nvar colorStyleKey = {\n backgroundColor: true,\n color: true,\n borderColor: true,\n borderLeftColor: true,\n borderRightColor: true,\n borderTopColor: true,\n borderBottomColor: true\n};\nvar costlyToAnimateStyleKey = {\n borderRadius: true,\n borderTopLeftRadius: true,\n borderTopRightRadius: true,\n borderBottomLeftRadius: true,\n borderBottomRightRadius: true,\n borderWidth: true,\n borderLeftWidth: true,\n borderRightWidth: true,\n borderTopWidth: true,\n borderBottomWidth: true,\n ...colorStyleKey\n};\nvar AnimatedView = import_react_native.Animated.View;\nvar AnimatedText = import_react_native.Animated.Text;\nfunction useAnimatedNumber(initial) {\n var state = import_react.default.useRef(null);\n if (!state.current) {\n state.current = {\n composite: null,\n val: new import_react_native.Animated.Value(initial),\n strategy: {\n type: \"spring\"\n }\n };\n }\n return {\n getInstance() {\n return state.current.val;\n },\n getValue() {\n return state.current.val[\"_value\"];\n },\n stop() {\n var _state_current_composite;\n (_state_current_composite = state.current.composite) === null || _state_current_composite === void 0 ? void 0 : _state_current_composite.stop();\n state.current.composite = null;\n },\n setValue(next) {\n var { type, ...config } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {\n type: \"spring\"\n }, onFinish = arguments.length > 2 ? arguments[2] : void 0;\n var val = state.current.val;\n var handleFinish = onFinish ? function(param) {\n var { finished } = param;\n return finished ? onFinish() : null;\n } : void 0;\n if (type === \"direct\") {\n val.setValue(next);\n } else if (type === \"spring\") {\n var _state_current_composite;\n (_state_current_composite = state.current.composite) === null || _state_current_composite === void 0 ? void 0 : _state_current_composite.stop();\n var composite = import_react_native.Animated.spring(val, {\n ...config,\n toValue: next,\n useNativeDriver: isFabric\n });\n composite.start(handleFinish);\n state.current.composite = composite;\n } else {\n var _state_current_composite1;\n (_state_current_composite1 = state.current.composite) === null || _state_current_composite1 === void 0 ? void 0 : _state_current_composite1.stop();\n var composite1 = import_react_native.Animated.timing(val, {\n ...config,\n toValue: next,\n useNativeDriver: isFabric\n });\n composite1.start(handleFinish);\n state.current.composite = composite1;\n }\n }\n };\n}\nvar useAnimatedNumberReaction = function(param, onValue) {\n var { value } = param;\n var onChange = (0, import_web.useEvent)(function(current) {\n onValue(current.value);\n });\n import_react.default.useEffect(function() {\n var id = value.getInstance().addListener(onChange);\n return function() {\n value.getInstance().removeListener(id);\n };\n }, [\n value,\n onChange\n ]);\n};\nvar useAnimatedNumberStyle = function(value, getStyle) {\n return getStyle(value.getInstance());\n};\nvar useAnimatedNumbersStyle = function(vals, getStyle) {\n return getStyle(...vals.map(function(v) {\n return v.getInstance();\n }));\n};\nfunction createAnimations(animations, options) {\n var _options_useNativeDriver;\n var nativeDriver = (_options_useNativeDriver = options === null || options === void 0 ? void 0 : options.useNativeDriver) !== null && _options_useNativeDriver !== void 0 ? _options_useNativeDriver : isFabric;\n return {\n isReactNative: true,\n inputStyle: \"value\",\n outputStyle: \"inline\",\n avoidReRenders: true,\n animations,\n needsCustomComponent: true,\n View: AnimatedView,\n Text: AnimatedText,\n useAnimatedNumber,\n useAnimatedNumberReaction,\n useAnimatedNumberStyle,\n useAnimatedNumbersStyle,\n usePresence: import_use_presence.usePresence,\n ResetPresence: import_use_presence.ResetPresence,\n useAnimations: function(param) {\n var { props, onDidAnimate, style, componentState, presence, useStyleEmitter } = param;\n var _themeState_name;\n var isDisabled = import_constants.isWeb && componentState.unmounted === true;\n var isExiting = (presence === null || presence === void 0 ? void 0 : presence[0]) === false;\n var sendExitComplete = presence === null || presence === void 0 ? void 0 : presence[1];\n var [, themeState] = (0, import_web.useThemeWithState)({});\n var isDark = (themeState === null || themeState === void 0 ? void 0 : themeState.scheme) === \"dark\" || (themeState === null || themeState === void 0 ? void 0 : (_themeState_name = themeState.name) === null || _themeState_name === void 0 ? void 0 : _themeState_name.startsWith(\"dark\"));\n var animateStyles = import_react.default.useRef({});\n var animatedTranforms = import_react.default.useRef([]);\n var animationsState = import_react.default.useRef(/* @__PURE__ */ new WeakMap());\n var exitCycleIdRef = import_react.default.useRef(0);\n var exitCompletedRef = import_react.default.useRef(false);\n var wasExitingRef = import_react.default.useRef(false);\n var justStartedExiting = isExiting && !wasExitingRef.current;\n var justStoppedExiting = !isExiting && wasExitingRef.current;\n if (justStartedExiting) {\n exitCycleIdRef.current++;\n exitCompletedRef.current = false;\n }\n if (justStoppedExiting) {\n exitCycleIdRef.current++;\n }\n var animateOnly = props.animateOnly || [];\n var hasTransitionOnly = !!props.animateOnly;\n var isEntering = !!componentState.unmounted;\n var wasEnteringRef = import_react.default.useRef(isEntering);\n var justFinishedEntering = wasEnteringRef.current && !isEntering;\n import_react.default.useEffect(function() {\n wasEnteringRef.current = isEntering;\n });\n var args = [\n JSON.stringify(style),\n componentState,\n isExiting,\n !!onDidAnimate,\n isDark,\n justFinishedEntering,\n hasTransitionOnly\n ];\n var res = import_react.default.useMemo(function() {\n var runners = [];\n var completions = [];\n var animationState = isExiting ? \"exit\" : isEntering || justFinishedEntering ? \"enter\" : \"default\";\n var nonAnimatedStyle = {};\n for (var key in style) {\n var rawVal = style[key];\n var val = resolveDynamicValue(rawVal, isDark);\n if (val === void 0) continue;\n if (isDisabled) {\n continue;\n }\n if (animatedStyleKey[key] == null && !costlyToAnimateStyleKey[key]) {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (hasTransitionOnly && !animateOnly.includes(key)) {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (key !== \"transform\") {\n animateStyles.current[key] = update(key, animateStyles.current[key], val);\n continue;\n }\n if (!val) continue;\n if (typeof val === \"string\") {\n console.warn(`Warning: Gui can't animate string transforms yet!`);\n continue;\n }\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = val.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var [index, transform] = _step.value;\n var _animatedTranforms_current_index;\n if (!transform) continue;\n var tkey = Object.keys(transform)[0];\n var currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];\n animatedTranforms.current[index] = {\n [tkey]: update(tkey, currentTransform, transform[tkey])\n };\n animatedTranforms.current = [\n ...animatedTranforms.current\n ];\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n var animatedTransformStyle = animatedTranforms.current.length > 0 ? {\n transform: animatedTranforms.current.map(function(r) {\n var _animationsState_current_get;\n var key2 = Object.keys(r)[0];\n var val2 = ((_animationsState_current_get = animationsState.current.get(r[key2])) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || r[key2];\n return {\n [key2]: val2\n };\n })\n } : {};\n var animatedStyle = {\n ...Object.fromEntries(Object.entries(animateStyles.current).map(function(param2) {\n var [k, v] = param2;\n var _animationsState_current_get;\n return [\n k,\n ((_animationsState_current_get = animationsState.current.get(v)) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || v\n ];\n })),\n ...animatedTransformStyle\n };\n return {\n runners,\n completions,\n style: [\n nonAnimatedStyle,\n animatedStyle\n ]\n };\n function update(key2, animated, valIn) {\n var isColorStyleKey = colorStyleKey[key2];\n var [val2, type] = isColorStyleKey ? [\n 0,\n void 0\n ] : getValue(valIn);\n var animateToValue = val2;\n var value = animated || new import_react_native.Animated.Value(val2);\n var curInterpolation = animationsState.current.get(value);\n var interpolateArgs;\n if (type) {\n var _curInterpolation_current;\n interpolateArgs = getInterpolated((_curInterpolation_current = curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current) !== null && _curInterpolation_current !== void 0 ? _curInterpolation_current : value[\"_value\"], val2, type);\n animationsState.current.set(value, {\n interpolation: value.interpolate(interpolateArgs),\n current: val2\n });\n }\n if (isColorStyleKey) {\n animateToValue = (curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.animateToValue) ? 0 : 1;\n interpolateArgs = getColorInterpolated(\n curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current,\n // valIn is the next color\n valIn,\n animateToValue\n );\n animationsState.current.set(value, {\n current: valIn,\n interpolation: value.interpolate(interpolateArgs),\n animateToValue: (curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.animateToValue) ? 0 : 1\n });\n }\n if (value) {\n var animationConfig = getAnimationConfig(key2, animations, props.transition, animationState);\n var resolve;\n var promise = new Promise(function(res2) {\n resolve = res2;\n });\n completions.push(promise);\n runners.push(function() {\n value.stopAnimation();\n function getAnimation() {\n return import_react_native.Animated[animationConfig.type || \"spring\"](value, {\n toValue: animateToValue,\n useNativeDriver: nativeDriver,\n ...animationConfig\n });\n }\n var animation = animationConfig.delay ? import_react_native.Animated.sequence([\n import_react_native.Animated.delay(animationConfig.delay),\n getAnimation()\n ]) : getAnimation();\n animation.start(function(param2) {\n var { finished } = param2;\n if (finished || isExiting) {\n resolve();\n }\n });\n });\n }\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] === \"verbose\") {\n console.info(\" \\u{1F4A0} animate\", key2, `from (${value[\"_value\"]}) to`, valIn, `(${val2})`, \"type\", type, \"interpolate\", interpolateArgs);\n }\n }\n return value;\n }\n }, args);\n import_react.default.useEffect(function() {\n wasExitingRef.current = isExiting;\n });\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n res.runners.forEach(function(r) {\n return r();\n });\n var cycleId = exitCycleIdRef.current;\n if (res.completions.length === 0) {\n onDidAnimate === null || onDidAnimate === void 0 ? void 0 : onDidAnimate();\n if (isExiting && !exitCompletedRef.current) {\n exitCompletedRef.current = true;\n sendExitComplete === null || sendExitComplete === void 0 ? void 0 : sendExitComplete();\n }\n return;\n }\n var cancel = false;\n Promise.all(res.completions).then(function() {\n if (cancel) return;\n if (isExiting && cycleId !== exitCycleIdRef.current) return;\n if (isExiting && exitCompletedRef.current) return;\n onDidAnimate === null || onDidAnimate === void 0 ? void 0 : onDidAnimate();\n if (isExiting) {\n exitCompletedRef.current = true;\n sendExitComplete === null || sendExitComplete === void 0 ? void 0 : sendExitComplete();\n }\n });\n return function() {\n cancel = true;\n };\n }, args);\n useStyleEmitter === null || useStyleEmitter === void 0 ? void 0 : useStyleEmitter(function(nextStyle) {\n for (var key in nextStyle) {\n var rawVal = nextStyle[key];\n var val = resolveDynamicValue(rawVal, isDark);\n if (val === void 0) continue;\n if (key === \"transform\" && Array.isArray(val)) {\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = val.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var [index, transform] = _step.value;\n var _animatedTranforms_current_index;\n if (!transform) continue;\n var tkey = Object.keys(transform)[0];\n var currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];\n animatedTranforms.current[index] = {\n [tkey]: update(tkey, currentTransform, transform[tkey])\n };\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n } else if (animatedStyleKey[key] != null || costlyToAnimateStyleKey[key]) {\n animateStyles.current[key] = update(key, animateStyles.current[key], val);\n }\n }\n res.runners.forEach(function(r) {\n return r();\n });\n function update(key2, animated, valIn) {\n var isColor = colorStyleKey[key2];\n var [numVal, type] = isColor ? [\n 0,\n void 0\n ] : getValue(valIn);\n var animateToValue = numVal;\n var value = animated || new import_react_native.Animated.Value(numVal);\n var curInterpolation = animationsState.current.get(value);\n if (type) {\n var _curInterpolation_current;\n animationsState.current.set(value, {\n interpolation: value.interpolate(getInterpolated((_curInterpolation_current = curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current) !== null && _curInterpolation_current !== void 0 ? _curInterpolation_current : value[\"_value\"], numVal, type)),\n current: numVal\n });\n }\n if (isColor) {\n animateToValue = (curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.animateToValue) ? 0 : 1;\n animationsState.current.set(value, {\n current: valIn,\n interpolation: value.interpolate(getColorInterpolated(curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current, valIn, animateToValue)),\n animateToValue: (curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.animateToValue) ? 0 : 1\n });\n }\n var animationConfig = getAnimationConfig(key2, animations, props.transition, \"default\");\n res.runners.push(function() {\n value.stopAnimation();\n var anim = import_react_native.Animated[animationConfig.type || \"spring\"](value, {\n toValue: animateToValue,\n useNativeDriver: nativeDriver,\n ...animationConfig\n });\n (animationConfig.delay ? import_react_native.Animated.sequence([\n import_react_native.Animated.delay(animationConfig.delay),\n anim\n ]) : anim).start();\n });\n return value;\n }\n });\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] === \"verbose\") {\n console.info(`Animated`, {\n response: res,\n inputStyle: style,\n isExiting\n });\n }\n }\n return res;\n }\n };\n}\nfunction getColorInterpolated(currentColor, nextColor, animateToValue) {\n var inputRange = [\n 0,\n 1\n ];\n var outputRange = [\n currentColor ? currentColor : nextColor,\n nextColor\n ];\n if (animateToValue === 0) {\n outputRange.reverse();\n }\n return {\n inputRange,\n outputRange\n };\n}\nfunction getInterpolated(current, next) {\n var postfix = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : \"deg\";\n if (next === current) {\n current = next - 1e-9;\n }\n var inputRange = [\n current,\n next\n ];\n var outputRange = [\n `${current}${postfix}`,\n `${next}${postfix}`\n ];\n if (next < current) {\n inputRange.reverse();\n outputRange.reverse();\n }\n return {\n inputRange,\n outputRange\n };\n}\nfunction getAnimationConfig(key, animations, transition) {\n var animationState = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : \"default\";\n var normalized = (0, import_animation_helpers.normalizeTransition)(transition);\n var shortKey = transformShorthands[key];\n var _normalized_properties_key;\n var propAnimation = (_normalized_properties_key = normalized.properties[key]) !== null && _normalized_properties_key !== void 0 ? _normalized_properties_key : normalized.properties[shortKey];\n var animationType = null;\n var extraConf = {};\n if (typeof propAnimation === \"string\") {\n animationType = propAnimation;\n } else if (propAnimation && (typeof propAnimation === \"undefined\" ? \"undefined\" : _type_of(propAnimation)) === \"object\") {\n animationType = propAnimation.type || (0, import_animation_helpers.getEffectiveAnimation)(normalized, animationState);\n extraConf = propAnimation;\n } else {\n animationType = (0, import_animation_helpers.getEffectiveAnimation)(normalized, animationState);\n }\n if (normalized.delay && !extraConf.delay) {\n extraConf = {\n ...extraConf,\n delay: normalized.delay\n };\n }\n var found = animationType ? animations[animationType] : {};\n return {\n ...found,\n // Apply global spring config overrides (from transition={['bouncy', { stiffness: 1000 }]})\n ...normalized.config,\n // Property-specific config takes highest precedence\n ...extraConf\n };\n}\nvar transformShorthands = {\n x: \"translateX\",\n y: \"translateY\",\n translateX: \"x\",\n translateY: \"y\"\n};\nfunction getValue(input) {\n var isColor = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n if (typeof input !== \"string\") {\n return [\n input\n ];\n }\n var _input_match;\n var [_, number, after] = (_input_match = input.match(/([-0-9]+)(deg|%|px)/)) !== null && _input_match !== void 0 ? _input_match : [];\n return [\n +number,\n after\n ];\n}\n//# sourceMappingURL=createAnimations.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,QAAQ,GAAGC,MAAM,CAACC,MAAM;AAC5B,IAAIC,SAAS,GAAGF,MAAM,CAACG,cAAc;AACrC,IAAIC,gBAAgB,GAAGJ,MAAM,CAACK,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGN,MAAM,CAACO,mBAAmB;AAClD,IAAIC,YAAY,GAAGR,MAAM,CAACS,cAAc;AACxC,IAAIC,YAAY,GAAGV,MAAM,CAACW,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBb,SAAS,CAACY,MAAM,EAAEE,IAAI,EAAE;IAA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GAAG,CAACH,YAAY,GAAGD,KAAK,CAACK,KAAK,CAAC,qBAAqB,CAAC,MAAM,IAAI,IAAIJ,YAAY,KAAK,KAAK,CAAC,GAAGA,YAAY,GAAG,EAAE;EACpI,OAAO,CACL,CAACE,MAAM,EACPC,KAAK,CACN;AACH","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","createAnimations_exports","__export","AnimatedText","AnimatedView","createAnimations","useAnimatedNumber","useAnimatedNumberReaction","useAnimatedNumberStyle","useAnimatedNumbersStyle","module","exports","import_animation_helpers","require","import_constants","import_use_presence","import_web","import_react","__toESM","import_react_native","_type_of","obj","Symbol","constructor","isFabric","isWeb","global","__nativeFabricUIManager","resolveDynamicValue","isDark","dynamicValue","dynamic","dark","light","animatedStyleKey","transform","opacity","colorStyleKey","backgroundColor","color","borderColor","borderLeftColor","borderRightColor","borderTopColor","borderBottomColor","layoutStyleKey","height","width","minHeight","maxHeight","minWidth","maxWidth","hasAnimatedLayoutKey","style","animateOnly","key","includes","isAnimatableColor","costlyToAnimateStyleKey","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderWidth","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","Animated","View","Text","initial","state","default","useRef","current","composite","val","Value","strategy","type","getInstance","getValue","stop","_state_current_composite","setValue","next","config","arguments","length","onFinish","handleFinish","param","finished","spring","toValue","useNativeDriver","start","_state_current_composite1","composite1","timing","onValue","onChange","useEvent","useEffect","id","addListener","removeListener","getStyle","vals","map","v","animations","options","_options_useNativeDriver","nativeDriver","isReactNative","inputStyle","outputStyle","avoidReRenders","needsCustomComponent","usePresence","ResetPresence","useAnimations","props","onDidAnimate","componentState","presence","stateRef","useStyleEmitter","_themeState_name","isDisabled","unmounted","isExiting","sendExitComplete","themeState","useThemeWithState","scheme","name","startsWith","animateStyles","animatedTranforms","animationsState","WeakMap","pseudoActiveRef","exitCycleIdRef","exitCompletedRef","wasExitingRef","justStartedExiting","justStoppedExiting","hasTransitionOnly","isEntering","wasEnteringRef","justFinishedEntering","args","JSON","stringify","res","useMemo","runners","completions","animationState","nonAnimatedStyle","useNativeDriverForNode","seenAnimateKeys","Set","sawTransform","transformCount","rawVal","update","add","console","warn","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","iterator","_step","done","_animatedTranforms_current_index","index","tkey","Object","keys","currentTransform","err","return","k","has","slice","animatedTransformStyle","r","_animationsState_current_get","key2","val2","get","interpolation","animatedStyle","fromEntries","entries","param2","k2","animated","valIn","isColorStyleKey","animateToValue","curInterpolation","interpolateArgs","_curInterpolation_current","getInterpolated","set","interpolate","getColorInterpolated","animationConfig","getAnimationConfig","transition","resolve","promise","Promise","res2","push","stopAnimation","getAnimation","animation","delay","sequence","process","env","NODE_ENV","info","useIsomorphicLayoutEffect","forEach","cycleId","cancel","all","then","nextStyle","_effectiveTransition","pseudoActive","animatedShapeChanged","some","Array","isArray","key1","nextState","_stateRef_current_baseSetStateShallow","_stateRef_current","baseSetStateShallow","call","isColor","numVal","anim","response","currentColor","nextColor","inputRange","outputRange","reverse","postfix"],"sources":["../../src/createAnimations.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,wBAAA;AAAAC,QAAA,CAAAD,wBAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAA,YAAA;EAAAC,YAAA,EAAAA,CAAA,KAAAA,YAAA;EAAAC,gBAAA,EAAAA,CAAA,KAAAA,gBAAA;EAAAC,iBAAA,EAAAA,CAAA,KAAAA,iBAAA;EAAAC,yBAAA,EAAAA,CAAA,KAAAA,yBAAA;EAAAC,sBAAA,EAAAA,CAAA,KAAAA,sBAAA;EAAAC,uBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,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A,IAAA,EAAA3J,KAAA;UACF;UAES,OAAAlG,KAAA;QAMD;MACN,EAAM;MAGN,IAAMoO,OAAA,CAAAC,GAAA,CAAAC,QAAgB,KAAW,aAAW,EAAG;QAE3C,IAAAzG,KAAA,QAA+B;UAC/B+C,OAAA,CAAiB2D,IAAC;YAElBuB,QAAO,EAAAhG,GAAA;YAETxC,UAAgB,EAAAjE,KAAA;YAClBiF;UAGE;QAEA;MACF;MAEE,OAAAwB,GAAA;IACF;EAGA;AACE;AAAoD,SACtDwD,qBAAAyC,YAAA,EAAAC,SAAA,EAAAjD,cAAA;EAEA,IAAAkD,UAAc,IACd,GACE,EAAG;EAAA,IAEHC,WAAG,GAAW,CAAAH,YAAA,GAAAA,YAAA,GAAAC,SAAA,EAEdA,SAAG,CACL;EACF,IAAAjD,cAAA;IAGAmD,WAAM,CAAAC,OAAA;EACJ;EACA,OAAG;IACHF,UAAY;IACZC;EACF;AAEA;AACE,SAAI/C,eAAiBA,CAAAvI,OAAA,EAAUW,IAAA;EAC7B,IAAA6K,OAAQ,GAAA3K,SAAK,CAAAC,MAAA,QAAAD,SAAA,iBAAAA,SAAA;EACf,IAAAF,IAAA,KAAAX,OAAA;IACAA,OAAO,GAAGW,IAAA,GAAQ,IAAK;EACvB;EACF,IAAA0K,UAAA,I","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports","import_polyfill","require"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAO,CAAAK,aAAA;AAEP,IAAAG,eAAA,GAAAC,OAAc","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["requestAnimationFrame","globalThis","setImmediate","setTimeout"],"sources":["polyfill.
|
|
1
|
+
{"version":3,"names":["requestAnimationFrame","globalThis","setImmediate","setTimeout"],"sources":["../../src/polyfill.ts"],"sourcesContent":[null],"mappings":"AACA,YAAW;;AACT,WAAAA,qBAAW,KAAuB,WACzB;EACXC,UAAA,mCAAAC,YAAA,mBAAAC,UAAA,GAAAD,YAAA","ignoreList":[]}
|