@underverse-ui/underverse 1.0.158 → 1.0.159

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@underverse-ui/underverse",
3
- "version": "1.0.158",
3
+ "version": "1.0.159",
4
4
  "sourceEntry": "src/index.ts",
5
5
  "totalExports": 232,
6
6
  "exports": [
package/dist/index.cjs CHANGED
@@ -28502,12 +28502,12 @@ function buildUEditorExtensions({
28502
28502
  table_row_default,
28503
28503
  CustomTableCell.configure({
28504
28504
  HTMLAttributes: {
28505
- class: "border border-border p-2 min-w-25"
28505
+ class: "border border-border px-2 py-0 min-w-25"
28506
28506
  }
28507
28507
  }),
28508
28508
  CustomTableHeader.configure({
28509
28509
  HTMLAttributes: {
28510
- class: "border border-border p-2 bg-muted font-semibold min-w-25"
28510
+ class: "border border-border px-2 py-0 bg-muted font-semibold min-w-25"
28511
28511
  }
28512
28512
  }),
28513
28513
  import_extension_character_count.default.configure({
@@ -37896,10 +37896,16 @@ var UEDITOR_PROSEMIRROR_CLASS_NAME = cn(
37896
37896
  "[&_td]:align-top",
37897
37897
  "[&_td]:box-border",
37898
37898
  "[&_td]:select-text",
37899
+ "[&_td]:px-2",
37900
+ "[&_td]:py-0",
37901
+ "[&_td_p]:my-0",
37899
37902
  "[&_th]:relative",
37900
37903
  "[&_th]:align-top",
37901
37904
  "[&_th]:box-border",
37902
37905
  "[&_th]:select-text",
37906
+ "[&_th]:px-2",
37907
+ "[&_th]:py-0",
37908
+ "[&_th_p]:my-0",
37903
37909
  "[&_.selectedCell]:after:content-['']",
37904
37910
  "[&_.selectedCell]:after:absolute",
37905
37911
  "[&_.selectedCell]:after:inset-0",
@@ -38538,17 +38544,18 @@ function resolveColumnWidths(table) {
38538
38544
  function setStyleProperty(element, property, value) {
38539
38545
  element.style.setProperty(property, value);
38540
38546
  }
38541
- function resolveRowHeight(row) {
38547
+ function resolveExplicitRowHeight(row) {
38542
38548
  const explicitRowHeight = parsePixelWidth2(row.getAttribute("data-row-height")) ?? parseStyleHeight(row.style);
38543
38549
  if (explicitRowHeight) return Math.max(MIN_TABLE_ROW_HEIGHT, explicitRowHeight);
38544
38550
  const cellHeight = Array.from(row.cells).reduce((maxHeight, cell) => {
38545
38551
  const height = parsePixelWidth2(cell.getAttribute("height")) ?? parseStyleHeight(cell.style);
38546
38552
  return height ? Math.max(maxHeight, height) : maxHeight;
38547
38553
  }, 0);
38548
- return Math.max(MIN_TABLE_ROW_HEIGHT, cellHeight);
38554
+ return cellHeight ? Math.max(MIN_TABLE_ROW_HEIGHT, cellHeight) : null;
38549
38555
  }
38550
38556
  function normalizePreviewRowHeight(row) {
38551
- const rowHeight = resolveRowHeight(row);
38557
+ const rowHeight = resolveExplicitRowHeight(row);
38558
+ if (!rowHeight) return;
38552
38559
  row.style.height = `${rowHeight}px`;
38553
38560
  row.style.minHeight = `${rowHeight}px`;
38554
38561
  Array.from(row.cells).forEach((cell) => {