@ones-editor/editor 2.2.16-beta.4 → 2.2.16-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/dist/index.js
CHANGED
|
@@ -7036,7 +7036,7 @@ div[data-command-bar-id=mobile-bottom-menu] .mobile-menu-wrap.editor-mention .co
|
|
|
7036
7036
|
}
|
|
7037
7037
|
[data-command-bar-id=editor-toolbar] .editor-content div[data-type=editor-block] div[data-type=block-tools] div.select-handle .line,
|
|
7038
7038
|
.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] div.select-handle .line {
|
|
7039
|
-
width:
|
|
7039
|
+
width: 2px;
|
|
7040
7040
|
height: 16px;
|
|
7041
7041
|
background-color: var(--primary-color);
|
|
7042
7042
|
flex-grow: 1;
|
|
@@ -7044,8 +7044,8 @@ div[data-command-bar-id=mobile-bottom-menu] .mobile-menu-wrap.editor-mention .co
|
|
|
7044
7044
|
}
|
|
7045
7045
|
[data-command-bar-id=editor-toolbar] .editor-content div[data-type=editor-block] div[data-type=block-tools] div.select-handle .circle,
|
|
7046
7046
|
.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] div.select-handle .circle {
|
|
7047
|
-
width:
|
|
7048
|
-
height:
|
|
7047
|
+
width: 8px;
|
|
7048
|
+
height: 8px;
|
|
7049
7049
|
border-radius: 50%;
|
|
7050
7050
|
flex-grow: 0;
|
|
7051
7051
|
flex-shrink: 0;
|
|
@@ -52173,7 +52173,10 @@ ${codeText}
|
|
|
52173
52173
|
}
|
|
52174
52174
|
this.toolbar.updateItems(commands);
|
|
52175
52175
|
const lastBlock2 = selectedBlocks[selectedBlocks.length - 1];
|
|
52176
|
-
|
|
52176
|
+
let reverseToolbar = !this.editor.selection.range.isReverse() && lastBlock2 !== firstBlock;
|
|
52177
|
+
if (!reverseToolbar && isTitleBlock$2(firstBlock.block)) {
|
|
52178
|
+
reverseToolbar = true;
|
|
52179
|
+
}
|
|
52177
52180
|
const selectedBlock = reverseToolbar ? lastBlock2 : firstBlock;
|
|
52178
52181
|
const rect = getReferenceClientRect(this.editor, selectedBlock);
|
|
52179
52182
|
const anchor2 = createBlockAnchor(this.editor, selectedBlock.block, "editor-readonly-toolbar", rect);
|
|
@@ -81131,8 +81134,8 @@ ${content}
|
|
|
81131
81134
|
},
|
|
81132
81135
|
convertTo: convertTo$6
|
|
81133
81136
|
};
|
|
81134
|
-
const HANDLE_CIRCLE_SIZE =
|
|
81135
|
-
const HANDLE_WIDTH =
|
|
81137
|
+
const HANDLE_CIRCLE_SIZE = 7;
|
|
81138
|
+
const HANDLE_WIDTH = 7;
|
|
81136
81139
|
function createSelectHandle(type) {
|
|
81137
81140
|
const container = createElement("div", ["select-handle", type], null);
|
|
81138
81141
|
createElement("div", ["line"], container);
|
|
@@ -81235,12 +81238,12 @@ ${content}
|
|
|
81235
81238
|
const endRect = getBlockCaretRect(this.editor, endBlock, end);
|
|
81236
81239
|
const startToolsRect = startBlock.getBoundingClientRect();
|
|
81237
81240
|
const endToolsRect = endBlock.getBoundingClientRect();
|
|
81238
|
-
const startGripperHeight =
|
|
81239
|
-
const endGripperHeight =
|
|
81241
|
+
const startGripperHeight = startToolsRect.height + HANDLE_CIRCLE_SIZE;
|
|
81242
|
+
const endGripperHeight = endToolsRect.height + HANDLE_CIRCLE_SIZE;
|
|
81240
81243
|
const startX = startRect.left - startToolsRect.left - startBlock.clientLeft - HANDLE_WIDTH / 2;
|
|
81241
|
-
const startY =
|
|
81244
|
+
const startY = startBlock.clientTop - HANDLE_CIRCLE_SIZE;
|
|
81242
81245
|
const endX = endRect.left - endToolsRect.left - endBlock.clientLeft - HANDLE_WIDTH / 2;
|
|
81243
|
-
const endY =
|
|
81246
|
+
const endY = endBlock.clientTop;
|
|
81244
81247
|
this.startGripper.style.left = `${startX}px`;
|
|
81245
81248
|
this.startGripper.style.top = `${startY}px`;
|
|
81246
81249
|
this.endGripper.style.left = `${endX}px`;
|
|
@@ -88372,7 +88375,7 @@ ${data2.flowchartText}
|
|
|
88372
88375
|
}
|
|
88373
88376
|
}
|
|
88374
88377
|
});
|
|
88375
|
-
editor.version = "2.2.16-beta.
|
|
88378
|
+
editor.version = "2.2.16-beta.6";
|
|
88376
88379
|
return editor;
|
|
88377
88380
|
}
|
|
88378
88381
|
function isDoc(doc2) {
|
|
@@ -88466,7 +88469,7 @@ ${data2.flowchartText}
|
|
|
88466
88469
|
});
|
|
88467
88470
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88468
88471
|
OnesEditorToolbar.register(editor);
|
|
88469
|
-
editor.version = "2.2.16-beta.
|
|
88472
|
+
editor.version = "2.2.16-beta.6";
|
|
88470
88473
|
return editor;
|
|
88471
88474
|
}
|
|
88472
88475
|
async function showDocVersions(editor, options, serverUrl) {
|