@infinityfx/lively 3.5.0-beta.2 → 3.5.0-beta.3

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.
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import{__assign as n,__rest as r}from"tslib";import{jsx as e}from"react/jsx-runtime";import{createContext as i,forwardRef as t,useRef as a,useContext as o,useState as u,useCallback as l,useImperativeHandle as c,useEffect as d,Children as s,isValidElement as m,cloneElement as v}from"react";import f from"./core/clip.js";import p from"./core/timeline.js";import{merge as h,combineRefs as g}from"./core/utils.js";var y=i(null);var b=t((function(i,t){var b=a(null),x=a([]),w=o(y),j=i.inherit&&w?h(["group","animations","triggers","animate","initial","stagger","staggerLimit","deform","disabled","paused"],{},i,w):i,E=j.id,L=void 0===E?"":E,A=j.inherit,k=j.triggers,z=void 0===k?[]:k,C=j.disabled,M=j.adaptive,D=void 0!==M&&M,F=j.manual,N=void 0!==F&&F,O=j.paused,P=void 0!==i.order?i.order:(A&&(null==w?void 0:w.index)||0)+1,T=a([]),V=u((function(){var n={animate:f.from(j.animate,j.initial)};for(var r in j.animations)n[r]=f.from(j.animations[r],j.initial);return n}))[0],q=a(new p(n(n({},j),{mountClips:z.reduce((function(n,r){var e=r.name;return"mount"===r.on&&n.push(V[e||"animate"]),n}),[])}))),B=l((function(n,r,e){var t;void 0===r&&(r={}),void 0===e&&(e=1);var a=V[n];if(C||P>1&&e<2)return 0;h([],r,{reverse:null==a?void 0:a.reverse});for(var o=0,u=r.delay||0,l=a?q.current.time(a):0,c=0,d=x.current;c<d.length;c++){var s=d[c];(null===(t=s.current)||void 0===t?void 0:t.inherit)&&(o=Math.max(s.current.play(n,h([],{delay:u+l},r),e+1),o))}var m=(r.reverse?o:u)*(P/e);return a&&q.current.add(a,h([],{delay:m},r)),i.onAnimationEnd&&setTimeout(i.onAnimationEnd.bind({},n),1e3*(l+m)),l+m}),[C,P]);function G(n,e){void 0===e&&(e={});for(var i=0,t=0,a=z;t<a.length;t++){var o=a[t],u=o.name,l=o.on,c=r(o,["name","on"]);l===n&&(i=Math.max(B(u||"animate",h([],c,e)),i))}return i}return c(g(b,t),(function(){return{play:B,trigger:G,timeline:q.current,children:x.current,inherit:A,adaptive:D,manual:N,id:L}})),d((function(){return q.current[O||C?"pause":"play"]()}),[O,C]),d((function(){for(var n=0;n<z.length;n++){var e=z[n],i=e.name,t=e.on,a=r(e,["name","on"]);if("string"!=typeof t){var o="boolean"==typeof t?t:t.called,u=T.current[n];void 0!==u&&o&&o!==u&&B(i||"animate",a),T.current[n]=o}}}),[z]),d((function(){q.current.connect(j.animate);var n=function(){return q.current.cache()};return window.addEventListener("resize",n),null==w||w.push(b),document.fonts.ready.then((function(){N||q.current.mounted||G("mount"),q.current.mounted=!0})),function(){window.removeEventListener("resize",n),null==w||w.splice(b)}}),[]),e(y.Provider,{value:n(n({},i.passthrough?w:n({index:P},j)),{push:function(n){i.passthrough&&(null==w||w.push(n)),x.current.includes(n)||x.current.push(n)},splice:function(n){i.passthrough&&(null==w||w.splice(n));var r=x.current.indexOf(n)||-1;r>=0&&x.current.splice(r,1)}}),children:s.map(i.children,(function(n){return!m(n)||n.type instanceof Function?n:v(n,{ref:g((function(n){return q.current.insert(n)}),n.ref),pathLength:1,style:h([],{backfaceVisibility:"hidden",willChange:"transform"},n.props.style,V.animate.initial,{strokeDasharray:1}),"data-lively-offset-boundary":!(!["x","y"].some((function(n){var r;return null===(r=i.cachable)||void 0===r?void 0:r.includes(n)}))&&void 0!==i.cachable)||void 0})}))})}));b.displayName="Animatable";export{y as AnimatableContext,b as default};
2
+ import{__assign as n,__rest as r}from"tslib";import{jsx as e}from"react/jsx-runtime";import{createContext as t,forwardRef as i,useRef as a,useContext as o,useState as u,useCallback as d,useImperativeHandle as l,useEffect as c,Children as m,isValidElement as s,cloneElement as v}from"react";import f from"./core/clip.js";import p from"./core/timeline.js";import{merge as h,combineRefs as g}from"./core/utils.js";var y=t(null);var b=i((function(t,i){var b=a(null),x=a([]),w=o(y),j=t.inherit&&w?h(["group","animations","triggers","animate","initial","stagger","staggerLimit","deform","disabled","paused"],{},t,w):t,E=j.id,L=void 0===E?"":E,A=j.inherit,k=j.triggers,z=void 0===k?[]:k,C=j.disabled,M=j.adaptive,D=void 0!==M&&M,F=j.manual,N=void 0!==F&&F,O=j.paused,P=void 0!==t.order?t.order:(A&&(null==w?void 0:w.index)||0)+1,T=a([]),V=u((function(){var n={animate:f.from(j.animate,j.initial)};for(var r in j.animations)n[r]=f.from(j.animations[r],j.initial);return n}))[0],q=a(new p(n(n({},j),{mountClips:z.reduce((function(n,r){var e=r.name;return"mount"===r.on&&n.push(V[e||"animate"]),n}),[])}))),B=d((function(n,r,e){var i;void 0===r&&(r={}),void 0===e&&(e=1);var a=V[n];if(C||P>1&&e<2)return 0;h([],r,{reverse:null==a?void 0:a.reverse});for(var o=0,u=r.delay||0,d=a?q.current.time(a):0,l=0,c=x.current;l<c.length;l++){var m=c[l];(null===(i=m.current)||void 0===i?void 0:i.inherit)&&(o=Math.max(m.current.play(n,h([],{delay:u+d},r),e+1),o))}var s=(r.reverse?o:u)*(P/e);return a&&q.current.add(a,h([],{delay:s},r)),t.onAnimationEnd&&setTimeout(t.onAnimationEnd.bind({},n),1e3*(d+s)),d+s}),[C,P]);function G(n,e){void 0===e&&(e={});for(var t=0,i=0,a=z;i<a.length;i++){var o=a[i],u=o.name,d=o.on,l=r(o,["name","on"]);d===n&&(t=Math.max(B(u||"animate",h([],l,e)),t))}return t}return l(g(b,i),(function(){return{play:B,trigger:G,timeline:q.current,children:x.current,inherit:A,adaptive:D,manual:N,id:L}})),c((function(){return q.current[O||C?"pause":"play"]()}),[O,C]),c((function(){for(var n=0;n<z.length;n++){var e=z[n],t=e.name,i=e.on,a=r(e,["name","on"]);if("string"!=typeof i){var o="boolean"==typeof i?i:i.called,u=T.current[n];void 0!==u&&o&&o!==u&&B(t||"animate",a),T.current[n]=o}}}),[z]),c((function(){q.current.connect(j.animate);var n=function(){return q.current.cache()};return window.addEventListener("resize",n),null==w||w.add(b),document.fonts.ready.then((function(){N||q.current.mounted||G("mount"),q.current.mounted=!0})),function(){window.removeEventListener("resize",n),null==w||w.remove(b)}}),[]),e(y.Provider,{value:n(n({},t.passthrough?w:n({index:P},j)),{add:function(n){t.passthrough&&(null==w||w.add(n)),x.current.includes(n)||x.current.push(n)},remove:function(n){t.passthrough&&(null==w||w.remove(n));var r=x.current.indexOf(n)||-1;r>=0&&x.current.splice(r,1)}}),children:m.map(t.children,(function(n){return!s(n)||n.type instanceof Function?n:v(n,{ref:g((function(n){return q.current.insert(n)}),n.ref),pathLength:1,style:h([],{backfaceVisibility:"hidden",willChange:"transform"},n.props.style,V.animate.initial,{strokeDasharray:1}),"data-lively-offset-boundary":!(!["x","y"].some((function(n){var r;return null===(r=t.cachable)||void 0===r?void 0:r.includes(n)}))&&void 0!==t.cachable)||void 0})}))})}));b.displayName="Animatable";export{y as AnimatableContext,b as default};
3
3
  //# sourceMappingURL=animatable.js.map
