@ones-editor/editor 0.0.7-beta.32 → 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/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 && isEmbedBlock(firstBlock.block)) {
43206
- if (reason === "click") {
43207
- this.showObjectToolbar(null);
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 nextBlock = getNextBlock(tableBlock);
47171
- if (nextBlock) {
47172
- editor.selection.selectBlock(nextBlock, 0);
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);
@@ -59163,7 +59168,7 @@ ${codeText}
59163
59168
  FilePreviewType2["Preview"] = "preview";
59164
59169
  return FilePreviewType2;
59165
59170
  })(FilePreviewType || {});
59166
- const AttachIcon = '<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18" fill="#5587F0">\n<g clip-path="url(#clip0)">\n<path d="M6.01 10.4886C5.85 10.4886 5.7 10.4286 5.58 10.3086L3.98 8.71859C3.35 8.07859 3 7.23859 3 6.34859C3 5.45859 3.35 4.60859 3.98 3.97859C5.29 2.66859 7.41 2.66859 8.72 3.97859L10.31 5.56859C10.55 5.80859 10.55 6.18859 10.31 6.42859C10.07 6.66859 9.69 6.66859 9.45 6.42859L7.86 4.83859C7.03 4.00859 5.68 4.00859 4.85 4.83859C4.45 5.23859 4.23 5.77859 4.23 6.34859C4.23 6.91859 4.45 7.44859 4.85 7.85859L6.44 9.44859C6.68 9.68859 6.68 10.0686 6.44 10.3086C6.32 10.4286 6.16 10.4886 6.01 10.4886ZM11.65 14.9986C10.79 14.9986 9.93 14.6686 9.28 14.0186L7.4 12.1386C7.16 11.8986 7.16 11.5186 7.4 11.2786C7.64 11.0386 8.02 11.0386 8.26 11.2786L10.14 13.1586C10.97 13.9886 12.32 13.9886 13.15 13.1586C13.55 12.7586 13.77 12.2186 13.77 11.6486C13.77 11.0786 13.55 10.5486 13.15 10.1386L11.28 8.25859C11.04 8.01859 11.04 7.63859 11.28 7.39859C11.52 7.15859 11.9 7.15859 12.14 7.39859L14.02 9.27859C14.65 9.90859 15 10.7486 15 11.6486C15 12.5386 14.65 13.3886 14.02 14.0186C13.37 14.6686 12.51 14.9986 11.65 14.9986Z" fill="currentColor"/>\n<path d="M10.88 10.8604C10.67 11.0704 10.32 11.0704 10.1 10.8604L7.64004 8.40039C7.43004 8.19039 7.43004 7.84039 7.64004 7.62039C7.85004 7.41039 8.20004 7.41039 8.42004 7.62039L10.88 10.0804C11.1 10.3004 11.1 10.6404 10.88 10.8604Z" fill="currentColor"/>\n</g>\n<defs>\n<clipPath id="clip0">\n<rect width="12" height="12" fill="white" transform="translate(3 3)"/>\n</clipPath>\n</defs>\n</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>';
59167
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';
59168
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';
59169
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "0.0.7-beta.32",
3
+ "version": "0.0.7-beta.33",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",