Skip to content

Commit

Permalink
feat(hooks): export useDrag、useDrop
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxingkang committed Mar 12, 2024
1 parent 8cdac22 commit 9dba7a4
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hooks/hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@
"@pansy/use-update-effect": "0.2.6",
"@pansy/use-update-layout-effect": "0.2.13",
"@pansy/use-watermark": "0.3.4",
"@pansy/use-web-socket": "0.2.3"
"@pansy/use-web-socket": "0.2.3",
"@pansy/use-drag": "1.0.0",
"@pansy/use-drop": "1.0.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org",
Expand Down
2 changes: 2 additions & 0 deletions hooks/hooks/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export { useRequest } from '@pansy/use-request';
export { usePortal } from '@pansy/use-portal';
export { usePagination } from '@pansy/use-pagination';
export { useFullscreen } from '@pansy/use-fullscreen';
export { useDrag } from '@pansy/use-drag';
export { useDrop } from '@pansy/use-drop';

export type { UseModalResult } from '@pansy/use-modal';
export type { Options as UseFullscreenOptions } from '@pansy/use-fullscreen';
5 changes: 5 additions & 0 deletions hooks/useDrag/.redbudrc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { defineConfig } from 'redbud';

export default defineConfig({
extends: '../../.redbudrc.base.ts'
});
5 changes: 5 additions & 0 deletions hooks/useDrop/.redbudrc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { defineConfig } from 'redbud';

export default defineConfig({
extends: '../../.redbudrc.base.ts'
});
6 changes: 6 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9dba7a4

Please sign in to comment.