Skip to content

Commit 82c645f

Browse files
committed
Merge remote-tracking branch 'origin/main' into new-api
2 parents 6520c96 + 9e4729a commit 82c645f

19 files changed

+106
-15
lines changed

.github/workflows/cr.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Continuous Releases
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-node@v4
12+
with:
13+
node-version: 20
14+
15+
- uses: pnpm/action-setup@v4
16+
with:
17+
version: 9
18+
run_install: true
19+
20+
- name: Compile
21+
run: pnpm compile
22+
23+
- name: Release
24+
run: pnpm dlx pkg-pr-new publish './packages/*'

docs/CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# docs
22

3+
## 0.0.13
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`01e3510`](https://github.com/PuruVJ/neodrag/commit/01e35105c0f532481fb2e31091d052b8622e5c83)]:
8+
- @neodrag/svelte@2.3.1
9+
10+
## 0.0.12
11+
12+
### Patch Changes
13+
14+
- Updated dependencies [[`a917373`](https://github.com/PuruVJ/neodrag/commit/a917373e56378ae9443f3162e428abc8c058b191)]:
15+
- @neodrag/svelte@2.3.0
16+
317
## 0.0.11
418

519
### Patch Changes

docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "docs",
33
"type": "module",
4-
"version": "0.0.11",
4+
"version": "0.0.13",
55
"private": true,
66
"scripts": {
77
"dev": "astro dev",

docs/src/documentation/exported-types.mdx

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ export type DragEventData = {
4242

4343
/** The element being dragged */
4444
currentNode: HTMLElement;
45+
46+
/** The pointer event that triggered the drag */
47+
event: PointerEvent;
4548
};
4649

4750
export type DragBoundsCoords = {

docs/src/pages/docs/svelte.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ How to use events-as-options? The syntax is similar to the custom events one
102102
```svelte
103103
<div
104104
use:draggable={{
105-
onDragStart: ({ offsetX, offsetY, rootNode, currentNode }) => {
105+
onDragStart: ({ offsetX, offsetY, rootNode, currentNode, event }) => {
106106
// Do something
107107
},
108-
onDrag: ({ offsetX, offsetY, rootNode, currentNode }) => {
108+
onDrag: ({ offsetX, offsetY, rootNode, currentNode, event }) => {
109109
// Do something
110110
},
111-
onDragEnd: ({ offsetX, offsetY, rootNode, currentNode }) => {
111+
onDragEnd: ({ offsetX, offsetY, rootNode, currentNode, event }) => {
112112
// Do something
113113
},
114114
}}

packages/core/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @neodrag/core
22

3+
## 2.3.0
4+
5+
### Minor Changes
6+
7+
- [#186](https://github.com/PuruVJ/neodrag/pull/186) [`a917373`](https://github.com/PuruVJ/neodrag/commit/a917373e56378ae9443f3162e428abc8c058b191) Thanks [@PuruVJ](https://github.com/PuruVJ)! - feat: Expose event: PointerEvent
8+
39
## 2.2.0
410

511
### Minor Changes

packages/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@neodrag/core",
33
"private": "true",
4-
"version": "2.2.0",
4+
"version": "2.3.0",
55
"main": "./dist/index.js",
66
"module": "./dist/index.js",
77
"type": "module",

packages/react/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @neodrag/react
22

3+
## 2.3.0
4+
5+
### Minor Changes
6+
7+
- [#186](https://github.com/PuruVJ/neodrag/pull/186) [`a917373`](https://github.com/PuruVJ/neodrag/commit/a917373e56378ae9443f3162e428abc8c058b191) Thanks [@PuruVJ](https://github.com/PuruVJ)! - feat: Expose event: PointerEvent
8+
39
## 2.2.0
410

511
### Minor Changes

packages/react/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@neodrag/react",
3-
"version": "2.2.0",
3+
"version": "2.3.0",
44
"description": "React library to add dragging to your apps 😉",
55
"main": "./dist/index.js",
66
"module": "./dist/index.js",

packages/solid/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @neodrag/solid
22

3+
## 2.3.0
4+
5+
### Minor Changes
6+
7+
- [#186](https://github.com/PuruVJ/neodrag/pull/186) [`a917373`](https://github.com/PuruVJ/neodrag/commit/a917373e56378ae9443f3162e428abc8c058b191) Thanks [@PuruVJ](https://github.com/PuruVJ)! - feat: Expose event: PointerEvent
8+
39
## 2.2.0
410

511
### Minor Changes

packages/solid/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@neodrag/solid",
3-
"version": "2.2.0",
3+
"version": "2.3.0",
44
"description": "SolidJS library to add dragging to your apps 😉",
55
"main": "./dist/index.js",
66
"module": "./dist/index.js",

packages/svelte/CHANGELOG.md

+15-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# @neodrag/svelte
22

3+
## 2.3.1
4+
5+
### Patch Changes
6+
7+
- [#188](https://github.com/PuruVJ/neodrag/pull/188) [`01e3510`](https://github.com/PuruVJ/neodrag/commit/01e35105c0f532481fb2e31091d052b8622e5c83) Thanks [@vincjo](https://github.com/vincjo)! - fix: Add "svelte" field to @neodrag/svelte exports
8+
9+
## 2.3.0
10+
11+
### Minor Changes
12+
13+
- [#186](https://github.com/PuruVJ/neodrag/pull/186) [`a917373`](https://github.com/PuruVJ/neodrag/commit/a917373e56378ae9443f3162e428abc8c058b191) Thanks [@PuruVJ](https://github.com/PuruVJ)! - feat: Expose event: PointerEvent
14+
315
## 2.2.0
416

517
### Minor Changes
@@ -80,9 +92,9 @@ If you have this in your `tsconfig.json`:
8092

8193
```json
8294
{
83-
"compilerOptions": {
84-
"types": ["@neodrag/svelte/globals"]
85-
}
95+
"compilerOptions": {
96+
"types": ["@neodrag/svelte/globals"]
97+
}
8698
}
8799
```
88100

packages/svelte/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@neodrag/svelte",
3-
"version": "2.2.0",
3+
"version": "2.3.1",
44
"description": "Svelte Action to add dragging to your apps 😉",
55
"main": "./dist/index.js",
66
"module": "./dist/index.js",
@@ -14,7 +14,8 @@
1414
".": {
1515
"types": "./dist/index.d.ts",
1616
"import": "./dist/index.js",
17-
"default": "./dist/index.js"
17+
"default": "./dist/index.js",
18+
"svelte": "./dist/index.js"
1819
},
1920
"./package.json": "./package.json"
2021
},

packages/vanilla/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @neodrag/vanilla
22

3+
## 2.3.0
4+
5+
### Minor Changes
6+
7+
- [#186](https://github.com/PuruVJ/neodrag/pull/186) [`a917373`](https://github.com/PuruVJ/neodrag/commit/a917373e56378ae9443f3162e428abc8c058b191) Thanks [@PuruVJ](https://github.com/PuruVJ)! - feat: Expose event: PointerEvent
8+
39
## 2.2.0
410

511
### Minor Changes

packages/vanilla/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@neodrag/vanilla",
3-
"version": "2.2.0",
3+
"version": "2.3.0",
44
"description": "JS library to add dragging to your apps 😉",
55
"main": "./dist/index.js",
66
"unpkg": "./dist/umd/index.js",

packages/vue/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @neodrag/vue
22

3+
## 2.3.0
4+
5+
### Minor Changes
6+
7+
- [#186](https://github.com/PuruVJ/neodrag/pull/186) [`a917373`](https://github.com/PuruVJ/neodrag/commit/a917373e56378ae9443f3162e428abc8c058b191) Thanks [@PuruVJ](https://github.com/PuruVJ)! - feat: Expose event: PointerEvent
8+
39
## 2.2.0
410

511
### Minor Changes

packages/vue/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@neodrag/vue",
3-
"version": "2.2.0",
3+
"version": "2.3.0",
44
"description": "Vue library to add dragging to your apps 😉",
55
"main": "./dist/index.js",
66
"module": "./dist/index.js",

playground/vue/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# demo
22

3+
## 0.0.10
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`a917373`](https://github.com/PuruVJ/neodrag/commit/a917373e56378ae9443f3162e428abc8c058b191)]:
8+
- @neodrag/vue@2.3.0
9+
310
## 0.0.9
411

512
### Patch Changes

playground/vue/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-demo",
33
"private": true,
4-
"version": "0.0.9",
4+
"version": "0.0.10",
55
"scripts": {
66
"dev": "vite",
77
"build": "vite build",

0 commit comments

Comments
 (0)