framer-motion 12.23.13 → 12.23.14
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/cjs/client.js +1 -1
- package/dist/cjs/{feature-bundle-CEbtLyJA.js → feature-bundle-DUWayF3h.js} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/m.js +1 -1
- package/dist/es/motion/utils/use-motion-ref.mjs +1 -1
- package/dist/framer-motion.dev.js +1 -1
- package/dist/framer-motion.js +1 -1
- package/dist/size-rollup-dom-animation-m.js +1 -1
- package/dist/size-rollup-m.js +1 -1
- package/dist/size-rollup-motion.js +1 -1
- package/dist/types/client.d.ts +2 -2
- package/dist/types/index.d.ts +16 -12
- package/dist/{types.d-Cjd591yU.d.ts → types.d-CSbqhfMB.d.ts} +1 -1
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export * from 'motion-dom';
|
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import * as React$1 from 'react';
|
|
7
7
|
import { useEffect, RefObject } from 'react';
|
|
8
|
-
import { F as FeatureBundle, M as MotionProps, a as MotionConfigContext, H as
|
|
9
|
-
export { A as AnimationType, C as CreateVisualElement, D as DOMMotionComponents, v as FeatureDefinition, w as FeatureDefinitions, x as FeaturePackage, s as FlatTree, p as ForwardRefComponent, t as HydratedFeatureDefinition, u as HydratedFeatureDefinitions, L as LazyFeatureBundle, k as MotionStyle, l as MotionTransform, P as PresenceContext, q as SVGAttributesAsMotionValues, r as SVGMotionProps, h as ScrapeMotionValuesFromProps, j as SwitchLayoutGroupContext, n as VariantLabels, i as VisualState, m as makeUseVisualState, o as optimizedAppearDataAttribute } from '../types.d-
|
|
8
|
+
import { F as FeatureBundle, M as MotionProps, a as MotionConfigContext, H as HTMLElements, b as HTMLMotionProps, c as createMotionComponent, d as HTMLMotionComponents, S as SVGMotionComponents, e as FeaturePackages, V as VisualElement, f as VisualElementAnimationOptions, I as IProjectionNode, R as ResolvedValues, g as HTMLRenderState } from '../types.d-CSbqhfMB.js';
|
|
9
|
+
export { A as AnimationType, C as CreateVisualElement, D as DOMMotionComponents, v as FeatureDefinition, w as FeatureDefinitions, x as FeaturePackage, s as FlatTree, p as ForwardRefComponent, t as HydratedFeatureDefinition, u as HydratedFeatureDefinitions, L as LazyFeatureBundle, k as MotionStyle, l as MotionTransform, P as PresenceContext, q as SVGAttributesAsMotionValues, r as SVGMotionProps, h as ScrapeMotionValuesFromProps, j as SwitchLayoutGroupContext, n as VariantLabels, i as VisualState, m as makeUseVisualState, o as optimizedAppearDataAttribute } from '../types.d-CSbqhfMB.js';
|
|
10
10
|
import { Easing, EasingFunction, Point, Axis, Box } from 'motion-utils';
|
|
11
11
|
export * from 'motion-utils';
|
|
12
12
|
export { MotionGlobalConfig } from 'motion-utils';
|
|
@@ -243,13 +243,17 @@ interface MotionConfigProps extends Partial<MotionConfigContext> {
|
|
|
243
243
|
*/
|
|
244
244
|
declare function MotionConfig({ children, isValidProp, ...config }: MotionConfigProps): react_jsx_runtime.JSX.Element;
|
|
245
245
|
|
|
246
|
-
|
|
246
|
+
type ReorderElementTag = keyof HTMLElements;
|
|
247
|
+
type DefaultGroupElement = "ul";
|
|
248
|
+
type DefaultItemElement = "li";
|
|
249
|
+
|
|
250
|
+
interface Props$1<V, TagName extends ReorderElementTag = DefaultGroupElement> {
|
|
247
251
|
/**
|
|
248
252
|
* A HTML element to render this component as. Defaults to `"ul"`.
|
|
249
253
|
*
|
|
250
254
|
* @public
|
|
251
255
|
*/
|
|
252
|
-
as?:
|
|
256
|
+
as?: TagName;
|
|
253
257
|
/**
|
|
254
258
|
* The axis to reorder along. By default, items will be draggable on this axis.
|
|
255
259
|
* To make draggable on both axes, set `<Reorder.Item drag />`
|
|
@@ -283,19 +287,19 @@ interface Props$1<V> {
|
|
|
283
287
|
*/
|
|
284
288
|
values: V[];
|
|
285
289
|
}
|
|
286
|
-
type ReorderGroupProps<V> = Props$1<V> & Omit<HTMLMotionProps<
|
|
287
|
-
declare function ReorderGroupComponent<V>({ children, as, axis, onReorder, values, ...props }: ReorderGroupProps<V>, externalRef?: React$1.ForwardedRef<any>):
|
|
288
|
-
declare const ReorderGroup: <V>(props: ReorderGroupProps<V> & {
|
|
290
|
+
type ReorderGroupProps<V, TagName extends ReorderElementTag = DefaultGroupElement> = Props$1<V, TagName> & Omit<HTMLMotionProps<TagName>, "values"> & React$1.PropsWithChildren<{}>;
|
|
291
|
+
declare function ReorderGroupComponent<V, TagName extends ReorderElementTag = DefaultGroupElement>({ children, as, axis, onReorder, values, ...props }: ReorderGroupProps<V, TagName>, externalRef?: React$1.ForwardedRef<any>): JSX.Element;
|
|
292
|
+
declare const ReorderGroup: <V, TagName extends keyof HTMLElements = "ul">(props: ReorderGroupProps<V, TagName> & {
|
|
289
293
|
ref?: React$1.ForwardedRef<any>;
|
|
290
294
|
}) => ReturnType<typeof ReorderGroupComponent>;
|
|
291
295
|
|
|
292
|
-
interface Props<V> {
|
|
296
|
+
interface Props<V, TagName extends ReorderElementTag = DefaultItemElement> {
|
|
293
297
|
/**
|
|
294
298
|
* A HTML element to render this component as. Defaults to `"li"`.
|
|
295
299
|
*
|
|
296
300
|
* @public
|
|
297
301
|
*/
|
|
298
|
-
as?:
|
|
302
|
+
as?: TagName;
|
|
299
303
|
/**
|
|
300
304
|
* The value in the list that this component represents.
|
|
301
305
|
*
|
|
@@ -310,9 +314,9 @@ interface Props<V> {
|
|
|
310
314
|
*/
|
|
311
315
|
layout?: true | "position";
|
|
312
316
|
}
|
|
313
|
-
type ReorderItemProps<V> = Props<V> & Omit<HTMLMotionProps<
|
|
314
|
-
declare function ReorderItemComponent<V>({ children, style, value, as, onDrag, layout, ...props }: ReorderItemProps<V>, externalRef?: React$1.ForwardedRef<any>):
|
|
315
|
-
declare const ReorderItem: <V>(props: ReorderItemProps<V> & {
|
|
317
|
+
type ReorderItemProps<V, TagName extends ReorderElementTag = DefaultItemElement> = Props<V, TagName> & Omit<HTMLMotionProps<TagName>, "value" | "layout"> & React$1.PropsWithChildren<{}>;
|
|
318
|
+
declare function ReorderItemComponent<V, TagName extends ReorderElementTag = DefaultItemElement>({ children, style, value, as, onDrag, layout, ...props }: ReorderItemProps<V, TagName>, externalRef?: React$1.ForwardedRef<any>): JSX.Element;
|
|
319
|
+
declare const ReorderItem: <V, TagName extends keyof HTMLElements = "li">(props: ReorderItemProps<V, TagName> & {
|
|
316
320
|
ref?: React$1.ForwardedRef<any>;
|
|
317
321
|
}) => ReturnType<typeof ReorderItemComponent>;
|
|
318
322
|
|
|
@@ -955,4 +955,4 @@ declare global {
|
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
957
|
|
|
958
|
-
export { type AnimationType as A, type CreateVisualElement as C, type DOMMotionComponents as D, type FeatureBundle as F, type
|
|
958
|
+
export { type AnimationType as A, type CreateVisualElement as C, type DOMMotionComponents as D, type FeatureBundle as F, type HTMLElements as H, type IProjectionNode as I, type LazyFeatureBundle as L, type MotionProps as M, PresenceContext as P, type ResolvedValues as R, type SVGMotionComponents as S, VisualElement as V, MotionConfigContext as a, type HTMLMotionProps as b, createMotionComponent as c, type HTMLMotionComponents as d, type FeaturePackages as e, type VisualElementAnimationOptions as f, type HTMLRenderState as g, type ScrapeMotionValuesFromProps as h, type VisualState as i, SwitchLayoutGroupContext as j, type MotionStyle as k, type MotionTransform as l, makeUseVisualState as m, type VariantLabels as n, optimizedAppearDataAttribute as o, type ForwardRefComponent as p, type SVGAttributesAsMotionValues as q, type SVGMotionProps as r, FlatTree as s, type HydratedFeatureDefinition as t, type HydratedFeatureDefinitions as u, type FeatureDefinition as v, type FeatureDefinitions as w, type FeaturePackage as x };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "framer-motion",
|
|
3
|
-
"version": "12.23.
|
|
3
|
+
"version": "12.23.14",
|
|
4
4
|
"description": "A simple and powerful JavaScript animation library",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/es/index.mjs",
|
|
@@ -142,5 +142,5 @@
|
|
|
142
142
|
"maxSize": "2.26 kB"
|
|
143
143
|
}
|
|
144
144
|
],
|
|
145
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "c512db38b2259aaef412605f88799e05055f9be3"
|
|
146
146
|
}
|