@ones-editor/editor 2.2.8-beta.4 → 2.2.8-beta.6
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/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +12 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -858,10 +858,10 @@ div.tippy-box[data-theme=menu] .tippy-arrow::after {
|
|
|
858
858
|
transform: rotate(45deg);
|
|
859
859
|
}
|
|
860
860
|
div.tippy-box[data-theme=menu] .tippy-content .editor-command-bar-root, div.tippy-box[data-theme=toolbar] .tippy-content .editor-command-bar-root {
|
|
861
|
-
box-shadow: 0px 0px
|
|
861
|
+
box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(45, 45, 46, 0.15) 0px 8px 16px -4px, rgba(45, 45, 46, 0.2) 0px 0px 1px 0px;
|
|
862
862
|
}
|
|
863
863
|
div.tippy-box[data-theme=toolbar] .tippy-content .editor-command-bar-root {
|
|
864
|
-
|
|
864
|
+
border-radius: 3px;
|
|
865
865
|
}
|
|
866
866
|
div.tippy-box button {
|
|
867
867
|
outline: none;
|
|
@@ -901,7 +901,7 @@ div.tippy-box button {
|
|
|
901
901
|
}
|
|
902
902
|
.editor-command-bar.fixed.mobile .command-item.checked, .editor-command-bar.toolbar.mobile .command-item.checked {
|
|
903
903
|
border-radius: 3px;
|
|
904
|
-
background: #
|
|
904
|
+
background: #f0f6ff;
|
|
905
905
|
}
|
|
906
906
|
.editor-command-bar {
|
|
907
907
|
pointer-events: all;
|
|
@@ -1019,8 +1019,6 @@ div.tippy-box button {
|
|
|
1019
1019
|
gap: 5px;
|
|
1020
1020
|
padding: 5px 10px;
|
|
1021
1021
|
background: #ffffff;
|
|
1022
|
-
box-shadow: 0px 0px 1px rgba(48, 48, 48, 0.2), 0px 8px 16px rgba(48, 48, 48, 0.15);
|
|
1023
|
-
border-radius: 3px;
|
|
1024
1022
|
}
|
|
1025
1023
|
.editor-command-bar.toolbar .command-item {
|
|
1026
1024
|
background: transparent;
|
|
@@ -2054,11 +2052,6 @@ div.tippy-box[data-theme=editor-tooltip] > .tippy-content {
|
|
|
2054
2052
|
border-radius: 8px;
|
|
2055
2053
|
background: none;
|
|
2056
2054
|
}
|
|
2057
|
-
[data-command-bar-id=cursor-toolbar].mobile .tippy-box .tippy-content .editor-command-bar-root,
|
|
2058
|
-
[data-command-bar-id=paste-special-button].mobile .tippy-box .tippy-content .editor-command-bar-root,
|
|
2059
|
-
[data-command-bar-id=editor-toolbar].mobile .tippy-box .tippy-content .editor-command-bar-root {
|
|
2060
|
-
box-shadow: none;
|
|
2061
|
-
}
|
|
2062
2055
|
[data-command-bar-id=cursor-toolbar].mobile .tippy-content,
|
|
2063
2056
|
[data-command-bar-id=cursor-toolbar].mobile .editor-command-bar-root,
|
|
2064
2057
|
[data-command-bar-id=cursor-toolbar].mobile .editor-command-bar,
|
|
@@ -40132,7 +40125,13 @@ ${codeText}
|
|
|
40132
40125
|
phase: "main",
|
|
40133
40126
|
fn: ({ state }) => {
|
|
40134
40127
|
const popper = state.elements.popper;
|
|
40135
|
-
|
|
40128
|
+
const popperRect = popper.getBoundingClientRect();
|
|
40129
|
+
const overflowBoundaryRect = overflowBoundary.getBoundingClientRect();
|
|
40130
|
+
const topCheck = popperRect.top < overflowBoundaryRect.top;
|
|
40131
|
+
const bottomCheck = popperRect.bottom > overflowBoundaryRect.bottom;
|
|
40132
|
+
const leftCheck = popperRect.left < overflowBoundaryRect.left;
|
|
40133
|
+
const rightCheck = popperRect.right > overflowBoundaryRect.right;
|
|
40134
|
+
if (topCheck || bottomCheck || leftCheck || rightCheck) {
|
|
40136
40135
|
popper.setAttribute("data-tippy-hidden", "");
|
|
40137
40136
|
} else {
|
|
40138
40137
|
popper.removeAttribute("data-tippy-hidden");
|
|
@@ -88328,7 +88327,7 @@ ${data2.flowchartText}
|
|
|
88328
88327
|
}
|
|
88329
88328
|
}
|
|
88330
88329
|
});
|
|
88331
|
-
editor.version = "2.2.8-beta.
|
|
88330
|
+
editor.version = "2.2.8-beta.6";
|
|
88332
88331
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
88333
88332
|
window.setReauthFail = (fail) => {
|
|
88334
88333
|
window.isReauthError = fail;
|
|
@@ -88429,7 +88428,7 @@ ${data2.flowchartText}
|
|
|
88429
88428
|
});
|
|
88430
88429
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88431
88430
|
OnesEditorToolbar.register(editor);
|
|
88432
|
-
editor.version = "2.2.8-beta.
|
|
88431
|
+
editor.version = "2.2.8-beta.6";
|
|
88433
88432
|
return editor;
|
|
88434
88433
|
}
|
|
88435
88434
|
async function showDocVersions(editor, options, serverUrl) {
|