@ones-editor/editor 0.0.7-beta.31 → 0.0.7-beta.33
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 +18 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4215,6 +4215,9 @@ div.editor-root div.editor-content div[data-type=editor-container] div[data-type
|
|
|
4215
4215
|
display: inline-flex;
|
|
4216
4216
|
vertical-align: text-bottom;
|
|
4217
4217
|
}
|
|
4218
|
+
div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=file] span[data-type=box-content] span.file-icon svg {
|
|
4219
|
+
width: 18px;
|
|
4220
|
+
}
|
|
4218
4221
|
div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=file] span[data-type=box-content] .file-name {
|
|
4219
4222
|
color: var(--primary-color);
|
|
4220
4223
|
padding: 0;
|
|
@@ -43202,11 +43205,16 @@ var __publicField = (obj, key, value) => {
|
|
|
43202
43205
|
if (!firstBlock) {
|
|
43203
43206
|
return;
|
|
43204
43207
|
}
|
|
43205
|
-
if (selectedBlocks.length === 1
|
|
43206
|
-
if (
|
|
43207
|
-
|
|
43208
|
+
if (selectedBlocks.length === 1) {
|
|
43209
|
+
if (isEmbedBlock(firstBlock.block)) {
|
|
43210
|
+
if (reason === "click") {
|
|
43211
|
+
this.showObjectToolbar(null);
|
|
43212
|
+
}
|
|
43213
|
+
return;
|
|
43214
|
+
}
|
|
43215
|
+
if (isComplexKindBlock(this.editor, firstBlock.block) && range.isSimple()) {
|
|
43216
|
+
return;
|
|
43208
43217
|
}
|
|
43209
|
-
return;
|
|
43210
43218
|
}
|
|
43211
43219
|
if (isSelectBoxOnly(this.editor)) {
|
|
43212
43220
|
return;
|
|
@@ -47167,12 +47175,9 @@ $$${mathData.mathjaxText}$$
|
|
|
47167
47175
|
assert(logger$1f, tableBlock && isTableBlock(tableBlock), "not a table block");
|
|
47168
47176
|
const nextContainer = getTableNextContainer(tableBlock, container, "ArrowRight");
|
|
47169
47177
|
if (!nextContainer) {
|
|
47170
|
-
const
|
|
47171
|
-
|
|
47172
|
-
|
|
47173
|
-
return true;
|
|
47174
|
-
}
|
|
47175
|
-
return tryMoveToNextTableContainer(editor, tableBlock);
|
|
47178
|
+
const tableData = editor.getBlockData(tableBlock);
|
|
47179
|
+
insertRow(editor, tableBlock, tableData.rows);
|
|
47180
|
+
return tryMoveToNextTableContainer(editor, block);
|
|
47176
47181
|
}
|
|
47177
47182
|
const firstBlock = getFirstChildBlock(nextContainer);
|
|
47178
47183
|
editor.selection.selectBlock(firstBlock, 0);
|
|
@@ -48812,8 +48817,8 @@ ${codeText}
|
|
|
48812
48817
|
}
|
|
48813
48818
|
function applyPlaceholderToBlock(editor, block, placeholder2) {
|
|
48814
48819
|
var _a;
|
|
48820
|
+
removePlaceholderFromBlock(editor, block);
|
|
48815
48821
|
if (!isEmptyTextBlockWithoutCompositionText(editor, block)) {
|
|
48816
|
-
removePlaceholderFromBlock(editor, block);
|
|
48817
48822
|
return;
|
|
48818
48823
|
}
|
|
48819
48824
|
const contentElem = getBlockContent(block);
|
|
@@ -51510,8 +51515,7 @@ ${codeText}
|
|
|
51510
51515
|
});
|
|
51511
51516
|
});
|
|
51512
51517
|
__publicField(this, "updatePlaceholder", (block) => {
|
|
51513
|
-
|
|
51514
|
-
contentElem.setAttribute("data-content-placeholder", i18n$1.t("blockMenu.button.searchPlaceholder"));
|
|
51518
|
+
applyPlaceholderToBlock(this.editor, block, i18n$1.t("blockMenu.button.searchPlaceholder"));
|
|
51515
51519
|
});
|
|
51516
51520
|
__publicField(this, "handleChanged", () => {
|
|
51517
51521
|
const block = this.emptyBlockMenu.currentBlock;
|
|
@@ -59164,7 +59168,7 @@ ${codeText}
|
|
|
59164
59168
|
FilePreviewType2["Preview"] = "preview";
|
|
59165
59169
|
return FilePreviewType2;
|
|
59166
59170
|
})(FilePreviewType || {});
|
|
59167
|
-
const AttachIcon = '<svg
|
|
59171
|
+
const AttachIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6.49669 1C4.80282 1 3.0118 2.3515 3.0118 3.76237L3 10.6206M6.49669 1C8.41943 1 10.0154 2.60058 10.0154 4.17342M6.49669 1C7.43289 1 8.28684 1.42118 8.90405 1.96796C9.50746 2.50252 10.0154 3.29036 10.0154 4.17342M10.0154 4.17342L10.0154 9.61446C10.0154 10.4166 9.23033 11.2316 8 11.2316C6.91283 11.2316 6.01026 10.5735 6.01026 9.87981L5.98457 5.04102M3 10.6206C3 13.1126 5.38055 15 8 15M3 10.6206C3 12.9301 5.13252 15 8 15M8 15C10.6194 15 13 13.1988 13 10.7068M8 15C10.8675 15 13 13.0162 13 10.7068M13 10.7068V5.04102" stroke="currentColor" stroke-linecap="square" stroke-linejoin="round"/>\n<path d="M13 4V10C13 12.7614 10.7614 15 8 15C5.23858 15 3 12.7614 3 10V4.5" stroke="currentColor"/>\n<path d="M10 9V4.5C10 2.567 8.433 1 6.5 1C4.567 1 3 2.567 3 4.5" stroke="currentColor"/>\n<path d="M10 9C10 10.1046 9.10457 11 8 11C6.89543 11 6 10.1046 6 9V4" stroke="currentColor"/>\n</svg>';
|
|
59168
59172
|
const DownloadIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M2 8.94336L2 12.9434C2 13.4956 2.44772 13.9434 3 13.9434L13 13.9434C13.5523 13.9434 14 13.4956 14 12.9434L14 8.94336" stroke="#606060"/>\n<path d="M4.015 5.4597L8.00002 9.44472L11.9835 5.4597" stroke="#606060"/>\n<path d="M7.99994 9.44471L8 0" stroke="#606060"/>\n</svg>\n';
|
|
59169
59173
|
const ToLinkIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect x="0.5" y="5.5" width="5" height="5" rx="1" stroke="currentColor"/>\n<path d="M0 2.5L16 2.5" stroke="currentColor"/>\n<path d="M0 13.5L16 13.5" stroke="currentColor"/>\n<path d="M8 8L16 8" stroke="currentColor"/>\n</svg>\n';
|
|
59170
59174
|
const ToCardIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect x="0.5" y="5.5" width="15" height="5" rx="1" stroke="currentColor"/>\n<path d="M0 2.5L16 2.5" stroke="currentColor"/>\n<path d="M0 13.5L16 13.5" stroke="currentColor"/>\n</svg>\n';
|