@patternfly/react-drag-drop 5.2.0-prerelease.6 → 5.2.0-prerelease.8

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/cjs.tsbuildinfo +1 -1
  3. package/dist/esm/next/components/DragDrop/DragDropSort.d.ts +8 -1
  4. package/dist/esm/next/components/DragDrop/DragDropSort.d.ts.map +1 -1
  5. package/dist/esm/next/components/DragDrop/DragDropSort.js.map +1 -1
  6. package/dist/esm/next/components/DragDrop/index.d.ts +0 -1
  7. package/dist/esm/next/components/DragDrop/index.d.ts.map +1 -1
  8. package/dist/esm/next/components/DragDrop/index.js +0 -1
  9. package/dist/esm/next/components/DragDrop/index.js.map +1 -1
  10. package/dist/esm.tsbuildinfo +1 -1
  11. package/dist/js/next/components/DragDrop/DragDropSort.d.ts +8 -1
  12. package/dist/js/next/components/DragDrop/DragDropSort.d.ts.map +1 -1
  13. package/dist/js/next/components/DragDrop/DragDropSort.js.map +1 -1
  14. package/dist/js/next/components/DragDrop/index.d.ts +0 -1
  15. package/dist/js/next/components/DragDrop/index.d.ts.map +1 -1
  16. package/dist/js/next/components/DragDrop/index.js +0 -1
  17. package/dist/js/next/components/DragDrop/index.js.map +1 -1
  18. package/package.json +3 -3
  19. package/src/next/components/DragDrop/DragDropSort.tsx +9 -1
  20. package/src/next/components/DragDrop/examples/DragDrop.md +1 -1
  21. package/src/next/components/DragDrop/examples/DragDropDemos.md +1 -1
  22. package/src/next/components/DragDrop/index.ts +0 -1
  23. package/dist/esm/next/components/DragDrop/DragDropUtil.d.ts +0 -10
  24. package/dist/esm/next/components/DragDrop/DragDropUtil.d.ts.map +0 -1
  25. package/dist/esm/next/components/DragDrop/DragDropUtil.js +0 -2
  26. package/dist/esm/next/components/DragDrop/DragDropUtil.js.map +0 -1
  27. package/dist/js/next/components/DragDrop/DragDropUtil.d.ts +0 -10
  28. package/dist/js/next/components/DragDrop/DragDropUtil.d.ts.map +0 -1
  29. package/dist/js/next/components/DragDrop/DragDropUtil.js +0 -3
  30. package/dist/js/next/components/DragDrop/DragDropUtil.js.map +0 -1
  31. 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;AAUvB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjD,oBAAY,wBAAwB,GAAG,YAAY,CAAC;AACpD,oBAAY,0BAA0B,GAAG,cAAc,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD;iFAC6E;IAC7E,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC9B,wCAAwC;IACxC,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,kDAAkD;IAClD,MAAM,EAAE,CAAC,KAAK,EAAE,wBAAwB,EAAE,KAAK,EAAE,eAAe,EAAE,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,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CACzB,CAAC;gBACJ;oBACE,OAAO,CACL,oBAAC,qBAAS,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,kBAAW,QAAE,QAAQ,IAAI,cAAc,EAAE,CAAe,CACzC,CACnB,CAAC;IAEF,OAAO,CACL,oBAAC,iBAAU,kBACT,OAAO,EAAE,OAAO,EAChB,kBAAkB,EAAE,oBAAa,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;AAzHW,QAAA,YAAY,gBAyHvB;AACF,oBAAY,CAAC,WAAW,GAAG,cAAc,CAAC"}
1
+ {"version":3,"file":"DragDropSort.js","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/DragDropSort.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,2DAA+C;AAC/C,wCAWuB;AACvB,gDAK2B;AAC3B,2CAAwC;AACxC,mEAAgE;AAChE,2FAAwF;AACxF,mHAAgF;AAoCzE,MAAM,YAAY,GAA+C,CAAC,EAOrD,EAAE,EAAE;QAPiD,EACvE,KAAK,EACL,MAAM,GAAG,GAAG,EAAE,GAAE,CAAC,EACjB,MAAM,GAAG,GAAG,EAAE,GAAE,CAAC,EACjB,OAAO,GAAG,SAAS,EACnB,QAAQ,OAEU,EADf,KAAK,sBAN+D,oDAOxE,CADS;IAER,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,QAAQ,CA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';
2
- export * from './DragDropUtil';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -2,5 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./DragDropSort"), exports);
5
- tslib_1.__exportStar(require("./DragDropUtil"), exports);
6
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,yDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-drag-drop",
3
- "version": "5.2.0-prerelease.6",
3
+ "version": "5.2.0-prerelease.8",
4
4
  "description": "PatternFly drag and drop solution",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -32,7 +32,7 @@
32
32
  "@dnd-kit/core": "^6.0.8",
33
33
  "@dnd-kit/modifiers": "^6.0.1",
34
34
  "@dnd-kit/sortable": "^7.0.2",
35
- "@patternfly/react-core": "^5.2.0-prerelease.48",
35
+ "@patternfly/react-core": "^5.2.0-prerelease.49",
36
36
  "@patternfly/react-icons": "^5.2.0-prerelease.10",
37
37
  "@patternfly/react-styles": "^5.2.0-prerelease.6",
38
38
  "memoize-one": "^5.1.0",
@@ -46,5 +46,5 @@
46
46
  "rimraf": "^2.6.2",
47
47
  "typescript": "^4.7.4"
48
48
  },
