UNPKG

@atlaskit/editor-plugin-annotation

Version:

Annotation plugin for @atlaskit/editor-core

25 lines (23 loc) 921 B
/** * type of target that annotation apply to. * This is used to apply correct decoration to a draft comment */ /** * The source of draft comment being created */ export let AnnotationSelectionType = /*#__PURE__*/function (AnnotationSelectionType) { AnnotationSelectionType["INVALID"] = "invalid"; // Annotation should not be created, toolbar should not be shown AnnotationSelectionType["DISABLED"] = "disabled"; // Annotation should not be created, toolbar should be shown, but disabled AnnotationSelectionType["VALID"] = "valid"; // Annotation can be created return AnnotationSelectionType; }({}); const prefix = 'ak-editor-annotation'; export const AnnotationTestIds = { prefix, floatingComponent: `${prefix}-floating-component`, floatingToolbarCreateButton: `${prefix}-toolbar-create-button`, componentSave: `${prefix}-dummy-save-button`, componentClose: `${prefix}-dummy-close-button` };