refactor(core): move hooks to core (#5458)

* move @toeverything/hooks -> @affine/core/hooks
* delete @toeverything/hooks

hooks are all business-related logic and are deeply coupled with other parts.

Move them into the core and then reconstruct them by feature.
This commit is contained in:
EYHN
2024-01-02 08:05:46 +00:00
parent 6862b7deaf
commit 4b217e6b89
95 changed files with 99 additions and 347 deletions
-4
View File
@@ -66,7 +66,6 @@
"@affine-test/kit/*": ["./tests/kit/*"],
"@affine-test/fixtures/*": ["./tests/fixtures/*"],
"@toeverything/y-indexeddb": ["./packages/common/y-indexeddb/src"],
"@toeverything/hooks/*": ["./packages/frontend/hooks/src/*"],
"@toeverything/infra/*": ["./packages/common/infra/src/*"],
"@affine/native": ["./packages/frontend/native/index.d.ts"],
"@affine/native/*": ["./packages/frontend/native/*"],
@@ -97,9 +96,6 @@
{
"path": "./packages/frontend/graphql"
},
{
"path": "./packages/frontend/hooks"
},
{
"path": "./packages/frontend/i18n"
},