@stll/docx-core 0.42.0 → 0.42.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
@@ -1449,10 +1449,6 @@ const validateTable = (table, path, ctx) => {
1449
1449
  for (const [index, row] of table.rows.entries()) validateTableRow(row, `${path}.rows[${index}]`, ctx);
1450
1450
  };
1451
1451
  const validateTableRow = (row, path, ctx) => {
1452
- if (row.cells.length === 0) {
1453
- addError(ctx, `${path}.cells`, "Table row must contain at least one cell.");
1454
- return;
1455
- }
1456
1452
  for (const [index, cell] of row.cells.entries()) validateTableCell(cell, `${path}.cells[${index}]`, ctx);
1457
1453
  };
1458
1454
  const validateTableCell = (cell, path, ctx) => {
@@ -13123,6 +13123,8 @@ const refuse = (message, reason = DOCUMENT_OP_REFUSAL_REASONS.UNTRACKABLE) => Re
13123
13123
  const editable = (items) => items.every((item) => {
13124
13124
  switch (item.type) {
13125
13125
  case "run": return (item.propertyChanges?.length ?? 0) === 0;
13126
+ case "simpleField":
13127
+ case "complexField":
13126
13128
  case "bookmarkStart":
13127
13129
  case "bookmarkEnd": return true;
13128
13130
  case "hyperlink": return editable(item.children);
@@ -13148,6 +13150,8 @@ const linkedChildren = (items, intent) => {
13148
13150
  case "run":
13149
13151
  children.push(intent.type === "setHyperlink" ? styledRun(item, intent) : item);
13150
13152
  break;
13153
+ case "simpleField":
13154
+ case "complexField":
13151
13155
  case "bookmarkStart":
13152
13156
  case "bookmarkEnd":
13153
13157
  children.push(item);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/docx-core",
3
- "version": "0.42.0",
3
+ "version": "0.42.1",
4
4
  "description": "Typed OOXML/DOCX model, validation, serialization, legal-source compilation, and browser-native package projection.",
5
5
  "keywords": [
6
6
  "document-model",