@ones-editor/editor 2.1.1-beta.83 → 2.1.1-beta.85
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 +36 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1265,6 +1265,7 @@ div[data-command-bar-id=mobile-bottom-menu] .editor-command-bar .command-item .m
|
|
|
1265
1265
|
div[data-command-bar-id=mobile-bottom-menu] .editor-command-bar .command-item .menu-item-icon svg {
|
|
1266
1266
|
width: 20px;
|
|
1267
1267
|
height: 20px;
|
|
1268
|
+
stroke-width: 1.5;
|
|
1268
1269
|
}
|
|
1269
1270
|
div[data-command-bar-id=mobile-bottom-menu] .editor-command-bar .command-item .menu-item-name {
|
|
1270
1271
|
flex: 1;
|
|
@@ -1345,6 +1346,9 @@ div[data-command-bar-id=mobile-bottom-menu] .tippy-content .mobile-menu-wrap .mo
|
|
|
1345
1346
|
margin-right: 12px;
|
|
1346
1347
|
color: #2d2d2e;
|
|
1347
1348
|
}
|
|
1349
|
+
div[data-command-bar-id=mobile-bottom-menu] .tippy-content .mobile-menu-wrap .mobile-menu-header [data-button-id=mobile-bottom-menu-close] svg {
|
|
1350
|
+
stroke-width: 1.5;
|
|
1351
|
+
}
|
|
1348
1352
|
div[data-command-bar-id=mobile-bottom-menu] .editor-command-bar-root {
|
|
1349
1353
|
box-shadow: none !important;
|
|
1350
1354
|
}.editor-text-button {
|
|
@@ -2030,6 +2034,12 @@ div.tippy-box[data-theme=editor-tooltip] > .tippy-content {
|
|
|
2030
2034
|
[data-command-bar-id=paste-special-button].mobile .tippy-box,
|
|
2031
2035
|
[data-command-bar-id=editor-toolbar].mobile .tippy-box {
|
|
2032
2036
|
border-radius: 8px;
|
|
2037
|
+
background: none;
|
|
2038
|
+
}
|
|
2039
|
+
[data-command-bar-id=cursor-toolbar].mobile .tippy-box .tippy-content .editor-command-bar-root,
|
|
2040
|
+
[data-command-bar-id=paste-special-button].mobile .tippy-box .tippy-content .editor-command-bar-root,
|
|
2041
|
+
[data-command-bar-id=editor-toolbar].mobile .tippy-box .tippy-content .editor-command-bar-root {
|
|
2042
|
+
box-shadow: none;
|
|
2033
2043
|
}
|
|
2034
2044
|
[data-command-bar-id=cursor-toolbar].mobile .tippy-content,
|
|
2035
2045
|
[data-command-bar-id=cursor-toolbar].mobile .editor-command-bar-root,
|
|
@@ -2055,12 +2065,17 @@ div.tippy-box[data-theme=editor-tooltip] > .tippy-content {
|
|
|
2055
2065
|
[data-command-bar-id=editor-toolbar].mobile .editor-command-bar.toolbar .command-item:not(.separator) {
|
|
2056
2066
|
height: 40px;
|
|
2057
2067
|
padding: 0 16px;
|
|
2068
|
+
line-height: 1.5;
|
|
2058
2069
|
}
|
|
2059
2070
|
[data-command-bar-id=cursor-toolbar].mobile .editor-command-bar.toolbar .command-item.separator,
|
|
2060
2071
|
[data-command-bar-id=paste-special-button].mobile .editor-command-bar.toolbar .command-item.separator,
|
|
2061
2072
|
[data-command-bar-id=editor-toolbar].mobile .editor-command-bar.toolbar .command-item.separator {
|
|
2062
2073
|
height: 40px;
|
|
2074
|
+
transform: scaleX(0.5);
|
|
2063
2075
|
background-color: var(--Fills-Vibrant-Secondary, rgba(127, 127, 127, 0.4));
|
|
2076
|
+
}
|
|
2077
|
+
.editor-command-bar.toolbar.mobile .command-item svg {
|
|
2078
|
+
stroke-width: 1.5;
|
|
2064
2079
|
}div[data-type=editor-block].block-exclusive:after {
|
|
2065
2080
|
content: attr(data-exclusive-tips);
|
|
2066
2081
|
position: absolute;
|
|
@@ -2586,6 +2601,9 @@ div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container
|
|
|
2586
2601
|
display: flex;
|
|
2587
2602
|
align-items: center;
|
|
2588
2603
|
}
|
|
2604
|
+
[data-command-bar-id=mobile-bottom-menu] .link-popup .editor-command-bar-header .link-popup-header .link-popup-button-wrap svg {
|
|
2605
|
+
stroke-width: 1.5;
|
|
2606
|
+
}
|
|
2589
2607
|
[data-command-bar-id=mobile-bottom-menu] .link-popup .editor-command-bar-header .link-popup-header .link-popup-button-wrap:last-of-type {
|
|
2590
2608
|
justify-content: flex-end;
|
|
2591
2609
|
}
|
|
@@ -2614,9 +2632,6 @@ div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container
|
|
|
2614
2632
|
[data-command-bar-id=mobile-bottom-menu] .link-popup .editor-command-bar .command-item[data-id=link-popup] .link-form-content {
|
|
2615
2633
|
width: 100%;
|
|
2616
2634
|
}
|
|
2617
|
-
[data-command-bar-id=mobile-bottom-menu] .link-popup .editor-command-bar .command-item[data-id=link-popup] .link-form-content .editor-input-wrap {
|
|
2618
|
-
padding: 0px 15px;
|
|
2619
|
-
}
|
|
2620
2635
|
[data-command-bar-id=mobile-bottom-menu] .link-popup .editor-command-bar .command-item[data-id=link-popup] .link-form-content .editor-input-wrap.error .editor-input-container.textarea {
|
|
2621
2636
|
border: 1px solid #e82100;
|
|
2622
2637
|
}
|
|
@@ -40400,7 +40415,7 @@ ${codeText}
|
|
|
40400
40415
|
if (this.popper) {
|
|
40401
40416
|
this.popper.setAttribute("data-command-bar-id", "mobile-bottom-menu");
|
|
40402
40417
|
}
|
|
40403
|
-
},
|
|
40418
|
+
}, 600);
|
|
40404
40419
|
});
|
|
40405
40420
|
}
|
|
40406
40421
|
close(reason) {
|
|
@@ -84786,6 +84801,9 @@ ${data2.flowchartText}
|
|
|
84786
84801
|
this.block = block;
|
|
84787
84802
|
}
|
|
84788
84803
|
get commands() {
|
|
84804
|
+
if (clientType.isMobile) {
|
|
84805
|
+
return [];
|
|
84806
|
+
}
|
|
84789
84807
|
if (this.isHoveringImageEmpty()) {
|
|
84790
84808
|
return [];
|
|
84791
84809
|
}
|
|
@@ -84828,7 +84846,9 @@ ${data2.flowchartText}
|
|
|
84828
84846
|
video.controls = true;
|
|
84829
84847
|
video.src = url;
|
|
84830
84848
|
video.addEventListener("canplay", () => {
|
|
84831
|
-
|
|
84849
|
+
if (!clientType.isMobile) {
|
|
84850
|
+
editor.addCustom("video-resizer", () => new VideoResizer(editor));
|
|
84851
|
+
}
|
|
84832
84852
|
this.getMedia(editor, blockData.id).removeListener("mediaError", this.handleMediaError);
|
|
84833
84853
|
this.getMedia(editor, blockData.id).addListener("mediaError", this.handleMediaError);
|
|
84834
84854
|
this.getMedia(editor, blockData.id).removeFullScreen();
|
|
@@ -84870,9 +84890,11 @@ ${data2.flowchartText}
|
|
|
84870
84890
|
};
|
|
84871
84891
|
}
|
|
84872
84892
|
handleMediaError(editor, type, blockId) {
|
|
84873
|
-
|
|
84874
|
-
|
|
84875
|
-
|
|
84893
|
+
if (!clientType.isMobile) {
|
|
84894
|
+
const videoResizer = editor.addCustom("video-resizer", () => new VideoResizer(editor));
|
|
84895
|
+
const block = editor.getBlockById(blockId);
|
|
84896
|
+
videoResizer.disableBlockResize(block);
|
|
84897
|
+
}
|
|
84876
84898
|
}
|
|
84877
84899
|
updateMediaElement(editor, mediaElement, blockData, url) {
|
|
84878
84900
|
const video = mediaElement.querySelector(":scope .video-container > video");
|
|
@@ -84886,12 +84908,12 @@ ${data2.flowchartText}
|
|
|
84886
84908
|
video.style.width = "";
|
|
84887
84909
|
}
|
|
84888
84910
|
const block = editor.getBlockById(blockData.id);
|
|
84889
|
-
|
|
84890
|
-
|
|
84911
|
+
if (!clientType.isMobile) {
|
|
84912
|
+
setTimeout(() => {
|
|
84891
84913
|
const videoResizer = editor.addCustom("video-resizer", () => new VideoResizer(editor));
|
|
84892
84914
|
videoResizer.updateResizer(block);
|
|
84893
|
-
}
|
|
84894
|
-
}
|
|
84915
|
+
});
|
|
84916
|
+
}
|
|
84895
84917
|
return video;
|
|
84896
84918
|
}
|
|
84897
84919
|
}
|
|
@@ -86823,7 +86845,7 @@ ${data2.flowchartText}
|
|
|
86823
86845
|
}
|
|
86824
86846
|
}
|
|
86825
86847
|
});
|
|
86826
|
-
editor.version = "2.1.1-beta.
|
|
86848
|
+
editor.version = "2.1.1-beta.85";
|
|
86827
86849
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
86828
86850
|
window.setReauthFail = (fail) => {
|
|
86829
86851
|
window.isReauthError = fail;
|
|
@@ -86924,7 +86946,7 @@ ${data2.flowchartText}
|
|
|
86924
86946
|
});
|
|
86925
86947
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
86926
86948
|
OnesEditorToolbar.register(editor);
|
|
86927
|
-
editor.version = "2.1.1-beta.
|
|
86949
|
+
editor.version = "2.1.1-beta.85";
|
|
86928
86950
|
return editor;
|
|
86929
86951
|
}
|
|
86930
86952
|
async function showDocVersions(editor, options, serverUrl) {
|