-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
67 changed files
with
188 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ dist/ | |
.DS_Store | ||
.env | ||
.pnpm-store/ | ||
.turbo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ | |
"type": "module", | ||
"scripts": { | ||
"changeset": "changeset", | ||
"compile": "pnpm -r compile", | ||
"docs:build": "pnpm compile && pnpm sizes && cd docs && pnpm build", | ||
"compile": "turbo run compile", | ||
"docs:build": "turbo run docs#build", | ||
"ci:version": "changeset version", | ||
"ci:release": "changeset publish", | ||
"sizes": "tsx scripts/gather-sizes.ts" | ||
|
@@ -29,6 +29,7 @@ | |
"terser": "^5.26.0", | ||
"tsup": "^8.0.1", | ||
"tsx": "^4.6.2", | ||
"turbo": "^2.3.3", | ||
"typescript": "^5.4.5", | ||
"vite": "^5.2.9", | ||
"vitest": "^1.5.0", | ||
|
@@ -38,5 +39,6 @@ | |
"overrides": { | ||
"vite": "^6.0" | ||
} | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
import { createDraggable, DEFAULT_delegate, DEFAULT_onError, DEFAULT_plugins } from '@neodrag/core'; | ||
import { createDraggable } from '@neodrag/core'; | ||
import type { Plugin } from '@neodrag/core/plugins'; | ||
import type { Action } from 'svelte/action'; | ||
|
||
const { draggable: core, instances } = createDraggable({ | ||
delegate: DEFAULT_delegate, | ||
plugins: DEFAULT_plugins, | ||
onError: DEFAULT_onError, | ||
}); | ||
const { draggable: core, instances } = createDraggable(); | ||
|
||
export const draggable = core as Action<HTMLElement | SVGElement, Plugin[] | undefined>; | ||
export { instances }; | ||
export * from '@neodrag/core/plugins'; | ||
export { instances }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/react/demo/package.json β playground/react/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "demo", | ||
"name": "react-demo", | ||
"private": true, | ||
"version": "0.0.1", | ||
"scripts": { | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/solid/demo/package.json β playground/solid/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "demo", | ||
"name": "solid-demo", | ||
"version": "0.0.0", | ||
"private": true, | ||
"scripts": { | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/svelte/demo/package.json β playground/svelte/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "demo", | ||
"name": "svelte-demo", | ||
"private": true, | ||
"version": "0.0.1", | ||
"type": "module", | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/vanilla/demo-umd/package.json β playground/vanilla-umd/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "demo", | ||
"name": "vanilla-umd-demo", | ||
"private": true, | ||
"version": "0.0.0", | ||
"scripts": {}, | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/vanilla/demo/package.json β playground/vanilla/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "demo", | ||
"name": "vanilla-demo", | ||
"private": true, | ||
"version": "0.0.0", | ||
"scripts": { | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "demo", | ||
"name": "vue-demo", | ||
"private": true, | ||
"version": "0.0.9", | ||
"scripts": { | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.