@patternfly/react-drag-drop 5.2.0-prerelease.5 → 5.2.0-prerelease.7
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/CHANGELOG.md +10 -0
- package/dist/cjs.tsbuildinfo +1 -1
- package/dist/esm/next/components/DragDrop/DragDropSort.d.ts +8 -1
- package/dist/esm/next/components/DragDrop/DragDropSort.d.ts.map +1 -1
- package/dist/esm/next/components/DragDrop/DragDropSort.js.map +1 -1
- package/dist/esm/next/components/DragDrop/index.d.ts +0 -1
- package/dist/esm/next/components/DragDrop/index.d.ts.map +1 -1
- package/dist/esm/next/components/DragDrop/index.js +0 -1
- package/dist/esm/next/components/DragDrop/index.js.map +1 -1
- package/dist/esm.tsbuildinfo +1 -1
- package/dist/js/next/components/DragDrop/DragDropSort.d.ts +8 -1
- package/dist/js/next/components/DragDrop/DragDropSort.d.ts.map +1 -1
- package/dist/js/next/components/DragDrop/DragDropSort.js.map +1 -1
- package/dist/js/next/components/DragDrop/index.d.ts +0 -1
- package/dist/js/next/components/DragDrop/index.d.ts.map +1 -1
- package/dist/js/next/components/DragDrop/index.js +0 -1
- package/dist/js/next/components/DragDrop/index.js.map +1 -1
- package/package.json +3 -3
- package/src/next/components/DragDrop/DragDropSort.tsx +9 -1
- package/src/next/components/DragDrop/examples/DragDrop.md +1 -1
- package/src/next/components/DragDrop/examples/DragDropDemos.md +1 -1
- package/src/next/components/DragDrop/index.ts +0 -1
- package/dist/esm/next/components/DragDrop/DragDropUtil.d.ts +0 -10
- package/dist/esm/next/components/DragDrop/DragDropUtil.d.ts.map +0 -1
- package/dist/esm/next/components/DragDrop/DragDropUtil.js +0 -2
- package/dist/esm/next/components/DragDrop/DragDropUtil.js.map +0 -1
- package/dist/js/next/components/DragDrop/DragDropUtil.d.ts +0 -10
- package/dist/js/next/components/DragDrop/DragDropUtil.d.ts.map +0 -1
- package/dist/js/next/components/DragDrop/DragDropUtil.js +0 -3
- package/dist/js/next/components/DragDrop/DragDropUtil.js.map +0 -1
- package/src/next/components/DragDrop/DragDropUtil.tsx +0 -8
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DndContextProps, DragEndEvent, DragStartEvent } from '@dnd-kit/core';
|
|
3
|
-
import { DraggableObject } from './DragDropUtil';
|
|
4
3
|
export declare type DragDropSortDragEndEvent = DragEndEvent;
|
|
5
4
|
export declare type DragDropSortDragStartEvent = DragStartEvent;
|
|
5
|
+
export interface DraggableObject {
|
|
6
|
+
/** Unique id of the draggable object */
|
|
7
|
+
id: string;
|
|
8
|
+
/** Content rendered in the draggable object */
|
|
9
|
+
content: React.ReactNode;
|
|
10
|
+
/** Props spread to the rendered wrapper of the draggable object */
|
|
11
|
+
props?: any;
|
|
12
|
+
}
|
|
6
13
|
/**
|
|
7
14
|
* DragDropSortProps extends dnd-kit's props which may be viewed at https://docs.dndkit.com/api-documentation/context-provider#props.
|
|
8
15
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DragDropSort.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/DragDropSort.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAIL,eAAe,EAKf,YAAY,EACZ,cAAc,EACf,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"DragDropSort.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/DragDropSort.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAIL,eAAe,EAKf,YAAY,EACZ,cAAc,EACf,MAAM,eAAe,CAAC;AAYvB,oBAAY,wBAAwB,GAAG,YAAY,CAAC;AACpD,oBAAY,0BAA0B,GAAG,cAAc,CAAC;AAExD,MAAM,WAAW,eAAe;IAC9B,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,+CAA+C;IAC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AK,UAAU;oBACb,OAAO,CACL,oBAAC,qBAAqB,kBAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,IAAM,IAAI,CAAC,KAAK,GAC7D,IAAI,CAAC,OAAO,CACS,CACzB,CAAC;gBACJ;oBACE,OAAO,CACL,oBAAC,SAAS,kBAAC,aAAa,EAAE,OAAO,KAAK,mBAAmB,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,IAAM,IAAI,CAAC,KAAK,GACjG,IAAI,CAAC,OAAO,CACH,CACb,CAAC;aACL;QACH,CAAC,CAAC;QACF,oBAAC,WAAW,QAAE,QAAQ,IAAI,cAAc,EAAE,CAAe,CACzC,CACnB,CAAC;IAEF,OAAO,CACL,oBAAC,UAAU,kBACT,OAAO,EAAE,OAAO,EAChB,kBAAkB,EAAE,aAAa,EACjC,SAAS,EAAE,aAAa,EACxB,WAAW,EAAE,eAAe,IACxB,KAAK;QAER,QAAQ;YACP,KAAK,CAAC,YAAY,CAAC,QAAQ,EAAE;gBAC3B,QAAQ,EAAE,gBAAgB;aAC3B,CAAC;QACH,CAAC,QAAQ,IAAI,iCAAM,gBAAgB,CAAO,CAChC,CACd,CAAC;AACJ,CAAC,CAAC;AACF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|