mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
## New Features - **Markdown diff**: - Introduced block-level diffing for markdown content, enabling detection of insertions, deletions, and replacements between document versions. - Generate patch operations from markdown diff. - **Patch Renderer**: Transfer patch operations to a render diff which can be rendered into page body. - **Patch apply**:Added functionality to apply patch operations to documents, supporting block insertion, deletion, and content replacement. ## Refactors * Move `affine/shared/__tests__/utils` to `blocksuite/affine-shared/test-utils` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Introduced utilities for declarative creation and testing of document structures using template literals. * Added new functions and types for block-level markdown diffing and patch application. * Provided a utility to generate structured render diffs for markdown blocks. * Added a unified test-utils entry point for easier access to testing helpers. * **Bug Fixes** * Updated import paths in test files to use the new test-utils location. * **Documentation** * Improved example usage in documentation to reflect the new import paths for test utilities. * **Tests** * Added comprehensive test suites for markdown diffing, patch application, and render diff utilities. * **Chores** * Updated package dependencies and export maps to expose new test utilities. * Refactored internal test utilities organization for clarity and maintainability. <!-- end of auto-generated comment: release notes by coderabbit.ai --> > CLOSE AI-271 AI-272 AI-273
26 lines
803 B
JSON
26 lines
803 B
JSON
{
|
|
"extends": "../../../tsconfig.web.json",
|
|
"compilerOptions": {
|
|
"rootDir": "./src",
|
|
"outDir": "./dist",
|
|
"tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo"
|
|
},
|
|
"include": ["./src", "src/**/*.json"],
|
|
"references": [
|
|
{ "path": "../component" },
|
|
{ "path": "../../common/debug" },
|
|
{ "path": "../electron-api" },
|
|
{ "path": "../../common/env" },
|
|
{ "path": "../../common/error" },
|
|
{ "path": "../../common/graphql" },
|
|
{ "path": "../i18n" },
|
|
{ "path": "../../common/nbstore" },
|
|
{ "path": "../track" },
|
|
{ "path": "../../../blocksuite/affine/all" },
|
|
{ "path": "../../../blocksuite/affine/shared" },
|
|
{ "path": "../../../blocksuite/framework/std" },
|
|
{ "path": "../../common/infra" },
|
|
{ "path": "../../../blocksuite/affine/ext-loader" }
|
|
]
|
|
}
|