@atlaskit/editor-plugin-paste-options-toolbar
Version:
Paste options toolbar for @atlaskit/editor-core
19 lines (17 loc) • 948 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.firePaste3pLinkActionsMenuExperimentExposure = void 0;
var _expVal = require("@atlaskit/tmp-editor-statsig/expVal");
var _isNotSingleLink = require("../utils/paste-menu-rules/isNotSingleLink");
// Remove this file when experiment `confluence_editor_paste_3p_link_actions_menu` is cleaned up.
// Manual exposure for `confluence_editor_paste_3p_link_actions_menu`. The menu only
// appears for single-link pastes, so fire the exposure in that case alone to avoid
// exposing users who would never see the experiment.
var firePaste3pLinkActionsMenuExperimentExposure = exports.firePaste3pLinkActionsMenuExperimentExposure = function firePaste3pLinkActionsMenuExperimentExposure(pastedSlice) {
if ((0, _isNotSingleLink.isNotSingleLink)(pastedSlice)) {
return;
}
(0, _expVal.expVal)('confluence_editor_paste_3p_link_actions_menu', 'isEnabled', false);
};