package/dist/core/clip.js CHANGED
@@ -1,2 +1,2 @@
1
- import{__rest as e}from"tslib";import{isLink as i}from"../hooks/use-link.js";import t from"./action.js";import{normalizeAnimatableKeyframes as s,distributeAnimatableKeyframes as r,merge as o}from"./utils.js";var a=function(){function a(t,a){var n=t.duration,h=void 0===n?1:n,l=t.delay,d=void 0===l?0:l,m=t.repeat,v=void 0===m?1:m,f=t.alternate,p=void 0!==f&&f,c=t.easing,y=void 0===c?"ease":c,u=t.reverse,g=void 0!==u&&u,k=t.composite,j=void 0===k?"none":k,b=e(t,["duration","delay","repeat","alternate","easing","reverse","composite"]);void 0===a&&(a={}),this.dynamic={};var w={};for(var E in b){var O=b[E],x=a[E];if(E="strokeLength"===E?"strokeDashoffset":E,O instanceof Function)i(O)||(this.dynamic[E]=O);else{var A=Array.isArray(O)?O:[O];A.length<2&&void 0!==x&&A.unshift(x),null===A[0]&&(void 0!==x?A[0]=x:A.splice(0,1)),s(A)&&r(E,A,w)}}this.keyframes=Object.values(w),this.initial=o([],{},a,this.keyframes.length?this.keyframes[0]:{}),delete this.initial.offset,this.isEmpty=!this.keyframes.length&&!Object.keys(this.dynamic).length,this.duration=this.isEmpty?0:h,this.delay=d,this.repeat=v,this.alternate=p,this.easing="exp-spring"===y?"linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1.004 83.8%, 1)":y,this.reverse=g,this.composite=j}return a.from=function(e,i){return e instanceof a?e:new a(e||{},i)},a.prototype.unique=function(e){var i=new a({});for(var t in this)this.hasOwnProperty(t)&&(i[t]=t in e?e[t]:this[t]);return i},a.prototype.play=function(e,i){var s=i.composite,r=void 0===s?this.composite:s,o=i.reverse,a=void 0===o?this.reverse:o,n=i.commit,h=void 0===n||n,l=i.delay,d=void 0===l?0:l;if(!this.isEmpty){var m=new t(e,this.keyframes,{duration:1e3*this.duration,delay:1e3*(d+this.delay),iterations:this.repeat,direction:this.alternate?a?"alternate-reverse":"alternate":a?"reverse":"normal",fill:"both",easing:this.easing,composite:r},this.dynamic);m.commit=h,e.push(m)}},a}();export{a as default};
1
+ import{__rest as e}from"tslib";import{isLink as t}from"../hooks/use-link.js";import i from"./action.js";import{normalizeAnimatableKeyframes as s,distributeAnimatableKeyframes as r,merge as o}from"./utils.js";var a=function(){function a(i,a){var n=i.duration,h=void 0===n?1:n,d=i.delay,l=void 0===d?0:d,m=i.repeat,v=void 0===m?1:m,f=i.alternate,p=void 0!==f&&f,c=i.easing,y=void 0===c?"ease":c,u=i.reverse,g=void 0!==u&&u,k=i.composite,j=void 0===k?"none":k,b=e(i,["duration","delay","repeat","alternate","easing","reverse","composite"]);void 0===a&&(a={}),this.dynamic={};var w={};for(var E in b){var O=b[E],A=a[E];if(E="strokeLength"===E?"strokeDashoffset":E,O instanceof Function)t(O)||(this.dynamic[E]=O);else{var q=Array.isArray(O)?O:[O];q.length<2&&void 0!==A&&q.unshift(A),null===q[0]&&(void 0!==A?q[0]=A:q.splice(0,1)),s(q)&&r(E,q,w)}}this.keyframes=Object.values(w),this.initial=o([],{},a,this.keyframes.length?this.keyframes[0]:{}),delete this.initial.offset,this.isEmpty=!this.keyframes.length&&!Object.keys(this.dynamic).length,this.duration=this.isEmpty?0:h,this.delay=l,this.repeat=v,this.alternate=p,this.easing=y,this.reverse=g,this.composite=j}return a.from=function(e,t){return e instanceof a?e:new a(e||{},t)},a.prototype.unique=function(e){var t=new a({});for(var i in this)this.hasOwnProperty(i)&&(t[i]=i in e?e[i]:this[i]);return t},a.prototype.play=function(e,t){var s=t.composite,r=void 0===s?this.composite:s,o=t.reverse,a=void 0===o?this.reverse:o,n=t.commit,h=void 0===n||n,d=t.delay,l=void 0===d?0:d;if(!this.isEmpty){var m=new i(e,this.keyframes,{duration:1e3*this.duration,delay:1e3*(l+this.delay),iterations:this.repeat,direction:this.alternate?a?"alternate-reverse":"alternate":a?"reverse":"normal",fill:"both",easing:this.easing,composite:r},this.dynamic);m.commit=h,e.push(m)}},a}();export{a as default};
2
2
  //# sourceMappingURL=clip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"clip.js","sources":["../../src/core/clip.ts"],"sourcesContent":[null],"names":["Clip","_a","initial","_b","duration","_c","delay","_d","repeat","_e","alternate","_f","easing","_g","reverse","_h","composite","properties","__rest","this","dynamic","keyframes","prop","val","init","Function","isLink","arr","Array","isArray","length","undefined","unshift","splice","normalizeAnimatableKeyframes","distributeAnimatableKeyframes","Object","values","merge","offset","isEmpty","keys","from","data","prototype","unique","config","clip","key","hasOwnProperty","play","track","commit","action","Action","iterations","direction","fill","push"],"mappings":"gNAoCA,IAAAA,EAAA,WAcI,SAAYA,EAAAC,EAAiJC,GAA/I,IAAAC,EAAAF,EAAAG,SAA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ba,KAAKX,OAASA,EACdW,KAAKT,UAAYA,EACjBS,KAAKP,OAAoB,eAAXA,EAA0B,6QAA+QA,EACvTO,KAAKL,QAAUA,EACfK,KAAKH,UAAYA,CACpB,CAsCL,OApCWhB,EAAA0C,KAAP,SAAYC,EAA8BzC,GACtC,OAAOyC,aAAgB3C,EAAO2C,EAAO,IAAI3C,EAAK2C,GAAQ,CAAA,EAAIzC,IAG9DF,EAAM4C,UAAAC,OAAN,SAAOC,GACH,IAAMC,EAAO,IAAI/C,EAAK,CAAA,GAEtB,IAAK,IAAMgD,KAAO7B,KACVA,KAAK8B,eAAeD,KACnBD,EAAaC,GAAOA,KAAOF,EAASA,EAAOE,GAAgB7B,KAAK6B,IAIzE,OAAOD,GAGX/C,EAAA4C,UAAAM,KAAA,SAAKC,EAAclD,GAAE,IAAAE,EAAAF,EAAAe,UAAAA,OAAY,IAAAb,EAAAgB,KAAKH,UAASb,EAAEE,EAAsBJ,EAAAa,QAAtBA,OAAO,IAAAT,EAAGc,KAAKL,QAAOT,EAAEE,EAAAN,EAAAmD,OAAAA,OAAS,IAAA7C,GAAIA,EAAEE,EAASR,EAAAK,MAATA,OAAK,IAAAG,EAAG,EAACA,EAC7F,IAAIU,KAAKqB,QAAT,CAEA,IAAMa,EAAS,IAAIC,EAAOH,EAAOhC,KAAKE,UAAW,CAC7CjB,SAA0B,IAAhBe,KAAKf,SACfE,MAA8B,KAAtBA,EAAQa,KAAKb,OACrBiD,WAAYpC,KAAKX,OACjBgD,UAAWrC,KAAKT,UACXI,EAAU,oBAAsB,YAChCA,EAAU,UAAY,SAC3B2C,KAAM,OACN7C,OAAQO,KAAKP,OACbI,UAASA,GACVG,KAAKC,SAERiC,EAAOD,OAASA,EAEhBD,EAAMO,KAAKL,EAhBc,GAmBhCrD,CAAD"}
