@atlaskit/editor-plugin-annotation
Version:
Annotation plugin for @atlaskit/editor-core
25 lines (24 loc) • 912 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getBlockAnnotationViewClassname = exports.getAnnotationViewClassname = void 0;
var _styles = require("@atlaskit/editor-common/styles");
var getAnnotationViewClassname = exports.getAnnotationViewClassname = function getAnnotationViewClassname(isUnresolved, hasFocus, isHovered) {
if (!isUnresolved) {
return;
}
if (hasFocus) {
return _styles.AnnotationSharedClassNames.focus;
}
if (isHovered) {
return _styles.AnnotationSharedClassNames.hover;
}
return _styles.AnnotationSharedClassNames.blur;
};
var getBlockAnnotationViewClassname = exports.getBlockAnnotationViewClassname = function getBlockAnnotationViewClassname(isUnresolved, hasFocus) {
if (!isUnresolved) {
return;
}
return hasFocus ? _styles.BlockAnnotationSharedClassNames.focus : _styles.BlockAnnotationSharedClassNames.blur;
};