akumatus
321dfaa881
feat(core): watching references from multiple document ids ( #11047 )
...
Close [BS-2464](https://linear.app/affine-design/issue/BS-2464 ).
2025-03-21 05:09:19 +00:00
akumatus
281951ecd1
fix(core): outgoing links cannot be displayed if document refers to itself ( #11046 )
...
Close [BS-2850](https://linear.app/affine-design/issue/BS-2850 ).
### What Changed?
- After flattening the search results, filter the current document.
- Remove duplicate results based on document id.
2025-03-21 05:09:19 +00:00
akumatus
7b40de9c46
refactor(core): remove redundant unused implementation ( #11042 )
...
Close [BS-2850](https://linear.app/affine-design/issue/BS-2850 ).
2025-03-21 05:09:18 +00:00
Saul-Mirone
e5e429e7b2
feat(editor): add inline packages ( #11048 )
2025-03-20 13:47:35 +00:00
Saul-Mirone
258c70cf07
refactor(editor): store should not rely on inline ( #11017 )
2025-03-20 01:33:29 +00:00
Saul-Mirone
26285f7dcb
feat(editor): unify block props api ( #10888 )
...
Closes: [BS-2707](https://linear.app/affine-design/issue/BS-2707/统一使用props获取和更新block-prop )
2025-03-16 05:48:34 +00:00
Saul-Mirone
ec709925ee
refactor(editor): orgnize exports ( #10709 )
2025-03-10 02:04:01 +00:00
Saul-Mirone
12bc142809
refactor(editor): remove blocks package ( #10708 )
2025-03-09 05:44:26 +00:00
EYHN
4daa763c95
fix(core): fix table text content search ( #10488 )
2025-03-05 04:06:44 +00:00
Saul-Mirone
4c736bc190
feat(editor): type safe draft model and transformer ( #10486 )
2025-02-27 09:19:49 +00:00
Saul-Mirone
ce87dcf58e
feat(editor): schema extension ( #10447 )
...
1. **Major Architectural Change: Schema Management**
- Moved from `workspace.schema` to `store.schema` throughout the codebase
- Removed schema property from Workspace and Doc interfaces
- Added `BlockSchemaExtension` pattern across multiple block types
2. **Block Schema Extensions Added**
- Added new `BlockSchemaExtension` to numerous block types including:
- DataView, Surface, Attachment, Bookmark, Code
- Database, Divider, EdgelessText, Embed blocks (Figma, Github, HTML, etc.)
- Frame, Image, Latex, List, Note, Paragraph
- Root, Surface Reference, Table blocks
3. **Import/Export System Updates**
- Updated import functions to accept `schema` parameter:
- `importHTMLToDoc`
- `importHTMLZip`
- `importMarkdownToDoc`
- `importMarkdownZip`
- `importNotionZip`
- Modified export functions to use new schema pattern
4. **Test Infrastructure Updates**
- Updated test files to use new schema extensions
- Modified test document creation to include schema extensions
- Removed direct schema registration in favor of extensions
5. **Service Layer Changes**
- Updated various services to use `getAFFiNEWorkspaceSchema()`
- Modified transformer initialization to use document schema
- Updated collection initialization patterns
6. **Version Management**
- Removed version-related properties and methods from:
- `WorkspaceMetaImpl`
- `TestMeta`
- `DocImpl`
- Removed `blockVersions` and `workspaceVersion/pageVersion`
7. **Store and Extension Updates**
- Added new store extensions and adapters
- Updated store initialization patterns
- Added new schema-related functionality in store extension
This PR represents a significant architectural shift in how schemas are managed, moving from a workspace-centric to a store-centric approach, while introducing a more extensible block schema system through `BlockSchemaExtension`. The changes touch multiple layers of the application including core functionality, services, testing infrastructure, and import/export capabilities.
2025-02-26 11:31:29 +00:00
pengx17
3f0a9f4433
feat(core): index table block types ( #9989 )
...

fix BS-2520
2025-02-07 04:04:27 +00:00
Saul-Mirone
fa5e6e1f45
fix: remove bs shared and components in affine ( #9792 )
2025-01-20 09:41:06 +00:00
Saul-Mirone
2b3da1f0e9
fix: remove global, store and std in affine packages ( #9785 )
2025-01-20 06:14:46 +00:00
EYHN
a2ffdb4047
feat(core): new worker workspace engine ( #9257 )
2025-01-16 16:22:18 +00:00
donteatfriedrice
5c4e87ddb5
feat(editor): support text highlight html adapter ( #9632 )
...
[BS-2061](https://linear.app/affine-design/issue/BS-2061/html-adapter-支持-text-highlight-样式 )
2025-01-13 02:20:58 +00:00
Mirone
446b31b621
refactor(editor): rename job to transformer ( #9639 )
2025-01-11 12:04:07 +08:00
Saul-Mirone
c773982ced
refactor(editor): rename store api ( #9518 )
2025-01-04 12:51:56 +00:00
Saul-Mirone
cfd64f1fa5
refactor(core): move workspace implementation to affine ( #9504 )
2025-01-03 08:13:57 +00:00
Saul-Mirone
edb5e1d87a
refactor(editor): job should not rely on doc collection directly ( #9488 )
2025-01-02 10:50:15 +00:00
Saul-Mirone
09427e846e
refactor(editor): extract markdown adapter ( #9443 )
2024-12-31 04:13:02 +00:00
pengx17
887732179e
feat(electron): expose electron apis to web worker ( #9441 )
...
fix AF-2044
2024-12-31 03:17:03 +00:00
EYHN
129f94ee78
refactor(core): move infra modules to core ( #9207 )
2024-12-23 04:54:00 +00:00
Mirone
30200ff86d
chore: merge blocksuite source code ( #9213 )
2024-12-20 15:38:06 +08:00
EYHN
f8e7abd018
fix(core): indexer data loss ( #9216 )
2024-12-20 06:10:50 +00:00
pengx17
0fdf2c4905
fix(core): indexer worker crash on unexpected markdown indent ( #9210 )
2024-12-20 02:08:44 +00:00
EYHN
b36b398957
fix(infra): memory leak ( #9013 )
2024-12-16 16:55:49 +00:00
renovate
e83617a556
chore: bump up @blocksuite/affine version to v0.18.3 ( #9019 )
...
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.1` -> `0.18.3`](https://renovatebot.com/diffs/npm/@blocksuite%2faffine/0.18.1/0.18.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>toeverything/blocksuite (@​blocksuite/affine)</summary>
### [`v0.18.3`](https://redirect.github.com/toeverything/blocksuite/blob/HEAD/packages/affine/all/CHANGELOG.md#0183 )
[Compare Source](https://redirect.github.com/toeverything/blocksuite/compare/v0.18.2...v0.18.3 )
##### Patch Changes
- [`3448094`](https://redirect.github.com/toeverything/blocksuite/commit/3448094 ): ## Fix
- fix(database): storage should be accessed via globalThis ([#​8863](https://redirect.github.com/toeverything/blocksuite/issues/8863 ))
- fix(edgeless): memory leak in edgeless widgets ([#​8862](https://redirect.github.com/toeverything/blocksuite/issues/8862 ))
- fix: page switching under starter route ([#​8860](https://redirect.github.com/toeverything/blocksuite/issues/8860 ))
### [`v0.18.2`](https://redirect.github.com/toeverything/blocksuite/blob/HEAD/packages/affine/all/CHANGELOG.md#0182 )
[Compare Source](https://redirect.github.com/toeverything/blocksuite/compare/v0.18.1...v0.18.2 )
##### Patch Changes
- [`f97c4ab`](https://redirect.github.com/toeverything/blocksuite/commit/f97c4ab ): bump
</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:eyJjcmVhdGVkSW5WZXIiOiIzOS40Mi40IiwidXBkYXRlZEluVmVyIjoiMzkuNDIuNCIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
2024-12-06 06:11:41 +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
EYHN
cee5d02f71
feat(core): add markdown preview for backlinks ( #8883 )
2024-12-02 03:42:07 +00:00
pengx17
4b6c4ed546
feat(core): doc database properties ( #8520 )
...
fix AF-1454
1. move inline tags editor to components
2. add progress component
3. adjust doc properties styles for desktop
4. subscribe bs database links and display in doc info
5. move update/create dates to doc info
6. a trivial e2e test
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/T2klNLEk0wxLh4NRDzhk/eed266c1-fdac-4f0e-baa9-4aa00d14a2e8.mp4 ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/T2klNLEk0wxLh4NRDzhk/eed266c1-fdac-4f0e-baa9-4aa00d14a2e8.mp4 ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/eed266c1-fdac-4f0e-baa9-4aa00d14a2e8.mp4 ">10月23日.mp4</video>
2024-10-24 07:38:45 +00:00
EYHN
542fde6c68
fix(infra): indexer missing data ( #8578 )
2024-10-23 01:44:24 +00:00
EYHN
6ecdc8db7a
feat(infra): opti indexer performance ( #8557 )
2024-10-22 06:41:07 +00:00
EYHN
01c3a3b4c0
feat(infra): collect more data to indexer ( #8528 )
2024-10-19 20:22:26 +08:00
fundon
4daa959894
fix(core): block link recognition in self-hosted ( #8340 )
...
Part of [BS-1445](https://linear.app/affine-design/issue/BS-1445/点击-affine-link-时识别应用内链接,以触发应用内跳转 )
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/8ypiIKZXudF5a0tIgIzf/fae580bc-7d30-4711-a70e-7a5cf26c76f1.mov ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/8ypiIKZXudF5a0tIgIzf/fae580bc-7d30-4711-a70e-7a5cf26c76f1.mov ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/8ypiIKZXudF5a0tIgIzf/fae580bc-7d30-4711-a70e-7a5cf26c76f1.mov ">Screen Recording 2024-09-21 at 10.50.12.mov</video>
2024-09-25 04:16:58 +00: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
fundon
bed70cd51a
chore(core): add tests for toURLSearchParams ( #8322 )
2024-09-20 04:14:48 +00:00
fundon
b74dd1c92e
feat(core): support block links on Bi-Directional Links ( #8169 )
...
Clsoes [AF-1348](https://linear.app/affine-design/issue/AF-1348/修复-bi-directional-links-里面的链接地址 )
* Links to the current document should be ignored on `Backlinks`
* Links to the current document should be ignored on `Outgoing links`
https://github.com/user-attachments/assets/dbc43cea-5aca-4c6f-886a-356e3a91c1f1
2024-09-11 11:08:12 +00:00
EYHN
fb64bc7e55
feat(core): indexer upgrade ( #8062 )
2024-09-04 07:31:03 +00:00
EYHN
83716c2fd9
feat(core): share in workspace link ( #7897 )
...
ShareDocsService -> ShareDocsListService
ShareService -> ShareInfoService
(*new) ShareReaderService
`/share/:workspaceId/:docId` -> redirect to -> `/workspace/:workspaceId/:docId`
workspace loading process
1. find workspace in workspace list
2. (if not found) revalidate workspace list
3. (if still not found) try load share page
4. (if share page found) => share page
5. (if share page not found) => 404
6. (if workspace found) => workspace page
2024-08-16 09:12:18 +00:00
EYHN
b993ab04df
fix(core): some doc missing in search result ( #7818 )
2024-08-09 10:37:24 +00:00
EYHN
c006f3f0af
fix(core): reduce indexer performance impact ( #7803 )
2024-08-09 11:57:06 +08:00
EYHN
83244f0201
fix(core): trash doc in search result ( #7785 )
2024-08-08 08:17:48 +00:00
EYHN
d968cfe425
fix(infra): better search result ( #7774 )
2024-08-07 09:16:43 +00:00
EYHN
f108b95704
feat(core): tuning for better search ( #7713 )
2024-08-05 02:29:50 +00:00
EYHN
e6f0847ec3
fix(core): make indexer faster ( #7629 )
2024-07-29 06:43:13 +00:00
EYHN
3eb09cde5e
feat(core): new favorite ( #7590 )
2024-07-26 08:15:32 +00:00
EYHN
54da85ec62
feat(core): init organize ( #7456 )
2024-07-26 04:35:32 +00:00
liuyi
555f203be6
feat(core): run indexer in worker ( #7418 )
2024-07-04 15:37:26 +08:00
forehalo
f0d127fa29
Revert "feat(core): run indexer in worker ( #7295 )"
...
This reverts commit c62d79ab14 .
2024-07-03 10:16:27 +08:00