@ones-editor/editor 2.8.12 → 2.8.13

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
@@ -8011,6 +8011,7 @@ div.editor-root div.editor-content div[data-block-type=embed] > .embed-mask::aft
8011
8011
  display: flex;
8012
8012
  justify-content: center;
8013
8013
  align-items: center;
8014
+ color: transparent;
8014
8015
  width: 20px;
8015
8016
  height: 20px;
8016
8017
  border-radius: 3px;
@@ -8022,6 +8023,7 @@ div.editor-root div.editor-content div[data-block-type=embed] > .embed-mask::aft
8022
8023
  cursor: pointer;
8023
8024
  }
8024
8025
  .editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .creation-dot-button:hover {
8026
+ color: white;
8025
8027
  background: var(--background-default-o-color-bg-primary, #0064ff);
8026
8028
  /* o-shadow-3 */
8027
8029
  box-shadow: 0px 0px 1px 0px rgba(45, 45, 46, 0.2), 0px 8px 16px -4px rgba(45, 45, 46, 0.15);
@@ -40500,7 +40502,7 @@ ${codeText}
40500
40502
  const NextIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M5.76573 4.17763L9.58809 7.99999L5.76573 11.8209" stroke="currentColor"/>\n</svg>\n';
40501
40503
  const MoreIcon$1 = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<circle cx="3" cy="8" r="0.5" fill="currentColor" stroke="currentColor"/>\n<circle cx="8" cy="8" r="0.5" fill="currentColor" stroke="currentColor"/>\n<circle cx="13" cy="8" r="0.5" fill="currentColor" stroke="currentColor"/>\n</svg>';
40502
40504
  const TextColorIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M2.5 14.5L8 1.5L13.5 14.5" stroke="currentColor" stroke-linejoin="round"/>\n<path d="M4.5 9.5H11.5" stroke="currentColor"/>\n</svg>';
40503
- const AddIcon = '<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6.005 5.99501L5.99501 1M6.005 5.99501H11M6.005 5.99501V11M6.005 5.99501L1 6.005" stroke="white" stroke-linecap="square" stroke-linejoin="round"/>\n</svg>\n';
40505
+ const AddIcon = '<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6.005 5.99501L5.99501 1M6.005 5.99501H11M6.005 5.99501V11M6.005 5.99501L1 6.005" stroke="currentColor" stroke-linecap="square" stroke-linejoin="round"/>\n</svg>\n';
40504
40506
  const ArrowDownIcon$1 = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M4.17763 5.76573L7.99999 9.58809L11.8209 5.76573" stroke="currentColor"/>\n</svg>\n';
40505
40507
  const arrowUp = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M4.17763 10.2343L7.99999 6.41191L11.8209 10.2343" stroke="currentColor"/>\n</svg>\n';
40506
40508
  const arrowLeft = '<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<path d="M10.2343 4.17763L6.41191 7.99999L10.2343 11.8209" stroke="currentColor"/>\n</svg>\n';
@@ -43415,6 +43417,7 @@ ${codeText}
43415
43417
  }
43416
43418
  setCurrentButtonColor(colors) {
43417
43419
  setColorButtonColor(this.element, colors);
43420
+ this.latestColors = colors;
43418
43421
  }
43419
43422
  }
43420
43423
  const input = "";
@@ -71364,7 +71367,7 @@ ${codeText}
71364
71367
  elem.remove();
71365
71368
  });
71366
71369
  editor.domEvents.removeEventListener(getBlockContent(tableBlock), "scroll", handleTableScroll);
71367
- editor.addListener("afterClearSelection", handleAfterClearSelection);
71370
+ editor.removeListener("afterClearSelection", handleAfterClearSelection);
71368
71371
  }
71369
71372
  function getTopBorderHeight(editor, tableBlock) {
71370
71373
  assert(logger$13, isTableBlock(tableBlock), "invalid table block");
@@ -92604,7 +92607,7 @@ ${data2.plantumlText}
92604
92607
  }
92605
92608
  }
92606
92609
  });
92607
- editor.version = "2.8.12";
92610
+ editor.version = "2.8.13";
92608
92611
  return editor;
92609
92612
  }
92610
92613
  function isDoc(doc2) {
@@ -92717,7 +92720,7 @@ ${data2.plantumlText}
92717
92720
  }
92718
92721
  });
92719
92722
  OnesEditorToolbar.register(editor);
92720
- editor.version = "2.8.12";
92723
+ editor.version = "2.8.13";
92721
92724
  return editor;
92722
92725
  }
92723
92726
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "2.8.12",
3
+ "version": "2.8.13",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {