@ones-editor/editor 2.8.8 → 2.8.9-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.
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +24 -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;
|
|
@@ -12037,15 +12050,16 @@ var __publicField = (obj, key, value) => {
|
|
|
12037
12050
|
if (!isTextKindBlock(this.editor, block)) {
|
|
12038
12051
|
return;
|
|
12039
12052
|
}
|
|
12053
|
+
const eTarget = event.target;
|
|
12040
12054
|
const box = getParentBox(elem);
|
|
12041
|
-
if (box) {
|
|
12055
|
+
if (box && isChildNode(box, eTarget)) {
|
|
12042
12056
|
const block2 = getParentBlock(box);
|
|
12043
12057
|
assert(logger$4C, block2, "no parent block");
|
|
12044
12058
|
(_b = (_a = this.editor.editorBoxes.getBoxClass(getBoxTypeFromElement(box))) == null ? void 0 : _a.handleClickBox) == null ? void 0 : _b.call(_a, this.editor, box, event);
|
|
12045
12059
|
return;
|
|
12046
12060
|
}
|
|
12047
12061
|
const link2 = elem.closest("span.text.link");
|
|
12048
|
-
if (link2) {
|
|
12062
|
+
if (link2 && isChildNode(link2, eTarget)) {
|
|
12049
12063
|
const children = getTextBlockContentChildren(block);
|
|
12050
12064
|
const index2 = children.indexOf(link2);
|
|
12051
12065
|
if (index2 !== -1) {
|
|
@@ -78867,10 +78881,11 @@ ${docStr}
|
|
|
78867
78881
|
const nameElement = createElement("div", ["file-name"], detail);
|
|
78868
78882
|
if (afterIndex > 0) {
|
|
78869
78883
|
createElement("span", ["file-name-pre"], nameElement, fileName.slice(0, afterIndex));
|
|
78870
|
-
createElement("span", [], nameElement, fileName.slice(afterIndex));
|
|
78884
|
+
createElement("span", ["file-name-suf"], nameElement, fileName.slice(afterIndex));
|
|
78871
78885
|
} else {
|
|
78872
78886
|
nameElement.textContent = fileName;
|
|
78873
78887
|
}
|
|
78888
|
+
nameElement.title = fileName;
|
|
78874
78889
|
const infos = createElement("div", ["file-info"], detail);
|
|
78875
78890
|
if (creator) {
|
|
78876
78891
|
createElement("div", ["file-creator"], infos, creator);
|
|
@@ -92579,7 +92594,7 @@ ${data2.plantumlText}
|
|
|
92579
92594
|
}
|
|
92580
92595
|
}
|
|
92581
92596
|
});
|
|
92582
|
-
editor.version = "2.8.
|
|
92597
|
+
editor.version = "2.8.9-beta.2";
|
|
92583
92598
|
return editor;
|
|
92584
92599
|
}
|
|
92585
92600
|
function isDoc(doc2) {
|
|
@@ -92692,7 +92707,7 @@ ${data2.plantumlText}
|
|
|
92692
92707
|
}
|
|
92693
92708
|
});
|
|
92694
92709
|
OnesEditorToolbar.register(editor);
|
|
92695
|
-
editor.version = "2.8.
|
|
92710
|
+
editor.version = "2.8.9-beta.2";
|
|
92696
92711
|
return editor;
|
|
92697
92712
|
}
|
|
92698
92713
|
async function showDocVersions(editor, options, serverUrl) {
|