mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-24 18:02:47 +08:00
chore(editor): add event track for html preview (#12592)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced tracking for code block interactions, including language selection and preview toggling. - Improved error reporting for HTML block preview failures, providing better visibility into issues. - **Bug Fixes** - Added explicit feedback and tracking when cross-origin isolation is not supported during code block preview setup. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -57,7 +57,8 @@ type DocEvents =
|
||||
| 'addProperty'
|
||||
| 'editDisplayMenu'
|
||||
| 'navigateAllDocsRouter'
|
||||
| 'navigatePinedCollectionRouter';
|
||||
| 'navigatePinedCollectionRouter'
|
||||
| 'htmlBlockPreviewFailed';
|
||||
type EditorEvents =
|
||||
| 'bold'
|
||||
| 'italic'
|
||||
@@ -463,6 +464,7 @@ interface PageEvents extends PageDivision {
|
||||
aiActions: ['requestSignIn'];
|
||||
starterBar: ['quickStart', 'openTemplateListMenu'];
|
||||
audioBlock: ['transcribeRecording', 'openTranscribeNotes'];
|
||||
codeBlock: ['htmlBlockPreviewFailed'];
|
||||
};
|
||||
inlineDocInfo: {
|
||||
$: ['toggle'];
|
||||
@@ -765,6 +767,9 @@ export type EventArgs = {
|
||||
mentionMember: {
|
||||
type: 'member' | 'invite' | 'more';
|
||||
};
|
||||
htmlBlockPreviewFailed: {
|
||||
type: string;
|
||||
};
|
||||
noAccessPrompted: {};
|
||||
loadDoc: {
|
||||
workspaceId: string;
|
||||
|
||||
Reference in New Issue
Block a user