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 fd755e8
Show file tree
Hide file tree
Showing 126 changed files with 17 additions and 71 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/storybook'
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.
2 changes: 1 addition & 1 deletion apps/docs/package.json → apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
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.
2 changes: 1 addition & 1 deletion 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
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
2 changes: 1 addition & 1 deletion 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
2 changes: 1 addition & 1 deletion 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
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
2 changes: 1 addition & 1 deletion 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 Down
2 changes: 1 addition & 1 deletion 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 Down
2 changes: 1 addition & 1 deletion 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
2 changes: 1 addition & 1 deletion 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 Down

0 comments on commit fd755e8

Please sign in to comment.