1
+ {"version":3,"file":"clip.js","sources":["../../src/core/clip.ts"],"sourcesContent":[null],"names":["Clip","_a","initial","_b","duration","_c","delay","_d","repeat","_e","alternate","_f","easing","_g","reverse","_h","composite","properties","__rest","this","dynamic","keyframes","prop","val","init","Function","isLink","arr","Array","isArray","length","undefined","unshift","splice","normalizeAnimatableKeyframes","distributeAnimatableKeyframes","Object","values","merge","offset","isEmpty","keys","from","data","prototype","unique","config","clip","key","hasOwnProperty","play","track","commit","action","Action","iterations","direction","fill","push"],"mappings":"gNAoCA,IAAAA,EAAA,WAcI,SAAYA,EAAAC,EAAiJC,GAA/I,IAAAC,EAAAF,EAAAG,SAAAA,OAAW,IAAAD,EAAA,IAAGE,EAAAJ,EAAAK,MAAAA,OAAQ,IAAAD,EAAA,IAAGE,EAAAN,EAAAO,OAAAA,OAAS,IAAAD,EAAA,IAAGE,EAAAR,EAAAS,UAAAA,OAAY,IAAAD,KAAOE,EAAAV,EAAAW,OAAAA,OAAS,IAAAD,EAAA,SAAQE,EAAAZ,EAAAa,QAAAA,OAAU,IAAAD,KAAOE,EAAAd,EAAAe,UAAAA,OAAY,IAAAD,EAAA,SAAWE,EAAnHC,EAAAjB,EAAA,CAAA,WAAA,QAAA,SAAA,YAAA,SAAA,UAAA,mBAAiJ,IAAAC,IAAAA,EAAgC,CAAA,GAV7LiB,KAAOC,QAAsB,GAWzB,IAAMC,EAEF,CAAA,EAEJ,IAAK,IAAIC,KAAQL,EAAY,CACzB,IAAIM,EAAMN,EAAWK,GAAwBE,EAAOtB,EAAQoB,GAG5D,GAFAA,EAAgB,iBAATA,EAA0B,mBAAqBA,EAElDC,aAAeE,SACVC,EAAOH,KAAMJ,KAAKC,QAAQE,GAAyBC,OAD5D,CAKA,IAAMI,EAAMC,MAAMC,QAAQN,GAAOA,EAAM,CAACA,GAEpCI,EAAIG,OAAS,QAAcC,IAATP,GAAoBG,EAAIK,QAAQR,GACvC,OAAXG,EAAI,UAAsBI,IAATP,EAAqBG,EAAI,GAAKH,EAAOG,EAAIM,OAAO,EAAG,IAEnEC,EAA6BP,IAElCQ,EAA8Bb,EAAMK,EAAYN,EAT/C,CAUJ,CAEDF,KAAKE,UAAYe,OA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EAAU,UAAY,SAC3B2C,KAAM,OACN7C,OAAQO,KAAKP,OACbI,UAASA,GACVG,KAAKC,SAERiC,EAAOD,OAASA,EAEhBD,EAAMO,KAAKL,EAhBc,GAmBhCrD,CAAD"}
@@ -44,8 +44,8 @@ export type AnimatableProps<T extends string = any> = {
44
44
  } & SharedProps<T>;
