@udecode/plate-styled-components
Advanced tools
Comparing version 3.0.1 to 3.1.0
# @udecode/plate-styled-components | ||
## 3.1.0 | ||
### Minor Changes | ||
- [#980](https://github.com/udecode/plate/pull/980) [`03f2acdd`](https://github.com/udecode/plate/commit/03f2acdd1b34d1e4e574bcf296ae5b4796930c9a) Thanks [@cungminh2710](https://github.com/cungminh2710)! - `PortalBody` – New prop `element`: Allow to be mounted on a custom container. Using `document.body` can conflict with other portals with the same container. | ||
## 3.0.1 | ||
@@ -4,0 +10,0 @@ |
@@ -8,4 +8,5 @@ import * as ReactDOM from 'react-dom'; | ||
const PortalBody = ({ | ||
children | ||
}) => /*#__PURE__*/ReactDOM.createPortal(children, document.body); | ||
children, | ||
element | ||
}) => /*#__PURE__*/ReactDOM.createPortal(children, element || document.body); | ||
@@ -12,0 +13,0 @@ /** |
@@ -38,4 +38,5 @@ 'use strict'; | ||
const PortalBody = ({ | ||
children | ||
}) => /*#__PURE__*/ReactDOM__namespace.createPortal(children, document.body); | ||
children, | ||
element | ||
}) => /*#__PURE__*/ReactDOM__namespace.createPortal(children, element || document.body); | ||
@@ -42,0 +43,0 @@ /** |
import { ReactPortal } from 'react'; | ||
export declare const PortalBody: ({ children }: any) => ReactPortal; | ||
import { PortalBodyProps } from './PortalBody.types'; | ||
export declare const PortalBody: ({ children, element, }: PortalBodyProps) => ReactPortal; | ||
//# sourceMappingURL=PortalBody.d.ts.map |
{ | ||
"name": "@udecode/plate-styled-components", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "Standard UI for Plate", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
51629
45
570