@ones-editor/editor 2.8.21 → 2.8.23-beta.1

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
@@ -4842,17 +4842,17 @@ div[data-type=editor-block].table-block.child-focused div[data-type=table-conten
4842
4842
  border-color: #b9bfc8;
4843
4843
  }
4844
4844
  div[data-type=editor-block].table-block.full-selected > div[data-type=block-content] > .scroll-container-root > .scroll-container > .scroll-area > div[data-type=table-content] > table {
4845
- background-color: var(--background-selection);
4845
+ background-color: var(--background-selection) !important;
4846
4846
  }
4847
4847
  div[data-type=editor-block].table-block.full-selected > div[data-type=block-content] > .scroll-container-root > .scroll-container > .scroll-area > div[data-type=table-content] > table td,
4848
4848
  div[data-type=editor-block].table-block.full-selected > div[data-type=block-content] > .scroll-container-root > .scroll-container > .scroll-area > div[data-type=table-content] > table th,
4849
4849
  div[data-type=editor-block].table-block.full-selected > div[data-type=block-content] > .scroll-container-root > .scroll-container > .scroll-area > div[data-type=table-content] > table tr {
4850
- background-color: transparent;
4850
+ background-color: transparent !important;
4851
4851
  }
4852
4852
  div[data-type=editor-block].table-block div[data-type=table-content] > table tbody tr td.selected,
4853
4853
  div[data-type=editor-block].table-block div[data-type=table-content] > table.row-title tbody tr td.selected,
4854
4854
  div[data-type=editor-block].table-block div[data-type=table-content] > table.col-title tbody tr td.selected {
4855
- background-color: var(--background-selection);
4855
+ background-color: var(--background-selection) !important;
4856
4856
  }
4857
4857
  div[data-type=editor-block].table-block div[data-type=table-content] > table td div[data-type=editor-block].table-block div[data-type=table-content] > table {
4858
4858
  max-width: 100%;
@@ -8951,6 +8951,11 @@ var __publicField = (obj, key, value) => {
8951
8951
  getCurrentLang
8952
8952
  }, Symbol.toStringTag, { value: "Module" }));
8953
8953
  const style$f = "";
8954
+ (function() {
8955
+ String.prototype.replaceAll || (String.prototype.replaceAll = function(e2, t2) {
8956
+ return Object.prototype.toString.call(e2).toLowerCase() === "[object regexp]" ? this.replace(e2, t2) : this.replace(new RegExp(e2, "g"), t2);
8957
+ });
8958
+ })();
8954
8959
  class OnesEditorCustomDataWrapper {
8955
8960
  constructor(editor, data2) {
8956
8961
  this.editor = editor;
@@ -72012,8 +72017,8 @@ ${codeText}
72012
72017
  const blockData = this.editor.getBlockData(this.activeTableBlock);
72013
72018
  const containerId = focus.childContainerId;
72014
72019
  const bkg = blockData[`${containerId}_background`];
72015
- if (bkg) {
72016
- return Number.parseInt((_a = bkg.substring(BACKGROUND_COLOR_PREFIX.length)) != null ? _a : "0", 10);
72020
+ if (bkg && bkg.startsWith(BACKGROUND_COLOR_PREFIX)) {
72021
+ return Number.parseInt((_a = bkg.substring(BACKGROUND_COLOR_PREFIX.length)) != null ? _a : "0", 10) || -1;
72017
72022
  }
72018
72023
  return -1;
72019
72024
  }
@@ -72476,8 +72481,12 @@ ${codeText}
72476
72481
  cellElem.rowSpan = cell.rowSpan;
72477
72482
  }
72478
72483
  const backgroundClass = tableData[getCellBkgColorKey(subContainerId)];
72479
- if (backgroundClass) {
72480
- addClass(cellElem, backgroundClass);
72484
+ if (backgroundClass && typeof backgroundClass === "string") {
72485
+ if (backgroundClass.startsWith("style-bg-")) {
72486
+ addClass(cellElem, backgroundClass);
72487
+ } else {
72488
+ cellElem.style.backgroundColor = backgroundClass;
72489
+ }
72481
72490
  }
72482
72491
  if (col === 0 && tableData.hasColTitle) {
72483
72492
  addClass(cellElem, TABLE_CLASS.COL_TITLE_ITEM);
@@ -93108,7 +93117,7 @@ ${data2.plantumlText}
93108
93117
  }
93109
93118
  }
93110
93119
  });
93111
- editor.version = "2.8.21";
93120
+ editor.version = "2.8.23-beta.1";
93112
93121
  return editor;
93113
93122
  }
93114
93123
  function isDoc(doc2) {
@@ -93221,7 +93230,7 @@ ${data2.plantumlText}
93221
93230
  }
93222
93231
  });
93223
93232
  OnesEditorToolbar.register(editor);
93224
- editor.version = "2.8.21";
93233
+ editor.version = "2.8.23-beta.1";
93225
93234
  return editor;
93226
93235
  }
93227
93236
  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.21",
3
+ "version": "2.8.23-beta.1",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {
@@ -48,7 +48,6 @@
48
48
  "marked-extended-latex": "^1.1.0",
49
49
  "markmap-common": "0.15.3",
50
50
  "markmap-view": "0.15.4",
51
- "mermaid": "^9.1.0",
52
51
  "mime-db": "^1.52.0",
53
52
  "nanoid": "^3.2.0",
54
53
  "ot-json1": "^1.0.2",