mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00: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 -->
83 lines
3.0 KiB
JSON
83 lines
3.0 KiB
JSON
{
|
|
"name": "@blocksuite/affine-components",
|
|
"description": "Default BlockSuite editable blocks.",
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "tsc"
|
|
},
|
|
"sideEffects": false,
|
|
"keywords": [],
|
|
"author": "toeverything",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@blocksuite/affine-model": "workspace:*",
|
|
"@blocksuite/affine-shared": "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",
|
|
"@lottiefiles/dotlottie-wc": "^0.5.0",
|
|
"@preact/signals-core": "^1.8.0",
|
|
"@toeverything/theme": "^1.1.12",
|
|
"@types/hast": "^3.0.4",
|
|
"@types/katex": "^0.16.7",
|
|
"@types/lodash-es": "^4.17.12",
|
|
"@types/mdast": "^4.0.4",
|
|
"collapse-white-space": "^2.1.0",
|
|
"date-fns": "^4.0.0",
|
|
"katex": "^0.16.11",
|
|
"lit": "^3.2.0",
|
|
"lit-html": "^3.2.1",
|
|
"lodash-es": "^4.17.21",
|
|
"remark-math": "^6.0.0",
|
|
"rxjs": "^7.8.1",
|
|
"shiki": "^3.0.0",
|
|
"yjs": "^13.6.21",
|
|
"zod": "^3.23.8"
|
|
},
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./color-picker": "./src/color-picker/index.ts",
|
|
"./icons": "./src/icons/index.ts",
|
|
"./peek": "./src/peek/index.ts",
|
|
"./portal": "./src/portal/index.ts",
|
|
"./hover": "./src/hover/index.ts",
|
|
"./icon-button": "./src/icon-button/index.ts",
|
|
"./toolbar": "./src/toolbar/index.ts",
|
|
"./toast": "./src/toast/index.ts",
|
|
"./smooth-corner": "./src/smooth-corner/index.ts",
|
|
"./caption": "./src/caption/index.ts",
|
|
"./context-menu": "./src/context-menu/index.ts",
|
|
"./date-picker": "./src/date-picker/index.ts",
|
|
"./drop-indicator": "./src/drop-indicator/index.ts",
|
|
"./filterable-list": "./src/filterable-list/index.ts",
|
|
"./toggle-button": "./src/toggle-button/index.ts",
|
|
"./toggle-switch": "./src/toggle-switch/index.ts",
|
|
"./notification": "./src/notification/index.ts",
|
|
"./block-zero-width": "./src/block-zero-width/index.ts",
|
|
"./block-selection": "./src/block-selection/index.ts",
|
|
"./embed-card-modal": "./src/embed-card-modal/index.ts",
|
|
"./link-preview": "./src/link-preview/index.ts",
|
|
"./linked-doc-title": "./src/linked-doc-title/index.ts",
|
|
"./view-dropdown-menu": "./src/view-dropdown-menu/index.ts",
|
|
"./card-style-dropdown-menu": "./src/card-style-dropdown-menu/index.ts",
|
|
"./citation": "./src/citation/index.ts",
|
|
"./highlight-dropdown-menu": "./src/highlight-dropdown-menu/index.ts",
|
|
"./tooltip-content-with-shortcut": "./src/tooltip-content-with-shortcut/index.ts",
|
|
"./size-dropdown-menu": "./src/size-dropdown-menu/index.ts",
|
|
"./edgeless-line-width-panel": "./src/edgeless-line-width-panel/index.ts",
|
|
"./edgeless-line-styles-panel": "./src/edgeless-line-styles-panel/index.ts",
|
|
"./edgeless-shape-color-picker": "./src/edgeless-shape-color-picker/index.ts",
|
|
"./open-doc-dropdown-menu": "./src/open-doc-dropdown-menu/index.ts"
|
|
},
|
|
"files": [
|
|
"src",
|
|
"dist",
|
|
"!src/__tests__",
|
|
"!dist/__tests__"
|
|
],
|
|
"version": "0.21.0"
|
|
}
|