@dnd-kit/abstract 0.5.0-beta-20260611125311 → 0.5.0
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/index.cjs.map +1 -1
- package/index.d.cts +1 -1
- package/index.d.ts +1 -1
- package/index.js.map +1 -1
- package/modifiers.d.cts +4 -4
- package/modifiers.d.ts +4 -4
- package/package.json +3 -3
package/modifiers.d.cts
CHANGED
|
@@ -36,7 +36,7 @@ declare class AxisModifier extends Modifier<DragDropManager<any, any>, Options$1
|
|
|
36
36
|
* @param options - The axis restriction options
|
|
37
37
|
* @returns A configured AxisModifier instance
|
|
38
38
|
*/
|
|
39
|
-
static configure: (options: Options$1) => _dnd_kit_abstract.PluginDescriptor<any, any, typeof AxisModifier>;
|
|
39
|
+
static configure: (options: Options$1) => _dnd_kit_abstract.PluginDescriptor<any, _dnd_kit_abstract.Plugin<any, Options$1>, typeof AxisModifier>;
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* A pre-configured modifier that restricts movement to the vertical axis.
|
|
@@ -44,14 +44,14 @@ declare class AxisModifier extends Modifier<DragDropManager<any, any>, Options$1
|
|
|
44
44
|
* @remarks
|
|
45
45
|
* This modifier fixes the x-axis value to 0, allowing only vertical movement.
|
|
46
46
|
*/
|
|
47
|
-
declare const RestrictToVerticalAxis: _dnd_kit_abstract.PluginDescriptor<any, any, typeof AxisModifier>;
|
|
47
|
+
declare const RestrictToVerticalAxis: _dnd_kit_abstract.PluginDescriptor<any, _dnd_kit_abstract.Plugin<any, Options$1>, typeof AxisModifier>;
|
|
48
48
|
/**
|
|
49
49
|
* A pre-configured modifier that restricts movement to the horizontal axis.
|
|
50
50
|
*
|
|
51
51
|
* @remarks
|
|
52
52
|
* This modifier fixes the y-axis value to 0, allowing only horizontal movement.
|
|
53
53
|
*/
|
|
54
|
-
declare const RestrictToHorizontalAxis: _dnd_kit_abstract.PluginDescriptor<any, any, typeof AxisModifier>;
|
|
54
|
+
declare const RestrictToHorizontalAxis: _dnd_kit_abstract.PluginDescriptor<any, _dnd_kit_abstract.Plugin<any, Options$1>, typeof AxisModifier>;
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* Restricts a shape's movement to stay within a bounding rectangle.
|
|
@@ -128,7 +128,7 @@ declare class SnapModifier extends Modifier<DragDropManager<any, any>, Options>
|
|
|
128
128
|
* @param options - The snap grid options
|
|
129
129
|
* @returns A configured SnapModifier instance
|
|
130
130
|
*/
|
|
131
|
-
static configure: (options: Options) => _dnd_kit_abstract.PluginDescriptor<any, any, typeof SnapModifier>;
|
|
131
|
+
static configure: (options: Options) => _dnd_kit_abstract.PluginDescriptor<any, _dnd_kit_abstract.Plugin<any, Options>, typeof SnapModifier>;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
export { AxisModifier, RestrictToHorizontalAxis, RestrictToVerticalAxis, SnapModifier, restrictShapeToBoundingRectangle };
|
package/modifiers.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ declare class AxisModifier extends Modifier<DragDropManager<any, any>, Options$1
|
|
|
36
36
|
* @param options - The axis restriction options
|
|
37
37
|
* @returns A configured AxisModifier instance
|
|
38
38
|
*/
|
|
39
|
-
static configure: (options: Options$1) => _dnd_kit_abstract.PluginDescriptor<any, any, typeof AxisModifier>;
|
|
39
|
+
static configure: (options: Options$1) => _dnd_kit_abstract.PluginDescriptor<any, _dnd_kit_abstract.Plugin<any, Options$1>, typeof AxisModifier>;
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* A pre-configured modifier that restricts movement to the vertical axis.
|
|
@@ -44,14 +44,14 @@ declare class AxisModifier extends Modifier<DragDropManager<any, any>, Options$1
|
|
|
44
44
|
* @remarks
|
|
45
45
|
* This modifier fixes the x-axis value to 0, allowing only vertical movement.
|
|
46
46
|
*/
|
|
47
|
-
declare const RestrictToVerticalAxis: _dnd_kit_abstract.PluginDescriptor<any, any, typeof AxisModifier>;
|
|
47
|
+
declare const RestrictToVerticalAxis: _dnd_kit_abstract.PluginDescriptor<any, _dnd_kit_abstract.Plugin<any, Options$1>, typeof AxisModifier>;
|
|
48
48
|
/**
|
|
49
49
|
* A pre-configured modifier that restricts movement to the horizontal axis.
|
|
50
50
|
*
|
|
51
51
|
* @remarks
|
|
52
52
|
* This modifier fixes the y-axis value to 0, allowing only horizontal movement.
|
|
53
53
|
*/
|
|
54
|
-
declare const RestrictToHorizontalAxis: _dnd_kit_abstract.PluginDescriptor<any, any, typeof AxisModifier>;
|
|
54
|
+
declare const RestrictToHorizontalAxis: _dnd_kit_abstract.PluginDescriptor<any, _dnd_kit_abstract.Plugin<any, Options$1>, typeof AxisModifier>;
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* Restricts a shape's movement to stay within a bounding rectangle.
|
|
@@ -128,7 +128,7 @@ declare class SnapModifier extends Modifier<DragDropManager<any, any>, Options>
|
|
|
128
128
|
* @param options - The snap grid options
|
|
129
129
|
* @returns A configured SnapModifier instance
|
|
130
130
|
*/
|
|
131
|
-
static configure: (options: Options) => _dnd_kit_abstract.PluginDescriptor<any, any, typeof SnapModifier>;
|
|
131
|
+
static configure: (options: Options) => _dnd_kit_abstract.PluginDescriptor<any, _dnd_kit_abstract.Plugin<any, Options>, typeof SnapModifier>;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
export { AxisModifier, RestrictToHorizontalAxis, RestrictToVerticalAxis, SnapModifier, restrictShapeToBoundingRectangle };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dnd-kit/abstract",
|
|
3
|
-
"version": "0.5.0
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.cjs",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@dnd-kit/geometry": "0.5.0
|
|
49
|
-
"@dnd-kit/state": "0.5.0
|
|
48
|
+
"@dnd-kit/geometry": "^0.5.0",
|
|
49
|
+
"@dnd-kit/state": "^0.5.0",
|
|
50
50
|
"tslib": "^2.6.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|