Skip to content

Commit

Permalink
Merge pull request #63 from Shopify/v1.0.0-beta.2
Browse files Browse the repository at this point in the history
v1.0.0-beta.2
  • Loading branch information
tsov authored Oct 10, 2017
2 parents 03e515c + 9c63ded commit 23a7f3a
Show file tree
Hide file tree
Showing 100 changed files with 680 additions and 203 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- image: circleci/node:8.2.1
- image: circleci/node:8.6.0

working_directory: ~/repo

Expand Down
12 changes: 11 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,15 @@ module.exports = {
rules: {
'import/no-unresolved': 'off',
'import/no-extraneous-dependencies': 'off',
}
},
globals: {
jest: false,
afterAll: false,
afterEach: false,
beforeAll: false,
beforeEach: false,
describe: false,
test: false,
expect: false,
},
};
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v8.6.0
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Changelog

## v1.0.0-beta.2 - 2017-10-10

### Added

- Code of Conduct
- Contribution guidelines
- Documentation on `appendTo` option for `Draggable`
- Added concept of `originalSource`
- Fix for text selection issue
- Fix for native drag events firing for the `MouseSensor`
- Fix for missing `classes` option

### Changes

- README updates
- Touch improvements
- ForceTouchSensor is not included by default anymore
- Folder/File restructure
- Exports `AbstractEvent` as `BaseEvent`
- Update node version from `8.2.1` to `8.6.0`
- Clones event callbacks before triggering (to prevent mutation during iterations)
- Improvements to `closest` utils helper

## v1.0.0-beta - 2017-09-27

Initial release
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ using mouse events, otherwise mirror will be `null` in events. Default: `false`

**`plugins {Array[Plugin]}`**
Plugins add behaviour to Draggable by hooking into its life cycle, e.g. one of the default
plugins controls the mirror movement. Default: `[Mirror, Accessibility]`
plugins controls the mirror movement. Default: `[]`

**`appendTo {String|HTMLElement|Function}`**
Draggable allows you to specify where the mirror should be appended to. You can specify a css
Expand Down
6 changes: 3 additions & 3 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"testMatch": ["<rootDir>/test/src/**/*.js"],
"setupFiles": ["<rootDir>/test/setup.js"],
"testMatch": ["<rootDir>/src/**/*.test.js"],
"setupFiles": ["<rootDir>/scripts/test/setup.js"],
"transform": {".*": "<rootDir>/node_modules/babel-jest"},
"moduleFileExtensions": ["js"],
"collectCoverageFrom": [
"src/**/*.js"
],
"moduleDirectories": ["node_modules", "src", "test"]
"moduleDirectories": ["node_modules", "src", "scripts/test"]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/draggable",
"version": "1.0.0-beta",
"version": "1.0.0-beta.2",
"private": false,
"license": "MIT",
"description": "The JavaScript Drag & Drop library your grandparents warned you about.",
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import AbstractEvent from './abstract-event';
import AbstractEvent from 'shared/AbstractEvent';

export class DragEvent extends AbstractEvent {
get source() {
return this.data.source;
}

get movableSource() {
return this.data.movableSource;
get originalSource() {
return this.data.originalSource;
}

get mirror() {
Expand Down
1 change: 1 addition & 0 deletions src/Draggable/DragEvent/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## Drag event
10 changes: 10 additions & 0 deletions src/Draggable/DragEvent/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export {
DragStartEvent,
DragMoveEvent,
DragOutContainerEvent,
DragOutEvent,
DragOverContainerEvent,
DragOverEvent,
DragStopEvent,
DragPressureEvent,
} from './DragEvent';
Loading

0 comments on commit 23a7f3a

Please sign in to comment.