{"version":3,"sources":["isolated-container/isolated-container.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;GAIG;AACH,qBAAa,iBAAkB,SAAQ,KAAK,CAAC,SAAS;IAClD,OAAO,CAAC,OAAO,CAAiB;IAEhC,qBAAqB;IAIrB,MAAM;IASN;;OAEG;IACI,OAAO;CAGjB;AAED,eAAe,iBAAiB,CAAC","file":"isolated-container.d.ts","sourcesContent":["/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n\nimport React from 'react';\n\n/**\n * Изолирует своих детей от изменений `props`-ов, и `context`-а.\n * Используется для визуализации элементов в кастомных контейнерах,\n * о которых React не должен ничего знать.\n */\nexport class IsolatedContainer extends React.Component {\n    private element: HTMLDivElement;\n\n    shouldComponentUpdate() {\n        return false;\n    }\n\n    render() {\n        return (\n            <div ref={ (element) => {\n                this.element = element;\n            } }\n            />\n        );\n    }\n\n    /**\n     * Возвращает корневой `HTMLElement` компонента.\n     */\n    public getNode() {\n        return this.element;\n    }\n}\n\nexport default IsolatedContainer;\n"]}