documents.js 1.67.16 → 1.70.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 (161) hide show
  1. package/README.md +3 -3
  2. package/dist/color-BHhGSqAh.d.ts +2 -0
  3. package/dist/edit/docx/content.cjs +6 -1
  4. package/dist/edit/docx/content.d.cts +2 -0
  5. package/dist/edit/docx/content.d.ts +2 -0
  6. package/dist/edit/docx/content.js +7 -2
  7. package/dist/edit/docx/editor.cjs +6 -2
  8. package/dist/edit/docx/editor.d.cts +6 -2
  9. package/dist/edit/docx/editor.d.ts +6 -2
  10. package/dist/edit/docx/editor.js +6 -2
  11. package/dist/edit/docx/paragraph.d.ts +1 -1
  12. package/dist/edit/docx/props.d.ts +1 -1
  13. package/dist/edit/docx/run.d.ts +1 -1
  14. package/dist/edit/docx/scaffold.cjs +5 -2
  15. package/dist/edit/docx/scaffold.d.cts +6 -2
  16. package/dist/edit/docx/scaffold.d.ts +6 -2
  17. package/dist/edit/docx/scaffold.js +5 -2
  18. package/dist/edit/drawingml/vector.cjs +145 -0
  19. package/dist/edit/drawingml/vector.d.cts +3 -2
  20. package/dist/edit/drawingml/vector.d.ts +3 -2
  21. package/dist/edit/drawingml/vector.js +147 -3
  22. package/dist/edit/odg/content.cjs +7 -2
  23. package/dist/edit/odg/content.d.cts +6 -2
  24. package/dist/edit/odg/content.d.ts +6 -2
  25. package/dist/edit/odg/content.js +8 -3
  26. package/dist/edit/odg/editor.cjs +6 -2
  27. package/dist/edit/odg/editor.d.cts +6 -2
  28. package/dist/edit/odg/editor.d.ts +6 -2
  29. package/dist/edit/odg/editor.js +6 -2
  30. package/dist/edit/odg/page.d.ts +1 -1
  31. package/dist/edit/odg/scaffold.cjs +17 -4
  32. package/dist/edit/odg/scaffold.d.cts +6 -2
  33. package/dist/edit/odg/scaffold.d.ts +6 -2
  34. package/dist/edit/odg/scaffold.js +18 -5
  35. package/dist/edit/odp/content.cjs +7 -2
  36. package/dist/edit/odp/content.d.cts +6 -2
  37. package/dist/edit/odp/content.d.ts +6 -2
  38. package/dist/edit/odp/content.js +8 -3
  39. package/dist/edit/odp/editor.cjs +6 -2
  40. package/dist/edit/odp/editor.d.cts +6 -2
  41. package/dist/edit/odp/editor.d.ts +6 -2
  42. package/dist/edit/odp/editor.js +6 -2
  43. package/dist/edit/odp/scaffold.cjs +17 -4
  44. package/dist/edit/odp/scaffold.d.cts +6 -2
  45. package/dist/edit/odp/scaffold.d.ts +6 -2
  46. package/dist/edit/odp/scaffold.js +18 -5
  47. package/dist/edit/odp/shape.d.ts +1 -1
  48. package/dist/edit/odp/slide.d.ts +2 -2
  49. package/dist/edit/ods/content.cjs +7 -2
  50. package/dist/edit/ods/content.d.cts +6 -2
  51. package/dist/edit/ods/content.d.ts +6 -2
  52. package/dist/edit/ods/content.js +8 -3
  53. package/dist/edit/ods/editor.cjs +6 -2
  54. package/dist/edit/ods/editor.d.cts +6 -2
  55. package/dist/edit/ods/editor.d.ts +6 -2
  56. package/dist/edit/ods/editor.js +6 -2
  57. package/dist/edit/ods/scaffold.cjs +17 -4
  58. package/dist/edit/ods/scaffold.d.cts +6 -2
  59. package/dist/edit/ods/scaffold.d.ts +6 -2
  60. package/dist/edit/ods/scaffold.js +18 -5
  61. package/dist/edit/odt/content.cjs +7 -2
  62. package/dist/edit/odt/content.d.cts +6 -2
  63. package/dist/edit/odt/content.d.ts +8 -4
  64. package/dist/edit/odt/content.js +8 -3
  65. package/dist/edit/odt/editor.cjs +6 -2
  66. package/dist/edit/odt/editor.d.cts +6 -2
  67. package/dist/edit/odt/editor.d.ts +9 -5
  68. package/dist/edit/odt/editor.js +6 -2
  69. package/dist/edit/odt/list.d.ts +1 -1
  70. package/dist/edit/odt/paragraph.d.ts +1 -1
  71. package/dist/edit/odt/run.d.ts +1 -1
  72. package/dist/edit/odt/scaffold.cjs +17 -4
  73. package/dist/edit/odt/scaffold.d.cts +6 -2
  74. package/dist/edit/odt/scaffold.d.ts +6 -2
  75. package/dist/edit/odt/scaffold.js +18 -5
  76. package/dist/edit/odt/table.d.ts +1 -1
  77. package/dist/edit/pptx/content.cjs +7 -2
  78. package/dist/edit/pptx/content.d.cts +6 -2
  79. package/dist/edit/pptx/content.d.ts +6 -2
  80. package/dist/edit/pptx/content.js +8 -3
  81. package/dist/edit/pptx/editor.cjs +6 -2
  82. package/dist/edit/pptx/editor.d.cts +6 -2
  83. package/dist/edit/pptx/editor.d.ts +6 -2
  84. package/dist/edit/pptx/editor.js +6 -2
  85. package/dist/edit/pptx/scaffold.cjs +3 -1
  86. package/dist/edit/pptx/scaffold.d.cts +6 -2
  87. package/dist/edit/pptx/scaffold.d.ts +6 -2
  88. package/dist/edit/pptx/scaffold.js +3 -1
  89. package/dist/edit/pptx/shape.d.ts +1 -1
  90. package/dist/edit/pptx/slide.d.ts +2 -2
  91. package/dist/edit/pptx/table.d.ts +1 -1
  92. package/dist/formula-B_4mdCuK.d.ts +12 -0
  93. package/dist/formula-DFc2Ofsk.d.cts +12 -0
  94. package/dist/index.cjs +3 -1
  95. package/dist/index.d.cts +20 -13
  96. package/dist/index.d.ts +29 -22
  97. package/dist/index.js +3 -2
  98. package/dist/layout/sheets.js +3 -3
  99. package/dist/{list-nlhN5bat.d.ts → list-BJVehfU8.d.ts} +1 -1
  100. package/dist/mathml/layout.cjs +42 -3
  101. package/dist/mathml/layout.js +42 -3
  102. package/dist/mathml/operators.cjs +12 -0
  103. package/dist/mathml/operators.js +12 -0
  104. package/dist/model/block-splice.cjs +18 -0
  105. package/dist/model/block-splice.d.cts +9 -0
  106. package/dist/model/block-splice.d.ts +9 -0
  107. package/dist/model/block-splice.js +17 -0
  108. package/dist/model/color.d.ts +1 -1
  109. package/dist/model/metadata.cjs +13 -0
  110. package/dist/model/metadata.d.cts +6 -0
  111. package/dist/model/metadata.d.ts +6 -0
  112. package/dist/model/metadata.js +12 -0
  113. package/dist/odf/odp/read.cjs +38 -0
  114. package/dist/odf/odp/read.js +38 -0
  115. package/dist/odf/odt/read.cjs +100 -35
  116. package/dist/odf/odt/read.js +100 -35
  117. package/dist/odf/vector/detect.cjs +52 -0
  118. package/dist/odf/vector/detect.d.cts +12 -0
  119. package/dist/odf/vector/detect.d.ts +12 -0
  120. package/dist/odf/vector/detect.js +49 -0
  121. package/dist/ooxml/docx/embedded-objects.cjs +92 -0
  122. package/dist/ooxml/docx/embedded-objects.d.cts +7 -0
  123. package/dist/ooxml/docx/embedded-objects.d.ts +7 -0
  124. package/dist/ooxml/docx/embedded-objects.js +91 -0
  125. package/dist/ooxml/docx/formula.cjs +3 -58
  126. package/dist/ooxml/docx/formula.d.cts +2 -2
  127. package/dist/ooxml/docx/formula.d.ts +2 -2
  128. package/dist/ooxml/docx/formula.js +1 -58
  129. package/dist/ooxml/docx/read.cjs +2 -2
  130. package/dist/ooxml/docx/read.d.cts +1 -1
  131. package/dist/ooxml/docx/read.d.ts +1 -1
  132. package/dist/ooxml/docx/read.js +2 -2
  133. package/dist/ooxml/docx/vector.cjs +63 -0
  134. package/dist/ooxml/docx/vector.d.cts +10 -0
  135. package/dist/ooxml/docx/vector.d.ts +10 -0
  136. package/dist/ooxml/docx/vector.js +62 -0
  137. package/dist/ooxml/pptx/read.cjs +25 -1
  138. package/dist/ooxml/pptx/read.js +26 -2
  139. package/dist/ooxml/pptx/vector.cjs +96 -0
  140. package/dist/ooxml/pptx/vector.d.cts +6 -0
  141. package/dist/ooxml/pptx/vector.d.ts +6 -0
  142. package/dist/ooxml/pptx/vector.js +95 -0
  143. package/dist/opc/core-properties.cjs +65 -0
  144. package/dist/opc/core-properties.d.cts +6 -0
  145. package/dist/opc/core-properties.d.ts +6 -0
  146. package/dist/opc/core-properties.js +64 -0
  147. package/dist/opc/rels.cjs +11 -4
  148. package/dist/opc/rels.d.cts +2 -1
  149. package/dist/opc/rels.d.ts +2 -1
  150. package/dist/opc/rels.js +11 -5
  151. package/dist/{paragraph-DndYbWuT.d.ts → paragraph-CjtZP77X.d.ts} +1 -1
  152. package/dist/{run-BhYv2wJf.d.ts → run-DDe7miD5.d.ts} +1 -1
  153. package/dist/{run-DtrwZwN6.d.ts → run-wB22_F5w.d.ts} +1 -1
  154. package/dist/{shape-B-TjU_Ej.d.ts → shape-BjX3wlig.d.ts} +1 -1
  155. package/dist/{shape-XGp__l-J.d.ts → shape-GV8i37zL.d.ts} +2 -2
  156. package/dist/{table-DQpKafyl.d.ts → table-Db91eorq.d.ts} +1 -1
  157. package/dist/{table-BHeUmLzZ.d.ts → table-Vf6nCixr.d.ts} +1 -1
  158. package/package.json +1 -1
  159. package/dist/color-C98dn-pT.d.ts +0 -2
  160. package/dist/formula-CgydMiTt.d.ts +0 -10
  161. package/dist/formula-CiwPw8nY.d.cts +0 -10
package/dist/index.d.ts CHANGED
@@ -6,39 +6,46 @@ import { DocumentBridgeOptions, DocumentToPdfOptions, OdbConversionOptions, OdbT
6
6
  import { ConversionOptions, ConversionRequest, ConversionResult, Diagnostic, DocumentConverter, DocumentFormat, DocumentPayload } from "./convert/port.js";
7
7
  import { docxPdfCodec, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, odgPdfCodec, odpPdfCodec, odpPptxCodec, odsPdfCodec, odsXlsxCodec, odtDocxCodec, odtPdfCodec, pptxPdfCodec, xlsxPdfCodec } from "./convert/codec.js";
8
8
  import { createLocalDocumentConverter } from "./convert/local.js";
9
+ import { ClockPort, fixedClock, systemClock } from "./ports/clock.js";
9
10
  import { BuildDocxPackageOptions, buildDocxPackage } from "./edit/docx/content.js";
10
11
  import { c as firstChildByLocalName, d as textContent, i as MathMlText, l as isMathMlElement, n as MathMlElement, o as elementChildren, r as MathMlNode, s as elementLocalName, t as MathMlAttribute, u as localName } from "./nodes-pArN9ilm.js";
11
12
  import { n as buildOfficeMath, r as buildOfficeMathParagraph, t as OmmlWriteResult } from "./write-THs7ipBq.js";
12
- import { a as rgbHexToColor, n as LayoutColor, t as COLOR_BLACK } from "./color-C98dn-pT.js";
13
- import { t as DocxRun } from "./run-BhYv2wJf.js";
13
+ import { a as rgbHexToColor, n as LayoutColor, t as COLOR_BLACK } from "./color-BHhGSqAh.js";
14
+ import { t as DocxRun } from "./run-DDe7miD5.js";
14
15
  import { DocxParagraph } from "./edit/docx/paragraph.js";
15
16
  import { DocxTable, DocxTableCell, DocxTableRow, DocxVerticalMerge } from "./edit/docx/table.js";
16
- import { DocxBody, DocxEditor, createDocx, openDocx } from "./edit/docx/editor.js";
17
+ import { CreateDocxOptions, DocxBody, DocxEditor, createDocx, openDocx } from "./edit/docx/editor.js";
18
+ import { CreateEmptyDocxPackageOptions } from "./edit/docx/scaffold.js";
17
19
  import { a as PAGE_SIZE_A4, d as flipY, l as SLIDE_SIZE_STANDARD, o as PAGE_SIZE_LETTER, r as Margins, s as PageSize, t as Box, u as SLIDE_SIZE_WIDESCREEN } from "./geometry-DaJr8yQW.js";
18
- import { buildOdgPackage } from "./edit/odg/content.js";
20
+ import { BuildOdgPackageOptions, buildOdgPackage } from "./edit/odg/content.js";
19
21
  import { i as LayoutFont, r as DEFAULT_LAYOUT_FONT, t as Alignment } from "./style-DkamR3aY.js";
20
- import { n as RunInit, t as OdtRun } from "./run-DtrwZwN6.js";
21
- import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-DndYbWuT.js";
22
- import { n as OdtListItem, t as OdtList } from "./list-nlhN5bat.js";
23
- import { t as OdpShape } from "./shape-XGp__l-J.js";
22
+ import { n as RunInit, t as OdtRun } from "./run-wB22_F5w.js";
23
+ import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-CjtZP77X.js";
24
+ import { n as OdtListItem, t as OdtList } from "./list-BJVehfU8.js";
25
+ import { t as OdpShape } from "./shape-GV8i37zL.js";
24
26
  import { a as OdgLineVector, c as OdgVectorKind, l as PathVectorInit, n as LineVectorInit, o as OdgPathVector, r as OdgBoxVector, s as OdgVector, t as BoxVectorInit } from "./vector-D03KX8Ux.js";
25
27
  import { OdgPage, PageImageInit, TextBoxInit } from "./edit/odg/page.js";
26
- import { OdgEditor, createOdg, openOdg } from "./edit/odg/editor.js";
27
- import { buildOdpPackage } from "./edit/odp/content.js";
28
- import { i as TableInit, n as OdtTableCell, r as OdtTableRow, t as OdtTable } from "./table-BHeUmLzZ.js";
28
+ import { CreateOdgOptions, OdgEditor, createOdg, openOdg } from "./edit/odg/editor.js";
29
+ import { CreateEmptyOdgPackageOptions } from "./edit/odg/scaffold.js";
30
+ import { BuildOdpPackageOptions, buildOdpPackage } from "./edit/odp/content.js";
31
+ import { i as TableInit, n as OdtTableCell, r as OdtTableRow, t as OdtTable } from "./table-Vf6nCixr.js";
29
32
  import { OdpSlide, SlideImageInit, SlideTableInit, TextBoxInit as TextBoxInit$1 } from "./edit/odp/slide.js";
30
- import { OdpEditor, createOdp, openOdp } from "./edit/odp/editor.js";
33
+ import { CreateOdpOptions, OdpEditor, createOdp, openOdp } from "./edit/odp/editor.js";
34
+ import { CreateEmptyOdpPackageOptions } from "./edit/odp/scaffold.js";
31
35
  import { t as OdsCell } from "./cell-CNHPsDEk.js";
32
- import { buildOdsPackage } from "./edit/ods/content.js";
36
+ import { BuildOdsPackageOptions, buildOdsPackage } from "./edit/ods/content.js";
33
37
  import { OdsSheet } from "./edit/ods/sheet.js";
34
- import { OdsEditor, createOds, openOds } from "./edit/ods/editor.js";
35
- import { buildOdtPackage } from "./edit/odt/content.js";
36
- import { OdtBody, OdtEditor, createOdt, openOdt } from "./edit/odt/editor.js";
37
- import { buildPptxPackage } from "./edit/pptx/content.js";
38
- import { n as DrawingRunInit, r as PptxShape, t as DrawingParagraphInit } from "./shape-B-TjU_Ej.js";
39
- import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-DQpKafyl.js";
38
+ import { CreateOdsOptions, OdsEditor, createOds, openOds } from "./edit/ods/editor.js";
39
+ import { CreateEmptyOdsPackageOptions } from "./edit/ods/scaffold.js";
40
+ import { BuildOdtPackageOptions, buildOdtPackage } from "./edit/odt/content.js";
41
+ import { CreateOdtOptions, OdtBody, OdtEditor, createOdt, openOdt } from "./edit/odt/editor.js";
42
+ import { CreateEmptyOdtPackageOptions } from "./edit/odt/scaffold.js";
43
+ import { BuildPptxPackageOptions, buildPptxPackage } from "./edit/pptx/content.js";
44
+ import { n as DrawingRunInit, r as PptxShape, t as DrawingParagraphInit } from "./shape-BjX3wlig.js";
45
+ import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-Db91eorq.js";
40
46
  import { PptxSlide, SlideImageInit as SlideImageInit$1, SlideTableInit as SlideTableInit$1, TextBoxInit as TextBoxInit$2 } from "./edit/pptx/slide.js";
41
- import { PptxEditor, createPptx, openPptx } from "./edit/pptx/editor.js";
47
+ import { CreatePptxOptions, PptxEditor, createPptx, openPptx } from "./edit/pptx/editor.js";
48
+ import { CreateEmptyPptxPackageOptions } from "./edit/pptx/scaffold.js";
42
49
  import { a as parseHsqldbScript, i as displayTextFor, n as HsqldbScriptParseError, r as HsqldbTable, t as HsqldbColumn } from "./script-DsGGIzGU.js";
43
50
  import { t as FirebirdBackupParseError } from "./reader-DP0Mbaj4.js";
44
51
  import { D as FirebirdUnsupportedFieldTypeError } from "./blr-types-DVgO1DQ9.js";
@@ -69,6 +76,7 @@ import { readMarkdownContent } from "./markdown/read.js";
69
76
  import { buildMarkdownText } from "./markdown/write.js";
70
77
  import { buildFormulaBlock, formulaDocument, formulaOfBlock, formulaPlaceholderText } from "./model/formula.js";
71
78
  import { buildDrawingBlock, drawingOfBlock } from "./model/embedded-drawing.js";
79
+ import { resolveMetadataTimestamps } from "./model/metadata.js";
72
80
  import { EngineLayoutOptions, WordprocessingLayoutResult, convertWordprocessingToLayout } from "./layout/engine.js";
73
81
  import { PresentationLayoutResult, SlidesLayoutOptions, convertPresentationToLayout } from "./layout/slides.js";
74
82
  import { SheetsLayoutOptions, SpreadsheetLayoutResult, convertSpreadsheetToLayout } from "./layout/sheets.js";
@@ -91,10 +99,9 @@ import { RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedE
91
99
  import { OdbReportContentOptions, OdbReportNotSpecifiedError, readOdbReportContent } from "./odb/report/content.js";
92
100
  import { renderOdbReportContent } from "./odb/report/render.js";
93
101
  import { OdbReportDataSourceError, odbReportCommandSql, resolveOdbReportRows } from "./odb/report/source.js";
94
- import { ClockPort, fixedClock, systemClock } from "./ports/clock.js";
95
102
  import { throwIfAborted } from "./ports/abort.js";
96
103
  import { Attribute, AttributeSchema, BinaryPart, BinaryPartSchema, Comment, CommentSchema, CompactAttrPairs, CompactPackage, CompactPackageSchema, CompactPart, CompactPartSchema, CompactXmlNode, CompactXmlNodeSchema, DefinedName, DefinedNameSchema, Footnote, FootnoteSchema, NumberingDefinition, NumberingDefinitionSchema, NumberingDefinitions, NumberingLevel, NumberingLevelSchema, Package, PackageSchema, Part, PartSchema, Relationship, XmlCdata, XmlCdataSchema, XmlComment, XmlCommentSchema, XmlDeclaration, XmlDeclarationSchema, XmlElement, XmlElementSchema, XmlNode, XmlNodeSchema, XmlPart, XmlPartSchema, XmlPi, XmlPiSchema, XmlText, XmlTextSchema, attr, base64ToBytes, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, elementsWithTag, encodeCompactPackage, encodePackage, fromCompact, isCompactXmlNode, isXmlNode, packageCodec, parsePackage, parseXml, resolveRelationships, rootElement, serializePackage, textContent as textContent$1, toCompact, unzipPackage, walk, xmlCodec, zipPackage } from "ooxml.js";
97
104
  import { CONTENT_FORMAT_VERSION, ContentBlock, ContentBlockSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentJson, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DocumentJsonResult, DocumentPackage, DocumentPackageJson, DocumentPackageSchema, DocumentSchemaKind, LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentJson, LayoutDocumentSchema, LayoutEllipse, LayoutImage, LayoutImageAsset, LayoutItem, LayoutLine, LayoutLink, LayoutMetadata, LayoutPage, LayoutPath, LayoutPathSegment, LayoutRect, LayoutSubpath, LayoutText, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, layoutDocumentWithSchema, schemaUriFor } from "document-schema.js";
98
105
  import { OdbComponentInfo, OdbConnectionInfo, OdbForm, OdbFormControl, OdbFormDefinition, OdbInventory, OdbQueryInfo, OdbReport, OdbReportBand, OdbReportElement, OdbReportFunction, OdbReportGroup, readOdbForm, readOdbInventory, readOdbReport, resolveOdbComponent } from "odf.js";
99
106
  import { FontRegistry, FontRegistryOptions, FontSubstitution, LoadedMathFont, MathFont, MathFontDescriptorMetrics, NOOP_DIAGNOSTIC_SINK, PdfDiagnostic, PdfDiagnosticSeverity, PdfDiagnosticSink, PdfEncryptedError, PdfParseError, PositionedFormula, ProvidedFont, ReadPdfOptions, ResolvedFace, WinAnsiSubstitution, WritePdfOptions, createFontMeasurer, createFontRegistry, createStandardFontMeasurer, loadMathFont, pdfCodec, readPdf, writePdf } from "pdf-codec";
100
- export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, type BuildDocxPackageOptions, COLOR_BLACK, CONTENT_FORMAT_VERSION, type CellTypeDeclineReason, type CellTypeInference, type CellTypeInferenceResult, type CellTypeInferenceSink, type CellTypeRule, type ClockPort, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ContentBlock, ContentBlockSchema, type ContentCellValue, ContentCellValueSchema, type ContentDocument, type ContentDocumentJson, ContentDocumentSchema, type ContentDrawPage, ContentDrawPageSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentPathPoint, ContentPathPointSchema, type ContentPathSegment, ContentPathSegmentSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStroke, ContentStrokeSchema, type ContentSubpath, ContentSubpathSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type ContentVector, ContentVectorSchema, type ConversionOptions, type ConversionRequest, type ConversionResult, DEFAULT_LAYOUT_FONT, type DefinedName, DefinedNameSchema, type Diagnostic, type DocumentBridgeOptions, type DocumentConverter, type DocumentFontRegistryOptions, type DocumentFormat, type DocumentJsonResult, type DocumentPackage, type DocumentPackageJson, DocumentPackageSchema, type DocumentPayload, type DocumentSchemaKind, type DocumentToPdfOptions, type DocxBody, DocxBytesSchema, DocxEditor, type DocxExtras, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DocxVerticalMerge, type DrawingLayoutOptions, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, type FirebirdBackupSummary, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, type FontRegistry, type FontRegistryOptions, type FontSourcePackage, type FontSubstitution, type Footnote, FootnoteSchema, type GridLattice, type HsqldbBinaryScript, HsqldbBinaryScriptParseError, type HsqldbColumn, type HsqldbDecodeOptions, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, type HsqldbTable, LAYOUT_FORMAT_VERSION, type LayoutColor, type LayoutDocument, type LayoutDocumentJson, LayoutDocumentSchema, type LayoutEllipse, type LayoutFont, type LayoutFormulaOptions, type LayoutImage, type LayoutImageAsset, type LayoutItem, type LayoutLine, type LayoutLink, type LayoutMetadata, type LayoutPage, type LayoutPath, type LayoutPathSegment, type LayoutRect, type LayoutSubpath, type LayoutText, type LoadedMathFont, type Margins, MarkdownBytesSchema, type MathAssembledGlyphs, type MathBox, type MathColor, type MathDiagnostic, type MathDiagnosticKind, type MathFont, type MathFontDescriptorMetrics, type MathFontMetrics, type MathGlyphMetrics, type MathGlyphPlacement, type MathGlyphRun, type MathLayoutItem, type MathLayoutResult, type MathMlAttribute, type MathMlElement, type MathMlNode, type MathMlText, type MathRule, type MathStretchAxis, type MathStretchGlyph, type MathStretchResult, type MathStroke, type MathVariant, NOOP_DIAGNOSTIC_SINK, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, type OdbComponentInfo, type OdbConnectionInfo, type OdbConversionOptions, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, OdbNoEmbeddedDataSourceError, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportContentOptions, OdbReportDataSourceError, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, OdbReportNotSpecifiedError, OdbTableNotFoundError, OdbTableNotSpecifiedError, type OdbToCsvOptions, type OdbUnsupportedFormat, OdbUnsupportedFormatError, OdfEmbeddedFontError, OdgBoxVector, type BoxVectorInit as OdgBoxVectorInit, OdgBytesSchema, OdgEditor, OdgLineVector, type LineVectorInit as OdgLineVectorInit, OdgPage, type PageImageInit as OdgPageImageInit, OdgPathVector, type PathVectorInit as OdgPathVectorInit, type TextBoxInit as OdgTextBoxInit, type OdgVector, type OdgVectorKind, type OdmToPdfOptions, OdmUnresolvedSectionError, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, type SlideImageInit as OdpSlideImageInit, type SlideTableInit as OdpSlideTableInit, type TextBoxInit$1 as OdpTextBoxInit, OdsBytesSchema, OdsCell, OdsEditor, OdsSheet, type OdtBody, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit as OdtParagraphInit, OdtRun, type RunInit as OdtRunInit, OdtTable, OdtTableCell, type TableInit as OdtTableInit, OdtTableRow, type OmmlDiagnostic, type OmmlDiagnosticKind, type OmmlReadResult, type OmmlWriteResult, OoxmlEmbeddedFontError, type OperatorProperties, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageSize, type Part, PartSchema, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEncryptedError, PdfParseError, type PdfToDocumentOptions, type PositionedFormula, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, type PptxTableInit, PptxTableRow, type PresentationLayoutResult, type ProvidedFont, type ReadDocxContentOptions, type ReadFirebirdBackupResult, type ReadPdfOptions, type ReconstructOptions, type Relationship, type ResolvedFace, type RptAggregateFunction, type RptBandDefinition, type RptBandInstance, type RptBandKind, type RptFormula, RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, type RptGroupDefinition, type RptNamedFunctionDefinition, type RptReference, type RptReportDefinition, type RptReportRun, RptReportStructureError, type RptScope, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type SheetsLayoutOptions, type SlideImageInit$1 as SlideImageInit, type SlideTableInit$1 as SlideTableInit, type SlidesLayoutOptions, type SpreadsheetLayoutResult, type SqlAggregateArgument, type SqlAggregateFunction, type SqlColumnRef, type SqlComparisonOperator, type SqlLiteral, type SqlNameRef, type SqlOperand, type SqlOrderByTerm, type SqlPredicate, type SqlPunctuation, type SqlResultSet, type SqlSelectItem, type SqlSelectStatement, type SqlSortDirection, type SqlToken, type TextBoxInit$2 as TextBoxInit, UnrecognizedDocumentSchemaError, type WinAnsiSubstitution, type WordprocessingLayoutResult, type WritePdfOptions, XlsxBytesSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyMathVariant, attr, base64ToBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildXml, bytesToBase64, childrenWithTag, collectOfficeMathElements, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createOdg, createOdp, createOds, createOdt, createPptx, createStandardFontMeasurer, decodeCompactPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodePackage, deobfuscateEmbeddedFont, deriveFontKey, detectGridLattice, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, encodeCompactPackage, encodeMarkdownText, encodePackage, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, layoutDocumentWithSchema, layoutFormula, loadMathFont, localName, looksLikeSfnt, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToDocx, markdownToOdt, markdownToPdf, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgToPdf, odmToPdf, odpPdfCodec, odpPptxCodec, odpToPdf, odpToPptx, odsPdfCodec, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToPdf, openDocx, openOdg, openOdp, openOds, openOdt, openPptx, operatorProperties, packageCodec, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRptFormula, parseSelect, parseXml, pdfCodec, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pdfToXlsx, pptxPdfCodec, pptxToOdp, pptxToPdf, readDocxContent, readDocxExtras, readFirebirdBackup, readMarkdownContent, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderOdbReportContent, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, runRptReport, schemaUriFor, serializePackage, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writePdf, xlsxPdfCodec, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
107
+ export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, type BuildDocxPackageOptions, type BuildOdgPackageOptions, type BuildOdpPackageOptions, type BuildOdsPackageOptions, type BuildOdtPackageOptions, type BuildPptxPackageOptions, COLOR_BLACK, CONTENT_FORMAT_VERSION, type CellTypeDeclineReason, type CellTypeInference, type CellTypeInferenceResult, type CellTypeInferenceSink, type CellTypeRule, type ClockPort, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ContentBlock, ContentBlockSchema, type ContentCellValue, ContentCellValueSchema, type ContentDocument, type ContentDocumentJson, ContentDocumentSchema, type ContentDrawPage, ContentDrawPageSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentPathPoint, ContentPathPointSchema, type ContentPathSegment, ContentPathSegmentSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStroke, ContentStrokeSchema, type ContentSubpath, ContentSubpathSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type ContentVector, ContentVectorSchema, type ConversionOptions, type ConversionRequest, type ConversionResult, type CreateDocxOptions, type CreateEmptyDocxPackageOptions, type CreateEmptyOdgPackageOptions, type CreateEmptyOdpPackageOptions, type CreateEmptyOdsPackageOptions, type CreateEmptyOdtPackageOptions, type CreateEmptyPptxPackageOptions, type CreateOdgOptions, type CreateOdpOptions, type CreateOdsOptions, type CreateOdtOptions, type CreatePptxOptions, DEFAULT_LAYOUT_FONT, type DefinedName, DefinedNameSchema, type Diagnostic, type DocumentBridgeOptions, type DocumentConverter, type DocumentFontRegistryOptions, type DocumentFormat, type DocumentJsonResult, type DocumentPackage, type DocumentPackageJson, DocumentPackageSchema, type DocumentPayload, type DocumentSchemaKind, type DocumentToPdfOptions, type DocxBody, DocxBytesSchema, DocxEditor, type DocxExtras, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DocxVerticalMerge, type DrawingLayoutOptions, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, type FirebirdBackupSummary, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, type FontRegistry, type FontRegistryOptions, type FontSourcePackage, type FontSubstitution, type Footnote, FootnoteSchema, type GridLattice, type HsqldbBinaryScript, HsqldbBinaryScriptParseError, type HsqldbColumn, type HsqldbDecodeOptions, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, type HsqldbTable, LAYOUT_FORMAT_VERSION, type LayoutColor, type LayoutDocument, type LayoutDocumentJson, LayoutDocumentSchema, type LayoutEllipse, type LayoutFont, type LayoutFormulaOptions, type LayoutImage, type LayoutImageAsset, type LayoutItem, type LayoutLine, type LayoutLink, type LayoutMetadata, type LayoutPage, type LayoutPath, type LayoutPathSegment, type LayoutRect, type LayoutSubpath, type LayoutText, type LoadedMathFont, type Margins, MarkdownBytesSchema, type MathAssembledGlyphs, type MathBox, type MathColor, type MathDiagnostic, type MathDiagnosticKind, type MathFont, type MathFontDescriptorMetrics, type MathFontMetrics, type MathGlyphMetrics, type MathGlyphPlacement, type MathGlyphRun, type MathLayoutItem, type MathLayoutResult, type MathMlAttribute, type MathMlElement, type MathMlNode, type MathMlText, type MathRule, type MathStretchAxis, type MathStretchGlyph, type MathStretchResult, type MathStroke, type MathVariant, NOOP_DIAGNOSTIC_SINK, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, type OdbComponentInfo, type OdbConnectionInfo, type OdbConversionOptions, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, OdbNoEmbeddedDataSourceError, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportContentOptions, OdbReportDataSourceError, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, OdbReportNotSpecifiedError, OdbTableNotFoundError, OdbTableNotSpecifiedError, type OdbToCsvOptions, type OdbUnsupportedFormat, OdbUnsupportedFormatError, OdfEmbeddedFontError, OdgBoxVector, type BoxVectorInit as OdgBoxVectorInit, OdgBytesSchema, OdgEditor, OdgLineVector, type LineVectorInit as OdgLineVectorInit, OdgPage, type PageImageInit as OdgPageImageInit, OdgPathVector, type PathVectorInit as OdgPathVectorInit, type TextBoxInit as OdgTextBoxInit, type OdgVector, type OdgVectorKind, type OdmToPdfOptions, OdmUnresolvedSectionError, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, type SlideImageInit as OdpSlideImageInit, type SlideTableInit as OdpSlideTableInit, type TextBoxInit$1 as OdpTextBoxInit, OdsBytesSchema, OdsCell, OdsEditor, OdsSheet, type OdtBody, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit as OdtParagraphInit, OdtRun, type RunInit as OdtRunInit, OdtTable, OdtTableCell, type TableInit as OdtTableInit, OdtTableRow, type OmmlDiagnostic, type OmmlDiagnosticKind, type OmmlReadResult, type OmmlWriteResult, OoxmlEmbeddedFontError, type OperatorProperties, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageSize, type Part, PartSchema, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEncryptedError, PdfParseError, type PdfToDocumentOptions, type PositionedFormula, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, type PptxTableInit, PptxTableRow, type PresentationLayoutResult, type ProvidedFont, type ReadDocxContentOptions, type ReadFirebirdBackupResult, type ReadPdfOptions, type ReconstructOptions, type Relationship, type ResolvedFace, type RptAggregateFunction, type RptBandDefinition, type RptBandInstance, type RptBandKind, type RptFormula, RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, type RptGroupDefinition, type RptNamedFunctionDefinition, type RptReference, type RptReportDefinition, type RptReportRun, RptReportStructureError, type RptScope, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type SheetsLayoutOptions, type SlideImageInit$1 as SlideImageInit, type SlideTableInit$1 as SlideTableInit, type SlidesLayoutOptions, type SpreadsheetLayoutResult, type SqlAggregateArgument, type SqlAggregateFunction, type SqlColumnRef, type SqlComparisonOperator, type SqlLiteral, type SqlNameRef, type SqlOperand, type SqlOrderByTerm, type SqlPredicate, type SqlPunctuation, type SqlResultSet, type SqlSelectItem, type SqlSelectStatement, type SqlSortDirection, type SqlToken, type TextBoxInit$2 as TextBoxInit, UnrecognizedDocumentSchemaError, type WinAnsiSubstitution, type WordprocessingLayoutResult, type WritePdfOptions, XlsxBytesSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyMathVariant, attr, base64ToBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildXml, bytesToBase64, childrenWithTag, collectOfficeMathElements, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createOdg, createOdp, createOds, createOdt, createPptx, createStandardFontMeasurer, decodeCompactPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodePackage, deobfuscateEmbeddedFont, deriveFontKey, detectGridLattice, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, encodeCompactPackage, encodeMarkdownText, encodePackage, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, layoutDocumentWithSchema, layoutFormula, loadMathFont, localName, looksLikeSfnt, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToDocx, markdownToOdt, markdownToPdf, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgToPdf, odmToPdf, odpPdfCodec, odpPptxCodec, odpToPdf, odpToPptx, odsPdfCodec, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToPdf, openDocx, openOdg, openOdp, openOds, openOdt, openPptx, operatorProperties, packageCodec, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRptFormula, parseSelect, parseXml, pdfCodec, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pdfToXlsx, pptxPdfCodec, pptxToOdp, pptxToPdf, readDocxContent, readDocxExtras, readFirebirdBackup, readMarkdownContent, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderOdbReportContent, resolveMetadataTimestamps, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, runRptReport, schemaUriFor, serializePackage, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writePdf, xlsxPdfCodec, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
package/dist/index.js CHANGED
@@ -2,6 +2,8 @@ import { PAGE_SIZE_A4, PAGE_SIZE_LETTER, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCR
2
2
  import { COLOR_BLACK, rgbHexToColor } from "./model/color.js";
3
3
  import { DEFAULT_LAYOUT_FONT } from "./model/style.js";
4
4
  import { DocxBytesSchema, MarkdownBytesSchema, OdgBytesSchema, OdpBytesSchema, OdsBytesSchema, OdtBytesSchema, PdfBytesSchema, PptxBytesSchema, XlsxBytesSchema } from "./model/bytes.js";
5
+ import { resolveMetadataTimestamps } from "./model/metadata.js";
6
+ import { fixedClock, systemClock } from "./ports/clock.js";
5
7
  import { elementChildren, elementLocalName, firstChildByLocalName, isMathMlElement, localName, textContent } from "./mathml/nodes.js";
6
8
  import { operatorProperties } from "./mathml/operators.js";
7
9
  import { applyMathVariant, isMathVariant, mapMathVariant } from "./mathml/variant.js";
@@ -88,9 +90,8 @@ import { renderOdbReportContent } from "./odb/report/render.js";
88
90
  import { OdbReportDataSourceError, odbReportCommandSql, resolveOdbReportRows } from "./odb/report/source.js";
89
91
  import { OdbReportNotSpecifiedError, readOdbReportContent } from "./odb/report/content.js";
90
92
  import { createLocalDocumentConverter } from "./convert/local.js";
91
- import { fixedClock, systemClock } from "./ports/clock.js";
92
93
  import { AttributeSchema, BinaryPartSchema, CommentSchema, CompactPackageSchema, CompactPartSchema, CompactXmlNodeSchema, DefinedNameSchema, FootnoteSchema, NumberingDefinitionSchema, NumberingLevelSchema, PackageSchema, PartSchema, XmlCdataSchema, XmlCommentSchema, XmlDeclarationSchema, XmlElementSchema, XmlNodeSchema, XmlPartSchema, XmlPiSchema, XmlTextSchema, attr, base64ToBytes, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, elementsWithTag, encodeCompactPackage, encodePackage, fromCompact, isCompactXmlNode, isXmlNode, packageCodec, parsePackage, parseXml, resolveRelationships, rootElement, serializePackage, textContent as textContent$1, toCompact, unzipPackage, walk, xmlCodec, zipPackage } from "ooxml.js";
93
94
  import { CONTENT_FORMAT_VERSION, ContentBlockSchema, ContentCellValueSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentImageBlockSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DocumentPackageSchema, LAYOUT_FORMAT_VERSION, LayoutDocumentSchema, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, layoutDocumentWithSchema, schemaUriFor } from "document-schema.js";
94
95
  import { readOdbForm, readOdbInventory, readOdbReport, resolveOdbComponent } from "odf.js";
95
96
  import { NOOP_DIAGNOSTIC_SINK, PdfEncryptedError, PdfParseError, createFontMeasurer, createFontRegistry, createStandardFontMeasurer, loadMathFont, pdfCodec, readPdf, writePdf } from "pdf-codec";
96
- export { AttributeSchema, BinaryPartSchema, COLOR_BLACK, CONTENT_FORMAT_VERSION, CommentSchema, CompactPackageSchema, CompactPartSchema, CompactXmlNodeSchema, ContentBlockSchema, ContentCellValueSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentImageBlockSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DefinedNameSchema, DocumentPackageSchema, DocxBytesSchema, DocxEditor, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, FootnoteSchema, HsqldbBinaryScriptParseError, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, LAYOUT_FORMAT_VERSION, LayoutDocumentSchema, MarkdownBytesSchema, NOOP_DIAGNOSTIC_SINK, NumberingDefinitionSchema, NumberingLevelSchema, OdbNoEmbeddedDataSourceError, OdbReportDataSourceError, OdbReportNotSpecifiedError, OdbTableNotFoundError, OdbTableNotSpecifiedError, OdbUnsupportedFormatError, OdfEmbeddedFontError, OdgBoxVector, OdgBytesSchema, OdgEditor, OdgLineVector, OdgPage, OdgPathVector, OdmUnresolvedSectionError, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, OdsBytesSchema, OdsCell, OdsEditor, OdsSheet, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, OdtRun, OdtTable, OdtTableCell, OdtTableRow, OoxmlEmbeddedFontError, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PackageSchema, PartSchema, PdfBytesSchema, PdfEncryptedError, PdfParseError, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, PptxTableRow, RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, RptReportStructureError, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, UnrecognizedDocumentSchemaError, XlsxBytesSchema, XmlCdataSchema, XmlCommentSchema, XmlDeclarationSchema, XmlElementSchema, XmlNodeSchema, XmlPartSchema, XmlPiSchema, XmlTextSchema, applyMathVariant, attr, base64ToBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildXml, bytesToBase64, childrenWithTag, collectOfficeMathElements, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createOdg, createOdp, createOds, createOdt, createPptx, createStandardFontMeasurer, decodeCompactPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodePackage, deobfuscateEmbeddedFont, deriveFontKey, detectGridLattice, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, encodeCompactPackage, encodeMarkdownText, encodePackage, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, layoutDocumentWithSchema, layoutFormula, loadMathFont, localName, looksLikeSfnt, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToDocx, markdownToOdt, markdownToPdf, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgToPdf, odmToPdf, odpPdfCodec, odpPptxCodec, odpToPdf, odpToPptx, odsPdfCodec, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToPdf, openDocx, openOdg, openOdp, openOds, openOdt, openPptx, operatorProperties, packageCodec, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRptFormula, parseSelect, parseXml, pdfCodec, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pdfToXlsx, pptxPdfCodec, pptxToOdp, pptxToPdf, readDocxContent, readDocxExtras, readFirebirdBackup, readMarkdownContent, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderOdbReportContent, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, runRptReport, schemaUriFor, serializePackage, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writePdf, xlsxPdfCodec, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
97
+ export { AttributeSchema, BinaryPartSchema, COLOR_BLACK, CONTENT_FORMAT_VERSION, CommentSchema, CompactPackageSchema, CompactPartSchema, CompactXmlNodeSchema, ContentBlockSchema, ContentCellValueSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentImageBlockSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DefinedNameSchema, DocumentPackageSchema, DocxBytesSchema, DocxEditor, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, FootnoteSchema, HsqldbBinaryScriptParseError, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, LAYOUT_FORMAT_VERSION, LayoutDocumentSchema, MarkdownBytesSchema, NOOP_DIAGNOSTIC_SINK, NumberingDefinitionSchema, NumberingLevelSchema, OdbNoEmbeddedDataSourceError, OdbReportDataSourceError, OdbReportNotSpecifiedError, OdbTableNotFoundError, OdbTableNotSpecifiedError, OdbUnsupportedFormatError, OdfEmbeddedFontError, OdgBoxVector, OdgBytesSchema, OdgEditor, OdgLineVector, OdgPage, OdgPathVector, OdmUnresolvedSectionError, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, OdsBytesSchema, OdsCell, OdsEditor, OdsSheet, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, OdtRun, OdtTable, OdtTableCell, OdtTableRow, OoxmlEmbeddedFontError, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PackageSchema, PartSchema, PdfBytesSchema, PdfEncryptedError, PdfParseError, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, PptxTableRow, RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, RptReportStructureError, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, UnrecognizedDocumentSchemaError, XlsxBytesSchema, XmlCdataSchema, XmlCommentSchema, XmlDeclarationSchema, XmlElementSchema, XmlNodeSchema, XmlPartSchema, XmlPiSchema, XmlTextSchema, applyMathVariant, attr, base64ToBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildXml, bytesToBase64, childrenWithTag, collectOfficeMathElements, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createOdg, createOdp, createOds, createOdt, createPptx, createStandardFontMeasurer, decodeCompactPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodePackage, deobfuscateEmbeddedFont, deriveFontKey, detectGridLattice, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, encodeCompactPackage, encodeMarkdownText, encodePackage, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, layoutDocumentWithSchema, layoutFormula, loadMathFont, localName, looksLikeSfnt, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToDocx, markdownToOdt, markdownToPdf, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgToPdf, odmToPdf, odpPdfCodec, odpPptxCodec, odpToPdf, odpToPptx, odsPdfCodec, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToPdf, openDocx, openOdg, openOdp, openOds, openOdt, openPptx, operatorProperties, packageCodec, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRptFormula, parseSelect, parseXml, pdfCodec, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pdfToXlsx, pptxPdfCodec, pptxToOdp, pptxToPdf, readDocxContent, readDocxExtras, readFirebirdBackup, readMarkdownContent, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderOdbReportContent, resolveMetadataTimestamps, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, runRptReport, schemaUriFor, serializePackage, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writePdf, xlsxPdfCodec, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
@@ -1,5 +1,5 @@
1
1
  import { flipY } from "../model/geometry.js";
2
- import { COLOR_BLACK as COLOR_BLACK$1, rgbHexToColor } from "../model/color.js";
2
+ import { COLOR_BLACK as COLOR_BLACK$1, rgbHexToColor as rgbHexToColor$1 } from "../model/color.js";
3
3
  import { DEFAULT_LAYOUT_FONT } from "../model/style.js";
4
4
  import { layoutFormula } from "../mathml/layout.js";
5
5
  import { alignmentOffsetPt, formulaSizePtFromFrame, justifyLineGapsPt, lineNaturalHeightPt, pushCellBorderLines, sumColumnWidthsPt, toStyledRuns } from "./shared.js";
@@ -36,9 +36,9 @@ const CELL_TEXT_PADDING_PT = 2;
36
36
  const HEADER_LABEL_PADDING_PT = 2;
37
37
  const MINIMUM_SCALE = .01;
38
38
  const NUMERIC_OVERFLOW_TEXT = "###";
39
- const GRIDLINE_COLOR = rgbHexToColor("#D0D0D0");
39
+ const GRIDLINE_COLOR = rgbHexToColor$1("#D0D0D0");
40
40
  const GRIDLINE_WIDTH_PT = .5;
41
- const HEADER_LABEL_COLOR = rgbHexToColor("#606060");
41
+ const HEADER_LABEL_COLOR = rgbHexToColor$1("#606060");
42
42
  function columnLetters(index) {
43
43
  let n = index + 1;
44
44
  let letters = "";
@@ -1,4 +1,4 @@
1
- import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-DndYbWuT.js";
1
+ import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-CjtZP77X.js";
2
2
  import { Package, XmlElement, XmlNode } from "odf.js";
3
3
  //#region src/edit/odt/list.d.ts
4
4
  declare class OdtListItem {
@@ -124,6 +124,45 @@ function stretchOperator(element, targetSizePt, ctx) {
124
124
  if (result === void 0 || result.kind === "base") return;
125
125
  return stretchedBox(result, text, ctx);
126
126
  }
127
+ function horizontallyStretchedBox(result, text, ctx) {
128
+ const ascentPt = result.inkAscentPt;
129
+ const descentPt = result.inkDescentPt;
130
+ const items = [{
131
+ kind: "assembled-glyphs",
132
+ placements: result.placements.map((placement) => ({
133
+ glyphId: placement.glyphId,
134
+ xPt: placement.offsetPt,
135
+ yPt: ascentPt
136
+ })),
137
+ text,
138
+ sizePt: ctx.sizePt,
139
+ color: ctx.color
140
+ }];
141
+ return {
142
+ widthPt: result.sizePt,
143
+ ascentPt,
144
+ descentPt,
145
+ heightPt: ascentPt + descentPt,
146
+ items
147
+ };
148
+ }
149
+ function stretchHorizontalOperator(element, targetWidthPt, ctx) {
150
+ const text = require_mathml_nodes.textContent(element).trim();
151
+ const codePoints = [...text];
152
+ if (codePoints.length !== 1) return;
153
+ const codePoint = codePoints[0]?.codePointAt(0);
154
+ if (codePoint === void 0) return;
155
+ const result = ctx.metrics.stretch(codePoint, "horizontal", targetWidthPt, ctx.sizePt);
156
+ if (result === void 0 || result.kind === "base") return;
157
+ return horizontallyStretchedBox(result, text, ctx);
158
+ }
159
+ function layoutUnderOverChild(childElement, targetWidthPt, scriptCtx) {
160
+ if (isStretchyOperator(childElement)) {
161
+ const stretched = stretchHorizontalOperator(childElement, targetWidthPt, scriptCtx);
162
+ if (stretched !== void 0) return stretched;
163
+ }
164
+ return layoutNode(childElement, scriptCtx);
165
+ }
127
166
  function stretchRowOperators(children, boxes, ctx) {
128
167
  const stretchy = children.map(isStretchyOperator);
129
168
  if (!stretchy.includes(true)) return boxes;
@@ -269,9 +308,9 @@ function layoutUnderOverElement(element, kind, ctx) {
269
308
  overXPt: isAccent ? topAccentXPt : void 0,
270
309
  underXPt: isAccentUnder ? topAccentXPt : void 0
271
310
  };
272
- if (kind === "munder") return layoutUnderOver(base, children[1] === void 0 ? void 0 : layoutNode(children[1], scriptCtx), void 0, ctx, accentAttachment);
273
- if (kind === "mover") return layoutUnderOver(base, void 0, children[1] === void 0 ? void 0 : layoutNode(children[1], scriptCtx), ctx, accentAttachment);
274
- return layoutUnderOver(base, children[1] === void 0 ? void 0 : layoutNode(children[1], scriptCtx), children[2] === void 0 ? void 0 : layoutNode(children[2], scriptCtx), ctx, accentAttachment);
311
+ if (kind === "munder") return layoutUnderOver(base, children[1] === void 0 ? void 0 : layoutUnderOverChild(children[1], base.widthPt, scriptCtx), void 0, ctx, accentAttachment);
312
+ if (kind === "mover") return layoutUnderOver(base, void 0, children[1] === void 0 ? void 0 : layoutUnderOverChild(children[1], base.widthPt, scriptCtx), ctx, accentAttachment);
313
+ return layoutUnderOver(base, children[1] === void 0 ? void 0 : layoutUnderOverChild(children[1], base.widthPt, scriptCtx), children[2] === void 0 ? void 0 : layoutUnderOverChild(children[2], base.widthPt, scriptCtx), ctx, accentAttachment);
275
314
  }
276
315
  function layoutFraction(element, ctx) {
277
316
  const children = require_mathml_nodes.elementChildren(element);
@@ -123,6 +123,45 @@ function stretchOperator(element, targetSizePt, ctx) {
123
123
  if (result === void 0 || result.kind === "base") return;
124
124
  return stretchedBox(result, text, ctx);
125
125
  }
126
+ function horizontallyStretchedBox(result, text, ctx) {
127
+ const ascentPt = result.inkAscentPt;
128
+ const descentPt = result.inkDescentPt;
129
+ const items = [{
130
+ kind: "assembled-glyphs",
131
+ placements: result.placements.map((placement) => ({
132
+ glyphId: placement.glyphId,
133
+ xPt: placement.offsetPt,
134
+ yPt: ascentPt
135
+ })),
136
+ text,
137
+ sizePt: ctx.sizePt,
138
+ color: ctx.color
139
+ }];
140
+ return {
141
+ widthPt: result.sizePt,
142
+ ascentPt,
143
+ descentPt,
144
+ heightPt: ascentPt + descentPt,
145
+ items
146
+ };
147
+ }
148
+ function stretchHorizontalOperator(element, targetWidthPt, ctx) {
149
+ const text = textContent(element).trim();
150
+ const codePoints = [...text];
151
+ if (codePoints.length !== 1) return;
152
+ const codePoint = codePoints[0]?.codePointAt(0);
153
+ if (codePoint === void 0) return;
154
+ const result = ctx.metrics.stretch(codePoint, "horizontal", targetWidthPt, ctx.sizePt);
155
+ if (result === void 0 || result.kind === "base") return;
156
+ return horizontallyStretchedBox(result, text, ctx);
157
+ }
158
+ function layoutUnderOverChild(childElement, targetWidthPt, scriptCtx) {
159
+ if (isStretchyOperator(childElement)) {
160
+ const stretched = stretchHorizontalOperator(childElement, targetWidthPt, scriptCtx);
161
+ if (stretched !== void 0) return stretched;
162
+ }
163
+ return layoutNode(childElement, scriptCtx);
164
+ }
126
165
  function stretchRowOperators(children, boxes, ctx) {
127
166
  const stretchy = children.map(isStretchyOperator);
128
167
  if (!stretchy.includes(true)) return boxes;
@@ -268,9 +307,9 @@ function layoutUnderOverElement(element, kind, ctx) {
268
307
  overXPt: isAccent ? topAccentXPt : void 0,
269
308
  underXPt: isAccentUnder ? topAccentXPt : void 0
270
309
  };
271
- if (kind === "munder") return layoutUnderOver(base, children[1] === void 0 ? void 0 : layoutNode(children[1], scriptCtx), void 0, ctx, accentAttachment);
272
- if (kind === "mover") return layoutUnderOver(base, void 0, children[1] === void 0 ? void 0 : layoutNode(children[1], scriptCtx), ctx, accentAttachment);
273
- return layoutUnderOver(base, children[1] === void 0 ? void 0 : layoutNode(children[1], scriptCtx), children[2] === void 0 ? void 0 : layoutNode(children[2], scriptCtx), ctx, accentAttachment);
310
+ if (kind === "munder") return layoutUnderOver(base, children[1] === void 0 ? void 0 : layoutUnderOverChild(children[1], base.widthPt, scriptCtx), void 0, ctx, accentAttachment);
311
+ if (kind === "mover") return layoutUnderOver(base, void 0, children[1] === void 0 ? void 0 : layoutUnderOverChild(children[1], base.widthPt, scriptCtx), ctx, accentAttachment);
312
+ return layoutUnderOver(base, children[1] === void 0 ? void 0 : layoutUnderOverChild(children[1], base.widthPt, scriptCtx), children[2] === void 0 ? void 0 : layoutUnderOverChild(children[2], base.widthPt, scriptCtx), ctx, accentAttachment);
274
313
  }
275
314
  function layoutFraction(element, ctx) {
276
315
  const children = elementChildren(element);
@@ -180,6 +180,18 @@ const OPERATORS = /* @__PURE__ */ new Map([
180
180
  lspaceEm: ZERO_SPACE,
181
181
  rspaceEm: ZERO_SPACE,
182
182
  stretchy: true
183
+ }],
184
+ ["⏞", {
185
+ ...DEFAULT_OPERATOR,
186
+ lspaceEm: ZERO_SPACE,
187
+ rspaceEm: ZERO_SPACE,
188
+ stretchy: true
189
+ }],
190
+ ["⏟", {
191
+ ...DEFAULT_OPERATOR,
192
+ lspaceEm: ZERO_SPACE,
193
+ rspaceEm: ZERO_SPACE,
194
+ stretchy: true
183
195
  }]
184
196
  ]);
185
197
  function operatorProperties(text) {
@@ -179,6 +179,18 @@ const OPERATORS = /* @__PURE__ */ new Map([
179
179
  lspaceEm: ZERO_SPACE,
180
180
  rspaceEm: ZERO_SPACE,
181
181
  stretchy: true
182
+ }],
183
+ ["⏞", {
184
+ ...DEFAULT_OPERATOR,
185
+ lspaceEm: ZERO_SPACE,
186
+ rspaceEm: ZERO_SPACE,
187
+ stretchy: true
188
+ }],
189
+ ["⏟", {
190
+ ...DEFAULT_OPERATOR,
191
+ lspaceEm: ZERO_SPACE,
192
+ rspaceEm: ZERO_SPACE,
193
+ stretchy: true
182
194
  }]
183
195
  ]);
184
196
  function operatorProperties(text) {
@@ -0,0 +1,18 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/model/block-splice.ts
3
+ function spliceBlocks(blocks, placements, consumedIndices, sourcePathFor) {
4
+ const out = [];
5
+ let next = 0;
6
+ for (let index = 0; index <= blocks.length; index++) {
7
+ while (next < placements.length && placements[next].index === index) {
8
+ const { build } = placements[next];
9
+ out.push(build(sourcePathFor(out.length)));
10
+ next += 1;
11
+ }
12
+ const block = blocks[index];
13
+ if (block !== void 0 && !consumedIndices.has(index)) out.push(block);
14
+ }
15
+ return out;
16
+ }
17
+ //#endregion
18
+ exports.spliceBlocks = spliceBlocks;
@@ -0,0 +1,9 @@
1
+ import { ContentBlock } from "document-schema.js";
2
+ //#region src/model/block-splice.d.ts
3
+ interface BlockPlacement {
4
+ readonly index: number;
5
+ readonly build: (sourcePath: string) => ContentBlock;
6
+ }
7
+ declare function spliceBlocks(blocks: readonly ContentBlock[], placements: readonly BlockPlacement[], consumedIndices: ReadonlySet<number>, sourcePathFor: (position: number) => string): ContentBlock[];
8
+ //#endregion
9
+ export { BlockPlacement, spliceBlocks };
@@ -0,0 +1,9 @@
1
+ import { ContentBlock } from "document-schema.js";
2
+ //#region src/model/block-splice.d.ts
3
+ interface BlockPlacement {
4
+ readonly index: number;
5
+ readonly build: (sourcePath: string) => ContentBlock;
6
+ }
7
+ declare function spliceBlocks(blocks: readonly ContentBlock[], placements: readonly BlockPlacement[], consumedIndices: ReadonlySet<number>, sourcePathFor: (position: number) => string): ContentBlock[];
8
+ //#endregion
9
+ export { BlockPlacement, spliceBlocks };
@@ -0,0 +1,17 @@
1
+ //#region src/model/block-splice.ts
2
+ function spliceBlocks(blocks, placements, consumedIndices, sourcePathFor) {
3
+ const out = [];
4
+ let next = 0;
5
+ for (let index = 0; index <= blocks.length; index++) {
6
+ while (next < placements.length && placements[next].index === index) {
7
+ const { build } = placements[next];
8
+ out.push(build(sourcePathFor(out.length)));
9
+ next += 1;
10
+ }
11
+ const block = blocks[index];
12
+ if (block !== void 0 && !consumedIndices.has(index)) out.push(block);
13
+ }
14
+ return out;
15
+ }
16
+ //#endregion
17
+ export { spliceBlocks };
@@ -1,2 +1,2 @@
1
- import { a as rgbHexToColor, i as colorToRgbHex, n as LayoutColor, r as LayoutColorSchema, t as COLOR_BLACK } from "../color-C98dn-pT.js";
1
+ import { a as rgbHexToColor, i as colorToRgbHex, n as LayoutColor, r as LayoutColorSchema, t as COLOR_BLACK } from "../color-BHhGSqAh.js";
2
2
  export { COLOR_BLACK, type LayoutColor, LayoutColorSchema, colorToRgbHex, rgbHexToColor };
@@ -0,0 +1,13 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/model/metadata.ts
3
+ function resolveMetadataTimestamps(metadata, clock) {
4
+ if (metadata.createdIso !== void 0 && metadata.modifiedIso !== void 0) return metadata;
5
+ const now = clock.now().toISOString();
6
+ return {
7
+ ...metadata,
8
+ createdIso: metadata.createdIso ?? now,
9
+ modifiedIso: metadata.modifiedIso ?? now
10
+ };
11
+ }
12
+ //#endregion
13
+ exports.resolveMetadataTimestamps = resolveMetadataTimestamps;
@@ -0,0 +1,6 @@
1
+ import { ClockPort } from "../ports/clock.cjs";
2
+ import { LayoutMetadata } from "document-schema.js";
3
+ //#region src/model/metadata.d.ts
4
+ declare function resolveMetadataTimestamps(metadata: LayoutMetadata, clock: ClockPort): LayoutMetadata;
5
+ //#endregion
6
+ export { resolveMetadataTimestamps };
@@ -0,0 +1,6 @@
1
+ import { ClockPort } from "../ports/clock.js";
2
+ import { LayoutMetadata } from "document-schema.js";
3
+ //#region src/model/metadata.d.ts
4
+ declare function resolveMetadataTimestamps(metadata: LayoutMetadata, clock: ClockPort): LayoutMetadata;
5
+ //#endregion
6
+ export { resolveMetadataTimestamps };
@@ -0,0 +1,12 @@
1
+ //#region src/model/metadata.ts
2
+ function resolveMetadataTimestamps(metadata, clock) {
3
+ if (metadata.createdIso !== void 0 && metadata.modifiedIso !== void 0) return metadata;
4
+ const now = clock.now().toISOString();
5
+ return {
6
+ ...metadata,
7
+ createdIso: metadata.createdIso ?? now,
8
+ modifiedIso: metadata.modifiedIso ?? now
9
+ };
10
+ }
11
+ //#endregion
12
+ export { resolveMetadataTimestamps };
@@ -1,6 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_model_embedded_drawing = require("../../model/embedded-drawing.cjs");
2
3
  const require_model_formula = require("../../model/formula.cjs");
3
4
  const require_odf_formula_detect = require("../formula/detect.cjs");
5
+ const require_odf_vector_detect = require("../vector/detect.cjs");
4
6
  let document_schema_js = require("document-schema.js");
5
7
  let odf_js = require("odf.js");
6
8
  //#region src/odf/odp/read.ts
@@ -22,6 +24,42 @@ function readOdpContent(pkg) {
22
24
  blocks: [require_model_formula.buildFormulaBlock(found.formula, found.frame, `slides[${slideIndex}].shapes[${found.shapeIndex}]`)]
23
25
  };
24
26
  }
27
+ const groups = require_odf_vector_detect.collectSlideVectorGroups(pageElement.children, pkg);
28
+ if (groups.length === 0) return;
29
+ const shapes = [];
30
+ let shapeIndex = 0;
31
+ let groupIndex = 0;
32
+ while (shapeIndex <= slide.shapes.length) {
33
+ while (groupIndex < groups.length && groups[groupIndex].insertBeforeShapeIndex === shapeIndex) {
34
+ const group = groups[groupIndex];
35
+ const sourcePath = `slides[${slideIndex}].shapes[${shapes.length}]`;
36
+ shapes.push({
37
+ frame: {
38
+ xPt: 0,
39
+ yPt: 0,
40
+ widthPt: slide.size.widthPt,
41
+ heightPt: slide.size.heightPt
42
+ },
43
+ insetLeftPt: 0,
44
+ insetTopPt: 0,
45
+ insetRightPt: 0,
46
+ insetBottomPt: 0,
47
+ blocks: [{
48
+ ...require_model_embedded_drawing.buildDrawingBlock(slide.size, group.vectors),
49
+ sourcePath
50
+ }],
51
+ sourcePath
52
+ });
53
+ groupIndex += 1;
54
+ }
55
+ const shape = slide.shapes[shapeIndex];
56
+ if (shape !== void 0) shapes.push(shape);
57
+ shapeIndex += 1;
58
+ }
59
+ odpDoc.slides[slideIndex] = {
60
+ ...slide,
61
+ shapes
62
+ };
25
63
  });
26
64
  }
27
65
  return {
@@ -1,5 +1,7 @@
1
+ import { buildDrawingBlock } from "../../model/embedded-drawing.js";
1
2
  import { buildFormulaBlock } from "../../model/formula.js";
2
3
  import { collectSlideFormulaFrames } from "../formula/detect.js";
4
+ import { collectSlideVectorGroups } from "../vector/detect.js";
3
5
  import { CONTENT_FORMAT_VERSION } from "document-schema.js";
4
6
  import { childrenWithTag, findChildElement, readOdp, rootElement } from "odf.js";
5
7
  //#region src/odf/odp/read.ts
@@ -21,6 +23,42 @@ function readOdpContent(pkg) {
21
23
  blocks: [buildFormulaBlock(found.formula, found.frame, `slides[${slideIndex}].shapes[${found.shapeIndex}]`)]
22
24
  };
23
25
  }
26
+ const groups = collectSlideVectorGroups(pageElement.children, pkg);
27
+ if (groups.length === 0) return;
28
+ const shapes = [];
29
+ let shapeIndex = 0;
30
+ let groupIndex = 0;
31
+ while (shapeIndex <= slide.shapes.length) {
32
+ while (groupIndex < groups.length && groups[groupIndex].insertBeforeShapeIndex === shapeIndex) {
33
+ const group = groups[groupIndex];
34
+ const sourcePath = `slides[${slideIndex}].shapes[${shapes.length}]`;
35
+ shapes.push({
36
+ frame: {
37
+ xPt: 0,
38
+ yPt: 0,
39
+ widthPt: slide.size.widthPt,
40
+ heightPt: slide.size.heightPt
41
+ },
42
+ insetLeftPt: 0,
43
+ insetTopPt: 0,
44
+ insetRightPt: 0,
45
+ insetBottomPt: 0,
46
+ blocks: [{
47
+ ...buildDrawingBlock(slide.size, group.vectors),
48
+ sourcePath
49
+ }],
50
+ sourcePath
51
+ });
52
+ groupIndex += 1;
53
+ }
54
+ const shape = slide.shapes[shapeIndex];
55
+ if (shape !== void 0) shapes.push(shape);
56
+ shapeIndex += 1;
57
+ }
58
+ odpDoc.slides[slideIndex] = {
59
+ ...slide,
60
+ shapes
61
+ };
24
62
  });
25
63
  }
26
64
  return {