🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@udecode/plate-styled-components

Package Overview
Dependencies
Maintainers
2
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@udecode/plate-styled-components - npm Package Compare versions

Comparing version

to
3.1.0

dist/PortalBody/PortalBody.types.d.ts

6

CHANGELOG.md
# @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 @@

5

dist/index.es.js

@@ -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 @@ /**

3

dist/PortalBody/PortalBody.d.ts
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