45
45
  type AnimatableContext = {
46
46
  index?: number;
47
- push: (child: React.RefObject<AnimatableType>) => void;
48
- splice: (child: React.RefObject<AnimatableType>) => void;
47
+ add: (child: React.RefObject<AnimatableType>) => void;
48
+ remove: (child: React.RefObject<AnimatableType>) => void;
49
49
  } & SharedProps;
50
50
  export declare const AnimatableContext: import("react").Context<AnimatableContext | null>;
51
51
  declare function AnimatableBase<T extends string>(props: AnimatableProps<T>, ref: React.ForwardedRef<AnimatableType>): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { type Link } from "../hooks/use-link";
3
3
  import type Track from "./track";
4
- export type Easing = 'linear' | 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'step-start' | 'step-end' | 'exp-spring';
4
+ export type Easing = 'linear' | 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'step-start' | 'step-end';
5
5
  export type AnimatableKey = keyof React.CSSProperties | 'strokeLength';
6
6
  export type AnimatableKeyframe = string | number | null | {
7
7
  value?: string | number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infinityfx/lively",
3
- "version": "3.5.0-beta.2",
3
+ "version": "3.5.0-beta.3",
4
4
  "type": "module",
5
5
  "description": "Feature complete, lightweight react animation library.",
6
6
  "main": "dist/index.js",