UNPKG

@atlaskit/editor-common

Version:

A package that contains common classes and components for editor and renderer

8 lines (7 loc) 369 B
// Used to store the state of the new single player expand node export const expandedState = new WeakMap(); // used to determine if the expand is expanded or collapsed export const isExpandCollapsed = node => { var _expandedState$get; return (_expandedState$get = !expandedState.get(node)) !== null && _expandedState$get !== void 0 ? _expandedState$get : false; };