@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
22 lines (21 loc) • 1.26 kB
TypeScript
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from './types/enums';
import type { AnalyticsEventPayload } from './types/events';
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 | ACTION_SUBJECT_ID.HOVER_LABEL;
export declare const buildVisitedLinkPayload: (type: LinkType) => AnalyticsEventPayload;
export declare const buildVisitedNonHyperLinkPayload: (type: LinkType, inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.BUTTON | INPUT_METHOD.DOUBLE_CLICK | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.META_CLICK, resolvedAttributes?: {
displayCategory?: string | null;
extensionKey?: string | null;
status?: string | null;
statusDetails?: string | null;
}) => 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;
};