mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-16 05:47:09 +08:00
chore(editor): add telemetry track to display mode of note (#10192)
Close [BS-2468](https://linear.app/affine-design/issue/BS-2468/analytics-for-page-block-polish)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import type { TelemetryEvent } from './types.js';
|
||||
|
||||
export type NoteEventType = 'NoteDisplayModeChanged';
|
||||
|
||||
export type NoteEvents = {
|
||||
NoteDisplayModeChanged: TelemetryEvent & {
|
||||
control: 'display mode';
|
||||
type: 'note';
|
||||
};
|
||||
};
|
||||
@@ -2,6 +2,7 @@ import { createIdentifier } from '@blocksuite/global/di';
|
||||
|
||||
import type { OutDatabaseAllEvents } from './database.js';
|
||||
import type { LinkToolbarEvents } from './link.js';
|
||||
import type { NoteEvents } from './note.js';
|
||||
import type {
|
||||
AttachmentUploadedEvent,
|
||||
DocCreatedEvent,
|
||||
@@ -13,7 +14,8 @@ import type {
|
||||
} from './types.js';
|
||||
|
||||
export type TelemetryEventMap = OutDatabaseAllEvents &
|
||||
LinkToolbarEvents & {
|
||||
LinkToolbarEvents &
|
||||
NoteEvents & {
|
||||
DocCreated: DocCreatedEvent;
|
||||
Link: TelemetryEvent;
|
||||
LinkedDocCreated: LinkedDocCreatedEvent;
|
||||
|
||||
Reference in New Issue
Block a user