@atlaskit/editor-plugin-media
Version:
Media plugin for @atlaskit/editor-core
16 lines (15 loc) • 689 B
TypeScript
/**
* Enrols the user and returns whether they are in the test cohort.
*
* Called only from the dropzone's drag-enter and drop callbacks, which fire exclusively for
* accepted external file interactions, so both cohorts enrol at the same point.
*/
export declare const exposeMediaDropPosition: () => boolean;
/**
* Returns whether the user is in the test cohort without enrolling them.
*
* Used by the render, transaction and decoration paths, which run for every editor user on
* every transaction and would otherwise enrol people who never drag a file. Enrolment happens
* in {@link exposeMediaDropPosition}.
*/
export declare const isMediaDropPositionEnabled: () => boolean;