Saul-Mirone
2a1306c58c
refactor(editor): separate the element renders ( #11461 )
2025-04-04 13:09:46 +00:00
CatsJuice
46d8d30e62
feat(editor): disable clickToDrag for edgeless toolbar shape and mindmap ( #11310 )
2025-04-04 05:10:05 +00:00
JimmFly
7a1d5ab252
feat(core): upgrade icons package ( #11435 )
2025-04-04 04:52:49 +00:00
Saul-Mirone
205cd7a86d
refactor(editor): rename block-std to std ( #11250 )
...
Closes: BS-2946
2025-03-28 07:20:34 +00:00
L-Sun
e2c752d56f
feat(editor): inner toolbar layout for block ( #11243 )
...
Close [BS-2808](https://linear.app/affine-design/issue/BS-2808/组件内-toolbar-重构 )
2025-03-28 03:47:37 +00:00
fundon
2c4278058b
feat(editor): add highlighter ( #10573 )
...
Closes: [BS-2909](https://linear.app/affine-design/issue/BS-2909/新增highlighter )
### What's Changed!
Currently the highlighter tool is very similar to brush, but for the future, it's a standalone module.
* Added `Highlighter` element model
* Added `Highlighter` tool
* Added `Highlighter` entry to the global toolbar
2025-03-27 08:53:26 +00:00
renovate
a4b4029201
chore: bump up oxlint version to v0.16.3 ( #10890 )
...
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [oxlint](https://oxc.rs ) ([source](https://redirect.github.com/oxc-project/oxc/tree/HEAD/npm/oxlint )) | [`0.15.15` -> `0.16.3`](https://renovatebot.com/diffs/npm/oxlint/0.15.15/0.16.3 ) | [](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>oxc-project/oxc (oxlint)</summary>
### [`v0.16.3`](https://redirect.github.com/oxc-project/oxc/releases/tag/oxlint_v0.16.3 ): oxlint v0.16.3
[Compare Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v0.16.2...oxlint_v0.16.3 )
#### \[0.16.3] - 2025-03-25
##### Features
- [`1b41cb3`](https://redirect.github.com/oxc-project/oxc/commit/1b41cb3 ) linter: Add suggested fix to `unicorn/prefer-structured-clone` ([#​9994](https://redirect.github.com/oxc-project/oxc/issues/9994 )) (Ulrich Stark 🦀 )
- [`24cbe51`](https://redirect.github.com/oxc-project/oxc/commit/24cbe51 ) linter: Add suggested fixer to `typescript/no_unnecessary_parameter_property_assignment` and fix false positive ([#​9973](https://redirect.github.com/oxc-project/oxc/issues/9973 )) (Ulrich Stark 🦀 )
##### Bug Fixes
- [`6c4b533`](https://redirect.github.com/oxc-project/oxc/commit/6c4b533 ) linter: False positive in `import/no-empty-named-blocks` ([#​9974](https://redirect.github.com/oxc-project/oxc/issues/9974 )) (shulaoda)
- [`ff13be6`](https://redirect.github.com/oxc-project/oxc/commit/ff13be6 ) linter: Correct fixer for spread in function arguments ([#​9972](https://redirect.github.com/oxc-project/oxc/issues/9972 )) (shulaoda)
##### Refactor
- [`0f1e0e8`](https://redirect.github.com/oxc-project/oxc/commit/0f1e0e8 ) linter: Gate rule docs behind feature ([#​10027](https://redirect.github.com/oxc-project/oxc/issues/10027 )) (camchenry)
- [`ad06194`](https://redirect.github.com/oxc-project/oxc/commit/ad06194 ) linter: Add fixer for `typescript-eslint/no-non-null-asserted-optional-chain` ([#​9993](https://redirect.github.com/oxc-project/oxc/issues/9993 )) (camchenry)
- [`402d8b7`](https://redirect.github.com/oxc-project/oxc/commit/402d8b7 ) linter: Improve `eslint/no-redeclare` ([#​9976](https://redirect.github.com/oxc-project/oxc/issues/9976 )) (shulaoda)
- [`be62d38`](https://redirect.github.com/oxc-project/oxc/commit/be62d38 ) rust: Remove usages of `lazy_static` ([#​10007](https://redirect.github.com/oxc-project/oxc/issues/10007 )) (Boshen)
- [`6432707`](https://redirect.github.com/oxc-project/oxc/commit/6432707 ) rust: Use `lazy-regex` ([#​10004](https://redirect.github.com/oxc-project/oxc/issues/10004 )) (Boshen)
- [`0fa58d7`](https://redirect.github.com/oxc-project/oxc/commit/0fa58d7 ) semantic: Always use `SymbolFlags::Function` for function id ([#​7479](https://redirect.github.com/oxc-project/oxc/issues/7479 )) (Dunqing)
##### Testing
- [`878bec6`](https://redirect.github.com/oxc-project/oxc/commit/878bec6 ) editor: Add test for `oxc.toggleEnable` command ([#​9987](https://redirect.github.com/oxc-project/oxc/issues/9987 )) (Sysix)
- [`093e7e5`](https://redirect.github.com/oxc-project/oxc/commit/093e7e5 ) editor: Add `oxc.showOutputChannel` command test ([#​9986](https://redirect.github.com/oxc-project/oxc/issues/9986 )) (Sysix)
- [`c3af9a4`](https://redirect.github.com/oxc-project/oxc/commit/c3af9a4 ) editor: Add tests for listing all oxc commands ([#​9930](https://redirect.github.com/oxc-project/oxc/issues/9930 )) (Sysix)
- [`71dce1f`](https://redirect.github.com/oxc-project/oxc/commit/71dce1f ) editor: Add end-to-end tests for linter output ([#​9979](https://redirect.github.com/oxc-project/oxc/issues/9979 )) (Cam McHenry)
- [`c2f1be0`](https://redirect.github.com/oxc-project/oxc/commit/c2f1be0 ) editor: Add tests for `offset_to_position` ([#​9978](https://redirect.github.com/oxc-project/oxc/issues/9978 )) (camchenry)
### [`v0.16.2`](https://redirect.github.com/oxc-project/oxc/releases/tag/oxlint_v0.16.2 ): oxlint v0.16.2
[Compare Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v0.16.1...oxlint_v0.16.2 )
#### \[0.16.2] - 2025-03-21
- [`bfb416c`](https://redirect.github.com/oxc-project/oxc/commit/bfb416c ) editor: \[**BREAKING**] Enable nested configuration by default ([#​9929](https://redirect.github.com/oxc-project/oxc/issues/9929 )) (Sysix)
##### Bug Fixes
- [`2e8198e`](https://redirect.github.com/oxc-project/oxc/commit/2e8198e ) linter: Skip extending config files that look like named configs or not files ([#​9932](https://redirect.github.com/oxc-project/oxc/issues/9932 )) (camchenry)
- [`f649fb3`](https://redirect.github.com/oxc-project/oxc/commit/f649fb3 ) linter: Reclassify `unicorn/no-document-cookie` as restriction ([#​9933](https://redirect.github.com/oxc-project/oxc/issues/9933 )) (camchenry)
##### Documentation
- [`46a12c6`](https://redirect.github.com/oxc-project/oxc/commit/46a12c6 ) linter: Tell about junit `--format` options ([#​9931](https://redirect.github.com/oxc-project/oxc/issues/9931 )) (Sysix)
### [`v0.16.1`](https://redirect.github.com/oxc-project/oxc/releases/tag/oxlint_v0.16.1 ): oxlint v0.16.1
[Compare Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v0.16.0...oxlint_v0.16.1 )
#### \[0.16.1] - 2025-03-20
##### Features
- [`0973356`](https://redirect.github.com/oxc-project/oxc/commit/0973356 ) editor: Support nested configs ([#​9743](https://redirect.github.com/oxc-project/oxc/issues/9743 )) (Nicholas Rayburn)
- [`8e3d9be`](https://redirect.github.com/oxc-project/oxc/commit/8e3d9be ) linter: Support `--report-unused-disable-directive` ([#​9223](https://redirect.github.com/oxc-project/oxc/issues/9223 )) (1zumii)
- [`62c0132`](https://redirect.github.com/oxc-project/oxc/commit/62c0132 ) linter: Add import/no-empty-named-blocks rule ([#​9710](https://redirect.github.com/oxc-project/oxc/issues/9710 )) (yefan)
- [`ea7e3f0`](https://redirect.github.com/oxc-project/oxc/commit/ea7e3f0 ) oxc_language_server: Support nested configs ([#​9739](https://redirect.github.com/oxc-project/oxc/issues/9739 )) (Nicholas Rayburn)
##### Bug Fixes
- [`e9565c9`](https://redirect.github.com/oxc-project/oxc/commit/e9565c9 ) linter: Parse vue custom tag that starts with script ([#​9887](https://redirect.github.com/oxc-project/oxc/issues/9887 )) (Boshen)
- [`e6f7c74`](https://redirect.github.com/oxc-project/oxc/commit/e6f7c74 ) linter: Import and fix tests for typescript::no_unnecessary_parameter_property_assignment ([#​9720](https://redirect.github.com/oxc-project/oxc/issues/9720 )) (Ulrich Stark)
- [`4e39ba0`](https://redirect.github.com/oxc-project/oxc/commit/4e39ba0 ) linter: Ignore modules with invalid source ([#​9801](https://redirect.github.com/oxc-project/oxc/issues/9801 )) (branchseer)
- [`73fe248`](https://redirect.github.com/oxc-project/oxc/commit/73fe248 ) linter/no_case_declarations: Fix span of error for `await using` ([#​9854](https://redirect.github.com/oxc-project/oxc/issues/9854 )) (overlookmotel)
- [`2e023ab`](https://redirect.github.com/oxc-project/oxc/commit/2e023ab ) linter/react: `exhaustive-deps` report longest dependency ([#​9891](https://redirect.github.com/oxc-project/oxc/issues/9891 )) (overlookmotel)
- [`a113f7e`](https://redirect.github.com/oxc-project/oxc/commit/a113f7e ) parser: Error when `}` and `>` appear in `JSXText` ([#​9777](https://redirect.github.com/oxc-project/oxc/issues/9777 )) (Boshen)
- [`3d4c5f3`](https://redirect.github.com/oxc-project/oxc/commit/3d4c5f3 ) semantic: Correctly visit `IfStmt` `test` when building cfg ([#​9864](https://redirect.github.com/oxc-project/oxc/issues/9864 )) (camc314)
##### Performance
- [`d44ab9b`](https://redirect.github.com/oxc-project/oxc/commit/d44ab9b ) linter: Return early in loop in `promise/no-nesting` ([#​9808](https://redirect.github.com/oxc-project/oxc/issues/9808 )) (therewillbecode)
- [`2b65ed2`](https://redirect.github.com/oxc-project/oxc/commit/2b65ed2 ) linter/no_unescaped_entities: Optimize string search and error generation ([#​9832](https://redirect.github.com/oxc-project/oxc/issues/9832 )) (overlookmotel)
- [`84fa538`](https://redirect.github.com/oxc-project/oxc/commit/84fa538 ) minify: Use mimalloc-safe to replace mimalloc ([#​9810](https://redirect.github.com/oxc-project/oxc/issues/9810 )) (LongYinan)
##### Documentation
- [`8bc70b3`](https://redirect.github.com/oxc-project/oxc/commit/8bc70b3 ) language_server: Tell about Initialization options + didChangeWatchedFiles for nested configuration ([#​9876](https://redirect.github.com/oxc-project/oxc/issues/9876 )) (Alexander S.)
- [`e408db8`](https://redirect.github.com/oxc-project/oxc/commit/e408db8 ) linter: Improve docs for `unicorn/no-abusive-eslint-disable` ([#​9834](https://redirect.github.com/oxc-project/oxc/issues/9834 )) (shulaoda)
- [`187fe39`](https://redirect.github.com/oxc-project/oxc/commit/187fe39 ) linter: Add correctness examples to `typescript-prefer-as-const` ([#​9805](https://redirect.github.com/oxc-project/oxc/issues/9805 )) (therewillbecode)
##### Refactor
- [`723fdfb`](https://redirect.github.com/oxc-project/oxc/commit/723fdfb ) linter: Improve `jest-prefer-hooks-in-order` ([#​9892](https://redirect.github.com/oxc-project/oxc/issues/9892 )) (therewillbecode)
- [`544a090`](https://redirect.github.com/oxc-project/oxc/commit/544a090 ) linter: Remove not implemented rule `constructor-super` ([#​9877](https://redirect.github.com/oxc-project/oxc/issues/9877 )) (Sysix)
- [`8bdac56`](https://redirect.github.com/oxc-project/oxc/commit/8bdac56 ) linter: Improve `ast_util::is_method_call` ([#​9874](https://redirect.github.com/oxc-project/oxc/issues/9874 )) (shulaoda)
- [`a68e45c`](https://redirect.github.com/oxc-project/oxc/commit/a68e45c ) linter: Improve `unicorn/no-anonymous-default-export` ([#​9847](https://redirect.github.com/oxc-project/oxc/issues/9847 )) (dalaoshu)
- [`6407200`](https://redirect.github.com/oxc-project/oxc/commit/6407200 ) linter: Improve `unicorn/new-for-builtins` ([#​9804](https://redirect.github.com/oxc-project/oxc/issues/9804 )) (dalaoshu)
- [`b34cf94`](https://redirect.github.com/oxc-project/oxc/commit/b34cf94 ) oxlint: Remove `jemallocator` ([#​9823](https://redirect.github.com/oxc-project/oxc/issues/9823 )) (Boshen)
### [`v0.16.0`](https://redirect.github.com/oxc-project/oxc/releases/tag/oxlint_v0.16.0 ): oxlint v0.16.0
[Compare Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v0.15.15...oxlint_v0.16.0 )
#### Announcing Oxlint Beta: https://oxc.rs/blog/2025-03-15-oxlint-beta.html
#### \[0.16.0] - 2025-03-16
- [`225e266`](https://redirect.github.com/oxc-project/oxc/commit/225e266 ) linter: \[**BREAKING**] Enable `--experimental-nested-config` by default and add `--disable-nested-config` option ([#​9760](https://redirect.github.com/oxc-project/oxc/issues/9760 )) (camchenry)
##### Features
- [`27d6e9b`](https://redirect.github.com/oxc-project/oxc/commit/27d6e9b ) editor: Only watch .oxlintrc.json or user supplied config paths ([#​9731](https://redirect.github.com/oxc-project/oxc/issues/9731 )) (Nicholas Rayburn)
- [`8dd6809`](https://redirect.github.com/oxc-project/oxc/commit/8dd6809 ) linter: Add `eslint/no-lonely-if` ([#​9660](https://redirect.github.com/oxc-project/oxc/issues/9660 )) (therewillbecode)
- [`c22276e`](https://redirect.github.com/oxc-project/oxc/commit/c22276e ) oxc_linter: Sort rules by plugin and rule name when outputting resolved config as a JSON string ([#​9799](https://redirect.github.com/oxc-project/oxc/issues/9799 )) (Nicholas Rayburn)
##### Bug Fixes
- [`22f18ac`](https://redirect.github.com/oxc-project/oxc/commit/22f18ac ) linter: Improve `jsx-a11y/anchor-ambiguous-text` diagnostic message ([#​9789](https://redirect.github.com/oxc-project/oxc/issues/9789 )) (1zumii)
- [`6c11740`](https://redirect.github.com/oxc-project/oxc/commit/6c11740 ) linter: False positive in `unicorn/catch-error-name` ([#​9763](https://redirect.github.com/oxc-project/oxc/issues/9763 )) (shulaoda)
##### Documentation
- [`ea6b6d9`](https://redirect.github.com/oxc-project/oxc/commit/ea6b6d9 ) linter: Improve docs for `eslint-valid-typeof` ([#​9797](https://redirect.github.com/oxc-project/oxc/issues/9797 )) (therewillbecode)
- [`2c48fba`](https://redirect.github.com/oxc-project/oxc/commit/2c48fba ) linter: Fix typo in `oxc/bad-min-max-func` ([#​9791](https://redirect.github.com/oxc-project/oxc/issues/9791 )) (Flo)
- [`210b876`](https://redirect.github.com/oxc-project/oxc/commit/210b876 ) linter: Improve `eslint-no-async-promise-executor` ([#​9778](https://redirect.github.com/oxc-project/oxc/issues/9778 )) (therewillbecode)
- [`f8628bc`](https://redirect.github.com/oxc-project/oxc/commit/f8628bc ) linter: Improve `eslint-no-class-assign` ([#​9779](https://redirect.github.com/oxc-project/oxc/issues/9779 )) (therewillbecode)
- [`faca7a8`](https://redirect.github.com/oxc-project/oxc/commit/faca7a8 ) linter: Improve `eslint-no-self-assign` ([#​9768](https://redirect.github.com/oxc-project/oxc/issues/9768 )) (therewillbecode)
##### Refactor
- [`227d203`](https://redirect.github.com/oxc-project/oxc/commit/227d203 ) linter: Improve `typescript-no-unnecessary-type-constraint` ([#​9798](https://redirect.github.com/oxc-project/oxc/issues/9798 )) (therewillbecode)
- [`05fe2cd`](https://redirect.github.com/oxc-project/oxc/commit/05fe2cd ) linter: Use `is_lexical` when checking for lexical decl ([#​9781](https://redirect.github.com/oxc-project/oxc/issues/9781 )) (camc314)
- [`fcdd810`](https://redirect.github.com/oxc-project/oxc/commit/fcdd810 ) linter: Remove if let nesting from `unicorn-no-date-clone` ([#​9767](https://redirect.github.com/oxc-project/oxc/issues/9767 )) (therewillbecode)
- [`5a9e1b9`](https://redirect.github.com/oxc-project/oxc/commit/5a9e1b9 ) linter: Improve `typescript-no-misused-new` ([#​9766](https://redirect.github.com/oxc-project/oxc/issues/9766 )) (therewillbecode)
- [`9df5565`](https://redirect.github.com/oxc-project/oxc/commit/9df5565 ) linter: Improve `unicorn/filename-case` ([#​9762](https://redirect.github.com/oxc-project/oxc/issues/9762 )) (shulaoda)
- [`b0b1f18`](https://redirect.github.com/oxc-project/oxc/commit/b0b1f18 ) linter: Remove if let nesting from `nextjs-no-async-client-component` ([#​9764](https://redirect.github.com/oxc-project/oxc/issues/9764 )) (therewillbecode)
</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 was generated by [Mend Renovate](https://mend.io/renovate/ ). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMDAuMCIsInVwZGF0ZWRJblZlciI6IjM5LjIwNy4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->
2025-03-26 09:13:21 +00:00
Flrande
4bacfbd640
feat(editor): support member node ( #11075 )
...
Close [BS-2793](https://linear.app/affine-design/issue/BS-2793/inline-member )
2025-03-24 05:57:03 +00:00
Saul-Mirone
5525c2bc8d
refactor(editor): move mindmap view to mindmap package ( #11102 )
2025-03-24 03:14:23 +00:00
Saul-Mirone
c1d426d8e9
refactor(editor): move frame toolbar config and components to its package ( #11084 )
2025-03-21 16:47:40 +00:00
Saul-Mirone
73807193cb
refactor(editor): extract common toolbar config ( #11069 )
2025-03-21 11:45:33 +00:00
Saul-Mirone
ee3494e01d
refactor(editor): extract draggable helper of edgeless toolbar ( #11068 )
2025-03-21 11:45:33 +00:00
Saul-Mirone
35e986cb94
refactor(editor): extract common mixin of edgeless toolbar ( #11067 )
2025-03-21 11:45:32 +00:00
Saul-Mirone
6777c16683
feat(editor): edgeless toolbar widget package ( #11064 )
2025-03-21 11:45:32 +00:00