diff --git a/.github/label.yml b/.github/label.yml deleted file mode 100644 index f02255b5..00000000 --- a/.github/label.yml +++ /dev/null @@ -1,30 +0,0 @@ -playground: - - playground/* - - playground/**/* - -accessibility: - - packages/accessibility/* - - packages/accessibility/**/* - -core: - - packages/core/* - - packages/core/**/* - -sortable: - - packages/sortable/* - - packages/sortable/**/* - -modifiers: - - packages/modifiers/* - - packages/modifiers/**/* - -utilities: - - packages/utilities/* - - packages/utilities/**/* - -cypress: - - cypress/* - - cypress/**/* - -repo: - - ./* diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 73f89de4..c173041c 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -14,4 +14,4 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} projectToken: ${{ secrets.CHROMATIC_TOKEN }} buildScriptName: 'build' - workingDir: 'apps/docs' + workingDir: 'apps/storybook' diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml deleted file mode 100644 index 03232dad..00000000 --- a/.github/workflows/size.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Compressed Size - -on: - push: - branches-ignore: - - 'master' - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 1 - - uses: preactjs/compressed-size-action@v2 - with: - repo-token: '${{ secrets.GITHUB_TOKEN }}' diff --git a/apps/docs/package.json b/apps/docs/package.json index 801b58f8..1120d455 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -5,7 +5,7 @@ "private": true, "scripts": { "dev": "storybook dev -p 6006", - "build": "storybook build --docs", + "build": "storybook build", "preview-storybook": "serve storybook-static", "clean": "rm -rf .turbo && rm -rf node_modules", "lint": "eslint ./stories/*.stories.tsx --max-warnings 0" diff --git a/packages/abstract/package.json b/packages/abstract/package.json index 7646994f..5417029a 100644 --- a/packages/abstract/package.json +++ b/packages/abstract/package.json @@ -1,6 +1,6 @@ { "name": "@dnd-kit/abstract", - "version": "0.0.0", + "version": "0.0.1", "type": "module", "main": "./index.cjs", "module": "./index.js", diff --git a/packages/abstract/src/core/collision/notifier.ts b/packages/abstract/src/core/collision/notifier.ts index e3b52f88..e41479c6 100644 --- a/packages/abstract/src/core/collision/notifier.ts +++ b/packages/abstract/src/core/collision/notifier.ts @@ -2,6 +2,7 @@ import {effect, untracked} from '@dnd-kit/state'; import {DragDropManager} from '../manager/index.js'; import {CorePlugin} from '../plugins/index.js'; +import {defaultPreventable} from '../manager/events.js'; export class CollisionNotifier extends CorePlugin { constructor(manager: DragDropManager) { @@ -15,19 +16,13 @@ export class CollisionNotifier extends CorePlugin { return; } - let defaultPrevented = false; - - monitor.dispatch('collision', { + const event = defaultPreventable({ collisions, - get defaultPrevented() { - return defaultPrevented; - }, - preventDefault() { - defaultPrevented = true; - }, }); - if (defaultPrevented) { + monitor.dispatch('collision', event); + + if (event.defaultPrevented) { return; } diff --git a/packages/collision/package.json b/packages/collision/package.json index 97d638a4..2bbed315 100644 --- a/packages/collision/package.json +++ b/packages/collision/package.json @@ -1,7 +1,7 @@ { "name": "@dnd-kit/collision", "type": "module", - "version": "0.0.0", + "version": "0.0.1", "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/packages/dom/package.json b/packages/dom/package.json index 74e32f2e..12e24e60 100644 --- a/packages/dom/package.json +++ b/packages/dom/package.json @@ -1,6 +1,6 @@ { "name": "@dnd-kit/dom", - "version": "0.0.0", + "version": "0.0.1", "type": "module", "main": "./index.cjs", "module": "./index.js", diff --git a/packages/dom/src/core/index.ts b/packages/dom/src/core/index.ts index 7616d942..4f03d3a2 100644 --- a/packages/dom/src/core/index.ts +++ b/packages/dom/src/core/index.ts @@ -14,7 +14,7 @@ export type {Sensors} from './sensors/index.js'; export { Accessibility, AutoScroller, - DraggableFeedback, + Feedback, Scroller, ScrollListener, } from './plugins/index.js'; diff --git a/packages/dom/src/core/plugins/feedback/index.ts b/packages/dom/src/core/plugins/feedback/index.ts index 4e453f41..80cda8d5 100644 --- a/packages/dom/src/core/plugins/feedback/index.ts +++ b/packages/dom/src/core/plugins/feedback/index.ts @@ -1,3 +1,2 @@ -export {DraggableFeedback} from './DraggableFeedback.js'; export {Feedback} from './Feedback.js'; export type {Transition} from './types.js'; diff --git a/packages/dom/src/core/plugins/index.ts b/packages/dom/src/core/plugins/index.ts index d17213ff..186ce5cf 100644 --- a/packages/dom/src/core/plugins/index.ts +++ b/packages/dom/src/core/plugins/index.ts @@ -2,7 +2,7 @@ export {Accessibility} from './accessibility/index.js'; export {Cursor} from './cursor/index.js'; -export {DraggableFeedback, Feedback} from './feedback/index.js'; +export {Feedback} from './feedback/index.js'; export type {Transition} from './feedback/types.js'; export {AutoScroller, Scroller, ScrollListener} from './scrolling/index.js'; diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index c9ea13a7..cbe3cb10 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -1,6 +1,6 @@ { "name": "@dnd-kit/eslint-config", - "version": "0.0.0", + "version": "0.0.1", "private": true, "files": [ "vanilla.js", diff --git a/packages/geometry/package.json b/packages/geometry/package.json index 535da2b7..4af19ba4 100644 --- a/packages/geometry/package.json +++ b/packages/geometry/package.json @@ -1,6 +1,6 @@ { "name": "@dnd-kit/geometry", - "version": "0.0.0", + "version": "0.0.1", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", diff --git a/packages/helpers/package.json b/packages/helpers/package.json index 22df60fe..40cb28a7 100644 --- a/packages/helpers/package.json +++ b/packages/helpers/package.json @@ -1,7 +1,7 @@ { "name": "@dnd-kit/helpers", "type": "module", - "version": "0.0.0", + "version": "0.0.1", "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/packages/react/package.json b/packages/react/package.json index 14ab6a44..e62e70d3 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@dnd-kit/react", - "version": "0.0.0", + "version": "0.0.1", "main": "./index.cjs", "module": "./index.js", "type": "module", diff --git a/packages/state/package.json b/packages/state/package.json index 14de3162..8dad3647 100644 --- a/packages/state/package.json +++ b/packages/state/package.json @@ -1,6 +1,6 @@ { "name": "@dnd-kit/state", - "version": "0.0.0", + "version": "0.0.1", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts",