document-content-model 7.14.1 → 7.15.0

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.
Files changed (43) hide show
  1. package/dist/codec.d.cts +1 -1
  2. package/dist/codec.d.ts +1 -1
  3. package/dist/{construct-C9cYkjnd.d.cts → construct-GVdTKrE7.d.cts} +3 -3
  4. package/dist/{construct-C9cYkjnd.d.ts → construct-GVdTKrE7.d.ts} +3 -3
  5. package/dist/construct.d.cts +1 -1
  6. package/dist/construct.d.ts +1 -1
  7. package/dist/{content-Cj_IC0ge.d.ts → content-BzGOsekw.d.ts} +124 -113
  8. package/dist/content-json-schema-defs.cjs +15 -6
  9. package/dist/content-json-schema-defs.js +15 -6
  10. package/dist/{content-DZDor2Ct.d.cts → content-lXpPw1nC.d.cts} +124 -113
  11. package/dist/content.cjs +10 -2
  12. package/dist/content.d.cts +2 -2
  13. package/dist/content.d.ts +2 -2
  14. package/dist/content.js +10 -3
  15. package/dist/decompose.d.cts +2 -2
  16. package/dist/decompose.d.ts +2 -2
  17. package/dist/definitions.d.cts +1 -1
  18. package/dist/definitions.d.ts +1 -1
  19. package/dist/factor-styles.d.cts +1 -1
  20. package/dist/factor-styles.d.ts +1 -1
  21. package/dist/flatten.d.cts +1 -1
  22. package/dist/flatten.d.ts +1 -1
  23. package/dist/index.cjs +1 -0
  24. package/dist/index.d.cts +4 -4
  25. package/dist/index.d.ts +4 -4
  26. package/dist/index.js +2 -2
  27. package/dist/{package-node-DBtKtaqn.d.cts → package-node-CWW0Evpn.d.cts} +40 -40
  28. package/dist/{package-node-SBZNVEGu.d.ts → package-node-DosdPQ6x.d.ts} +40 -40
  29. package/dist/package-node.d.cts +1 -1
  30. package/dist/package-node.d.ts +1 -1
  31. package/dist/package.d.cts +2 -2
  32. package/dist/package.d.ts +2 -2
  33. package/dist/schema-io.cjs +2 -2
  34. package/dist/schema-io.d.cts +1 -1
  35. package/dist/schema-io.d.ts +1 -1
  36. package/dist/schema-io.js +2 -2
  37. package/dist/table-grid.cjs +3 -3
  38. package/dist/table-grid.d.cts +3 -3
  39. package/dist/table-grid.d.ts +3 -3
  40. package/dist/table-grid.js +3 -3
  41. package/package.json +1 -1
  42. package/schemas/content-document.schema.json +35 -20
  43. package/schemas/document-tree.schema.json +22 -7
@@ -697,6 +697,18 @@ const CONTENT_DEFS = {
697
697
  required: ["cells"],
698
698
  additionalProperties: false
699
699
  },
700
+ ContentTableColumn: {
701
+ type: "object",
702
+ properties: {
703
+ widthPt: {
704
+ type: "number",
705
+ minimum: 0
706
+ },
707
+ isHeader: { type: "boolean" }
708
+ },
709
+ required: ["widthPt"],
710
+ additionalProperties: false
711
+ },
700
712
  ContentTable: {
701
713
  type: "object",
702
714
  properties: {
@@ -708,12 +720,9 @@ const CONTENT_DEFS = {
708
720
  type: "array",
709
721
  items: { $ref: "#/$defs/ContentTableRow" }
710
722
  },
711
- columnWidthsPt: {
723
+ columns: {
712
724
  type: "array",
713
- items: {
714
- type: "number",
715
- minimum: 0
716
- }
725
+ items: { $ref: "#/$defs/ContentTableColumn" }
717
726
  },
718
727
  sourcePath: { type: "string" },
719
728
  source: { $ref: "#/$defs/SourceResidue" },
@@ -727,7 +736,7 @@ const CONTENT_DEFS = {
727
736
  required: [
728
737
  "kind",
729
738
  "rows",
730
- "columnWidthsPt"
739
+ "columns"
731
740
  ],
732
741
  additionalProperties: false
733
742
  },
@@ -696,6 +696,18 @@ const CONTENT_DEFS = {
696
696
  required: ["cells"],
697
697
  additionalProperties: false
698
698
  },
699
+ ContentTableColumn: {
700
+ type: "object",
701
+ properties: {
702
+ widthPt: {
703
+ type: "number",
704
+ minimum: 0
705
+ },
706
+ isHeader: { type: "boolean" }
707
+ },
708
+ required: ["widthPt"],
709
+ additionalProperties: false
710
+ },
699
711
  ContentTable: {
700
712
  type: "object",
701
713
  properties: {
@@ -707,12 +719,9 @@ const CONTENT_DEFS = {
707
719
  type: "array",
708
720
  items: { $ref: "#/$defs/ContentTableRow" }
709
721
  },
710
- columnWidthsPt: {
722
+ columns: {
711
723
  type: "array",
712
- items: {
713
- type: "number",
714
- minimum: 0
715
- }
724
+ items: { $ref: "#/$defs/ContentTableColumn" }
716
725
  },
717
726
  sourcePath: { type: "string" },
718
727
  source: { $ref: "#/$defs/SourceResidue" },
@@ -726,7 +735,7 @@ const CONTENT_DEFS = {
726
735
  required: [
727
736
  "kind",
728
737
  "rows",
729
- "columnWidthsPt"
738
+ "columns"
730
739
  ],
731
740
  additionalProperties: false
732
741
  },