mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-21 08:17:10 +08:00
feat(editor): support member node (#11075)
Close [BS-2793](https://linear.app/affine-design/issue/BS-2793/inline-member)
This commit is contained in:
@@ -42,6 +42,7 @@
|
|||||||
"@blocksuite/affine-inline-footnote": "workspace:*",
|
"@blocksuite/affine-inline-footnote": "workspace:*",
|
||||||
"@blocksuite/affine-inline-latex": "workspace:*",
|
"@blocksuite/affine-inline-latex": "workspace:*",
|
||||||
"@blocksuite/affine-inline-link": "workspace:*",
|
"@blocksuite/affine-inline-link": "workspace:*",
|
||||||
|
"@blocksuite/affine-inline-mention": "workspace:*",
|
||||||
"@blocksuite/affine-inline-preset": "workspace:*",
|
"@blocksuite/affine-inline-preset": "workspace:*",
|
||||||
"@blocksuite/affine-inline-reference": "workspace:*",
|
"@blocksuite/affine-inline-reference": "workspace:*",
|
||||||
"@blocksuite/affine-model": "workspace:*",
|
"@blocksuite/affine-model": "workspace:*",
|
||||||
@@ -106,6 +107,7 @@
|
|||||||
"./inlines/preset": "./src/inlines/preset.ts",
|
"./inlines/preset": "./src/inlines/preset.ts",
|
||||||
"./inlines/footnote": "./src/inlines/footnote.ts",
|
"./inlines/footnote": "./src/inlines/footnote.ts",
|
||||||
"./inlines/latex": "./src/inlines/latex.ts",
|
"./inlines/latex": "./src/inlines/latex.ts",
|
||||||
|
"./inlines/mention": "./src/inlines/mention.ts",
|
||||||
"./widgets/drag-handle": "./src/widgets/drag-handle.ts",
|
"./widgets/drag-handle": "./src/widgets/drag-handle.ts",
|
||||||
"./widgets/edgeless-auto-connect": "./src/widgets/edgeless-auto-connect.ts",
|
"./widgets/edgeless-auto-connect": "./src/widgets/edgeless-auto-connect.ts",
|
||||||
"./widgets/edgeless-toolbar": "./src/widgets/edgeless-toolbar.ts",
|
"./widgets/edgeless-toolbar": "./src/widgets/edgeless-toolbar.ts",
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ import { effects as fragmentOutlineEffects } from '@blocksuite/affine-fragment-o
|
|||||||
import { effects as inlineFootnoteEffects } from '@blocksuite/affine-inline-footnote/effects';
|
import { effects as inlineFootnoteEffects } from '@blocksuite/affine-inline-footnote/effects';
|
||||||
import { effects as inlineLatexEffects } from '@blocksuite/affine-inline-latex/effects';
|
import { effects as inlineLatexEffects } from '@blocksuite/affine-inline-latex/effects';
|
||||||
import { effects as inlineLinkEffects } from '@blocksuite/affine-inline-link/effects';
|
import { effects as inlineLinkEffects } from '@blocksuite/affine-inline-link/effects';
|
||||||
|
import { effects as inlineMentionEffects } from '@blocksuite/affine-inline-mention';
|
||||||
import { effects as inlinePresetEffects } from '@blocksuite/affine-inline-preset/effects';
|
import { effects as inlinePresetEffects } from '@blocksuite/affine-inline-preset/effects';
|
||||||
import { effects as inlineReferenceEffects } from '@blocksuite/affine-inline-reference/effects';
|
import { effects as inlineReferenceEffects } from '@blocksuite/affine-inline-reference/effects';
|
||||||
import { effects as richTextEffects } from '@blocksuite/affine-rich-text/effects';
|
import { effects as richTextEffects } from '@blocksuite/affine-rich-text/effects';
|
||||||
@@ -123,6 +124,7 @@ export function effects() {
|
|||||||
inlineLinkEffects();
|
inlineLinkEffects();
|
||||||
inlineFootnoteEffects();
|
inlineFootnoteEffects();
|
||||||
inlineLatexEffects();
|
inlineLatexEffects();
|
||||||
|
inlineMentionEffects();
|
||||||
|
|
||||||
blockNoteEffects();
|
blockNoteEffects();
|
||||||
blockAttachmentEffects();
|
blockAttachmentEffects();
|
||||||
|
|||||||
1
blocksuite/affine/all/src/inlines/mention.ts
Normal file
1
blocksuite/affine/all/src/inlines/mention.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export * from '@blocksuite/affine-inline-mention';
|
||||||
@@ -39,6 +39,7 @@
|
|||||||
{ "path": "../inlines/footnote" },
|
{ "path": "../inlines/footnote" },
|
||||||
{ "path": "../inlines/latex" },
|
{ "path": "../inlines/latex" },
|
||||||
{ "path": "../inlines/link" },
|
{ "path": "../inlines/link" },
|
||||||
|
{ "path": "../inlines/mention" },
|
||||||
{ "path": "../inlines/preset" },
|
{ "path": "../inlines/preset" },
|
||||||
{ "path": "../inlines/reference" },
|
{ "path": "../inlines/reference" },
|
||||||
{ "path": "../model" },
|
{ "path": "../model" },
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
"@preact/signals-core": "^1.8.0",
|
"@preact/signals-core": "^1.8.0",
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@emoji-mart/data": "^1.2.1",
|
"@emoji-mart/data": "^1.2.1",
|
||||||
"@floating-ui/dom": "^1.6.10",
|
"@floating-ui/dom": "^1.6.10",
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/data-view": "workspace:*",
|
"@blocksuite/data-view": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/data-view": "workspace:*",
|
"@blocksuite/data-view": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*",
|
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
"@blocksuite/affine-widget-frame-title": "workspace:*",
|
"@blocksuite/affine-widget-frame-title": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
"@preact/signals-core": "^1.8.0",
|
"@preact/signals-core": "^1.8.0",
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/data-view": "workspace:*",
|
"@blocksuite/data-view": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
"@blocksuite/affine-widget-slash-menu": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/data-view": "workspace:*",
|
"@blocksuite/data-view": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@preact/signals-core": "^1.8.0",
|
"@preact/signals-core": "^1.8.0",
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@emotion/hash": "^0.9.2",
|
"@emotion/hash": "^0.9.2",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*",
|
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
"@preact/signals-core": "^1.8.0",
|
"@preact/signals-core": "^1.8.0",
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*",
|
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
"@preact/signals-core": "^1.8.0",
|
"@preact/signals-core": "^1.8.0",
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*",
|
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
"@preact/signals-core": "^1.8.0",
|
"@preact/signals-core": "^1.8.0",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*",
|
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
"@preact/signals-core": "^1.8.0",
|
"@preact/signals-core": "^1.8.0",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*",
|
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
"@preact/signals-core": "^1.8.0",
|
"@preact/signals-core": "^1.8.0",
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
45
blocksuite/affine/inlines/mention/package.json
Normal file
45
blocksuite/affine/inlines/mention/package.json
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
{
|
||||||
|
"name": "@blocksuite/affine-inline-mention",
|
||||||
|
"description": "Inline mention for BlockSuite.",
|
||||||
|
"type": "module",
|
||||||
|
"scripts": {
|
||||||
|
"build": "tsc"
|
||||||
|
},
|
||||||
|
"sideEffects": false,
|
||||||
|
"keywords": [],
|
||||||
|
"author": "toeverything",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@blocksuite/affine-components": "workspace:*",
|
||||||
|
"@blocksuite/affine-model": "workspace:*",
|
||||||
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
|
"@blocksuite/block-std": "workspace:*",
|
||||||
|
"@blocksuite/global": "workspace:*",
|
||||||
|
"@blocksuite/icons": "^2.2.8",
|
||||||
|
"@blocksuite/store": "workspace:*",
|
||||||
|
"@floating-ui/dom": "^1.6.13",
|
||||||
|
"@lit/context": "^1.1.2",
|
||||||
|
"@preact/signals-core": "^1.8.0",
|
||||||
|
"@toeverything/theme": "^1.1.12",
|
||||||
|
"@types/lodash-es": "^4.17.12",
|
||||||
|
"collapse-white-space": "^2.1.0",
|
||||||
|
"date-fns": "^4.0.0",
|
||||||
|
"lit": "^3.2.0",
|
||||||
|
"lit-html": "^3.2.1",
|
||||||
|
"lodash-es": "^4.17.21",
|
||||||
|
"rxjs": "^7.8.1",
|
||||||
|
"yjs": "^13.6.21",
|
||||||
|
"zod": "^3.23.8"
|
||||||
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./src/index.ts",
|
||||||
|
"./effects": "./src/effects.ts"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"src",
|
||||||
|
"dist",
|
||||||
|
"!src/__tests__",
|
||||||
|
"!dist/__tests__"
|
||||||
|
],
|
||||||
|
"version": "0.20.0"
|
||||||
|
}
|
||||||
149
blocksuite/affine/inlines/mention/src/affine-mention.ts
Normal file
149
blocksuite/affine/inlines/mention/src/affine-mention.ts
Normal file
@@ -0,0 +1,149 @@
|
|||||||
|
import { UserProvider } from '@blocksuite/affine-shared/services';
|
||||||
|
import { unsafeCSSVarV2 } from '@blocksuite/affine-shared/theme';
|
||||||
|
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
||||||
|
import type { BlockStdScope } from '@blocksuite/block-std';
|
||||||
|
import { ShadowlessElement } from '@blocksuite/block-std';
|
||||||
|
import {
|
||||||
|
ZERO_WIDTH_NON_JOINER,
|
||||||
|
ZERO_WIDTH_SPACE,
|
||||||
|
} from '@blocksuite/block-std/inline';
|
||||||
|
import { SignalWatcher, WithDisposable } from '@blocksuite/global/lit';
|
||||||
|
import type { DeltaInsert } from '@blocksuite/store';
|
||||||
|
import { css, html } from 'lit';
|
||||||
|
import { property } from 'lit/decorators.js';
|
||||||
|
|
||||||
|
export class AffineMention extends SignalWatcher(
|
||||||
|
WithDisposable(ShadowlessElement)
|
||||||
|
) {
|
||||||
|
static override styles = css`
|
||||||
|
.affine-mention {
|
||||||
|
color: ${unsafeCSSVarV2('text/primary')};
|
||||||
|
font-feature-settings:
|
||||||
|
'liga' off,
|
||||||
|
'clig' off;
|
||||||
|
/* Client/baseMedium */
|
||||||
|
font-family: Inter;
|
||||||
|
font-size: 15px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 24px; /* 160% */
|
||||||
|
padding: 0 4px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.affine-mention:hover {
|
||||||
|
background: var(--affine-hover-color);
|
||||||
|
}
|
||||||
|
.affine-mention[data-selected='true'] {
|
||||||
|
background: var(--affine-hover-color);
|
||||||
|
}
|
||||||
|
.affine-mention[data-type='default'] {
|
||||||
|
color: ${unsafeCSSVarV2('text/primary')};
|
||||||
|
}
|
||||||
|
.affine-mention[data-type='removed'] {
|
||||||
|
color: ${unsafeCSSVarV2('text/disable')};
|
||||||
|
}
|
||||||
|
.affine-mention[data-type='error'] {
|
||||||
|
color: ${unsafeCSSVarV2('text/disable')};
|
||||||
|
}
|
||||||
|
.affine-mention[data-type='loading'] {
|
||||||
|
color: ${unsafeCSSVarV2('text/placeholder')};
|
||||||
|
background: ${unsafeCSSVarV2('skeleton/skeleton')};
|
||||||
|
}
|
||||||
|
.loading-text {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
.dots {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
.dot {
|
||||||
|
display: inline-block;
|
||||||
|
opacity: 0;
|
||||||
|
animation: pulse 1.2s infinite;
|
||||||
|
}
|
||||||
|
.dots > .dot:nth-child(2) {
|
||||||
|
animation-delay: 0.4s;
|
||||||
|
}
|
||||||
|
.dots > .dot:nth-child(3) {
|
||||||
|
animation-delay: 0.8s;
|
||||||
|
}
|
||||||
|
@keyframes pulse {
|
||||||
|
0% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
33.333% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
66.666% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
override render() {
|
||||||
|
const errorContent = html`<span
|
||||||
|
data-selected=${this.selected}
|
||||||
|
data-type="error"
|
||||||
|
class="affine-mention"
|
||||||
|
>@Unknown Member<v-text .str=${ZERO_WIDTH_NON_JOINER}></v-text
|
||||||
|
></span>`;
|
||||||
|
|
||||||
|
const userService = this.std.getOptional(UserProvider);
|
||||||
|
const memberId = this.delta.attributes?.mention?.member;
|
||||||
|
if (!userService || !memberId) {
|
||||||
|
return errorContent;
|
||||||
|
}
|
||||||
|
|
||||||
|
userService.revalidateUserInfo(memberId);
|
||||||
|
const isLoading$ = userService.isLoading$(memberId);
|
||||||
|
const userInfo$ = userService.userInfo$(memberId);
|
||||||
|
|
||||||
|
if (userInfo$.value) {
|
||||||
|
if (userInfo$.value.removed) {
|
||||||
|
return html`<span
|
||||||
|
data-selected=${this.selected}
|
||||||
|
data-type="removed"
|
||||||
|
class="affine-mention"
|
||||||
|
>@Inactive Member<v-text .str=${ZERO_WIDTH_NON_JOINER}></v-text
|
||||||
|
></span>`;
|
||||||
|
} else {
|
||||||
|
return html`<span
|
||||||
|
data-selected=${this.selected}
|
||||||
|
data-type="default"
|
||||||
|
class="affine-mention"
|
||||||
|
>@${userInfo$.value.name ?? 'Unknown'}<v-text
|
||||||
|
.str=${ZERO_WIDTH_NON_JOINER}
|
||||||
|
></v-text
|
||||||
|
></span>`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isLoading$.value) {
|
||||||
|
return html`<span
|
||||||
|
data-selected=${this.selected}
|
||||||
|
data-type="loading"
|
||||||
|
class="affine-mention"
|
||||||
|
>@loading<span class="dots"
|
||||||
|
><span class="dot">.</span><span class="dot">.</span
|
||||||
|
><span class="dot">.</span></span
|
||||||
|
><v-text .str=${ZERO_WIDTH_NON_JOINER}></v-text
|
||||||
|
></span>`;
|
||||||
|
}
|
||||||
|
|
||||||
|
return errorContent;
|
||||||
|
}
|
||||||
|
|
||||||
|
@property({ type: Object })
|
||||||
|
accessor delta: DeltaInsert<AffineTextAttributes> = {
|
||||||
|
insert: ZERO_WIDTH_SPACE,
|
||||||
|
attributes: {},
|
||||||
|
};
|
||||||
|
|
||||||
|
@property({ type: Boolean })
|
||||||
|
accessor selected = false;
|
||||||
|
|
||||||
|
@property({ attribute: false })
|
||||||
|
accessor std!: BlockStdScope;
|
||||||
|
}
|
||||||
11
blocksuite/affine/inlines/mention/src/effects.ts
Normal file
11
blocksuite/affine/inlines/mention/src/effects.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import { AffineMention } from './affine-mention';
|
||||||
|
|
||||||
|
export function effects() {
|
||||||
|
customElements.define('affine-mention', AffineMention);
|
||||||
|
}
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
interface HTMLElementTagNameMap {
|
||||||
|
'affine-mention': AffineMention;
|
||||||
|
}
|
||||||
|
}
|
||||||
7
blocksuite/affine/inlines/mention/src/exts.ts
Normal file
7
blocksuite/affine/inlines/mention/src/exts.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import type { ExtensionType } from '@blocksuite/store';
|
||||||
|
|
||||||
|
import { MentionInlineSpecExtension } from './inline-spec';
|
||||||
|
|
||||||
|
export const inlineMentionExtensions: ExtensionType[] = [
|
||||||
|
MentionInlineSpecExtension,
|
||||||
|
];
|
||||||
4
blocksuite/affine/inlines/mention/src/index.ts
Normal file
4
blocksuite/affine/inlines/mention/src/index.ts
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
export * from './affine-mention';
|
||||||
|
export * from './effects';
|
||||||
|
export * from './exts';
|
||||||
|
export * from './inline-spec';
|
||||||
32
blocksuite/affine/inlines/mention/src/inline-spec.ts
Normal file
32
blocksuite/affine/inlines/mention/src/inline-spec.ts
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
||||||
|
import { StdIdentifier } from '@blocksuite/block-std';
|
||||||
|
import { InlineSpecExtension } from '@blocksuite/block-std/inline';
|
||||||
|
import { html } from 'lit';
|
||||||
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
export const MentionInlineSpecExtension =
|
||||||
|
InlineSpecExtension<AffineTextAttributes>('mention', provider => {
|
||||||
|
const std = provider.get(StdIdentifier);
|
||||||
|
return {
|
||||||
|
name: 'mention',
|
||||||
|
schema: z
|
||||||
|
.object({
|
||||||
|
member: z.string(),
|
||||||
|
notification: z.string(),
|
||||||
|
})
|
||||||
|
.optional()
|
||||||
|
.nullable()
|
||||||
|
.catch(undefined),
|
||||||
|
match: delta => {
|
||||||
|
return !!delta.attributes?.mention?.member;
|
||||||
|
},
|
||||||
|
renderer: ({ delta, selected }) => {
|
||||||
|
return html`<affine-mention
|
||||||
|
.delta=${delta}
|
||||||
|
.std=${std}
|
||||||
|
.selected=${selected}
|
||||||
|
></affine-mention>`;
|
||||||
|
},
|
||||||
|
embed: true,
|
||||||
|
};
|
||||||
|
});
|
||||||
17
blocksuite/affine/inlines/mention/tsconfig.json
Normal file
17
blocksuite/affine/inlines/mention/tsconfig.json
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"extends": "../../../tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"rootDir": "./src",
|
||||||
|
"outDir": "./dist",
|
||||||
|
"tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo"
|
||||||
|
},
|
||||||
|
"include": ["./src"],
|
||||||
|
"references": [
|
||||||
|
{ "path": "../../components" },
|
||||||
|
{ "path": "../../model" },
|
||||||
|
{ "path": "../../shared" },
|
||||||
|
{ "path": "../../../framework/block-std" },
|
||||||
|
{ "path": "../../../framework/global" },
|
||||||
|
{ "path": "../../../framework/store" }
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -14,13 +14,14 @@
|
|||||||
"@blocksuite/affine-inline-footnote": "workspace:*",
|
"@blocksuite/affine-inline-footnote": "workspace:*",
|
||||||
"@blocksuite/affine-inline-latex": "workspace:*",
|
"@blocksuite/affine-inline-latex": "workspace:*",
|
||||||
"@blocksuite/affine-inline-link": "workspace:*",
|
"@blocksuite/affine-inline-link": "workspace:*",
|
||||||
|
"@blocksuite/affine-inline-mention": "workspace:*",
|
||||||
"@blocksuite/affine-inline-reference": "workspace:*",
|
"@blocksuite/affine-inline-reference": "workspace:*",
|
||||||
"@blocksuite/affine-model": "workspace:*",
|
"@blocksuite/affine-model": "workspace:*",
|
||||||
"@blocksuite/affine-rich-text": "workspace:*",
|
"@blocksuite/affine-rich-text": "workspace:*",
|
||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { FootNoteInlineSpecExtension } from '@blocksuite/affine-inline-footnote';
|
import { FootNoteInlineSpecExtension } from '@blocksuite/affine-inline-footnote';
|
||||||
import { LatexInlineSpecExtension } from '@blocksuite/affine-inline-latex';
|
import { LatexInlineSpecExtension } from '@blocksuite/affine-inline-latex';
|
||||||
import { LinkInlineSpecExtension } from '@blocksuite/affine-inline-link';
|
import { LinkInlineSpecExtension } from '@blocksuite/affine-inline-link';
|
||||||
|
import { MentionInlineSpecExtension } from '@blocksuite/affine-inline-mention';
|
||||||
import { ReferenceInlineSpecExtension } from '@blocksuite/affine-inline-reference';
|
import { ReferenceInlineSpecExtension } from '@blocksuite/affine-inline-reference';
|
||||||
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
||||||
import { InlineManagerExtension } from '@blocksuite/block-std/inline';
|
import { InlineManagerExtension } from '@blocksuite/block-std/inline';
|
||||||
@@ -30,5 +31,6 @@ export const DefaultInlineManagerExtension =
|
|||||||
ReferenceInlineSpecExtension.identifier,
|
ReferenceInlineSpecExtension.identifier,
|
||||||
LinkInlineSpecExtension.identifier,
|
LinkInlineSpecExtension.identifier,
|
||||||
FootNoteInlineSpecExtension.identifier,
|
FootNoteInlineSpecExtension.identifier,
|
||||||
|
MentionInlineSpecExtension.identifier,
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { inlineFootnoteExtensions } from '@blocksuite/affine-inline-footnote';
|
import { inlineFootnoteExtensions } from '@blocksuite/affine-inline-footnote';
|
||||||
import { inlineLatexExtensions } from '@blocksuite/affine-inline-latex';
|
import { inlineLatexExtensions } from '@blocksuite/affine-inline-latex';
|
||||||
import { inlineLinkExtensions } from '@blocksuite/affine-inline-link';
|
import { inlineLinkExtensions } from '@blocksuite/affine-inline-link';
|
||||||
|
import { inlineMentionExtensions } from '@blocksuite/affine-inline-mention';
|
||||||
import { inlineReferenceExtensions } from '@blocksuite/affine-inline-reference';
|
import { inlineReferenceExtensions } from '@blocksuite/affine-inline-reference';
|
||||||
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
||||||
import {
|
import {
|
||||||
@@ -109,4 +110,5 @@ export const InlineSpecExtensions: ExtensionType[] = [
|
|||||||
...inlineReferenceExtensions,
|
...inlineReferenceExtensions,
|
||||||
...inlineLatexExtensions,
|
...inlineLatexExtensions,
|
||||||
...inlineFootnoteExtensions,
|
...inlineFootnoteExtensions,
|
||||||
|
...inlineMentionExtensions,
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
{ "path": "../footnote" },
|
{ "path": "../footnote" },
|
||||||
{ "path": "../latex" },
|
{ "path": "../latex" },
|
||||||
{ "path": "../link" },
|
{ "path": "../link" },
|
||||||
|
{ "path": "../mention" },
|
||||||
{ "path": "../reference" },
|
{ "path": "../reference" },
|
||||||
{ "path": "../../model" },
|
{ "path": "../../model" },
|
||||||
{ "path": "../../rich-text" },
|
{ "path": "../../rich-text" },
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
"@blocksuite/affine-model": "workspace:*",
|
"@blocksuite/affine-model": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -73,6 +73,10 @@ export interface AffineTextAttributes {
|
|||||||
color?: string | null;
|
color?: string | null;
|
||||||
latex?: string | null;
|
latex?: string | null;
|
||||||
footnote?: FootNote | null;
|
footnote?: FootNote | null;
|
||||||
|
mention?: {
|
||||||
|
member: string;
|
||||||
|
notification: string;
|
||||||
|
} | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AffineInlineEditor = InlineEditor<AffineTextAttributes>;
|
export type AffineInlineEditor = InlineEditor<AffineTextAttributes>;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@preact/signals-core": "^1.8.0",
|
"@preact/signals-core": "^1.8.0",
|
||||||
"@toeverything/theme": "^1.1.12",
|
"@toeverything/theme": "^1.1.12",
|
||||||
"lit": "^3.2.0",
|
"lit": "^3.2.0",
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.2",
|
"@lit/context": "^1.1.2",
|
||||||
"@preact/signals-core": "^1.8.0",
|
"@preact/signals-core": "^1.8.0",
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@preact/signals-core": "^1.8.0",
|
"@preact/signals-core": "^1.8.0",
|
||||||
"@toeverything/theme": "^1.1.12",
|
"@toeverything/theme": "^1.1.12",
|
||||||
"@types/lodash-es": "^4.17.12",
|
"@types/lodash-es": "^4.17.12",
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/store": "workspace:*",
|
"@blocksuite/store": "workspace:*",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@preact/signals-core": "^1.8.0",
|
"@preact/signals-core": "^1.8.0",
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/block-std": "workspace:*",
|
"@blocksuite/block-std": "workspace:*",
|
||||||
"@blocksuite/global": "workspace:*",
|
"@blocksuite/global": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@preact/signals-core": "^1.8.0",
|
"@preact/signals-core": "^1.8.0",
|
||||||
"@toeverything/theme": "^1.1.12",
|
"@toeverything/theme": "^1.1.12",
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blocksuite/affine": "workspace:*",
|
"@blocksuite/affine": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@floating-ui/dom": "^1.6.13",
|
"@floating-ui/dom": "^1.6.13",
|
||||||
"@lit/context": "^1.1.3",
|
"@lit/context": "^1.1.3",
|
||||||
"@lottiefiles/dotlottie-wc": "^0.4.0",
|
"@lottiefiles/dotlottie-wc": "^0.4.0",
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
"@blocksuite/affine-model": "workspace:*",
|
"@blocksuite/affine-model": "workspace:*",
|
||||||
"@blocksuite/affine-shared": "workspace:*",
|
"@blocksuite/affine-shared": "workspace:*",
|
||||||
"@blocksuite/data-view": "workspace:*",
|
"@blocksuite/data-view": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@blocksuite/integration-test": "workspace:*",
|
"@blocksuite/integration-test": "workspace:*",
|
||||||
"@preact/signals-core": "^1.8.0",
|
"@preact/signals-core": "^1.8.0",
|
||||||
"@shoelace-style/shoelace": "2.20.1",
|
"@shoelace-style/shoelace": "2.20.1",
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"@affine/component": "workspace:*",
|
"@affine/component": "workspace:*",
|
||||||
"@affine/core": "workspace:*",
|
"@affine/core": "workspace:*",
|
||||||
"@affine/graphql": "workspace:*",
|
"@affine/graphql": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.4",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@radix-ui/react-accordion": "^1.2.2",
|
"@radix-ui/react-accordion": "^1.2.2",
|
||||||
"@radix-ui/react-alert-dialog": "^1.1.3",
|
"@radix-ui/react-alert-dialog": "^1.1.3",
|
||||||
"@radix-ui/react-aspect-ratio": "^1.1.1",
|
"@radix-ui/react-aspect-ratio": "^1.1.1",
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
"@affine/i18n": "workspace:*",
|
"@affine/i18n": "workspace:*",
|
||||||
"@affine/nbstore": "workspace:*",
|
"@affine/nbstore": "workspace:*",
|
||||||
"@blocksuite/affine": "workspace:*",
|
"@blocksuite/affine": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@capacitor/android": "^7.0.0",
|
"@capacitor/android": "^7.0.0",
|
||||||
"@capacitor/app": "^7.0.0",
|
"@capacitor/app": "^7.0.0",
|
||||||
"@capacitor/core": "^7.0.0",
|
"@capacitor/core": "^7.0.0",
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
"@affine/i18n": "workspace:*",
|
"@affine/i18n": "workspace:*",
|
||||||
"@affine/nbstore": "workspace:*",
|
"@affine/nbstore": "workspace:*",
|
||||||
"@blocksuite/affine": "workspace:*",
|
"@blocksuite/affine": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@capacitor/app": "^7.0.0",
|
"@capacitor/app": "^7.0.0",
|
||||||
"@capacitor/browser": "^7.0.0",
|
"@capacitor/browser": "^7.0.0",
|
||||||
"@capacitor/core": "^7.0.0",
|
"@capacitor/core": "^7.0.0",
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
"@affine/i18n": "workspace:*",
|
"@affine/i18n": "workspace:*",
|
||||||
"@affine/nbstore": "workspace:*",
|
"@affine/nbstore": "workspace:*",
|
||||||
"@blocksuite/affine": "workspace:*",
|
"@blocksuite/affine": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@sentry/react": "^9.2.0",
|
"@sentry/react": "^9.2.0",
|
||||||
"@toeverything/infra": "workspace:*",
|
"@toeverything/infra": "workspace:*",
|
||||||
"react": "^19.0.0",
|
"react": "^19.0.0",
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
"@affine/i18n": "workspace:*",
|
"@affine/i18n": "workspace:*",
|
||||||
"@atlaskit/pragmatic-drag-and-drop": "^1.4.0",
|
"@atlaskit/pragmatic-drag-and-drop": "^1.4.0",
|
||||||
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.3",
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.3",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@emotion/react": "^11.14.0",
|
"@emotion/react": "^11.14.0",
|
||||||
"@emotion/styled": "^11.14.0",
|
"@emotion/styled": "^11.14.0",
|
||||||
"@radix-ui/react-avatar": "^1.1.2",
|
"@radix-ui/react-avatar": "^1.1.2",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
"@affine/templates": "workspace:*",
|
"@affine/templates": "workspace:*",
|
||||||
"@affine/track": "workspace:*",
|
"@affine/track": "workspace:*",
|
||||||
"@blocksuite/affine": "workspace:*",
|
"@blocksuite/affine": "workspace:*",
|
||||||
"@blocksuite/icons": "^2.2.6",
|
"@blocksuite/icons": "^2.2.8",
|
||||||
"@dotlottie/player-component": "^2.7.12",
|
"@dotlottie/player-component": "^2.7.12",
|
||||||
"@emotion/cache": "^11.14.0",
|
"@emotion/cache": "^11.14.0",
|
||||||
"@emotion/react": "^11.14.0",
|
"@emotion/react": "^11.14.0",
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
import { type Framework } from '@toeverything/infra';
|
import { type Framework } from '@toeverything/infra';
|
||||||
|
|
||||||
|
import { WorkspaceServerService } from '../cloud';
|
||||||
import { WorkspaceDialogService } from '../dialogs';
|
import { WorkspaceDialogService } from '../dialogs';
|
||||||
import { DocsService } from '../doc';
|
import { DocsService } from '../doc';
|
||||||
import { DocDisplayMetaService } from '../doc-display-meta';
|
import { DocDisplayMetaService } from '../doc-display-meta';
|
||||||
import { EditorSettingService } from '../editor-setting';
|
import { EditorSettingService } from '../editor-setting';
|
||||||
import { JournalService } from '../journal';
|
import { JournalService } from '../journal';
|
||||||
|
import { MemberSearchService } from '../permissions';
|
||||||
import { SearchMenuService } from '../search-menu/services';
|
import { SearchMenuService } from '../search-menu/services';
|
||||||
import { WorkspaceScope } from '../workspace';
|
import { WorkspaceScope } from '../workspace';
|
||||||
import { AtMenuConfigService } from './services';
|
import { AtMenuConfigService } from './services';
|
||||||
@@ -19,5 +21,7 @@ export function configAtMenuConfigModule(framework: Framework) {
|
|||||||
EditorSettingService,
|
EditorSettingService,
|
||||||
DocsService,
|
DocsService,
|
||||||
SearchMenuService,
|
SearchMenuService,
|
||||||
|
WorkspaceServerService,
|
||||||
|
MemberSearchService,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,13 @@
|
|||||||
|
import { notify } from '@affine/component';
|
||||||
|
import { UserFriendlyError } from '@affine/error';
|
||||||
|
import { type DocMode as GraphqlDocMode } from '@affine/graphql';
|
||||||
import { I18n, i18nTime } from '@affine/i18n';
|
import { I18n, i18nTime } from '@affine/i18n';
|
||||||
import track from '@affine/track';
|
import track from '@affine/track';
|
||||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
import {
|
||||||
|
BLOCK_ID_ATTR,
|
||||||
|
type BlockComponent,
|
||||||
|
type EditorHost,
|
||||||
|
} from '@blocksuite/affine/block-std';
|
||||||
import {
|
import {
|
||||||
type LinkedMenuGroup,
|
type LinkedMenuGroup,
|
||||||
type LinkedMenuItem,
|
type LinkedMenuItem,
|
||||||
@@ -8,24 +15,29 @@ import {
|
|||||||
LinkedWidgetUtils,
|
LinkedWidgetUtils,
|
||||||
} from '@blocksuite/affine/blocks/root';
|
} from '@blocksuite/affine/blocks/root';
|
||||||
import type { DocMode } from '@blocksuite/affine/model';
|
import type { DocMode } from '@blocksuite/affine/model';
|
||||||
|
import { DocModeProvider } from '@blocksuite/affine/shared/services';
|
||||||
import type { AffineInlineEditor } from '@blocksuite/affine/shared/types';
|
import type { AffineInlineEditor } from '@blocksuite/affine/shared/types';
|
||||||
import type { DocMeta } from '@blocksuite/affine/store';
|
import type { DocMeta } from '@blocksuite/affine/store';
|
||||||
import { Text } from '@blocksuite/affine/store';
|
import { Text } from '@blocksuite/affine/store';
|
||||||
import {
|
import {
|
||||||
DateTimeIcon,
|
DateTimeIcon,
|
||||||
|
MainAvatarIcon,
|
||||||
NewXxxEdgelessIcon,
|
NewXxxEdgelessIcon,
|
||||||
NewXxxPageIcon,
|
NewXxxPageIcon,
|
||||||
} from '@blocksuite/icons/lit';
|
} from '@blocksuite/icons/lit';
|
||||||
import { computed, Signal } from '@preact/signals-core';
|
import { computed, Signal, signal } from '@preact/signals-core';
|
||||||
import { Service } from '@toeverything/infra';
|
import { Service } from '@toeverything/infra';
|
||||||
import { cssVarV2 } from '@toeverything/theme/v2';
|
import { cssVarV2 } from '@toeverything/theme/v2';
|
||||||
import { html } from 'lit';
|
import { html } from 'lit';
|
||||||
|
|
||||||
|
import type { WorkspaceServerService } from '../../cloud';
|
||||||
import type { WorkspaceDialogService } from '../../dialogs';
|
import type { WorkspaceDialogService } from '../../dialogs';
|
||||||
import type { DocsService } from '../../doc';
|
import type { DocsService } from '../../doc';
|
||||||
import type { DocDisplayMetaService } from '../../doc-display-meta';
|
import type { DocDisplayMetaService } from '../../doc-display-meta';
|
||||||
import type { EditorSettingService } from '../../editor-setting';
|
import type { EditorSettingService } from '../../editor-setting';
|
||||||
import { type JournalService, suggestJournalDate } from '../../journal';
|
import { type JournalService, suggestJournalDate } from '../../journal';
|
||||||
|
import { NotificationService } from '../../notification';
|
||||||
|
import type { Member, MemberSearchService } from '../../permissions';
|
||||||
import type { SearchMenuService } from '../../search-menu/services';
|
import type { SearchMenuService } from '../../search-menu/services';
|
||||||
|
|
||||||
function resolveSignal<T>(data: T | Signal<T>): T {
|
function resolveSignal<T>(data: T | Signal<T>): T {
|
||||||
@@ -45,7 +57,9 @@ export class AtMenuConfigService extends Service {
|
|||||||
private readonly dialogService: WorkspaceDialogService,
|
private readonly dialogService: WorkspaceDialogService,
|
||||||
private readonly editorSettingService: EditorSettingService,
|
private readonly editorSettingService: EditorSettingService,
|
||||||
private readonly docsService: DocsService,
|
private readonly docsService: DocsService,
|
||||||
private readonly searchMenuService: SearchMenuService
|
private readonly searchMenuService: SearchMenuService,
|
||||||
|
private readonly workspaceServerService: WorkspaceServerService,
|
||||||
|
private readonly memberSearchService: MemberSearchService
|
||||||
) {
|
) {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
@@ -310,12 +324,123 @@ export class AtMenuConfigService extends Service {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private memberGroup(
|
||||||
|
query: string,
|
||||||
|
close: () => void,
|
||||||
|
inlineEditor: AffineInlineEditor,
|
||||||
|
_: AbortSignal
|
||||||
|
): LinkedMenuGroup {
|
||||||
|
const inviteItem: LinkedMenuItem = {
|
||||||
|
key: 'invite',
|
||||||
|
name: 'Invite...',
|
||||||
|
icon: MainAvatarIcon(),
|
||||||
|
action: () => {
|
||||||
|
close();
|
||||||
|
|
||||||
|
this.dialogService.open('setting', {
|
||||||
|
activeTab: 'workspace:members',
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
const convertMemberToMenuItem = (member: Member) => {
|
||||||
|
const { id, name, avatarUrl } = member;
|
||||||
|
const icon = avatarUrl
|
||||||
|
? html`<img style="width: 20px; height: 20px;" src="${avatarUrl}" />`
|
||||||
|
: MainAvatarIcon();
|
||||||
|
return {
|
||||||
|
key: id,
|
||||||
|
name: name ?? 'Unknown',
|
||||||
|
icon,
|
||||||
|
action: () => {
|
||||||
|
close();
|
||||||
|
|
||||||
|
const root = inlineEditor.rootElement;
|
||||||
|
const block = root?.closest<BlockComponent>(`[${BLOCK_ID_ATTR}]`);
|
||||||
|
if (!block) return;
|
||||||
|
|
||||||
|
const notificationService =
|
||||||
|
this.workspaceServerService.server?.scope.get(NotificationService);
|
||||||
|
if (!notificationService) return;
|
||||||
|
|
||||||
|
const doc = block.doc;
|
||||||
|
const workspaceId = doc.workspace.id;
|
||||||
|
const docId = doc.id;
|
||||||
|
const docTitle = doc.meta?.title ?? '';
|
||||||
|
const mode = block.std.get(DocModeProvider).getEditorMode() ?? 'page';
|
||||||
|
|
||||||
|
notificationService
|
||||||
|
.mentionUser(id, workspaceId, {
|
||||||
|
id: docId,
|
||||||
|
title: docTitle,
|
||||||
|
blockId: block.blockId,
|
||||||
|
mode: mode as GraphqlDocMode,
|
||||||
|
})
|
||||||
|
.then(notificationId => {
|
||||||
|
const inlineRange = inlineEditor.getInlineRange();
|
||||||
|
if (inlineRange && inlineRange.length === 0) {
|
||||||
|
inlineEditor.insertText(inlineRange, ' ', {
|
||||||
|
mention: {
|
||||||
|
member: id,
|
||||||
|
notification: notificationId,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
inlineEditor.setInlineRange({
|
||||||
|
index: inlineRange.index + 1,
|
||||||
|
length: 0,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
notify.success({
|
||||||
|
title: I18n.t('com.affine.editor.at-menu.mention-success'),
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.catch(error => {
|
||||||
|
const err = UserFriendlyError.fromAny(error);
|
||||||
|
notify.error({
|
||||||
|
title: I18n[`error.${err.name}`](err.data),
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
if (query.length === 0) {
|
||||||
|
return {
|
||||||
|
name: I18n.t('com.affine.editor.at-menu.mention-member'),
|
||||||
|
items: [
|
||||||
|
...this.memberSearchService.result$.value
|
||||||
|
.slice(0, 3)
|
||||||
|
.map(member => convertMemberToMenuItem(member)),
|
||||||
|
inviteItem,
|
||||||
|
],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
this.memberSearchService.reset();
|
||||||
|
|
||||||
|
const items = signal<LinkedMenuItem[]>([inviteItem]);
|
||||||
|
const loading = this.memberSearchService.isLoading$.signal;
|
||||||
|
this.memberSearchService.result$.subscribe(members => {
|
||||||
|
items.value = [
|
||||||
|
...members.map(member => convertMemberToMenuItem(member)),
|
||||||
|
inviteItem,
|
||||||
|
];
|
||||||
|
});
|
||||||
|
this.memberSearchService.search(query);
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: I18n.t('com.affine.editor.at-menu.mention-member'),
|
||||||
|
items,
|
||||||
|
loading,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
private getMenusFn(): LinkedWidgetConfig['getMenus'] {
|
private getMenusFn(): LinkedWidgetConfig['getMenus'] {
|
||||||
return (query, close, editorHost, inlineEditor, abortSignal) => {
|
return (query, close, editorHost, inlineEditor, abortSignal) => {
|
||||||
return [
|
return [
|
||||||
this.journalGroup(query, close, inlineEditor),
|
this.journalGroup(query, close, inlineEditor),
|
||||||
this.linkToDocGroup(query, close, inlineEditor, abortSignal),
|
this.linkToDocGroup(query, close, inlineEditor, abortSignal),
|
||||||
this.newDocMenuGroup(query, close, editorHost, inlineEditor),
|
this.newDocMenuGroup(query, close, editorHost, inlineEditor),
|
||||||
|
this.memberGroup(query, close, inlineEditor, abortSignal),
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,26 +1,26 @@
|
|||||||
{
|
{
|
||||||
"ar": 95,
|
"ar": 94,
|
||||||
"ca": 4,
|
"ca": 4,
|
||||||
"da": 4,
|
"da": 4,
|
||||||
"de": 95,
|
"de": 94,
|
||||||
"el-GR": 95,
|
"el-GR": 94,
|
||||||
"en": 100,
|
"en": 100,
|
||||||
"es-AR": 95,
|
"es-AR": 94,
|
||||||
"es-CL": 96,
|
"es-CL": 96,
|
||||||
"es": 95,
|
"es": 94,
|
||||||
"fa": 95,
|
"fa": 94,
|
||||||
"fr": 95,
|
"fr": 94,
|
||||||
"hi": 2,
|
"hi": 2,
|
||||||
"it-IT": 95,
|
"it-IT": 94,
|
||||||
"it": 1,
|
"it": 1,
|
||||||
"ja": 95,
|
"ja": 94,
|
||||||
"ko": 60,
|
"ko": 60,
|
||||||
"pl": 95,
|
"pl": 94,
|
||||||
"pt-BR": 95,
|
"pt-BR": 94,
|
||||||
"ru": 95,
|
"ru": 94,
|
||||||
"sv-SE": 95,
|
"sv-SE": 94,
|
||||||
"uk": 95,
|
"uk": 94,
|
||||||
"ur": 2,
|
"ur": 2,
|
||||||
"zh-Hans": 95,
|
"zh-Hans": 94,
|
||||||
"zh-Hant": 95
|
"zh-Hant": 94
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6915,6 +6915,14 @@ export function useAFFiNEI18N(): {
|
|||||||
* `Select a specific date`
|
* `Select a specific date`
|
||||||
*/
|
*/
|
||||||
["com.affine.editor.at-menu.date-picker"](): string;
|
["com.affine.editor.at-menu.date-picker"](): string;
|
||||||
|
/**
|
||||||
|
* `Mention Member`
|
||||||
|
*/
|
||||||
|
["com.affine.editor.at-menu.mention-member"](): string;
|
||||||
|
/**
|
||||||
|
* `Successfully mentioned the member`
|
||||||
|
*/
|
||||||
|
["com.affine.editor.at-menu.mention-success"](): string;
|
||||||
/**
|
/**
|
||||||
* `Show`
|
* `Show`
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1717,6 +1717,8 @@
|
|||||||
"com.affine.editor.at-menu.more-docs-hint": "{{count}} more docs",
|
"com.affine.editor.at-menu.more-docs-hint": "{{count}} more docs",
|
||||||
"com.affine.editor.at-menu.journal": "Journal",
|
"com.affine.editor.at-menu.journal": "Journal",
|
||||||
"com.affine.editor.at-menu.date-picker": "Select a specific date",
|
"com.affine.editor.at-menu.date-picker": "Select a specific date",
|
||||||
|
"com.affine.editor.at-menu.mention-member": "Mention Member",
|
||||||
|
"com.affine.editor.at-menu.mention-success": "Successfully mentioned the member",
|
||||||
"com.affine.editor.bi-directional-link-panel.show": "Show",
|
"com.affine.editor.bi-directional-link-panel.show": "Show",
|
||||||
"com.affine.editor.bi-directional-link-panel.hide": "Hide",
|
"com.affine.editor.bi-directional-link-panel.hide": "Hide",
|
||||||
"com.affine.editor.edgeless-note-header.fold-page-block": "Fold page block",
|
"com.affine.editor.edgeless-note-header.fold-page-block": "Fold page block",
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ export const PackageList = [
|
|||||||
'blocksuite/affine/inlines/footnote',
|
'blocksuite/affine/inlines/footnote',
|
||||||
'blocksuite/affine/inlines/latex',
|
'blocksuite/affine/inlines/latex',
|
||||||
'blocksuite/affine/inlines/link',
|
'blocksuite/affine/inlines/link',
|
||||||
|
'blocksuite/affine/inlines/mention',
|
||||||
'blocksuite/affine/inlines/preset',
|
'blocksuite/affine/inlines/preset',
|
||||||
'blocksuite/affine/inlines/reference',
|
'blocksuite/affine/inlines/reference',
|
||||||
'blocksuite/affine/model',
|
'blocksuite/affine/model',
|
||||||
@@ -580,6 +581,18 @@ export const PackageList = [
|
|||||||
'blocksuite/framework/store',
|
'blocksuite/framework/store',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
location: 'blocksuite/affine/inlines/mention',
|
||||||
|
name: '@blocksuite/affine-inline-mention',
|
||||||
|
workspaceDependencies: [
|
||||||
|
'blocksuite/affine/components',
|
||||||
|
'blocksuite/affine/model',
|
||||||
|
'blocksuite/affine/shared',
|
||||||
|
'blocksuite/framework/block-std',
|
||||||
|
'blocksuite/framework/global',
|
||||||
|
'blocksuite/framework/store',
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
location: 'blocksuite/affine/inlines/preset',
|
location: 'blocksuite/affine/inlines/preset',
|
||||||
name: '@blocksuite/affine-inline-preset',
|
name: '@blocksuite/affine-inline-preset',
|
||||||
@@ -588,6 +601,7 @@ export const PackageList = [
|
|||||||
'blocksuite/affine/inlines/footnote',
|
'blocksuite/affine/inlines/footnote',
|
||||||
'blocksuite/affine/inlines/latex',
|
'blocksuite/affine/inlines/latex',
|
||||||
'blocksuite/affine/inlines/link',
|
'blocksuite/affine/inlines/link',
|
||||||
|
'blocksuite/affine/inlines/mention',
|
||||||
'blocksuite/affine/inlines/reference',
|
'blocksuite/affine/inlines/reference',
|
||||||
'blocksuite/affine/model',
|
'blocksuite/affine/model',
|
||||||
'blocksuite/affine/rich-text',
|
'blocksuite/affine/rich-text',
|
||||||
@@ -1123,6 +1137,7 @@ export type PackageName =
|
|||||||
| '@blocksuite/affine-inline-footnote'
|
| '@blocksuite/affine-inline-footnote'
|
||||||
| '@blocksuite/affine-inline-latex'
|
| '@blocksuite/affine-inline-latex'
|
||||||
| '@blocksuite/affine-inline-link'
|
| '@blocksuite/affine-inline-link'
|
||||||
|
| '@blocksuite/affine-inline-mention'
|
||||||
| '@blocksuite/affine-inline-preset'
|
| '@blocksuite/affine-inline-preset'
|
||||||
| '@blocksuite/affine-inline-reference'
|
| '@blocksuite/affine-inline-reference'
|
||||||
| '@blocksuite/affine-model'
|
| '@blocksuite/affine-model'
|
||||||
|
|||||||
@@ -84,6 +84,7 @@
|
|||||||
{ "path": "./blocksuite/affine/inlines/footnote" },
|
{ "path": "./blocksuite/affine/inlines/footnote" },
|
||||||
{ "path": "./blocksuite/affine/inlines/latex" },
|
{ "path": "./blocksuite/affine/inlines/latex" },
|
||||||
{ "path": "./blocksuite/affine/inlines/link" },
|
{ "path": "./blocksuite/affine/inlines/link" },
|
||||||
|
{ "path": "./blocksuite/affine/inlines/mention" },
|
||||||
{ "path": "./blocksuite/affine/inlines/preset" },
|
{ "path": "./blocksuite/affine/inlines/preset" },
|
||||||
{ "path": "./blocksuite/affine/inlines/reference" },
|
{ "path": "./blocksuite/affine/inlines/reference" },
|
||||||
{ "path": "./blocksuite/affine/model" },
|
{ "path": "./blocksuite/affine/model" },
|
||||||
|
|||||||
131
yarn.lock
131
yarn.lock
@@ -174,7 +174,7 @@ __metadata:
|
|||||||
"@affine/component": "workspace:*"
|
"@affine/component": "workspace:*"
|
||||||
"@affine/core": "workspace:*"
|
"@affine/core": "workspace:*"
|
||||||
"@affine/graphql": "workspace:*"
|
"@affine/graphql": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.4"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@radix-ui/react-accordion": "npm:^1.2.2"
|
"@radix-ui/react-accordion": "npm:^1.2.2"
|
||||||
"@radix-ui/react-alert-dialog": "npm:^1.1.3"
|
"@radix-ui/react-alert-dialog": "npm:^1.1.3"
|
||||||
"@radix-ui/react-aspect-ratio": "npm:^1.1.1"
|
"@radix-ui/react-aspect-ratio": "npm:^1.1.1"
|
||||||
@@ -240,7 +240,7 @@ __metadata:
|
|||||||
"@affine/i18n": "workspace:*"
|
"@affine/i18n": "workspace:*"
|
||||||
"@affine/nbstore": "workspace:*"
|
"@affine/nbstore": "workspace:*"
|
||||||
"@blocksuite/affine": "workspace:*"
|
"@blocksuite/affine": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@capacitor/android": "npm:^7.0.0"
|
"@capacitor/android": "npm:^7.0.0"
|
||||||
"@capacitor/app": "npm:^7.0.0"
|
"@capacitor/app": "npm:^7.0.0"
|
||||||
"@capacitor/cli": "npm:^7.0.0"
|
"@capacitor/cli": "npm:^7.0.0"
|
||||||
@@ -298,7 +298,7 @@ __metadata:
|
|||||||
"@atlaskit/pragmatic-drag-and-drop": "npm:^1.4.0"
|
"@atlaskit/pragmatic-drag-and-drop": "npm:^1.4.0"
|
||||||
"@atlaskit/pragmatic-drag-and-drop-hitbox": "npm:^1.0.3"
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "npm:^1.0.3"
|
||||||
"@blocksuite/affine": "workspace:*"
|
"@blocksuite/affine": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@chromatic-com/storybook": "npm:^3.2.2"
|
"@chromatic-com/storybook": "npm:^3.2.2"
|
||||||
"@emotion/react": "npm:^11.14.0"
|
"@emotion/react": "npm:^11.14.0"
|
||||||
"@emotion/styled": "npm:^11.14.0"
|
"@emotion/styled": "npm:^11.14.0"
|
||||||
@@ -386,7 +386,7 @@ __metadata:
|
|||||||
"@affine/templates": "workspace:*"
|
"@affine/templates": "workspace:*"
|
||||||
"@affine/track": "workspace:*"
|
"@affine/track": "workspace:*"
|
||||||
"@blocksuite/affine": "workspace:*"
|
"@blocksuite/affine": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@dotlottie/player-component": "npm:^2.7.12"
|
"@dotlottie/player-component": "npm:^2.7.12"
|
||||||
"@emotion/cache": "npm:^11.14.0"
|
"@emotion/cache": "npm:^11.14.0"
|
||||||
"@emotion/react": "npm:^11.14.0"
|
"@emotion/react": "npm:^11.14.0"
|
||||||
@@ -647,7 +647,7 @@ __metadata:
|
|||||||
"@affine/native": "workspace:*"
|
"@affine/native": "workspace:*"
|
||||||
"@affine/nbstore": "workspace:*"
|
"@affine/nbstore": "workspace:*"
|
||||||
"@blocksuite/affine": "workspace:*"
|
"@blocksuite/affine": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@capacitor/app": "npm:^7.0.0"
|
"@capacitor/app": "npm:^7.0.0"
|
||||||
"@capacitor/browser": "npm:^7.0.0"
|
"@capacitor/browser": "npm:^7.0.0"
|
||||||
"@capacitor/cli": "npm:^7.0.0"
|
"@capacitor/cli": "npm:^7.0.0"
|
||||||
@@ -716,7 +716,7 @@ __metadata:
|
|||||||
"@affine/i18n": "workspace:*"
|
"@affine/i18n": "workspace:*"
|
||||||
"@affine/nbstore": "workspace:*"
|
"@affine/nbstore": "workspace:*"
|
||||||
"@blocksuite/affine": "workspace:*"
|
"@blocksuite/affine": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@sentry/react": "npm:^9.2.0"
|
"@sentry/react": "npm:^9.2.0"
|
||||||
"@toeverything/infra": "workspace:*"
|
"@toeverything/infra": "workspace:*"
|
||||||
"@types/react": "npm:^19.0.1"
|
"@types/react": "npm:^19.0.1"
|
||||||
@@ -2315,7 +2315,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*"
|
"@blocksuite/affine-widget-slash-menu": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -2341,7 +2341,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*"
|
"@blocksuite/affine-widget-slash-menu": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
"@preact/signals-core": "npm:^1.8.0"
|
"@preact/signals-core": "npm:^1.8.0"
|
||||||
@@ -2366,7 +2366,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*"
|
"@blocksuite/affine-widget-slash-menu": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@emoji-mart/data": "npm:^1.2.1"
|
"@emoji-mart/data": "npm:^1.2.1"
|
||||||
"@floating-ui/dom": "npm:^1.6.10"
|
"@floating-ui/dom": "npm:^1.6.10"
|
||||||
@@ -2396,7 +2396,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*"
|
"@blocksuite/affine-widget-slash-menu": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -2423,7 +2423,7 @@ __metadata:
|
|||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/data-view": "workspace:*"
|
"@blocksuite/data-view": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -2452,7 +2452,7 @@ __metadata:
|
|||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/data-view": "workspace:*"
|
"@blocksuite/data-view": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -2504,7 +2504,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*"
|
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -2530,7 +2530,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*"
|
"@blocksuite/affine-widget-slash-menu": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -2559,7 +2559,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-widget-frame-title": "workspace:*"
|
"@blocksuite/affine-widget-frame-title": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -2586,7 +2586,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*"
|
"@blocksuite/affine-widget-slash-menu": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -2613,7 +2613,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*"
|
"@blocksuite/affine-widget-slash-menu": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -2641,7 +2641,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-shared": "workspace:*"
|
"@blocksuite/affine-shared": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -2671,7 +2671,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*"
|
"@blocksuite/affine-widget-slash-menu": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
"@preact/signals-core": "npm:^1.8.0"
|
"@preact/signals-core": "npm:^1.8.0"
|
||||||
@@ -2756,7 +2756,7 @@ __metadata:
|
|||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/data-view": "workspace:*"
|
"@blocksuite/data-view": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -2790,7 +2790,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-widget-slash-menu": "workspace:*"
|
"@blocksuite/affine-widget-slash-menu": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -2848,7 +2848,7 @@ __metadata:
|
|||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/data-view": "workspace:*"
|
"@blocksuite/data-view": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@preact/signals-core": "npm:^1.8.0"
|
"@preact/signals-core": "npm:^1.8.0"
|
||||||
@@ -2868,7 +2868,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-shared": "workspace:*"
|
"@blocksuite/affine-shared": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -2905,7 +2905,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-shared": "workspace:*"
|
"@blocksuite/affine-shared": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -2930,7 +2930,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-shared": "workspace:*"
|
"@blocksuite/affine-shared": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -2957,7 +2957,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-shared": "workspace:*"
|
"@blocksuite/affine-shared": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -2983,7 +2983,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*"
|
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
"@preact/signals-core": "npm:^1.8.0"
|
"@preact/signals-core": "npm:^1.8.0"
|
||||||
@@ -3014,7 +3014,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*"
|
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
"@preact/signals-core": "npm:^1.8.0"
|
"@preact/signals-core": "npm:^1.8.0"
|
||||||
@@ -3045,7 +3045,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*"
|
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
"@preact/signals-core": "npm:^1.8.0"
|
"@preact/signals-core": "npm:^1.8.0"
|
||||||
@@ -3073,7 +3073,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*"
|
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
"@preact/signals-core": "npm:^1.8.0"
|
"@preact/signals-core": "npm:^1.8.0"
|
||||||
@@ -3101,7 +3101,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*"
|
"@blocksuite/affine-widget-edgeless-toolbar": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
"@preact/signals-core": "npm:^1.8.0"
|
"@preact/signals-core": "npm:^1.8.0"
|
||||||
@@ -3139,7 +3139,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-shared": "workspace:*"
|
"@blocksuite/affine-shared": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -3168,7 +3168,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-shared": "workspace:*"
|
"@blocksuite/affine-shared": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -3201,7 +3201,34 @@ __metadata:
|
|||||||
"@blocksuite/affine-shared": "workspace:*"
|
"@blocksuite/affine-shared": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
|
"@blocksuite/store": "workspace:*"
|
||||||
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
|
"@lit/context": "npm:^1.1.2"
|
||||||
|
"@preact/signals-core": "npm:^1.8.0"
|
||||||
|
"@toeverything/theme": "npm:^1.1.12"
|
||||||
|
"@types/lodash-es": "npm:^4.17.12"
|
||||||
|
collapse-white-space: "npm:^2.1.0"
|
||||||
|
date-fns: "npm:^4.0.0"
|
||||||
|
lit: "npm:^3.2.0"
|
||||||
|
lit-html: "npm:^3.2.1"
|
||||||
|
lodash-es: "npm:^4.17.21"
|
||||||
|
rxjs: "npm:^7.8.1"
|
||||||
|
yjs: "npm:^13.6.21"
|
||||||
|
zod: "npm:^3.23.8"
|
||||||
|
languageName: unknown
|
||||||
|
linkType: soft
|
||||||
|
|
||||||
|
"@blocksuite/affine-inline-mention@workspace:*, @blocksuite/affine-inline-mention@workspace:blocksuite/affine/inlines/mention":
|
||||||
|
version: 0.0.0-use.local
|
||||||
|
resolution: "@blocksuite/affine-inline-mention@workspace:blocksuite/affine/inlines/mention"
|
||||||
|
dependencies:
|
||||||
|
"@blocksuite/affine-components": "workspace:*"
|
||||||
|
"@blocksuite/affine-model": "workspace:*"
|
||||||
|
"@blocksuite/affine-shared": "workspace:*"
|
||||||
|
"@blocksuite/block-std": "workspace:*"
|
||||||
|
"@blocksuite/global": "workspace:*"
|
||||||
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -3227,13 +3254,14 @@ __metadata:
|
|||||||
"@blocksuite/affine-inline-footnote": "workspace:*"
|
"@blocksuite/affine-inline-footnote": "workspace:*"
|
||||||
"@blocksuite/affine-inline-latex": "workspace:*"
|
"@blocksuite/affine-inline-latex": "workspace:*"
|
||||||
"@blocksuite/affine-inline-link": "workspace:*"
|
"@blocksuite/affine-inline-link": "workspace:*"
|
||||||
|
"@blocksuite/affine-inline-mention": "workspace:*"
|
||||||
"@blocksuite/affine-inline-reference": "workspace:*"
|
"@blocksuite/affine-inline-reference": "workspace:*"
|
||||||
"@blocksuite/affine-model": "workspace:*"
|
"@blocksuite/affine-model": "workspace:*"
|
||||||
"@blocksuite/affine-rich-text": "workspace:*"
|
"@blocksuite/affine-rich-text": "workspace:*"
|
||||||
"@blocksuite/affine-shared": "workspace:*"
|
"@blocksuite/affine-shared": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -3266,7 +3294,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-shared": "workspace:*"
|
"@blocksuite/affine-shared": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -3310,7 +3338,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-shared": "workspace:*"
|
"@blocksuite/affine-shared": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -3335,7 +3363,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-model": "workspace:*"
|
"@blocksuite/affine-model": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -3387,7 +3415,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-shared": "workspace:*"
|
"@blocksuite/affine-shared": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
@@ -3413,7 +3441,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-shared": "workspace:*"
|
"@blocksuite/affine-shared": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@preact/signals-core": "npm:^1.8.0"
|
"@preact/signals-core": "npm:^1.8.0"
|
||||||
"@toeverything/theme": "npm:^1.1.12"
|
"@toeverything/theme": "npm:^1.1.12"
|
||||||
lit: "npm:^3.2.0"
|
lit: "npm:^3.2.0"
|
||||||
@@ -3432,7 +3460,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-shared": "workspace:*"
|
"@blocksuite/affine-shared": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.2"
|
"@lit/context": "npm:^1.1.2"
|
||||||
"@preact/signals-core": "npm:^1.8.0"
|
"@preact/signals-core": "npm:^1.8.0"
|
||||||
@@ -3472,7 +3500,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-shared": "workspace:*"
|
"@blocksuite/affine-shared": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@preact/signals-core": "npm:^1.8.0"
|
"@preact/signals-core": "npm:^1.8.0"
|
||||||
"@toeverything/theme": "npm:^1.1.12"
|
"@toeverything/theme": "npm:^1.1.12"
|
||||||
"@types/lodash-es": "npm:^4.17.12"
|
"@types/lodash-es": "npm:^4.17.12"
|
||||||
@@ -3506,7 +3534,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-shared": "workspace:*"
|
"@blocksuite/affine-shared": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@preact/signals-core": "npm:^1.8.0"
|
"@preact/signals-core": "npm:^1.8.0"
|
||||||
@@ -3530,7 +3558,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-shared": "workspace:*"
|
"@blocksuite/affine-shared": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@preact/signals-core": "npm:^1.8.0"
|
"@preact/signals-core": "npm:^1.8.0"
|
||||||
"@toeverything/theme": "npm:^1.1.12"
|
"@toeverything/theme": "npm:^1.1.12"
|
||||||
@@ -3582,6 +3610,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-inline-footnote": "workspace:*"
|
"@blocksuite/affine-inline-footnote": "workspace:*"
|
||||||
"@blocksuite/affine-inline-latex": "workspace:*"
|
"@blocksuite/affine-inline-latex": "workspace:*"
|
||||||
"@blocksuite/affine-inline-link": "workspace:*"
|
"@blocksuite/affine-inline-link": "workspace:*"
|
||||||
|
"@blocksuite/affine-inline-mention": "workspace:*"
|
||||||
"@blocksuite/affine-inline-preset": "workspace:*"
|
"@blocksuite/affine-inline-preset": "workspace:*"
|
||||||
"@blocksuite/affine-inline-reference": "workspace:*"
|
"@blocksuite/affine-inline-reference": "workspace:*"
|
||||||
"@blocksuite/affine-model": "workspace:*"
|
"@blocksuite/affine-model": "workspace:*"
|
||||||
@@ -3653,7 +3682,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-shared": "workspace:*"
|
"@blocksuite/affine-shared": "workspace:*"
|
||||||
"@blocksuite/block-std": "workspace:*"
|
"@blocksuite/block-std": "workspace:*"
|
||||||
"@blocksuite/global": "workspace:*"
|
"@blocksuite/global": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/store": "workspace:*"
|
"@blocksuite/store": "workspace:*"
|
||||||
"@emotion/hash": "npm:^0.9.2"
|
"@emotion/hash": "npm:^0.9.2"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
@@ -3684,9 +3713,9 @@ __metadata:
|
|||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
"@blocksuite/icons@npm:^2.2.4, @blocksuite/icons@npm:^2.2.6":
|
"@blocksuite/icons@npm:^2.2.8":
|
||||||
version: 2.2.6
|
version: 2.2.8
|
||||||
resolution: "@blocksuite/icons@npm:2.2.6"
|
resolution: "@blocksuite/icons@npm:2.2.8"
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
"@types/react": ^18.0.25
|
"@types/react": ^18.0.25
|
||||||
change-case: 4.1.2
|
change-case: 4.1.2
|
||||||
@@ -3697,7 +3726,7 @@ __metadata:
|
|||||||
optional: true
|
optional: true
|
||||||
react:
|
react:
|
||||||
optional: true
|
optional: true
|
||||||
checksum: 10/6ab9de7a0e39d4e3c0712134403dc2fcb9df07086afe1808574e72319ca5443ec58bc7ad68ee3db7cff0581ce435d0d00cc21874811c7a7735516dc16ec008ae
|
checksum: 10/0b5a80c67cd5c5896406948de95f60c825453598ff8f17de2ff2b6c8784a8ba8e23bd0c39f5461d87ff46e13883714db31bbfcff4215062b730039cc141a8c6a
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@@ -3706,7 +3735,7 @@ __metadata:
|
|||||||
resolution: "@blocksuite/integration-test@workspace:blocksuite/integration-test"
|
resolution: "@blocksuite/integration-test@workspace:blocksuite/integration-test"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@blocksuite/affine": "workspace:*"
|
"@blocksuite/affine": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@floating-ui/dom": "npm:^1.6.13"
|
"@floating-ui/dom": "npm:^1.6.13"
|
||||||
"@lit/context": "npm:^1.1.3"
|
"@lit/context": "npm:^1.1.3"
|
||||||
"@lottiefiles/dotlottie-wc": "npm:^0.4.0"
|
"@lottiefiles/dotlottie-wc": "npm:^0.4.0"
|
||||||
@@ -3734,7 +3763,7 @@ __metadata:
|
|||||||
"@blocksuite/affine-model": "workspace:*"
|
"@blocksuite/affine-model": "workspace:*"
|
||||||
"@blocksuite/affine-shared": "workspace:*"
|
"@blocksuite/affine-shared": "workspace:*"
|
||||||
"@blocksuite/data-view": "workspace:*"
|
"@blocksuite/data-view": "workspace:*"
|
||||||
"@blocksuite/icons": "npm:^2.2.6"
|
"@blocksuite/icons": "npm:^2.2.8"
|
||||||
"@blocksuite/integration-test": "workspace:*"
|
"@blocksuite/integration-test": "workspace:*"
|
||||||
"@preact/signals-core": "npm:^1.8.0"
|
"@preact/signals-core": "npm:^1.8.0"
|
||||||
"@shoelace-style/shoelace": "npm:2.20.1"
|
"@shoelace-style/shoelace": "npm:2.20.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user