odf.js 6.0.0 → 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 +39 -33
- package/dist/{build-XSm3I8LT.d.cts → build--uPsivid.d.cts} +1 -1
- package/dist/{build-Z1KRkSEB.d.ts → build-DgBE0bmv.d.ts} +1 -1
- package/dist/{cascade-DWQfTwaM.d.cts → cascade-BDkyOmoo.d.cts} +5 -5
- package/dist/{cascade-BZ7zqXhL.d.ts → cascade-CaVinmvp.d.ts} +5 -5
- package/dist/{codec-DztlTBCo.d.ts → codec-CyJ4gSH2.d.ts} +37 -37
- package/dist/{codec-Eu8F9yg-.d.cts → codec-lz3vgEos.d.cts} +37 -37
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/{constructs-C1S8qlVv.d.ts → constructs-BntJjuvH.d.ts} +8 -8
- package/dist/{constructs-FLBse5UV.d.cts → constructs-BzLZy5YP.d.cts} +8 -8
- package/dist/{embedded-Zv8KtFUo.d.ts → embedded-C8tiMCE_.d.ts} +3 -3
- package/dist/{embedded-BzPTTzdf.d.cts → embedded-tlaHMady.d.cts} +3 -3
- package/dist/{form-D8QjulSp.d.ts → form-D6XHM5SR.d.ts} +3 -3
- package/dist/{form-DuOeV_ao.d.cts → form-coDwVdjG.d.cts} +3 -3
- package/dist/{forms-Eh1N15Qy.d.cts → forms-Dc74fCtk.d.cts} +2 -2
- package/dist/{forms-CyLw7lpE.d.ts → forms-Eq2p1ss3.d.ts} +2 -2
- package/dist/{fragment-B1og_8uA.d.cts → fragment-9dNg-m46.d.cts} +1 -1
- package/dist/{fragment-B1ZV7T5Z.d.ts → fragment-ClgCV_if.d.ts} +1 -1
- package/dist/{geometry-lKWJ_ifA.d.cts → geometry-B7FZHSyD.d.cts} +1 -1
- package/dist/{geometry-DnhkIhAM.d.ts → geometry-BI33aJpv.d.ts} +1 -1
- package/dist/image/sniff.d.cts +1 -1
- package/dist/image/sniff.d.ts +1 -1
- package/dist/index.d.cts +40 -40
- package/dist/index.d.ts +40 -40
- package/dist/{list-KZeXA0mR.d.cts → list-DwTyo_B2.d.cts} +3 -3
- package/dist/{list-Qeuawtew.d.ts → list-X_GJY7P3.d.ts} +3 -3
- package/dist/{manifest-BALwu2JR.d.cts → manifest-BGs8Bbd_.d.cts} +1 -1
- package/dist/{manifest-CP1sqyGU.d.ts → manifest-Bju-_gTQ.d.ts} +1 -1
- package/dist/manifest.d.cts +1 -1
- package/dist/manifest.d.ts +1 -1
- package/dist/{masterpage-By_F05W4.d.ts → masterpage-BLK2OJ9q.d.ts} +2 -2
- package/dist/{masterpage-Bt6gxuoL.d.cts → masterpage-KqZshNGZ.d.cts} +2 -2
- package/dist/{metadata-1j1zm9Cx.d.cts → metadata-01SgHkRR.d.cts} +1 -1
- package/dist/{metadata-BXpjrAS-.d.ts → metadata-D1SOBTh8.d.ts} +1 -1
- package/dist/{mimetype-CPNMj04s.d.cts → mimetype-1BaQzNiS.d.cts} +1 -1
- package/dist/{mimetype-BfkwTeaW.d.ts → mimetype-DvMCOzmu.d.ts} +1 -1
- package/dist/mimetype.d.cts +1 -1
- package/dist/mimetype.d.ts +1 -1
- package/dist/model/node.d.cts +1 -1
- package/dist/model/node.d.ts +1 -1
- package/dist/model/package.d.cts +1 -1
- package/dist/model/package.d.ts +1 -1
- package/dist/{node-CkBWRjNR.d.cts → node-B6JX5CRX.d.cts} +1 -1
- package/dist/{node-CkBWRjNR.d.ts → node-B6JX5CRX.d.ts} +1 -1
- package/dist/{package-L24lkba-.d.cts → package-DMk9fuTI.d.cts} +1 -1
- package/dist/package-io/read.d.cts +1 -1
- package/dist/package-io/read.d.ts +1 -1
- package/dist/package-io/write.d.cts +1 -1
- package/dist/package-io/write.d.ts +1 -1
- package/dist/{package-BUojjTXf.d.ts → package-otZYrxiO.d.ts} +1 -1
- package/dist/{paragraph-hzoy-Wos.d.ts → paragraph-ByTzS8Li.d.ts} +4 -4
- package/dist/{paragraph-DaMqmhe3.d.cts → paragraph-CVULactG.d.cts} +4 -4
- package/dist/{parse-A8_8sdpX.d.ts → parse-BLukZ2z0.d.ts} +1 -1
- package/dist/{parse-CP5FLZqv.d.cts → parse-DcVtB3jT.d.cts} +1 -1
- package/dist/{path-DE7wkIcz.d.cts → path-CK0dIPgx.d.cts} +2 -2
- package/dist/{path-DE7wkIcz.d.ts → path-CK0dIPgx.d.ts} +2 -2
- package/dist/{properties-Rral02h1.d.ts → properties-CJyykyc_.d.ts} +1 -1
- package/dist/{properties-C-JKQZUD.d.cts → properties-CiIoNu2h.d.cts} +1 -1
- package/dist/{query-P-Y5DK0-.d.cts → query-C69wTkqg.d.cts} +1 -1
- package/dist/{query-sECN-7vU.d.ts → query-CbxD-WiQ.d.ts} +1 -1
- package/dist/{read-DYYxbvfo.d.ts → read-8s8AdaEd.d.ts} +2 -2
- package/dist/{read-CvjbdgH3.d.ts → read-B2jnd5eS.d.ts} +3 -3
- package/dist/{read-CydREmpv.d.ts → read-BcxAWBB5.d.ts} +4 -4
- package/dist/{read-BeSqYhgO.d.ts → read-Bo1GBjSE.d.ts} +1 -1
- package/dist/{read-CnmgrUcT.d.ts → read-C_oVZAnY.d.ts} +2 -2
- package/dist/{read-BV2an1ok.d.cts → read-D3V_MVAL.d.cts} +3 -3
- package/dist/{read-M0Tx5gOi.d.ts → read-D3wLfr-7.d.ts} +1 -1
- package/dist/{read-1Pb4V339.d.cts → read-DHOQqjOZ.d.cts} +1 -1
- package/dist/{read-IuxtJHKB.d.cts → read-DSyz0YLj.d.cts} +1 -1
- package/dist/{read-sg7J23Kt.d.ts → read-DUOJ-1hX.d.ts} +1 -1
- package/dist/{read-CmA_zSSu.d.cts → read-Dy5p1OMb.d.cts} +4 -4
- package/dist/{read-CMDEXqGw.d.ts → read-a0p7laV3.d.ts} +1 -1
- package/dist/{read-DSm8V7pi.d.cts → read-j9o0IoMq.d.cts} +2 -2
- package/dist/{read-ydLJ8bid.d.cts → read-jVX8DHs3.d.cts} +2 -2
- package/dist/{read-DzmMJPHd.d.cts → read-sawU0IWI.d.cts} +1 -1
- package/dist/{read-iseHPpTG.d.cts → read-tpfiT_n4.d.cts} +1 -1
- package/dist/{registry-CphRYjDD.d.cts → registry-B-ZkdQv1.d.cts} +2 -2
- package/dist/{registry-D5RGBteE.d.ts → registry-Dajfxsbz.d.ts} +2 -2
- package/dist/{report-D6WNYaVn.d.cts → report-39DyUx5W.d.cts} +2 -2
- package/dist/{report-DbslT2OR.d.ts → report-x9RuNwmr.d.ts} +2 -2
- package/dist/{serialize-D1fti8C5.d.cts → serialize-BU7HZ8Qh.d.cts} +2 -2
- package/dist/{serialize-B-lq0LiG.d.ts → serialize-CWz84e0m.d.ts} +2 -2
- package/dist/{shapes-8o3NjBLU.d.cts → shapes-BCjeY90t.d.cts} +4 -4
- package/dist/{shapes-CCB8ydqD.d.ts → shapes-QkOsc-WT.d.ts} +4 -4
- package/dist/{sniff-DjpnUZRp.d.cts → sniff-DGOBHA0O.d.cts} +1 -1
- package/dist/{sniff-DjpnUZRp.d.ts → sniff-DGOBHA0O.d.ts} +1 -1
- package/dist/{span-KXroEGuH.d.ts → span-C3aJuEOM.d.ts} +1 -1
- package/dist/{span-BtmvlqZH.d.cts → span-DSM1SnHI.d.cts} +1 -1
- package/dist/styles/properties.d.cts +1 -1
- package/dist/styles/properties.d.ts +1 -1
- package/dist/styles/registry.d.cts +1 -1
- package/dist/styles/registry.d.ts +1 -1
- package/dist/styles/serialize.d.cts +1 -1
- package/dist/styles/serialize.d.ts +1 -1
- package/dist/styles/span.d.cts +1 -1
- package/dist/styles/span.d.ts +1 -1
- package/dist/{subdocument-BwW3FZC_.d.ts → subdocument-BhabEY9P.d.ts} +1 -1
- package/dist/{subdocument-yY8ASE4N.d.cts → subdocument-CQptFIQK.d.cts} +1 -1
- package/dist/{table-BH_Q2n_N.d.cts → table-CYvFMlP6.d.cts} +3 -3
- package/dist/{table-ByOoGcq_.d.ts → table-DclDgC5h.d.ts} +3 -3
- package/dist/{text-gJ5R0q3u.d.ts → text-Bn3C7lnm.d.ts} +1 -1
- package/dist/{text-BAi1tapc.d.cts → text-CDUCcwje.d.cts} +1 -1
- package/dist/{transform-C7GrZZdR.d.ts → transform-BFNc16LQ.d.ts} +3 -3
- package/dist/{transform-DKEjydnm.d.cts → transform-M1gbHp4j.d.cts} +3 -3
- package/dist/typed/draw/embedded.d.cts +1 -1
- package/dist/typed/draw/embedded.d.ts +1 -1
- package/dist/typed/draw/shapes.d.cts +1 -1
- package/dist/typed/draw/shapes.d.ts +1 -1
- package/dist/typed/formula/read.d.cts +1 -1
- package/dist/typed/formula/read.d.ts +1 -1
- package/dist/typed/odb/form.d.cts +1 -1
- package/dist/typed/odb/form.d.ts +1 -1
- package/dist/typed/odb/read.d.cts +1 -1
- package/dist/typed/odb/read.d.ts +1 -1
- package/dist/typed/odb/report.d.cts +1 -1
- package/dist/typed/odb/report.d.ts +1 -1
- package/dist/typed/odb/subdocument.d.cts +1 -1
- package/dist/typed/odb/subdocument.d.ts +1 -1
- package/dist/typed/odg/read.d.cts +1 -1
- package/dist/typed/odg/read.d.ts +1 -1
- package/dist/typed/odm/read.d.cts +1 -1
- package/dist/typed/odm/read.d.ts +1 -1
- package/dist/typed/odp/read.d.cts +1 -1
- package/dist/typed/odp/read.d.ts +1 -1
- package/dist/typed/ods/read.d.cts +1 -1
- package/dist/typed/ods/read.d.ts +1 -1
- package/dist/typed/odt/read.d.cts +1 -1
- package/dist/typed/odt/read.d.ts +1 -1
- package/dist/typed/shared/cascade.d.cts +1 -1
- package/dist/typed/shared/cascade.d.ts +1 -1
- package/dist/typed/shared/constructs.d.cts +1 -1
- package/dist/typed/shared/constructs.d.ts +1 -1
- package/dist/typed/shared/forms.d.cts +1 -1
- package/dist/typed/shared/forms.d.ts +1 -1
- package/dist/typed/shared/geometry.d.cts +1 -1
- package/dist/typed/shared/geometry.d.ts +1 -1
- package/dist/typed/shared/list.d.cts +1 -1
- package/dist/typed/shared/list.d.ts +1 -1
- package/dist/typed/shared/masterpage.d.cts +1 -1
- package/dist/typed/shared/masterpage.d.ts +1 -1
- package/dist/typed/shared/metadata.d.cts +1 -1
- package/dist/typed/shared/metadata.d.ts +1 -1
- package/dist/typed/shared/paragraph.cjs +1 -1
- package/dist/typed/shared/paragraph.d.cts +1 -1
- package/dist/typed/shared/paragraph.d.ts +1 -1
- package/dist/typed/shared/paragraph.js +1 -1
- package/dist/typed/shared/path.d.cts +1 -1
- package/dist/typed/shared/path.d.ts +1 -1
- package/dist/typed/shared/table.cjs +1 -1
- package/dist/typed/shared/table.d.cts +1 -1
- package/dist/typed/shared/table.d.ts +1 -1
- package/dist/typed/shared/table.js +1 -1
- package/dist/typed/shared/text.d.cts +1 -1
- package/dist/typed/shared/text.d.ts +1 -1
- package/dist/typed/shared/transform.d.cts +1 -1
- package/dist/typed/shared/transform.d.ts +1 -1
- package/dist/typed/shared/units.d.cts +1 -1
- package/dist/typed/shared/units.d.ts +1 -1
- package/dist/{units-7pCiECuP.d.cts → units-BQSNkTQZ.d.cts} +1 -1
- package/dist/{units-7pCiECuP.d.ts → units-BQSNkTQZ.d.ts} +1 -1
- package/dist/util/base64.cjs +4 -4
- package/dist/util/base64.js +4 -4
- package/dist/{write-D3kyj1Xw.d.cts → write-Crk-Yt_w.d.cts} +1 -1
- package/dist/{write-BxVkPZID.d.ts → write-R36XIZKx.d.ts} +1 -1
- package/dist/xml/build.d.cts +1 -1
- package/dist/xml/build.d.ts +1 -1
- package/dist/xml/fragment.d.cts +1 -1
- package/dist/xml/fragment.d.ts +1 -1
- package/dist/xml/parse.d.cts +1 -1
- package/dist/xml/parse.d.ts +1 -1
- package/dist/xml/query.d.cts +1 -1
- package/dist/xml/query.d.ts +1 -1
- package/package.json +2 -10
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resolveDrawPageSize, r as resolvePageLayoutProperties, t as readOdfMasterPageElements } from "../../masterpage-
|
|
1
|
+
import { n as resolveDrawPageSize, r as resolvePageLayoutProperties, t as readOdfMasterPageElements } from "../../masterpage-KqZshNGZ.cjs";
|
|
2
2
|
export { readOdfMasterPageElements, resolveDrawPageSize, resolvePageLayoutProperties };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resolveDrawPageSize, r as resolvePageLayoutProperties, t as readOdfMasterPageElements } from "../../masterpage-
|
|
1
|
+
import { n as resolveDrawPageSize, r as resolvePageLayoutProperties, t as readOdfMasterPageElements } from "../../masterpage-BLK2OJ9q.js";
|
|
2
2
|
export { readOdfMasterPageElements, resolveDrawPageSize, resolvePageLayoutProperties };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as readOdfMetadata, t as META_PART } from "../../metadata-
|
|
1
|
+
import { n as readOdfMetadata, t as META_PART } from "../../metadata-01SgHkRR.cjs";
|
|
2
2
|
export { META_PART, readOdfMetadata };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as readOdfMetadata, t as META_PART } from "../../metadata-
|
|
1
|
+
import { n as readOdfMetadata, t as META_PART } from "../../metadata-D1SOBTh8.js";
|
|
2
2
|
export { META_PART, readOdfMetadata };
|
|
@@ -26,7 +26,7 @@ function readOdfConstructBodyBlocks(body, pkg, context, listIdState) {
|
|
|
26
26
|
}
|
|
27
27
|
return blocks;
|
|
28
28
|
}
|
|
29
|
-
function collectRuns(container, baseProperties, pkg, out, walk, hyperlinkTarget
|
|
29
|
+
function collectRuns(container, baseProperties, pkg, out, walk, hyperlinkTarget) {
|
|
30
30
|
for (const node of container.children) {
|
|
31
31
|
if (node.type === "text") {
|
|
32
32
|
if (node.value.length > 0) pushRun(out, runFromText(require_xml_entities.decodeXmlText(node.value), baseProperties), hyperlinkTarget);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as readParagraphOrHeading, n as readOdfConstructBodyBlocks, r as readOdfParagraph, t as OdfParagraphContext } from "../../paragraph-
|
|
1
|
+
import { i as readParagraphOrHeading, n as readOdfConstructBodyBlocks, r as readOdfParagraph, t as OdfParagraphContext } from "../../paragraph-CVULactG.cjs";
|
|
2
2
|
export { OdfParagraphContext, readOdfConstructBodyBlocks, readOdfParagraph, readParagraphOrHeading };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as readParagraphOrHeading, n as readOdfConstructBodyBlocks, r as readOdfParagraph, t as OdfParagraphContext } from "../../paragraph-
|
|
1
|
+
import { i as readParagraphOrHeading, n as readOdfConstructBodyBlocks, r as readOdfParagraph, t as OdfParagraphContext } from "../../paragraph-ByTzS8Li.js";
|
|
2
2
|
export { OdfParagraphContext, readOdfConstructBodyBlocks, readOdfParagraph, readParagraphOrHeading };
|
|
@@ -25,7 +25,7 @@ function readOdfConstructBodyBlocks(body, pkg, context, listIdState) {
|
|
|
25
25
|
}
|
|
26
26
|
return blocks;
|
|
27
27
|
}
|
|
28
|
-
function collectRuns(container, baseProperties, pkg, out, walk, hyperlinkTarget
|
|
28
|
+
function collectRuns(container, baseProperties, pkg, out, walk, hyperlinkTarget) {
|
|
29
29
|
for (const node of container.children) {
|
|
30
30
|
if (node.type === "text") {
|
|
31
31
|
if (node.value.length > 0) pushRun(out, runFromText(decodeXmlText(node.value), baseProperties), hyperlinkTarget);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as buildOdfSubpaths, c as parseOdfViewBox, i as OdfViewBox, l as rawSubpathFromPoints, n as OdfRawSegment, o as parseOdfPathData, r as OdfRawSubpath, s as parseOdfPointsList, t as OdfRawPoint, u as scaleOdfRawPoint } from "../../path-
|
|
1
|
+
import { a as buildOdfSubpaths, c as parseOdfViewBox, i as OdfViewBox, l as rawSubpathFromPoints, n as OdfRawSegment, o as parseOdfPathData, r as OdfRawSubpath, s as parseOdfPointsList, t as OdfRawPoint, u as scaleOdfRawPoint } from "../../path-CK0dIPgx.cjs";
|
|
2
2
|
export { OdfRawPoint, OdfRawSegment, OdfRawSubpath, OdfViewBox, buildOdfSubpaths, parseOdfPathData, parseOdfPointsList, parseOdfViewBox, rawSubpathFromPoints, scaleOdfRawPoint };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as buildOdfSubpaths, c as parseOdfViewBox, i as OdfViewBox, l as rawSubpathFromPoints, n as OdfRawSegment, o as parseOdfPathData, r as OdfRawSubpath, s as parseOdfPointsList, t as OdfRawPoint, u as scaleOdfRawPoint } from "../../path-
|
|
1
|
+
import { a as buildOdfSubpaths, c as parseOdfViewBox, i as OdfViewBox, l as rawSubpathFromPoints, n as OdfRawSegment, o as parseOdfPathData, r as OdfRawSubpath, s as parseOdfPointsList, t as OdfRawPoint, u as scaleOdfRawPoint } from "../../path-CK0dIPgx.js";
|
|
2
2
|
export { OdfRawPoint, OdfRawSegment, OdfRawSubpath, OdfViewBox, buildOdfSubpaths, parseOdfPathData, parseOdfPointsList, parseOdfViewBox, rawSubpathFromPoints, scaleOdfRawPoint };
|
|
@@ -76,7 +76,7 @@ function applyBorderEdgeUpdates(accumulated, cellProperties) {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
function applyBorderEdgeUpdate(accumulated, edge, update) {
|
|
79
|
-
if ("none" in update)
|
|
79
|
+
if ("none" in update) Reflect.deleteProperty(accumulated, edge);
|
|
80
80
|
else accumulated[edge] = update.border;
|
|
81
81
|
}
|
|
82
82
|
function bordersFromAccumulated(accumulated) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as readCellStyleDecoration, r as readOdfTable, t as CellStyleDecoration } from "../../table-
|
|
1
|
+
import { n as readCellStyleDecoration, r as readOdfTable, t as CellStyleDecoration } from "../../table-CYvFMlP6.cjs";
|
|
2
2
|
export { CellStyleDecoration, readCellStyleDecoration, readOdfTable };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as readCellStyleDecoration, r as readOdfTable, t as CellStyleDecoration } from "../../table-
|
|
1
|
+
import { n as readCellStyleDecoration, r as readOdfTable, t as CellStyleDecoration } from "../../table-DclDgC5h.js";
|
|
2
2
|
export { CellStyleDecoration, readCellStyleDecoration, readOdfTable };
|
|
@@ -75,7 +75,7 @@ function applyBorderEdgeUpdates(accumulated, cellProperties) {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
function applyBorderEdgeUpdate(accumulated, edge, update) {
|
|
78
|
-
if ("none" in update)
|
|
78
|
+
if ("none" in update) Reflect.deleteProperty(accumulated, edge);
|
|
79
79
|
else accumulated[edge] = update.border;
|
|
80
80
|
}
|
|
81
81
|
function bordersFromAccumulated(accumulated) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as measureOdfNodeLength, i as isOdfFieldElement, n as decodeOdfText, o as sumOdfNodeLength, r as getOdfSpaceCount, t as ODF_FIELD_TAGS } from "../../text-
|
|
1
|
+
import { a as measureOdfNodeLength, i as isOdfFieldElement, n as decodeOdfText, o as sumOdfNodeLength, r as getOdfSpaceCount, t as ODF_FIELD_TAGS } from "../../text-CDUCcwje.cjs";
|
|
2
2
|
export { ODF_FIELD_TAGS, decodeOdfText, getOdfSpaceCount, isOdfFieldElement, measureOdfNodeLength, sumOdfNodeLength };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as measureOdfNodeLength, i as isOdfFieldElement, n as decodeOdfText, o as sumOdfNodeLength, r as getOdfSpaceCount, t as ODF_FIELD_TAGS } from "../../text-
|
|
1
|
+
import { a as measureOdfNodeLength, i as isOdfFieldElement, n as decodeOdfText, o as sumOdfNodeLength, r as getOdfSpaceCount, t as ODF_FIELD_TAGS } from "../../text-Bn3C7lnm.js";
|
|
2
2
|
export { ODF_FIELD_TAGS, decodeOdfText, getOdfSpaceCount, isOdfFieldElement, measureOdfNodeLength, sumOdfNodeLength };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as composeOdfGroupTransform, c as resolveOdfShapeGeometry, i as applyOdfTransform, n as OdfShapeGeometry, o as netRotationDeg, r as OdfTransformFunction, s as parseOdfTransform, t as OdfPoint } from "../../transform-
|
|
1
|
+
import { a as composeOdfGroupTransform, c as resolveOdfShapeGeometry, i as applyOdfTransform, n as OdfShapeGeometry, o as netRotationDeg, r as OdfTransformFunction, s as parseOdfTransform, t as OdfPoint } from "../../transform-M1gbHp4j.cjs";
|
|
2
2
|
export { OdfPoint, OdfShapeGeometry, OdfTransformFunction, applyOdfTransform, composeOdfGroupTransform, netRotationDeg, parseOdfTransform, resolveOdfShapeGeometry };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as composeOdfGroupTransform, c as resolveOdfShapeGeometry, i as applyOdfTransform, n as OdfShapeGeometry, o as netRotationDeg, r as OdfTransformFunction, s as parseOdfTransform, t as OdfPoint } from "../../transform-
|
|
1
|
+
import { a as composeOdfGroupTransform, c as resolveOdfShapeGeometry, i as applyOdfTransform, n as OdfShapeGeometry, o as netRotationDeg, r as OdfTransformFunction, s as parseOdfTransform, t as OdfPoint } from "../../transform-BFNc16LQ.js";
|
|
2
2
|
export { OdfPoint, OdfShapeGeometry, OdfTransformFunction, applyOdfTransform, composeOdfGroupTransform, netRotationDeg, parseOdfTransform, resolveOdfShapeGeometry };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as formatOdfLength, r as parseOdfLength, t as LengthUnit } from "../../units-
|
|
1
|
+
import { n as formatOdfLength, r as parseOdfLength, t as LengthUnit } from "../../units-BQSNkTQZ.cjs";
|
|
2
2
|
export { LengthUnit, formatOdfLength, parseOdfLength };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as formatOdfLength, r as parseOdfLength, t as LengthUnit } from "../../units-
|
|
1
|
+
import { n as formatOdfLength, r as parseOdfLength, t as LengthUnit } from "../../units-BQSNkTQZ.js";
|
|
2
2
|
export { LengthUnit, formatOdfLength, parseOdfLength };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/typed/shared/units.d.ts
|
|
2
|
-
type LengthUnit =
|
|
2
|
+
type LengthUnit = "cm" | "mm" | "in" | "pt" | "pc" | "px";
|
|
3
3
|
declare function parseOdfLength(value: string): number | undefined;
|
|
4
4
|
declare function formatOdfLength(pt: number, unit?: LengthUnit): string;
|
|
5
5
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/typed/shared/units.d.ts
|
|
2
|
-
type LengthUnit =
|
|
2
|
+
type LengthUnit = "cm" | "mm" | "in" | "pt" | "pc" | "px";
|
|
3
3
|
declare function parseOdfLength(value: string): number | undefined;
|
|
4
4
|
declare function formatOdfLength(pt: number, unit?: LengthUnit): string;
|
|
5
5
|
//#endregion
|
package/dist/util/base64.cjs
CHANGED
|
@@ -13,10 +13,10 @@ function bytesToBase64(bytes) {
|
|
|
13
13
|
const b0 = bytes[i];
|
|
14
14
|
const b1 = i + 1 < len ? bytes[i + 1] : 0;
|
|
15
15
|
const b2 = i + 2 < len ? bytes[i + 2] : 0;
|
|
16
|
-
out += TABLE
|
|
17
|
-
out += TABLE
|
|
18
|
-
out += i + 1 < len ? TABLE
|
|
19
|
-
out += i + 2 < len ? TABLE
|
|
16
|
+
out += TABLE.charAt(b0 >> 2);
|
|
17
|
+
out += TABLE.charAt((b0 & 3) << 4 | b1 >> 4);
|
|
18
|
+
out += i + 1 < len ? TABLE.charAt((b1 & 15) << 2 | b2 >> 6) : "=";
|
|
19
|
+
out += i + 2 < len ? TABLE.charAt(b2 & 63) : "=";
|
|
20
20
|
}
|
|
21
21
|
return out;
|
|
22
22
|
}
|
package/dist/util/base64.js
CHANGED
|
@@ -12,10 +12,10 @@ function bytesToBase64(bytes) {
|
|
|
12
12
|
const b0 = bytes[i];
|
|
13
13
|
const b1 = i + 1 < len ? bytes[i + 1] : 0;
|
|
14
14
|
const b2 = i + 2 < len ? bytes[i + 2] : 0;
|
|
15
|
-
out += TABLE
|
|
16
|
-
out += TABLE
|
|
17
|
-
out += i + 1 < len ? TABLE
|
|
18
|
-
out += i + 2 < len ? TABLE
|
|
15
|
+
out += TABLE.charAt(b0 >> 2);
|
|
16
|
+
out += TABLE.charAt((b0 & 3) << 4 | b1 >> 4);
|
|
17
|
+
out += i + 1 < len ? TABLE.charAt((b1 & 15) << 2 | b2 >> 6) : "=";
|
|
18
|
+
out += i + 2 < len ? TABLE.charAt(b2 & 63) : "=";
|
|
19
19
|
}
|
|
20
20
|
return out;
|
|
21
21
|
}
|
package/dist/xml/build.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as buildXml } from "../build
|
|
1
|
+
import { t as buildXml } from "../build--uPsivid.cjs";
|
|
2
2
|
export { buildXml };
|
package/dist/xml/build.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as buildXml } from "../build-
|
|
1
|
+
import { t as buildXml } from "../build-DgBE0bmv.js";
|
|
2
2
|
export { buildXml };
|
package/dist/xml/fragment.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as txt, t as el } from "../fragment-
|
|
1
|
+
import { n as txt, t as el } from "../fragment-9dNg-m46.cjs";
|
|
2
2
|
export { el, txt };
|
package/dist/xml/fragment.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as txt, t as el } from "../fragment-
|
|
1
|
+
import { n as txt, t as el } from "../fragment-ClgCV_if.js";
|
|
2
2
|
export { el, txt };
|
package/dist/xml/parse.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as parseXml } from "../parse-
|
|
1
|
+
import { t as parseXml } from "../parse-DcVtB3jT.cjs";
|
|
2
2
|
export { parseXml };
|
package/dist/xml/parse.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as parseXml } from "../parse-
|
|
1
|
+
import { t as parseXml } from "../parse-BLukZ2z0.js";
|
|
2
2
|
export { parseXml };
|
package/dist/xml/query.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as rootElement, i as findChildElement, n as childrenWithTag, r as elementsWithTag, t as attrValue } from "../query-
|
|
1
|
+
import { a as rootElement, i as findChildElement, n as childrenWithTag, r as elementsWithTag, t as attrValue } from "../query-C69wTkqg.cjs";
|
|
2
2
|
export { attrValue, childrenWithTag, elementsWithTag, findChildElement, rootElement };
|
package/dist/xml/query.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as rootElement, i as findChildElement, n as childrenWithTag, r as elementsWithTag, t as attrValue } from "../query-
|
|
1
|
+
import { a as rootElement, i as findChildElement, n as childrenWithTag, r as elementsWithTag, t as attrValue } from "../query-CbxD-WiQ.js";
|
|
2
2
|
export { attrValue, childrenWithTag, elementsWithTag, findChildElement, rootElement };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "odf.js",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "Type-safe, lossless round-trip conversion between OpenDocument Format packages (odt, ods, odp) and JSON, hand-written and dependency-minimal, built on Zod 4 codecs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"license": "MIT",
|
|
80
80
|
"packageManager": "pnpm@11.6.0",
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"document-schema.js": "^5.
|
|
82
|
+
"document-schema.js": "^5.2.0",
|
|
83
83
|
"fast-xml-parser": "^5.10.1",
|
|
84
84
|
"fflate": "^0.8.3",
|
|
85
85
|
"zod": "^4.4.3"
|
|
@@ -87,18 +87,10 @@
|
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
89
89
|
"@cloudflare/vitest-pool-workers": "^0.20.2",
|
|
90
|
-
"@commitlint/cli": "^21.2.1",
|
|
91
|
-
"@commitlint/config-conventional": "^21.2.0",
|
|
92
|
-
"@eslint/js": "^10.0.1",
|
|
93
|
-
"@exadev/eslint-config": "^2.1.0",
|
|
94
|
-
"@semantic-release/changelog": "^7.0.0",
|
|
95
|
-
"@semantic-release/git": "^11.0.1",
|
|
96
90
|
"@types/node": "^26.1.1",
|
|
97
91
|
"@vitest/coverage-v8": "^4.1.10",
|
|
98
92
|
"eslint": "^10.8.0",
|
|
99
|
-
"globals": "^17.8.0",
|
|
100
93
|
"husky": "^9.1.7",
|
|
101
|
-
"lint-staged": "^17.2.0",
|
|
102
94
|
"publint": "^0.3.21",
|
|
103
95
|
"semantic-release": "^25.0.8",
|
|
104
96
|
"tsdown": "^0.22.13",
|