mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-26 10:45:57 +08:00
feat(core): add chat-panel track (#11323)
Close [AF-2434](https://linear.app/affine-design/issue/AF-2434).
This commit is contained in:
@@ -132,6 +132,10 @@ type PaymentEvents =
|
||||
| 'confirmResumingSubscription';
|
||||
// END SECTION
|
||||
|
||||
// SECTION: ai
|
||||
type AIEvents = 'addEmbeddingDoc';
|
||||
// END SECTION
|
||||
|
||||
// SECTION: attachment
|
||||
type AttachmentEvents =
|
||||
| 'openAttachmentInFullscreen'
|
||||
@@ -177,6 +181,7 @@ type UserEvents =
|
||||
| AccountEvents
|
||||
| PaymentEvents
|
||||
| DNDEvents
|
||||
| AIEvents
|
||||
| AttachmentEvents
|
||||
| TemplateEvents
|
||||
| NotificationEvents
|
||||
@@ -362,6 +367,9 @@ const PageEvents = {
|
||||
importModal: ['open'],
|
||||
snapshot: ['import', 'export'],
|
||||
},
|
||||
chatPanel: {
|
||||
chatPanelInput: ['addEmbeddingDoc'],
|
||||
},
|
||||
attachment: {
|
||||
$: [
|
||||
'openAttachmentInFullscreen',
|
||||
@@ -567,6 +575,11 @@ export type EventArgs = {
|
||||
linkDoc: { type: string; journal: boolean };
|
||||
drop: { type: string };
|
||||
dragStart: { type: string };
|
||||
addEmbeddingDoc: {
|
||||
type?: 'page' | 'edgeless';
|
||||
control: 'addButton' | 'atMenu';
|
||||
method: 'doc' | 'file' | 'tags' | 'collections' | 'suggestion';
|
||||
};
|
||||
openAttachmentInFullscreen: AttachmentEventArgs;
|
||||
openAttachmentInNewTab: AttachmentEventArgs;
|
||||
openAttachmentInPeekView: AttachmentEventArgs;
|
||||
|
||||
Reference in New Issue
Block a user