@udecode/plate-mention-ui
Advanced tools
Comparing version 3.0.1 to 3.1.0
# @udecode/plate-mention-ui | ||
## 3.1.0 | ||
### Minor Changes | ||
- [#980](https://github.com/udecode/plate/pull/980) [`2c46e814`](https://github.com/udecode/plate/commit/2c46e8148b22fdb1170e580ce101ce301cc2e088) Thanks [@cungminh2710](https://github.com/cungminh2710)! - `MentionSelect` – New prop: `portalElement` used to customize the `Portal` container | ||
### Patch Changes | ||
- Updated dependencies [[`03f2acdd`](https://github.com/udecode/plate/commit/03f2acdd1b34d1e4e574bcf296ae5b4796930c9a)]: | ||
- @udecode/plate-styled-components@3.1.0 | ||
## 3.0.1 | ||
@@ -4,0 +15,0 @@ |
@@ -87,2 +87,3 @@ import { createStyles, PortalBody } from '@udecode/plate-styled-components'; | ||
onClickMention, | ||
portalElement, | ||
renderLabel = mentionable => mentionable.value | ||
@@ -111,2 +112,3 @@ } = props; | ||
return /*#__PURE__*/jsx(PortalBody, { | ||
element: portalElement, | ||
children: /*#__PURE__*/jsx(_StyledDiv, { | ||
@@ -113,0 +115,0 @@ ref: ref, |
@@ -95,2 +95,3 @@ 'use strict'; | ||
onClickMention, | ||
portalElement, | ||
renderLabel = mentionable => mentionable.value | ||
@@ -119,2 +120,3 @@ } = props; | ||
return /*#__PURE__*/jsxRuntime.jsx(plateStyledComponents.PortalBody, { | ||
element: portalElement, | ||
children: /*#__PURE__*/jsxRuntime.jsx(_StyledDiv, { | ||
@@ -121,0 +123,0 @@ ref: ref, |
@@ -10,3 +10,4 @@ import { GetMentionSelectProps, MentionNodeData } from '@udecode/plate-mention'; | ||
renderLabel?: (mentionable: MentionNodeData) => string; | ||
portalElement?: Element; | ||
} | ||
//# sourceMappingURL=MentionSelect.types.d.ts.map |
{ | ||
"name": "@udecode/plate-mention-ui", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "Media embed UI for Plate", | ||
@@ -38,3 +38,3 @@ "keywords": [ | ||
"@udecode/plate-mention": "2.0.0", | ||
"@udecode/plate-styled-components": "3.0.1" | ||
"@udecode/plate-styled-components": "3.1.0" | ||
}, | ||
@@ -41,0 +41,0 @@ "peerDependencies": { |
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
Sorry, the diff of this file is not supported yet
43402
325
+ Added@udecode/plate-styled-components@3.1.0(transitive)
- Removed@udecode/plate-styled-components@3.0.1(transitive)