UNPKG

@atlaskit/editor-plugin-interactivity

Version:

Interactivity plugin for @atlaskit/editor-core

11 lines (10 loc) • 637 B
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api'; import type { SnapshotSendHints } from '@atlaskit/inp-collector/types'; import type { InteractivityEventAttributes } from './interactivity-event-attributes'; /** * Sends a snapshot's attributes 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, attributes: InteractivityEventAttributes, { immediate }: SnapshotSendHints): void;