@atlaskit/pragmatic-drag-and-drop 0.20.0 → 0.21.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/CHANGELOG.md +20 -0
- package/constellation/index/about.mdx +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/entry-point/types.d.ts +1 -1
- package/dist/types-ts4.5/entry-point/types.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/pragmatic-drag-and-drop
|
|
2
2
|
|
|
3
|
+
## 0.21.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`de7463c7096`](https://bitbucket.org/atlassian/atlassian-frontend/commits/de7463c7096) - Exposing some additional TypeScript types. These can be helpful when creating helper packages.
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import type {
|
|
11
|
+
// These types are not needed for consumers
|
|
12
|
+
// They are mostly helpful for other packages
|
|
13
|
+
AllDragTypes,
|
|
14
|
+
MonitorArgs,
|
|
15
|
+
BaseEventPayload,
|
|
16
|
+
} from '@atlaskit/pragmatic-drag-and-drop/types';
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
- `AllDragTypes`: representation of all entities types in the system (eg element and file)
|
|
20
|
+
- `MonitorArgs<DragType extends AllDragTypes>`: the arguments that can be passed to a monitor
|
|
21
|
+
- `BaseEventPayload<DragType extends AllDragTypes>`: the shared properties in all events
|
|
22
|
+
|
|
3
23
|
## 0.20.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -49,7 +49,7 @@ import { combine } from '@atlaskit/pragmatic-drag-and-drop/util/combine';
|
|
|
49
49
|
_Draggables_, _drop targets_ and _monitors_ return a cleanup function.
|
|
50
50
|
|
|
51
51
|
```ts
|
|
52
|
-
import { CleanupFn } from '@atlaskit/pragmatic-drag-and-drop/types';
|
|
52
|
+
import type { CleanupFn } from '@atlaskit/pragmatic-drag-and-drop/types';
|
|
53
53
|
import { draggable } from '@atlaskit/pragmatic-drag-and-drop/adapter/element';
|
|
54
54
|
|
|
55
55
|
const cleanup: CleanupFn = draggable({ element: myElement });
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { DropTargetRecord, Position, SourceCanStartArgs, Input, DragLocation, DragLocationHistory, CleanupFn, } from '../internal-types';
|
|
1
|
+
export type { DropTargetRecord, Position, SourceCanStartArgs, Input, DragLocation, DragLocationHistory, CleanupFn, AllDragTypes, MonitorArgs, BaseEventPayload, } from '../internal-types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { DropTargetRecord, Position, SourceCanStartArgs, Input, DragLocation, DragLocationHistory, CleanupFn, } from '../internal-types';
|
|
1
|
+
export type { DropTargetRecord, Position, SourceCanStartArgs, Input, DragLocation, DragLocationHistory, CleanupFn, AllDragTypes, MonitorArgs, BaseEventPayload, } from '../internal-types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/pragmatic-drag-and-drop",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "The core Pragmatic drag and drop framework, optimized for performance.",
|
|
5
5
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
6
6
|
"author": "Atlassian Pty Ltd",
|