49
- "gitHead": "08e52e37577819f32bccbd2fc3386ad120364ea2"
49
+ "gitHead": "0ea7023cbad283ce453334689cf4c7d331ad6730"
50
50
  }
@@ -21,12 +21,20 @@ import {
21
21
  import { Draggable } from './Draggable';
22
22
  import { DraggableDataListItem } from './DraggableDataListItem';
23
23
  import { DraggableDualListSelectorListItem } from './DraggableDualListSelectorListItem';
24
- import { DraggableObject } from './DragDropUtil';
25
24
  import styles from '@patternfly/react-styles/css/components/DragDrop/drag-drop';
26
25
 
27
26
  export type DragDropSortDragEndEvent = DragEndEvent;
28
27
  export type DragDropSortDragStartEvent = DragStartEvent;
29
28
 
29
+ export interface DraggableObject {
30
+ /** Unique id of the draggable object */
31
+ id: string;
32
+ /** Content rendered in the draggable object */
33
+ content: React.ReactNode;
34
+ /** Props spread to the rendered wrapper of the draggable object */
35
+ props?: any;
36
+ }
37
+
30
38
  /**
31
39
  * DragDropSortProps extends dnd-kit's props which may be viewed at https://docs.dndkit.com/api-documentation/context-provider#props.
32
40
  */
@@ -15,7 +15,7 @@ import AngleDoubleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-d
15
15
  import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';
16
16
  import PficonSortCommonAscIcon from '@patternfly/react-icons/dist/esm/icons/pficon-sort-common-asc-icon';
17
17
 
18
- import { DragDropSort, DraggableObject } from '@patternfly/react-drag-drop';
18
+ import { DragDropSort } from '@patternfly/react-drag-drop';
19
19
 
20
20
  ## Sorting examples
21
21
 
@@ -14,7 +14,7 @@ import AngleDoubleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-d
14
14
  import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';
15
15
  import PficonSortCommonAscIcon from '@patternfly/react-icons/dist/esm/icons/pficon-sort-common-asc-icon';
16
16
 
17
- import { DragDropSort, DraggableObject } from '@patternfly/react-drag-drop';
17
+ import { DragDropSort } from '@patternfly/react-drag-drop';
18
18
 
19
19
  ## Sorting demos
20
20
 
@@ -1,2 +1 @@
1
1
  export * from './DragDropSort';
2
- export * from './DragDropUtil';
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- export interface DraggableObject {
3
- /** Unique id of the draggable object */
4
- id: string;
5
- /** Content rendered in the draggable object */
6
- content: React.ReactNode;
7
- /** Props spread to the rendered wrapper of the draggable object */
8
- props?: any;
9
- }
10
- //# sourceMappingURL=DragDropUtil.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DragDropUtil.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/DragDropUtil.tsx"],"names":[],"mappings":";AAAA,MAAM,WAAW,eAAe;IAC9B,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,+CAA+C;IAC/C,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,mEAAmE;IACnE,KAAK,CAAC,EAAE,GAAG,CAAC;CACb"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=DragDropUtil.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DragDropUtil.js","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/DragDropUtil.tsx"],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- export interface DraggableObject {
3
- /** Unique id of the draggable object */
4
- id: string;
5
- /** Content rendered in the draggable object */
6
- content: React.ReactNode;
7
- /** Props spread to the rendered wrapper of the draggable object */
8
- props?: any;
9
- }
10
- //# sourceMappingURL=DragDropUtil.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DragDropUtil.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/DragDropUtil.tsx"],"names":[],"mappings":";AAAA,MAAM,WAAW,eAAe;IAC9B,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,+CAA+C;IAC/C,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,mEAAmE;IACnE,KAAK,CAAC,EAAE,GAAG,CAAC;CACb"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=DragDropUtil.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DragDropUtil.js","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/DragDropUtil.tsx"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- export interface DraggableObject {
2
- /** Unique id of the draggable object */
3
- id: string;
4
- /** Content rendered in the draggable object */
5
- content: React.ReactNode;
6
- /** Props spread to the rendered wrapper of the draggable object */
7
- props?: any;
8
- }