wysimark-lite 0.25.21 → 0.25.23
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.js +30 -27
- package/dist/index.mjs +15 -5
- package/dist/index.mjs.map +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2950,6 +2950,8 @@ var $OuterContainer = styled7($Container)`
|
|
|
2950
2950
|
overflow-y: clip;
|
|
2951
2951
|
display: flex;
|
|
2952
2952
|
flex-direction: column;
|
|
2953
|
+
flex: 1;
|
|
2954
|
+
min-height: 0;
|
|
2953
2955
|
`;
|
|
2954
2956
|
|
|
2955
2957
|
// src/toolbar-plugin/styles/menu-styles.ts
|
|
@@ -3993,6 +3995,7 @@ var $Image = styled17("img")`
|
|
|
3993
3995
|
* the image is loaded.
|
|
3994
3996
|
*/
|
|
3995
3997
|
max-width: 100%;
|
|
3998
|
+
max-height: 50vh;
|
|
3996
3999
|
height: auto;
|
|
3997
4000
|
|
|
3998
4001
|
/**
|
|
@@ -5801,9 +5804,16 @@ var CollapsibleParagraphPlugin = createPlugin((editor) => {
|
|
|
5801
5804
|
}
|
|
5802
5805
|
}
|
|
5803
5806
|
},
|
|
5804
|
-
onKeyDown:
|
|
5805
|
-
"
|
|
5806
|
-
|
|
5807
|
+
onKeyDown: (e) => {
|
|
5808
|
+
if (e.key === "Enter" && !e.nativeEvent.isComposing && !e.shiftKey) {
|
|
5809
|
+
e.preventDefault();
|
|
5810
|
+
editor.insertBreak();
|
|
5811
|
+
return true;
|
|
5812
|
+
}
|
|
5813
|
+
return createHotkeyHandler({
|
|
5814
|
+
"super+0": editor.collapsibleParagraph.convertParagraph
|
|
5815
|
+
})(e);
|
|
5816
|
+
}
|
|
5807
5817
|
}
|
|
5808
5818
|
};
|
|
5809
5819
|
});
|
|
@@ -9651,7 +9661,7 @@ function Editable2({
|
|
|
9651
9661
|
editor.wysimark.onFileSelect = onFileSelect;
|
|
9652
9662
|
editor.wysimark.onChange = onChange;
|
|
9653
9663
|
const disableRawMode = editor.wysimark.disableRawMode;
|
|
9654
|
-
return /* @__PURE__ */ jsxs33("div", { style: { position: "relative" }, children: [
|
|
9664
|
+
return /* @__PURE__ */ jsxs33("div", { style: { position: "relative", display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }, children: [
|
|
9655
9665
|
!disableRawMode && /* @__PURE__ */ jsx67("div", { style: { position: "absolute", top: "5px", right: "25px", zIndex: 10 }, children: /* @__PURE__ */ jsx67(
|
|
9656
9666
|
"div",
|
|
9657
9667
|
{
|
|
@@ -9748,7 +9758,7 @@ function Editable2({
|
|
|
9748
9758
|
}
|
|
9749
9759
|
}
|
|
9750
9760
|
) }),
|
|
9751
|
-
/* @__PURE__ */ jsx67("div", { style: { display: isRawMode ? "none" : "
|
|
9761
|
+
/* @__PURE__ */ jsx67("div", { style: { display: isRawMode ? "none" : "flex", flexDirection: "column", flex: 1, minHeight: 0 }, children: /* @__PURE__ */ jsx67(
|
|
9752
9762
|
Slate2,
|
|
9753
9763
|
{
|
|
9754
9764
|
editor,
|