@hanzogui/animations-reanimated 2.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.
@@ -0,0 +1,586 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { normalizeTransition, getEffectiveAnimation } from "@hanzogui/animation-helpers";
3
+ import { getSplitStyles, hooks, isWeb, Text, useComposedRefs, useEvent, useIsomorphicLayoutEffect, useThemeWithState, View } from "@hanzogui/core";
4
+ import { ResetPresence, usePresence } from "@hanzogui/use-presence";
5
+ import React, { forwardRef, useMemo, useRef } from "react";
6
+ import Animated_, { cancelAnimation, runOnJS, useAnimatedReaction, useAnimatedStyle, useDerivedValue, useSharedValue, withDelay, withSpring, withTiming } from "react-native-reanimated";
7
+ function _type_of(obj) {
8
+ "@swc/helpers - typeof";
9
+
10
+ return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
11
+ }
12
+ var getDefaultExport = function (module) {
13
+ var mod = module;
14
+ return (mod.__esModule || mod[Symbol.toStringTag] === "Module") && mod.default || mod;
15
+ },
16
+ Animated = getDefaultExport(Animated_),
17
+ resolveDynamicValue = function (value, isDark) {
18
+ if (value !== null && (typeof value > "u" ? "undefined" : _type_of(value)) === "object" && "dynamic" in value && _type_of(value.dynamic) === "object") {
19
+ var dynamic = value.dynamic;
20
+ return isDark ? dynamic.dark : dynamic.light;
21
+ }
22
+ return value;
23
+ },
24
+ applyAnimation = function (targetValue, config, callback) {
25
+ "worklet";
26
+
27
+ var delay = config.delay,
28
+ animatedValue;
29
+ return config.type === "timing" ? animatedValue = withTiming(targetValue, config, callback) : animatedValue = withSpring(targetValue, config, callback), delay && delay > 0 && (animatedValue = withDelay(delay, animatedValue)), animatedValue;
30
+ },
31
+ ANIMATABLE_PROPERTIES = {
32
+ // Transform
33
+ transform: !0,
34
+ // Opacity
35
+ opacity: !0,
36
+ // Dimensions
37
+ height: !0,
38
+ width: !0,
39
+ minWidth: !0,
40
+ minHeight: !0,
41
+ maxWidth: !0,
42
+ maxHeight: !0,
43
+ // Background
44
+ backgroundColor: !0,
45
+ // Border colors
46
+ borderColor: !0,
47
+ borderLeftColor: !0,
48
+ borderRightColor: !0,
49
+ borderTopColor: !0,
50
+ borderBottomColor: !0,
51
+ // Border radius
52
+ borderRadius: !0,
53
+ borderTopLeftRadius: !0,
54
+ borderTopRightRadius: !0,
55
+ borderBottomLeftRadius: !0,
56
+ borderBottomRightRadius: !0,
57
+ // Border width
58
+ borderWidth: !0,
59
+ borderLeftWidth: !0,
60
+ borderRightWidth: !0,
61
+ borderTopWidth: !0,
62
+ borderBottomWidth: !0,
63
+ // Text
64
+ color: !0,
65
+ fontSize: !0,
66
+ fontWeight: !0,
67
+ lineHeight: !0,
68
+ letterSpacing: !0,
69
+ // Position
70
+ left: !0,
71
+ right: !0,
72
+ top: !0,
73
+ bottom: !0,
74
+ // Margin
75
+ margin: !0,
76
+ marginTop: !0,
77
+ marginBottom: !0,
78
+ marginLeft: !0,
79
+ marginRight: !0,
80
+ marginHorizontal: !0,
81
+ marginVertical: !0,
82
+ // Padding
83
+ padding: !0,
84
+ paddingTop: !0,
85
+ paddingBottom: !0,
86
+ paddingLeft: !0,
87
+ paddingRight: !0,
88
+ paddingHorizontal: !0,
89
+ paddingVertical: !0,
90
+ // Flex/Gap
91
+ gap: !0,
92
+ rowGap: !0,
93
+ columnGap: !0,
94
+ flex: !0,
95
+ flexGrow: !0,
96
+ flexShrink: !0
97
+ },
98
+ canAnimateProperty = function (key, value, animateOnly) {
99
+ return !(!ANIMATABLE_PROPERTIES[key] || value === "auto" || typeof value == "string" && value.startsWith("calc") || animateOnly && !animateOnly.includes(key));
100
+ };
101
+ function createWebAnimatedComponent(defaultTag) {
102
+ var isText = defaultTag === "span",
103
+ Component = Animated.createAnimatedComponent(/* @__PURE__ */forwardRef(function (propsIn, ref) {
104
+ var _hooks_usePropsTransform,
105
+ {
106
+ forwardedRef,
107
+ render = defaultTag,
108
+ ...rest
109
+ } = propsIn,
110
+ hostRef = useRef(null),
111
+ composedRefs = useComposedRefs(forwardedRef, ref, hostRef),
112
+ stateRef = useRef({
113
+ get host() {
114
+ return hostRef.current;
115
+ }
116
+ }),
117
+ [, themeState] = useThemeWithState({}),
118
+ _themeState_theme,
119
+ _themeState_name,
120
+ result = getSplitStyles(rest, isText ? Text.staticConfig : View.staticConfig, (_themeState_theme = themeState?.theme) !== null && _themeState_theme !== void 0 ? _themeState_theme : {}, (_themeState_name = themeState?.name) !== null && _themeState_name !== void 0 ? _themeState_name : "", {
121
+ unmounted: !1
122
+ }, {
123
+ isAnimated: !1,
124
+ noClass: !0
125
+ }),
126
+ _result_viewProps,
127
+ viewProps = (_result_viewProps = result?.viewProps) !== null && _result_viewProps !== void 0 ? _result_viewProps : {},
128
+ Element = render,
129
+ transformedProps = (_hooks_usePropsTransform = hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(hooks, render, viewProps, stateRef, !1);
130
+ return /* @__PURE__ */_jsx(Element, {
131
+ ...transformedProps,
132
+ ref: composedRefs
133
+ });
134
+ }));
135
+ return Component.acceptRenderProp = !0, Component;
136
+ }
137
+ var AnimatedView = createWebAnimatedComponent("div"),
138
+ AnimatedText = createWebAnimatedComponent("span");
139
+ function buildTransitionConfig(transition, animations, animationState, styleKeys) {
140
+ var normalized = normalizeTransition(transition),
141
+ effectiveKey = getEffectiveAnimation(normalized, animationState),
142
+ _animations_effectiveKey,
143
+ base = effectiveKey ? (_animations_effectiveKey = animations[effectiveKey]) !== null && _animations_effectiveKey !== void 0 ? _animations_effectiveKey : {
144
+ type: "spring"
145
+ } : {
146
+ type: "spring"
147
+ };
148
+ normalized.delay && (base = {
149
+ ...base,
150
+ delay: normalized.delay
151
+ }), normalized.config && (base = {
152
+ ...base,
153
+ ...normalized.config
154
+ }, base.type !== "timing" && normalized.config.duration !== void 0 && normalized.config.damping === void 0 && normalized.config.stiffness === void 0 && normalized.config.mass === void 0 && (base = {
155
+ ...base,
156
+ type: "timing"
157
+ }));
158
+ var propertyConfigs = {},
159
+ _iteratorNormalCompletion = !0,
160
+ _didIteratorError = !1,
161
+ _iteratorError = void 0;
162
+ try {
163
+ for (var _iterator = styleKeys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
164
+ var key = _step.value,
165
+ propAnimation = normalized.properties[key];
166
+ if (typeof propAnimation == "string") {
167
+ var _animations_propAnimation;
168
+ propertyConfigs[key] = (_animations_propAnimation = animations[propAnimation]) !== null && _animations_propAnimation !== void 0 ? _animations_propAnimation : base;
169
+ } else if (propAnimation && (typeof propAnimation > "u" ? "undefined" : _type_of(propAnimation)) === "object") {
170
+ var configType = propAnimation.type,
171
+ _animations_configType,
172
+ baseForProp = configType && (_animations_configType = animations[configType]) !== null && _animations_configType !== void 0 ? _animations_configType : base;
173
+ propertyConfigs[key] = {
174
+ ...baseForProp,
175
+ ...propAnimation
176
+ };
177
+ } else propertyConfigs[key] = base;
178
+ }
179
+ } catch (err) {
180
+ _didIteratorError = !0, _iteratorError = err;
181
+ } finally {
182
+ try {
183
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
184
+ } finally {
185
+ if (_didIteratorError) throw _iteratorError;
186
+ }
187
+ }
188
+ return {
189
+ baseConfig: base,
190
+ propertyConfigs
191
+ };
192
+ }
193
+ function getStyleKeys(style) {
194
+ var keys = new Set(Object.keys(style));
195
+ if (style.transform && Array.isArray(style.transform)) {
196
+ var _iteratorNormalCompletion = !0,
197
+ _didIteratorError = !1,
198
+ _iteratorError = void 0;
199
+ try {
200
+ for (var _iterator = style.transform[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
201
+ var t = _step.value;
202
+ t && (typeof t > "u" ? "undefined" : _type_of(t)) === "object" && keys.add(Object.keys(t)[0]);
203
+ }
204
+ } catch (err) {
205
+ _didIteratorError = !0, _iteratorError = err;
206
+ } finally {
207
+ try {
208
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
209
+ } finally {
210
+ if (_didIteratorError) throw _iteratorError;
211
+ }
212
+ }
213
+ }
214
+ return keys;
215
+ }
216
+ function createAnimations(animationsConfig) {
217
+ var animations = {};
218
+ for (var key in animationsConfig) animations[key] = {
219
+ type: "spring",
220
+ ...animationsConfig[key]
221
+ };
222
+ return {
223
+ needsCustomComponent: !0,
224
+ View: isWeb ? AnimatedView : Animated.View,
225
+ Text: isWeb ? AnimatedText : Animated.Text,
226
+ isReactNative: !0,
227
+ inputStyle: "value",
228
+ outputStyle: "inline",
229
+ avoidReRenders: !0,
230
+ animations,
231
+ usePresence,
232
+ ResetPresence,
233
+ // =========================================================================
234
+ // useAnimatedNumber - For imperative animated values
235
+ // =========================================================================
236
+ useAnimatedNumber(initial) {
237
+ var sharedValue = useSharedValue(initial);
238
+ return useMemo(function () {
239
+ return {
240
+ getInstance() {
241
+ "worklet";
242
+
243
+ return sharedValue;
244
+ },
245
+ getValue() {
246
+ "worklet";
247
+
248
+ return sharedValue.value;
249
+ },
250
+ setValue(next) {
251
+ "worklet";
252
+
253
+ var config = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
254
+ type: "spring"
255
+ },
256
+ onFinish = arguments.length > 2 ? arguments[2] : void 0,
257
+ handleFinish = onFinish ? function () {
258
+ "worklet";
259
+
260
+ runOnJS(onFinish)();
261
+ } : void 0;
262
+ config.type === "direct" ? (sharedValue.value = next, onFinish?.()) : config.type === "spring" ? sharedValue.value = withSpring(next, config, handleFinish) : sharedValue.value = withTiming(next, config, handleFinish);
263
+ },
264
+ stop() {
265
+ "worklet";
266
+
267
+ cancelAnimation(sharedValue);
268
+ }
269
+ };
270
+ }, [sharedValue]);
271
+ },
272
+ // =========================================================================
273
+ // useAnimatedNumberReaction - React to animated value changes
274
+ // =========================================================================
275
+ useAnimatedNumberReaction(param, onValue) {
276
+ var {
277
+ value
278
+ } = param,
279
+ instance = value.getInstance();
280
+ return useAnimatedReaction(function () {
281
+ return instance.value;
282
+ }, function (next, prev) {
283
+ prev !== next && runOnJS(onValue)(next);
284
+ }, [onValue, instance]);
285
+ },
286
+ // =========================================================================
287
+ // useAnimatedNumberStyle - Create animated styles from values
288
+ // =========================================================================
289
+ useAnimatedNumberStyle(val, getStyle) {
290
+ var instance = val.getInstance(),
291
+ derivedValue = useDerivedValue(function () {
292
+ return instance.value;
293
+ }, [instance, getStyle]);
294
+ return useAnimatedStyle(function () {
295
+ return getStyle(derivedValue.value);
296
+ }, [val, getStyle, derivedValue, instance]);
297
+ },
298
+ // =========================================================================
299
+ // useAnimations - Main animation hook for components
300
+ // =========================================================================
301
+ useAnimations(animationProps) {
302
+ var {
303
+ props,
304
+ presence,
305
+ style,
306
+ componentState,
307
+ useStyleEmitter,
308
+ themeName,
309
+ stateRef,
310
+ styleState
311
+ } = animationProps,
312
+ isHydrating = componentState.unmounted === !0,
313
+ isMounting = componentState.unmounted === "should-enter",
314
+ isEntering = !!componentState.unmounted,
315
+ isExiting = presence?.[0] === !1,
316
+ wasEnteringRef = useRef(isEntering),
317
+ justFinishedEntering = wasEnteringRef.current && !isEntering;
318
+ React.useEffect(function () {
319
+ wasEnteringRef.current = isEntering;
320
+ });
321
+ var _styleState_effectiveTransition,
322
+ effectiveTransition = (_styleState_effectiveTransition = styleState?.effectiveTransition) !== null && _styleState_effectiveTransition !== void 0 ? _styleState_effectiveTransition : props.transition,
323
+ normalized = normalizeTransition(effectiveTransition),
324
+ animationState = isExiting ? "exit" : isMounting || justFinishedEntering ? "enter" : "default",
325
+ animationKey = getEffectiveAnimation(normalized, animationState),
326
+ disableAnimation = isHydrating || !animationKey,
327
+ isDark = themeName?.startsWith("dark") || !1,
328
+ sendExitComplete = presence?.[1],
329
+ exitCycleIdRef = useRef(0),
330
+ pendingExitKeysRef = useRef(/* @__PURE__ */new Set()),
331
+ exitCompletedRef = useRef(!1),
332
+ wasExitingRef = useRef(!1),
333
+ justStartedExiting = isExiting && !wasExitingRef.current,
334
+ justStoppedExiting = !isExiting && wasExitingRef.current,
335
+ markExitKeyDone = useEvent(function (key3, cycleId, finished) {
336
+ cycleId === exitCycleIdRef.current && (exitCompletedRef.current || (pendingExitKeysRef.current.delete(key3), pendingExitKeysRef.current.size === 0 && (exitCompletedRef.current = !0, sendExitComplete?.())));
337
+ }),
338
+ isExitingRef = useSharedValue(isExiting),
339
+ exitCycleIdShared = useSharedValue(exitCycleIdRef.current);
340
+ justStartedExiting && (exitCycleIdRef.current++, exitCompletedRef.current = !1, pendingExitKeysRef.current.clear()), justStoppedExiting && (exitCycleIdRef.current++, pendingExitKeysRef.current.clear()), useIsomorphicLayoutEffect(function () {
341
+ isExitingRef.value = isExiting, exitCycleIdShared.value = exitCycleIdRef.current;
342
+ }, [isExiting, exitCycleIdRef.current]), React.useEffect(function () {
343
+ wasExitingRef.current = isExiting;
344
+ });
345
+ var animatedTargetsRef = useSharedValue(null),
346
+ staticTargetsRef = useSharedValue(null),
347
+ transformTargetsRef = useSharedValue(null),
348
+ {
349
+ animatedStyles,
350
+ staticStyles
351
+ } = useMemo(function () {
352
+ var animated = {},
353
+ staticStyles2 = {},
354
+ animateOnly2 = props.animateOnly;
355
+ for (var key3 in style) {
356
+ var rawValue = style[key3],
357
+ value = resolveDynamicValue(rawValue, isDark);
358
+ if (value !== void 0) {
359
+ if (disableAnimation) {
360
+ staticStyles2[key3] = value;
361
+ continue;
362
+ }
363
+ canAnimateProperty(key3, value, animateOnly2) ? animated[key3] = value : staticStyles2[key3] = value;
364
+ }
365
+ }
366
+ if (isMounting) for (var key1 in animated) staticStyles2[key1] = animated[key1];
367
+ return {
368
+ animatedStyles: animated,
369
+ staticStyles: staticStyles2
370
+ };
371
+ }, [disableAnimation, style, isDark, isMounting, props.animateOnly]),
372
+ {
373
+ baseConfig,
374
+ propertyConfigs
375
+ } = useMemo(function () {
376
+ return isHydrating ? {
377
+ baseConfig: {
378
+ type: "timing",
379
+ duration: 0
380
+ },
381
+ propertyConfigs: {}
382
+ } : buildTransitionConfig(props.transition, animations, animationState, getStyleKeys(animatedStyles));
383
+ }, [isHydrating, props.transition, animatedStyles, animationState]),
384
+ configRef = useSharedValue({
385
+ baseConfig,
386
+ propertyConfigs,
387
+ disableAnimation,
388
+ isHydrating
389
+ });
390
+ useIsomorphicLayoutEffect(function () {
391
+ configRef.set({
392
+ baseConfig,
393
+ propertyConfigs,
394
+ disableAnimation,
395
+ isHydrating
396
+ });
397
+ }, [baseConfig, propertyConfigs, disableAnimation, isHydrating]), useStyleEmitter?.(function (nextStyle, effectiveTransition2) {
398
+ var animateOnly2 = props.animateOnly,
399
+ animated = {},
400
+ statics = {},
401
+ transforms2 = [],
402
+ transitionToUse = effectiveTransition2 ?? props.transition,
403
+ {
404
+ baseConfig: newBase,
405
+ propertyConfigs: newPropertyConfigs
406
+ } = buildTransitionConfig(transitionToUse, animations, animationState, getStyleKeys(nextStyle));
407
+ configRef.set({
408
+ baseConfig: newBase,
409
+ propertyConfigs: newPropertyConfigs,
410
+ disableAnimation: configRef.get().disableAnimation,
411
+ isHydrating: configRef.get().isHydrating
412
+ });
413
+ for (var key3 in nextStyle) {
414
+ var rawValue = nextStyle[key3],
415
+ value = resolveDynamicValue(rawValue, isDark);
416
+ if (value != null) {
417
+ if (configRef.get().disableAnimation) {
418
+ statics[key3] = value;
419
+ continue;
420
+ }
421
+ if (key3 === "transform" && Array.isArray(value)) {
422
+ var _iteratorNormalCompletion2 = !0,
423
+ _didIteratorError2 = !1,
424
+ _iteratorError2 = void 0;
425
+ try {
426
+ for (var _iterator2 = value[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
427
+ var t2 = _step2.value;
428
+ if (t2 && (typeof t2 > "u" ? "undefined" : _type_of(t2)) === "object") {
429
+ var tKey2 = Object.keys(t2)[0],
430
+ tVal = t2[tKey2];
431
+ (typeof tVal == "number" || typeof tVal == "string") && transforms2.push(t2);
432
+ }
433
+ }
434
+ } catch (err) {
435
+ _didIteratorError2 = !0, _iteratorError2 = err;
436
+ } finally {
437
+ try {
438
+ !_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
439
+ } finally {
440
+ if (_didIteratorError2) throw _iteratorError2;
441
+ }
442
+ }
443
+ continue;
444
+ }
445
+ canAnimateProperty(key3, value, animateOnly2) ? animated[key3] = value : statics[key3] = value;
446
+ }
447
+ }
448
+ animatedTargetsRef.set(animated), staticTargetsRef.set(statics), transformTargetsRef.set(transforms2), process.env.NODE_ENV === "development" && props.debug && props.debug !== "profile" && console.info("[animations-reanimated] useStyleEmitter update", {
449
+ animated,
450
+ statics,
451
+ transforms: transforms2
452
+ });
453
+ });
454
+ var exitKeysRegistered = useRef(!1);
455
+ if (justStartedExiting && sendExitComplete) {
456
+ var exitKeys = [],
457
+ animateOnly = props.animateOnly;
458
+ for (var key2 in animatedStyles) key2 !== "transform" && canAnimateProperty(key2, animatedStyles[key2], animateOnly) && exitKeys.push(key2);
459
+ var transforms = animatedStyles.transform;
460
+ if (transforms && Array.isArray(transforms)) {
461
+ var _iteratorNormalCompletion = !0,
462
+ _didIteratorError = !1,
463
+ _iteratorError = void 0;
464
+ try {
465
+ for (var _iterator = transforms[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
466
+ var t = _step.value;
467
+ if (t) {
468
+ var tKey = Object.keys(t)[0];
469
+ if (tKey) {
470
+ if (animateOnly && !animateOnly.includes(tKey)) continue;
471
+ exitKeys.push(`transform:${tKey}`);
472
+ }
473
+ }
474
+ }
475
+ } catch (err) {
476
+ _didIteratorError = !0, _iteratorError = err;
477
+ } finally {
478
+ try {
479
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
480
+ } finally {
481
+ if (_didIteratorError) throw _iteratorError;
482
+ }
483
+ }
484
+ }
485
+ pendingExitKeysRef.current = new Set(exitKeys), exitKeysRegistered.current = exitKeys.length > 0;
486
+ }
487
+ React.useEffect(function () {
488
+ !justStartedExiting || !sendExitComplete || !exitKeysRegistered.current && pendingExitKeysRef.current.size === 0 && (exitCompletedRef.current || (exitCompletedRef.current = !0, sendExitComplete()));
489
+ }, [justStartedExiting, sendExitComplete]);
490
+ var animatedStyle = useAnimatedStyle(function () {
491
+ "worklet";
492
+
493
+ var _loop = function (key12) {
494
+ if (key12 === "transform") return "continue";
495
+ var targetValue = animatedValues[key12],
496
+ _config_propertyConfigs_key,
497
+ propConfig = (_config_propertyConfigs_key = config.propertyConfigs[key12]) !== null && _config_propertyConfigs_key !== void 0 ? _config_propertyConfigs_key : config.baseConfig,
498
+ callback = void 0;
499
+ if (currentlyExiting) {
500
+ var capturedKey = key12,
501
+ capturedCycleId = currentCycleId;
502
+ callback = function (finished) {
503
+ "worklet";
504
+
505
+ runOnJS(markExitKeyDone)(capturedKey, capturedCycleId, finished ?? !1);
506
+ };
507
+ }
508
+ result[key12] = applyAnimation(targetValue, propConfig, callback);
509
+ };
510
+ if (disableAnimation || isHydrating) return {};
511
+ var result = {},
512
+ config = configRef.get(),
513
+ emitterAnimated = animatedTargetsRef.value,
514
+ emitterStatic = staticTargetsRef.value,
515
+ emitterTransforms = transformTargetsRef.value,
516
+ hasEmitterUpdates = emitterAnimated !== null,
517
+ animatedValues = hasEmitterUpdates ? emitterAnimated : animatedStyles,
518
+ staticValues = hasEmitterUpdates ? emitterStatic : {},
519
+ currentlyExiting = isExitingRef.value,
520
+ currentCycleId = exitCycleIdShared.value;
521
+ for (var key3 in staticValues) result[key3] = staticValues[key3];
522
+ for (var key1 in animatedValues) _loop(key1);
523
+ var transforms2 = hasEmitterUpdates ? emitterTransforms : animatedStyles.transform;
524
+ if (transforms2 && Array.isArray(transforms2)) {
525
+ var validTransforms = [],
526
+ _iteratorNormalCompletion2 = !0,
527
+ _didIteratorError2 = !1,
528
+ _iteratorError2 = void 0;
529
+ try {
530
+ for (var _loop1 = function () {
531
+ var t2 = _step2.value;
532
+ if (!t2) return "continue";
533
+ var keys = Object.keys(t2);
534
+ if (keys.length === 0) return "continue";
535
+ var value = t2[keys[0]];
536
+ if (typeof value == "number" || typeof value == "string") {
537
+ var transformKey = Object.keys(t2)[0],
538
+ targetValue = t2[transformKey],
539
+ _config_propertyConfigs_transformKey,
540
+ propConfig = (_config_propertyConfigs_transformKey = config.propertyConfigs[transformKey]) !== null && _config_propertyConfigs_transformKey !== void 0 ? _config_propertyConfigs_transformKey : config.baseConfig,
541
+ callback = void 0;
542
+ if (currentlyExiting) {
543
+ var capturedKey = `transform:${transformKey}`,
544
+ capturedCycleId = currentCycleId;
545
+ callback = function (finished) {
546
+ "worklet";
547
+
548
+ runOnJS(markExitKeyDone)(capturedKey, capturedCycleId, finished ?? !1);
549
+ };
550
+ }
551
+ validTransforms.push({
552
+ [transformKey]: applyAnimation(targetValue, propConfig, callback)
553
+ });
554
+ }
555
+ }, _iterator2 = transforms2[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) _loop1();
556
+ } catch (err) {
557
+ _didIteratorError2 = !0, _iteratorError2 = err;
558
+ } finally {
559
+ try {
560
+ !_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
561
+ } finally {
562
+ if (_didIteratorError2) throw _iteratorError2;
563
+ }
564
+ }
565
+ validTransforms.length > 0 && (result.transform = validTransforms);
566
+ }
567
+ return result;
568
+ }, [animatedStyles, baseConfig, propertyConfigs, disableAnimation, isHydrating,
569
+ // Pass SharedValues so the mapper watches them on web (see useAnimatedStyle.ts line 470-472)
570
+ animatedTargetsRef, staticTargetsRef, transformTargetsRef, isExitingRef, exitCycleIdShared, markExitKeyDone]);
571
+ return process.env.NODE_ENV === "development" && props.debug && props.debug !== "profile" && console.info("[animations-reanimated] useAnimations", {
572
+ animationKey,
573
+ componentState,
574
+ isExiting,
575
+ animatedStyles,
576
+ staticStyles,
577
+ baseConfig,
578
+ propertyConfigs
579
+ }), {
580
+ style: [staticStyles, animatedStyle]
581
+ };
582
+ }
583
+ };
584
+ }
585
+ export { createAnimations };
586
+ //# sourceMappingURL=createAnimations.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["jsx","_jsx","normalizeTransition","getEffectiveAnimation","getSplitStyles","hooks","isWeb","Text","useComposedRefs","useEvent","useIsomorphicLayoutEffect","useThemeWithState","View","ResetPresence","usePresence","React","forwardRef","useMemo","useRef","Animated_","cancelAnimation","runOnJS","useAnimatedReaction","useAnimatedStyle","useDerivedValue","useSharedValue","withDelay","withSpring","withTiming","_type_of","obj","Symbol","constructor","getDefaultExport","module","mod","__esModule","toStringTag","default","Animated","resolveDynamicValue","value","isDark","dynamic","dark","light","applyAnimation","targetValue","config","callback","delay","animatedValue","type","ANIMATABLE_PROPERTIES","transform","opacity","height","width","minWidth","minHeight","maxWidth","maxHeight","backgroundColor","borderColor","borderLeftColor","borderRightColor","borderTopColor","borderBottomColor","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderWidth","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","color","fontSize","fontWeight","lineHeight","letterSpacing","left","right","top","bottom","margin","marginTop","marginBottom","marginLeft","marginRight","marginHorizontal","marginVertical","padding","paddingTop","paddingBottom","paddingLeft","paddingRight","paddingHorizontal","paddingVertical","gap","rowGap","columnGap","flex","flexGrow","flexShrink","canAnimateProperty","key","animateOnly","startsWith","includes","createWebAnimatedComponent","defaultTag","isText","Component","createAnimatedComponent","propsIn","ref","_hooks_usePropsTransform","forwardedRef","render","rest","hostRef","composedRefs","stateRef","host","current","themeState","_themeState_theme","_themeState_name","result","staticConfig","theme","name","unmounted","isAnimated","noClass","_result_viewProps","viewProps","Element","transformedProps","usePropsTransform","call","acceptRenderProp","AnimatedView","AnimatedText","buildTransitionConfig","transition","animations","animationState","styleKeys","normalized","effectiveKey","_animations_effectiveKey","base","duration","damping","stiffness","mass","propertyConfigs","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","iterator","_step","next","done","propAnimation","properties","_animations_propAnimation","configType","_animations_configType","baseForProp","err","return","baseConfig","getStyleKeys","style","keys","Set","Object","Array","isArray","t","add","createAnimations","animationsConfig","needsCustomComponent","isReactNative","inputStyle","outputStyle","avoidReRenders","useAnimatedNumber","initial","sharedValue","getInstance","getValue","setValue","arguments","length","onFinish","handleFinish","stop","useAnimatedNumberReaction","param","onValue","instance","prev","useAnimatedNumberStyle","val","getStyle","derivedValue","useAnimations","animationProps","props","presence","componentState","useStyleEmitter","themeName","styleState","isHydrating","isMounting","isEntering","isExiting","wasEnteringRef","justFinishedEntering","useEffect","_styleState_effectiveTransition","effectiveTransition","animationKey","disableAnimation","sendExitComplete","exitCycleIdRef","pendingExitKeysRef","exitCompletedRef","wasExitingRef","justStartedExiting","justStoppedExiting","markExitKeyDone","key3","cycleId","finished","delete","size","isExitingRef","exitCycleIdShared","clear","animatedTargetsRef","staticTargetsRef","transformTargetsRef","animatedStyles","staticStyles","animated","staticStyles2","animateOnly2","rawValue","key1","configRef","set","nextStyle","effectiveTransition2","statics","transforms2","transitionToUse","newBase","newPropertyConfigs","get","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_iterator2","_step2","t2","tKey2","tVal","push","process","env","NODE_ENV","debug","console","info","transforms","exitKeysRegistered","exitKeys","key2","tKey","animatedStyle","_loop","key12","animatedValues","_config_propertyConfigs_key","propConfig","currentlyExiting","capturedKey","capturedCycleId","currentCycleId","emitterAnimated","emitterStatic","emitterTransforms","hasEmitterUpdates","staticValues","validTransforms"],"sources":["../../src/createAnimations.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,GAAA,IAAAC,IAAA,2BAAqB;AAC9B,SAAAC,mBAAA,EAAAC,qBAAA;AAAA,SACEC,cAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,IAAA,EAAAC,eAAA,EAAAC,QAAA,EAAAC,yBAAA,EAAAC,iBAAA,EAAAC,IAAA;AAAA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names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from "./createAnimations.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from "./createAnimations.native.js";
2
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}