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
|
@@ -3823,6 +3823,14 @@ var imageMarkDecorations = {
|
|
|
3823
3823
|
};
|
|
3824
3824
|
var imageWidthAttributePattern = /^(\s*)\{width=(\d+)\}/;
|
|
3825
3825
|
var minImageWidth = 120;
|
|
3826
|
+
var imageWidgetEditorSelectionEventTypes = /* @__PURE__ */ new Set([
|
|
3827
|
+
"mousedown",
|
|
3828
|
+
"mouseup",
|
|
3829
|
+
"mousemove",
|
|
3830
|
+
"pointerdown",
|
|
3831
|
+
"pointermove",
|
|
3832
|
+
"pointerup"
|
|
3833
|
+
]);
|
|
3826
3834
|
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>';
|
|
3827
3835
|
function parseImageMarkdown(content) {
|
|
3828
3836
|
const trimmed = content.trim();
|
|
@@ -3985,9 +3993,8 @@ var ImageWidget = class extends view.WidgetType {
|
|
|
3985
3993
|
return figure;
|
|
3986
3994
|
}
|
|
3987
3995
|
ignoreEvent(event) {
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
);
|
|
3996
|
+
if (imageWidgetEditorSelectionEventTypes.has(event.type)) return true;
|
|
3997
|
+
return event.type !== "click";
|
|
3991
3998
|
}
|
|
3992
3999
|
createToolbar(view, figure) {
|
|
3993
4000
|
const toolbar = figure.ownerDocument.createElement("div");
|
|
@@ -7768,5 +7775,5 @@ exports.encodeCodeCopyPayload = encodeCodeCopyPayload;
|
|
|
7768
7775
|
exports.essentialPlugins = essentialPlugins;
|
|
7769
7776
|
exports.resolveCalloutTitleInputTarget = resolveCalloutTitleInputTarget;
|
|
7770
7777
|
exports.resolveCalloutTypeChange = resolveCalloutTypeChange;
|
|
7771
|
-
//# sourceMappingURL=chunk-
|
|
7772
|
-
//# sourceMappingURL=chunk-
|
|
7778
|
+
//# sourceMappingURL=chunk-U3D2P2CM.cjs.map
|
|
7779
|
+
//# sourceMappingURL=chunk-U3D2P2CM.cjs.map
|