📚 Documentação inicial do ALETHEIA
- MANUAL-PRODUTO.md: Manual do usuário final - MANUAL-VENDAS.md: Estratégia comercial e vendas - MANUAL-TECNICO.md: Infraestrutura e deploy - README.md: Visão geral do projeto
This commit is contained in:
31
frontend/node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs
generated
vendored
Normal file
31
frontend/node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
import { Feature } from '../Feature.mjs';
|
||||
|
||||
let id = 0;
|
||||
class ExitAnimationFeature extends Feature {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
this.id = id++;
|
||||
}
|
||||
update() {
|
||||
if (!this.node.presenceContext)
|
||||
return;
|
||||
const { isPresent, onExitComplete } = this.node.presenceContext;
|
||||
const { isPresent: prevIsPresent } = this.node.prevPresenceContext || {};
|
||||
if (!this.node.animationState || isPresent === prevIsPresent) {
|
||||
return;
|
||||
}
|
||||
const exitAnimation = this.node.animationState.setActive("exit", !isPresent);
|
||||
if (onExitComplete && !isPresent) {
|
||||
exitAnimation.then(() => onExitComplete(this.id));
|
||||
}
|
||||
}
|
||||
mount() {
|
||||
const { register } = this.node.presenceContext || {};
|
||||
if (register) {
|
||||
this.unmount = register(this.id);
|
||||
}
|
||||
}
|
||||
unmount() { }
|
||||
}
|
||||
|
||||
export { ExitAnimationFeature };
|
||||
41
frontend/node_modules/framer-motion/dist/es/motion/features/animation/index.mjs
generated
vendored
Normal file
41
frontend/node_modules/framer-motion/dist/es/motion/features/animation/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
import { isAnimationControls } from '../../../animation/utils/is-animation-controls.mjs';
|
||||
import { createAnimationState } from '../../../render/utils/animation-state.mjs';
|
||||
import { Feature } from '../Feature.mjs';
|
||||
|
||||
class AnimationFeature extends Feature {
|
||||
/**
|
||||
* We dynamically generate the AnimationState manager as it contains a reference
|
||||
* to the underlying animation library. We only want to load that if we load this,
|
||||
* so people can optionally code split it out using the `m` component.
|
||||
*/
|
||||
constructor(node) {
|
||||
super(node);
|
||||
node.animationState || (node.animationState = createAnimationState(node));
|
||||
}
|
||||
updateAnimationControlsSubscription() {
|
||||
const { animate } = this.node.getProps();
|
||||
if (isAnimationControls(animate)) {
|
||||
this.unmountControls = animate.subscribe(this.node);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Subscribe any provided AnimationControls to the component's VisualElement
|
||||
*/
|
||||
mount() {
|
||||
this.updateAnimationControlsSubscription();
|
||||
}
|
||||
update() {
|
||||
const { animate } = this.node.getProps();
|
||||
const { animate: prevAnimate } = this.node.prevProps || {};
|
||||
if (animate !== prevAnimate) {
|
||||
this.updateAnimationControlsSubscription();
|
||||
}
|
||||
}
|
||||
unmount() {
|
||||
var _a;
|
||||
this.node.animationState.reset();
|
||||
(_a = this.unmountControls) === null || _a === void 0 ? void 0 : _a.call(this);
|
||||
}
|
||||
}
|
||||
|
||||
export { AnimationFeature };
|
||||
Reference in New Issue
Block a user