UNPKG

@atlaskit/editor-common

Version:

A package that contains common classes and components for editor and renderer

16 lines (15 loc) 825 B
import type { AnalyticsEventPayload } from './types'; import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from './types'; export declare const buildEditLinkPayload: (type: LinkType) => AnalyticsEventPayload; export type LinkType = ACTION_SUBJECT_ID.CARD_INLINE | ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.EMBEDS | ACTION_SUBJECT_ID.HYPERLINK; export declare const buildVisitedLinkPayload: (type: LinkType) => AnalyticsEventPayload; export declare const buildOpenedSettingsPayload: (type: LinkType) => AnalyticsEventPayload; export declare const unlinkPayload: (type: LinkType) => { action: ACTION; actionSubject: ACTION_SUBJECT; actionSubjectId: ACTION_SUBJECT_ID.CARD_INLINE | undefined; attributes: { inputMethod: INPUT_METHOD; }; eventType: EVENT_TYPE; };