UNPKG

@atlaskit/editor-plugin-annotation

Version:

Annotation plugin for @atlaskit/editor-core

12 lines 818 B
export const setUserIntent = (api, tr) => { var _api$userIntent, _api$userIntent$comma; return api === null || api === void 0 ? void 0 : (_api$userIntent = api.userIntent) === null || _api$userIntent === void 0 ? void 0 : (_api$userIntent$comma = _api$userIntent.commands) === null || _api$userIntent$comma === void 0 ? void 0 : _api$userIntent$comma.setCurrentUserIntent('commenting')({ tr }); }; export const resetUserIntent = (api, tr) => { var _api$userIntent2, _api$userIntent2$comm; return api === null || api === void 0 ? void 0 : (_api$userIntent2 = api.userIntent) === null || _api$userIntent2 === void 0 ? void 0 : (_api$userIntent2$comm = _api$userIntent2.commands) === null || _api$userIntent2$comm === void 0 ? void 0 : _api$userIntent2$comm.setCurrentUserIntent('default')({ tr }); };