@ones-editor/editor 2.2.8-beta.1 → 2.2.8-beta.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.
|
@@ -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 | (() => Element);
|
|
74
74
|
};
|
|
75
75
|
export type SelectItemFrom = 'event' | 'manual';
|
package/dist/index.js
CHANGED
|
@@ -10086,6 +10086,9 @@ var __publicField = (obj, key, value) => {
|
|
|
10086
10086
|
c = "\\\\";
|
|
10087
10087
|
return s.replace(new RegExp(`^[${c}]+|[${c}]+$`, "g"), "");
|
|
10088
10088
|
}
|
|
10089
|
+
function isFunction$1(functionToCheck) {
|
|
10090
|
+
return !!functionToCheck && {}.toString.call(functionToCheck) === "[object Function]";
|
|
10091
|
+
}
|
|
10089
10092
|
function isPrintableKey(key) {
|
|
10090
10093
|
if (!key)
|
|
10091
10094
|
return false;
|
|
@@ -51670,7 +51673,7 @@ ${codeText}
|
|
|
51670
51673
|
this.toolbar = new ManualToolbar([], void 0, {
|
|
51671
51674
|
tooltipId: editor.clientId,
|
|
51672
51675
|
id: "editor-readonly-toolbar",
|
|
51673
|
-
overflowBoundary: popover == null ? void 0 : popover.overflowBoundary,
|
|
51676
|
+
overflowBoundary: isFunction$1(popover == null ? void 0 : popover.overflowBoundary) ? popover == null ? void 0 : popover.overflowBoundary() : popover == null ? void 0 : popover.overflowBoundary,
|
|
51674
51677
|
refuseOverflow: true,
|
|
51675
51678
|
padding: 20
|
|
51676
51679
|
});
|
|
@@ -51904,7 +51907,7 @@ ${codeText}
|
|
|
51904
51907
|
this.toolbar = new ManualToolbar([], void 0, {
|
|
51905
51908
|
tooltipId: editor.clientId,
|
|
51906
51909
|
id: "editor-toolbar",
|
|
51907
|
-
overflowBoundary: popover == null ? void 0 : popover.overflowBoundary,
|
|
51910
|
+
overflowBoundary: isFunction$1(popover == null ? void 0 : popover.overflowBoundary) ? popover == null ? void 0 : popover.overflowBoundary() : popover == null ? void 0 : popover.overflowBoundary,
|
|
51908
51911
|
refuseOverflow: true,
|
|
51909
51912
|
padding: 20,
|
|
51910
51913
|
showName: clientType.isMobile,
|
|
@@ -69555,7 +69558,7 @@ ${codeText}
|
|
|
69555
69558
|
const popover = editor.options.componentsOptions.popover;
|
|
69556
69559
|
this.toolbar = new ManualToolbar([], void 0, {
|
|
69557
69560
|
id: "table-row-column-toolbar",
|
|
69558
|
-
overflowBoundary: popover == null ? void 0 : popover.overflowBoundary,
|
|
69561
|
+
overflowBoundary: isFunction$1(popover == null ? void 0 : popover.overflowBoundary) ? popover == null ? void 0 : popover.overflowBoundary() : popover == null ? void 0 : popover.overflowBoundary,
|
|
69559
69562
|
refuseOverflow: true,
|
|
69560
69563
|
tooltipId: this.editor.clientId
|
|
69561
69564
|
});
|
|
@@ -69619,7 +69622,7 @@ ${codeText}
|
|
|
69619
69622
|
modifiers: [{
|
|
69620
69623
|
name: "flip",
|
|
69621
69624
|
options: {
|
|
69622
|
-
boundary: popover == null ? void 0 : popover.overflowBoundary,
|
|
69625
|
+
boundary: isFunction$1(popover == null ? void 0 : popover.overflowBoundary) ? popover == null ? void 0 : popover.overflowBoundary() : popover == null ? void 0 : popover.overflowBoundary,
|
|
69623
69626
|
fallbackPlacements: ["left", "right"]
|
|
69624
69627
|
}
|
|
69625
69628
|
}]
|
|
@@ -88323,7 +88326,7 @@ ${data2.flowchartText}
|
|
|
88323
88326
|
}
|
|
88324
88327
|
}
|
|
88325
88328
|
});
|
|
88326
|
-
editor.version = "2.2.8-beta.
|
|
88329
|
+
editor.version = "2.2.8-beta.2";
|
|
88327
88330
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
88328
88331
|
window.setReauthFail = (fail) => {
|
|
88329
88332
|
window.isReauthError = fail;
|
|
@@ -88424,7 +88427,7 @@ ${data2.flowchartText}
|
|
|
88424
88427
|
});
|
|
88425
88428
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88426
88429
|
OnesEditorToolbar.register(editor);
|
|
88427
|
-
editor.version = "2.2.8-beta.
|
|
88430
|
+
editor.version = "2.2.8-beta.2";
|
|
88428
88431
|
return editor;
|
|
88429
88432
|
}
|
|
88430
88433
|
async function showDocVersions(editor, options, serverUrl) {
|
|
@@ -134653,6 +134656,7 @@ ${data2.flowchartText}
|
|
|
134653
134656
|
exports2.isFirefox = isFirefox;
|
|
134654
134657
|
exports2.isFirstChildBlockInComplexBlock = isFirstChildBlockInComplexBlock;
|
|
134655
134658
|
exports2.isFullSelectedOneComplexBlock = isFullSelectedOneComplexBlock;
|
|
134659
|
+
exports2.isFunction = isFunction$1;
|
|
134656
134660
|
exports2.isHeadingBlock = isHeadingBlock$1;
|
|
134657
134661
|
exports2.isHighSurrogate = t$7;
|
|
134658
134662
|
exports2.isInBlock = isInBlock;
|