[pull] main from motiondivision:main#196
Merged
Conversation
This refactoring moves the core VisualElement classes from framer-motion to motion-dom, making them framework-agnostic: - VisualElement base class with injectable feature definitions - DOMVisualElement, HTMLVisualElement, SVGVisualElement - ObjectVisualElement for animating plain JS objects - Feature base class - visualElementStore - Animation state management utilities - Variant resolution utilities - Reduced motion utilities - Projection geometry, styles, and animation utilities React-specific code (features, contexts, hooks) remains in framer-motion. The projection node core is kept in framer-motion due to complex React deps. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Delete barrel files that were just re-exporting from motion-dom - Update all imports to use motion-dom directly - Add eachAxis to motion-dom exports - Delete duplicate files: mix-values.ts, each-axis.ts, has-transform.ts, measure.ts - Delete projection geometry barrel files: models.ts, delta-calc.ts, delta-apply.ts, delta-remove.ts, copy.ts, conversion.ts, utils.ts - Delete projection styles barrel files: types.ts, scale-border-radius.ts, scale-box-shadow.ts, scale-correction.ts, transform.ts, transform-origin.ts - Delete render utils barrel files: variant-props.ts, is-variant-label.ts - Update test files to import from motion-dom instead of deleted barrel files Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Move animation interfaces (animateMotionValue, animateTarget, animateVariant, animateVisualElement) to motion-dom - Move animation utilities (getDefaultTransition, isTransitionDefined, getFinalKeyframe, calcChildStagger) to motion-dom - Move optimized-appear utilities to motion-dom - Move will-change utilities to motion-dom - Move setTarget to motion-dom - Consolidate Feature class in motion-dom with proper VisualElement typing - Update all framer-motion imports to use motion-dom exports - Delete duplicate files from framer-motion Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Import from motion-dom instead of having a local copy. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove scrape-motion-values wrapper files from framer-motion - Update imports to use motion-dom exports directly - Import TransformOrigin and HTMLRenderState from motion-dom - Move scale-correction and svg scrape-motion-values tests to motion-dom Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Move the entire projection node system from framer-motion to motion-dom to enable vanilla JS layout animations without React dependency. Files moved: - create-projection-node.ts, types.ts, state.ts, group.ts - HTMLProjectionNode.ts, DocumentProjectionNode.ts - stack.ts, flat-tree.ts, compare-by-depth.ts - delay.ts, add-dom-event.ts, resolve-motion-value.ts, single-value.ts - Projection node tests Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Refactor `VisualElement` to `motion-dom` package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )