Saul-Mirone
ad422d2f05
refactor(editor): move crud to doc ( #9479 )
2025-01-02 07:27:08 +00:00
Saul-Mirone
be387a6f33
refactor(editor): set readonly ( #9475 )
2025-01-02 04:02:15 +00:00
Saul-Mirone
09427e846e
refactor(editor): extract markdown adapter ( #9443 )
2024-12-31 04:13:02 +00:00
doodlewind
adf14d11d5
fix(editor): chat panel render warning ( #9446 )
...
Fixed the updated warning of both `chat-panel` and `chat-panel-messages`

2024-12-31 03:59:02 +00:00
Yifeng Wang
08ebfb6e70
fix(editor): undefined selected elements ( #9429 )
2024-12-30 17:25:07 +08:00
Saul-Mirone
1e4b1807be
refactor(editor): query methods in edgeless api ( #9407 )
2024-12-28 07:48:41 +00:00
Saul-Mirone
6da10f9a93
refactor(editor): merge get surface util ( #9371 )
2024-12-27 09:42:13 +00:00
liuyi
41c8232472
chore(infra): remove blocksuite from infra ( #9353 )
2024-12-26 13:43:12 +00:00
liuyi
00980077c4
chore: standardize package references ( #9346 )
2024-12-26 19:08:42 +08:00
Saul-Mirone
6afa1d542f
feat(editor): add edgeless crud extension ( #9335 )
2024-12-26 08:58:06 +00:00
donteatfriedrice
cadb9211a6
refactor(editor): extensionalize plain text adapter ( #9330 )
2024-12-26 07:27:08 +00:00
akumatus
7bd980991e
fix(core): chat input will be sent repeatedly in two documents with split view ( #9289 )
...
Fix issue [AF-2011](https://linear.app/affine-design/issue/AF-2011 ).
Add `host` strict equality check before ai request send.
2024-12-24 11:17:42 +00:00
akumatus
6c0544b239
fix(core): ai chat panel content will be inconsistent when switching to journals ( #9288 )
...
Fix issue [BS-2153](https://linear.app/affine-design/issue/BS-2153 ).
Optimize DOM reuse by explicitly providing an identifier (similar to React's key).
2024-12-24 10:48:16 +00:00
donteatfriedrice
338835a4aa
fix(editor): limit max width when uploading or pasting image into edgeless ( #9273 )
...
[BS-2180](https://linear.app/affine-design/issue/BS-2180/白板中粘贴图片,限定一下最大宽度 )
2024-12-24 06:28:59 +00:00
pengx17
c775b2e264
fix(core): text-renderer should be readonly ( #9244 )
...
fix AF-2010, AF-2009
2024-12-23 04:19:06 +00:00
akumatus
563da3b6f4
fix(core): in page mode, AI replace selection did not correctly replace the selected text ( #9179 )
...
Fix issue [BS-1980](https://linear.app/affine-design/issue/BS-1980 ).
2024-12-17 02:22:48 +00:00
EYHN
b36b398957
fix(infra): memory leak ( #9013 )
2024-12-16 16:55:49 +00:00
akumatus
2f79104bdb
feat(core): support ai insert image, mindmap, slides and make it real in page mode ( #9164 )
...
Support issue [BS-2085](https://linear.app/affine-design/issue/BS-2085 ).
### What changed?
- Refactor the `actionToAnswerRenderer` function to support reuse in both page mode and edgeless mode.
- Add a new `page-response.ts` module to handle AI-generated answers in page mode.
- Remove the redundant `edgelessHandler` function from `_common/config.ts`.
- Introduce the `AIContext` class along with the `ctx` TypeScript type to standardize context management.
- Implement the `createTemplateJob` function to enable AI slide insertion in both page mode and edgeless mode.
Insert mindmap on page mode:
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/sJGviKxfE3Ap685cl5bj/30630d3e-ebd9-416b-9bb9-5f27086e48a3.mov ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/sJGviKxfE3Ap685cl5bj/30630d3e-ebd9-416b-9bb9-5f27086e48a3.mov ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/30630d3e-ebd9-416b-9bb9-5f27086e48a3.mov ">mindmap.mov</video>
Insert image on edgeless note
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/sJGviKxfE3Ap685cl5bj/b850ee5a-a06b-4ae7-8b68-ed5929a6e81a.mov ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/sJGviKxfE3Ap685cl5bj/b850ee5a-a06b-4ae7-8b68-ed5929a6e81a.mov ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/b850ee5a-a06b-4ae7-8b68-ed5929a6e81a.mov ">image3.mov</video>
Insert image on page mode:
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/sJGviKxfE3Ap685cl5bj/c4f98e2d-0b15-4310-b3e0-0725e330302b.mov ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/sJGviKxfE3Ap685cl5bj/c4f98e2d-0b15-4310-b3e0-0725e330302b.mov ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/c4f98e2d-0b15-4310-b3e0-0725e330302b.mov ">image.mov</video>
Generate image from image:
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/sJGviKxfE3Ap685cl5bj/2776a55f-cbb7-47ce-8e7d-7cae243fa3e9.mov ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/sJGviKxfE3Ap685cl5bj/2776a55f-cbb7-47ce-8e7d-7cae243fa3e9.mov ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/2776a55f-cbb7-47ce-8e7d-7cae243fa3e9.mov ">image2.mov</video>
Insert presentation on page mode:
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/sJGviKxfE3Ap685cl5bj/4e228fa5-88f4-478c-8b79-647612d5515c.mov ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/sJGviKxfE3Ap685cl5bj/4e228fa5-88f4-478c-8b79-647612d5515c.mov ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/4e228fa5-88f4-478c-8b79-647612d5515c.mov ">ppt.mov</video>
Insert make it real on page mode:
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/sJGviKxfE3Ap685cl5bj/c71139b2-fb55-4d89-84e2-d52eeb905b57.mov ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/sJGviKxfE3Ap685cl5bj/c71139b2-fb55-4d89-84e2-d52eeb905b57.mov ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/c71139b2-fb55-4d89-84e2-d52eeb905b57.mov ">make it real.mov</video>
2024-12-16 10:04:16 +00:00
Brooooooklyn
aaaea8918f
chore: upgrade to eslint9 ( #9163 )
2024-12-14 10:29:04 +00:00
Brooooooklyn
ea746e3d77
chore: disable rules in oxlint ( #9154 )
2024-12-13 10:49:35 +00:00
renovate
ef6068b7c2
chore: bump up @blocksuite/affine version to v0.18.6 ( #9113 )
...
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@blocksuite/affine](https://redirect.github.com/toeverything/blocksuite ) ([source](https://redirect.github.com/toeverything/blocksuite/tree/HEAD/packages/affine/all ), [changelog](https://redirect.github.com/toeverything/blocksuite/blob/master/packages/blocks/CHANGELOG.md )) | [`0.18.5` -> `0.18.6`](https://renovatebot.com/diffs/npm/@blocksuite%2faffine/0.18.5/0.18.6 ) | [](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/blocksuite (@​blocksuite/affine)</summary>
### [`v0.18.6`](https://redirect.github.com/toeverything/blocksuite/blob/HEAD/packages/affine/all/CHANGELOG.md#0186 )
[Compare Source](https://redirect.github.com/toeverything/blocksuite/compare/v0.18.5...v0.18.6 )
##### Patch Changes
- [`d925364`](https://redirect.github.com/toeverything/blocksuite/commit/d925364 ): Blocksuite patch release.
</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 these updates 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:eyJjcmVhdGVkSW5WZXIiOiIzOS41OC4xIiwidXBkYXRlZEluVmVyIjoiMzkuNTguMSIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
2024-12-13 02:32:40 +00:00
darkskygit
31146e5213
fix: copilot ci ( #9066 )
2024-12-09 11:11:04 +00:00
akumatus
6b14e1cf10
feat(core): after the user clicks ask ai, the input pops up directly ( #9039 )
...
Issue [AF-1762](https://linear.app/affine-design/issue/AF-1762 ).
Ask AI on edgeless mode:
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/sJGviKxfE3Ap685cl5bj/1218afba-466f-4570-afd4-679b6b09cc8d.mov ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/sJGviKxfE3Ap685cl5bj/1218afba-466f-4570-afd4-679b6b09cc8d.mov ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/1218afba-466f-4570-afd4-679b6b09cc8d.mov ">录屏2024-12-06 09.54.52.mov</video>
Ask AI on page mode:
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/sJGviKxfE3Ap685cl5bj/58d19705-f646-4957-8628-15845b47222b.mov ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/sJGviKxfE3Ap685cl5bj/58d19705-f646-4957-8628-15845b47222b.mov ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/58d19705-f646-4957-8628-15845b47222b.mov ">录屏2024-12-06 09.52.51.mov</video>
2024-12-06 12:12:05 +00:00
pengx17
31bab2507e
feat: enhance markdown preview for backlinks ( #8956 )
...
fix AF-1770
fix AF-1771
---
fix: doc link middlewares
feat: markdown renderer
feat: allow multiple backlink for a single doc
feat: showing correct doc ref link
feat: trim long para & ident lists
feat: list indentition fix
feat: database/latext handling
feat: other block types handling
fix: lint
2024-12-02 10:29:44 +00:00
akumatus
d2eef768ba
fix: ai generation of mindmap fail from note text context ( #8952 )
...
Fix issue [AF-1632](https://linear.app/affine-design/issue/AF-1632 ).
### What Changed?
- Keep the note selection and do not set the widget tool to copilot if asking AI from selection in a note in edgeless mode.
- Remove `content` from `AIImageActionOptions`, using `input` as AI context like other actions.
2024-11-28 02:35:06 +00:00
EYHN
6e25243868
refactor(infra): refactor copilot client ( #8813 )
2024-11-27 06:44:47 +00:00
doodlewind
6ac8cca440
fix(mobile): disable AI chat block peek on mobile ( #8929 )
2024-11-26 11:06:15 +00:00
akumatus
c6ac426b4c
fix: ai ppt preview with toolbar widget ( #8882 )
...
Fix issue [AF-1716](https://linear.app/affine-design/issue/AF-1716 ).
2024-11-21 06:56:26 +00:00
donteatfriedrice
e988be2f86
fix: reduce min height of chat peek view new message container ( #8739 )
2024-11-08 08:23:38 +00:00
donteatfriedrice
aacfb82819
fix: should toggle empty input when generate an image ( #8643 )
2024-11-01 10:45:32 +00:00
darkskygit
7a201984e9
feat(server): add real-world prompt test for copilot apis ( #8629 )
...
fix AF-1432, PD-1176
2024-11-01 07:05:12 +00:00
LongYinan
c08b02caba
Revert "feat: copilot frontend e2e ( #7694 )"
...
This reverts commit d71852789f .
2024-10-31 12:08:57 +08:00
darkskygit
d71852789f
feat: copilot frontend e2e ( #7694 )
2024-10-29 08:56:37 +00:00
donteatfriedrice
343572c5b6
fix: ai text renderer specs ( #8611 )
2024-10-29 01:59:28 +00:00
pengx17
81029db6ce
feat: allow peek view to be closed by the caller && bump bs ( #8542 )
...
depends on https://github.com/toeverything/blocksuite/pull/8558
fix BS-1570
2024-10-28 09:16:35 +00:00
darkskygit
6f1535014d
feat(core): handle copilot errors ( #8546 )
2024-10-22 05:08:10 +00:00
donteatfriedrice
11aa6f63b2
refactor: move chat block to affine ( #8368 )
...
[BS-898](https://linear.app/affine-design/issue/BS-898/move-ai-chat-block-to-affine )
Should be merged after https://github.com/toeverything/blocksuite/pull/8420 merged and bumped.
2024-10-16 12:40:30 +00:00
Don Isaac
9970138009
chore(oxlint): configure rule categories in oxlint.json ( #8494 )
...
Co-authored-by: LongYinan <lynweklm@gmail.com >
2024-10-15 11:20:21 +08:00
Yifeng Wang
a77061e848
feat: add block visibility config ( #8371 )
2024-09-24 17:36:06 +08:00
Saul-Mirone
35e232c61c
feat: migrate to blocksuite/affine ( #8332 )
...
Use `@blocksuite/affine` package for all blocksuite features in affine.
```ts
@blocksuite/store -> @blocksuite/affine/store
@blocksuite/global -> @blocksuite/affine/global
@blocksuite/block-std -> @blocksuite/affine/block-std
@blocksuite/blocks -> @blocksuite/affine/blocks
@blocksuite/presets -> @blocksuite/affine/presets
```
2024-09-20 10:55:47 +00:00
L-Sun
fc9e5fbb65
chore: bump blocksuite ( #8311 )
2024-09-19 10:07:20 +00:00
forehalo
315c20f8e5
fix(core): avoid side effects ( #8245 )
2024-09-18 03:45:20 +00:00
donteatfriedrice
22e1f9c66b
chore: clean up redundant ai preset utils ( #8275 )
2024-09-18 03:20:19 +00:00
Saul-Mirone
bafed8ed01
chore: bump bs to 0.17.10 ( #8251 )
...
- e0d0016: - Fix database performance issue
- Fix frame panel display issue
- Fix editor settings for color with transparency
- Fix portal in modals
- Fix group selection rendering delay
- Remove unused and duplicated code
- Improve frame model
- Improve ParseDocUrl service
- Support custom max zoom
2024-09-13 12:13:22 +00:00
Saul-Mirone
445acfa323
chore: bump bs ( #8227 )
2024-09-13 02:10:16 +00:00
Saul-Mirone
ba81b1a9ca
chore: bump bs ( #8204 )
2024-09-11 12:04:26 +00:00
Saul-Mirone
daa9d9ff5c
chore: bump bs ( #8189 )
2024-09-10 13:48:08 +00:00
donteatfriedrice
9dfd366382
fix: ai error message tip would be cut off ( #8183 )
...
Use `<affine-tooltip>` component that updates the float position when it might be clipped。
Fix: [BS-1386](https://linear.app/affine-design/issue/BS-1386/[bug]-tooltip-位置错误 )
2024-09-10 08:12:05 +00:00
Saul-Mirone
84ebe62edc
chore: bump bs to lts ( #8147 )
2024-09-06 10:54:19 +00:00
akumatus
4bbb94c32d
feat(core): bump blocksuite ( #8114 )
2024-09-05 13:54:56 +00:00