Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
clauderic committed Jun 3, 2024
1 parent dcdbe0b commit bae85b2
Show file tree
Hide file tree
Showing 127 changed files with 25 additions and 79 deletions.
30 changes: 0 additions & 30 deletions .github/label.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_TOKEN }}
buildScriptName: 'build'
workingDir: 'apps/docs'
workingDir: 'apps/stories'
18 changes: 0 additions & 18 deletions .github/workflows/size.yml

This file was deleted.

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.
4 changes: 2 additions & 2 deletions apps/docs/package.json → apps/stories/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@dnd-kit/storybook",
"name": "@dnd-kit/stories",
"version": "0.0.0",
"type": "module",
"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"
Expand Down
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions packages/abstract/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dnd-kit/abstract",
"version": "0.0.0",
"version": "0.0.1",
"type": "module",
"main": "./index.cjs",
"module": "./index.js",
Expand Down Expand Up @@ -49,7 +49,7 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@dnd-kit/config-eslint": "*",
"@dnd-kit/eslint-config": "*",
"eslint": "^8.38.0",
"tsup": "^6.7.0",
"typescript": "^5.0.4"
Expand Down
15 changes: 5 additions & 10 deletions packages/abstract/src/core/collision/notifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
}

Expand Down
4 changes: 2 additions & 2 deletions packages/collision/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -32,7 +32,7 @@
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.4",
"eslint": "^8.38.0",
"@dnd-kit/config-eslint": "*",
"@dnd-kit/eslint-config": "*",
"react": "^18.1.0",
"tsup": "^6.7.0",
"typescript": "^5.0.4"
Expand Down
4 changes: 2 additions & 2 deletions packages/dom/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dnd-kit/dom",
"version": "0.0.0",
"version": "0.0.1",
"type": "module",
"main": "./index.cjs",
"module": "./index.js",
Expand Down Expand Up @@ -81,7 +81,7 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@dnd-kit/config-eslint": "*",
"@dnd-kit/eslint-config": "*",
"eslint": "^8.38.0",
"tsup": "^7.2.0",
"typescript": "^5.1.6"
Expand Down
2 changes: 1 addition & 1 deletion packages/dom/src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type {Sensors} from './sensors/index.js';
export {
Accessibility,
AutoScroller,
DraggableFeedback,
Feedback,
Scroller,
ScrollListener,
} from './plugins/index.js';
Expand Down
1 change: 0 additions & 1 deletion packages/dom/src/core/plugins/feedback/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export {DraggableFeedback} from './DraggableFeedback.js';
export {Feedback} from './Feedback.js';
export type {Transition} from './types.js';
2 changes: 1 addition & 1 deletion packages/dom/src/core/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dnd-kit/eslint-config",
"version": "0.0.0",
"version": "0.0.1",
"private": true,
"files": [
"vanilla.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/geometry/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -20,7 +20,7 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@dnd-kit/config-eslint": "*",
"@dnd-kit/eslint-config": "*",
"eslint": "^8.38.0",
"tsup": "^6.7.0",
"typescript": "^5.0.4"
Expand Down
4 changes: 2 additions & 2 deletions packages/helpers/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -28,7 +28,7 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@dnd-kit/config-eslint": "*",
"@dnd-kit/eslint-config": "*",
"eslint": "^8.38.0",
"tsup": "^6.7.0",
"typescript": "^5.0.4"
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dnd-kit/react",
"version": "0.0.0",
"version": "0.0.1",
"main": "./index.cjs",
"module": "./index.js",
"type": "module",
Expand Down Expand Up @@ -69,7 +69,7 @@
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.4",
"eslint": "^8.38.0",
"@dnd-kit/config-eslint": "*",
"@dnd-kit/eslint-config": "*",
"react": "^18.1.0",
"tsup": "^7.2.0",
"typescript": "^5.1.6"
Expand Down
4 changes: 2 additions & 2 deletions packages/state/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -20,7 +20,7 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@dnd-kit/config-eslint": "*",
"@dnd-kit/eslint-config": "*",
"eslint": "^8.38.0",
"tsup": "^6.7.0",
"typescript": "^5.0.4"
Expand Down

0 comments on commit bae85b2

Please sign in to comment.