@ones-editor/editor 2.8.7 → 2.8.9-beta.1
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 +29 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5405,12 +5405,16 @@ div.editor-root div.editor-content div[data-type=editor-container] div.embed-blo
|
|
|
5405
5405
|
border-radius: 6px;
|
|
5406
5406
|
border: 1px solid #DFE1E5;
|
|
5407
5407
|
padding: 10px;
|
|
5408
|
+
position: relative;
|
|
5408
5409
|
}
|
|
5409
5410
|
div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root::before {
|
|
5410
5411
|
border-radius: 3px;
|
|
5411
5412
|
}
|
|
5412
5413
|
div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root:hover {
|
|
5413
|
-
background-color:
|
|
5414
|
+
background-color: rgb(247, 248, 250);
|
|
5415
|
+
}
|
|
5416
|
+
div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root:hover .file-actions {
|
|
5417
|
+
background-color: rgb(247, 248, 250);
|
|
5414
5418
|
}
|
|
5415
5419
|
div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root:hover .file-actions button {
|
|
5416
5420
|
display: flex;
|
|
@@ -5429,13 +5433,17 @@ div.editor-root div.editor-content div[data-type=editor-container] div.embed-blo
|
|
|
5429
5433
|
display: flex;
|
|
5430
5434
|
flex-direction: row;
|
|
5431
5435
|
align-items: center;
|
|
5432
|
-
white-space: nowrap;
|
|
5433
5436
|
font-size: 14px;
|
|
5434
5437
|
margin-top: 2px;
|
|
5435
5438
|
}
|
|
5436
5439
|
div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-details .file-name-pre {
|
|
5437
|
-
|
|
5440
|
+
display: -webkit-box;
|
|
5438
5441
|
overflow: hidden;
|
|
5442
|
+
-webkit-line-clamp: 1;
|
|
5443
|
+
-webkit-box-orient: vertical;
|
|
5444
|
+
}
|
|
5445
|
+
div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-details .file-name-suf {
|
|
5446
|
+
white-space: nowrap;
|
|
5439
5447
|
}
|
|
5440
5448
|
div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-info {
|
|
5441
5449
|
display: flex;
|
|
@@ -5462,8 +5470,13 @@ div.editor-root div.editor-content div[data-type=editor-container] div.embed-blo
|
|
|
5462
5470
|
flex-shrink: 0;
|
|
5463
5471
|
}
|
|
5464
5472
|
div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-actions {
|
|
5465
|
-
|
|
5473
|
+
position: absolute;
|
|
5474
|
+
top: 0;
|
|
5475
|
+
right: 0;
|
|
5476
|
+
bottom: 0;
|
|
5466
5477
|
display: flex;
|
|
5478
|
+
align-items: center;
|
|
5479
|
+
justify-content: center;
|
|
5467
5480
|
column-gap: 15px;
|
|
5468
5481
|
margin-right: 10px;
|
|
5469
5482
|
margin-left: 5px;
|
|
@@ -53814,7 +53827,13 @@ ${codeText}
|
|
|
53814
53827
|
this._lastClickTime = Date.now();
|
|
53815
53828
|
});
|
|
53816
53829
|
__publicField(this, "handleClose", () => {
|
|
53830
|
+
var _a;
|
|
53817
53831
|
if (shouldFocusToEditor(this.editor) && !clientType.isMobile) {
|
|
53832
|
+
const activeElement = (_a = document.getSelection()) == null ? void 0 : _a.focusNode;
|
|
53833
|
+
if (activeElement && isInBlockTools(activeElement)) {
|
|
53834
|
+
logger$1X.debug("focus is in block tools, ignore focus");
|
|
53835
|
+
return;
|
|
53836
|
+
}
|
|
53818
53837
|
this.editor.focus({
|
|
53819
53838
|
preventScroll: true
|
|
53820
53839
|
});
|
|
@@ -78861,10 +78880,11 @@ ${docStr}
|
|
|
78861
78880
|
const nameElement = createElement("div", ["file-name"], detail);
|
|
78862
78881
|
if (afterIndex > 0) {
|
|
78863
78882
|
createElement("span", ["file-name-pre"], nameElement, fileName.slice(0, afterIndex));
|
|
78864
|
-
createElement("span", [], nameElement, fileName.slice(afterIndex));
|
|
78883
|
+
createElement("span", ["file-name-suf"], nameElement, fileName.slice(afterIndex));
|
|
78865
78884
|
} else {
|
|
78866
78885
|
nameElement.textContent = fileName;
|
|
78867
78886
|
}
|
|
78887
|
+
nameElement.title = fileName;
|
|
78868
78888
|
const infos = createElement("div", ["file-info"], detail);
|
|
78869
78889
|
if (creator) {
|
|
78870
78890
|
createElement("div", ["file-creator"], infos, creator);
|
|
@@ -84348,8 +84368,8 @@ ${docStr}
|
|
|
84348
84368
|
command: {
|
|
84349
84369
|
name: "\u30C0\u30A4\u30A2\u30B0\u30E9\u30E0",
|
|
84350
84370
|
bothShow: "\u30B3\u30FC\u30C9\u3068\u30C0\u30A4\u30A2\u30B0\u30E9\u30E0\u3092\u8868\u793A",
|
|
84351
|
-
codeShow: "\
|
|
84352
|
-
drawShow: "\
|
|
84371
|
+
codeShow: "\u30B3\u30FC\u30C9\u306E\u307F\u8868\u793A",
|
|
84372
|
+
drawShow: "\u30C0\u30A4\u30A2\u30B0\u30E9\u30E0\u306E\u307F\u8868\u793A"
|
|
84353
84373
|
}
|
|
84354
84374
|
}
|
|
84355
84375
|
};
|
|
@@ -92573,7 +92593,7 @@ ${data2.plantumlText}
|
|
|
92573
92593
|
}
|
|
92574
92594
|
}
|
|
92575
92595
|
});
|
|
92576
|
-
editor.version = "2.8.
|
|
92596
|
+
editor.version = "2.8.9-beta.1";
|
|
92577
92597
|
return editor;
|
|
92578
92598
|
}
|
|
92579
92599
|
function isDoc(doc2) {
|
|
@@ -92686,7 +92706,7 @@ ${data2.plantumlText}
|
|
|
92686
92706
|
}
|
|
92687
92707
|
});
|
|
92688
92708
|
OnesEditorToolbar.register(editor);
|
|
92689
|
-
editor.version = "2.8.
|
|
92709
|
+
editor.version = "2.8.9-beta.1";
|
|
92690
92710
|
return editor;
|
|
92691
92711
|
}
|
|
92692
92712
|
async function showDocVersions(editor, options, serverUrl) {
|