Skip to content

Commit 9b8c4dc

Browse files
committed
v1.0.0-beta.12
1 parent 5acbf88 commit 9b8c4dc

File tree

12 files changed

+46
-32
lines changed

12 files changed

+46
-32
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## v1.0.0-beta.12 - 2020-09-29
4+
5+
### Added
6+
7+
- Added `drag:stopped` event that will be fired after drag finished
8+
- Support specifying an array of class name to Draggable `classes` option
9+
10+
### Changed
11+
12+
- Fixes incorrect `oldIndex` value when working with **nested sortable**
13+
- Fixes wrong same container checking bug when working with **nested sortable**
14+
- Fixes bug `drag:start` event was triggered during the delay time
15+
- Fixes missing `overContainer` property in **DragOutEvent**
16+
317
## v1.0.0-beta.11 - 2020-07-14
418

519
### Added

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,19 @@ or via CDN
5757

5858
```html
5959
<!-- Entire bundle -->
60-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/draggable.bundle.js"></script>
60+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/draggable.bundle.js"></script>
6161
<!-- legacy bundle for older browsers (IE11) -->
62-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/draggable.bundle.legacy.js"></script>
62+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/draggable.bundle.legacy.js"></script>
6363
<!-- Draggable only -->
64-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/draggable.js"></script>
64+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/draggable.js"></script>
6565
<!-- Sortable only -->
66-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/sortable.js"></script>
66+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/sortable.js"></script>
6767
<!-- Droppable only -->
68-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/droppable.js"></script>
68+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/droppable.js"></script>
6969
<!-- Swappable only -->
70-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/swappable.js"></script>
70+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/swappable.js"></script>
7171
<!-- Plugins only -->
72-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/plugins.js"></script>
72+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/plugins.js"></script>
7373
```
7474

