b01a8bb2abda28fa81618cdcbad76e2861927a04
258 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
4736776ae9 |
chore: bump up jotai-effect version to v1 (#6472)
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [jotai-effect](https://togithub.com/jotaijs/jotai-effect) | [`^0.6.0` -> `^1.0.0`](https://renovatebot.com/diffs/npm/jotai-effect/0.6.0/1.0.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>jotaijs/jotai-effect (jotai-effect)</summary> ### [`v1.0.0`](https://togithub.com/jotaijs/jotai-effect/releases/tag/v1.0.0) [Compare Source](https://togithub.com/jotaijs/jotai-effect/compare/v0.6.0...v1.0.0) I am thrilled to announce the release of Jotai Effect version 1.0! This milestone represents a significant achievement marking its readiness for production use. Jotai Effect was started last October with the aim of providing a utility package for reactive side effects within the Jotai ecosystem. Over the past six months, I have been closely monitoring the API's stability and its effectiveness in real-world applications. For those eagerly waiting for Jotai to be considered production-ready, the moment has finally arrived. The feedback from our community has been overwhelmingly positive, and today, I'm confident that Jotai Effect is ready for its prime time. I couldn't have reached this point without the help of our amazing contributors, Daishi Kato ([@​dai-shi](https://togithub.com/dai-shi)) and Alex Yang ([@​himself65](https://togithub.com/himself65)). Their early contributions were pivotal in honing the library to what it is today. Additionally, I want to extend my gratitude to our vibrant community on [Discord](https://discord.com/invite/poimandres) for their continuous support and feedback. Thank you. As we celebrate this release, I encourage you to explore [Jotai Effect](https://jotai.org/docs/extensions/effect) and discover how it can streamline your reactive programming workflows. Happy Coding! Best regards, David Maskasky *The full discussion can be viewed [here](https://togithub.com/jotaijs/jotai-effect/discussions/34).* </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5In0=--> |
||
|
|
3e9e2ce93b | feat(core): pricing plans ai subscription ui (#6449) | ||
|
|
381be8a982 | fix(component): useConfirmModal can't be closed automatically when 'onConfirm' is non-async (#6439) | ||
|
|
9127bfae67 |
refactor(core): replace all notification relies on jotai (#6417)
- remove all notification that implemented with jotai and replaced with new `notify` - Add some notify presets: - `notify.error` - `notify.success` - `notify.warning` |
||
|
|
a4cd51e503 |
refactor(component): new notification center implemented with sonner (#6416)
The Notification has been reimplemented using sooner, no longer relies on jotai, and new story has been added.
- Before
```ts
import { pushNotificationAtom } from '@affine/component/notification-center';
import { useSetAtom } from 'jotai';
export const Component = () => {
const pushNotification = useSetAtom(pushNotificationAtom);
pushNotification({ ... });
}
```
- After
```ts
import { notify } from "@affine/component";
export const Component = () => {
notify({ ... });
}
```
|
||
|
|
f4e1e23120 |
feat(core): add cloud usage in sidebar avatar menu (#6400)
- Extract logic of getting cloud storage usage information into new hook - Move `<StorageProgress />`: `component` → `core` - Set minimum progress `0.5%` - Add cloud usage progress bar in sidebar user avatar's dropdown  |
||
|
|
35715ab1d8 |
feat(core): sidebar local workspace enable cloud directly (#6366)
- Add a new hook `useEnableClould`, remove `<EnableAffineClouldModal />` - Sidebar local workspace list item support enable AFFiNE Cloud |
||
|
|
d14552b5af | fix(core): sidebar workspace list can't scroll on mobile (#6370) | ||
|
|
8ed38d7c0d | fix(component): uppercase avatar letter fallback (#6354) | ||
|
|
fbe7a346c6 | fix(core): adjust sidebar workspace card syncing tooltip style (#6356) | ||
|
|
710edd28db | feat(core): open restore history confirm modal with hook (#6343) | ||
|
|
d412635f6b |
feat(component): new hook to open confirm modal (#6342)
new exports from `@affine/component`:
```ts
import { ConfirmModalProvider, useConfirmModal } from "@affine/component"
```
Open confirm modal with hook:
```ts
const Component = () => {
const { openConfirmModal } = useConformModal();
const open = () => {
openConfirmModal({
// props of ConfirmModal
/**
* will show loading state when confirm clicked, and close after onConfirm finished
*/
onConfirm: async () => {
await new Promise((r) => setTimeout(r, 2000));
},
});
}
return <Button onClick={open}>Open</Button>
}
```
|
||
|
|
8ee9f6ec05 |
chore: improve password error message (#6255)
chore: improve error message chore: add password minlength & maxlength i18n chore: check max length fix: i18n variables feat: add CredentialsRequirementType |
||
|
|
0731872347 |
feat(core): refactor sidebar header (#6251)
- Add user avatar - Move sign-out/user settings link from workspace-modal to user avatar modal - Modify the style of workspace list items - Modify gap of navigation buttons - Animate Syncing/Offline/...  |
||
|
|
d8a3cd5ce2 | chore: bump oxlint and rules (#6314) | ||
|
|
095f8c2359 | fix: button should have its font-family inherited (#6311) | ||
|
|
b2f34d17a2 | feat(core): adjust app sidebar's style (#6162) | ||
|
|
48abc52e85 |
feat: bump blocksuite (#6294)
## Features - https://github.com/toeverything/BlockSuite/pull/6544 @golok727 - https://github.com/toeverything/BlockSuite/pull/6543 @golok727 - https://github.com/toeverything/BlockSuite/pull/6536 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/6497 @doouding - https://github.com/toeverything/BlockSuite/pull/6514 @regischen - https://github.com/toeverything/BlockSuite/pull/6523 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/6530 @zzj3720 - https://github.com/toeverything/BlockSuite/pull/6526 @fourdim - https://github.com/toeverything/BlockSuite/pull/6532 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/6493 @golok727 - https://github.com/toeverything/BlockSuite/pull/6529 @zzj3720 - https://github.com/toeverything/BlockSuite/pull/6528 @zzj3720 - https://github.com/toeverything/BlockSuite/pull/6509 @zzj3720 - https://github.com/toeverything/BlockSuite/pull/6525 @doodlewind - https://github.com/toeverything/BlockSuite/pull/6502 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/6489 @Flrande ## Bugfix - https://github.com/toeverything/BlockSuite/pull/6558 @fourdim - https://github.com/toeverything/BlockSuite/pull/6556 @fourdim - https://github.com/toeverything/BlockSuite/pull/6547 @fundon - https://github.com/toeverything/BlockSuite/pull/6537 @golok727 - https://github.com/toeverything/BlockSuite/pull/6531 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/6524 @doodlewind - https://github.com/toeverything/BlockSuite/pull/6519 @regischen - https://github.com/toeverything/BlockSuite/pull/6517 @doodlewind - https://github.com/toeverything/BlockSuite/pull/6516 @doodlewind - https://github.com/toeverything/BlockSuite/pull/6510 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/6511 @congzhou09 - https://github.com/toeverything/BlockSuite/pull/6507 @doouding - https://github.com/toeverything/BlockSuite/pull/6500 @fourdim - https://github.com/toeverything/BlockSuite/pull/6486 @congzhou09 - https://github.com/toeverything/BlockSuite/pull/6495 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/6488 @Saul-Mirone - https://github.com/toeverything/BlockSuite/pull/6482 @Flrande - https://github.com/toeverything/BlockSuite/pull/6558 @fourdim ## Refactor - https://github.com/toeverything/BlockSuite/pull/6548 @doodlewind - https://github.com/toeverything/BlockSuite/pull/6522 @doodlewind - https://github.com/toeverything/BlockSuite/pull/6518 @regischen - https://github.com/toeverything/BlockSuite/pull/6521 @Saul-Mirone ## Misc - https://github.com/toeverything/BlockSuite/pull/6557 @fourdim - https://github.com/toeverything/BlockSuite/pull/6546 @Flrande - docs: update package desc - https://github.com/toeverything/BlockSuite/pull/6527 @fourdim - https://github.com/toeverything/BlockSuite/pull/6505 @Brooooooklyn - https://github.com/toeverything/BlockSuite/pull/6503 @fourdim - v0.13.0 - https://github.com/toeverything/BlockSuite/pull/6496 @doodlewind - https://github.com/toeverything/BlockSuite/pull/6562 @donteatfriedrice |
||
|
|
f2adbdaba4 | style: enable import-x/no-duplicates (#6279) | ||
|
|
3c6983ee49 |
fix(core): storybook build issue (#6274)
1. es2022 is required and should be set separately in storybook. 2. @blocksuite/icons versions are not consistent across packages. |
||
|
|
332cd3b380 |
refactor(core): split web entry from core (#6082)
This pr is trying to split `web` and `electron` entries from `core`. It allows more platform-related optimization to be addressed in each entry. We should remove all browser/electron only codes from `core` eventually, this is the very first step for that. |
||
|
|
398d66fac1 |
chore: bump up all non-major dependencies (#6107)
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@aws-sdk/client-s3](https://togithub.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3) ([source](https://togithub.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-s3)) | [`3.529.1` -> `3.536.0`](https://renovatebot.com/diffs/npm/@aws-sdk%2fclient-s3/3.529.1/3.536.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [@nx/vite](https://nx.dev) ([source](https://togithub.com/nrwl/nx/tree/HEAD/packages/vite)) | [`18.0.8` -> `18.1.2`](https://renovatebot.com/diffs/npm/@nx%2fvite/18.0.8/18.1.2) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [@vitest/coverage-istanbul](https://togithub.com/vitest-dev/vitest/tree/main/packages/coverage-istanbul#readme) ([source](https://togithub.com/vitest-dev/vitest/tree/HEAD/packages/coverage-istanbul)) | [`1.3.1` -> `1.4.0`](https://renovatebot.com/diffs/npm/@vitest%2fcoverage-istanbul/1.3.1/1.4.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [@vitest/ui](https://togithub.com/vitest-dev/vitest/tree/main/packages/ui#readme) ([source](https://togithub.com/vitest-dev/vitest/tree/HEAD/packages/ui)) | [`1.3.1` -> `1.4.0`](https://renovatebot.com/diffs/npm/@vitest%2fui/1.3.1/1.4.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [vitest](https://togithub.com/vitest-dev/vitest) ([source](https://togithub.com/vitest-dev/vitest/tree/HEAD/packages/vitest)) | [`1.3.1` -> `1.4.0`](https://renovatebot.com/diffs/npm/vitest/1.3.1/1.4.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>aws/aws-sdk-js-v3 (@​aws-sdk/client-s3)</summary> ### [`v3.536.0`](https://togithub.com/aws/aws-sdk-js-v3/blob/HEAD/clients/client-s3/CHANGELOG.md#35360-2024-03-18) [Compare Source](https://togithub.com/aws/aws-sdk-js-v3/compare/v3.535.0...v3.536.0) **Note:** Version bump only for package [@​aws-sdk/client-s3](https://togithub.com/aws-sdk/client-s3) ### [`v3.535.0`](https://togithub.com/aws/aws-sdk-js-v3/blob/HEAD/clients/client-s3/CHANGELOG.md#35350-2024-03-15) [Compare Source](https://togithub.com/aws/aws-sdk-js-v3/compare/v3.534.0...v3.535.0) **Note:** Version bump only for package [@​aws-sdk/client-s3](https://togithub.com/aws-sdk/client-s3) ### [`v3.534.0`](https://togithub.com/aws/aws-sdk-js-v3/blob/HEAD/clients/client-s3/CHANGELOG.md#35340-2024-03-14) [Compare Source](https://togithub.com/aws/aws-sdk-js-v3/compare/v3.533.0...v3.534.0) **Note:** Version bump only for package [@​aws-sdk/client-s3](https://togithub.com/aws-sdk/client-s3) ### [`v3.533.0`](https://togithub.com/aws/aws-sdk-js-v3/blob/HEAD/clients/client-s3/CHANGELOG.md#35330-2024-03-13) [Compare Source](https://togithub.com/aws/aws-sdk-js-v3/compare/v3.529.1...v3.533.0) ##### Features - **client-s3:** This release makes the default option for S3 on Outposts request signing to use the SigV4A algorithm when using AWS Common Runtime (CRT). ([2ddd8ec]( |
||
|
|
bba1a95f9c | chore: bump base version to 0.14.0 (#6170) | ||
|
|
dc8f351051 |
refactor(component): render react element into lit (#6124)
See docs in https://insider.affine.pro/share/af3478a2-9c9c-4d16-864d-bffa1eb10eb6/oL1ifjA4rKv7HRn5nYzIF This PR also enables opening split view by ctrl-click a page link in a doc. |
||
|
|
8301d82548 | fix(core): sync list titles in sidebar (#6157) | ||
|
|
636fa503b8 | feat: support esc shortcut on input-edit (#6143) | ||
|
|
a24320da68 | feat: bump blocksuite (#6123) | ||
|
|
05583dbe98 | feat: bump blocksuite (#6112) | ||
|
|
c1f5e848b4 | feat: blocksuite bump (#6104) | ||
|
|
e116a82c24 |
fix(component): an input display issue in confirm dialog (#6102)
fix the following issue of `input`  |
||
|
|
fddbb426a6 | feat: bump blocksuite (#6078) | ||
|
|
9e1adfed81 |
chore: bump up all non-major dependencies (#6069)
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@storybook/test-runner](https://togithub.com/storybookjs/test-runner) | [`^0.16.0` -> `^0.17.0`](https://renovatebot.com/diffs/npm/@storybook%2ftest-runner/0.16.0/0.17.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [next-themes](https://togithub.com/pacocoursey/next-themes) | [`^0.2.1` -> `^0.3.0`](https://renovatebot.com/diffs/npm/next-themes/0.2.1/0.3.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>storybookjs/test-runner (@​storybook/test-runner)</summary> ### [`v0.17.0`](https://togithub.com/storybookjs/test-runner/releases/tag/v0.17.0) [Compare Source](https://togithub.com/storybookjs/test-runner/compare/v0.16.0...v0.17.0) ##### 🚀 Enhancement - Release 0.17.0 [#​438](https://togithub.com/storybookjs/test-runner/pull/438) ([@​JReinhold](https://togithub.com/JReinhold) [@​shilman](https://togithub.com/shilman) [@​valentinpalkovic](https://togithub.com/valentinpalkovic) [@​yannbf](https://togithub.com/yannbf) [@​ndelangen](https://togithub.com/ndelangen)) - Support Storybook 8 [#​429](https://togithub.com/storybookjs/test-runner/pull/429) ([@​yannbf](https://togithub.com/yannbf)) - Support unhandled rendering errors [#​421](https://togithub.com/storybookjs/test-runner/pull/421) ([@​yannbf](https://togithub.com/yannbf)) ##### 🐛 Bug Fix - Prebundle dependencies [#​431](https://togithub.com/storybookjs/test-runner/pull/431) ([@​yannbf](https://togithub.com/yannbf)) - Update internal example to Storybook 8 [#​430](https://togithub.com/storybookjs/test-runner/pull/430) ([@​yannbf](https://togithub.com/yannbf)) - swap storybook/jest to storybook/test [#​427](https://togithub.com/storybookjs/test-runner/pull/427) ([@​ndelangen](https://togithub.com/ndelangen)) - Add PR template [#​428](https://togithub.com/storybookjs/test-runner/pull/428) ([@​yannbf](https://togithub.com/yannbf)) - Fix build step [#​425](https://togithub.com/storybookjs/test-runner/pull/425) ([@​valentinpalkovic](https://togithub.com/valentinpalkovic)) - Remove --prerelease from sb upgrade CI [#​423](https://togithub.com/storybookjs/test-runner/pull/423) ([@​JReinhold](https://togithub.com/JReinhold)) - Support stories with meta id for permalinking [#​419](https://togithub.com/storybookjs/test-runner/pull/419) ([@​yannbf](https://togithub.com/yannbf)) ##### 📝 Documentation - Docs: Add remark regarding pnp support [#​432](https://togithub.com/storybookjs/test-runner/pull/432) ([@​yannbf](https://togithub.com/yannbf)) - docs: replace postRender(deprecated) with postVisit [#​418](https://togithub.com/storybookjs/test-runner/pull/418) ([@​junkisai](https://togithub.com/junkisai)) ##### Authors: 6 - Jeppe Reinhold ([@​JReinhold](https://togithub.com/JReinhold)) - Junki Saito ([@​junkisai](https://togithub.com/junkisai)) - Michael Shilman ([@​shilman](https://togithub.com/shilman)) - Norbert de Langen ([@​ndelangen](https://togithub.com/ndelangen)) - Valentin Palkovic ([@​valentinpalkovic](https://togithub.com/valentinpalkovic)) - Yann Braga ([@​yannbf](https://togithub.com/yannbf)) </details> <details> <summary>pacocoursey/next-themes (next-themes)</summary> ### [`v0.3.0`](https://togithub.com/pacocoursey/next-themes/releases/tag/v0.3.0) #### What's - `"use client"` was added to the library output so that you can use it as a React Client component without creating a wrapper. #### New Contributors - [@​MaxLeiter](https://togithub.com/MaxLeiter) made their first contribution in [https://github.com/pacocoursey/next-themes/pull/120](https://togithub.com/pacocoursey/next-themes/pull/120) - [@​gnoff](https://togithub.com/gnoff) made their first contribution in [https://github.com/pacocoursey/next-themes/pull/135](https://togithub.com/pacocoursey/next-themes/pull/135) - [@​WITS](https://togithub.com/WITS) made their first contribution in [https://github.com/pacocoursey/next-themes/pull/168](https://togithub.com/pacocoursey/next-themes/pull/168) - [@​dimaMachina](https://togithub.com/dimaMachina) made their first contribution in [https://github.com/pacocoursey/next-themes/pull/186](https://togithub.com/pacocoursey/next-themes/pull/186) - [@​amrhassab](https://togithub.com/amrhassab) made their first contribution in [https://github.com/pacocoursey/next-themes/pull/192](https://togithub.com/pacocoursey/next-themes/pull/192) - [@​BekzodIsakov](https://togithub.com/BekzodIsakov) made their first contribution in [https://github.com/pacocoursey/next-themes/pull/241](https://togithub.com/pacocoursey/next-themes/pull/241) - [@​BlankParticle](https://togithub.com/BlankParticle) made their first contribution in [https://github.com/pacocoursey/next-themes/pull/253](https://togithub.com/pacocoursey/next-themes/pull/253) **Full Changelog**: https://github.com/pacocoursey/next-themes/compare/v0.2.0...v0.3.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMzAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIzOC4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5In0=--> |
||
|
|
9f74cb32ea | fix(component): input focus implementation (#6086) | ||
|
|
fb3a0e7b8f |
refactor(server): auth (#5895)
Remove `next-auth` and implement our own Authorization/Authentication system from scratch.
## Server
- [x] tokens
- [x] function
- [x] encryption
- [x] AuthController
- [x] /api/auth/sign-in
- [x] /api/auth/sign-out
- [x] /api/auth/session
- [x] /api/auth/session (WE SUPPORT MULTI-ACCOUNT!)
- [x] OAuthPlugin
- [x] OAuthController
- [x] /oauth/login
- [x] /oauth/callback
- [x] Providers
- [x] Google
- [x] GitHub
## Client
- [x] useSession
- [x] cloudSignIn
- [x] cloudSignOut
## NOTE:
Tests will be adding in the future
|
||
|
|
cb96d7de43 |
chore: bump up @blocksuite/icons version to v2.1.45 (#6061)
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@blocksuite/icons](https://togithub.com/toeverything/icons) | [`2.1.44` -> `2.1.45`](https://renovatebot.com/diffs/npm/@blocksuite%2ficons/2.1.44/2.1.45) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>toeverything/icons (@​blocksuite/icons)</summary> ### [`v2.1.45`]( |
||
|
|
fc9bf9cd8a | chore(component): simplify code (#6056) | ||
|
|
e9d51f6c96 | fix(component): journal header button no responce (#6021) | ||
|
|
5bebcec2eb |
feat: bump blocksuite (#6015)
## Features - https://github.com/toeverything/BlockSuite/pull/6379 @doodlewind - https://github.com/toeverything/BlockSuite/pull/6375 @doodlewind - https://github.com/toeverything/BlockSuite/pull/6370 @donteatfriedrice ## Bugfix - https://github.com/toeverything/BlockSuite/pull/6380 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/6377 @doouding - https://github.com/toeverything/BlockSuite/pull/6376 @fourdim - https://github.com/toeverything/BlockSuite/pull/6374 @regischen ## Misc - docs: update examples desc - ci: start publishing 0.13 canary |
||
|
|
7c76c25a9c |
refactor(core): new back&forward button base on workbench (#6012)
# feature: ## In Browser: - hidden back&forward button in sidebar. - back and forward is equal with `window.history.back()` `window.history.forward()` ## In Desktop: - Back and forward can be controlled through the sidebar, cmdk, and shortcut keys. - back and forward act on the currently **active** view. - buttons change disable&enable style based on current active view history # Refactor: Move app-sidebar and app-container from @affine/component to @affine/core |
||
|
|
ebf7a74387 | feat: bump blocksuite (#6010) | ||
|
|
9a3ae9302e |
chore: bump up all non-major dependencies (#5964)
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@aws-sdk/client-s3](https://togithub.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3) ([source](https://togithub.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-s3)) | [`3.523.0` -> `3.525.0`](https://renovatebot.com/diffs/npm/@aws-sdk%2fclient-s3/3.523.0/3.525.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [@node-rs/jsonwebtoken](https://togithub.com/napi-rs/node-rs) | [`^0.4.0` -> `^0.5.0`](https://renovatebot.com/diffs/npm/@node-rs%2fjsonwebtoken/0.4.0/0.5.1) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [@nx/vite](https://nx.dev) ([source](https://togithub.com/nrwl/nx/tree/HEAD/packages/vite)) | [`18.0.5` -> `18.0.7`](https://renovatebot.com/diffs/npm/@nx%2fvite/18.0.5/18.0.7) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [@opentelemetry/exporter-prometheus](https://togithub.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-exporter-prometheus) ([source](https://togithub.com/open-telemetry/opentelemetry-js)) | [`^0.48.0` -> `^0.49.0`](https://renovatebot.com/diffs/npm/@opentelemetry%2fexporter-prometheus/0.48.0/0.49.1) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [@opentelemetry/instrumentation](https://togithub.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation) ([source](https://togithub.com/open-telemetry/opentelemetry-js)) | [`^0.48.0` -> `^0.49.0`](https://renovatebot.com/diffs/npm/@opentelemetry%2finstrumentation/0.48.0/0.49.1) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [@opentelemetry/instrumentation-http](https://togithub.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation-http) ([source](https://togithub.com/open-telemetry/opentelemetry-js)) | [`^0.48.0` -> `^0.49.0`](https://renovatebot.com/diffs/npm/@opentelemetry%2finstrumentation-http/0.48.0/0.49.1) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [@opentelemetry/sdk-node](https://togithub.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-sdk-node) ([source](https://togithub.com/open-telemetry/opentelemetry-js)) | [`^0.48.0` -> `^0.49.0`](https://renovatebot.com/diffs/npm/@opentelemetry%2fsdk-node/0.48.0/0.49.1) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [jotai-effect](https://togithub.com/jotaijs/jotai-effect) | [`^0.5.0` -> `^0.6.0`](https://renovatebot.com/diffs/npm/jotai-effect/0.5.0/0.6.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [yarn](https://togithub.com/yarnpkg/berry) ([source](https://togithub.com/yarnpkg/berry/tree/HEAD/packages/yarnpkg-cli)) | [`4.1.0` -> `4.1.1`](https://renovatebot.com/diffs/npm/yarn/4.1.0/4.1.1) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>aws/aws-sdk-js-v3 (@​aws-sdk/client-s3)</summary> ### [`v3.525.0`](https://togithub.com/aws/aws-sdk-js-v3/blob/HEAD/clients/client-s3/CHANGELOG.md#35250-2024-02-29) [Compare Source](https://togithub.com/aws/aws-sdk-js-v3/compare/v3.523.0...v3.525.0) **Note:** Version bump only for package [@​aws-sdk/client-s3](https://togithub.com/aws-sdk/client-s3) </details> <details> <summary>napi-rs/node-rs (@​node-rs/jsonwebtoken)</summary> ### [`v0.5.1`](https://togithub.com/napi-rs/node-rs/releases/tag/%40node-rs/jsonwebtoken%400.5.1) [Compare Source](https://togithub.com/napi-rs/node-rs/compare/@node-rs/jsonwebtoken@0.5.0...@node-rs/jsonwebtoken@0.5.1) #### What's Changed - chore(deps): lock file maintenance by [@​renovate](https://togithub.com/renovate) in [https://github.com/napi-rs/node-rs/pull/800](https://togithub.com/napi-rs/node-rs/pull/800) - fix(jsonwebtoken): handle error in decodeHeader by [@​Brooooooklyn](https://togithub.com/Brooooooklyn) in [https://github.com/napi-rs/node-rs/pull/801](https://togithub.com/napi-rs/node-rs/pull/801) **Full Changelog**: https://github.com/napi-rs/node-rs/compare/[@​node-rs/crc32](https://togithub.com/node-rs/crc32)[@​1](https://togithub.com/1).10.0...[@​node-rs/jsonwebtoken](https://togithub.com/node-rs/jsonwebtoken)[@​0](https://togithub.com/0).5.1 ### [`v0.5.0`](https://togithub.com/napi-rs/node-rs/releases/tag/%40node-rs/jsonwebtoken%400.5.0) [Compare Source](https://togithub.com/napi-rs/node-rs/compare/@node-rs/jsonwebtoken@0.4.0...@node-rs/jsonwebtoken@0.5.0) #### What's Changed - fix(jsonwebtoken): num typings by [@​tada5hi](https://togithub.com/tada5hi) in [https://github.com/napi-rs/node-rs/pull/777](https://togithub.com/napi-rs/node-rs/pull/777) - feat(jsonwebtoken): flatten claims to align with rfc by [@​tada5hi](https://togithub.com/tada5hi) in [https://github.com/napi-rs/node-rs/pull/780](https://togithub.com/napi-rs/node-rs/pull/780) - feat(jsonwebtoken): expose decode header utility by [@​tada5hi](https://togithub.com/tada5hi) in [https://github.com/napi-rs/node-rs/pull/795](https://togithub.com/napi-rs/node-rs/pull/795) - chore(\*): upgrade NAPI-RS cli and bindings by [@​Brooooooklyn](https://togithub.com/Brooooooklyn) in [https://github.com/napi-rs/node-rs/pull/797](https://togithub.com/napi-rs/node-rs/pull/797) - feat(jsonwebtoken): support wasm32-wasi target by [@​Brooooooklyn](https://togithub.com/Brooooooklyn) in [https://github.com/napi-rs/node-rs/pull/798](https://togithub.com/napi-rs/node-rs/pull/798) #### New Contributors - [@​tada5hi](https://togithub.com/tada5hi) made their first contribution in [https://github.com/napi-rs/node-rs/pull/777](https://togithub.com/napi-rs/node-rs/pull/777) **Full Changelog**: https://github.com/napi-rs/node-rs/compare/[@​node-rs/argon2](https://togithub.com/node-rs/argon2)[@​1](https://togithub.com/1).7.0...[@​node-rs/jsonwebtoken](https://togithub.com/node-rs/jsonwebtoken)[@​0](https://togithub.com/0).5.0 </details> <details> <summary>nrwl/nx (@​nx/vite)</summary> ### [`v18.0.7`](https://togithub.com/nrwl/nx/releases/tag/18.0.7) [Compare Source](https://togithub.com/nrwl/nx/compare/18.0.6...18.0.7) #### 18.0.7 (2024-03-04) ##### 🩹 Fixes - **core:** target defaults should represent nx.json in source info ([#​22080](https://togithub.com/nrwl/nx/pull/22080)) - **nextjs:** Add spec files when creating a next app ([#​22079](https://togithub.com/nrwl/nx/pull/22079)) - **release:** skip lock file update if workspaces are not enabled ([#​22055](https://togithub.com/nrwl/nx/pull/22055)) - **remix:** ensure component-testing is exported correctly [#​22091](https://togithub.com/nrwl/nx/issues/22091) ([#​22095](https://togithub.com/nrwl/nx/pull/22095), [#​22091](https://togithub.com/nrwl/nx/issues/22091)) - **storybook:** handle main.js file correctly in storybook plugin ([#​22081](https://togithub.com/nrwl/nx/pull/22081)) - **testing:** calculate correct support file path in cypress e2e preset ([#​22096](https://togithub.com/nrwl/nx/pull/22096)) ##### ❤️ Thank You - Austin Fahsl [@​fahslaj](https://togithub.com/fahslaj) - Colum Ferry [@​Coly010](https://togithub.com/Coly010) - Craigory Coppola [@​AgentEnder](https://togithub.com/AgentEnder) - Leosvel Pérez Espinosa [@​leosvelperez](https://togithub.com/leosvelperez) - Nicholas Cunningham [@​ndcunningham](https://togithub.com/ndcunningham) ### [`v18.0.6`](https://togithub.com/nrwl/nx/releases/tag/18.0.6) [Compare Source](https://togithub.com/nrwl/nx/compare/18.0.5...18.0.6) ##### 18.0.6 (2024-02-29) ##### 🩹 Fixes - **core:** nextjs-standalone generates package scripts consistent with create-next-app ([#​21996](https://togithub.com/nrwl/nx/pull/21996)) - **misc:** make sure to add e2e crystal plugin ([#​22041](https://togithub.com/nrwl/nx/pull/22041)) - **misc:** fix buildable libs utils calculating dependent projects from task graph ([#​22015](https://togithub.com/nrwl/nx/pull/22015)) - **node:** Increase timeout for CI ([#​22003](https://togithub.com/nrwl/nx/pull/22003)) - **nuxt:** fix storybook preview config path ([#​22020](https://togithub.com/nrwl/nx/pull/22020)) - **nuxt:** Add e2e-ci and serve-static targets ([#​22056](https://togithub.com/nrwl/nx/pull/22056)) - **release:** currentVersionResolver git-tag should prefer merged tags ([#​22082](https://togithub.com/nrwl/nx/pull/22082)) ##### ❤️ Thank You - Austin Fahsl [@​fahslaj](https://togithub.com/fahslaj) - Jack Hsu [@​jaysoo](https://togithub.com/jaysoo) - Katerina Skroumpelou [@​mandarini](https://togithub.com/mandarini) - Leosvel Pérez Espinosa [@​leosvelperez](https://togithub.com/leosvelperez) - Nicholas Cunningham [@​ndcunningham](https://togithub.com/ndcunningham) </details> <details> <summary>open-telemetry/opentelemetry-js (@​opentelemetry/exporter-prometheus)</summary> ### [`v0.49.1`]( |
||
|
|
a9be19ce6c | fix(core): fix style break when scroll to block (#6001) | ||
|
|
ee54e00a03 | fix(core): upgrade dialog close button layout level (#6004) | ||
|
|
2275eee5b2 | feat(core): resize and reorder split-view (#5994) | ||
|
|
c599715963 |
feat(core): split right sidebar (#5971)
https://github.com/toeverything/AFFiNE/assets/13579374/c846c069-aa32-445d-b59b-b773a9b05ced Now each view has a general container, the yellow area is the general container part, and the green part is the routing specific part.  |
||
|
|
de939bb6f6 | fix(core): fix page mode scroll bar (#5955) | ||
|
|
752c8580ae |
fix: remove vite-tsconfig-paths (#5960)
It will cause storybook from running. related to https://github.com/aleclarson/vite-tsconfig-paths/issues/132 We are not actually using `vite-tsconfig-paths` now because we rely on package.json's export field to do path mapping. |
||
|
|
d1e6b23e1a | feat: bump blocksuite (#5953) | ||
|
|
35454c3bfc |
fix(core): polyfill resize-observer for development to avoid error overlay (#5943)
Brought a temporary solution from https://github.com/petyosi/react-virtuoso/issues/875#issuecomment-1962897033 |
||
|
|
148807879b |
refactor(component): use react-transition-state to simplify exit animation (#5923)
## **User description**
use react-transition-state to simplify exit animation
___
## **Type**
enhancement
___
## **Description**
- Integrated `react-transition-state` for managing animations in `ResizePanel` and `CMDKModal` components, simplifying the code and improving maintainability.
- Introduced a shared animation timeout variable to standardize animation durations across components.
- Added `react-transition-state` to dependencies to enable the new animation handling.
___
## **Changes walkthrough**
<table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>resize-panel.tsx</strong><dd><code>Integrate `react-transition-state` for Resize Panel Animations</code></dd></summary>
<hr>
packages/frontend/component/src/components/resize-panel/resize-panel.tsx
<li>Introduced <code>useTransition</code> hook from <code>react-transition-state</code> for managing <br>animations.<br> <li> Added a constant for animation timeout and applied it to the <br>transition.<br> <li> Utilized the transition state to toggle the open state of the resize <br>panel.<br>
</details>
</td>
<td><a href="https:/toeverything/AFFiNE/pull/5923/files#diff-a4d6e633862f63f97c167ff41ba62aff8aebf3e3b2f6e7ce13d5a0e22e8ff287">+12/-0</a> </td>
</tr>
<tr>
<td>
<details>
<summary><strong>modal.css.ts</strong><dd><code>Use Variable for Animation Timeout in Modal CSS</code> </dd></summary>
<hr>
packages/frontend/core/src/components/pure/cmdk/modal.css.ts
<li>Created a variable for animation timeout.<br> <li> Updated animation durations to use the new timeout variable.<br>
</details>
</td>
<td><a href="https:/toeverything/AFFiNE/pull/5923/files#diff-ba8935611b9c1695153d92d08ecb0f7dac73a6197f54ccda5a6e791902cd651d">+6/-3</a> </td>
</tr>
<tr>
<td>
<details>
<summary><strong>modal.tsx</strong><dd><code>Simplify CMDK Modal Animation with `react-transition-state`</code></dd></summary>
<hr>
packages/frontend/core/src/components/pure/cmdk/modal.tsx
<li>Replaced custom animation state management with <code>useTransition</code> hook.<br> <li> Removed old animation state logic and simplified the component.<br> <li> Added animation timeout variable and applied it to the transition.<br>
</details>
</td>
<td><a href="https:/toeverything/AFFiNE/pull/5923/files#diff-ab3fe66c9b1d3a691fafd1aebc9988e840fedfcd09b5b89570838a5a2a9469c9">+13/-33</a> </td>
</tr>
</table></td></tr><tr><td><strong>Dependencies</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>package.json</strong><dd><code>Add `react-transition-state` Dependency</code> </dd></summary>
<hr>
packages/frontend/core/package.json
- Added `react-transition-state` as a dependency.
</details>
</td>
<td><a href="https:/toeverything/AFFiNE/pull/5923/files#diff-23e0e5dc0ceb004a0a5d3d13e7d00545de7487535ca0e5eab4c5047f1e24eff0">+1/-0</a> </td>
</tr>
</table></td></tr></tr></tbody></table>
___
> ✨ **PR-Agent usage**:
>Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions
|