mardora 1.2.1 → 1.2.2
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/{chunk-PCXW2FUR.js → chunk-SMHHXYOS.js} +12 -5
- package/dist/chunk-SMHHXYOS.js.map +1 -0
- package/dist/{chunk-OHZKW7YE.cjs → chunk-U3D2P2CM.cjs} +12 -5
- package/dist/chunk-U3D2P2CM.cjs.map +1 -0
- package/dist/index.cjs +25 -25
- package/dist/index.js +1 -1
- package/dist/plugins/index.cjs +25 -25
- package/dist/plugins/index.js +1 -1
- package/package.json +1 -1
- package/src/plugins/image-plugin.ts +10 -3
- package/dist/chunk-OHZKW7YE.cjs.map +0 -1
- package/dist/chunk-PCXW2FUR.js.map +0 -1
|
@@ -3795,6 +3795,14 @@ var imageMarkDecorations = {
|
|
|
3795
3795
|
};
|
|
3796
3796
|
var imageWidthAttributePattern = /^(\s*)\{width=(\d+)\}/;
|
|
3797
3797
|
var minImageWidth = 120;
|
|
3798
|
+
var imageWidgetEditorSelectionEventTypes = /* @__PURE__ */ new Set([
|
|
3799
|
+
"mousedown",
|
|
3800
|
+
"mouseup",
|
|
3801
|
+
"mousemove",
|
|
3802
|
+
"pointerdown",
|
|
3803
|
+
"pointermove",
|
|
3804
|
+
"pointerup"
|
|
3805
|
+
]);
|
|
3798
3806
|
var previewImageIcon = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 3h6v6"></path><path d="m21 3-7 7"></path><path d="M9 21H3v-6"></path><path d="m3 21 7-7"></path></svg>';
|
|
3799
3807
|
function parseImageMarkdown(content) {
|
|
3800
3808
|
const trimmed = content.trim();
|
|
@@ -3957,9 +3965,8 @@ var ImageWidget = class extends WidgetType {
|
|
|
3957
3965
|
return figure;
|
|
3958
3966
|
}
|
|
3959
3967
|
ignoreEvent(event) {
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
);
|
|
3968
|
+
if (imageWidgetEditorSelectionEventTypes.has(event.type)) return true;
|
|
3969
|
+
return event.type !== "click";
|
|
3963
3970
|
}
|
|
3964
3971
|
createToolbar(view, figure) {
|
|
3965
3972
|
const toolbar = figure.ownerDocument.createElement("div");
|
|
@@ -7717,5 +7724,5 @@ var essentialPlugins = [
|
|
|
7717
7724
|
var allPlugins = [...essentialPlugins];
|
|
7718
7725
|
|
|
7719
7726
|
export { CODE_COPY_SUCCESS_ICON, CodePlugin, EmojiPlugin, HRPlugin, HTMLPlugin, HeadingPlugin, ImagePlugin, InlinePlugin, LinkPlugin, ListPlugin, MathPlugin, MermaidPlugin, ParagraphPlugin, QuotePlugin, TablePlugin, allPlugins, bindCodeCopyButtons, bindImagePreviewButtons, copyCodeTextToClipboard, decodeCodeCopyPayload, encodeCodeCopyPayload, essentialPlugins, resolveCalloutTitleInputTarget, resolveCalloutTypeChange };
|
|
7720
|
-
//# sourceMappingURL=chunk-
|
|
7721
|
-
//# sourceMappingURL=chunk-
|
|
7727
|
+
//# sourceMappingURL=chunk-SMHHXYOS.js.map
|
|
7728
|
+
//# sourceMappingURL=chunk-SMHHXYOS.js.map
|