dragselect 2.5.4 → 2.5.6
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 +8 -0
- package/deployment.md +32 -0
- package/dist/DragSelect.d.ts +2 -2
- package/dist/DragSelect.es6m.js +193 -114
- package/dist/DragSelect.js +194 -115
- package/dist/ds.es6m.min.js +1 -1
- package/dist/ds.min.js +1 -1
- package/dist/modules/Interaction.d.ts +1 -1
- package/package.json +16 -23
- package/rollup.config.js +4 -23
- package/src/DragSelect.js +45 -11
- package/src/modules/Area.js +3 -2
- package/src/modules/Interaction.js +8 -5
- package/CODE_OF_CONDUCT.md +0 -128
- package/CONTRIBUTING.md +0 -48
- package/LICENSE +0 -21
- package/README.md +0 -470
- package/deploying.md +0 -36
- package/jsdoc.json +0 -18
- package/todos.md +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# 2.5.6
|
|
2
|
+
|
|
3
|
+
- Test refactor to monorepo and yarn for npm compatibility
|
|
4
|
+
|
|
5
|
+
# 2.5.5
|
|
6
|
+
|
|
7
|
+
- Fix bug where setting a new area via `.setSettings({ area: '...' })` would not remove the old event listeners. Which causes the mobile touch scroll from being blocked when switching between the Document to an areas.
|
|
8
|
+
|
|
1
9
|
# 2.5.4
|
|
2
10
|
|
|
3
11
|
- Fix a bug where `setSettings` would not work with `customStyles`.
|
package/deployment.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# Don‘t do this if you are not project owner!
|
|
3
|
+
|
|
4
|
+
This information is just for reference for the project owner,
|
|
5
|
+
if you are a regular contributor, see [contibuting](../CONTRIBUTING.md) and make a pull request instead.
|
|
6
|
+
|
|
7
|
+
-
|
|
8
|
+
-
|
|
9
|
+
-
|
|
10
|
+
-
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
If this was successful, the next step is to publish the new version on `npm`:
|
|
14
|
+
|
|
15
|
+
- Check if the `changelog` reflects the latest version
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
yarn build
|
|
19
|
+
```
|
|
20
|
+
- Build is necessary for npm packages (since `dist` will be deployed to npm but is ignored in repo)
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
npm version patch
|
|
24
|
+
yarn build
|
|
25
|
+
```
|
|
26
|
+
- versions are either `patch` wich changes 0.0.x, `minor` wich changes 0.x.0 or `major` for x.0.0.
|
|
27
|
+
See [npm docs](https://docs.npmjs.com/getting-started/publishing-npm-packages)
|
|
28
|
+
|
|
29
|
+
- After that push again, just to make sure and then publish:
|
|
30
|
+
```
|
|
31
|
+
npm publish
|
|
32
|
+
```
|
package/dist/DragSelect.d.ts
CHANGED
|
@@ -85,10 +85,10 @@ declare class DragSelect {
|
|
|
85
85
|
* Multiple elements can be given at once.
|
|
86
86
|
* @param {DSInputElements} elements one or multiple elements
|
|
87
87
|
* @param {boolean} [triggerCallback] - if callback should be called
|
|
88
|
-
* @param {boolean} [
|
|
88
|
+
* @param {boolean} [removeFromSelectables] - if element should not be added/removed to the list of selectable elements accordingly
|
|
89
89
|
* @return {DSElements} all selected elements
|
|
90
90
|
*/
|
|
91
|
-
toggleSelection(elements: DSInputElements, triggerCallback?: boolean,
|
|
91
|
+
toggleSelection(elements: DSInputElements, triggerCallback?: boolean, removeFromSelectables?: boolean): DSElements;
|
|
92
92
|
/**
|
|
93
93
|
* Sets the current selected elements and optionally run the callback
|
|
94
94
|
* By default, adds new elements also to the list of selectables
|