@hanzogui/animations-react-native 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,435 @@
1
+ import { getEffectiveAnimation, normalizeTransition } from "@hanzogui/animation-helpers";
2
+ import { isWeb, useIsomorphicLayoutEffect } from "@hanzogui/constants";
3
+ import { ResetPresence, usePresence } from "@hanzogui/use-presence";
4
+ import { useEvent, useThemeWithState } from "@hanzogui/web";
5
+ import React from "react";
6
+ import { Animated } from "react-native";
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 isFabric = !isWeb && typeof global < "u" && !!global.__nativeFabricUIManager,
13
+ resolveDynamicValue = function (value, isDark) {
14
+ if (value && (typeof value > "u" ? "undefined" : _type_of(value)) === "object" && "dynamic" in value) {
15
+ var dynamicValue = isDark ? value.dynamic.dark : value.dynamic.light;
16
+ return dynamicValue;
17
+ }
18
+ return value;
19
+ },
20
+ animatedStyleKey = {
21
+ transform: !0,
22
+ opacity: !0
23
+ },
24
+ colorStyleKey = {
25
+ backgroundColor: !0,
26
+ color: !0,
27
+ borderColor: !0,
28
+ borderLeftColor: !0,
29
+ borderRightColor: !0,
30
+ borderTopColor: !0,
31
+ borderBottomColor: !0
32
+ },
33
+ costlyToAnimateStyleKey = {
34
+ borderRadius: !0,
35
+ borderTopLeftRadius: !0,
36
+ borderTopRightRadius: !0,
37
+ borderBottomLeftRadius: !0,
38
+ borderBottomRightRadius: !0,
39
+ borderWidth: !0,
40
+ borderLeftWidth: !0,
41
+ borderRightWidth: !0,
42
+ borderTopWidth: !0,
43
+ borderBottomWidth: !0,
44
+ ...colorStyleKey
45
+ },
46
+ AnimatedView = Animated.View,
47
+ AnimatedText = Animated.Text;
48
+ function useAnimatedNumber(initial) {
49
+ var state = React.useRef(null);
50
+ return state.current || (state.current = {
51
+ composite: null,
52
+ val: new Animated.Value(initial),
53
+ strategy: {
54
+ type: "spring"
55
+ }
56
+ }), {
57
+ getInstance() {
58
+ return state.current.val;
59
+ },
60
+ getValue() {
61
+ return state.current.val._value;
62
+ },
63
+ stop() {
64
+ var _state_current_composite;
65
+ (_state_current_composite = state.current.composite) === null || _state_current_composite === void 0 || _state_current_composite.stop(), state.current.composite = null;
66
+ },
67
+ setValue(next) {
68
+ var {
69
+ type,
70
+ ...config
71
+ } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
72
+ type: "spring"
73
+ },
74
+ onFinish = arguments.length > 2 ? arguments[2] : void 0,
75
+ val = state.current.val,
76
+ handleFinish = onFinish ? function (param) {
77
+ var {
78
+ finished
79
+ } = param;
80
+ return finished ? onFinish() : null;
81
+ } : void 0;
82
+ if (type === "direct") val.setValue(next);else if (type === "spring") {
83
+ var _state_current_composite;
84
+ (_state_current_composite = state.current.composite) === null || _state_current_composite === void 0 || _state_current_composite.stop();
85
+ var composite = Animated.spring(val, {
86
+ ...config,
87
+ toValue: next,
88
+ useNativeDriver: isFabric
89
+ });
90
+ composite.start(handleFinish), state.current.composite = composite;
91
+ } else {
92
+ var _state_current_composite1;
93
+ (_state_current_composite1 = state.current.composite) === null || _state_current_composite1 === void 0 || _state_current_composite1.stop();
94
+ var composite1 = Animated.timing(val, {
95
+ ...config,
96
+ toValue: next,
97
+ useNativeDriver: isFabric
98
+ });
99
+ composite1.start(handleFinish), state.current.composite = composite1;
100
+ }
101
+ }
102
+ };
103
+ }
104
+ var useAnimatedNumberReaction = function (param, onValue) {
105
+ var {
106
+ value
107
+ } = param,
108
+ onChange = useEvent(function (current) {
109
+ onValue(current.value);
110
+ });
111
+ React.useEffect(function () {
112
+ var id = value.getInstance().addListener(onChange);
113
+ return function () {
114
+ value.getInstance().removeListener(id);
115
+ };
116
+ }, [value, onChange]);
117
+ },
118
+ useAnimatedNumberStyle = function (value, getStyle) {
119
+ return getStyle(value.getInstance());
120
+ };
121
+ function createAnimations(animations, options) {
122
+ var _options_useNativeDriver,
123
+ nativeDriver = (_options_useNativeDriver = options?.useNativeDriver) !== null && _options_useNativeDriver !== void 0 ? _options_useNativeDriver : isFabric;
124
+ return {
125
+ isReactNative: !0,
126
+ inputStyle: "value",
127
+ outputStyle: "inline",
128
+ avoidReRenders: !0,
129
+ animations,
130
+ needsCustomComponent: !0,
131
+ View: AnimatedView,
132
+ Text: AnimatedText,
133
+ useAnimatedNumber,
134
+ useAnimatedNumberReaction,
135
+ useAnimatedNumberStyle,
136
+ usePresence,
137
+ ResetPresence,
138
+ useAnimations: function (param) {
139
+ var {
140
+ props,
141
+ onDidAnimate,
142
+ style,
143
+ componentState,
144
+ presence,
145
+ useStyleEmitter
146
+ } = param,
147
+ _themeState_name,
148
+ isDisabled = isWeb && componentState.unmounted === !0,
149
+ isExiting = presence?.[0] === !1,
150
+ sendExitComplete = presence?.[1],
151
+ [, themeState] = useThemeWithState({}),
152
+ isDark = themeState?.scheme === "dark" || (themeState == null || (_themeState_name = themeState.name) === null || _themeState_name === void 0 ? void 0 : _themeState_name.startsWith("dark")),
153
+ animateStyles = React.useRef({}),
154
+ animatedTranforms = React.useRef([]),
155
+ animationsState = React.useRef(/* @__PURE__ */new WeakMap()),
156
+ exitCycleIdRef = React.useRef(0),
157
+ exitCompletedRef = React.useRef(!1),
158
+ wasExitingRef = React.useRef(!1),
159
+ justStartedExiting = isExiting && !wasExitingRef.current,
160
+ justStoppedExiting = !isExiting && wasExitingRef.current;
161
+ justStartedExiting && (exitCycleIdRef.current++, exitCompletedRef.current = !1), justStoppedExiting && exitCycleIdRef.current++;
162
+ var animateOnly = props.animateOnly || [],
163
+ hasTransitionOnly = !!props.animateOnly,
164
+ isEntering = !!componentState.unmounted,
165
+ wasEnteringRef = React.useRef(isEntering),
166
+ justFinishedEntering = wasEnteringRef.current && !isEntering;
167
+ React.useEffect(function () {
168
+ wasEnteringRef.current = isEntering;
169
+ });
170
+ var args = [JSON.stringify(style), componentState, isExiting, !!onDidAnimate, isDark, justFinishedEntering, hasTransitionOnly],
171
+ res = React.useMemo(function () {
172
+ var runners = [],
173
+ completions = [],
174
+ animationState = isExiting ? "exit" : isEntering || justFinishedEntering ? "enter" : "default",
175
+ nonAnimatedStyle = {};
176
+ for (var key in style) {
177
+ var rawVal = style[key],
178
+ val = resolveDynamicValue(rawVal, isDark);
179
+ if (val !== void 0 && !isDisabled) {
180
+ if (animatedStyleKey[key] == null && !costlyToAnimateStyleKey[key]) {
181
+ nonAnimatedStyle[key] = val;
182
+ continue;
183
+ }
184
+ if (hasTransitionOnly && !animateOnly.includes(key)) {
185
+ nonAnimatedStyle[key] = val;
186
+ continue;
187
+ }
188
+ if (key !== "transform") {
189
+ animateStyles.current[key] = update(key, animateStyles.current[key], val);
190
+ continue;
191
+ }
192
+ if (val) {
193
+ if (typeof val == "string") {
194
+ console.warn("Warning: Hanzo GUI can't animate string transforms yet!");
195
+ continue;
196
+ }
197
+ var _iteratorNormalCompletion = !0,
198
+ _didIteratorError = !1,
199
+ _iteratorError = void 0;
200
+ try {
201
+ for (var _iterator = val.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
202
+ var [index, transform] = _step.value,
203
+ _animatedTranforms_current_index;
204
+ if (transform) {
205
+ var tkey = Object.keys(transform)[0],
206
+ currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];
207
+ animatedTranforms.current[index] = {
208
+ [tkey]: update(tkey, currentTransform, transform[tkey])
209
+ }, animatedTranforms.current = [...animatedTranforms.current];
210
+ }
211
+ }
212
+ } catch (err) {
213
+ _didIteratorError = !0, _iteratorError = err;
214
+ } finally {
215
+ try {
216
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
217
+ } finally {
218
+ if (_didIteratorError) throw _iteratorError;
219
+ }
220
+ }
221
+ }
222
+ }
223
+ }
224
+ var animatedTransformStyle = animatedTranforms.current.length > 0 ? {
225
+ transform: animatedTranforms.current.map(function (r) {
226
+ var _animationsState_current_get,
227
+ key2 = Object.keys(r)[0],
228
+ val2 = ((_animationsState_current_get = animationsState.current.get(r[key2])) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || r[key2];
229
+ return {
230
+ [key2]: val2
231
+ };
232
+ })
233
+ } : {},
234
+ animatedStyle = {
235
+ ...Object.fromEntries(Object.entries(animateStyles.current).map(function (param2) {
236
+ var [k, v] = param2,
237
+ _animationsState_current_get;
238
+ return [k, ((_animationsState_current_get = animationsState.current.get(v)) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || v];
239
+ })),
240
+ ...animatedTransformStyle
241
+ };
242
+ return {
243
+ runners,
244
+ completions,
245
+ style: [nonAnimatedStyle, animatedStyle]
246
+ };
247
+ function update(key2, animated, valIn) {
248
+ var isColorStyleKey = colorStyleKey[key2],
249
+ [val2, type] = isColorStyleKey ? [0, void 0] : getValue(valIn),
250
+ animateToValue = val2,
251
+ value = animated || new Animated.Value(val2),
252
+ curInterpolation = animationsState.current.get(value),
253
+ interpolateArgs;
254
+ if (type) {
255
+ var _curInterpolation_current;
256
+ interpolateArgs = getInterpolated((_curInterpolation_current = curInterpolation?.current) !== null && _curInterpolation_current !== void 0 ? _curInterpolation_current : value._value, val2, type), animationsState.current.set(value, {
257
+ interpolation: value.interpolate(interpolateArgs),
258
+ current: val2
259
+ });
260
+ }
261
+ if (isColorStyleKey && (animateToValue = curInterpolation?.animateToValue ? 0 : 1, interpolateArgs = getColorInterpolated(curInterpolation?.current,
262
+ // valIn is the next color
263
+ valIn, animateToValue), animationsState.current.set(value, {
264
+ current: valIn,
265
+ interpolation: value.interpolate(interpolateArgs),
266
+ animateToValue: curInterpolation?.animateToValue ? 0 : 1
267
+ })), value) {
268
+ var animationConfig = getAnimationConfig(key2, animations, props.transition, animationState),
269
+ resolve,
270
+ promise = new Promise(function (res2) {
271
+ resolve = res2;
272
+ });
273
+ completions.push(promise), runners.push(function () {
274
+ value.stopAnimation();
275
+ function getAnimation() {
276
+ return Animated[animationConfig.type || "spring"](value, {
277
+ toValue: animateToValue,
278
+ useNativeDriver: nativeDriver,
279
+ ...animationConfig
280
+ });
281
+ }
282
+ var animation = animationConfig.delay ? Animated.sequence([Animated.delay(animationConfig.delay), getAnimation()]) : getAnimation();
283
+ animation.start(function (param2) {
284
+ var {
285
+ finished
286
+ } = param2;
287
+ (finished || isExiting) && resolve();
288
+ });
289
+ });
290
+ }
291
+ return process.env.NODE_ENV === "development" && props.debug === "verbose" && console.info(" \u{1F4A0} animate", key2, `from (${value._value}) to`, valIn, `(${val2})`, "type", type, "interpolate", interpolateArgs), value;
292
+ }
293
+ }, args);
294
+ return React.useEffect(function () {
295
+ wasExitingRef.current = isExiting;
296
+ }), useIsomorphicLayoutEffect(function () {
297
+ res.runners.forEach(function (r) {
298
+ return r();
299
+ });
300
+ var cycleId = exitCycleIdRef.current;
301
+ if (res.completions.length === 0) {
302
+ onDidAnimate?.(), isExiting && !exitCompletedRef.current && (exitCompletedRef.current = !0, sendExitComplete?.());
303
+ return;
304
+ }
305
+ var cancel = !1;
306
+ return Promise.all(res.completions).then(function () {
307
+ cancel || isExiting && cycleId !== exitCycleIdRef.current || isExiting && exitCompletedRef.current || (onDidAnimate?.(), isExiting && (exitCompletedRef.current = !0, sendExitComplete?.()));
308
+ }), function () {
309
+ cancel = !0;
310
+ };
311
+ }, args), useStyleEmitter?.(function (nextStyle) {
312
+ for (var key in nextStyle) {
313
+ var rawVal = nextStyle[key],
314
+ val = resolveDynamicValue(rawVal, isDark);
315
+ if (val !== void 0) if (key === "transform" && Array.isArray(val)) {
316
+ var _iteratorNormalCompletion = !0,
317
+ _didIteratorError = !1,
318
+ _iteratorError = void 0;
319
+ try {
320
+ for (var _iterator = val.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
321
+ var [index, transform] = _step.value,
322
+ _animatedTranforms_current_index;
323
+ if (transform) {
324
+ var tkey = Object.keys(transform)[0],
325
+ currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];
326
+ animatedTranforms.current[index] = {
327
+ [tkey]: update(tkey, currentTransform, transform[tkey])
328
+ };
329
+ }
330
+ }
331
+ } catch (err) {
332
+ _didIteratorError = !0, _iteratorError = err;
333
+ } finally {
334
+ try {
335
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
336
+ } finally {
337
+ if (_didIteratorError) throw _iteratorError;
338
+ }
339
+ }
340
+ } else (animatedStyleKey[key] != null || costlyToAnimateStyleKey[key]) && (animateStyles.current[key] = update(key, animateStyles.current[key], val));
341
+ }
342
+ res.runners.forEach(function (r) {
343
+ return r();
344
+ });
345
+ function update(key2, animated, valIn) {
346
+ var isColor = colorStyleKey[key2],
347
+ [numVal, type] = isColor ? [0, void 0] : getValue(valIn),
348
+ animateToValue = numVal,
349
+ value = animated || new Animated.Value(numVal),
350
+ curInterpolation = animationsState.current.get(value);
351
+ if (type) {
352
+ var _curInterpolation_current;
353
+ animationsState.current.set(value, {
354
+ interpolation: value.interpolate(getInterpolated((_curInterpolation_current = curInterpolation?.current) !== null && _curInterpolation_current !== void 0 ? _curInterpolation_current : value._value, numVal, type)),
355
+ current: numVal
356
+ });
357
+ }
358
+ isColor && (animateToValue = curInterpolation?.animateToValue ? 0 : 1, animationsState.current.set(value, {
359
+ current: valIn,
360
+ interpolation: value.interpolate(getColorInterpolated(curInterpolation?.current, valIn, animateToValue)),
361
+ animateToValue: curInterpolation?.animateToValue ? 0 : 1
362
+ }));
363
+ var animationConfig = getAnimationConfig(key2, animations, props.transition, "default");
364
+ return res.runners.push(function () {
365
+ value.stopAnimation();
366
+ var anim = Animated[animationConfig.type || "spring"](value, {
367
+ toValue: animateToValue,
368
+ useNativeDriver: nativeDriver,
369
+ ...animationConfig
370
+ });
371
+ (animationConfig.delay ? Animated.sequence([Animated.delay(animationConfig.delay), anim]) : anim).start();
372
+ }), value;
373
+ }
374
+ }), process.env.NODE_ENV === "development" && props.debug === "verbose" && console.info("Animated", {
375
+ response: res,
376
+ inputStyle: style,
377
+ isExiting
378
+ }), res;
379
+ }
380
+ };
381
+ }
382
+ function getColorInterpolated(currentColor, nextColor, animateToValue) {
383
+ var inputRange = [0, 1],
384
+ outputRange = [currentColor || nextColor, nextColor];
385
+ return animateToValue === 0 && outputRange.reverse(), {
386
+ inputRange,
387
+ outputRange
388
+ };
389
+ }
390
+ function getInterpolated(current, next) {
391
+ var postfix = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "deg";
392
+ next === current && (current = next - 1e-9);
393
+ var inputRange = [current, next],
394
+ outputRange = [`${current}${postfix}`, `${next}${postfix}`];
395
+ return next < current && (inputRange.reverse(), outputRange.reverse()), {
396
+ inputRange,
397
+ outputRange
398
+ };
399
+ }
400
+ function getAnimationConfig(key, animations, transition) {
401
+ var animationState = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "default",
402
+ normalized = normalizeTransition(transition),
403
+ shortKey = transformShorthands[key],
404
+ _normalized_properties_key,
405
+ propAnimation = (_normalized_properties_key = normalized.properties[key]) !== null && _normalized_properties_key !== void 0 ? _normalized_properties_key : normalized.properties[shortKey],
406
+ animationType = null,
407
+ extraConf = {};
408
+ typeof propAnimation == "string" ? animationType = propAnimation : propAnimation && (typeof propAnimation > "u" ? "undefined" : _type_of(propAnimation)) === "object" ? (animationType = propAnimation.type || getEffectiveAnimation(normalized, animationState), extraConf = propAnimation) : animationType = getEffectiveAnimation(normalized, animationState), normalized.delay && !extraConf.delay && (extraConf = {
409
+ ...extraConf,
410
+ delay: normalized.delay
411
+ });
412
+ var found = animationType ? animations[animationType] : {};
413
+ return {
414
+ ...found,
415
+ // Apply global spring config overrides (from transition={['bouncy', { stiffness: 1000 }]})
416
+ ...normalized.config,
417
+ // Property-specific config takes highest precedence
418
+ ...extraConf
419
+ };
420
+ }
421
+ var transformShorthands = {
422
+ x: "translateX",
423
+ y: "translateY",
424
+ translateX: "x",
425
+ translateY: "y"
426
+ };
427
+ function getValue(input) {
428
+ var isColor = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
429
+ if (typeof input != "string") return [input];
430
+ var _input_match,
431
+ [_, number, after] = (_input_match = input.match(/([-0-9]+)(deg|%|px)/)) !== null && _input_match !== void 0 ? _input_match : [];
432
+ return [+number, after];
433
+ }
434
+ export { AnimatedText, AnimatedView, createAnimations, useAnimatedNumber, useAnimatedNumberReaction, useAnimatedNumberStyle };
435
+ //# sourceMappingURL=createAnimations.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getEffectiveAnimation","normalizeTransition","isWeb","useIsomorphicLayoutEffect","ResetPresence","usePresence","useEvent","useThemeWithState","React","Animated","_type_of","obj","Symbol","constructor","isFabric","global","__nativeFabricUIManager","resolveDynamicValue","value","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","AnimatedView","View","AnimatedText","Text","useAnimatedNumber","initial","state","useRef","current","composite","val","Value","strategy","type","getInstance","getValue","_value","stop","_state_current_composite","setValue","next","config","arguments","length","onFinish","handleFinish","param","finished","spring","toValue","useNativeDriver","start","_state_current_composite1","composite1","timing","useAnimatedNumberReaction","onValue","onChange","useEffect","id","addListener","removeListener","useAnimatedNumberStyle","getStyle","createAnimations","animations","options","_options_useNativeDriver","nativeDriver","isReactNative","inputStyle","outputStyle","avoidReRenders","needsCustomComponent","useAnimations","props","onDidAnimate","style","componentState","presence","useStyleEmitter","_themeState_name","isDisabled","unmounted","isExiting","sendExitComplete","themeState","scheme","name","startsWith","animateStyles","animatedTranforms","animationsState","WeakMap","exitCycleIdRef","exitCompletedRef","wasExitingRef","justStartedExiting","justStoppedExiting","animateOnly","hasTransitionOnly","isEntering","wasEnteringRef","justFinishedEntering","args","JSON","stringify","res","useMemo","runners","completions","animationState","nonAnimatedStyle","key","rawVal","includes","update","console","warn","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","entries","iterator","_step","done","index","_animatedTranforms_current_index","tkey","Object","keys","currentTransform","err","return","animatedTransformStyle","map","r","_animationsState_current_get","key2","val2","get","interpolation","animatedStyle","fromEntries","param2","k","v","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","debug","info","forEach","cycleId","cancel","all","then","nextStyle","Array","isArray","isColor","numVal","anim","response","currentColor","nextColor","inputRange"],"sources":["../../src/createAnimations.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,qBAAA,EAAuBC,mBAAA,QAA2B;AAC3D,SAASC,KAAA,EAAOC,yBAAA,QAAiC;AACjD,SAASC,aAAA,EAAeC,WAAA,QAAmB;AAS3C,SAASC,QAAA,EAAUC,iBAAA,QAAyB;AAC5C,OAAOC,KAAA,MAAW;AAClB,SAASC,QAAA,QAAsC;AAG/C,SAAMC,QACJA,CAACC,GAAA;EAkCD,uBAAW;;EACX,OAAAA,GAAS,WAAAC,MAAA,UAAAD,GAAA,CAAAE,WAAA,KAAAD,MAAA,qBAAAD,GAAA;AACX;AAEsB,IACpBG,QAAA,IAAAZ,KAAiB,WAAAa,MAAA,YAAAA,MAAA,CAAAC,uBAAA;EAAAC,mBAAA,YAAAA,CAAAC,KAAA,EAAAC,MAAA;IACjB,IAAAD,KAAO,YAAAA,KAAA,uBAAAR,QAAA,CAAAQ,KAAA,gCAAAA,KAAA;MACP,IAAAE,YAAa,G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AAaA,CAAA+B,YAAA,EAAAC,SAAA,EAAAvC,cAAA;EAEf,IAAAwC,UAAU,IACV,GACF,E","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from "./createAnimations.mjs";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAEA,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":"AAEA,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":"AAEA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = typeof setImmediate > "u" ? setTimeout : setImmediate);
2
+ //# sourceMappingURL=polyfill.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["requestAnimationFrame","globalThis","setImmediate","setTimeout"],"sources":["../../src/polyfill.ts"],"sourcesContent":[null],"mappings":"AACI,OAAOA,qBAAA,GAA0B,QACnCC,UAAA,CAAWD,qBAAA,GACT,OAAOE,YAAA,GAAiB,MAAcC,UAAA,GAAaD,YAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = typeof setImmediate > "u" ? setTimeout : setImmediate);
2
+ //# sourceMappingURL=polyfill.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["requestAnimationFrame","globalThis","setImmediate","setTimeout"],"sources":["../../src/polyfill.ts"],"sourcesContent":[null],"mappings":"AACI,OAAOA,qBAAA,GAA0B,QACnCC,UAAA,CAAWD,qBAAA,GACT,OAAOE,YAAA,GAAiB,MAAcC,UAAA,GAAaD,YAAA","ignoreList":[]}
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@hanzogui/animations-react-native",
3
+ "version": "2.0.0",
4
+ "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
+ "license": "MIT",
6
+ "source": "src/index.ts",
7
+ "files": [
8
+ "src",
9
+ "types",
10
+ "dist"
11
+ ],
12
+ "type": "module",
13
+ "sideEffects": [
14
+ "polyfill.js"
15
+ ],
16
+ "main": "dist/cjs",
17
+ "module": "dist/esm",
18
+ "types": "./types/index.d.ts",
19
+ "exports": {
20
+ "./package.json": "./package.json",
21
+ ".": {
22
+ "types": "./types/index.d.ts",
23
+ "react-native": "./dist/esm/index.native.js",
24
+ "browser": "./dist/esm/index.mjs",
25
+ "module": "./dist/esm/index.mjs",
26
+ "import": "./dist/esm/index.mjs",
27
+ "require": "./dist/cjs/index.cjs",
28
+ "default": "./dist/esm/index.mjs"
29
+ }
30
+ },
31
+ "publishConfig": {
32
+ "access": "public"
33
+ },
34
+ "scripts": {
35
+ "build": "hanzo-gui-build",
36
+ "watch": "hanzo-gui-build --watch",
37
+ "clean": "hanzo-gui-build clean",
38
+ "clean:build": "hanzo-gui-build clean:build"
39
+ },
40
+ "dependencies": {
41
+ "@hanzogui/animation-helpers": "workspace:*",
42
+ "@hanzogui/constants": "workspace:*",
43
+ "@hanzogui/use-presence": "workspace:*",
44
+ "@hanzogui/web": "workspace:*"
45
+ },
46
+ "devDependencies": {
47
+ "@hanzogui/build": "workspace:*",
48
+ "react": ">=19",
49
+ "react-native": "0.83.2"
50
+ },
51
+ "peerDependencies": {
52
+ "react": ">=19",
53
+ "react-native": "*"
54
+ },
55
+ "removeSideEffects": true
56
+ }