@ones-editor/editor 2.9.8-beta.71 → 2.9.8-beta.72
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.
|
@@ -64,6 +64,7 @@ export interface CommandBarOptions {
|
|
|
64
64
|
disableSelectedScroll?: boolean;
|
|
65
65
|
refuseOverflow?: boolean;
|
|
66
66
|
overflowBoundary?: Element;
|
|
67
|
+
overflowBoundaryPadding?: number;
|
|
67
68
|
header?: HTMLElement | (() => HTMLElement | null);
|
|
68
69
|
footer?: HTMLElement | (() => HTMLElement | null);
|
|
69
70
|
padding?: number;
|
package/dist/index.js
CHANGED
|
@@ -41735,6 +41735,7 @@ ${codeText}
|
|
|
41735
41735
|
var _a, _b, _c, _d;
|
|
41736
41736
|
const popperOptions = { modifiers: [] };
|
|
41737
41737
|
const overflowBoundary = this.options.overflowBoundary;
|
|
41738
|
+
const overflowBoundaryPadding = this.options.overflowBoundaryPadding || 0;
|
|
41738
41739
|
const padding = this.options.padding;
|
|
41739
41740
|
if (overflowBoundary) {
|
|
41740
41741
|
if (flip) {
|
|
@@ -41754,8 +41755,8 @@ ${codeText}
|
|
|
41754
41755
|
const popper = state.elements.popper;
|
|
41755
41756
|
const popperRect = popper.getBoundingClientRect();
|
|
41756
41757
|
const overflowBoundaryRect = overflowBoundary.getBoundingClientRect();
|
|
41757
|
-
const topCheck = popperRect.top < overflowBoundaryRect.top;
|
|
41758
|
-
const bottomCheck = popperRect.bottom > overflowBoundaryRect.bottom;
|
|
41758
|
+
const topCheck = popperRect.top < overflowBoundaryRect.top - overflowBoundaryPadding;
|
|
41759
|
+
const bottomCheck = popperRect.bottom > overflowBoundaryRect.bottom + overflowBoundaryPadding;
|
|
41759
41760
|
if (topCheck || bottomCheck) {
|
|
41760
41761
|
popper.setAttribute("data-tippy-hidden", "");
|
|
41761
41762
|
} else {
|
|
@@ -95942,7 +95943,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
95942
95943
|
}
|
|
95943
95944
|
}
|
|
95944
95945
|
});
|
|
95945
|
-
editor.version = "2.9.8-beta.
|
|
95946
|
+
editor.version = "2.9.8-beta.72";
|
|
95946
95947
|
return editor;
|
|
95947
95948
|
}
|
|
95948
95949
|
function isDoc(doc2) {
|
|
@@ -96076,7 +96077,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96076
96077
|
OnesEditorDropTarget.register(editor);
|
|
96077
96078
|
OnesEditorTocProvider.register(editor);
|
|
96078
96079
|
OnesEditorExclusiveBlock.register(editor);
|
|
96079
|
-
editor.version = "2.9.8-beta.
|
|
96080
|
+
editor.version = "2.9.8-beta.72";
|
|
96080
96081
|
return editor;
|
|
96081
96082
|
}
|
|
96082
96083
|
async function showDocVersions(editor, options, serverUrl) {
|