rme 0.3.0-beta.7 → 0.3.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +32 -33
- package/dist/index.mjs.map +3 -3
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -895,6 +895,7 @@ var WysiwygThemeWrapper = styled.div.attrs((p) => ({
|
|
|
895
895
|
height: min-content;
|
|
896
896
|
display: inline-block;
|
|
897
897
|
font-size: 16px;
|
|
898
|
+
line-height: ${(props) => props.rootLineHeight};
|
|
898
899
|
animation: loading-icon-spin 1s linear infinite;
|
|
899
900
|
}
|
|
900
901
|
|
|
@@ -1275,8 +1276,9 @@ var WysiwygThemeWrapper = styled.div.attrs((p) => ({
|
|
|
1275
1276
|
|
|
1276
1277
|
& .html-image-node-view-wrapper,
|
|
1277
1278
|
& .md-image-node-view-wrapper {
|
|
1278
|
-
display: inline-
|
|
1279
|
+
display: inline-flex;
|
|
1279
1280
|
padding: 0 2px;
|
|
1281
|
+
vertical-align: bottom;
|
|
1280
1282
|
z-index: 1;
|
|
1281
1283
|
}
|
|
1282
1284
|
|
|
@@ -5479,7 +5481,7 @@ var throttle = (delay, noTrailing, callback) => {
|
|
|
5479
5481
|
};
|
|
5480
5482
|
};
|
|
5481
5483
|
var ResizableContainer = styled6.div`
|
|
5482
|
-
display: inline-
|
|
5484
|
+
display: inline-flex;
|
|
5483
5485
|
position: relative;
|
|
5484
5486
|
max-width: 100%;
|
|
5485
5487
|
user-select: none;
|
|
@@ -6596,6 +6598,8 @@ var Container2 = styled9.div`
|
|
|
6596
6598
|
border: 1px solid ${(props) => props.theme.borderColor};
|
|
6597
6599
|
border-radius: ${(props) => props.theme.smallBorderRadius};
|
|
6598
6600
|
box-shadow: 0 4px 12px ${(props) => props.theme.boxShadowColor};
|
|
6601
|
+
font-size: ${(props) => props.theme.fontBase};
|
|
6602
|
+
line-height: normal;
|
|
6599
6603
|
z-index: 100;
|
|
6600
6604
|
`;
|
|
6601
6605
|
var InputGroup = styled9.div`
|
|
@@ -6777,7 +6781,6 @@ var ImageToolTips = (props) => {
|
|
|
6777
6781
|
|
|
6778
6782
|
// src/editor/extensions/Image/image-nodeview.tsx
|
|
6779
6783
|
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
6780
|
-
var warningFallBack = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAAAAACIM/FCAAAChElEQVR4Ae3aMW/TQBxAcb70k91AAiGuGlZAtOlQApWaDiSdklZq2RPUTm1xUWL3PgqSpygkXlh88N54nn7S2Trd3y/CP5IQIUKECBEiRIgQIUKECBEiRIgQIUKECBEiRIgQIUKECBEiRIgQIUKECBEiRIgQIUKECBEiRIgQIUKECPmPIEKECBEiRIgQIeX82+FBO0naB4eTRRkt5P7sNWt1Rw9RQvKThI2SYR4f5OoVW2rfRAYpT6hqHc8WeVHki9mgRdWwiAmyfA9AdrlaW5tlAHxcxQMpK8feRbGxPEkrSREN5ARg/y780V0GMIwFcgXwLg9byvsAN3FA8lfAfr7jYQZ0nqKAfAb21vYVwNruSoEvMUDuE+Ai7IKECZA+RAA5A7JiN6TMgFHzIeUb4DLshoQZ0H1uPGQOvFzVQZYtYNF4yBg4DnWQMAAmjYccArN6yBQ4ajzkAFjUQ+ZAv/GQNpDXQ3Kg03hIAhT1kAJIhLi1/vJl39Ic6Mf3+a2K8PM7BgahtgEwjuKI0lqGjSI8opRdYFb3sk/jODSGEZCVuyFFDzgPzYc8JMBkN2QMpI8RQMIQ2LvdBblNgdM4Lh/aQJaHrf3sAe2nKCDhGqCfb3VEcx1UNQTItlzQ3fYAvoZYIMUHgHRSbiyPU4BPZUSX2JWEbLZcW5v2qByrmMYKxZCq1mA6z4sin08HLapOy8gGPddtttT5HuHobZiwUXr6K85h6KjLWm/PH+MdTy/GR/12knb6g8mPZ38YECJEiBAhQoQIESJEiBAhQoQIESJEiBAhQoQIESJEiBAhQoQIESJEiBAhQoQIESJEiBAhQoQIESJEiBAhQoQIESJEiBAh0fUb5q7oCGreEVEAAAAASUVORK5CYII=";
|
|
6781
6784
|
function ImageNodeView(props) {
|
|
6782
6785
|
const {
|
|
6783
6786
|
node,
|
|
@@ -6815,7 +6818,7 @@ function ImageNodeView(props) {
|
|
|
6815
6818
|
};
|
|
6816
6819
|
handlePasteEvent();
|
|
6817
6820
|
}
|
|
6818
|
-
}, [fromPaste, node.attrs.src]);
|
|
6821
|
+
}, [fromPaste, handleViewImgSrcUrl, imageCopyHandler, node.attrs.src]);
|
|
6819
6822
|
const handleStoreChange = (store) => {
|
|
6820
6823
|
popoverStore.current = store;
|
|
6821
6824
|
};
|
|
@@ -6841,38 +6844,29 @@ function ImageNodeView(props) {
|
|
|
6841
6844
|
if (fromPaste) {
|
|
6842
6845
|
return Loading;
|
|
6843
6846
|
}
|
|
6844
|
-
const Main = /* @__PURE__ */ jsx14(
|
|
6845
|
-
|
|
6847
|
+
const Main = /* @__PURE__ */ jsx14(
|
|
6848
|
+
Resizable,
|
|
6846
6849
|
{
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
handleViewImgSrcUrl(node.attrs.src).then((newSrc) => {
|
|
6864
|
-
makeImageLoad(newSrc);
|
|
6865
|
-
});
|
|
6866
|
-
} else {
|
|
6867
|
-
makeImageLoad(node.attrs.src);
|
|
6868
|
-
}
|
|
6869
|
-
});
|
|
6870
|
-
},
|
|
6871
|
-
...node.attrs
|
|
6850
|
+
controlInit: (init) => initRef.current = init,
|
|
6851
|
+
onResize: handleResize,
|
|
6852
|
+
...props,
|
|
6853
|
+
children: /* @__PURE__ */ jsx14(
|
|
6854
|
+
ZensImage,
|
|
6855
|
+
{
|
|
6856
|
+
onLoad: () => initRef.current?.(),
|
|
6857
|
+
src: node.attrs.src,
|
|
6858
|
+
loader: Loading,
|
|
6859
|
+
style: {
|
|
6860
|
+
width: "100%",
|
|
6861
|
+
height: "100%"
|
|
6862
|
+
},
|
|
6863
|
+
...node.attrs
|
|
6864
|
+
}
|
|
6865
|
+
)
|
|
6872
6866
|
},
|
|
6873
6867
|
`${node.attrs.src}_${node.attrs["data-rme-loading"]}`
|
|
6874
|
-
)
|
|
6875
|
-
return /* @__PURE__ */ jsx14("div", { ref: popoverRef, style: { position: "relative", zIndex: selected ? 10 : "auto" }, children: /* @__PURE__ */ jsx14(
|
|
6868
|
+
);
|
|
6869
|
+
return /* @__PURE__ */ jsx14("div", { ref: popoverRef, style: { position: "relative", zIndex: selected ? 10 : "auto", lineHeight: 0 }, children: /* @__PURE__ */ jsx14(
|
|
6876
6870
|
Popover2,
|
|
6877
6871
|
{
|
|
6878
6872
|
customContent: /* @__PURE__ */ jsx14(
|
|
@@ -6887,6 +6881,11 @@ function ImageNodeView(props) {
|
|
|
6887
6881
|
},
|
|
6888
6882
|
`${node.attrs.src}`
|
|
6889
6883
|
),
|
|
6884
|
+
boxProps: {
|
|
6885
|
+
style: {
|
|
6886
|
+
display: "inline-flex"
|
|
6887
|
+
}
|
|
6888
|
+
},
|
|
6890
6889
|
placement: "top-start",
|
|
6891
6890
|
onStoreChange: handleStoreChange,
|
|
6892
6891
|
toggleOnClick: true,
|