UNPKG

@atlaskit/editor-plugin-list

Version:

List plugin for @atlaskit/editor-core

12 lines 453 B
export const RESTART_LISTS_ANALYTICS_KEY = 'restartListsAnalytics'; export const getRestartListsAttributes = tr => { var _tr$getMeta; return (_tr$getMeta = tr.getMeta(RESTART_LISTS_ANALYTICS_KEY)) !== null && _tr$getMeta !== void 0 ? _tr$getMeta : {}; }; export const storeRestartListsAttributes = (tr, attributes) => { const meta = getRestartListsAttributes(tr); tr.setMeta(RESTART_LISTS_ANALYTICS_KEY, { ...meta, ...attributes }); };