@hanzogui/animations-moti 8.3.1 → 8.3.2

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.
Files changed (42) hide show
  1. package/dist/cjs/createAnimations.js +304 -0
  2. package/dist/cjs/createAnimations.js.map +1 -0
  3. package/dist/cjs/index.js +6 -0
  4. package/dist/cjs/index.js.map +1 -0
  5. package/dist/cjs/package.json +1 -0
  6. package/dist/cjs/polyfill.js +10 -0
  7. package/dist/cjs/polyfill.js.map +1 -0
  8. package/dist/esm/createAnimations.js +300 -0
  9. package/dist/esm/createAnimations.js.map +1 -0
  10. package/dist/esm/index.js +3 -3
  11. package/dist/esm/index.js.map +1 -1
  12. package/dist/esm/polyfill.js +10 -0
  13. package/dist/esm/polyfill.js.map +1 -0
  14. package/package.json +22 -17
  15. package/src/index.ts +2 -2
  16. package/types/createAnimations.d.ts +2 -3
  17. package/types/createAnimations.d.ts.map +1 -11
  18. package/types/index.d.ts +2 -3
  19. package/types/index.d.ts.map +1 -11
  20. package/types/polyfill.d.ts +0 -1
  21. package/types/polyfill.d.ts.map +1 -11
  22. package/dist/cjs/createAnimations.cjs +0 -308
  23. package/dist/cjs/createAnimations.native.js +0 -328
  24. package/dist/cjs/createAnimations.native.js.map +0 -1
  25. package/dist/cjs/index.cjs +0 -21
  26. package/dist/cjs/index.native.js +0 -24
  27. package/dist/cjs/index.native.js.map +0 -1
  28. package/dist/cjs/polyfill.cjs +0 -6
  29. package/dist/cjs/polyfill.native.js +0 -9
  30. package/dist/cjs/polyfill.native.js.map +0 -1
  31. package/dist/esm/createAnimations.mjs +0 -272
  32. package/dist/esm/createAnimations.mjs.map +0 -1
  33. package/dist/esm/createAnimations.native.js +0 -289
  34. package/dist/esm/createAnimations.native.js.map +0 -1
  35. package/dist/esm/index.mjs +0 -3
  36. package/dist/esm/index.mjs.map +0 -1
  37. package/dist/esm/index.native.js +0 -3
  38. package/dist/esm/index.native.js.map +0 -1
  39. package/dist/esm/polyfill.mjs +0 -7
  40. package/dist/esm/polyfill.mjs.map +0 -1
  41. package/dist/esm/polyfill.native.js +0 -7
  42. package/dist/esm/polyfill.native.js.map +0 -1
