UNPKG

@atlaskit/editor-common

Version:

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

14 lines (12 loc) 568 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isExpandCollapsed = exports.expandedState = void 0; // Used to store the state of the new single player expand node var expandedState = exports.expandedState = new WeakMap(); // used to determine if the expand is expanded or collapsed var isExpandCollapsed = exports.isExpandCollapsed = function isExpandCollapsed(node) { var _expandedState$get; return (_expandedState$get = !expandedState.get(node)) !== null && _expandedState$get !== void 0 ? _expandedState$get : false; };