motion 10.5.0-alpha.1 → 10.5.0-alpha.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.
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var react = require('@motionone/react');
6
+
7
+
8
+
9
+ Object.keys(react).forEach(function (k) {
10
+ if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
11
+ enumerable: true,
12
+ get: function () { return react[k]; }
13
+ });
14
+ });
@@ -0,0 +1 @@
1
+ export * from '@motionone/react';
@@ -1 +1 @@
1
- function o(o){var t=function(o,t){var e={};for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&t.indexOf(n)<0&&(e[n]=o[n]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(o);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(o,n[r])&&(e[n[r]]=o[n[r]])}return e}(o,[]);console.log(t)}function t(){console.log("test")}export{o as animate,t as test};
1
+ const t=new WeakMap;function e(e){return t.has(e)||t.set(e,{transforms:[],animations:{},generators:{},prevGeneratorState:{}}),t.get(e)}function n(t,e){-1===t.indexOf(e)&&t.push(e)}function a(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const i=()=>{},r=t=>t,s=["","X","Y","Z"],o={x:"translateX",y:"translateY",z:"translateZ"},l={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},c={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:l,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:r},skew:l},u=new Map,h=t=>`--motion-${t}`,f=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{s.forEach((e=>{f.push(t+e),u.set(h(t+e),c[t])}))}));const d=(t,e)=>f.indexOf(t)-f.indexOf(e),p=new Set(f),m=t=>p.has(t),y=t=>t.sort(d).reduce(g,"").trim(),g=(t,e)=>`${t} ${e}(var(${h(e)}))`,v=t=>t.startsWith("--"),b=new Set;const x=t=>1e3*t,w=t=>"number"==typeof t,M=t=>Array.isArray(t)&&!w(t[0]),O=t=>"object"==typeof t&&Boolean(t.createAnimation),S=t=>(t=>Array.isArray(t)&&w(t[0]))(t)?T(t):t,T=([t,e,n,a])=>`cubic-bezier(${t}, ${e}, ${n}, ${a})`,A=t=>document.createElement("div").animate(t,{duration:.001}),D={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{A({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(A({opacity:[0,1]}).finished)},j={},k={};for(const t in D)k[t]=()=>(void 0===j[t]&&(j[t]=D[t]()),j[t]);const E={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},P=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function $(t,e,n,a){if(t===e&&n===a)return r;const i=e=>function(t,e,n,a,i){let r,s,o=0;do{s=e+(n-e)/2,r=P(s,a,i)-t,r>0?n=s:e=s}while(Math.abs(r)>1e-7&&++o<12);return s}(e,0,1,t,n);return t=>0===t||1===t?t:P(i(t),e,a)}const R=(t,e="end")=>n=>{const a=(n="end"===e?Math.min(n,.999):Math.max(n,.001))*t,i="end"===e?Math.floor(a):Math.ceil(a);return r=0,s=1,o=i/t,Math.min(Math.max(o,r),s);var r,s,o},U={ease:$(.25,.1,.25,1),"ease-in":$(.42,0,1,1),"ease-in-out":$(.42,0,.58,1),"ease-out":$(0,0,.58,1)},V=/\((.*?)\)/;function q(t){if("function"==typeof t)return t;if(Array.isArray(t))return $(...t);if(U[t])return U[t];if(t.startsWith("steps")){const e=V.exec(t);if(e){const t=e[1].split(",");return R(parseFloat(t[0]),t[1].trim())}}return r}const C=(t,e,n)=>-n*t+n*e+t,W=(t,e,n)=>e-t==0?1:(n-t)/(e-t);function F(t,e){return M(t)?t[((t,e,n)=>{const a=e-t;return((n-t)%a+a)%a+t})(0,t.length,e)]:t}function B(t,e){const n=t[t.length-1];for(let a=1;a<=e;a++){const i=W(0,e,a);t.push(C(n,1,i))}}function z(t){const e=[0];return B(e,t-1),e}function G(t,e=z(t.length),n=r){const a=t.length,i=a-e.length;return i>0&&B(e,i),i=>{let r=0;for(;r<a-2&&!(i<e[r+1]);r++);let s=(o=W(e[r],e[r+1],i),Math.min(1,Math.max(o,0)));var o;return s=F(n,r)(s),C(t[r],t[r+1],s)}}class Z{constructor(t,e=[0,1],{easing:n=E.easing,duration:a=E.duration,delay:i=E.delay,endDelay:r=E.endDelay,repeat:s=E.repeat,offset:o,direction:l="normal"}={}){this.startTime=0,this.rate=1,this.t=0,this.cancelTimestamp=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e}));const c=a*(s+1);O(n)&&(n="ease");const u=G(e,o,M(n)?n.map(q):q(n));this.tick=e=>{var n;this.pauseTime&&(e=this.pauseTime);let s=(e-this.startTime)*this.rate;this.t=s,s/=1e3,s=Math.max(s-i,0),"finished"===this.playState&&(s=c);const o=s/a;let h=Math.floor(o),f=o%1;!f&&o>=1&&(f=1),1===f&&h--;const d=h%2;("reverse"===l||"alternate"===l&&d||"alternate-reverse"===l&&!d)&&(f=1-f);const p=u(s>=c?1:Math.min(f,1));t(p);"finished"===this.playState||s>=c+r?(this.playState="finished",null===(n=this.resolve)||void 0===n||n.call(this,p)):"idle"!==this.playState&&requestAnimationFrame(this.tick)},this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime?this.startTime=t-(this.pauseTime-this.startTime):this.startTime||(this.startTime=t),this.pauseTime=void 0,requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=performance.now()}finish(){this.playState="finished",this.tick(0)}cancel(){var t;this.playState="idle",this.tick(this.cancelTimestamp),null===(t=this.reject)||void 0===t||t.call(this,!1)}reverse(){this.rate*=-1}commitStyles(){this.cancelTimestamp=performance.now()}get currentTime(){return this.t}set currentTime(t){this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}const K=t=>Array.isArray(t)?t:[t];function N(t){return o[t]&&(t=o[t]),m(t)?h(t):t}const X=(t,e)=>{e=N(e);let n=v(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!n&&0!==n){const t=u.get(e);t&&(n=t.initialValue)}return n};function Y(t){if(t)try{"finished"!==t.playState&&t.commitStyles(),t.cancel()}catch(t){}}function I(t,a,r,s={}){let l,{duration:c=E.duration,delay:h=E.delay,endDelay:f=E.endDelay,repeat:d=E.repeat,easing:p=E.easing,direction:g,offset:T,allowWebkitAcceleration:A=!1}=s;const D=e(t);let j=k.waapi(),P=i;const $=m(a);$&&((t,a)=>{o[a]&&(a=o[a]);const{transforms:i}=e(t);n(i,a),t.style.transform=y(i)})(t,a);const R=N(a),U=u.get(R);return Y(D.animations[R]),()=>{const e=()=>{var e,n;return null!==(n=null!==(e=X(t,R))&&void 0!==e?e:null==U?void 0:U.initialValue)&&void 0!==n?n:0};let n=function(t,e){for(let n=0;n<t.length;n++)null===t[n]&&(t[n]=n?t[n-1]:e());return t}(K(r),e);if(O(p)){const t=p.createAnimation(n,e,$,R,D);p=t.easing,void 0!==t.keyframes&&(n=t.keyframes),void 0!==t.duration&&(c=t.duration)}if(v(R)?(P=((t,e)=>n=>t.style.setProperty(e,n))(t,R),k.cssRegisterProperty()?function(t){if(!b.has(t)){b.add(t);try{const{syntax:e,initialValue:n}=u.has(t)?u.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:n})}catch(t){}}}(R):j=!1):P=((t,e)=>n=>t.style[e]=n)(t,R),j){U&&(n=n.map((t=>w(t)?U.toDefaultUnit(t):t))),k.partialKeyframes()||1!==n.length||n.unshift(e());const a={delay:x(h),duration:x(c),endDelay:x(f),easing:M(p)?void 0:S(p),direction:g,iterations:d+1,fill:"both"};l=t.animate({[R]:n,offset:T,easing:M(p)?p.map(S):void 0},a),l.finished||(l.finished=new Promise(((t,e)=>{l.onfinish=t,l.oncancel=e})));const r=n[n.length-1];l.finished.then((()=>{P(r),l.cancel()})).catch(i),A||(l.playbackRate=1.000001)}else if($&&n.every(w)){if(1===n.length&&n.unshift(parseFloat(e())),U){const t=P;P=e=>t(U.toDefaultUnit(e))}l=new Z(P,n,Object.assign(Object.assign({},s),{duration:c,easing:p}))}else{const t=n[n.length-1];P(U&&w(t)?U.toDefaultUnit(t):t)}return D.animations[R]=l,null==l||l.finished.then((()=>{D.animations[R]=void 0,D.generators[R]=void 0,D.prevGeneratorState[R]=void 0})).catch(i),l}}const L=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function _(t,e){var n;return"string"==typeof t?e?(null!==(n=e[t])&&void 0!==n||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t)}const H=t=>t(),J=(t,e)=>new Proxy({animations:t.map(H).filter(Boolean),duration:e},tt),Q=t=>t.animations[0],tt={get:(t,e)=>{var n,a;switch(e){case"duration":return t.duration;case"currentTime":let r=(null===(n=Q(t))||void 0===n?void 0:n[e])||0;return r?r/1e3:0;case"playbackRate":return null===(a=Q(t))||void 0===a?void 0:a[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(et)).catch(i)),t.finished;case"stop":return()=>t.animations.forEach(Y);default:return()=>t.animations.forEach((t=>t[e]()))}},set:(t,e,n)=>{switch(e){case"currentTime":n=x(n);case"currentTime":case"playbackRate":for(let a=0;a<t.animations.length;a++)t.animations[a][e]=n;return!0}return!1}},et=t=>t.finished;function nt(t=.1,{start:e=0,from:n=0,easing:a}={}){return(i,r)=>{const s=w(n)?n:function(t,e){if("first"===t)return 0;{const n=e-1;return"last"===t?n:n/2}}(n,r),o=Math.abs(s-i);let l=t*o;if(a){const t=r*i;l=q(a)(l/t)*t}return e+l}}function at(t,e,n){return"function"==typeof t?t(e,n):t}function it(t,e,n={}){var a;const i=(t=_(t)).length,r=[];for(let a=0;a<i;a++){const s=t[a];for(const t in e){const o=L(n,t);o.delay=at(o.delay,a,i);const l=I(s,t,e[t],o);r.push(l)}}return J(r,null!==(a=n.duration)&&void 0!==a?a:E.duration)}function rt(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(t);i<a.length;i++)e.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(t,a[i])&&(n[a[i]]=t[a[i]])}return n}var st=function(){};function ot(t,e,n,a){var i;return w(e)?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?n:null!==(i=a.get(e))&&void 0!==i?i:t}function lt(t,e,n,i,r,s){!function(t,e,n){for(let i=0;i<t.length;i++){const r=t[i];r.at>e&&r.at<n&&(a(t,r),i--)}}(t,r,s);for(let a=0;a<e.length;a++)t.push({value:e[a],at:C(r,s,i[a]),easing:F(n,a)})}function ct(t,e){return t.at===e.at?null===t.value?1:-1:t.at-e.at}function ut(t,e={}){var n,a;const i=function(t,e={}){var{defaultOptions:n={}}=e,a=rt(e,["defaultOptions"]);const i=[],r=new Map,s={},o=new Map;let l=0,c=0,u=0;for(let e=0;e<t.length;e++){const[a,i,h={}]=t[e];void 0!==h.at&&(c=ot(c,h.at,l,o));let f=0;const d=_(a,s),p=d.length;for(let t=0;t<p;t++){const e=ht(d[t],r);for(const a in i){const r=ft(a,e);let s=K(i[a]);const o=L(h,a);let{duration:l=n.duration||E.duration,easing:d=n.easing||E.easing}=o;if(O(d)){const t=m(a);st(2===s.length||!t,"spring must be provided 2 keyframes within timeline");const e=d.createAnimation(s,(()=>"0"),t);d=e.easing,void 0!==e.keyframes&&(s=e.keyframes),void 0!==e.duration&&(l=e.duration)}const y=at(h.delay,t,p)||0,g=c+y,v=g+l;let{offset:b=z(s.length)}=o;1===b.length&&0===b[0]&&(b[1]=1);const x=length-s.length;x>0&&B(b,x),1===s.length&&s.unshift(null),lt(r,s,d,b,g,v),f=Math.max(y+l,f),u=Math.max(v,u)}}l=c,c+=f}return r.forEach(((t,e)=>{for(const r in t){const s=t[r];s.sort(ct);const o=[],l=[],c=[];for(let t=0;t<s.length;t++){const{at:e,value:n,easing:a}=s[t];o.push(n),l.push(W(0,u,e)),c.push(a||E.easing)}0!==l[0]&&(l.unshift(0),o.unshift(o[0]),c.unshift("linear")),1!==l[l.length-1]&&(l.push(1),o.push(null)),i.push([e,r,o,Object.assign(Object.assign(Object.assign({},n),{duration:u,easing:c,offset:l}),a)])}})),i}(t,e),r=i.map((t=>I(...t))).filter(Boolean);return J(r,null!==(a=null===(n=i[0])||void 0===n?void 0:n[3].duration)&&void 0!==a?a:E.duration)}function ht(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function ft(t,e){return e[t]||(e[t]=[]),e[t]}"production"!==process.env.NODE_ENV&&(st=function(t,e){if(!t)throw new Error(e)});const dt=({stiffness:t=100,damping:e=10,mass:n=1,from:a=0,to:i=1,velocity:r=0,restSpeed:s=2,restDistance:o=.5}={})=>{const l={done:!1,value:a,target:i,velocity:r=r?r/1e3:0,hasReachedTarget:!1},c=((t=100,e=10,n=1)=>e/(2*Math.sqrt(t*n)))(t,e,n),u=i-a,h=Math.sqrt(t/n)/1e3,f=((t,e)=>t*Math.sqrt(1-e*e))(h,c);let d;return d=c<1?t=>i-Math.exp(-c*h*t)*((c*h*u-r)/f*Math.sin(f*t)+u*Math.cos(f*t)):t=>i-Math.exp(-h*t)*(u+(r+h*u)*t),{next:t=>{l.value=d(t),l.velocity=0===t?r:pt(d,t,l.value);const e=Math.abs(l.velocity)<=s,n=Math.abs(i-l.value)<=o;var c,u,h;return l.done=e&&n,l.hasReachedTarget=(c=a,u=i,h=l.value,c<u&&h>=u||c>u&&h<=u),l}}};function pt(t,e,n){const a=Math.max(e-5,0);return i=n-t(a),(r=5)?i*(1e3/r):0;var i,r}function mt(t){const e=new WeakMap;return(n={})=>{const a=new Map,i=(e=0,i=100,r=0,s=!1)=>{const o=`${e}-${i}-${r}-${s}`;return a.has(o)||a.set(o,t(Object.assign({from:e,to:i,velocity:r,restSpeed:s?.05:2,restDistance:s?.01:.5},n))),a.get(o)},r=t=>(e.has(t)||e.set(t,function(t){let e,n=10,a=t.next(0);const i=[a.value];for(;!a.done&&n<1e4;)a=t.next(n),i.push(a.done?a.target:a.value),void 0===e&&a.hasReachedTarget&&(e=n),n+=10;const r=n-10;return 1===i.length&&i.push(a.value),{keyframes:i,duration:r/1e3,overshootDuration:(null!=e?e:r)/1e3}}(t)),e.get(t));return{createAnimation:(t,e,n,a,s)=>{let o,l;const c=t.length;if(n&&c<=2&&t.every(yt)){const n=a&&s&&s.prevGeneratorState[a],u=n&&(1===c||2===c&&null===t[0])?n.velocity:0,h=t[c-1],f=1===c?null:t[0],d=null===f?n?n.value:parseFloat(e()):f;l=i(d,h,u,null==a?void 0:a.includes("scale"));const p=r(l);o=Object.assign(Object.assign({},p),{easing:"linear"})}else{l=i(0,100);o={easing:"ease",duration:r(l).overshootDuration}}return l&&s&&a&&(s.generators[a]=l),o}}}}const yt=t=>"string"!=typeof t,gt=mt(dt),vt=mt((({from:t=0,velocity:e=0,power:n=.8,decay:a=.325,bounceDamping:i,bounceStiffness:r,changeTarget:s,min:o,max:l,restDistance:c=.5,restSpeed:u})=>{a=x(a);const h={value:t,target:t,velocity:e,hasReachedTarget:!1,done:!1},f=t=>void 0===o?l:void 0===l||Math.abs(o-t)<Math.abs(l-t)?o:l;let d=n*e;const p=t+d,m=void 0===s?p:s(p);h.target=m,m!==p&&(d=m-t);const y=t=>-d*Math.exp(-t/a),g=t=>m+y(t),v=t=>{const n=y(t),a=g(t);h.done=Math.abs(n)<=c,h.value=h.done?m:a,h.velocity=0===t?e:pt(g,t,h.value)};let b,w;const M=t=>{var e;(e=h.value,void 0!==o&&e<o||void 0!==l&&e>l)&&(b=t,w=dt({from:h.value,to:f(h.value),velocity:h.velocity,damping:i,stiffness:r,restDistance:c,restSpeed:u}))};return M(0),{next:t=>{let e=!1;return w||void 0!==b||(e=!0,v(t),M(t)),void 0!==b&&t>b?(h.hasReachedTarget=!0,w.next(t-b)):(h.hasReachedTarget=!1,!e&&v(t),h)}}}));function bt(t,e){return function(t){return"object"==typeof t}(t)?t:t&&e?e[t]:void 0}let xt;function wt(){if(!xt)return;const t=xt.sort(Mt).map(Ot);t.forEach(St),t.forEach(St),xt=void 0}const Mt=(t,e)=>t.getDepth()-e.getDepth(),Ot=t=>t.animateUpdates(),St=t=>t.next(),Tt=["initial","animate"];function At(t={},e){var r;let s,o=e?e.getDepth()+1:0;const l={};for(const n of Tt)l[n]="string"==typeof t[n]?t[n]:null==e?void 0:e.getContext()[n];let c=rt(bt(null!==(r=t.initial)&&void 0!==r?r:l.initial,t.variants)||{},["transition"]);const u=Object.assign({},c);const h={update:e=>{s&&(t=e,function(t){xt?n(xt,t):(xt=[t],requestAnimationFrame(wt))}(h))},animateUpdates:function*(){var e,n;const a=c;c={};const r={};for(const a of Tt){const i=bt(t[a]);if(i)for(const a in i)"transition"!==a&&(c[a]=i[a],r[a]=L(null!==(n=null!==(e=i.transition)&&void 0!==e?e:t.transition)&&void 0!==n?n:{},a))}const o=new Set([...Object.keys(c),...Object.keys(a)]),l=[];o.forEach((t=>{var e,n,i;void 0===c[t]&&(c[t]=u[t]),n=a[t],i=c[t],typeof n==typeof i&&(Array.isArray(n)&&Array.isArray(i)?function(t,e){const n=e.length;if(n!==t.length)return!1;for(let a=0;a<n;a++)if(e[a]!==t[a])return!1;return!0}(n,i):n===i)||(null!==(e=u[t])&&void 0!==e||(u[t]=X(s,t)),l.push(I(s,t,c[t],r[t])))})),yield;const h=l.map((t=>t())).filter(Boolean);if(!h.length)return;const f=c;Promise.all(h.map((t=>t.finished))).then((()=>{var e;null===(e=t.onAnimationComplete)||void 0===e||e.call(t,f)})).catch(i)},getDepth:()=>o,getTarget:()=>c,getOptions:()=>t,getContext:()=>l,mount:t=>(st(Boolean(t),"Animation state must be mounted with valid Element"),s=t,()=>{!function(t){xt&&a(xt,t)}(h)})};return h}function Dt(t){const e={},n=[];for(let a in t){const i=t[a];m(a)&&(o[a]&&(a=o[a]),n.push(a),a=h(a));let r=Array.isArray(i)?i[0]:i;const s=u.get(a);s&&(r=w(i)?s.toDefaultUnit(i):i),e[a]=r}return n.length&&(e.transform=y(n)),e}const jt=t=>`-${t.toLowerCase()}`;function kt(t={}){const e=Dt(t);let n="";for(const t in e)n+=t.startsWith("--")?t:t.replace(/[A-Z]/g,jt),n+=`: ${e[t]}; `;return n}function Et(){console.log("test")}export{it as animate,I as animateStyle,At as createMotionState,kt as createStyleString,Dt as createStyles,vt as glide,gt as spring,nt as stagger,Et as test,ut as timeline};
package/lib/react.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from "@motionone/react";
2
+ //# sourceMappingURL=react.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react.js","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
package/lib/vue.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from "@motionone/vue";
2
+ //# sourceMappingURL=vue.js.map
package/lib/vue.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vue.js","sourceRoot":"","sources":["../src/vue.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "motion",
3
3
  "description": "A tiny, performant animation library for the DOM, Vue and Svelte",
4
- "version": "10.5.0-alpha.1",
4
+ "version": "10.5.0-alpha.2",
5
5
  "author": "Matt Perry",
6
6
  "main": "dist/main.cjs.js",
7
7
  "module": "dist/main.es.js",
@@ -11,6 +11,10 @@
11
11
  "build": "rm -rf lib dist types && tsc -p . && rollup -c"
12
12
  },
13
13
  "dependencies": {
14
- "@motionone/dom": "^10.5.0-alpha.1"
15
- }
14
+ "@motionone/dom": "^10.5.0-alpha.2",
15
+ "@motionone/react": "^10.5.0-alpha.2",
16
+ "@motionone/svelte": "^10.5.0-alpha.2",
17
+ "@motionone/vue": "^10.5.0-alpha.2"
18
+ },
19
+ "gitHead": "46d57e4886dadbbc26c36f278ff09b2271b890b3"
16
20
  }
@@ -0,0 +1,6 @@
1
+ {
2
+ "private": true,
3
+ "main": "../dist/react.cjs.js",
4
+ "module": "../dist/react.es.js",
5
+ "types": "../types/react.d.ts"
6
+ }
@@ -0,0 +1,2 @@
1
+ export * from "@motionone/react";
2
+ //# sourceMappingURL=react.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
package/types/vue.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from "@motionone/vue";
2
+ //# sourceMappingURL=vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vue.d.ts","sourceRoot":"","sources":["../src/vue.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}