@harbour-enterprises/superdoc 1.0.0-alpha.52 → 1.0.0-alpha.53

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.
@@ -23154,9 +23154,10 @@ function generateTableProperties(node) {
23154
23154
  elements.push(borderElement);
23155
23155
  }
23156
23156
  if (tableIndent) {
23157
+ const { width, type: type2 } = tableIndent;
23157
23158
  const tableIndentElement = {
23158
23159
  name: "w:tblInd",
23159
- attributes: { "w:w": tableIndent }
23160
+ attributes: { "w:w": pixelsToTwips(width), "w:type": type2 }
23160
23161
  };
23161
23162
  elements.push(tableIndentElement);
23162
23163
  }
@@ -23499,7 +23500,8 @@ convertToSchema_fn = function(elements, insideTrackChange = false) {
23499
23500
  };
23500
23501
  handleLineBreakNode_fn = function(node) {
23501
23502
  const attrs = {};
23502
- const lineBreakType = node.attributes["w:type"];
23503
+ const { attrs: nodeAttrs = {} } = node;
23504
+ const lineBreakType = nodeAttrs["w:type"];
23503
23505
  if (lineBreakType) attrs["lineBreakType"] = lineBreakType;
23504
23506
  return {
23505
23507
  type: "lineBreak",
@@ -23509,7 +23511,8 @@ handleLineBreakNode_fn = function(node) {
23509
23511
  };
23510
23512
  handleBookmarkNode_fn = function(node) {
23511
23513
  const newNode = __privateMethod2(this, _DocxImporter_instances, handleStandardNode_fn).call(this, node);
23512
- newNode.attrs.name = node.attributes["w:name"];
23514
+ const { attrs = {} } = newNode;
23515
+ newNode.attrs.name = attrs["w:name"];
23513
23516
  return newNode;
23514
23517
  };
23515
23518
  handleDrawingNode_fn = function(node) {
@@ -23578,8 +23581,8 @@ handleTableCellNode_fn = function(node, styleTag) {
23578
23581
  const attributes = {};
23579
23582
  const referencedStyles = __privateMethod2(this, _DocxImporter_instances, getReferencedTableStyles_fn).call(this, styleTag) || {};
23580
23583
  attributes.cellMargins = __privateMethod2(this, _DocxImporter_instances, getTableCellMargins_fn).call(this, marginTag, referencedStyles);
23581
- const { fontSize: fontSize2, fonts } = referencedStyles;
23582
- const fontFamily2 = fonts["asciit"];
23584
+ const { fontSize: fontSize2, fonts = {} } = referencedStyles;
23585
+ const fontFamily2 = fonts["ascii"];
23583
23586
  if (width) attributes["width"] = width;
23584
23587
  if (widthType) attributes["widthType"] = widthType;
23585
23588
  if (colspan) attributes["colspan"] = colspan;
@@ -23723,7 +23726,7 @@ handleTableNode_fn = function(node) {
23723
23726
  const tableIndent = tblPr?.elements.find((el) => el.name === "w:tblInd");
23724
23727
  if (tableIndent) {
23725
23728
  const { "w:w": width, "w:type": type2 } = tableIndent.attributes;
23726
- attrs["tableIndent"] = { width: twipsToPixels(width), type: twipsToPixels(type2) };
23729
+ attrs["tableIndent"] = { width: twipsToPixels(width), type: type2 };
23727
23730
  }
23728
23731
  const tableLayout = tblPr?.elements.find((el) => el.name === "w:tblLayout");
23729
23732
  if (tableLayout) {