@ones-editor/editor 2.8.22 → 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%;
@@ -72017,8 +72017,8 @@ ${codeText}
72017
72017
  const blockData = this.editor.getBlockData(this.activeTableBlock);
72018
72018
  const containerId = focus.childContainerId;
72019
72019
  const bkg = blockData[`${containerId}_background`];
72020
- if (bkg) {
72021
- 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;
72022
72022
  }
72023
72023
  return -1;
72024
72024
  }
@@ -72481,8 +72481,12 @@ ${codeText}
72481
72481
  cellElem.rowSpan = cell.rowSpan;
72482
72482
  }
72483
72483
  const backgroundClass = tableData[getCellBkgColorKey(subContainerId)];
72484
- if (backgroundClass) {
72485
- 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
+ }
72486
72490
  }
72487
72491
  if (col === 0 && tableData.hasColTitle) {
72488
72492
  addClass(cellElem, TABLE_CLASS.COL_TITLE_ITEM);
@@ -93113,7 +93117,7 @@ ${data2.plantumlText}
93113
93117
  }
93114
93118
  }
93115
93119
  });
93116
- editor.version = "2.8.22";
93120
+ editor.version = "2.8.23-beta.1";
93117
93121
  return editor;
93118
93122
  }
93119
93123
  function isDoc(doc2) {
@@ -93226,7 +93230,7 @@ ${data2.plantumlText}
93226
93230
  }
93227
93231
  });
93228
93232
  OnesEditorToolbar.register(editor);
93229
- editor.version = "2.8.22";
93233
+ editor.version = "2.8.23-beta.1";
93230
93234
  return editor;
93231
93235
  }
93232
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.22",
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",