@react-querybuilder/dnd
Advanced tools
Comparing version
@@ -8,2 +8,4 @@ import type { Ref } from "react"; | ||
* The drag-and-drop-enabled inline combinator component. | ||
* | ||
* @group Components | ||
*/ | ||
@@ -20,3 +22,6 @@ export declare const InlineCombinatorDnD: ({ component: CombinatorSelectorComponent,...props }: InlineCombinatorProps) => React.JSX.Element; | ||
} | ||
/** | ||
* @group Hooks | ||
*/ | ||
export declare const useInlineCombinatorDnD: ({ path, canDrop, schema, useDrop, rules }: UseInlineCombinatorDndParams) => UseInlineCombinatorDnD; | ||
export {}; |
@@ -6,2 +6,4 @@ import * as React from "react"; | ||
* `react-dnd`, use {@link QueryBuilderDndWithoutProvider} instead. | ||
* | ||
* @group Components | ||
*/ | ||
@@ -12,4 +14,9 @@ export declare const QueryBuilderDnD: (props: QueryBuilderDndProps) => React.JSX.Element; | ||
* already implements `react-dnd`, otherwise use {@link QueryBuilderDnD}. | ||
* | ||
* @group Components | ||
*/ | ||
export declare const QueryBuilderDndWithoutProvider: (props: QueryBuilderDndProps) => React.JSX.Element; | ||
/** | ||
* @group Hooks | ||
*/ | ||
export declare const useReactDnD: (dndParam?: UseReactDnD) => UseReactDnD | null; |
import type { Context } from "react"; | ||
import type { QueryBuilderDndContextProps } from "./types"; | ||
/** | ||
* @group Components | ||
*/ | ||
export declare const QueryBuilderDndContext: Context<QueryBuilderDndContextProps>; |
@@ -9,2 +9,4 @@ import * as React from "react"; | ||
* drag-and-drop context. | ||
* | ||
* @group Components | ||
*/ | ||
@@ -16,3 +18,6 @@ export declare const RuleDnD: (props: RuleProps) => React.JSX.Element; | ||
}; | ||
/** | ||
* @group Hooks | ||
*/ | ||
export declare const useRuleDnD: (params: UseRuleDndParams) => UseRuleDnD; | ||
export {}; |
@@ -9,2 +9,4 @@ import * as React from "react"; | ||
* context so that child rules and groups will render within the appropriate drag-and-drop wrappers. | ||
* | ||
* @group Components | ||
*/ | ||
@@ -16,3 +18,6 @@ export declare const RuleGroupDnD: (props: RuleGroupProps) => React.JSX.Element; | ||
}; | ||
/** | ||
* @group Hooks | ||
*/ | ||
export declare const useRuleGroupDnD: (params: UseRuleGroupDndParams) => UseRuleGroupDnD; | ||
export {}; |
@@ -7,2 +7,4 @@ import type * as ReactDnD from "react-dnd"; | ||
* Combination of all exports from `react-dnd` and `react-dnd-html5-backend`. | ||
* | ||
* @group Hooks | ||
*/ | ||
@@ -19,2 +21,4 @@ export type UseReactDnD = typeof ReactDnD & typeof ReactDndHtml5Backend; | ||
* {@link QueryBuilderDnD} props. | ||
* | ||
* @group Props | ||
*/ | ||
@@ -32,2 +36,5 @@ export type QueryBuilderDndProps = QueryBuilderContextProviderProps & { | ||
}; | ||
/** | ||
* @group Props | ||
*/ | ||
export interface QueryBuilderDndContextProps { | ||
@@ -34,0 +41,0 @@ useDrag?: typeof useDragOriginal; |
@@ -13,3 +13,6 @@ import type { useDrag as originalUseDrag } from "react-dnd"; | ||
}; | ||
/** | ||
* @group Hooks | ||
*/ | ||
export declare const useDragCommon: ({ type, path, disabled, actions, schema, useDrag }: UseDragCommonProps) => [DragCollection, import("react-dnd").ConnectDragSource, import("react-dnd").ConnectDragPreview]; | ||
export {}; |
{ | ||
"name": "@react-querybuilder/dnd", | ||
"description": "Drag-and-drop-enabled version of react-querybuilder", | ||
"version": "8.3.0", | ||
"version": "8.3.1", | ||
"publishConfig": { | ||
@@ -57,3 +57,3 @@ "access": "public" | ||
"@testing-library/react": "^16.2.0", | ||
"@types/node": "^22.13.4", | ||
"@types/node": "^22.13.5", | ||
"@types/react": "^19.0.10", | ||
@@ -67,6 +67,6 @@ "@vitejs/plugin-react": "^4.3.4", | ||
"react-dom": "^19.0.0", | ||
"react-querybuilder": "8.3.0", | ||
"react-querybuilder": "8.3.1", | ||
"rollup-plugin-visualizer": "^5.14.0", | ||
"typescript": "^5.7.3", | ||
"vite": "^6.1.1" | ||
"vite": "^6.2.0" | ||
}, | ||
@@ -77,5 +77,5 @@ "peerDependencies": { | ||
"react-dnd-html5-backend": ">=14.0.0", | ||
"react-querybuilder": "8.3.0" | ||
"react-querybuilder": "8.3.1" | ||
}, | ||
"gitHead": "d89d9c1a50fc5ec78f7d284efae75d60eddfc01e" | ||
"gitHead": "02e97fb95b7734acee6e9c5490bcb7546bafa5c2" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
688248
0.09%4018
0.88%