rme 0.2.3-alpha.9 → 0.2.4
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 +10 -2
- package/dist/index.mjs.map +2 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -5441,6 +5441,7 @@ var WysiwygThemeWrapper = styled.div.attrs((p) => ({
|
|
|
5441
5441
|
& .html-image-node-view-wrapper,
|
|
5442
5442
|
& .md-image-node-view-wrapper {
|
|
5443
5443
|
display: inline-block;
|
|
5444
|
+
padding: 0 2px;
|
|
5444
5445
|
z-index: 1;
|
|
5445
5446
|
}
|
|
5446
5447
|
|
|
@@ -6829,6 +6830,9 @@ var MarkdownParser = class {
|
|
|
6829
6830
|
}
|
|
6830
6831
|
return MarkdownIt().validateLink(url);
|
|
6831
6832
|
};
|
|
6833
|
+
this.tokenizer.normalizeLink = (url) => {
|
|
6834
|
+
return url;
|
|
6835
|
+
};
|
|
6832
6836
|
this.tokenHandlers = buildTokenHandlers(schema, parserRules);
|
|
6833
6837
|
}
|
|
6834
6838
|
parse(text) {
|
|
@@ -8009,6 +8013,10 @@ var ClipboardExtension = class extends PlainExtension2 {
|
|
|
8009
8013
|
imageCopyHandler(node.attrs.src).then((newSrc) => {
|
|
8010
8014
|
if (newSrc && newSrc !== node.attrs.src) {
|
|
8011
8015
|
this.updateImageNodeSrc(view, node, newSrc);
|
|
8016
|
+
} else {
|
|
8017
|
+
const { state, dispatch } = view;
|
|
8018
|
+
node.attrs["data-rme-loading"] = null;
|
|
8019
|
+
dispatch(state.tr);
|
|
8012
8020
|
}
|
|
8013
8021
|
}).catch((error) => {
|
|
8014
8022
|
console.warn("imageCopyHandler failed:", error);
|
|
@@ -16141,6 +16149,7 @@ var Resizable = memo2((props) => {
|
|
|
16141
16149
|
);
|
|
16142
16150
|
const handleResizing = useCallback(
|
|
16143
16151
|
(e, handleType) => {
|
|
16152
|
+
setHasChanged(true);
|
|
16144
16153
|
startResizing(e, handleType);
|
|
16145
16154
|
},
|
|
16146
16155
|
[startResizing]
|
|
@@ -16153,7 +16162,6 @@ var Resizable = memo2((props) => {
|
|
|
16153
16162
|
startHeightRef.current = height;
|
|
16154
16163
|
currentWidthRef.current = width;
|
|
16155
16164
|
currentHeightRef.current = height;
|
|
16156
|
-
setHasChanged(true);
|
|
16157
16165
|
setSize({ width, height });
|
|
16158
16166
|
}
|
|
16159
16167
|
};
|
|
@@ -17425,7 +17433,7 @@ function ImageNodeView(props) {
|
|
|
17425
17433
|
}
|
|
17426
17434
|
)
|
|
17427
17435
|
},
|
|
17428
|
-
`${node.attrs.src}`
|
|
17436
|
+
`${node.attrs.src}_${node.attrs["data-rme-loading"]}`
|
|
17429
17437
|
);
|
|
17430
17438
|
return /* @__PURE__ */ jsx13("div", { ref: popoverRef, style: { position: "relative", zIndex: selected ? 10 : "auto" }, children: /* @__PURE__ */ jsx13(
|
|
17431
17439
|
Popover2,
|