Move image zooming back to unvendorized lib (#6980)

* Move image zooming back to unvendorized lib

* refactor

* perf: Avoid mounting zoom dialog until interacted

* Add captions to lightbox

* lightbox
This commit is contained in:
Tom Moor
2024-06-03 20:26:25 -04:00
committed by GitHub
parent 62ebba1c32
commit 23606dad1d
15 changed files with 207 additions and 1260 deletions

View File

@@ -1,13 +1,13 @@
import * as React from "react";
import Frame from "../components/Frame";
import ImageZoom from "../components/ImageZoom";
import { ImageZoom } from "../components/ImageZoom";
import { EmbedProps as Props } from ".";
function InVision({ matches, ...props }: Props) {
if (/opal\.invisionapp\.com/.test(props.attrs.href)) {
return (
<div className={props.isSelected ? "ProseMirror-selectednode" : ""}>
<ImageZoom zoomMargin={24}>
<ImageZoom>
<img
src={props.attrs.href}
alt="InVision Embed"