dragselect 2.5.5 → 2.6.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 CHANGED
@@ -1,3 +1,14 @@
1
+ # 2.6.0
2
+
3
+ - Introducing Overrides as a new concept to help advanced modification use-cases like [#150](https://github.com/ThibaultJanBeyer/DragSelect/issues/150) in collaboration with [@HollowMan6](https://github.com/HollowMan6)
4
+ - - See [Example use-case](https://dragselect.com/docs/guided-examples/Custom-Selection-Filter-Override) & [API for overrides](https://dragselect.com/docs/API/Overrides)
5
+ - Expose `filterSelected` in `Selection` module
6
+ - Expose `isCollision` helper method
7
+
8
+ # 2.5.6
9
+
10
+ - Test refactor to monorepo and yarn for npm compatibility
11
+
1
12
  # 2.5.5
2
13
 
3
14
  - 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.
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 tests were 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
+ ```
@@ -179,6 +179,9 @@ declare class DragSelect {
179
179
  */
180
180
  getItemsInsideByZoneId: (zoneId: string, addClasses: boolean) => DSElements | void;
181
181
  }
182
+ declare namespace DragSelect {
183
+ export { isCollision };
184
+ }
182
185
  import { PubSub } from "./modules";
183
186
  import { SettingsStore } from "./stores";
184
187
  import { PointerStore } from "./stores";
@@ -193,4 +196,5 @@ import { Selection } from "./modules";
193
196
  import { Drag } from "./modules";
194
197
  import { DropZones } from "./modules";
195
198
  import { Interaction } from "./modules";
199
+ import { isCollision } from "./methods";
196
200
  import "./types"