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