@ones-editor/editor 2.2.8-beta.2 → 2.2.9
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.
|
@@ -70,6 +70,6 @@ export interface CommandBarOptions {
|
|
|
70
70
|
}
|
|
71
71
|
export type CreateManualCommandBarFunction = (parentItem: CommandItem, closeable: Closeable, options?: CommandBarOptions) => AbstractManualCommandBar;
|
|
72
72
|
export type PopoverOptions = {
|
|
73
|
-
overflowBoundary?: Element
|
|
73
|
+
overflowBoundary?: Element;
|
|
74
74
|
};
|
|
75
75
|
export type SelectItemFrom = 'event' | 'manual';
|
package/dist/index.js
CHANGED
|
@@ -1113,7 +1113,6 @@ div.tippy-box button {
|
|
|
1113
1113
|
.editor-command-bar.footer {
|
|
1114
1114
|
width: 100%;
|
|
1115
1115
|
}
|
|
1116
|
-
.reference-hidden[data-tippy-hidden],
|
|
1117
1116
|
.reference-hidden .tippy-box[data-reference-hidden] {
|
|
1118
1117
|
opacity: 0;
|
|
1119
1118
|
pointer-events: none;
|
|
@@ -10086,9 +10085,6 @@ var __publicField = (obj, key, value) => {
|
|
|
10086
10085
|
c = "\\\\";
|
|
10087
10086
|
return s.replace(new RegExp(`^[${c}]+|[${c}]+$`, "g"), "");
|
|
10088
10087
|
}
|
|
10089
|
-
function isFunction$1(functionToCheck) {
|
|
10090
|
-
return !!functionToCheck && {}.toString.call(functionToCheck) === "[object Function]";
|
|
10091
|
-
}
|
|
10092
10088
|
function isPrintableKey(key) {
|
|
10093
10089
|
if (!key)
|
|
10094
10090
|
return false;
|
|
@@ -40122,27 +40118,20 @@ ${codeText}
|
|
|
40122
40118
|
var _a, _b;
|
|
40123
40119
|
const popperOptions = { modifiers: [] };
|
|
40124
40120
|
const overflowBoundary = this.options.overflowBoundary;
|
|
40125
|
-
const padding = this.options.padding;
|
|
40126
40121
|
if (overflowBoundary) {
|
|
40127
40122
|
(_a = popperOptions == null ? void 0 : popperOptions.modifiers) == null ? void 0 : _a.push({
|
|
40128
|
-
name: "
|
|
40129
|
-
|
|
40130
|
-
|
|
40131
|
-
|
|
40132
|
-
const popper = state.elements.popper;
|
|
40133
|
-
if (popper.getBoundingClientRect().top < overflowBoundary.getBoundingClientRect().top + (padding != null ? padding : 20)) {
|
|
40134
|
-
popper.setAttribute("data-tippy-hidden", "");
|
|
40135
|
-
} else {
|
|
40136
|
-
popper.removeAttribute("data-tippy-hidden");
|
|
40137
|
-
}
|
|
40123
|
+
name: "flip",
|
|
40124
|
+
options: {
|
|
40125
|
+
boundary: overflowBoundary,
|
|
40126
|
+
fallbackPlacements: ["top", "bottom"]
|
|
40138
40127
|
}
|
|
40139
40128
|
});
|
|
40140
40129
|
}
|
|
40141
|
-
if (padding) {
|
|
40130
|
+
if (this.options.padding) {
|
|
40142
40131
|
(_b = popperOptions == null ? void 0 : popperOptions.modifiers) == null ? void 0 : _b.push({
|
|
40143
40132
|
name: "preventOverflow",
|
|
40144
40133
|
options: {
|
|
40145
|
-
padding
|
|
40134
|
+
padding: this.options.padding
|
|
40146
40135
|
}
|
|
40147
40136
|
});
|
|
40148
40137
|
}
|
|
@@ -51673,7 +51662,7 @@ ${codeText}
|
|
|
51673
51662
|
this.toolbar = new ManualToolbar([], void 0, {
|
|
51674
51663
|
tooltipId: editor.clientId,
|
|
51675
51664
|
id: "editor-readonly-toolbar",
|
|
51676
|
-
overflowBoundary:
|
|
51665
|
+
overflowBoundary: popover == null ? void 0 : popover.overflowBoundary,
|
|
51677
51666
|
refuseOverflow: true,
|
|
51678
51667
|
padding: 20
|
|
51679
51668
|
});
|
|
@@ -51907,7 +51896,7 @@ ${codeText}
|
|
|
51907
51896
|
this.toolbar = new ManualToolbar([], void 0, {
|
|
51908
51897
|
tooltipId: editor.clientId,
|
|
51909
51898
|
id: "editor-toolbar",
|
|
51910
|
-
overflowBoundary:
|
|
51899
|
+
overflowBoundary: popover == null ? void 0 : popover.overflowBoundary,
|
|
51911
51900
|
refuseOverflow: true,
|
|
51912
51901
|
padding: 20,
|
|
51913
51902
|
showName: clientType.isMobile,
|
|
@@ -69558,7 +69547,7 @@ ${codeText}
|
|
|
69558
69547
|
const popover = editor.options.componentsOptions.popover;
|
|
69559
69548
|
this.toolbar = new ManualToolbar([], void 0, {
|
|
69560
69549
|
id: "table-row-column-toolbar",
|
|
69561
|
-
overflowBoundary:
|
|
69550
|
+
overflowBoundary: popover == null ? void 0 : popover.overflowBoundary,
|
|
69562
69551
|
refuseOverflow: true,
|
|
69563
69552
|
tooltipId: this.editor.clientId
|
|
69564
69553
|
});
|
|
@@ -69622,7 +69611,7 @@ ${codeText}
|
|
|
69622
69611
|
modifiers: [{
|
|
69623
69612
|
name: "flip",
|
|
69624
69613
|
options: {
|
|
69625
|
-
boundary:
|
|
69614
|
+
boundary: popover == null ? void 0 : popover.overflowBoundary,
|
|
69626
69615
|
fallbackPlacements: ["left", "right"]
|
|
69627
69616
|
}
|
|
69628
69617
|
}]
|
|
@@ -88326,7 +88315,7 @@ ${data2.flowchartText}
|
|
|
88326
88315
|
}
|
|
88327
88316
|
}
|
|
88328
88317
|
});
|
|
88329
|
-
editor.version = "2.2.
|
|
88318
|
+
editor.version = "2.2.9";
|
|
88330
88319
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
88331
88320
|
window.setReauthFail = (fail) => {
|
|
88332
88321
|
window.isReauthError = fail;
|
|
@@ -88427,7 +88416,7 @@ ${data2.flowchartText}
|
|
|
88427
88416
|
});
|
|
88428
88417
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88429
88418
|
OnesEditorToolbar.register(editor);
|
|
88430
|
-
editor.version = "2.2.
|
|
88419
|
+
editor.version = "2.2.9";
|
|
88431
88420
|
return editor;
|
|
88432
88421
|
}
|
|
88433
88422
|
async function showDocVersions(editor, options, serverUrl) {
|
|
@@ -134656,7 +134645,6 @@ ${data2.flowchartText}
|
|
|
134656
134645
|
exports2.isFirefox = isFirefox;
|
|
134657
134646
|
exports2.isFirstChildBlockInComplexBlock = isFirstChildBlockInComplexBlock;
|
|
134658
134647
|
exports2.isFullSelectedOneComplexBlock = isFullSelectedOneComplexBlock;
|
|
134659
|
-
exports2.isFunction = isFunction$1;
|
|
134660
134648
|
exports2.isHeadingBlock = isHeadingBlock$1;
|
|
134661
134649
|
exports2.isHighSurrogate = t$7;
|
|
134662
134650
|
exports2.isInBlock = isInBlock;
|