mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 06:16:59 +08:00
Closes: [BS-3122](https://linear.app/affine-design/issue/BS-3122/footnote-definition-adapter-适配) Closes: [BS-3123](https://linear.app/affine-design/issue/BS-3123/几个-block-card-view-适配-footnote-态) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new citation card component and web element for displaying citations. - Added support for citation-style rendering in attachment, bookmark, and linked document blocks. - Enabled citation parsing from footnote definitions in markdown for attachments, bookmarks, and linked docs. - Added a feature flag to enable or disable citation features. - Provided new toolbar logic to disable downloads for citation-style attachments. - **Improvements** - Updated block models and properties to support citation identifiers. - Added localization and settings for the citation experimental feature. - Enhanced markdown adapters to recognize and process citation footnotes. - Included new constants and styles for citation card display. - **Bug Fixes** - Ensured readonly state is respected in block interactions and rendering for citation blocks. - **Documentation** - Added exports and effects for new citation components and features. - **Tests** - Updated snapshots to include citation-related properties in block data. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
60 lines
1.3 KiB
JSON
60 lines
1.3 KiB
JSON
{
|
|
"type": "block",
|
|
"id": "0",
|
|
"flavour": "affine:page",
|
|
"version": 2,
|
|
"props": {
|
|
"title": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": []
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "block",
|
|
"id": "1",
|
|
"flavour": "affine:note",
|
|
"version": 1,
|
|
"props": {
|
|
"xywh": "[0,0,498,92]",
|
|
"background": {
|
|
"dark": "#000000",
|
|
"light": "#ffffff"
|
|
},
|
|
"index": "a0",
|
|
"hidden": false,
|
|
"displayMode": "both",
|
|
"edgeless": {
|
|
"style": {
|
|
"borderRadius": 8,
|
|
"borderSize": 4,
|
|
"borderStyle": "none",
|
|
"shadowType": "--affine-note-shadow-box"
|
|
}
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "block",
|
|
"id": "3",
|
|
"flavour": "affine:bookmark",
|
|
"version": 1,
|
|
"props": {
|
|
"style": "horizontal",
|
|
"url": "http://localhost",
|
|
"caption": null,
|
|
"description": null,
|
|
"footnoteIdentifier": null,
|
|
"icon": null,
|
|
"image": null,
|
|
"title": null,
|
|
"index": "a0",
|
|
"xywh": "[0,0,0,0]",
|
|
"rotate": 0
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |