@nethesis/phone-island 0.7.63 → 0.7.64
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/dist/App.js +1 -1
- package/dist/App.js.map +1 -1
- package/dist/_virtual/_rollupPluginBabelHelpers.js +1 -1
- package/dist/_virtual/index2.js +1 -1
- package/dist/_virtual/index3.js +1 -1
- package/dist/_virtual/index4.js +1 -1
- package/dist/_virtual/index5.js +1 -1
- package/dist/_virtual/index6.js +1 -1
- package/dist/_virtual/index8.js +1 -1
- package/dist/components/AlertGuard.js +1 -1
- package/dist/components/AlertGuard.js.map +1 -1
- package/dist/components/AlertView/index.js +1 -1
- package/dist/components/AlertView/index.js.map +1 -1
- package/dist/components/CallView/Actions.js +1 -1
- package/dist/components/CallView/Actions.js.map +1 -1
- package/dist/components/CallView/BackCall.js +1 -1
- package/dist/components/CallView/BackCall.js.map +1 -1
- package/dist/components/CallView/Timer.d.ts +1 -0
- package/dist/components/CallView/Timer.js +1 -1
- package/dist/components/CallView/Timer.js.map +1 -1
- package/dist/components/CallView/index.js +1 -1
- package/dist/components/CallView/index.js.map +1 -1
- package/dist/components/Hangup.d.ts +10 -0
- package/dist/components/Hangup.js +2 -0
- package/dist/components/Hangup.js.map +1 -0
- package/dist/components/Island.js +1 -1
- package/dist/components/Island.js.map +1 -1
- package/dist/components/KeypadView/Actions.js +1 -1
- package/dist/components/KeypadView/Actions.js.map +1 -1
- package/dist/components/KeypadView/index.js +1 -1
- package/dist/components/KeypadView/index.js.map +1 -1
- package/dist/components/RestAPI.js +1 -1
- package/dist/components/RestAPI.js.map +1 -1
- package/dist/components/Socket.js +1 -1
- package/dist/components/Socket.js.map +1 -1
- package/dist/components/TransferView/ListAvatar.d.ts +7 -0
- package/dist/components/TransferView/ListAvatar.js +2 -0
- package/dist/components/TransferView/ListAvatar.js.map +1 -0
- package/dist/components/TransferView/TransferActions.d.ts +5 -0
- package/dist/components/TransferView/TransferActions.js +2 -0
- package/dist/components/TransferView/TransferActions.js.map +1 -0
- package/dist/components/TransferView/TransferList.d.ts +5 -0
- package/dist/components/TransferView/TransferList.js +2 -0
- package/dist/components/TransferView/TransferList.js.map +1 -0
- package/dist/components/TransferView/index.d.ts +2 -0
- package/dist/components/TransferView/index.js +2 -0
- package/dist/components/TransferView/index.js.map +1 -0
- package/dist/components/ViewsTransition.js +1 -1
- package/dist/components/ViewsTransition.js.map +1 -1
- package/dist/components/WebRTC.js +1 -1
- package/dist/components/WebRTC.js.map +1 -1
- package/dist/events/CallEvents.js +1 -1
- package/dist/events/CallEvents.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/lib/devices/devices.js +1 -1
- package/dist/lib/island/island.d.ts +4 -0
- package/dist/lib/island/island.js +1 -1
- package/dist/lib/island/island.js.map +1 -1
- package/dist/lib/phone/call.d.ts +19 -2
- package/dist/lib/phone/call.js +1 -1
- package/dist/lib/phone/call.js.map +1 -1
- package/dist/lib/user/extensions.d.ts +4 -0
- package/dist/lib/user/extensions.js.map +1 -1
- package/dist/models/alerts.js +1 -1
- package/dist/models/alerts.js.map +1 -1
- package/dist/models/animations.d.ts +466 -12
- package/dist/models/animations.js +1 -1
- package/dist/models/animations.js.map +1 -1
- package/dist/models/currentCall.d.ts +142 -0
- package/dist/models/currentCall.js +1 -1
- package/dist/models/currentCall.js.map +1 -1
- package/dist/models/currentUser.d.ts +2 -42
- package/dist/models/fetchDefaults.js +1 -1
- package/dist/models/fetchDefaults.js.map +1 -1
- package/dist/models/island.d.ts +1 -1
- package/dist/models/island.js.map +1 -1
- package/dist/models/users.d.ts +23 -5
- package/dist/models/users.js +1 -1
- package/dist/models/users.js.map +1 -1
- package/dist/node_modules/@fortawesome/react-fontawesome/index.es.js +1 -1
- package/dist/node_modules/@nethesis/nethesis-light-svg-icons/index.mjs.js +1 -1
- package/dist/node_modules/@nethesis/nethesis-light-svg-icons/index.mjs.js.map +1 -1
- package/dist/node_modules/@nethesis/nethesis-solid-svg-icons/index.mjs.js +1 -1
- package/dist/node_modules/@nethesis/nethesis-solid-svg-icons/index.mjs.js.map +1 -1
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/mic-check/lib/index.js +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-moment/dist/index.js +1 -1
- package/dist/node_modules/react-redux/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +1 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js +1 -1
- package/dist/node_modules/use-sync-external-store/shim/index.js +1 -1
- package/dist/services/astproxy.d.ts +13 -0
- package/dist/services/astproxy.js +2 -0
- package/dist/services/astproxy.js.map +1 -0
- package/dist/services/user.d.ts +5 -1
- package/dist/services/user.js +1 -1
- package/dist/services/user.js.map +1 -1
- package/dist/types/call.d.ts +5 -0
- package/dist/types/endpoints.d.ts +36 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/user.d.ts +2 -21
- package/dist/utils/genericFunctions/timestamp.d.ts +4 -0
- package/dist/utils/genericFunctions/timestamp.js +2 -0
- package/dist/utils/genericFunctions/timestamp.js.map +1 -0
- package/package.json +1 -1
- package/dist/_virtual/framesync.cjs.js +0 -2
- package/dist/_virtual/framesync.cjs.js.map +0 -1
- package/dist/_virtual/hey-listen.es.js +0 -2
- package/dist/_virtual/hey-listen.es.js.map +0 -1
- package/dist/_virtual/index.es.js +0 -2
- package/dist/_virtual/index.es.js.map +0 -1
- package/dist/_virtual/index9.js +0 -2
- package/dist/_virtual/index9.js.map +0 -1
- package/dist/_virtual/valueTypes.cjs.js +0 -2
- package/dist/_virtual/valueTypes.cjs.js.map +0 -1
- package/dist/node_modules/@motionone/animation/dist/Animation.es.js +0 -2
- package/dist/node_modules/@motionone/animation/dist/Animation.es.js.map +0 -1
- package/dist/node_modules/@motionone/animation/dist/utils/easing.es.js +0 -2
- package/dist/node_modules/@motionone/animation/dist/utils/easing.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/animate/animate-style.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/animate/animate-style.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/animate/data.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/animate/data.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/animate/index.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/animate/index.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/animate/style.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/animate/style.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/animate/utils/controls.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/animate/utils/controls.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/animate/utils/css-var.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/animate/utils/css-var.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/animate/utils/easing.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/animate/utils/easing.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/animate/utils/feature-detection.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/animate/utils/feature-detection.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/animate/utils/get-style-name.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/animate/utils/get-style-name.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/animate/utils/keyframes.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/animate/utils/keyframes.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/animate/utils/options.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/animate/utils/options.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/animate/utils/stop-animation.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/animate/utils/stop-animation.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/animate/utils/style-object.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/animate/utils/style-object.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/animate/utils/style-string.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/animate/utils/style-string.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/animate/utils/transforms.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/animate/utils/transforms.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/easing/create-generator-easing.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/easing/create-generator-easing.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/easing/glide/index.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/easing/glide/index.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/easing/spring/index.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/easing/spring/index.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/gestures/in-view.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/gestures/in-view.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/gestures/resize/handle-element.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/gestures/resize/handle-element.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/gestures/resize/handle-window.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/gestures/resize/handle-window.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/gestures/resize/index.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/gestures/resize/index.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/gestures/scroll/index.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/gestures/scroll/index.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/gestures/scroll/info.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/gestures/scroll/info.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/gestures/scroll/offsets/edge.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/gestures/scroll/offsets/edge.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/gestures/scroll/offsets/index.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/gestures/scroll/offsets/index.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/gestures/scroll/offsets/inset.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/gestures/scroll/offsets/inset.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/gestures/scroll/offsets/offset.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/gestures/scroll/offsets/offset.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/gestures/scroll/offsets/presets.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/gestures/scroll/offsets/presets.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/gestures/scroll/on-scroll-handler.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/gestures/scroll/on-scroll-handler.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/index.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/index.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/state/gestures/hover.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/state/gestures/hover.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/state/gestures/in-view.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/state/gestures/in-view.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/state/gestures/press.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/state/gestures/press.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/state/index.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/state/index.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/state/utils/events.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/state/utils/events.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/state/utils/has-changed.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/state/utils/has-changed.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/state/utils/is-variant.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/state/utils/is-variant.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/state/utils/resolve-variant.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/state/utils/resolve-variant.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/state/utils/schedule.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/state/utils/schedule.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/timeline/index.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/timeline/index.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/timeline/utils/calc-time.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/timeline/utils/calc-time.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/timeline/utils/edit.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/timeline/utils/edit.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/timeline/utils/sort.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/timeline/utils/sort.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/utils/resolve-elements.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/utils/resolve-elements.es.js.map +0 -1
- package/dist/node_modules/@motionone/dom/dist/utils/stagger.es.js +0 -2
- package/dist/node_modules/@motionone/dom/dist/utils/stagger.es.js.map +0 -1
- package/dist/node_modules/@motionone/easing/dist/cubic-bezier.es.js +0 -2
- package/dist/node_modules/@motionone/easing/dist/cubic-bezier.es.js.map +0 -1
- package/dist/node_modules/@motionone/easing/dist/steps.es.js +0 -2
- package/dist/node_modules/@motionone/easing/dist/steps.es.js.map +0 -1
- package/dist/node_modules/@motionone/generators/dist/glide/index.es.js +0 -2
- package/dist/node_modules/@motionone/generators/dist/glide/index.es.js.map +0 -1
- package/dist/node_modules/@motionone/generators/dist/spring/defaults.es.js +0 -2
- package/dist/node_modules/@motionone/generators/dist/spring/defaults.es.js.map +0 -1
- package/dist/node_modules/@motionone/generators/dist/spring/index.es.js +0 -2
- package/dist/node_modules/@motionone/generators/dist/spring/index.es.js.map +0 -1
- package/dist/node_modules/@motionone/generators/dist/spring/utils.es.js +0 -2
- package/dist/node_modules/@motionone/generators/dist/spring/utils.es.js.map +0 -1
- package/dist/node_modules/@motionone/generators/dist/utils/has-reached-target.es.js +0 -2
- package/dist/node_modules/@motionone/generators/dist/utils/has-reached-target.es.js.map +0 -1
- package/dist/node_modules/@motionone/generators/dist/utils/pregenerate-keyframes.es.js +0 -2
- package/dist/node_modules/@motionone/generators/dist/utils/pregenerate-keyframes.es.js.map +0 -1
- package/dist/node_modules/@motionone/generators/dist/utils/velocity.es.js +0 -2
- package/dist/node_modules/@motionone/generators/dist/utils/velocity.es.js.map +0 -1
- package/dist/node_modules/@motionone/types/dist/MotionValue.es.js +0 -2
- package/dist/node_modules/@motionone/types/dist/MotionValue.es.js.map +0 -1
- package/dist/node_modules/@motionone/utils/dist/array.es.js +0 -2
- package/dist/node_modules/@motionone/utils/dist/array.es.js.map +0 -1
- package/dist/node_modules/@motionone/utils/dist/clamp.es.js +0 -2
- package/dist/node_modules/@motionone/utils/dist/clamp.es.js.map +0 -1
- package/dist/node_modules/@motionone/utils/dist/defaults.es.js +0 -2
- package/dist/node_modules/@motionone/utils/dist/defaults.es.js.map +0 -1
- package/dist/node_modules/@motionone/utils/dist/easing.es.js +0 -2
- package/dist/node_modules/@motionone/utils/dist/easing.es.js.map +0 -1
- package/dist/node_modules/@motionone/utils/dist/interpolate.es.js +0 -2
- package/dist/node_modules/@motionone/utils/dist/interpolate.es.js.map +0 -1
- package/dist/node_modules/@motionone/utils/dist/is-cubic-bezier.es.js +0 -2
- package/dist/node_modules/@motionone/utils/dist/is-cubic-bezier.es.js.map +0 -1
- package/dist/node_modules/@motionone/utils/dist/is-easing-generator.es.js +0 -2
- package/dist/node_modules/@motionone/utils/dist/is-easing-generator.es.js.map +0 -1
- package/dist/node_modules/@motionone/utils/dist/is-easing-list.es.js +0 -2
- package/dist/node_modules/@motionone/utils/dist/is-easing-list.es.js.map +0 -1
- package/dist/node_modules/@motionone/utils/dist/is-function.es.js +0 -2
- package/dist/node_modules/@motionone/utils/dist/is-function.es.js.map +0 -1
- package/dist/node_modules/@motionone/utils/dist/is-number.es.js +0 -2
- package/dist/node_modules/@motionone/utils/dist/is-number.es.js.map +0 -1
- package/dist/node_modules/@motionone/utils/dist/is-string.es.js +0 -2
- package/dist/node_modules/@motionone/utils/dist/is-string.es.js.map +0 -1
- package/dist/node_modules/@motionone/utils/dist/mix.es.js +0 -2
- package/dist/node_modules/@motionone/utils/dist/mix.es.js.map +0 -1
- package/dist/node_modules/@motionone/utils/dist/noop.es.js +0 -2
- package/dist/node_modules/@motionone/utils/dist/noop.es.js.map +0 -1
- package/dist/node_modules/@motionone/utils/dist/offset.es.js +0 -2
- package/dist/node_modules/@motionone/utils/dist/offset.es.js.map +0 -1
- package/dist/node_modules/@motionone/utils/dist/progress.es.js +0 -2
- package/dist/node_modules/@motionone/utils/dist/progress.es.js.map +0 -1
- package/dist/node_modules/@motionone/utils/dist/time.es.js +0 -2
- package/dist/node_modules/@motionone/utils/dist/time.es.js.map +0 -1
- package/dist/node_modules/@motionone/utils/dist/velocity.es.js +0 -2
- package/dist/node_modules/@motionone/utils/dist/velocity.es.js.map +0 -1
- package/dist/node_modules/@motionone/utils/dist/wrap.es.js +0 -2
- package/dist/node_modules/@motionone/utils/dist/wrap.es.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/cjs/index.js +0 -2
- package/dist/node_modules/framer-motion/dist/cjs/index.js.map +0 -1
- package/dist/node_modules/framesync/dist/framesync.cjs.js +0 -2
- package/dist/node_modules/framesync/dist/framesync.cjs.js.map +0 -1
- package/dist/node_modules/hey-listen/dist/hey-listen.es.js +0 -2
- package/dist/node_modules/hey-listen/dist/hey-listen.es.js.map +0 -1
- package/dist/node_modules/style-value-types/dist/valueTypes.cjs.js +0 -2
- package/dist/node_modules/style-value-types/dist/valueTypes.cjs.js.map +0 -1
- package/dist/services/extensions.d.ts +0 -4
- package/dist/services/extensions.js +0 -2
- package/dist/services/extensions.js.map +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../utils/dist/time.es.js"),r=require("../utils/velocity.es.js"),t=require("../spring/index.es.js");exports.glide=function(i){var n=i.from,o=void 0===n?0:n,a=i.velocity,s=void 0===a?0:a,c=i.power,u=void 0===c?.8:c,d=i.decay,v=void 0===d?.325:d,f=i.bounceDamping,g=i.bounceStiffness,h=i.changeTarget,p=i.min,l=i.max,m=i.restDistance,b=void 0===m?.5:m,y=i.restSpeed;v=e.time.ms(v);var x={hasReachedTarget:!1,done:!1,current:o,target:o},M=function(e){return void 0===p?l:void 0===l||Math.abs(p-e)<Math.abs(l-e)?p:l},j=u*s,T=o+j,q=void 0===h?T:h(T);x.target=q,q!==T&&(j=q-o);var D,R,S=function(e){return-j*Math.exp(-e/v)},_=function(e){return q+S(e)},w=function(e){var r=S(e),t=_(e);x.done=Math.abs(r)<=b,x.current=x.done?q:t},G=function(e){var i;(i=x.current,void 0!==p&&i<p||void 0!==l&&i>l)&&(D=e,R=t.spring({from:x.current,to:M(x.current),velocity:r.calcGeneratorVelocity(_,e,x.current),damping:f,stiffness:g,restDistance:b,restSpeed:y}))};return G(0),function(e){var r=!1;return R||void 0!==D||(r=!0,w(e),G(e)),void 0!==D&&e>D?(x.hasReachedTarget=!0,R(e-D)):(x.hasReachedTarget=!1,!r&&w(e),x)}};
|
|
2
|
-
//# sourceMappingURL=index.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../../../../node_modules/@motionone/generators/dist/glide/index.es.js"],"sourcesContent":["import { time } from '@motionone/utils';\nimport { calcGeneratorVelocity } from '../utils/velocity.es.js';\nimport { spring } from '../spring/index.es.js';\n\nconst glide = ({ from = 0, velocity = 0.0, power = 0.8, decay = 0.325, bounceDamping, bounceStiffness, changeTarget, min, max, restDistance = 0.5, restSpeed, }) => {\n decay = time.ms(decay);\n const state = {\n hasReachedTarget: false,\n done: false,\n current: from,\n target: from,\n };\n const isOutOfBounds = (v) => (min !== undefined && v < min) || (max !== undefined && v > max);\n const nearestBoundary = (v) => {\n if (min === undefined)\n return max;\n if (max === undefined)\n return min;\n return Math.abs(min - v) < Math.abs(max - v) ? min : max;\n };\n let amplitude = power * velocity;\n const ideal = from + amplitude;\n const target = changeTarget === undefined ? ideal : changeTarget(ideal);\n state.target = target;\n /**\n * If the target has changed we need to re-calculate the amplitude, otherwise\n * the animation will start from the wrong position.\n */\n if (target !== ideal)\n amplitude = target - from;\n const calcDelta = (t) => -amplitude * Math.exp(-t / decay);\n const calcLatest = (t) => target + calcDelta(t);\n const applyFriction = (t) => {\n const delta = calcDelta(t);\n const latest = calcLatest(t);\n state.done = Math.abs(delta) <= restDistance;\n state.current = state.done ? target : latest;\n };\n /**\n * Ideally this would resolve for t in a stateless way, we could\n * do that by always precalculating the animation but as we know\n * this will be done anyway we can assume that spring will\n * be discovered during that.\n */\n let timeReachedBoundary;\n let spring$1;\n const checkCatchBoundary = (t) => {\n if (!isOutOfBounds(state.current))\n return;\n timeReachedBoundary = t;\n spring$1 = spring({\n from: state.current,\n to: nearestBoundary(state.current),\n velocity: calcGeneratorVelocity(calcLatest, t, state.current),\n damping: bounceDamping,\n stiffness: bounceStiffness,\n restDistance,\n restSpeed,\n });\n };\n checkCatchBoundary(0);\n return (t) => {\n /**\n * We need to resolve the friction to figure out if we need a\n * spring but we don't want to do this twice per frame. So here\n * we flag if we updated for this frame and later if we did\n * we can skip doing it again.\n */\n let hasUpdatedFrame = false;\n if (!spring$1 && timeReachedBoundary === undefined) {\n hasUpdatedFrame = true;\n applyFriction(t);\n checkCatchBoundary(t);\n }\n /**\n * If we have a spring and the provided t is beyond the moment the friction\n * animation crossed the min/max boundary, use the spring.\n */\n if (timeReachedBoundary !== undefined && t > timeReachedBoundary) {\n state.hasReachedTarget = true;\n return spring$1(t - timeReachedBoundary);\n }\n else {\n state.hasReachedTarget = false;\n !hasUpdatedFrame && applyFriction(t);\n return state;\n }\n };\n};\n\nexport { glide };\n"],"names":["_ref","_ref$from","from","_ref$velocity","velocity","_ref$power","power","_ref$decay","decay","bounceDamping","bounceStiffness","changeTarget","min","max","_ref$restDistance","restDistance","restSpeed","time","ms","state","hasReachedTarget","done","current","target","nearestBoundary","v","undefined","Math","abs","amplitude","ideal","timeReachedBoundary","spring$1","calcDelta","t","exp","calcLatest","applyFriction","delta","latest","checkCatchBoundary","spring","to","calcGeneratorVelocity","damping","stiffness","hasUpdatedFrame"],"mappings":"0MAIc,SAAsJA,GAAA,IAAAC,EAAAD,EAAnJE,KAAAA,aAAO,EAACD,EAAAE,EAAAH,EAAEI,SAAAA,aAAW,EAAGD,EAAAE,EAAAL,EAAEM,MAAAA,aAAQ,GAAGD,EAAAE,EAAAP,EAAEQ,MAAAA,aAAQ,KAAKD,EAAEE,IAAAA,cAAeC,IAAAA,gBAAiBC,IAAAA,aAAcC,IAAAA,IAAKC,IAAAA,IAAGC,EAAAd,EAAEe,aAAAA,aAAe,GAAGD,EAAEE,IAAAA,UAC/IR,EAAQS,EAAIA,KAACC,GAAGV,GAChB,IAAMW,EAAQ,CACVC,kBAAkB,EAClBC,MAAM,EACNC,QAASpB,EACTqB,OAAQrB,GAGNsB,EAAkB,SAACC,GACrB,YAAYC,IAARd,EACOC,OACCa,IAARb,GAEGc,KAAKC,IAAIhB,EAAMa,GAAKE,KAAKC,IAAIf,EAAMY,GAD/Bb,EAC0CC,GAErDgB,EAAYvB,EAAQF,EAClB0B,EAAQ5B,EAAO2B,EACfN,OAA0BG,IAAjBf,EAA6BmB,EAAQnB,EAAamB,GACjEX,EAAMI,OAASA,EAKXA,IAAWO,IACXD,EAAYN,EAASrB,GACzB,IAcI6B,EACAC,EAfEC,EAAY,SAACC,GAAC,OAAML,EAAYF,KAAKQ,KAAKD,EAAI1B,EAAM,EACpD4B,EAAa,SAACF,GAAC,OAAKX,EAASU,EAAUC,EAAE,EACzCG,EAAgB,SAACH,GACnB,IAAMI,EAAQL,EAAUC,GAClBK,EAASH,EAAWF,GAC1Bf,EAAME,KAAOM,KAAKC,IAAIU,IAAUvB,EAChCI,EAAMG,QAAUH,EAAME,KAAOE,EAASgB,GAUpCC,EAAqB,SAACN,GAlCN,IAACT,KAmCAN,EAAMG,aAnCSI,IAARd,GAAqBa,EAAIb,QAAiBc,IAARb,GAAqBY,EAAIZ,KAqCrFkB,EAAsBG,EACtBF,EAAWS,EAAAA,OAAO,CACdvC,KAAMiB,EAAMG,QACZoB,GAAIlB,EAAgBL,EAAMG,SAC1BlB,SAAUuC,EAAAA,sBAAsBP,EAAYF,EAAGf,EAAMG,SACrDsB,QAASnC,EACToC,UAAWnC,EACXK,aAAAA,EACAC,UAAAA,MAIR,OADAwB,EAAmB,GACZ,SAACN,GAOJ,IAAIY,GAAkB,EAUtB,OATKd,QAAoCN,IAAxBK,IACbe,GAAkB,EAClBT,EAAcH,GACdM,EAAmBN,SAMKR,IAAxBK,GAAqCG,EAAIH,GACzCZ,EAAMC,kBAAmB,EAClBY,EAASE,EAAIH,KAGpBZ,EAAMC,kBAAmB,GACxB0B,GAAmBT,EAAcH,GAC3Bf,GAGnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.es.js","sources":["../../../../../../node_modules/@motionone/generators/dist/spring/defaults.es.js"],"sourcesContent":["const defaults = {\n stiffness: 100.0,\n damping: 10.0,\n mass: 1.0,\n};\n\nexport { defaults };\n"],"names":["stiffness","damping","mass"],"mappings":"qFAAiB,CACbA,UAAW,IACXC,QAAS,GACTC,KAAM"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../utils/dist/time.es.js"),t=require("./defaults.es.js"),r=require("./utils.es.js"),s=require("../utils/has-reached-target.es.js"),a=require("../utils/velocity.es.js");exports.spring=function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=i.stiffness,u=void 0===n?t.defaults.stiffness:n,o=i.damping,d=void 0===o?t.defaults.damping:o,c=i.mass,h=void 0===c?t.defaults.mass:c,l=i.from,v=void 0===l?0:l,f=i.to,g=void 0===f?1:f,p=i.velocity,M=void 0===p?0:p,m=i.restSpeed,q=void 0===m?2:m,j=i.restDistance,x=void 0===j?.5:j;M=M?e.time.s(M):0;var y,R={done:!1,hasReachedTarget:!1,current:v,target:g},b=g-v,T=Math.sqrt(u/h)/1e3,D=r.calcDampingRatio(u,d,h);if(D<1){var _=T*Math.sqrt(1-D*D);y=function(e){return g-Math.exp(-D*T*e)*((D*T*b-M)/_*Math.sin(_*e)+b*Math.cos(_*e))}}else y=function(e){return g-Math.exp(-T*e)*(b+(T*b-M)*e)};return function(e){R.current=y(e);var t=0===e?M:a.calcGeneratorVelocity(y,e,R.current),r=Math.abs(t)<=q,i=Math.abs(g-R.current)<=x;return R.done=r&&i,R.hasReachedTarget=s.hasReachedTarget(v,g,R.current),R}};
|
|
2
|
-
//# sourceMappingURL=index.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../../../../node_modules/@motionone/generators/dist/spring/index.es.js"],"sourcesContent":["import { time } from '@motionone/utils';\nimport { defaults } from './defaults.es.js';\nimport { calcDampingRatio } from './utils.es.js';\nimport { hasReachedTarget } from '../utils/has-reached-target.es.js';\nimport { calcGeneratorVelocity } from '../utils/velocity.es.js';\n\nconst spring = ({ stiffness = defaults.stiffness, damping = defaults.damping, mass = defaults.mass, from = 0, to = 1, velocity = 0.0, restSpeed = 2, restDistance = 0.5, } = {}) => {\n velocity = velocity ? time.s(velocity) : 0.0;\n const state = {\n done: false,\n hasReachedTarget: false,\n current: from,\n target: to,\n };\n const initialDelta = to - from;\n const undampedAngularFreq = Math.sqrt(stiffness / mass) / 1000;\n const dampingRatio = calcDampingRatio(stiffness, damping, mass);\n let resolveSpring;\n if (dampingRatio < 1) {\n const angularFreq = undampedAngularFreq * Math.sqrt(1 - dampingRatio * dampingRatio);\n // Underdamped spring (bouncy)\n resolveSpring = (t) => to -\n Math.exp(-dampingRatio * undampedAngularFreq * t) *\n (((-velocity + dampingRatio * undampedAngularFreq * initialDelta) /\n angularFreq) *\n Math.sin(angularFreq * t) +\n initialDelta * Math.cos(angularFreq * t));\n }\n else {\n // Critically damped spring\n resolveSpring = (t) => {\n return (to -\n Math.exp(-undampedAngularFreq * t) *\n (initialDelta + (-velocity + undampedAngularFreq * initialDelta) * t));\n };\n }\n return (t) => {\n state.current = resolveSpring(t);\n const currentVelocity = t === 0\n ? velocity\n : calcGeneratorVelocity(resolveSpring, t, state.current);\n const isBelowVelocityThreshold = Math.abs(currentVelocity) <= restSpeed;\n const isBelowDisplacementThreshold = Math.abs(to - state.current) <= restDistance;\n state.done = isBelowVelocityThreshold && isBelowDisplacementThreshold;\n state.hasReachedTarget = hasReachedTarget(from, to, state.current);\n return state;\n };\n};\n\nexport { spring };\n"],"names":["_ref","arguments","length","undefined","_ref$stiffness","stiffness","defaults","_ref$damping","damping","_ref$mass","mass","_ref$from","from","_ref$to","to","_ref$velocity","velocity","_ref$restSpeed","restSpeed","_ref$restDistance","restDistance","time","s","resolveSpring","state","done","hasReachedTarget","current","target","initialDelta","undampedAngularFreq","Math","sqrt","dampingRatio","calcDampingRatio","angularFreq","t","exp","sin","cos","currentVelocity","calcGeneratorVelocity","isBelowVelocityThreshold","abs","isBelowDisplacementThreshold"],"mappings":"gRAMe,WAAqK,IAAAA,EAAAC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAP,CAAE,EAAAG,EAAAJ,EAA7JK,UAAAA,OAAS,IAAAD,EAAGE,EAAQA,SAACD,UAASD,EAAAG,EAAAP,EAAEQ,QAAAA,OAAO,IAAAD,EAAGD,EAAQA,SAACE,QAAOD,EAAAE,EAAAT,EAAEU,KAAAA,OAAI,IAAAD,EAAGH,EAAQA,SAACI,KAAID,EAAAE,EAAAX,EAAEY,KAAAA,aAAO,EAACD,EAAAE,EAAAb,EAAEc,GAAAA,aAAK,EAACD,EAAAE,EAAAf,EAAEgB,SAAAA,aAAW,EAAGD,EAAAE,EAAAjB,EAAEkB,UAAAA,aAAY,EAACD,EAAAE,EAAAnB,EAAEoB,aAAAA,aAAe,GAAGD,EACnKH,EAAWA,EAAWK,EAAIA,KAACC,EAAEN,GAAY,EACzC,IASIO,EATEC,EAAQ,CACVC,MAAM,EACNC,kBAAkB,EAClBC,QAASf,EACTgB,OAAQd,GAENe,EAAef,EAAKF,EACpBkB,EAAsBC,KAAKC,KAAK3B,EAAYK,GAAQ,IACpDuB,EAAeC,EAAgBA,iBAAC7B,EAAWG,EAASE,GAE1D,GAAIuB,EAAe,EAAG,CAClB,IAAME,EAAcL,EAAsBC,KAAKC,KAAK,EAAIC,EAAeA,GAEvEV,EAAgB,SAACa,GAAC,OAAKtB,EACnBiB,KAAKM,KAAKJ,EAAeH,EAAsBM,KAC5BH,EAAeH,EAAsBD,EAAhDb,GACAmB,EACAJ,KAAKO,IAAIH,EAAcC,GACvBP,EAAeE,KAAKQ,IAAIJ,EAAcC,GAAG,CACzD,MAGIb,EAAgB,SAACa,GACb,OAAQtB,EACJiB,KAAKM,KAAKP,EAAsBM,IAC3BP,GAA4BC,EAAsBD,EAAjCb,GAAiDoB,IAGnF,OAAO,SAACA,GACJZ,EAAMG,QAAUJ,EAAca,GAC9B,IAAMI,EAAwB,IAANJ,EAClBpB,EACAyB,wBAAsBlB,EAAea,EAAGZ,EAAMG,SAC9Ce,EAA2BX,KAAKY,IAAIH,IAAoBtB,EACxD0B,EAA+Bb,KAAKY,IAAI7B,EAAKU,EAAMG,UAAYP,EAGrE,OAFAI,EAAMC,KAAOiB,GAA4BE,EACzCpB,EAAME,iBAAmBA,mBAAiBd,EAAME,EAAIU,EAAMG,SACnDH,EAEf"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defaults.es.js");exports.calcDampingRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.defaults.stiffness,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.defaults.damping,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.defaults.mass;return s/(2*Math.sqrt(t*a))};
|
|
2
|
-
//# sourceMappingURL=utils.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.es.js","sources":["../../../../../../node_modules/@motionone/generators/dist/spring/utils.es.js"],"sourcesContent":["import { defaults } from './defaults.es.js';\n\nconst calcDampingRatio = (stiffness = defaults.stiffness, damping = defaults.damping, mass = defaults.mass) => damping / (2 * Math.sqrt(stiffness * mass));\n\nexport { calcDampingRatio };\n"],"names":["stiffness","arguments","length","undefined","defaults","damping","mass","Math","sqrt"],"mappings":"+HAEyB,WAAH,IAAIA,EAASC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAGG,EAAAA,SAASJ,UAAWK,EAAOJ,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAGG,EAAAA,SAASC,QAASC,EAAIL,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAGG,EAAAA,SAASE,KAAI,OAAKD,GAAW,EAAIE,KAAKC,KAAKR,EAAYM,GAAM"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"has-reached-target.es.js","sources":["../../../../../../node_modules/@motionone/generators/dist/utils/has-reached-target.es.js"],"sourcesContent":["function hasReachedTarget(origin, target, current) {\n return ((origin < target && current >= target) ||\n (origin > target && current <= target));\n}\n\nexport { hasReachedTarget };\n"],"names":["origin","target","current"],"mappings":"6FAAA,SAA0BA,EAAQC,EAAQC,GACtC,OAASF,EAASC,GAAUC,GAAWD,GAClCD,EAASC,GAAUC,GAAWD,CACvC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../utils/dist/noop.es.js");exports.pregenerateKeyframes=function(r){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.noopReturn,o=void 0,n=10,u=r(0),s=[t(u.current)];!u.done&&n<1e4;)u=r(n),s.push(t(u.done?u.target:u.current)),void 0===o&&u.hasReachedTarget&&(o=n),n+=10;var a=n-10;return 1===s.length&&s.push(u.current),{keyframes:s,duration:a/1e3,overshootDuration:(null!=o?o:a)/1e3}};
|
|
2
|
-
//# sourceMappingURL=pregenerate-keyframes.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pregenerate-keyframes.es.js","sources":["../../../../../../node_modules/@motionone/generators/dist/utils/pregenerate-keyframes.es.js"],"sourcesContent":["import { noopReturn } from '@motionone/utils';\n\nconst timeStep = 10;\nconst maxDuration = 10000;\nfunction pregenerateKeyframes(generator, toUnit = noopReturn) {\n let overshootDuration = undefined;\n let timestamp = timeStep;\n let state = generator(0);\n const keyframes = [toUnit(state.current)];\n while (!state.done && timestamp < maxDuration) {\n state = generator(timestamp);\n keyframes.push(toUnit(state.done ? state.target : state.current));\n if (overshootDuration === undefined && state.hasReachedTarget) {\n overshootDuration = timestamp;\n }\n timestamp += timeStep;\n }\n const duration = timestamp - timeStep;\n /**\n * If generating an animation that didn't actually move,\n * generate a second keyframe so we have an origin and target.\n */\n if (keyframes.length === 1)\n keyframes.push(state.current);\n return {\n keyframes,\n duration: duration / 1000,\n overshootDuration: (overshootDuration !== null && overshootDuration !== void 0 ? overshootDuration : duration) / 1000,\n };\n}\n\nexport { pregenerateKeyframes };\n"],"names":["generator","toUnit","noopReturn","overshootDuration","undefined","timestamp","state","keyframes","current","done","push","target","hasReachedTarget","duration","length"],"mappings":"iJAIA,SAA8BA,GAK1B,IAL0D,IAArBC,yDAASC,EAAAA,WAC1CC,OAAoBC,EACpBC,EAJS,GAKTC,EAAQN,EAAU,GAChBO,EAAY,CAACN,EAAOK,EAAME,WACxBF,EAAMG,MAAQJ,EANN,KAOZC,EAAQN,EAAUK,GAClBE,EAAUG,KAAKT,EAAOK,EAAMG,KAAOH,EAAMK,OAASL,EAAME,eAC9BJ,IAAtBD,GAAmCG,EAAMM,mBACzCT,EAAoBE,GAExBA,GAbS,GAeb,IAAMQ,EAAWR,EAfJ,GAsBb,OAFyB,IAArBE,EAAUO,QACVP,EAAUG,KAAKJ,EAAME,SAClB,CACHD,UAAAA,EACAM,SAAUA,EAAW,IACrBV,mBAAoBA,QAA6DA,EAAoBU,GAAY,IAEzH"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"velocity.es.js","sources":["../../../../../../node_modules/@motionone/generators/dist/utils/velocity.es.js"],"sourcesContent":["import { velocityPerSecond } from '@motionone/utils';\n\nconst sampleT = 5; // ms\nfunction calcGeneratorVelocity(resolveValue, t, current) {\n const prevT = Math.max(t - sampleT, 0);\n return velocityPerSecond(current - resolveValue(prevT), t - prevT);\n}\n\nexport { calcGeneratorVelocity };\n"],"names":["resolveValue","t","current","prevT","Math","max","velocityPerSecond"],"mappings":"sJAGA,SAA+BA,EAAcC,EAAGC,GAC5C,IAAMC,EAAQC,KAAKC,IAAIJ,EAFX,EAEwB,GACpC,OAAOK,EAAAA,kBAAkBJ,EAAUF,EAAaG,GAAQF,EAAIE,EAChE"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/_rollupPluginBabelHelpers.js"),n=function(){function n(){e.classCallCheck(this,n)}return e.createClass(n,[{key:"setAnimation",value:function(e){var n=this;this.animation=e,null==e||e.finished.then((function(){return n.clearAnimation()})).catch((function(){}))}},{key:"clearAnimation",value:function(){this.animation=this.generator=void 0}}]),n}();exports.MotionValue=n;
|
|
2
|
-
//# sourceMappingURL=MotionValue.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MotionValue.es.js","sources":["../../../../../node_modules/@motionone/types/dist/MotionValue.es.js"],"sourcesContent":["/**\n * The MotionValue tracks the state of a single animatable\n * value. Currently, updatedAt and current are unused. The\n * long term idea is to use this to minimise the number\n * of DOM reads, and to abstract the DOM interactions here.\n */\nclass MotionValue {\n setAnimation(animation) {\n this.animation = animation;\n animation === null || animation === void 0 ? void 0 : animation.finished.then(() => this.clearAnimation()).catch(() => { });\n }\n clearAnimation() {\n this.animation = this.generator = undefined;\n }\n}\n\nexport { MotionValue };\n"],"names":["MotionValue","_classCallCheck","this","_createClass","createClass","key","value","animation","_this","finished","then","clearAnimation","catch","generator","undefined"],"mappings":"uIAMMA,EAAW,WAAA,SAAAA,IAAAC,iBAAAC,KAAAF,EAAA,CAOZ,OAPYG,EAAAC,YAAAJ,EAAA,CAAA,CAAAK,IAAA,eAAAC,MACb,SAAaC,GAAW,IAAAC,EAAAN,KACpBA,KAAKK,UAAYA,EACjBA,SAAsDA,EAAUE,SAASC,MAAK,WAAA,OAAMF,EAAKG,gBAAgB,IAAEC,OAAM,WAAM,GAC3H,GAAC,CAAAP,IAAA,iBAAAC,MACD,WACIJ,KAAKK,UAAYL,KAAKW,eAAYC,CACtC,KAACd,CAAA,CAPY"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"array.es.js","sources":["../../../../../node_modules/@motionone/utils/dist/array.es.js"],"sourcesContent":["function addUniqueItem(array, item) {\n array.indexOf(item) === -1 && array.push(item);\n}\nfunction removeItem(arr, item) {\n const index = arr.indexOf(item);\n index > -1 && arr.splice(index, 1);\n}\n\nexport { addUniqueItem, removeItem };\n"],"names":["array","item","indexOf","push","arr","index","splice"],"mappings":"0FAAA,SAAuBA,EAAOC,IACD,IAAzBD,EAAME,QAAQD,IAAgBD,EAAMG,KAAKF,EAC7C,qBACA,SAAoBG,EAAKH,GACrB,IAAMI,EAAQD,EAAIF,QAAQD,GAC1BI,GAAS,GAAKD,EAAIE,OAAOD,EAAO,EACpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clamp.es.js","sources":["../../../../../node_modules/@motionone/utils/dist/clamp.es.js"],"sourcesContent":["const clamp = (min, max, v) => Math.min(Math.max(v, min), max);\n\nexport { clamp };\n"],"names":["min","max","v","Math"],"mappings":"kFAAc,SAACA,EAAKC,EAAKC,GAAC,OAAKC,KAAKH,IAAIG,KAAKF,IAAIC,EAAGF,GAAMC,EAAI"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.es.js","sources":["../../../../../node_modules/@motionone/utils/dist/defaults.es.js"],"sourcesContent":["const defaults = {\n duration: 0.3,\n delay: 0,\n endDelay: 0,\n repeat: 0,\n easing: \"ease\",\n};\n\nexport { defaults };\n"],"names":["duration","delay","endDelay","repeat","easing"],"mappings":"qFAAiB,CACbA,SAAU,GACVC,MAAO,EACPC,SAAU,EACVC,OAAQ,EACRC,OAAQ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"easing.es.js","sources":["../../../../../node_modules/@motionone/utils/dist/easing.es.js"],"sourcesContent":["import { isEasingList } from './is-easing-list.es.js';\nimport { wrap } from './wrap.es.js';\n\nfunction getEasingForSegment(easing, i) {\n return isEasingList(easing)\n ? easing[wrap(0, easing.length, i)]\n : easing;\n}\n\nexport { getEasingForSegment };\n"],"names":["easing","i","isEasingList","wrap","length"],"mappings":"kKAGA,SAA6BA,EAAQC,GACjC,OAAOC,eAAaF,GACdA,EAAOG,EAAIA,KAAC,EAAGH,EAAOI,OAAQH,IAC9BD,CACV"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./mix.es.js"),r=require("./noop.es.js"),s=require("./offset.es.js"),t=require("./progress.es.js"),n=require("./easing.es.js"),i=require("./clamp.es.js");exports.interpolate=function(o){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.defaultOffset(o.length),l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.noopReturn,f=o.length,a=f-u.length;return a>0&&s.fillOffset(u,a),function(r){for(var s=0;s<f-2&&!(r<u[s+1]);s++);var a=i.clamp(0,1,t.progress(u[s],u[s+1],r));return a=n.getEasingForSegment(l,s)(a),e.mix(o[s],o[s+1],a)}};
|
|
2
|
-
//# sourceMappingURL=interpolate.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interpolate.es.js","sources":["../../../../../node_modules/@motionone/utils/dist/interpolate.es.js"],"sourcesContent":["import { mix } from './mix.es.js';\nimport { noopReturn } from './noop.es.js';\nimport { fillOffset, defaultOffset } from './offset.es.js';\nimport { progress } from './progress.es.js';\nimport { getEasingForSegment } from './easing.es.js';\nimport { clamp } from './clamp.es.js';\n\nfunction interpolate(output, input = defaultOffset(output.length), easing = noopReturn) {\n const length = output.length;\n /**\n * If the input length is lower than the output we\n * fill the input to match. This currently assumes the input\n * is an animation progress value so is a good candidate for\n * moving outside the function.\n */\n const remainder = length - input.length;\n remainder > 0 && fillOffset(input, remainder);\n return (t) => {\n let i = 0;\n for (; i < length - 2; i++) {\n if (t < input[i + 1])\n break;\n }\n let progressInRange = clamp(0, 1, progress(input[i], input[i + 1], t));\n const segmentEasing = getEasingForSegment(easing, i);\n progressInRange = segmentEasing(progressInRange);\n return mix(output[i], output[i + 1], progressInRange);\n };\n}\n\nexport { interpolate };\n"],"names":["output","input","defaultOffset","length","easing","noopReturn","remainder","fillOffset","t","i","progressInRange","clamp","progress","getEasingForSegment","segmentEasing","mix"],"mappings":"gQAOA,SAAqBA,GAAmE,IAA3DC,EAAQC,UAAAA,OAAAA,QAAAA,IAAAA,UAAAA,GAAAA,UAAAA,GAAAA,EAAaA,cAACF,EAAOG,QAASC,yDAASC,EAAAA,WAClEF,EAASH,EAAOG,OAOhBG,EAAYH,EAASF,EAAME,OAEjC,OADAG,EAAY,GAAKC,EAAAA,WAAWN,EAAOK,GAC5B,SAACE,GAEJ,IADA,IAAIC,EAAI,EACDA,EAAIN,EAAS,KACZK,EAAIP,EAAMQ,EAAI,IADCA,KAIvB,IAAIC,EAAkBC,EAAKA,MAAC,EAAG,EAAGC,EAAQA,SAACX,EAAMQ,GAAIR,EAAMQ,EAAI,GAAID,IAGnE,OADAE,EADsBG,EAAAA,oBAAoBT,EAAQK,EAChCK,CAAcJ,GACzBK,EAAGA,IAACf,EAAOS,GAAIT,EAAOS,EAAI,GAAIC,GAE7C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-cubic-bezier.es.js","sources":["../../../../../node_modules/@motionone/utils/dist/is-cubic-bezier.es.js"],"sourcesContent":["import { isNumber } from './is-number.es.js';\n\nconst isCubicBezier = (easing) => Array.isArray(easing) && isNumber(easing[0]);\n\nexport { isCubicBezier };\n"],"names":["easing","Array","isArray","isNumber"],"mappings":"6HAEsB,SAACA,GAAM,OAAKC,MAAMC,QAAQF,IAAWG,EAAAA,SAASH,EAAO,GAAG"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/_rollupPluginBabelHelpers.js");exports.isEasingGenerator=function(r){return"object"===e.typeof(r)&&Boolean(r.createAnimation)};
|
|
2
|
-
//# sourceMappingURL=is-easing-generator.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-easing-generator.es.js","sources":["../../../../../node_modules/@motionone/utils/dist/is-easing-generator.es.js"],"sourcesContent":["const isEasingGenerator = (easing) => typeof easing === \"object\" &&\n Boolean(easing.createAnimation);\n\nexport { isEasingGenerator };\n"],"names":["easing","_typeof","Boolean","createAnimation"],"mappings":"iKAA0B,SAACA,GAAM,MAAuB,WAAlBC,EAAAA,OAAOD,IACzCE,QAAQF,EAAOG,gBAAgB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-easing-list.es.js","sources":["../../../../../node_modules/@motionone/utils/dist/is-easing-list.es.js"],"sourcesContent":["import { isNumber } from './is-number.es.js';\n\nconst isEasingList = (easing) => Array.isArray(easing) && !isNumber(easing[0]);\n\nexport { isEasingList };\n"],"names":["easing","Array","isArray","isNumber"],"mappings":"4HAEqB,SAACA,GAAM,OAAKC,MAAMC,QAAQF,KAAYG,EAAAA,SAASH,EAAO,GAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-function.es.js","sources":["../../../../../node_modules/@motionone/utils/dist/is-function.es.js"],"sourcesContent":["const isFunction = (value) => typeof value === \"function\";\n\nexport { isFunction };\n"],"names":["value"],"mappings":"uFAAmB,SAACA,GAAK,MAAsB,mBAAVA,CAAoB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-number.es.js","sources":["../../../../../node_modules/@motionone/utils/dist/is-number.es.js"],"sourcesContent":["const isNumber = (value) => typeof value === \"number\";\n\nexport { isNumber };\n"],"names":["value"],"mappings":"qFAAiB,SAACA,GAAK,MAAsB,iBAAVA,CAAkB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-string.es.js","sources":["../../../../../node_modules/@motionone/utils/dist/is-string.es.js"],"sourcesContent":["const isString = (value) => typeof value === \"string\";\n\nexport { isString };\n"],"names":["value"],"mappings":"qFAAiB,SAACA,GAAK,MAAsB,iBAAVA,CAAkB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mix.es.js","sources":["../../../../../node_modules/@motionone/utils/dist/mix.es.js"],"sourcesContent":["const mix = (min, max, progress) => -progress * min + progress * max + min;\n\nexport { mix };\n"],"names":["min","max","progress"],"mappings":"gFAAY,SAACA,EAAKC,EAAKC,GAAQ,OAAMA,EAAWF,EAAME,EAAWD,EAAMD,CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"noop.es.js","sources":["../../../../../node_modules/@motionone/utils/dist/noop.es.js"],"sourcesContent":["const noop = () => { };\nconst noopReturn = (v) => v;\n\nexport { noop, noopReturn };\n"],"names":["v"],"mappings":"iFAAa,WAAS,qBACH,SAACA,GAAC,OAAKA,CAAC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./mix.es.js"),r=require("./progress.es.js");function s(s,t){for(var f=s[s.length-1],o=1;o<=t;o++){var u=r.progress(0,t,o);s.push(e.mix(f,1,u))}}exports.defaultOffset=function(e){var r=[0];return s(r,e-1),r},exports.fillOffset=s;
|
|
2
|
-
//# sourceMappingURL=offset.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"offset.es.js","sources":["../../../../../node_modules/@motionone/utils/dist/offset.es.js"],"sourcesContent":["import { mix } from './mix.es.js';\nimport { progress } from './progress.es.js';\n\nfunction fillOffset(offset, remaining) {\n const min = offset[offset.length - 1];\n for (let i = 1; i <= remaining; i++) {\n const offsetProgress = progress(0, remaining, i);\n offset.push(mix(min, 1, offsetProgress));\n }\n}\nfunction defaultOffset(length) {\n const offset = [0];\n fillOffset(offset, length - 1);\n return offset;\n}\n\nexport { defaultOffset, fillOffset };\n"],"names":["fillOffset","offset","remaining","min","length","i","offsetProgress","progress","push","mix"],"mappings":"+HAGA,SAASA,EAAWC,EAAQC,GAExB,IADA,IAAMC,EAAMF,EAAOA,EAAOG,OAAS,GAC1BC,EAAI,EAAGA,GAAKH,EAAWG,IAAK,CACjC,IAAMC,EAAiBC,EAAQA,SAAC,EAAGL,EAAWG,GAC9CJ,EAAOO,KAAKC,EAAGA,IAACN,EAAK,EAAGG,GAC5B,CACJ,uBACA,SAAuBF,GACnB,IAAMH,EAAS,CAAC,GAEhB,OADAD,EAAWC,EAAQG,EAAS,GACrBH,CACX"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress.es.js","sources":["../../../../../node_modules/@motionone/utils/dist/progress.es.js"],"sourcesContent":["const progress = (min, max, value) => max - min === 0 ? 1 : (value - min) / (max - min);\n\nexport { progress };\n"],"names":["min","max","value"],"mappings":"qFAAiB,SAACA,EAAKC,EAAKC,GAAK,OAAKD,EAAMD,GAAQ,EAAI,GAAKE,EAAQF,IAAQC,EAAMD,EAAI"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"time.es.js","sources":["../../../../../node_modules/@motionone/utils/dist/time.es.js"],"sourcesContent":["const time = {\n ms: (seconds) => seconds * 1000,\n s: (milliseconds) => milliseconds / 1000,\n};\n\nexport { time };\n"],"names":["ms","seconds","s","milliseconds"],"mappings":"iFAAa,CACTA,GAAI,SAACC,GAAO,OAAe,IAAVA,CAAc,EAC/BC,EAAG,SAACC,GAAY,OAAKA,EAAe,GAAI"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"velocity.es.js","sources":["../../../../../node_modules/@motionone/utils/dist/velocity.es.js"],"sourcesContent":["/*\n Convert velocity into velocity per second\n\n @param [number]: Unit per frame\n @param [number]: Frame duration in ms\n*/\nfunction velocityPerSecond(velocity, frameDuration) {\n return frameDuration ? velocity * (1000 / frameDuration) : 0;\n}\n\nexport { velocityPerSecond };\n"],"names":["velocity","frameDuration"],"mappings":"8FAMA,SAA2BA,EAAUC,GACjC,OAAOA,EAAgBD,GAAY,IAAOC,GAAiB,CAC/D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wrap.es.js","sources":["../../../../../node_modules/@motionone/utils/dist/wrap.es.js"],"sourcesContent":["const wrap = (min, max, v) => {\n const rangeSize = max - min;\n return ((((v - min) % rangeSize) + rangeSize) % rangeSize) + min;\n};\n\nexport { wrap };\n"],"names":["min","max","v","rangeSize"],"mappings":"iFAAa,SAACA,EAAKC,EAAKC,GACpB,IAAMC,EAAYF,EAAMD,EACxB,QAAWE,EAAIF,GAAOG,EAAaA,GAAaA,EAAaH,CACjE"}
|