7575
## Browser Compatibility
@@ -151,7 +151,7 @@ For more information, please checkout the [contributing document](https://github
151151

152152
## Roadmap
153153

154-
We are currently working on `v1.0.0-beta.11`. Check out the [project board](https://github.com/Shopify/draggable/projects/3) to see tasks and follow progress on the release. Any Pull Requests should be pointed against the feature branch `v1.0.0-beta.11`.
154+
We are currently working on `v1.0.0-beta.12`. Check out the [project board](https://github.com/Shopify/draggable/projects/3) to see tasks and follow progress on the release. Any Pull Requests should be pointed against the feature branch `v1.0.0-beta.12`.
155155

156156
## Related resources
157157

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@shopify/draggable",
3-
"version": "1.0.0-beta.11",
3+
"version": "1.0.0-beta.12",
44
"private": false,
55
"license": "MIT",
66
"description": "The JavaScript Drag & Drop library your grandparents warned you about.",

src/Draggable/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const draggable = new Draggable(document.querySelectorAll('ul'), {
1515

1616
- Browser (All Bundle):
1717
```html
18-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/draggable.bundle.js"></script>
18+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/draggable.bundle.js"></script>
1919
<script>
2020
const draggable = new Draggable.Draggable(document.querySelectorAll('ul'), {
2121
draggable: 'li'
@@ -25,7 +25,7 @@ const draggable = new Draggable(document.querySelectorAll('ul'), {
2525

2626
- Browser (Standalone):
2727
```html
28-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/draggable.js"></script>
28+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/draggable.js"></script>
2929
<script>
3030
const draggable = new Draggable.default(document.querySelectorAll('ul'), {
3131
draggable: 'li'

src/Droppable/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const droppable = new Droppable(document.querySelectorAll('.container'), {
2121

2222
- Browser (All Bundle):
2323
```html
24-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/draggable.bundle.js"></script>
24+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/draggable.bundle.js"></script>
2525
<script>
2626
const droppable = new Draggable.Droppable(document.querySelectorAll('.container'), {
2727
draggable: '.item',
@@ -32,7 +32,7 @@ const droppable = new Droppable(document.querySelectorAll('.container'), {
3232

3333
- Browser (Standalone):
3434
```html
35-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/droppable.js"></script>
35+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/droppable.js"></script>
3636
<script>
3737
const droppable = new Droppable.default(document.querySelectorAll('.container'), {
3838
draggable: '.item',

src/Plugins/Collidable/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const draggable = new Draggable(document.querySelectorAll("ul"), {
2323

2424
- Browser (All bundle):
2525
```html
26-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/draggable.bundle.js"></script>
26+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/draggable.bundle.js"></script>
2727
<script>
2828
const draggable = new Draggable.Draggable(document.querySelectorAll('ul'), {
2929
draggable: 'li',
@@ -35,8 +35,8 @@ const draggable = new Draggable(document.querySelectorAll("ul"), {
3535

3636
- Browser (Standalone):
3737
```html
38-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/draggable.js"></script>
39-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/plugins/collidable.js"></script>
38+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/draggable.js"></script>
39+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/plugins/collidable.js"></script>
4040
<script>
4141
const draggable = new Draggable.default(document.querySelectorAll('ul'), {
4242
draggable: 'li',

src/Plugins/ResizeMirror/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const draggable = new Draggable(document.querySelectorAll('ul'), {
2828

2929
- Browser (All bundle):
3030
```html
31-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/draggable.bundle.js"></script>
31+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/draggable.bundle.js"></script>
3232
<script>
3333
const draggable = new Draggable.Draggable(document.querySelectorAll('ul'), {
3434
draggable: 'li',
@@ -39,8 +39,8 @@ const draggable = new Draggable(document.querySelectorAll('ul'), {
3939

4040
- Browser (Standalone):
4141
```html
42-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/draggable.js"></script>
43-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/plugins/resize-mirror.js"></script>
42+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/draggable.js"></script>
43+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/plugins/resize-mirror.js"></script>
4444
<script>
4545
const draggable = new Draggable.default(document.querySelectorAll('ul'), {
4646
draggable: 'li',

src/Plugins/Snappable/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const draggable = new Draggable(document.querySelectorAll('ul'), {
2323

2424
- Browser (All bundle):
2525
```html
26-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/draggable.bundle.js"></script>
26+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/draggable.bundle.js"></script>
2727
<script>
2828
const draggable = new Draggable.Draggable(document.querySelectorAll('ul'), {
2929
draggable: 'li',
@@ -34,8 +34,8 @@ const draggable = new Draggable(document.querySelectorAll('ul'), {
3434

3535
- Browser (Standalone):
3636
```html
37-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/draggable.js"></script>
38-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/plugins/snappable.js"></script>
37+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/draggable.js"></script>
38+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/plugins/snappable.js"></script>
3939
<script>
4040
const draggable = new Draggable.default(document.querySelectorAll('ul'), {
4141
draggable: 'li',

src/Plugins/SortAnimation/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const sortable = new Sortable(document.querySelectorAll('ul'), {
3131

3232
- Browser (All plugins bundle):
3333
```html
34-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/draggable.bundle.js"></script>
34+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/draggable.bundle.js"></script>
3535
<script>
3636
const sortable = new Draggable.Sortable(document.querySelectorAll('ul'), {
3737
draggable: 'li',
@@ -46,8 +46,8 @@ const sortable = new Sortable(document.querySelectorAll('ul'), {
4646

4747
- Browser (Standalone):
4848
```html
49-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/sortable.js"></script>
50-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/plugins/sort-animation.js"></script>
49+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/sortable.js"></script>
50+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/plugins/sort-animation.js"></script>
5151
<script>
5252
const sortable = new Sortable.default(document.querySelectorAll('ul'), {
5353
draggable: 'li',

src/Plugins/SwapAnimation/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const sortable = new Sortable(document.querySelectorAll('ul'), {
2929

3030
- Browser (All plugins bundle):
3131
```html
32-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/draggable.bundle.js"></script>
32+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/draggable.bundle.js"></script>
3333
<script>
3434
const sortable = new Draggable.Sortable(document.querySelectorAll('ul'), {
3535
draggable: 'li',
@@ -45,8 +45,8 @@ const sortable = new Sortable(document.querySelectorAll('ul'), {
4545

4646
- Browser (Standalone):
4747
```html
48-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/sortable.js"></script>
49-
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].11/lib/plugins/swap-animation.js"></script>
48+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/sortable.js"></script>
49+
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected].12/lib/plugins/swap-animation.js"></script>
5050
<script>
5151
const sortable = new Sortable.default(document.querySelectorAll('ul'), {
5252
draggable: 'li',

0 commit comments

Comments
 (0)