@@ -1,328 +0,0 @@
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
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: true
13
- });
14
- };
15
- var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") {
17
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
- get: () => from[key],
19
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
- });
21
- }
22
- return to;
23
- };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- // If the importer is in node compatibility mode or this is not an ESM
26
- // file that has been converted to a CommonJS file using a Babel-
27
- // compatible transform (i.e. "__esModule" has not been set), then set
28
- // "default" to the CommonJS "module.exports" for node compatibility.
29
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
- value: mod,
31
- enumerable: true
32
- }) : target, mod));
33
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
- value: true
35
- }), mod);
36
- var createAnimations_exports = {};
37
- __export(createAnimations_exports, {
38
- createAnimations: () => createAnimations
39
- });
40
- module.exports = __toCommonJS(createAnimations_exports);
41
- var import_jsx_runtime = require("react/jsx-runtime");
42
- var import_use_presence = require("@hanzogui/use-presence");
43
- var import_core = require("@hanzogui/core");
44
- var import_author = require("moti/author");
45
- var import_react = __toESM(require("react"), 1);
46
- var import_react_native_reanimated = __toESM(require("react-native-reanimated"), 1);
47
- function _type_of(obj) {
48
- "@swc/helpers - typeof";
49
-
50
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
51
- }
52
- var resolveDynamicValue = function (value, isDark) {
53
- if (value && (typeof value === "undefined" ? "undefined" : _type_of(value)) === "object" && "dynamic" in value) {
54
- var dynamicValue = isDark ? value.dynamic.dark : value.dynamic.light;
55
- return dynamicValue;
56
- }
57
- return value;
58
- };
59
- var safeESModule = function (a) {
60
- var b = a;
61
- var out = b.__esModule || b[Symbol.toStringTag] === "Module" ? b.default : b;
62
- return out || a;
63
- };
64
- var Animated = safeESModule(import_react_native_reanimated.default);
65
- function createGuiAnimatedComponent() {
66
- var defaultTag = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "div";
67
- var isText = defaultTag === "span";
68
- var Component = Animated.createAnimatedComponent(/* @__PURE__ */(0, import_react.forwardRef)(function (propsIn, ref) {
69
- var _hooks_usePropsTransform;
70
- var {
71
- forwardedRef,
72
- animation,
73
- render = defaultTag,
74
- ...propsRest
75
- } = propsIn;
76
- var hostRef = (0, import_react.useRef)(null);
77
- var composedRefs = (0, import_core.useComposedRefs)(forwardedRef, ref, hostRef);
78
- var stateRef = (0, import_react.useRef)(null);
79
- if (!stateRef.current) {
80
- stateRef.current = {
81
- get host() {
82
- return hostRef.current;
83
- }
84
- };
85
- }
86
- var [_, state] = (0, import_core.useThemeWithState)({});
87
- var result = (0, import_core.getSplitStyles)(propsRest, isText ? import_core.Text.staticConfig : import_core.View.staticConfig, state === null || state === void 0 ? void 0 : state.theme, state === null || state === void 0 ? void 0 : state.name, {
88
- unmounted: false
89
- }, {
90
- isAnimated: false,
91
- noClass: true
92
- });
93
- var props = (result === null || result === void 0 ? void 0 : result.viewProps) || {};
94
- var Element = render;
95
- var transformedProps = (_hooks_usePropsTransform = import_core.hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(import_core.hooks, render, props, stateRef, false);
96
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(Element, {
97
- ...transformedProps,
98
- ref: composedRefs
99
- });
100
- }));
101
- Component["acceptRenderProp"] = true;
102
- return Component;
103
- }
104
- var AnimatedView = createGuiAnimatedComponent("div");
105
- var AnimatedText = createGuiAnimatedComponent("span");
106
- var onlyAnimateKeys = {
107
- transform: true,
108
- opacity: true,
109
- height: true,
110
- width: true,
111
- backgroundColor: true,
112
- borderColor: true,
113
- borderLeftColor: true,
114
- borderRightColor: true,
115
- borderTopColor: true,
116
- borderBottomColor: true,
117
- borderRadius: true,
118
- borderTopLeftRadius: true,
119
- borderTopRightRadius: true,
120
- borderBottomLeftRadius: true,
121
- borderBottomRightRadius: true,
122
- borderLeftWidth: true,
123
- borderRightWidth: true,
124
- borderTopWidth: true,
125
- borderBottomWidth: true,
126
- color: true,
127
- left: true,
128
- right: true,
129
- top: true,
130
- bottom: true,
131
- fontSize: true,
132
- fontWeight: true,
133
- lineHeight: true,
134
- letterSpacing: true
135
- };
136
- function createAnimations(animations) {
137
- return {
138
- needsCustomComponent: true,
139
- View: import_core.isWeb ? AnimatedView : Animated.View,
140
- Text: import_core.isWeb ? AnimatedText : Animated.Text,
141
- // View: Animated.View,
142
- // Text: Animated.Text,
143
- isReactNative: true,
144
- inputStyle: "value",
145
- outputStyle: "inline",
146
- animations,
147
- usePresence: import_use_presence.usePresence,
148
- ResetPresence: import_use_presence.ResetPresence,
149
- useAnimatedNumber(initial) {
150
- var sharedValue = (0, import_react_native_reanimated.useSharedValue)(initial);
151
- return import_react.default.useMemo(function () {
152
- return {
153
- getInstance() {
154
- "worklet";
155
-
156
- return sharedValue;
157
- },
158
- getValue() {
159
- "worklet";
160
-
161
- return sharedValue.value;
162
- },
163
- setValue(next) {
164
- "worklet";
165
-
166
- var config = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
167
- type: "spring"
168
- },
169
- onFinish = arguments.length > 2 ? arguments[2] : void 0;
170
- if (config.type === "direct") {
171
- sharedValue.value = next;
172
- onFinish === null || onFinish === void 0 ? void 0 : onFinish();
173
- } else if (config.type === "spring") {
174
- sharedValue.value = (0, import_react_native_reanimated.withSpring)(next, config, onFinish ? function () {
175
- "worklet";
176
-
177
- (0, import_react_native_reanimated.runOnJS)(onFinish)();
178
- } : void 0);
179
- } else {
180
- sharedValue.value = (0, import_react_native_reanimated.withTiming)(next, config, onFinish ? function () {
181
- "worklet";
182
-
183
- (0, import_react_native_reanimated.runOnJS)(onFinish)();
184
- } : void 0);
185
- }
186
- },
187
- stop() {
188
- "worklet";
189
-
190
- (0, import_react_native_reanimated.cancelAnimation)(sharedValue);
191
- }
192
- };
193
- }, [sharedValue]);
194
- },
195
- useAnimatedNumberReaction(param, onValue) {
196
- var {
197
- value
198
- } = param;
199
- var instance = value.getInstance();
200
- return (0, import_react_native_reanimated.useAnimatedReaction)(function () {
201
- return instance.value;
202
- }, function (next, prev) {
203
- if (prev !== next) {
204
- (0, import_react_native_reanimated.runOnJS)(onValue)(next);
205
- }
206
- },
207
- // dependency array is very important here
208
- [onValue, instance]);
209
- },
210
- /**
211
- * `getStyle` must be a worklet
212
- */
213
- useAnimatedNumberStyle(val, getStyle) {
214
- var instance = val.getInstance();
215
- var derivedValue = (0, import_react_native_reanimated.useDerivedValue)(function () {
216
- return instance.value;
217
- },
218
- // dependency array is very important here
219
- [instance, getStyle]);
220
- return (0, import_react_native_reanimated.useAnimatedStyle)(function () {
221
- return getStyle(derivedValue.value);
222
- },
223
- // dependency array is very important here
224
- [val, getStyle, derivedValue, instance]);
225
- },
226
- useAnimations: function (animationProps) {
227
- var _themeState_name;
228
- var {
229
- props,
230
- presence,
231
- style,
232
- componentState
233
- } = animationProps;
234
- var animationKey = Array.isArray(props.transition) ? props.transition[0] : props.transition;
235
- var isHydrating = componentState.unmounted === true;
236
- var disableAnimation = isHydrating || !animationKey;
237
- var presenceContext = import_react.default.useContext(import_use_presence.PresenceContext);
238
- var [, themeState] = (0, import_core.useThemeWithState)({});
239
- 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"));
240
- var {
241
- dontAnimate,
242
- motiProps
243
- } = (0, import_react.useMemo)(function () {
244
- var animate = {};
245
- var dontAnimate2 = {};
246
- if (disableAnimation) {
247
- for (var key in style) {
248
- var rawValue = style[key];
249
- var value = resolveDynamicValue(rawValue, isDark);
250
- if (value === void 0) continue;
251
- dontAnimate2[key] = value;
252
- }
253
- } else {
254
- var animateOnly = props.animateOnly;
255
- for (var key1 in style) {
256
- var rawValue1 = style[key1];
257
- var value1 = resolveDynamicValue(rawValue1, isDark);
258
- if (value1 === void 0) continue;
259
- if (!onlyAnimateKeys[key1] || value1 === "auto" || typeof value1 === "string" && value1.startsWith("calc") || animateOnly && !animateOnly.includes(key1)) {
260
- dontAnimate2[key1] = value1;
261
- } else {
262
- animate[key1] = value1;
263
- }
264
- }
265
- }
266
- if (componentState.unmounted === "should-enter") {
267
- for (var key2 in style) {
268
- var rawValue2 = style[key2];
269
- var value2 = resolveDynamicValue(rawValue2, isDark);
270
- if (value2 === void 0) continue;
271
- dontAnimate2[key2] = value2;
272
- }
273
- }
274
- var styles = animate;
275
- var isExiting = Boolean(presence === null || presence === void 0 ? void 0 : presence[1]);
276
- var usePresenceValue = presence || void 0;
277
- var transition = isHydrating ? {
278
- type: "transition",
279
- duration: 0
280
- } : animations[animationKey];
281
- var hasClonedTransition = false;
282
- if (Array.isArray(props.transition)) {
283
- var config = props.transition[1];
284
- if (config && (typeof config === "undefined" ? "undefined" : _type_of(config)) === "object") {
285
- for (var key3 in config) {
286
- var val = config[key3];
287
- if (!hasClonedTransition) {
288
- transition = Object.assign({}, transition);
289
- hasClonedTransition = true;
290
- }
291
- if (typeof val === "string") {
292
- transition[key3] = animations[val];
293
- } else {
294
- transition[key3] = val;
295
- }
296
- }
297
- }
298
- }
299
- return {
300
- dontAnimate: dontAnimate2,
301
- motiProps: {
302
- animate: isExiting || componentState.unmounted === true ? {} : styles,
303
- transition: componentState.unmounted ? {
304
- duration: 0
305
- } : transition,
306
- usePresenceValue,
307
- presenceContext,
308
- exit: isExiting ? styles : void 0
309
- }
310
- };
311
- }, [presenceContext, presence, animationKey, componentState.unmounted, JSON.stringify(style), presenceContext, isDark]);
312
- var moti = (0, import_author.useMotify)(motiProps);
313
- if (process.env.NODE_ENV === "development" && props["debug"] && props["debug"] !== "profile") {
314
- console.info(`useMotify(`, JSON.stringify(motiProps, null, 2) + ")", {
315
- "componentState.unmounted": componentState.unmounted,
316
- animationProps,
317
- motiProps,
318
- moti,
319
- style: [dontAnimate, moti.style]
320
- });
321
- }
322
- return {
323
- style: [dontAnimate, moti.style]
324
- };
325
- }
326
- };
327
- }
328
- //# sourceMappingURL=createAnimations.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","createAnimations_exports","__export","createAnimations","module","exports","import_jsx_runtime","require","import_use_presence","import_core","import_author","import_react","__toESM","import_react_native_reanimated","_type_of","obj","Symbol","constructor","resolveDynamicValue","isDark","dynamicValue","dynamic","dark","light","safeESModule","a","b","out","__esModule","toStringTag","default","Animated","createGuiAnimatedComponent","defaultTag","arguments","length","isText","Component","createAnimatedComponent","forwardRef","propsIn","ref","_hooks_usePropsTransform","forwardedRef","animation","render","propsRest","hostRef","useRef","composedRefs","useComposedRefs","stateRef","current","host","_","state","useThemeWithState","result","getSplitStyles","Text","staticConfig","View","theme","name","unmounted","isAnimated","noClass","props","viewProps","Element","transformedProps","hooks","usePropsTransform","call","jsx","AnimatedView","AnimatedText","onlyAnimateKeys","transform","opacity","height","width","backgroundColor","borderColor","borderLeftColor","borderRightColor","borderTopColor","borderBottomColor","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","color","left","right","top","bottom","fontSize","fontWeight","lineHeight","letterSpacing","animations","needsCustomComponent","isWeb","isReactNative","inputStyle","outputStyle","usePresence","ResetPresence","useAnimatedNumber","initial","sharedValue","useSharedValue","useMemo","getInstance","getValue","setValue","next","config","type","onFinish","withSpring","runOnJS","withTiming","stop","cancelAnimation","useAnimatedNumberReaction","param","onValue","instance","useAnimatedReaction","prev","useAnimatedNumberStyle","val","getStyle","derivedValue","useDerivedValue","useAnimatedStyle","useAnimations","animationProps","_themeState_name","presence","style","componentState","animationKey","Array","isArray","transition","isHydrating","disableAnimation","presenceContext","useContext","PresenceContext","themeState","scheme","startsWith","dontAnimate","motiProps","animate","dontAnimate2","key","rawValue","animateOnly","key1","rawValue1","value1","includes","key2","rawValue2","value2","styles","isExiting","Boolean","usePresenceValue","duration","hasClonedTransition","key3","Object","assign","exit"],"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,gBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAA4D,CAAAK,wBAAA;AAE5D,IAAAK,kBAUO,GAAAC,OAAA;AAWP,IAAAC,mBAA0B,GAAAD,OAAA;AAE1B,IAAAE,WAAA,GAAAF,OAAmD;AAGnD,IAAAG,aAAA,GAAAH,OAAA,cASO;AAwDM,IAAAI,YAAA,GAAAC,OAAA,CAAAL,OAAA;AA9Eb,IAAAM,8BAA6B,GAAYD,OAAA,CAAAL,OAAyB;AAChE,SAAIO,QAASA,CAAAC,GAAA,EAAO;EAClB,uBAAqB;;EACrB,OAAAA,GAAO,WAAAC,MAAA,oBAAAD,GAAA,CAAAE,WAAA,KAAAD,MAAA,qBAAAD,GAAA;AAAA;AAET,IAAAG,mBAAO,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BAAA;gBACC5B,UAAA,GAAA8B,MAAA,CAAAC,MAAA,KAAA/B,UAAA;gBACD4B,mBAAA;cACA;cACA,WAAA1C,GAAA;gBACAc,UAAe,CAAA6B,IAAA,IAAA3E,UAAA,CAAAgC,GAAA;cACV;gBACLc,UAAA,CAAA6B,IAAA,IAAA3C,GAAA;cACA;YACD;UAED;QAEA;QAKE;UACEuB,WAAA,EAAAG,YAAA;UACAF,SAAA;YACAC,OAAA,EAAAa,SAAA,IAAA5B,cAAA,CAAApF,SAAA,iBAAA+G,MAAA;YACAvB,UAAA,EAAAJ,cAAA,CAAApF,SAAA;cACAmH,QAAQ;YACT,IAAA3B,UAAA;YACH0B,gBAAA;YAEAvB,eAAO;YACL6B,IAAQ,EAAAR,SAAA,GAAaD,MAAK,GAAK;UACjC;QACF;MACF,IACFpB,eAAA,E","ignoreList":[]}
@@ -1,21 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
8
- get: () => from[key],
9
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
10
- });
11
- }
12
- return to;
13
- };
14
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: true
17
- }), mod);
18
- var index_exports = {};
19
- module.exports = __toCommonJS(index_exports);
20
- var import_polyfill = require("./polyfill.cjs");
21
- __reExport(index_exports, require("./createAnimations.cjs"), module.exports);
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
- get: () => from[key],
11
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
- });
13
- }
14
- return to;
15
- };
16
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
17
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
18
- value: true
19
- }), mod);
20
- var index_exports = {};
21
- module.exports = __toCommonJS(index_exports);
22
- var import_polyfill = require("./polyfill.native.js");
23
- __reExport(index_exports, require("./createAnimations.native.js"), module.exports);
24
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
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,6 +0,0 @@
1
- if (typeof requestAnimationFrame === "undefined") {
2
- globalThis["requestAnimationFrame"] = setTimeout;
3
- }
4
- if (typeof global === "undefined") {
5
- globalThis["global"] = globalThis;
6
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- if (typeof requestAnimationFrame === "undefined") {
4
- globalThis["requestAnimationFrame"] = setTimeout;
5
- }
6
- if (typeof global === "undefined") {
7
- globalThis["global"] = globalThis;
8
- }
9
- //# sourceMappingURL=polyfill.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["requestAnimationFrame","globalThis","setTimeout","global"],"sources":["../../src/polyfill.ts"],"sourcesContent":[null],"mappings":"AACA,YAAW;;AACT,WAAAA,qBAAW,KAAuB,WAAI;EACxCC,UAAA,4BAAAC,UAAA;AAGA;AACE,WAAAC,MAAW,KAAQ,WAAI;EACzBF,UAAA,aAAAA,UAAA","ignoreList":[]}