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:
renovate[bot] 2022-12-22 10:45:00 -05:00 committed by GitHub
parent ae04ef9b89
commit f35d7f8777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View File

@ -123,7 +123,7 @@
"react-dnd": "16.0.1", "react-dnd": "16.0.1",
"react-dnd-html5-backend": "16.0.1", "react-dnd-html5-backend": "16.0.1",
"react-dom": "18.2.0", "react-dom": "18.2.0",
"react-frame-component": "5.2.3", "react-frame-component": "5.2.4",
"react-is": "18.2.0", "react-is": "18.2.0",
"react-polyglot": "0.7.2", "react-polyglot": "0.7.2",
"react-redux": "8.0.5", "react-redux": "8.0.5",

View File

@ -104,10 +104,10 @@ const CodeBlockElement: FC<PlateRenderElementProps<MdValue, MdCodeBlockElement>>
); );
const [height, setHeight] = useState(24); const [height, setHeight] = useState(24);
const iframeRef = useRef<Frame & HTMLIFrameElement>(); const iframeRef = useRef<typeof Frame & HTMLIFrameElement>();
const handleResize = useCallback( const handleResize = useCallback(
(iframe: MutableRefObject<(Frame & HTMLIFrameElement) | undefined>) => { (iframe: MutableRefObject<(typeof Frame & HTMLIFrameElement) | undefined>) => {
const height = iframe.current?.contentDocument?.body?.scrollHeight ?? 0; const height = iframe.current?.contentDocument?.body?.scrollHeight ?? 0;
if (height !== 0) { if (height !== 0) {
setHeight(height); setHeight(height);
@ -140,7 +140,7 @@ const CodeBlockElement: FC<PlateRenderElementProps<MdValue, MdCodeBlockElement>>
<Frame <Frame
key={`code-frame-${id}`} key={`code-frame-${id}`}
id={id} id={id}
ref={iframeRef as RefObject<Frame> & RefObject<HTMLIFrameElement>} ref={iframeRef as RefObject<typeof Frame> & RefObject<HTMLIFrameElement>}
style={{ style={{
border: 'none', border: 'none',
width: '100%', width: '100%',

View File

@ -13243,10 +13243,10 @@ react-dom@18.2.0:
loose-envify "^1.1.0" loose-envify "^1.1.0"
scheduler "^0.23.0" scheduler "^0.23.0"
react-frame-component@5.2.3: react-frame-component@5.2.4:
version "5.2.3" version "5.2.4"
resolved "https://registry.yarnpkg.com/react-frame-component/-/react-frame-component-5.2.3.tgz#2d5d1e29b23d5b915c839b44980d03bb9cafc453" resolved "https://registry.yarnpkg.com/react-frame-component/-/react-frame-component-5.2.4.tgz#8282849fe0eb315fb30b00c67e5e979f8f63c01a"
integrity sha512-r+h0o3r/uqOLNT724z4CRVkxQouKJvoi3OPfjqWACD30Y87rtEmeJrNZf1WYPGknn1Y8200HAjx7hY/dPUGgmA== integrity sha512-4xpZFcLNS6LCEYSlWgsUy81v7LjdgbvB0VHIq7sNSD25PK+e5YYCrdy5557ebGwNLKNLEpYVfAkT3pVzFLPb1g==
react-hotkeys-hook@^3.4.6: react-hotkeys-hook@^3.4.6:
version "3.4.7" version "3.4.7"