mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
## New Features
* **Block Meta Markdown Adapter**:Inject the Block's metadata into
Markdown.
* **UI**:Apply interaction
* **Widget**
* Block-Level Widget: Displays the diffs of individual blocks within the
main content and supports accepting/rejecting individual diffs.
* Page-Level Widget: Displays global options (Accept all/Reject all).
* **Block Diff Service**:Bridge widget and diff data
* Widget subscribes to DiffMap(RenderDiff) data, refreshing the view
when the data changes.
* Widget performs operations such as Accept/Reject via methods provided
by Service.
* **Doc Edit Tool Card**:
* Display apply preview of semantic doc edit
* Support apply & accept/reject to the main content
* **Apply Playground**:A devtool for testing apply new content to
current
> CLOSE AI-274 AI-275 AI-276 AI-278
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Introduced block-level markdown diffing with accept/reject controls
for insertions, deletions, and updates.
* Added block diff widgets for individual blocks and pages, featuring
navigation and bulk accept/reject actions.
* Provided a block diff playground for testing and previewing markdown
changes (development mode only).
* Added a new document editing AI tool component with interactive diff
viewing and change application.
* Supported rendering of the document editing tool within AI chat
content streams.
* **Improvements**
* Enhanced widget rendering in list, paragraph, data view, and database
blocks for improved extensibility.
* Improved widget flavour matching with hierarchical wildcard support
for more flexible UI integration.
* **Chores**
* Updated the "@toeverything/theme" dependency to version ^1.1.16 across
multiple packages.
* Added new workspace dependencies for core frontend packages to improve
module linkage.
* Extended global styles with visual highlights for deleted blocks in AI
block diff feature.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
80 lines
2.4 KiB
JSON
80 lines
2.4 KiB
JSON
{
|
|
"name": "@blocksuite/affine-shared",
|
|
"description": "Default BlockSuite editable blocks.",
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "tsc"
|
|
},
|
|
"sideEffects": false,
|
|
"keywords": [],
|
|
"author": "toeverything",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@blocksuite/affine-model": "workspace:*",
|
|
"@blocksuite/global": "workspace:*",
|
|
"@blocksuite/icons": "^2.2.12",
|
|
"@blocksuite/std": "workspace:*",
|
|
"@blocksuite/store": "workspace:*",
|
|
"@floating-ui/dom": "^1.6.13",
|
|
"@lit/context": "^1.1.2",
|
|
"@preact/signals-core": "^1.8.0",
|
|
"@toeverything/theme": "^1.1.16",
|
|
"@types/bytes": "^3.1.5",
|
|
"@types/hast": "^3.0.4",
|
|
"@types/lodash-es": "^4.17.12",
|
|
"@types/mdast": "^4.0.4",
|
|
"bytes": "^3.1.2",
|
|
"dompurify": "^3.2.4",
|
|
"fractional-indexing": "^3.2.0",
|
|
"lit": "^3.2.0",
|
|
"lodash-es": "^4.17.21",
|
|
"mdast-util-gfm-autolink-literal": "^2.0.1",
|
|
"mdast-util-gfm-footnote": "^2.0.0",
|
|
"mdast-util-gfm-strikethrough": "^2.0.0",
|
|
"mdast-util-gfm-table": "^2.0.0",
|
|
"mdast-util-gfm-task-list-item": "^2.0.0",
|
|
"micromark-extension-gfm-autolink-literal": "^2.1.0",
|
|
"micromark-extension-gfm-footnote": "^2.1.0",
|
|
"micromark-extension-gfm-strikethrough": "^2.1.0",
|
|
"micromark-extension-gfm-table": "^2.1.0",
|
|
"micromark-extension-gfm-task-list-item": "^2.1.0",
|
|
"micromark-util-combine-extensions": "^2.0.0",
|
|
"minimatch": "^10.0.1",
|
|
"quick-lru": "^7.0.1",
|
|
"rehype-parse": "^9.0.0",
|
|
"rehype-stringify": "^10.0.0",
|
|
"remark-math": "^6.0.0",
|
|
"remark-parse": "^11.0.0",
|
|
"remark-stringify": "^11.0.0",
|
|
"rxjs": "^7.8.1",
|
|
"ts-pattern": "^5.1.0",
|
|
"unified": "^11.0.5",
|
|
"unist-util-visit": "^5.0.0",
|
|
"yjs": "^13.6.21",
|
|
"zod": "^3.23.8"
|
|
},
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./selection": "./src/selection/index.ts",
|
|
"./utils": "./src/utils/index.ts",
|
|
"./consts": "./src/consts/index.ts",
|
|
"./types": "./src/types/index.ts",
|
|
"./commands": "./src/commands/index.ts",
|
|
"./theme": "./src/theme/index.ts",
|
|
"./styles": "./src/styles/index.ts",
|
|
"./services": "./src/services/index.ts",
|
|
"./adapters": "./src/adapters/index.ts",
|
|
"./test-utils": "./src/test-utils/index.ts"
|
|
},
|
|
"files": [
|
|
"src",
|
|
"dist",
|
|
"!src/__tests__",
|
|
"!dist/__tests__"
|
|
],
|
|
"devDependencies": {
|
|
"vitest": "3.1.3"
|
|
},
|
|
"version": "0.22.4"
|
|
}
|