@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
21 lines (20 loc) • 1.01 kB
TypeScript
import { EDITOR_APPEARANCE_CONTEXT } from '@atlaskit/analytics-namespaced-context/FabricEditorAnalyticsContext';
import type { Selection } from '@atlaskit/editor-prosemirror/state';
export declare const getAnalyticsAppearance: (appearance?: string) => EDITOR_APPEARANCE_CONTEXT | undefined;
export declare const getAnalyticsEditorAppearance: (editorAppearance?: string) => string;
export declare const getAnalyticsEventSeverity: (duration: number, normalThreshold: number, degradedThreshold: number) => SEVERITY;
export declare function findInsertLocation(selection: Selection): string;
export declare enum SEVERITY {
NORMAL = "normal",
DEGRADED = "degraded",
BLOCKING = "blocking"
}
export declare const analyticsEventKey = "EDITOR_ANALYTICS_EVENT";
declare const EDITOR_BREAKPOINT_WIDTH: {
S: number;
M: number;
L: number;
};
export type EditorBreakpointKey = keyof typeof EDITOR_BREAKPOINT_WIDTH;
export declare const getBreakpointKey: (width: number) => EditorBreakpointKey;
export {};