fix(deps): update dependency react-frame-component to v5.2.4 (#253)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Lautzenheiser <lautzd@gmail.com>
This commit is contained in:
parent
ae04ef9b89
commit
f35d7f8777
@ -123,7 +123,7 @@
|
||||
"react-dnd": "16.0.1",
|
||||
"react-dnd-html5-backend": "16.0.1",
|
||||
"react-dom": "18.2.0",
|
||||
"react-frame-component": "5.2.3",
|
||||
"react-frame-component": "5.2.4",
|
||||
"react-is": "18.2.0",
|
||||
"react-polyglot": "0.7.2",
|
||||
"react-redux": "8.0.5",
|
||||
|
@ -104,10 +104,10 @@ const CodeBlockElement: FC<PlateRenderElementProps<MdValue, MdCodeBlockElement>>
|
||||
);
|
||||
|
||||
const [height, setHeight] = useState(24);
|
||||
const iframeRef = useRef<Frame & HTMLIFrameElement>();
|
||||
const iframeRef = useRef<typeof Frame & HTMLIFrameElement>();
|
||||
|
||||
const handleResize = useCallback(
|
||||
(iframe: MutableRefObject<(Frame & HTMLIFrameElement) | undefined>) => {
|
||||
(iframe: MutableRefObject<(typeof Frame & HTMLIFrameElement) | undefined>) => {
|
||||
const height = iframe.current?.contentDocument?.body?.scrollHeight ?? 0;
|
||||
if (height !== 0) {
|
||||
setHeight(height);
|
||||
@ -140,7 +140,7 @@ const CodeBlockElement: FC<PlateRenderElementProps<MdValue, MdCodeBlockElement>>
|
||||
<Frame
|
||||
key={`code-frame-${id}`}
|
||||
id={id}
|
||||
ref={iframeRef as RefObject<Frame> & RefObject<HTMLIFrameElement>}
|
||||
ref={iframeRef as RefObject<typeof Frame> & RefObject<HTMLIFrameElement>}
|
||||
style={{
|
||||
border: 'none',
|
||||
width: '100%',
|
||||
|
@ -13243,10 +13243,10 @@ react-dom@18.2.0:
|
||||
loose-envify "^1.1.0"
|
||||
scheduler "^0.23.0"
|
||||
|
||||
react-frame-component@5.2.3:
|
||||
version "5.2.3"
|
||||
resolved "https://registry.yarnpkg.com/react-frame-component/-/react-frame-component-5.2.3.tgz#2d5d1e29b23d5b915c839b44980d03bb9cafc453"
|
||||
integrity sha512-r+h0o3r/uqOLNT724z4CRVkxQouKJvoi3OPfjqWACD30Y87rtEmeJrNZf1WYPGknn1Y8200HAjx7hY/dPUGgmA==
|
||||
react-frame-component@5.2.4:
|
||||
version "5.2.4"
|
||||
resolved "https://registry.yarnpkg.com/react-frame-component/-/react-frame-component-5.2.4.tgz#8282849fe0eb315fb30b00c67e5e979f8f63c01a"
|
||||
integrity sha512-4xpZFcLNS6LCEYSlWgsUy81v7LjdgbvB0VHIq7sNSD25PK+e5YYCrdy5557ebGwNLKNLEpYVfAkT3pVzFLPb1g==
|
||||
|
||||
react-hotkeys-hook@^3.4.6:
|
||||
version "3.4.7"
|
||||
|
Loading…
x
Reference in New Issue
Block a user