Saul-Mirone
faf6e2c79f
refactor(editor): optimize store map ( #10246 )
2025-02-18 13:30:09 +00:00
doouding
c21f71f58c
feat: add dnd database preview block ( #10258 )
2025-02-18 10:25:00 +00:00
doouding
75678ceca8
fix: allow to drop inside the note block in edgeless mode ( #10255 )
2025-02-18 10:24:59 +00:00
Flrande
13834dd09a
fix(editor): display heading icon all time ( #10256 )
2025-02-18 09:39:26 +00:00
L-Sun
e639f08b71
chore(editor): remove page block feature flag ( #10251 )
2025-02-18 09:25:05 +00:00
Flrande
cedee0a1b2
fix(editor): split at the start of list with children ( #10244 )
2025-02-18 09:10:00 +00:00
doouding
88095a87a8
fix: create linked-doc block when content can't be drop as gfx block ( #10250 )
2025-02-18 08:40:57 +00:00
doouding
73f3226f58
fix: drag paragraph block from note to edgeless ( #10242 )
2025-02-18 07:30:00 +00:00
doouding
0af921c3fc
fix: edgeless drag handle position ( #10241 )
2025-02-18 07:29:59 +00:00
Saul-Mirone
c3e924d4cb
refactor(editor): move export manager to surface block extensions ( #10231 )
2025-02-18 04:39:05 +00:00
donteatfriedrice
e67fd67a3c
fix(core): copy more button group style ( #10240 )
2025-02-18 04:07:59 +00:00
Flrande
5748591bc5
fix(editor): width and height of embed block ( #10223 )
2025-02-17 10:37:05 +00:00
zzj3720
e4f2223a2a
fix(editor): table block readonly support ( #10224 )
...
close: BS-2597
2025-02-17 10:19:00 +00:00
fundon
6dc1fefa33
fix(editor): video style in edgeless ( #10198 )
...
### Before

### After

2025-02-17 06:50:02 +00:00
fundon
34472fdfa9
fix(editor): make std stable in affine-link and affine-reference ( #10207 )
2025-02-17 05:09:53 +00:00
fundon
378007da81
chore(editor): no need to cache attachment embed config map ( #10197 )
...
### What's Changed!
* no need to cache attachment embed config map
2025-02-17 04:21:00 +00:00
L-Sun
85e413f8c8
chore(editor): add telemetry track to display mode of note ( #10192 )
...
Close [BS-2468](https://linear.app/affine-design/issue/BS-2468/analytics-for-page-block-polish )
2025-02-17 03:23:55 +00:00
doodlewind
1476ca922b
refactor(editor): simplify worker renderer message and canvas transfer ( #10199 )
...
- Fixed frame delay on panning.
- Removed redundant worker message.
- Removed redundant offscreen bitmap transfer.
- Refactored logic using a clearer `refresh` method entry.
- Extracted plain utils.
2025-02-17 02:35:28 +00:00
doouding
8ece812017
feat: dnd image preview && edgeless dnd preview issue ( #10177 )
...
### Changed
- Add new image block to render dnd preview
- Fixed the bug that dragging uploaded image does not have width and height
- Fixed the bug that drag image block from page to edgeless does not have width and height
- Better edgeless dnd preview
2025-02-14 16:02:03 +00:00
zzj3720
b6f8027e1b
fix(editor): extra line breaks and spaces when parsing table from html ( #10190 )
...
close: BS-2562, BS-2569
2025-02-14 12:13:00 +00:00
L-Sun
35aec95022
chore(editor): adjust margin of edgeless page block title ( #10188 )
...


2025-02-14 11:44:00 +00:00
Saul-Mirone
d111f8ac88
feat(editor): add WidgetViewExtension ( #10180 )
...
Closes: [BS-2282](https://linear.app/affine-design/issue/BS-2282/replace-widgetviewmapextension-with-widgetextension )
2025-02-14 11:00:01 +00:00
Flrande
9dc81ecb99
fix(editor): increase edgeless text init min width ( #10051 )
2025-02-14 10:46:00 +00:00
L-Sun
9d08f446cc
refactor(editor): remove redundant edgeless icons ( #10169 )
...
Continue [BS-2240](https://linear.app/affine-design/issue/BS-2240/%E6%B8%85%E7%90%86%E9%87%8D%E5%A4%8D%E7%9A%84icon )
This PR removes `icons/edgeless.ts` and refactor with `@blocksuite/icons` for reducing redundant icons
2025-02-14 05:03:26 +00:00
Oleg
b82fc3bc10
feat(core): attach a pdf ( #10039 )
...
Co-authored-by: L-Sun <zover.v@gmail.com >
2025-02-14 10:22:32 +08:00
Alexey Lysenko
769547c2d5
fix(editor): support more divider markdown shortcut ( #10139 )
2025-02-14 10:13:40 +08:00
Flrande
4e488a1ba1
fix(editor): figma block ui issues ( #10167 )
2025-02-13 13:56:18 +00:00
L-Sun
3ada4bee0d
chore(editor): adjust min width of edgeless note ( #10153 )
...
Close [BS-2499](https://linear.app/affine-design/issue/BS-2499/所有notes最小宽度调整为218px )
### What changes
- adjusted min width of edgeless note
- placeholder show ellipsis in min edgeless note
- refactored somes button of `change-note-button.ts` with `isPageBlock`
2025-02-13 12:40:14 +00:00
Saul-Mirone
9321ce94a7
refactor(editor): remove global types in config ( #10143 )
...
Closes: [BS-2554](https://linear.app/affine-design/issue/BS-2554/remove-global-types-in-block-config )
2025-02-13 04:35:35 +00:00
L-Sun
011c18de8b
fix(editor): hide collpased content during dragging note ( #10133 )
...
Close [BS-2531](https://linear.app/affine-design/issue/BS-2531/%E6%8B%96%E5%8A%A8%E6%8A%98%E5%8F%A0%E7%9A%84note%E6%97%B6%EF%BC%8C%E4%B8%8D%E6%98%BE%E7%A4%BA%E9%9A%90%E8%97%8F%E5%86%85%E5%AE%B9 ), [BS-2536](https://linear.app/affine-design/issue/BS-2536/page-block%E9%A1%B6%E9%83%A8toolbar )
2025-02-13 04:18:11 +00:00
Yifeng Wang
26de7a56fd
refactor(editor): remove redundant getOptional for gfx ( #10142 )
2025-02-13 11:27:20 +08:00
doouding
ed0b25def0
fix: drop indicator in center peek ( #10136 )
2025-02-13 02:53:07 +00:00
doouding
81ead5cd35
fix: database cross doc dragging ( #10126 )
2025-02-13 02:53:06 +00:00
L-Sun
9a17422d36
fix(editor): wrong position of remote selection and at menu in edgeless ( #10137 )
...
Close [BS-2552](https://linear.app/affine-design/issue/BS-2552/menu-loading-时滚动,定位错误 ), [BS-2490](https://linear.app/affine-design/issue/BS-2490/note-block-的menu的输入阴影错位 ), [BS-2300](https://linear.app/affine-design/issue/BS-2300/at-menu的输入阴影在暗黑模式看不见 )
### What Changes
- fix the position of remote selection mask and @ menu input mask in edgeless
- fix the position of @ menu is no updated during edgeless viewport change
- update @ menu mask color in dark mode
### Before
https://github.com/user-attachments/assets/f44f618e-a791-497a-9f53-74824fe48dea
### After
https://github.com/user-attachments/assets/5d87b999-deae-4435-9b8b-4cdf55393395
2025-02-13 01:56:01 +00:00
doouding
f0a99851aa
fix: embed block style when dragging doc from sidebar doc list to edgeless ( #10122 )
2025-02-13 01:35:33 +00:00
doouding
40121b6ad5
feat: dragged blocks should set opacity ( #10119 )
2025-02-13 01:35:33 +00:00
doouding
270d1754a3
feat: edgeless dnd preview ( #10117 )
2025-02-12 12:37:07 +00:00
doouding
f89fcf82f8
feat: edgeless dnd ( #9988 )
...
### Changed
- Support edgelss dnd
- Simplify the drag-handle state
2025-02-12 12:37:06 +00:00
Saul-Mirone
e7cc710f8e
refactor(editor): remove service global type ( #10129 )
...
Closes: [BS-2566](https://linear.app/affine-design/issue/BS-2566/remove-global-types-in-service )
2025-02-12 11:46:10 +00:00
donteatfriedrice
30612de1ad
fix(core): wrap code in ai chat ( #10108 )
...
[BS-2540](https://linear.app/affine-design/issue/BS-2540/ai-chat-中-code-block-需要默认换行 )
2025-02-12 09:43:52 +00:00
Flrande
e3691850ad
fix(editor): figma ui issues ( #10123 )
2025-02-12 09:10:08 +00:00
donteatfriedrice
19f0eb1931
fix(core): use patched preview spec builder in ai chat ( #10090 )
...
[BS-2526](https://linear.app/affine-design/issue/BS-2526/chat-panel-里的-footnote-popup-需要支持交互 )
2025-02-11 15:11:54 +00:00
L-Sun
0b3c7a578e
fix(editor): collapsed page block visibility ( #10097 )
...
This PR fixed that doc title is not hidden when page block is collapsed
2025-02-11 14:29:24 +00:00
doodlewind
d021e4cddc
refactor(editor): mount worker renderer in editor host ( #10055 )
...
This would allow for easier integration with current test runner, since the two column layout is removed.
The `ViewportTurboRender` canvas and its debug UI are only enabled if the extension is added, which won't affect the AFFiNE entry.
<img width="945" alt="image" src="https://github.com/user-attachments/assets/dc82daa4-cbed-4eb9-9660-28c3f7d35722 " />
2025-02-11 14:12:41 +00:00
Saul-Mirone
6b78d2dcf2
refactor(editor): reduce getService ( #10100 )
2025-02-11 12:26:02 +00:00
Saul-Mirone
dbf0f9dc20
refactor(editor): remove global types in edgeless ( #10092 )
...
Closes: [BS-2553](https://linear.app/affine-design/issue/BS-2553/remove-global-types-in-edgeless )
2025-02-11 12:09:44 +00:00
doodlewind
3062bd0771
refactor(editor): migrate viewport renderer to extension ( #10094 )
...
This removes `renderer.setHost(host)`
2025-02-11 11:37:31 +00:00
Saul-Mirone
39eb8625d6
refactor(editor): remove block models global type ( #10086 )
2025-02-11 11:00:57 +00:00
zzj3720
4b8ff6b196
fix(editor): table block cell width adjust ( #10087 )
2025-02-11 09:56:25 +00:00
Saul-Mirone
652865c7cf
refactor(editor): remove global types in model ( #10082 )
...
Closes: [BS-2249](https://linear.app/affine-design/issue/BS-2249/remove-global-types-in-model )
```ts
// before
matchFlavours(model, ['affine:page']);
// after
matchFlavours(model, [PageBlockModel]);
```
2025-02-11 08:18:57 +00:00