js.documents 6.0.1 → 6.1.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/README.md +283 -115
- package/dist/bin-dispatch.d.cts +2 -2
- package/dist/bin-dispatch.d.ts +2 -2
- package/dist/{blr-types-DVgO1DQ9.d.cts → blr-types-CMN0QKUE.d.cts} +1 -1
- package/dist/{blr-types-DVgO1DQ9.d.ts → blr-types-CMN0QKUE.d.ts} +1 -1
- package/dist/{capability-an5gSNsu.d.cts → capability-BZ3iNsWh.d.cts} +1 -1
- package/dist/{capability-DX0lCSiI.d.ts → capability-D-a4okp0.d.ts} +1 -1
- package/dist/{cell-typing-CEWlywIc.d.cts → cell-typing-BQ-xQ5X5.d.cts} +4 -4
- package/dist/{cell-typing-CEWlywIc.d.ts → cell-typing-BQ-xQ5X5.d.ts} +4 -4
- package/dist/codecs/read.d.cts +1 -1
- package/dist/codecs/read.d.ts +1 -1
- package/dist/convert/capability.d.cts +1 -1
- package/dist/convert/capability.d.ts +1 -1
- package/dist/convert/composition.d.cts +8 -8
- package/dist/convert/composition.d.ts +8 -8
- package/dist/convert/convert.d.cts +3 -3
- package/dist/convert/convert.d.ts +3 -3
- package/dist/convert/port.d.cts +1 -1
- package/dist/convert/port.d.ts +1 -1
- package/dist/convert/variant-bridges.d.cts +3 -3
- package/dist/convert/variant-bridges.d.ts +3 -3
- package/dist/csv/read.d.cts +1 -1
- package/dist/csv/read.d.ts +1 -1
- package/dist/csv/records.cjs +1 -1
- package/dist/csv/records.js +1 -1
- package/dist/csv/write.d.cts +2 -2
- package/dist/csv/write.d.ts +2 -2
- package/dist/{diagnostics-C5-bG09J.d.cts → diagnostics-DdO0xPGy.d.cts} +1 -1
- package/dist/{diagnostics-C5-bG09J.d.ts → diagnostics-DdO0xPGy.d.ts} +1 -1
- package/dist/edit/docx/content.d.cts +1 -1
- package/dist/edit/docx/content.d.ts +1 -1
- package/dist/edit/docx/image.d.cts +1 -1
- package/dist/edit/docx/image.d.ts +1 -1
- package/dist/edit/docx/paragraph.cjs +1 -1
- package/dist/edit/docx/paragraph.d.cts +6 -6
- package/dist/edit/docx/paragraph.d.ts +6 -6
- package/dist/edit/docx/paragraph.js +1 -1
- package/dist/edit/docx/props.d.cts +4 -4
- package/dist/edit/docx/props.d.ts +4 -4
- package/dist/edit/docx/table.d.cts +1 -1
- package/dist/edit/docx/table.d.ts +1 -1
- package/dist/edit/markdown/list.d.cts +1 -1
- package/dist/edit/markdown/list.d.ts +1 -1
- package/dist/edit/odg/page.d.cts +3 -3
- package/dist/edit/odg/page.d.ts +3 -3
- package/dist/edit/odg/vector.d.cts +1 -1
- package/dist/edit/odg/vector.d.ts +1 -1
- package/dist/edit/odp/image.d.cts +1 -1
- package/dist/edit/odp/image.d.ts +1 -1
- package/dist/edit/odp/shape.d.cts +1 -1
- package/dist/edit/odp/shape.d.ts +1 -1
- package/dist/edit/odp/slide.d.cts +4 -4
- package/dist/edit/odp/slide.d.ts +4 -4
- package/dist/edit/odt/content.d.cts +3 -3
- package/dist/edit/odt/content.d.ts +3 -3
- package/dist/edit/odt/editor.d.cts +3 -3
- package/dist/edit/odt/editor.d.ts +3 -3
- package/dist/edit/odt/image.d.cts +1 -1
- package/dist/edit/odt/image.d.ts +1 -1
- package/dist/edit/odt/list.d.cts +1 -1
- package/dist/edit/odt/list.d.ts +1 -1
- package/dist/edit/odt/paragraph.cjs +1 -1
- package/dist/edit/odt/paragraph.d.cts +1 -1
- package/dist/edit/odt/paragraph.d.ts +1 -1
- package/dist/edit/odt/paragraph.js +1 -1
- package/dist/edit/odt/table.d.cts +1 -1
- package/dist/edit/odt/table.d.ts +1 -1
- package/dist/edit/pdf/item.cjs +1 -1
- package/dist/edit/pdf/item.d.cts +1 -1
- package/dist/edit/pdf/item.d.ts +1 -1
- package/dist/edit/pdf/item.js +1 -1
- package/dist/edit/pdf/page.d.cts +1 -1
- package/dist/edit/pdf/page.d.ts +1 -1
- package/dist/edit/pdf/util.d.cts +1 -1
- package/dist/edit/pdf/util.d.ts +1 -1
- package/dist/edit/pptx/content.cjs +1 -1
- package/dist/edit/pptx/content.d.cts +1 -1
- package/dist/edit/pptx/content.d.ts +1 -1
- package/dist/edit/pptx/content.js +1 -1
- package/dist/edit/pptx/editor.cjs +1 -1
- package/dist/edit/pptx/editor.js +1 -1
- package/dist/edit/pptx/image.d.cts +1 -1
- package/dist/edit/pptx/image.d.ts +1 -1
- package/dist/edit/pptx/shape.d.cts +1 -1
- package/dist/edit/pptx/shape.d.ts +1 -1
- package/dist/edit/pptx/slide.d.cts +3 -3
- package/dist/edit/pptx/slide.d.ts +3 -3
- package/dist/edit/pptx/table.d.cts +1 -1
- package/dist/edit/pptx/table.d.ts +1 -1
- package/dist/{evaluate-BU5N1Jk1.d.ts → evaluate-Cu7iEnxX.d.ts} +1 -1
- package/dist/{evaluate-BhMXY6DM.d.cts → evaluate-Rl9P68se.d.cts} +1 -1
- package/dist/firebird/blr-types.d.cts +1 -1
- package/dist/firebird/blr-types.d.ts +1 -1
- package/dist/firebird/schema.d.cts +1 -1
- package/dist/firebird/schema.d.ts +1 -1
- package/dist/fonts/ooxml.d.cts +1 -1
- package/dist/fonts/ooxml.d.ts +1 -1
- package/dist/fonts/registry.d.cts +1 -1
- package/dist/fonts/registry.d.ts +1 -1
- package/dist/{formula-Cs0IexVi.d.cts → formula-BH1FBblm.d.cts} +1 -1
- package/dist/{formula-_8feXQH7.d.cts → formula-BpuJ3ae0.d.cts} +1 -1
- package/dist/{formula-DDSYieJg.d.ts → formula-Cb-LRoIE.d.ts} +1 -1
- package/dist/{formula-BKgIMfhi.d.ts → formula-DF4R1QEJ.d.ts} +1 -1
- package/dist/{image-DRqXQmEg.d.cts → image-BQ7F9xxz.d.cts} +1 -1
- package/dist/{image-DRqXQmEg.d.ts → image-BQ7F9xxz.d.ts} +1 -1
- package/dist/{image-CRgc_j2Q.d.cts → image-CwbCQ49u.d.ts} +2 -2
- package/dist/{image-Biwtr667.d.ts → image-DQxA-zGN.d.cts} +1 -1
- package/dist/{image-Biwtr667.d.cts → image-DQxA-zGN.d.ts} +1 -1
- package/dist/{image-3ql9_z1y.d.ts → image-DzqEWMDw.d.cts} +1 -1
- package/dist/{image-3ql9_z1y.d.cts → image-DzqEWMDw.d.ts} +1 -1
- package/dist/{image-CyYr22TE.d.ts → image-fah3VkZg.d.cts} +2 -2
- package/dist/index.d.cts +19 -19
- package/dist/index.d.ts +19 -19
- package/dist/{item-DhXpJNAQ.d.cts → item-SUC4uKDO.d.cts} +5 -5
- package/dist/{item-DhXpJNAQ.d.ts → item-SUC4uKDO.d.ts} +5 -5
- package/dist/latex/diagnostics.d.cts +1 -1
- package/dist/latex/diagnostics.d.ts +1 -1
- package/dist/latex/lint.cjs +4 -6
- package/dist/latex/lint.d.cts +1 -1
- package/dist/latex/lint.d.ts +1 -1
- package/dist/latex/lint.js +4 -6
- package/dist/latex/lower.cjs +1 -1
- package/dist/latex/lower.d.cts +1 -1
- package/dist/latex/lower.d.ts +1 -1
- package/dist/latex/lower.js +1 -1
- package/dist/latex/symbols.d.cts +1 -1
- package/dist/latex/symbols.d.ts +1 -1
- package/dist/latex/temml.d.cts +2 -2
- package/dist/latex/temml.d.ts +2 -2
- package/dist/layout/cell-typing.d.cts +1 -1
- package/dist/layout/cell-typing.d.ts +1 -1
- package/dist/layout/drawing.d.cts +1 -1
- package/dist/layout/drawing.d.ts +1 -1
- package/dist/layout/engine.d.cts +1 -1
- package/dist/layout/engine.d.ts +1 -1
- package/dist/layout/lattice.cjs +24 -0
- package/dist/layout/lattice.js +24 -0
- package/dist/layout/reconstruct.cjs +1 -1
- package/dist/layout/reconstruct.d.cts +1 -1
- package/dist/layout/reconstruct.d.ts +1 -1
- package/dist/layout/reconstruct.js +1 -1
- package/dist/layout/sheets.d.cts +1 -1
- package/dist/layout/sheets.d.ts +1 -1
- package/dist/layout/slides.d.cts +1 -1
- package/dist/layout/slides.d.ts +1 -1
- package/dist/layout/text-layout.d.cts +1 -1
- package/dist/layout/text-layout.d.ts +1 -1
- package/dist/{lexer-DGPWx_f2.d.cts → lexer-DgsW7jMA.d.cts} +9 -9
- package/dist/{lexer-DGPWx_f2.d.ts → lexer-DgsW7jMA.d.ts} +9 -9
- package/dist/{list-C55W_YCp.d.ts → list-B_Sy668f.d.ts} +1 -1
- package/dist/{list-lTB3eDLC.d.cts → list-BiTN6oop.d.cts} +1 -1
- package/dist/markdown/math.d.cts +1 -1
- package/dist/markdown/math.d.ts +1 -1
- package/dist/markdown/render.d.cts +1 -1
- package/dist/markdown/render.d.ts +1 -1
- package/dist/mathml/layout-types.d.cts +1 -1
- package/dist/mathml/layout-types.d.ts +1 -1
- package/dist/mathml/layout.d.cts +2 -2
- package/dist/mathml/layout.d.ts +2 -2
- package/dist/mathml/nodes.d.cts +1 -1
- package/dist/mathml/nodes.d.ts +1 -1
- package/dist/mathml/variant.d.cts +1 -1
- package/dist/mathml/variant.d.ts +1 -1
- package/dist/model/embedded-drawing.d.cts +1 -1
- package/dist/model/embedded-drawing.d.ts +1 -1
- package/dist/model/paint-order.d.cts +2 -2
- package/dist/model/paint-order.d.ts +2 -2
- package/dist/{nodes-pArN9ilm.d.cts → nodes-jrlUmrNs.d.cts} +3 -3
- package/dist/{nodes-pArN9ilm.d.ts → nodes-jrlUmrNs.d.ts} +3 -3
- package/dist/odb/formula/evaluate.d.cts +4 -4
- package/dist/odb/formula/evaluate.d.ts +4 -4
- package/dist/odb/formula/parser.d.cts +6 -6
- package/dist/odb/formula/parser.d.ts +6 -6
- package/dist/odb/read.d.cts +1 -1
- package/dist/odb/read.d.ts +1 -1
- package/dist/odb/report/render.d.cts +1 -1
- package/dist/odb/report/render.d.ts +1 -1
- package/dist/odb/report/source.d.cts +1 -1
- package/dist/odb/report/source.d.ts +1 -1
- package/dist/odb/sql/evaluate.d.cts +1 -1
- package/dist/odb/sql/evaluate.d.ts +1 -1
- package/dist/odb/sql/lexer.d.cts +1 -1
- package/dist/odb/sql/lexer.d.ts +1 -1
- package/dist/odb/sql/parser.d.cts +1 -1
- package/dist/odb/sql/parser.d.ts +1 -1
- package/dist/odb/values.d.cts +1 -1
- package/dist/odb/values.d.ts +1 -1
- package/dist/odf/vector/detect.cjs +1 -1
- package/dist/odf/vector/detect.js +1 -1
- package/dist/odf-package/media.d.cts +1 -1
- package/dist/odf-package/media.d.ts +1 -1
- package/dist/omml/read.d.cts +1 -1
- package/dist/omml/read.d.ts +1 -1
- package/dist/omml/shared.d.cts +1 -1
- package/dist/omml/shared.d.ts +1 -1
- package/dist/omml/write.d.cts +1 -1
- package/dist/omml/write.d.ts +1 -1
- package/dist/ooxml/docx/embedded-objects.cjs +10 -24
- package/dist/ooxml/docx/embedded-objects.d.cts +1 -1
- package/dist/ooxml/docx/embedded-objects.d.ts +1 -1
- package/dist/ooxml/docx/embedded-objects.js +10 -24
- package/dist/ooxml/docx/formula.d.cts +1 -1
- package/dist/ooxml/docx/formula.d.ts +1 -1
- package/dist/ooxml/docx/read.d.cts +1 -1
- package/dist/ooxml/docx/read.d.ts +1 -1
- package/dist/ooxml/pptx/formula.d.cts +1 -1
- package/dist/ooxml/pptx/formula.d.ts +1 -1
- package/dist/ooxml/pptx/read.d.cts +1 -1
- package/dist/ooxml/pptx/read.d.ts +1 -1
- package/dist/ooxml/pptx/vector.cjs +1 -1
- package/dist/ooxml/pptx/vector.js +1 -1
- package/dist/opc/media.d.cts +1 -1
- package/dist/opc/media.d.ts +1 -1
- package/dist/opc/rels.d.cts +1 -1
- package/dist/opc/rels.d.ts +1 -1
- package/dist/{paragraph-CoPeTuHR.d.cts → paragraph-BBmkECjw.d.cts} +1 -1
- package/dist/{paragraph--69uh-Ys.d.ts → paragraph-D_fDin5K.d.ts} +1 -1
- package/dist/{parser-DQSgYJzQ.d.ts → parser-D0IJI7LA.d.ts} +22 -22
- package/dist/{parser-B9vC1T6T.d.cts → parser-DYfiAasj.d.cts} +22 -22
- package/dist/{registry-BcBT-bnX.d.cts → registry-913jEe6-.d.ts} +3 -3
- package/dist/{registry-D1Pu5XxB.d.ts → registry-Bs4IHqVQ.d.cts} +3 -3
- package/dist/{shape-DyIjuKE9.d.ts → shape-BY5P8kDn.d.ts} +2 -2
- package/dist/{shape-CaG-RPiz.d.cts → shape-Ca-xsrde.d.cts} +2 -2
- package/dist/{shape-CLHm7U8Y.d.cts → shape-DqkYq1OL.d.cts} +2 -2
- package/dist/{shape-Dnz6-wmG.d.ts → shape-xpgICOEx.d.ts} +2 -2
- package/dist/{shared-DUOzjwcL.d.ts → shared-DHu5jDJf.d.ts} +2 -2
- package/dist/{shared-DLZ3IQUl.d.cts → shared-c0Lp3_iY.d.cts} +2 -2
- package/dist/svg/paint.d.cts +5 -5
- package/dist/svg/paint.d.ts +5 -5
- package/dist/svg/path.d.cts +2 -2
- package/dist/svg/path.d.ts +2 -2
- package/dist/svg/write.d.cts +2 -2
- package/dist/svg/write.d.ts +2 -2
- package/dist/{table-CTeOe_vm.d.ts → table-C3VWWdjr.d.ts} +1 -1
- package/dist/{table-DH0lJRVv.d.cts → table-C_KDsX5R.d.cts} +1 -1
- package/dist/{table-BxMiEZXd.d.ts → table-Ck0fyr8d.d.ts} +1 -1
- package/dist/{table-C_tSXnbt.d.cts → table-CpEmblWG.d.cts} +1 -1
- package/dist/{values-BetetbaH.d.cts → values-BBN9E8dV.d.cts} +5 -5
- package/dist/{values-BetetbaH.d.ts → values-BBN9E8dV.d.ts} +5 -5
- package/dist/{variant-BMrebjMw.d.cts → variant-uwYyRetr.d.cts} +1 -1
- package/dist/{variant-BMrebjMw.d.ts → variant-uwYyRetr.d.ts} +1 -1
- package/dist/{vector-D03KX8Ux.d.cts → vector-DDP7hgvm.d.cts} +2 -2
- package/dist/{vector-D03KX8Ux.d.ts → vector-DDP7hgvm.d.ts} +2 -2
- package/dist/{write-BQ6SK8r8.d.cts → write-DWupt1QI.d.cts} +2 -2
- package/dist/{write-THs7ipBq.d.ts → write-qKlz1R0J.d.ts} +2 -2
- package/dist/xml/odf-text.cjs +1 -1
- package/dist/xml/odf-text.js +1 -1
- package/package.json +7 -16
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as MathVariant } from "./variant-
|
|
1
|
+
import { t as MathVariant } from "./variant-uwYyRetr.js";
|
|
2
2
|
//#region src/omml/shared.d.ts
|
|
3
|
-
type OmmlDiagnosticKind =
|
|
3
|
+
type OmmlDiagnosticKind = "unsupported-element" | "approximated-element";
|
|
4
4
|
interface OmmlDiagnostic {
|
|
5
5
|
readonly kind: OmmlDiagnosticKind;
|
|
6
6
|
readonly detail: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as MathVariant } from "./variant-
|
|
1
|
+
import { t as MathVariant } from "./variant-uwYyRetr.cjs";
|
|
2
2
|
//#region src/omml/shared.d.ts
|
|
3
|
-
type OmmlDiagnosticKind =
|
|
3
|
+
type OmmlDiagnosticKind = "unsupported-element" | "approximated-element";
|
|
4
4
|
interface OmmlDiagnostic {
|
|
5
5
|
readonly kind: OmmlDiagnosticKind;
|
|
6
6
|
readonly detail: string;
|
package/dist/svg/paint.d.cts
CHANGED
|
@@ -2,18 +2,18 @@ import { Color } from "document-schema.js";
|
|
|
2
2
|
//#region src/svg/paint.d.ts
|
|
3
3
|
declare function parseSvgColor(raw: string): Color | undefined;
|
|
4
4
|
type SvgPaint = {
|
|
5
|
-
readonly kind:
|
|
5
|
+
readonly kind: "none";
|
|
6
6
|
} | {
|
|
7
|
-
readonly kind:
|
|
7
|
+
readonly kind: "currentColor";
|
|
8
8
|
} | {
|
|
9
|
-
readonly kind:
|
|
9
|
+
readonly kind: "color";
|
|
10
10
|
readonly color: Color;
|
|
11
11
|
} | {
|
|
12
|
-
readonly kind:
|
|
12
|
+
readonly kind: "url";
|
|
13
13
|
readonly fragment: string;
|
|
14
14
|
};
|
|
15
15
|
declare function parseSvgPaint(raw: string): SvgPaint | undefined;
|
|
16
|
-
type SvgDashStyle =
|
|
16
|
+
type SvgDashStyle = "dashed" | "dotted";
|
|
17
17
|
declare function parseSvgDashStyle(raw: string | undefined): SvgDashStyle | undefined;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { SvgDashStyle, SvgPaint, parseSvgColor, parseSvgDashStyle, parseSvgPaint };
|
package/dist/svg/paint.d.ts
CHANGED
|
@@ -2,18 +2,18 @@ import { Color } from "document-schema.js";
|
|
|
2
2
|
//#region src/svg/paint.d.ts
|
|
3
3
|
declare function parseSvgColor(raw: string): Color | undefined;
|
|
4
4
|
type SvgPaint = {
|
|
5
|
-
readonly kind:
|
|
5
|
+
readonly kind: "none";
|
|
6
6
|
} | {
|
|
7
|
-
readonly kind:
|
|
7
|
+
readonly kind: "currentColor";
|
|
8
8
|
} | {
|
|
9
|
-
readonly kind:
|
|
9
|
+
readonly kind: "color";
|
|
10
10
|
readonly color: Color;
|
|
11
11
|
} | {
|
|
12
|
-
readonly kind:
|
|
12
|
+
readonly kind: "url";
|
|
13
13
|
readonly fragment: string;
|
|
14
14
|
};
|
|
15
15
|
declare function parseSvgPaint(raw: string): SvgPaint | undefined;
|
|
16
|
-
type SvgDashStyle =
|
|
16
|
+
type SvgDashStyle = "dashed" | "dotted";
|
|
17
17
|
declare function parseSvgDashStyle(raw: string | undefined): SvgDashStyle | undefined;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { SvgDashStyle, SvgPaint, parseSvgColor, parseSvgDashStyle, parseSvgPaint };
|
package/dist/svg/path.d.cts
CHANGED
|
@@ -4,10 +4,10 @@ interface ParsedPathPoint {
|
|
|
4
4
|
readonly y: number;
|
|
5
5
|
}
|
|
6
6
|
type ParsedPathSegment = {
|
|
7
|
-
readonly kind:
|
|
7
|
+
readonly kind: "line";
|
|
8
8
|
readonly to: ParsedPathPoint;
|
|
9
9
|
} | {
|
|
10
|
-
readonly kind:
|
|
10
|
+
readonly kind: "cubic";
|
|
11
11
|
readonly control1: ParsedPathPoint;
|
|
12
12
|
readonly control2: ParsedPathPoint;
|
|
13
13
|
readonly to: ParsedPathPoint;
|
package/dist/svg/path.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ interface ParsedPathPoint {
|
|
|
4
4
|
readonly y: number;
|
|
5
5
|
}
|
|
6
6
|
type ParsedPathSegment = {
|
|
7
|
-
readonly kind:
|
|
7
|
+
readonly kind: "line";
|
|
8
8
|
readonly to: ParsedPathPoint;
|
|
9
9
|
} | {
|
|
10
|
-
readonly kind:
|
|
10
|
+
readonly kind: "cubic";
|
|
11
11
|
readonly control1: ParsedPathPoint;
|
|
12
12
|
readonly control2: ParsedPathPoint;
|
|
13
13
|
readonly to: ParsedPathPoint;
|
package/dist/svg/write.d.cts
CHANGED
|
@@ -2,8 +2,8 @@ import { i as SvgDiagnosticSink } from "../diagnostics-DVAXKgcf.cjs";
|
|
|
2
2
|
import { ContentDocument } from "document-schema.js";
|
|
3
3
|
//#region src/svg/write.d.ts
|
|
4
4
|
declare class SvgUnsupportedDocumentKindError extends Error {
|
|
5
|
-
readonly kind: ContentDocument[
|
|
6
|
-
constructor(kind: ContentDocument[
|
|
5
|
+
readonly kind: ContentDocument["kind"];
|
|
6
|
+
constructor(kind: ContentDocument["kind"]);
|
|
7
7
|
}
|
|
8
8
|
declare class SvgMultiPageNotSpecifiedError extends Error {
|
|
9
9
|
readonly pageCount: number;
|
package/dist/svg/write.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { i as SvgDiagnosticSink } from "../diagnostics-DVAXKgcf.js";
|
|
|
2
2
|
import { ContentDocument } from "document-schema.js";
|
|
3
3
|
//#region src/svg/write.d.ts
|
|
4
4
|
declare class SvgUnsupportedDocumentKindError extends Error {
|
|
5
|
-
readonly kind: ContentDocument[
|
|
6
|
-
constructor(kind: ContentDocument[
|
|
5
|
+
readonly kind: ContentDocument["kind"];
|
|
6
|
+
constructor(kind: ContentDocument["kind"]);
|
|
7
7
|
}
|
|
8
8
|
declare class SvgMultiPageNotSpecifiedError extends Error {
|
|
9
9
|
readonly pageCount: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as DrawingParagraphInit } from "./shape-
|
|
1
|
+
import { t as DrawingParagraphInit } from "./shape-BY5P8kDn.js";
|
|
2
2
|
import { XmlElement } from "ooxml.js";
|
|
3
3
|
import { Box, Color, ContentCellBorders } from "document-schema.js";
|
|
4
4
|
//#region src/edit/pptx/table.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as DrawingParagraphInit } from "./shape-
|
|
1
|
+
import { t as DrawingParagraphInit } from "./shape-Ca-xsrde.cjs";
|
|
2
2
|
import { Box, Color, ContentCellBorders } from "document-schema.js";
|
|
3
3
|
import { XmlElement } from "ooxml.js";
|
|
4
4
|
//#region src/edit/pptx/table.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph
|
|
1
|
+
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-D_fDin5K.js";
|
|
2
2
|
import { Color, ContentCellBorders } from "document-schema.js";
|
|
3
3
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
4
4
|
//#region src/edit/odt/table.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-
|
|
1
|
+
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-BBmkECjw.cjs";
|
|
2
2
|
import { Color, ContentCellBorders } from "document-schema.js";
|
|
3
3
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
4
4
|
//#region src/edit/odt/table.d.ts
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ContentCellValue } from "document-schema.js";
|
|
2
2
|
//#region src/odb/values.d.ts
|
|
3
|
-
type CellValueClass =
|
|
3
|
+
type CellValueClass = "numeric" | "boolean" | "text";
|
|
4
4
|
type CellComparisonKey = {
|
|
5
|
-
readonly valueClass:
|
|
5
|
+
readonly valueClass: "numeric";
|
|
6
6
|
readonly numeric: number;
|
|
7
7
|
} | {
|
|
8
|
-
readonly valueClass:
|
|
8
|
+
readonly valueClass: "boolean";
|
|
9
9
|
readonly boolean: boolean;
|
|
10
10
|
} | {
|
|
11
|
-
readonly valueClass:
|
|
11
|
+
readonly valueClass: "text";
|
|
12
12
|
readonly text: string;
|
|
13
13
|
};
|
|
14
|
-
type CellAggregateFunction =
|
|
14
|
+
type CellAggregateFunction = "COUNT" | "SUM" | "AVG" | "MIN" | "MAX";
|
|
15
15
|
type CellValueFailure = (message: string) => Error;
|
|
16
16
|
declare const CELL_NULL: ContentCellValue;
|
|
17
17
|
declare function cellComparisonKey(value: ContentCellValue): CellComparisonKey | undefined;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ContentCellValue } from "document-schema.js";
|
|
2
2
|
//#region src/odb/values.d.ts
|
|
3
|
-
type CellValueClass =
|
|
3
|
+
type CellValueClass = "numeric" | "boolean" | "text";
|
|
4
4
|
type CellComparisonKey = {
|
|
5
|
-
readonly valueClass:
|
|
5
|
+
readonly valueClass: "numeric";
|
|
6
6
|
readonly numeric: number;
|
|
7
7
|
} | {
|
|
8
|
-
readonly valueClass:
|
|
8
|
+
readonly valueClass: "boolean";
|
|
9
9
|
readonly boolean: boolean;
|
|
10
10
|
} | {
|
|
11
|
-
readonly valueClass:
|
|
11
|
+
readonly valueClass: "text";
|
|
12
12
|
readonly text: string;
|
|
13
13
|
};
|
|
14
|
-
type CellAggregateFunction =
|
|
14
|
+
type CellAggregateFunction = "COUNT" | "SUM" | "AVG" | "MIN" | "MAX";
|
|
15
15
|
type CellValueFailure = (message: string) => Error;
|
|
16
16
|
declare const CELL_NULL: ContentCellValue;
|
|
17
17
|
declare function cellComparisonKey(value: ContentCellValue): CellComparisonKey | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/mathml/variant.d.ts
|
|
2
|
-
type MathVariant =
|
|
2
|
+
type MathVariant = "normal" | "bold" | "italic" | "bold-italic" | "double-struck" | "bold-fraktur" | "script" | "bold-script" | "fraktur" | "sans-serif" | "bold-sans-serif" | "sans-serif-italic" | "sans-serif-bold-italic" | "monospace";
|
|
3
3
|
declare function mapMathVariant(codePoint: number, variant: MathVariant): number;
|
|
4
4
|
declare function applyMathVariant(text: string, variant: MathVariant): string;
|
|
5
5
|
declare function isMathVariant(value: string): value is MathVariant;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/mathml/variant.d.ts
|
|
2
|
-
type MathVariant =
|
|
2
|
+
type MathVariant = "normal" | "bold" | "italic" | "bold-italic" | "double-struck" | "bold-fraktur" | "script" | "bold-script" | "fraktur" | "sans-serif" | "bold-sans-serif" | "sans-serif-italic" | "sans-serif-bold-italic" | "monospace";
|
|
3
3
|
declare function mapMathVariant(codePoint: number, variant: MathVariant): number;
|
|
4
4
|
declare function applyMathVariant(text: string, variant: MathVariant): string;
|
|
5
5
|
declare function isMathVariant(value: string): value is MathVariant;
|
|
@@ -7,7 +7,7 @@ interface BoxVectorInit {
|
|
|
7
7
|
readonly stroke?: ContentStroke;
|
|
8
8
|
readonly textFlowAnchored?: boolean;
|
|
9
9
|
}
|
|
10
|
-
type OdgBoxVectorKind =
|
|
10
|
+
type OdgBoxVectorKind = "rect" | "ellipse";
|
|
11
11
|
declare function buildRectElement(pkg: Package, init: BoxVectorInit): XmlElement;
|
|
12
12
|
declare function buildEllipseElement(pkg: Package, init: BoxVectorInit): XmlElement;
|
|
13
13
|
declare class OdgBoxVector {
|
|
@@ -81,7 +81,7 @@ declare class OdgPathVector {
|
|
|
81
81
|
get subpaths(): ContentSubpath[];
|
|
82
82
|
remove(): void;
|
|
83
83
|
}
|
|
84
|
-
type OdgVectorKind = OdgBoxVectorKind |
|
|
84
|
+
type OdgVectorKind = OdgBoxVectorKind | "line" | "path";
|
|
85
85
|
type OdgVector = OdgBoxVector | OdgLineVector | OdgPathVector;
|
|
86
86
|
declare function wrapVectorElement(container: XmlNode[], node: XmlElement, pkg: Package): OdgVector | undefined;
|
|
87
87
|
interface VectorElementOptions {
|
|
@@ -7,7 +7,7 @@ interface BoxVectorInit {
|
|
|
7
7
|
readonly stroke?: ContentStroke;
|
|
8
8
|
readonly textFlowAnchored?: boolean;
|
|
9
9
|
}
|
|
10
|
-
type OdgBoxVectorKind =
|
|
10
|
+
type OdgBoxVectorKind = "rect" | "ellipse";
|
|
11
11
|
declare function buildRectElement(pkg: Package, init: BoxVectorInit): XmlElement;
|
|
12
12
|
declare function buildEllipseElement(pkg: Package, init: BoxVectorInit): XmlElement;
|
|
13
13
|
declare class OdgBoxVector {
|
|
@@ -81,7 +81,7 @@ declare class OdgPathVector {
|
|
|
81
81
|
get subpaths(): ContentSubpath[];
|
|
82
82
|
remove(): void;
|
|
83
83
|
}
|
|
84
|
-
type OdgVectorKind = OdgBoxVectorKind |
|
|
84
|
+
type OdgVectorKind = OdgBoxVectorKind | "line" | "path";
|
|
85
85
|
type OdgVector = OdgBoxVector | OdgLineVector | OdgPathVector;
|
|
86
86
|
declare function wrapVectorElement(container: XmlNode[], node: XmlElement, pkg: Package): OdgVector | undefined;
|
|
87
87
|
interface VectorElementOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as OmmlDiagnostic } from "./shared-
|
|
2
|
-
import { r as MathMlNode } from "./nodes-
|
|
1
|
+
import { t as OmmlDiagnostic } from "./shared-c0Lp3_iY.cjs";
|
|
2
|
+
import { r as MathMlNode } from "./nodes-jrlUmrNs.cjs";
|
|
3
3
|
import { XmlElement } from "ooxml.js";
|
|
4
4
|
//#region src/omml/write.d.ts
|
|
5
5
|
interface OmmlWriteResult {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as OmmlDiagnostic } from "./shared-
|
|
2
|
-
import { r as MathMlNode } from "./nodes-
|
|
1
|
+
import { t as OmmlDiagnostic } from "./shared-DHu5jDJf.js";
|
|
2
|
+
import { r as MathMlNode } from "./nodes-jrlUmrNs.js";
|
|
3
3
|
import { XmlElement } from "ooxml.js";
|
|
4
4
|
//#region src/omml/write.d.ts
|
|
5
5
|
interface OmmlWriteResult {
|
package/dist/xml/odf-text.cjs
CHANGED
|
@@ -15,7 +15,7 @@ function encodeOdfText(text) {
|
|
|
15
15
|
};
|
|
16
16
|
let i = 0;
|
|
17
17
|
while (i < text.length) {
|
|
18
|
-
const ch = text
|
|
18
|
+
const ch = text.charAt(i);
|
|
19
19
|
if (ch === " ") {
|
|
20
20
|
let runLength = 1;
|
|
21
21
|
while (i + runLength < text.length && text[i + runLength] === " ") runLength += 1;
|
package/dist/xml/odf-text.js
CHANGED
|
@@ -14,7 +14,7 @@ function encodeOdfText(text) {
|
|
|
14
14
|
};
|
|
15
15
|
let i = 0;
|
|
16
16
|
while (i < text.length) {
|
|
17
|
-
const ch = text
|
|
17
|
+
const ch = text.charAt(i);
|
|
18
18
|
if (ch === " ") {
|
|
19
19
|
let runLength = 1;
|
|
20
20
|
while (i + runLength < text.length && text[i + runLength] === " ") runLength += 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "js.documents",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "Bidirectional docx/pptx <-> PDF conversion and a read+write editable OOXML document model, built on ooxml.js and Zod 4 codecs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -77,37 +77,28 @@
|
|
|
77
77
|
],
|
|
78
78
|
"license": "MIT",
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"byte-codec": "^1.
|
|
81
|
-
"document-schema.js": "^5.
|
|
80
|
+
"byte-codec": "^1.2.0",
|
|
81
|
+
"document-schema.js": "^5.1.0",
|
|
82
82
|
"fflate": "^0.8.3",
|
|
83
|
-
"markdown-codec": "^6.
|
|
84
|
-
"odf.js": "^6.
|
|
85
|
-
"ooxml.js": "^6.
|
|
86
|
-
"pdf-codec": "^3.
|
|
83
|
+
"markdown-codec": "^6.1.0",
|
|
84
|
+
"odf.js": "^6.1.0",
|
|
85
|
+
"ooxml.js": "^6.1.0",
|
|
86
|
+
"pdf-codec": "^3.5.0",
|
|
87
87
|
"temml": "0.13.4",
|
|
88
88
|
"zod": "^4.4.3"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
92
92
|
"@cloudflare/vitest-pool-workers": "^0.21.2",
|
|
93
|
-
"@commitlint/cli": "^21.2.1",
|
|
94
|
-
"@commitlint/config-conventional": "^21.2.0",
|
|
95
|
-
"@eslint/js": "^10.0.1",
|
|
96
|
-
"@exadev/eslint-config": "^2.1.0",
|
|
97
|
-
"@semantic-release/changelog": "^7.0.0",
|
|
98
|
-
"@semantic-release/git": "^11.0.1",
|
|
99
93
|
"@types/node": "^26.1.1",
|
|
100
94
|
"@vitest/coverage-v8": "^4.1.10",
|
|
101
95
|
"eslint": "^10.8.0",
|
|
102
|
-
"globals": "^17.8.0",
|
|
103
96
|
"husky": "^9.1.7",
|
|
104
|
-
"lint-staged": "^17.2.0",
|
|
105
97
|
"publint": "^0.3.21",
|
|
106
98
|
"semantic-release": "^25.0.8",
|
|
107
99
|
"tsdown": "^0.22.13",
|
|
108
100
|
"turbo": "^2.10.8",
|
|
109
101
|
"typescript": "^6.0.3",
|
|
110
|
-
"typescript-eslint": "^8.65.0",
|
|
111
102
|
"vitest": "^4.1.10"
|
|
112
103
|
},
|
|
113
104
|
"scripts": {
|