mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +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
106 lines
3.2 KiB
JSON
106 lines
3.2 KiB
JSON
{
|
|
"name": "@affine/core",
|
|
"type": "module",
|
|
"private": true,
|
|
"version": "0.22.4",
|
|
"exports": {
|
|
"./*": "./src/*",
|
|
"./bootstrap": "./src/bootstrap/index.ts"
|
|
},
|
|
"dependencies": {
|
|
"@affine/component": "workspace:*",
|
|
"@affine/debug": "workspace:*",
|
|
"@affine/electron-api": "workspace:*",
|
|
"@affine/env": "workspace:*",
|
|
"@affine/error": "workspace:*",
|
|
"@affine/graphql": "workspace:*",
|
|
"@affine/i18n": "workspace:*",
|
|
"@affine/nbstore": "workspace:*",
|
|
"@affine/templates": "workspace:*",
|
|
"@affine/track": "workspace:*",
|
|
"@blocksuite/affine": "workspace:*",
|
|
"@blocksuite/affine-shared": "workspace:*",
|
|
"@blocksuite/icons": "^2.2.13",
|
|
"@blocksuite/std": "workspace:*",
|
|
"@dotlottie/player-component": "^2.7.12",
|
|
"@emotion/cache": "^11.14.0",
|
|
"@emotion/css": "^11.13.5",
|
|
"@emotion/react": "^11.14.0",
|
|
"@floating-ui/dom": "^1.6.13",
|
|
"@juggle/resize-observer": "^3.4.0",
|
|
"@lit/context": "^1.1.4",
|
|
"@marsidev/react-turnstile": "^1.1.0",
|
|
"@preact/signals-core": "^1.8.0",
|
|
"@radix-ui/react-collapsible": "^1.1.2",
|
|
"@radix-ui/react-dialog": "^1.1.3",
|
|
"@radix-ui/react-popover": "^1.1.3",
|
|
"@radix-ui/react-scroll-area": "^1.2.2",
|
|
"@radix-ui/react-slot": "^1.1.1",
|
|
"@radix-ui/react-toolbar": "^1.1.1",
|
|
"@sentry/react": "^9.2.0",
|
|
"@toeverything/infra": "workspace:*",
|
|
"@toeverything/pdf-viewer": "^0.1.1",
|
|
"@toeverything/theme": "^1.1.15",
|
|
"@vanilla-extract/dynamic": "^2.1.2",
|
|
"@webcontainer/api": "^1.6.1",
|
|
"animejs": "^4.0.0",
|
|
"bytes": "^3.1.2",
|
|
"clsx": "^2.1.1",
|
|
"cmdk": "^1.0.4",
|
|
"core-js": "^3.39.0",
|
|
"dayjs": "^1.11.13",
|
|
"eventemitter2": "^6.4.9",
|
|
"file-type": "^21.0.0",
|
|
"filesize": "^10.1.6",
|
|
"foxact": "^0.2.43",
|
|
"fuse.js": "^7.0.0",
|
|
"graphemer": "^1.4.0",
|
|
"graphql": "^16.9.0",
|
|
"history": "^5.3.0",
|
|
"ical.js": "^2.1.0",
|
|
"idb": "^8.0.0",
|
|
"idb-keyval": "^6.2.1",
|
|
"image-blob-reduce": "^4.1.0",
|
|
"is-svg": "^6.0.0",
|
|
"jotai": "^2.10.3",
|
|
"jotai-scope": "^0.7.2",
|
|
"katex": "^0.16.11",
|
|
"lib0": "^0.2.99",
|
|
"lit": "^3.2.1",
|
|
"lodash-es": "^4.17.21",
|
|
"lottie-react": "^2.4.0",
|
|
"mp4-muxer": "^5.2.1",
|
|
"nanoid": "^5.0.9",
|
|
"next-themes": "^0.4.4",
|
|
"query-string": "^9.1.1",
|
|
"react": "19.1.0",
|
|
"react-dom": "19.1.0",
|
|
"react-error-boundary": "^6.0.0",
|
|
"react-router-dom": "^6.28.0",
|
|
"react-transition-state": "^2.2.0",
|
|
"react-virtuoso": "^4.12.3",
|
|
"rxjs": "^7.8.1",
|
|
"ses": "^1.10.0",
|
|
"shiki": "^3.7.0",
|
|
"socket.io-client": "^4.8.1",
|
|
"swr": "2.3.3",
|
|
"tinykeys": "patch:tinykeys@npm%3A2.1.0#~/.yarn/patches/tinykeys-npm-2.1.0-819feeaed0.patch",
|
|
"y-protocols": "^1.0.6",
|
|
"yjs": "^13.6.21",
|
|
"zod": "^3.24.1"
|
|
},
|
|
"devDependencies": {
|
|
"@blocksuite/affine-ext-loader": "workspace:*",
|
|
"@testing-library/dom": "^10.4.0",
|
|
"@testing-library/react": "^16.1.0",
|
|
"@types/animejs": "^3.1.12",
|
|
"@types/bytes": "^3.1.5",
|
|
"@types/image-blob-reduce": "^4.1.4",
|
|
"@types/lodash-es": "^4.17.12",
|
|
"@vanilla-extract/css": "^1.17.0",
|
|
"fake-indexeddb": "^6.0.0",
|
|
"lodash-es": "^4.17.21",
|
|
"vitest": "3.1.3"
|
|
}
|
|
}
|