feat(core): add track events for editor header (#7661)

close AF-1054
This commit is contained in:
JimmFly
2024-08-07 05:52:40 +00:00
parent b5e543c406
commit 74025fc85e
12 changed files with 125 additions and 19 deletions

View File

@@ -26,7 +26,7 @@ async function exportHandler({ page, type }: ExportHandlerOptions) {
if (editorRoot) {
pageService = editorRoot.spec.getService<PageRootService>('affine:page');
}
track.$.header.share.export({
track.$.sharePanel.$.export({
type,
});
switch (type) {

View File

@@ -68,7 +68,7 @@ export const useSharingUrl = ({
.catch(err => {
console.error(err);
});
track.$.header.share.copyShareLink({
track.$.sharePanel.$.copyShareLink({
type: urlType === 'share' ? 'public' : 'private',
});
} else {