-
Notifications
You must be signed in to change notification settings - Fork 741
/
index.ts
157 lines (149 loc) · 4.89 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
/**
* Proxy patch for `motion` and `m`
*/
export { patchMotionTags } from "./render/dom/patch-motion-tags"
/**
* Components
*/
export { motion, createDomMotionComponent } from "./render/dom/motion"
export { m } from "./render/dom/motion-minimal"
export { AnimatePresence } from "./components/AnimatePresence"
export { AnimateSharedLayout } from "./components/AnimateSharedLayout"
export { MotionConfig } from "./components/MotionConfig"
export { LazyMotion } from "./components/LazyMotion"
/**
* Features
*/
export { domAnimation } from "./render/dom/features-animation"
export { domMax } from "./render/dom/features-max"
/**
* Motion values
*/
export { useMotionValue } from "./value/use-motion-value"
export { useMotionTemplate } from "./value/use-motion-template"
export { MotionValue, motionValue, PassiveEffect, Subscriber } from "./value"
export { resolveMotionValue } from "./value/utils/resolve-motion-value"
export { useTransform } from "./value/use-transform"
export { useSpring } from "./value/use-spring"
export { useVelocity } from "./value/use-velocity"
export { useElementScroll } from "./value/scroll/use-element-scroll"
export { useViewportScroll } from "./value/scroll/use-viewport-scroll"
/**
* Accessibility
*/
export { useReducedMotion } from "./utils/use-reduced-motion"
/**
* Utils
*/
export { animationControls } from "./animation/animation-controls"
export { AnimationControls } from "./animation/types"
export { useAnimation } from "./animation/use-animation"
export { animate } from "./animation/animate"
export { animateVisualElement } from "./render/utils/animation"
export {
HoverHandlers,
TapHandlers,
PanHandlers,
FocusHandlers,
TapInfo,
} from "./gestures/types"
export { PanInfo } from "./gestures/PanSession"
export { useCycle } from "./utils/use-cycle"
export { transform } from "./utils/transform"
export { isValidMotionProp } from "./motion/utils/valid-prop"
export {
usePresence,
useIsPresent,
} from "./components/AnimatePresence/use-presence"
export {
useDragControls,
DragControls,
} from "./gestures/drag/use-drag-controls"
export { useDomEvent } from "./events/use-dom-event"
export { createMotionComponent } from "./motion"
export { addScaleCorrection } from "./render/dom/projection/scale-correction"
export { snapshotViewportBox } from "./render/dom/projection/utils"
export { createCrossfader } from "./components/AnimateSharedLayout/utils/crossfader"
export { visualElement } from "./render"
export { VisualElement } from "./render/types"
export { batchLayout, flushLayout } from "./render/dom/utils/batch-layout"
/**
* Contexts
*/
export { MotionConfigContext } from "./context/MotionConfigContext"
export { PresenceContext } from "./context/PresenceContext"
export { LayoutGroupContext } from "./context/LayoutGroupContext"
/**
* Types
*/
export { HTMLMotionProps, ForwardRefComponent } from "./render/html/types"
export { SVGMotionProps, SVGAttributesAsMotionValues } from "./render/svg/types"
export {
AnimationOptions,
AnimationPlaybackControls,
} from "./animation/animate"
export { CustomDomComponent } from "./render/dom/motion-proxy"
export { ScrollMotionValues } from "./value/scroll/utils"
export {
AnimationProps,
MotionProps,
MotionAdvancedProps,
MotionStyle,
MotionTransform,
VariantLabels,
RelayoutInfo,
ResolveLayoutTransition,
} from "./motion/types"
export {
Orchestration,
Repeat,
Tween,
Spring,
Keyframes,
Inertia,
None,
EasingFunction,
Target,
TargetAndTransition,
Transition,
ResolvedKeyframesTarget,
KeyframesTarget,
CustomValueType,
ResolvedSingleTarget,
SingleTarget,
ResolvedValueTarget,
ValueTarget,
Variant,
Variants,
} from "./types"
export { EventInfo } from "./events/types"
export { VisualElementLifecycles } from "./render/utils/lifecycles"
export * from "./motion/features/types"
export {
DraggableProps,
DragHandlers,
DragElastic,
} from "./gestures/drag/types"
export { LayoutProps } from "./motion/features/layout/types"
export { AnimatePresenceProps } from "./components/AnimatePresence/types"
export { SharedLayoutProps } from "./components/AnimateSharedLayout/types"
export {
SharedLayoutAnimationConfig,
VisibilityAction,
SharedLayoutSyncMethods,
SyncLayoutLifecycles,
} from "./components/AnimateSharedLayout/types"
export {
SharedLayoutContext,
FramerTreeLayoutContext,
} from "./context/SharedLayoutContext"
export { createBatcher } from "./components/AnimateSharedLayout/utils/batcher"
export * from "./types/geometry"
export { MotionConfigProps } from "./components/MotionConfig"
export { LazyProps } from "./components/LazyMotion/types"
export { FlatTree } from "./render/utils/flat-tree"
/**
* Deprecated
*/
export { useAnimatedState as useDeprecatedAnimatedState } from "./animation/use-animated-state"
export { useInvertedScale as useDeprecatedInvertedScale } from "./value/use-inverted-scale"