@atlaskit/editor-plugin-interactivity
Version:
Interactivity plugin for @atlaskit/editor-core
10 lines (9 loc) • 494 B
TypeScript
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
import type { InteractivitySnapshot } from './interactivity-snapshot';
/**
* Sends a snapshot as the `editor interactivity` event.
*
* Does nothing without the analytics plugin: an editor without it has nowhere to send events,
* and the collector keeps measuring either way.
*/
export declare function fireInteractivityEvent(analytics: EditorAnalyticsAPI | undefined, snapshot: InteractivitySnapshot): void;