doc-codec 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/list/numbering-write.d.cts +1 -1
- package/dist/list/numbering-write.d.ts +1 -1
- package/dist/list/numbering.cjs +10 -10
- package/dist/list/numbering.d.cts +1 -1
- package/dist/list/numbering.d.ts +1 -1
- package/dist/list/numbering.js +10 -10
- package/dist/{numbering-D3WIzOc_.d.cts → numbering-Bivayss4.d.cts} +2 -2
- package/dist/{numbering-CxLEpWZ7.d.ts → numbering-Co4jssbG.d.ts} +2 -2
- package/dist/{pap-BmelEYEP.d.cts → pap-BT1p0uzu.d.cts} +1 -1
- package/dist/{pap-BkFo8dZO.d.ts → pap-DOFLMWcG.d.ts} +1 -1
- package/dist/prop/chp-write.cjs +1 -1
- package/dist/prop/chp-write.js +1 -1
- package/dist/prop/chp.d.cts +1 -1
- package/dist/prop/chp.d.ts +1 -1
- package/dist/prop/pap.d.cts +1 -1
- package/dist/prop/pap.d.ts +1 -1
- package/dist/prop/sep.d.cts +1 -1
- package/dist/prop/sep.d.ts +1 -1
- package/dist/prop/sprm.cjs +1 -1
- package/dist/prop/sprm.d.cts +1 -1
- package/dist/prop/sprm.d.ts +1 -1
- package/dist/prop/sprm.js +1 -1
- package/dist/read.d.cts +3 -3
- package/dist/read.d.ts +3 -3
- package/dist/{sprm-Djg5RNiq.d.cts → sprm-DEyvdOo0.d.cts} +1 -1
- package/dist/{sprm-Djg5RNiq.d.ts → sprm-DEyvdOo0.d.ts} +1 -1
- package/dist/table/tap.d.cts +1 -1
- package/dist/table/tap.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -10,18 +10,18 @@ import { Piece, PieceTable, characterOffset, characterSize, parseClx } from "./t
|
|
|
10
10
|
import { buildTextClx } from "./text/piece-table-write.cjs";
|
|
11
11
|
import { COMPRESSED_CHARACTER_MAP, TextRange, readTextRange } from "./text/characters.cjs";
|
|
12
12
|
import { ANNOTATION_REFERENCE, CELL_MARK, DRAWN_OBJECT, FIELD_BEGIN, FIELD_END, FIELD_SEPARATOR, FOOTNOTE_REFERENCE, INLINE_PICTURE, LINE_BREAK, PARAGRAPH_MARK, SECTION_MARK, SYMBOL_ANCHOR, endsParagraph, isAnchorOnly } from "./text/special.cjs";
|
|
13
|
-
import { a as operandSize, i as decodeSprm, n as SGC, o as readGrpprl, r as Sprm, t as Prl } from "./sprm-
|
|
13
|
+
import { a as operandSize, i as decodeSprm, n as SGC, o as readGrpprl, r as Sprm, t as Prl } from "./sprm-DEyvdOo0.cjs";
|
|
14
14
|
import { ChpxFkp, FKP_PAGE_SIZE, PapxFkp, PapxLookup, PapxRecord, PropertyBinTable, parseChpxFkp, parsePapxFkp } from "./prop/fkp.cjs";
|
|
15
15
|
import { ChpxRunToWrite, PapxParagraphToWrite, buildChpxPages, buildPapxPages, buildPropertyBinTable, firstFcOfPage, fitsAloneOnPapxPage } from "./prop/fkp-write.cjs";
|
|
16
16
|
import { CharacterProperties, applyCharacterSprms } from "./prop/chp.cjs";
|
|
17
17
|
import { encodeCharacterGrpprl } from "./prop/chp-write.cjs";
|
|
18
|
-
import { n as applyParagraphSprms, t as ParagraphProperties } from "./pap-
|
|
18
|
+
import { n as applyParagraphSprms, t as ParagraphProperties } from "./pap-BT1p0uzu.cjs";
|
|
19
19
|
import { encodeParagraphGrpprl } from "./prop/pap-write.cjs";
|
|
20
20
|
import { SectionProperties, applySectionSprms, readSectionProperties } from "./prop/sep.cjs";
|
|
21
21
|
import { buildPlcfSed, buildSepx, encodeSectionGrpprl } from "./prop/sep-write.cjs";
|
|
22
22
|
import { STI_USER_DEFINED, STK, Style, StyleSheet, buildEmptyStsh, headingLevelFromIstd, parseStsh } from "./style/stsh.cjs";
|
|
23
23
|
import { buildFontTable, parseFontTable } from "./style/fonts.cjs";
|
|
24
|
-
import { a as readNumberingDefinitions, i as NumberingLevel, n as NumberingDefinition, r as NumberingDefinitions, t as NUMBER_FORMAT_BY_NFC } from "./numbering-
|
|
24
|
+
import { a as readNumberingDefinitions, i as NumberingLevel, n as NumberingDefinition, r as NumberingDefinitions, t as NUMBER_FORMAT_BY_NFC } from "./numbering-Bivayss4.cjs";
|
|
25
25
|
import { DocContent, DocStreams, ParagraphEntry, readDocContent, readDocStreams } from "./read.cjs";
|
|
26
26
|
import { WriteDocContentOptions, writeDocContent } from "./write.cjs";
|
|
27
27
|
export { ANNOTATION_REFERENCE, CELL_MARK, COMPRESSED_CHARACTER_MAP, CharacterProperties, ChpxFkp, ChpxRunToWrite, DRAWN_OBJECT, DocContent, DocFormatError, DocStreams, DocUnsupportedError, FC_LCB_VALUE_INDEX, FIB_BASE_FLAG, FIB_BASE_SIZE, FIB_CB_RG_FC_LCB_OFFSET, FIB_CSLW_OFFSET, FIB_CSLW_REQUIRED, FIB_CSW_REQUIRED, FIB_FC_LCB_BLOB_OFFSET, FIB_RG_LW_OFFSET, FIB_RG_LW_SIZE, FIB_RG_W_OFFSET, FIB_RG_W_SIZE, FIB_W_IDENT, FIELD_BEGIN, FIELD_END, FIELD_SEPARATOR, FKP_PAGE_SIZE, FOOTNOTE_REFERENCE, Fib, FibWriteSpec, INLINE_PICTURE, LINE_BREAK, LW_OFFSET, NUMBER_FORMAT_BY_NFC, NumberingDefinition, NumberingDefinitions, NumberingLevel, PARAGRAPH_MARK, PapxFkp, PapxLookup, PapxParagraphToWrite, PapxRecord, ParagraphEntry, ParagraphProperties, Piece, PieceTable, Plc, Prl, PropertyBinTable, SECTION_MARK, SGC, STI_USER_DEFINED, STK, SUMMARY_INFORMATION_STREAM, SYMBOL_ANCHOR, SectionProperties, Sprm, Style, StyleSheet, TextRange, WORD_DOCUMENT_STREAM, WriteDocContentOptions, applyCharacterSprms, applyParagraphSprms, applySectionSprms, buildChpxPages, buildEmptyStsh, buildFib, buildFontTable, buildPapxPages, buildPlcfSed, buildPropertyBinTable, buildSepx, buildTextClx, characterOffset, characterSize, decodeSprm, encodeCharacterGrpprl, encodeParagraphGrpprl, encodeSectionGrpprl, endsParagraph, findLargestAtMost, firstFcOfPage, fitsAloneOnPapxPage, headingLevelFromIstd, isAnchorOnly, isDocBytes, layoutMetadataToSummaryInformation, operandSize, parseChpxFkp, parseClx, parseFib, parseFontTable, parsePapxFkp, parsePlc, parseStsh, readDocContent, readDocStreams, readGrpprl, readInt16LE, readInt32LE, readNumberingDefinitions, readSectionProperties, readTextRange, readUint16LE, readUint32LE, readUint8, slice, tableStreamName, writeDocContent };
|
package/dist/index.d.ts
CHANGED
|
@@ -10,18 +10,18 @@ import { Piece, PieceTable, characterOffset, characterSize, parseClx } from "./t
|
|
|
10
10
|
import { buildTextClx } from "./text/piece-table-write.js";
|
|
11
11
|
import { COMPRESSED_CHARACTER_MAP, TextRange, readTextRange } from "./text/characters.js";
|
|
12
12
|
import { ANNOTATION_REFERENCE, CELL_MARK, DRAWN_OBJECT, FIELD_BEGIN, FIELD_END, FIELD_SEPARATOR, FOOTNOTE_REFERENCE, INLINE_PICTURE, LINE_BREAK, PARAGRAPH_MARK, SECTION_MARK, SYMBOL_ANCHOR, endsParagraph, isAnchorOnly } from "./text/special.js";
|
|
13
|
-
import { a as operandSize, i as decodeSprm, n as SGC, o as readGrpprl, r as Sprm, t as Prl } from "./sprm-
|
|
13
|
+
import { a as operandSize, i as decodeSprm, n as SGC, o as readGrpprl, r as Sprm, t as Prl } from "./sprm-DEyvdOo0.js";
|
|
14
14
|
import { ChpxFkp, FKP_PAGE_SIZE, PapxFkp, PapxLookup, PapxRecord, PropertyBinTable, parseChpxFkp, parsePapxFkp } from "./prop/fkp.js";
|
|
15
15
|
import { ChpxRunToWrite, PapxParagraphToWrite, buildChpxPages, buildPapxPages, buildPropertyBinTable, firstFcOfPage, fitsAloneOnPapxPage } from "./prop/fkp-write.js";
|
|
16
16
|
import { CharacterProperties, applyCharacterSprms } from "./prop/chp.js";
|
|
17
17
|
import { encodeCharacterGrpprl } from "./prop/chp-write.js";
|
|
18
|
-
import { n as applyParagraphSprms, t as ParagraphProperties } from "./pap-
|
|
18
|
+
import { n as applyParagraphSprms, t as ParagraphProperties } from "./pap-DOFLMWcG.js";
|
|
19
19
|
import { encodeParagraphGrpprl } from "./prop/pap-write.js";
|
|
20
20
|
import { SectionProperties, applySectionSprms, readSectionProperties } from "./prop/sep.js";
|
|
21
21
|
import { buildPlcfSed, buildSepx, encodeSectionGrpprl } from "./prop/sep-write.js";
|
|
22
22
|
import { STI_USER_DEFINED, STK, Style, StyleSheet, buildEmptyStsh, headingLevelFromIstd, parseStsh } from "./style/stsh.js";
|
|
23
23
|
import { buildFontTable, parseFontTable } from "./style/fonts.js";
|
|
24
|
-
import { a as readNumberingDefinitions, i as NumberingLevel, n as NumberingDefinition, r as NumberingDefinitions, t as NUMBER_FORMAT_BY_NFC } from "./numbering-
|
|
24
|
+
import { a as readNumberingDefinitions, i as NumberingLevel, n as NumberingDefinition, r as NumberingDefinitions, t as NUMBER_FORMAT_BY_NFC } from "./numbering-Co4jssbG.js";
|
|
25
25
|
import { DocContent, DocStreams, ParagraphEntry, readDocContent, readDocStreams } from "./read.js";
|
|
26
26
|
import { WriteDocContentOptions, writeDocContent } from "./write.js";
|
|
27
27
|
export { ANNOTATION_REFERENCE, CELL_MARK, COMPRESSED_CHARACTER_MAP, CharacterProperties, ChpxFkp, ChpxRunToWrite, DRAWN_OBJECT, DocContent, DocFormatError, DocStreams, DocUnsupportedError, FC_LCB_VALUE_INDEX, FIB_BASE_FLAG, FIB_BASE_SIZE, FIB_CB_RG_FC_LCB_OFFSET, FIB_CSLW_OFFSET, FIB_CSLW_REQUIRED, FIB_CSW_REQUIRED, FIB_FC_LCB_BLOB_OFFSET, FIB_RG_LW_OFFSET, FIB_RG_LW_SIZE, FIB_RG_W_OFFSET, FIB_RG_W_SIZE, FIB_W_IDENT, FIELD_BEGIN, FIELD_END, FIELD_SEPARATOR, FKP_PAGE_SIZE, FOOTNOTE_REFERENCE, Fib, FibWriteSpec, INLINE_PICTURE, LINE_BREAK, LW_OFFSET, NUMBER_FORMAT_BY_NFC, NumberingDefinition, NumberingDefinitions, NumberingLevel, PARAGRAPH_MARK, PapxFkp, PapxLookup, PapxParagraphToWrite, PapxRecord, ParagraphEntry, ParagraphProperties, Piece, PieceTable, Plc, Prl, PropertyBinTable, SECTION_MARK, SGC, STI_USER_DEFINED, STK, SUMMARY_INFORMATION_STREAM, SYMBOL_ANCHOR, SectionProperties, Sprm, Style, StyleSheet, TextRange, WORD_DOCUMENT_STREAM, WriteDocContentOptions, applyCharacterSprms, applyParagraphSprms, applySectionSprms, buildChpxPages, buildEmptyStsh, buildFib, buildFontTable, buildPapxPages, buildPlcfSed, buildPropertyBinTable, buildSepx, buildTextClx, characterOffset, characterSize, decodeSprm, encodeCharacterGrpprl, encodeParagraphGrpprl, encodeSectionGrpprl, endsParagraph, findLargestAtMost, firstFcOfPage, fitsAloneOnPapxPage, headingLevelFromIstd, isAnchorOnly, isDocBytes, layoutMetadataToSummaryInformation, operandSize, parseChpxFkp, parseClx, parseFib, parseFontTable, parsePapxFkp, parsePlc, parseStsh, readDocContent, readDocStreams, readGrpprl, readInt16LE, readInt32LE, readNumberingDefinitions, readSectionProperties, readTextRange, readUint16LE, readUint32LE, readUint8, slice, tableStreamName, writeDocContent };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as NumberingDefinitions } from "../numbering-
|
|
1
|
+
import { r as NumberingDefinitions } from "../numbering-Bivayss4.cjs";
|
|
2
2
|
import { ContentListMembership } from "document-schema.js";
|
|
3
3
|
//#region src/list/numbering-write.d.ts
|
|
4
4
|
/** One document's own numbering, gathered from every paragraph's list membership (the caller passes the already-flattened sequence, table cells included, so a list used only inside a table cell is still resolved). */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as NumberingDefinitions } from "../numbering-
|
|
1
|
+
import { r as NumberingDefinitions } from "../numbering-Co4jssbG.js";
|
|
2
2
|
import { ContentListMembership } from "document-schema.js";
|
|
3
3
|
//#region src/list/numbering-write.d.ts
|
|
4
4
|
/** One document's own numbering, gathered from every paragraph's list membership (the caller passes the already-flattened sequence, table cells included, so a list used only inside a table cell is still resolved). */
|
package/dist/list/numbering.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const require_bytes = require("../bytes.cjs");
|
|
|
5
5
|
const LSTF_SIZE = 28;
|
|
6
6
|
const LVLF_SIZE = 28;
|
|
7
7
|
const LFO_SIZE = 16;
|
|
8
|
-
/** LSTF's own flags byte ([MS-DOC] 2.9.
|
|
8
|
+
/** LSTF's own flags byte ([MS-DOC] 2.9.147), bit 0: "this LSTF represents a simple (one-level) list that has one corresponding LVL. Otherwise... a multi-level list that has nine corresponding LVLs." */
|
|
9
9
|
const LSTF_FLAG_SIMPLE_LIST = 1;
|
|
10
10
|
/** MSONFC ([MS-OSHARED] 2.2.1.3), mapped to its own documented ST_NumberFormat equivalent -- the identical vocabulary ooxml.js's NumberingLevel.format carries verbatim from word/numbering.xml's own w:numFmt/@w:val. Every member through msonfcUCRus (0x3B) is a real numbered/lettered/ideograph format; 0x17 (msonfcBullet) is handled separately below since PlfLfo also treats it as the "no number sequence, but has bullets" case LVLF's own field text calls out by name. */
|
|
11
11
|
const NUMBER_FORMAT_BY_NFC = {
|
|
@@ -78,14 +78,14 @@ function numberFormatFor(nfc) {
|
|
|
78
78
|
if (format === void 0) throw new require_errors.DocFormatError(`LVLF.nfc is 0x${nfc.toString(16).padStart(2, "0")}, not a recognised MSONFC value ([MS-OSHARED] 2.2.1.3)`);
|
|
79
79
|
return format;
|
|
80
80
|
}
|
|
81
|
-
/** LSTF ([MS-DOC] 2.9.
|
|
81
|
+
/** LSTF ([MS-DOC] 2.9.147): lsid(4) + tplc(4, ignored -- UI-only) + rgistdPara(18, ignored -- this reader has no per-level style cascade to link into) + a flags byte (only fSimpleList, bit 0, acted on) + grfhic(1, ignored -- HTML-export-only incompatibility flags). Fixed 28 bytes. */
|
|
82
82
|
function readLstf(bytes, offset) {
|
|
83
83
|
return {
|
|
84
84
|
lsid: require_bytes.readInt32LE(bytes, offset),
|
|
85
85
|
fSimpleList: (require_bytes.readUint8(bytes, offset + 26) & LSTF_FLAG_SIMPLE_LIST) !== 0
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
/** Xst ([MS-DOC] 2.9.
|
|
88
|
+
/** Xst ([MS-DOC] 2.9.353): cch(2 bytes) then that many raw 16-bit code units, prefixed-length and not null-terminated. Decoded as a plain UTF-16 string -- readLevelText below re-inspects specific character positions afterward for placeholders, which round-trips exactly through String.fromCharCode/charCodeAt since every placeholder value (0-8) sits well within one UTF-16 code unit and never needs a surrogate pair. Returns the decoded text and the byte length consumed, since the caller must advance past it to reach grpprlPapx/grpprlChpx or the next LVL. */
|
|
89
89
|
function readXst(bytes, offset) {
|
|
90
90
|
const cch = require_bytes.readUint16LE(bytes, offset);
|
|
91
91
|
let text = "";
|
|
@@ -95,7 +95,7 @@ function readXst(bytes, offset) {
|
|
|
95
95
|
byteLength: 2 + cch * 2
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
/** rgbxchNums ([MS-DOC] 2.9.
|
|
98
|
+
/** rgbxchNums ([MS-DOC] 2.9.150's own LVLF field): nine 8-bit one-based character offsets into the LVL's own xst.rgtchar, zero-terminated (a 0 entry, or the end of the fixed 9-byte array, ends the list). Each offset it names is a POSITION in the string, not a value -- readLevelText is what turns a position into the placeholder it names. */
|
|
99
99
|
function readRgbxchNums(bytes, offset) {
|
|
100
100
|
const positions = [];
|
|
101
101
|
for (let index = 0; index < 9; index += 1) {
|
|
@@ -105,7 +105,7 @@ function readRgbxchNums(bytes, offset) {
|
|
|
105
105
|
}
|
|
106
106
|
return positions;
|
|
107
107
|
}
|
|
108
|
-
/** Turns an Xst's own decoded text plus its rgbxchNums positions into the '%1.'-style placeholder text NumberingLevel.text states -- the mirror of readXst/readRgbxchNums together. [MS-DOC]'s own
|
|
108
|
+
/** Turns an Xst's own decoded text plus its rgbxchNums positions into the '%1.'-style placeholder text NumberingLevel.text states -- the mirror of readXst/readRgbxchNums together. [MS-DOC] 2.9.149's own LVL field text (not Xst's -- Xst is a generic length-prefixed string used all over the format for unrelated fields too): "Each placeholder is an unsigned 2-byte integer that specifies the zero-based level that the placeholder is for" -- so the character AT a named position is not a literal code point at all, but a raw level index (0-8) String.fromCharCode/charCodeAt round-trips losslessly; every other position is decoded as ordinary text. A one-based placeholder ('%1' for level 0) matches ooxml.js's own w:lvlText convention, so a consumer already resolving '%1.'/'%2)' style docx templates resolves this reader's templates identically. */
|
|
109
109
|
function readLevelText(xstText, placeholderPositions) {
|
|
110
110
|
const placeholders = new Set(placeholderPositions);
|
|
111
111
|
let result = "";
|
|
@@ -118,7 +118,7 @@ function readLevelText(xstText, placeholderPositions) {
|
|
|
118
118
|
}
|
|
119
119
|
return result;
|
|
120
120
|
}
|
|
121
|
-
/** LVL ([MS-DOC] 2.9.
|
|
121
|
+
/** LVL ([MS-DOC] 2.9.149): a 28-byte LVLF, then grpprlPapx (cbGrpprlPapx bytes, skipped -- see this module's own top comment), grpprlChpx (cbGrpprlChpx bytes, skipped), then the level's own Xst. Every LVL is variable-length, so the caller must use byteLength to advance to the next one in the array -- there is no outer length field to skip by instead. */
|
|
122
122
|
function readLvl(bytes, offset) {
|
|
123
123
|
if (offset + LVLF_SIZE > bytes.length) throw new require_errors.DocFormatError(`PlfLst's own appended LVL array runs past the end of its ${bytes.length}-byte buffer at offset ${offset}, ${LVLF_SIZE} bytes short of one LVLF`);
|
|
124
124
|
const iStartAt = require_bytes.readInt32LE(bytes, offset);
|
|
@@ -142,11 +142,11 @@ function readLvl(bytes, offset) {
|
|
|
142
142
|
byteLength: LVLF_SIZE + cbGrpprlPapx + cbGrpprlChpx + xstByteLength
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
/** PlfLst ([MS-DOC] 2.9.
|
|
145
|
+
/** PlfLst ([MS-DOC] 2.9.201): cLst(2 bytes, signed) then that many 28-byte LSTF entries -- followed IMMEDIATELY by the appended LVL array FibRgFcLcb97's own fcPlfLst field describes, which lcbPlfLst does not account for and which this function therefore reads past the declared PlfLst length to reach. */
|
|
146
146
|
function parsePlfLst(table, fc, lcb) {
|
|
147
147
|
const plfLst = require_bytes.slice(table, fc, lcb, "PlfLst");
|
|
148
148
|
const cLst = require_bytes.readInt16LE(plfLst, 0);
|
|
149
|
-
if (cLst < 0) throw new require_errors.DocFormatError(`PlfLst.cLst is ${cLst}, a negative LSTF count [MS-DOC] 2.9.
|
|
149
|
+
if (cLst < 0) throw new require_errors.DocFormatError(`PlfLst.cLst is ${cLst}, a negative LSTF count [MS-DOC] 2.9.201 never permits`);
|
|
150
150
|
const lstfs = [];
|
|
151
151
|
for (let index = 0; index < cLst; index += 1) lstfs.push(readLstf(plfLst, 2 + index * LSTF_SIZE));
|
|
152
152
|
let cursor = fc + lcb;
|
|
@@ -166,11 +166,11 @@ function parsePlfLst(table, fc, lcb) {
|
|
|
166
166
|
levelsByLstf
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
|
-
/** PlfLfo ([MS-DOC] 2.9.
|
|
169
|
+
/** PlfLfo ([MS-DOC] 2.9.200): lfoMac(4 bytes) then that many 16-byte LFO entries (rgLfo), then rgLfoData -- this reader's own scope stops at rgLfo, since resolving ilfo to a list needs only each LFO's own lsid (rgLfoData carries LFOLVL overrides this reader deliberately does not apply; see this module's own top comment). rgLfo sits entirely before rgLfoData in the stream, so not reading rgLfoData at all is a real, not merely partial, saving -- no cursor needs to walk past it. */
|
|
170
170
|
function parseLfoLsids(table, fc, lcb) {
|
|
171
171
|
const plfLfo = require_bytes.slice(table, fc, lcb, "PlfLfo");
|
|
172
172
|
const lfoMac = require_bytes.readInt32LE(plfLfo, 0);
|
|
173
|
-
if (lfoMac < 0) throw new require_errors.DocFormatError(`PlfLfo.lfoMac is ${lfoMac}, a negative LFO count [MS-DOC] 2.9.
|
|
173
|
+
if (lfoMac < 0) throw new require_errors.DocFormatError(`PlfLfo.lfoMac is ${lfoMac}, a negative LFO count [MS-DOC] 2.9.200 never permits`);
|
|
174
174
|
const lsids = [];
|
|
175
175
|
for (let index = 0; index < lfoMac; index += 1) {
|
|
176
176
|
const offset = 4 + index * LFO_SIZE;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as readNumberingDefinitions, i as NumberingLevel, n as NumberingDefinition, r as NumberingDefinitions, t as NUMBER_FORMAT_BY_NFC } from "../numbering-
|
|
1
|
+
import { a as readNumberingDefinitions, i as NumberingLevel, n as NumberingDefinition, r as NumberingDefinitions, t as NUMBER_FORMAT_BY_NFC } from "../numbering-Bivayss4.cjs";
|
|
2
2
|
export { NUMBER_FORMAT_BY_NFC, NumberingDefinition, NumberingDefinitions, NumberingLevel, readNumberingDefinitions };
|
package/dist/list/numbering.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as readNumberingDefinitions, i as NumberingLevel, n as NumberingDefinition, r as NumberingDefinitions, t as NUMBER_FORMAT_BY_NFC } from "../numbering-
|
|
1
|
+
import { a as readNumberingDefinitions, i as NumberingLevel, n as NumberingDefinition, r as NumberingDefinitions, t as NUMBER_FORMAT_BY_NFC } from "../numbering-Co4jssbG.js";
|
|
2
2
|
export { NUMBER_FORMAT_BY_NFC, NumberingDefinition, NumberingDefinitions, NumberingLevel, readNumberingDefinitions };
|
package/dist/list/numbering.js
CHANGED
|
@@ -4,7 +4,7 @@ import { readInt16LE, readInt32LE, readUint16LE, readUint8, slice } from "../byt
|
|
|
4
4
|
const LSTF_SIZE = 28;
|
|
5
5
|
const LVLF_SIZE = 28;
|
|
6
6
|
const LFO_SIZE = 16;
|
|
7
|
-
/** LSTF's own flags byte ([MS-DOC] 2.9.
|
|
7
|
+
/** LSTF's own flags byte ([MS-DOC] 2.9.147), bit 0: "this LSTF represents a simple (one-level) list that has one corresponding LVL. Otherwise... a multi-level list that has nine corresponding LVLs." */
|
|
8
8
|
const LSTF_FLAG_SIMPLE_LIST = 1;
|
|
9
9
|
/** MSONFC ([MS-OSHARED] 2.2.1.3), mapped to its own documented ST_NumberFormat equivalent -- the identical vocabulary ooxml.js's NumberingLevel.format carries verbatim from word/numbering.xml's own w:numFmt/@w:val. Every member through msonfcUCRus (0x3B) is a real numbered/lettered/ideograph format; 0x17 (msonfcBullet) is handled separately below since PlfLfo also treats it as the "no number sequence, but has bullets" case LVLF's own field text calls out by name. */
|
|
10
10
|
const NUMBER_FORMAT_BY_NFC = {
|
|
@@ -77,14 +77,14 @@ function numberFormatFor(nfc) {
|
|
|
77
77
|
if (format === void 0) throw new DocFormatError(`LVLF.nfc is 0x${nfc.toString(16).padStart(2, "0")}, not a recognised MSONFC value ([MS-OSHARED] 2.2.1.3)`);
|
|
78
78
|
return format;
|
|
79
79
|
}
|
|
80
|
-
/** LSTF ([MS-DOC] 2.9.
|
|
80
|
+
/** LSTF ([MS-DOC] 2.9.147): lsid(4) + tplc(4, ignored -- UI-only) + rgistdPara(18, ignored -- this reader has no per-level style cascade to link into) + a flags byte (only fSimpleList, bit 0, acted on) + grfhic(1, ignored -- HTML-export-only incompatibility flags). Fixed 28 bytes. */
|
|
81
81
|
function readLstf(bytes, offset) {
|
|
82
82
|
return {
|
|
83
83
|
lsid: readInt32LE(bytes, offset),
|
|
84
84
|
fSimpleList: (readUint8(bytes, offset + 26) & LSTF_FLAG_SIMPLE_LIST) !== 0
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
|
-
/** Xst ([MS-DOC] 2.9.
|
|
87
|
+
/** Xst ([MS-DOC] 2.9.353): cch(2 bytes) then that many raw 16-bit code units, prefixed-length and not null-terminated. Decoded as a plain UTF-16 string -- readLevelText below re-inspects specific character positions afterward for placeholders, which round-trips exactly through String.fromCharCode/charCodeAt since every placeholder value (0-8) sits well within one UTF-16 code unit and never needs a surrogate pair. Returns the decoded text and the byte length consumed, since the caller must advance past it to reach grpprlPapx/grpprlChpx or the next LVL. */
|
|
88
88
|
function readXst(bytes, offset) {
|
|
89
89
|
const cch = readUint16LE(bytes, offset);
|
|
90
90
|
let text = "";
|
|
@@ -94,7 +94,7 @@ function readXst(bytes, offset) {
|
|
|
94
94
|
byteLength: 2 + cch * 2
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
/** rgbxchNums ([MS-DOC] 2.9.
|
|
97
|
+
/** rgbxchNums ([MS-DOC] 2.9.150's own LVLF field): nine 8-bit one-based character offsets into the LVL's own xst.rgtchar, zero-terminated (a 0 entry, or the end of the fixed 9-byte array, ends the list). Each offset it names is a POSITION in the string, not a value -- readLevelText is what turns a position into the placeholder it names. */
|
|
98
98
|
function readRgbxchNums(bytes, offset) {
|
|
99
99
|
const positions = [];
|
|
100
100
|
for (let index = 0; index < 9; index += 1) {
|
|
@@ -104,7 +104,7 @@ function readRgbxchNums(bytes, offset) {
|
|
|
104
104
|
}
|
|
105
105
|
return positions;
|
|
106
106
|
}
|
|
107
|
-
/** Turns an Xst's own decoded text plus its rgbxchNums positions into the '%1.'-style placeholder text NumberingLevel.text states -- the mirror of readXst/readRgbxchNums together. [MS-DOC]'s own
|
|
107
|
+
/** Turns an Xst's own decoded text plus its rgbxchNums positions into the '%1.'-style placeholder text NumberingLevel.text states -- the mirror of readXst/readRgbxchNums together. [MS-DOC] 2.9.149's own LVL field text (not Xst's -- Xst is a generic length-prefixed string used all over the format for unrelated fields too): "Each placeholder is an unsigned 2-byte integer that specifies the zero-based level that the placeholder is for" -- so the character AT a named position is not a literal code point at all, but a raw level index (0-8) String.fromCharCode/charCodeAt round-trips losslessly; every other position is decoded as ordinary text. A one-based placeholder ('%1' for level 0) matches ooxml.js's own w:lvlText convention, so a consumer already resolving '%1.'/'%2)' style docx templates resolves this reader's templates identically. */
|
|
108
108
|
function readLevelText(xstText, placeholderPositions) {
|
|
109
109
|
const placeholders = new Set(placeholderPositions);
|
|
110
110
|
let result = "";
|
|
@@ -117,7 +117,7 @@ function readLevelText(xstText, placeholderPositions) {
|
|
|
117
117
|
}
|
|
118
118
|
return result;
|
|
119
119
|
}
|
|
120
|
-
/** LVL ([MS-DOC] 2.9.
|
|
120
|
+
/** LVL ([MS-DOC] 2.9.149): a 28-byte LVLF, then grpprlPapx (cbGrpprlPapx bytes, skipped -- see this module's own top comment), grpprlChpx (cbGrpprlChpx bytes, skipped), then the level's own Xst. Every LVL is variable-length, so the caller must use byteLength to advance to the next one in the array -- there is no outer length field to skip by instead. */
|
|
121
121
|
function readLvl(bytes, offset) {
|
|
122
122
|
if (offset + LVLF_SIZE > bytes.length) throw new DocFormatError(`PlfLst's own appended LVL array runs past the end of its ${bytes.length}-byte buffer at offset ${offset}, ${LVLF_SIZE} bytes short of one LVLF`);
|
|
123
123
|
const iStartAt = readInt32LE(bytes, offset);
|
|
@@ -141,11 +141,11 @@ function readLvl(bytes, offset) {
|
|
|
141
141
|
byteLength: LVLF_SIZE + cbGrpprlPapx + cbGrpprlChpx + xstByteLength
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
|
-
/** PlfLst ([MS-DOC] 2.9.
|
|
144
|
+
/** PlfLst ([MS-DOC] 2.9.201): cLst(2 bytes, signed) then that many 28-byte LSTF entries -- followed IMMEDIATELY by the appended LVL array FibRgFcLcb97's own fcPlfLst field describes, which lcbPlfLst does not account for and which this function therefore reads past the declared PlfLst length to reach. */
|
|
145
145
|
function parsePlfLst(table, fc, lcb) {
|
|
146
146
|
const plfLst = slice(table, fc, lcb, "PlfLst");
|
|
147
147
|
const cLst = readInt16LE(plfLst, 0);
|
|
148
|
-
if (cLst < 0) throw new DocFormatError(`PlfLst.cLst is ${cLst}, a negative LSTF count [MS-DOC] 2.9.
|
|
148
|
+
if (cLst < 0) throw new DocFormatError(`PlfLst.cLst is ${cLst}, a negative LSTF count [MS-DOC] 2.9.201 never permits`);
|
|
149
149
|
const lstfs = [];
|
|
150
150
|
for (let index = 0; index < cLst; index += 1) lstfs.push(readLstf(plfLst, 2 + index * LSTF_SIZE));
|
|
151
151
|
let cursor = fc + lcb;
|
|
@@ -165,11 +165,11 @@ function parsePlfLst(table, fc, lcb) {
|
|
|
165
165
|
levelsByLstf
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
|
-
/** PlfLfo ([MS-DOC] 2.9.
|
|
168
|
+
/** PlfLfo ([MS-DOC] 2.9.200): lfoMac(4 bytes) then that many 16-byte LFO entries (rgLfo), then rgLfoData -- this reader's own scope stops at rgLfo, since resolving ilfo to a list needs only each LFO's own lsid (rgLfoData carries LFOLVL overrides this reader deliberately does not apply; see this module's own top comment). rgLfo sits entirely before rgLfoData in the stream, so not reading rgLfoData at all is a real, not merely partial, saving -- no cursor needs to walk past it. */
|
|
169
169
|
function parseLfoLsids(table, fc, lcb) {
|
|
170
170
|
const plfLfo = slice(table, fc, lcb, "PlfLfo");
|
|
171
171
|
const lfoMac = readInt32LE(plfLfo, 0);
|
|
172
|
-
if (lfoMac < 0) throw new DocFormatError(`PlfLfo.lfoMac is ${lfoMac}, a negative LFO count [MS-DOC] 2.9.
|
|
172
|
+
if (lfoMac < 0) throw new DocFormatError(`PlfLfo.lfoMac is ${lfoMac}, a negative LFO count [MS-DOC] 2.9.200 never permits`);
|
|
173
173
|
const lsids = [];
|
|
174
174
|
for (let index = 0; index < lfoMac; index += 1) {
|
|
175
175
|
const offset = 4 + index * LFO_SIZE;
|
|
@@ -3,13 +3,13 @@ import { t as Fib } from "./fib-CtsLtF96.cjs";
|
|
|
3
3
|
/** MSONFC ([MS-OSHARED] 2.2.1.3), mapped to its own documented ST_NumberFormat equivalent -- the identical vocabulary ooxml.js's NumberingLevel.format carries verbatim from word/numbering.xml's own w:numFmt/@w:val. Every member through msonfcUCRus (0x3B) is a real numbered/lettered/ideograph format; 0x17 (msonfcBullet) is handled separately below since PlfLfo also treats it as the "no number sequence, but has bullets" case LVLF's own field text calls out by name. */
|
|
4
4
|
declare const NUMBER_FORMAT_BY_NFC: Readonly<Record<number, string>>;
|
|
5
5
|
interface NumberingLevel {
|
|
6
|
-
/** The ST_NumberFormat-equivalent string MSONFC's own value maps to ("decimal", "upperRoman", "bullet", ...), or "none" for a level with no number sequence at all ([MS-DOC] 2.9.
|
|
6
|
+
/** The ST_NumberFormat-equivalent string MSONFC's own value maps to ("decimal", "upperRoman", "bullet", ...), or "none" for a level with no number sequence at all ([MS-DOC] 2.9.150's own nfc field text: "If this is equal to 0xFF..., this level does not have a number sequence"). */
|
|
7
7
|
readonly format: string;
|
|
8
8
|
/** The level's own text template: a placeholder pattern like '%1.' or '%2)' for a numbered format (the digit names which zero-based level's own counter substitutes at that position, one-based in the placeholder itself) -- the identical convention ooxml.js's own NumberingLevel.text carries verbatim from w:lvlText/@w:val -- or a literal bullet glyph string for format 'bullet'. Decoded from the level's own Xst (a raw UTF-16 string) plus its rgbxchNums array, which names which character POSITIONS in that string are placeholders rather than literal text -- see readLevelText below. */
|
|
9
9
|
readonly text: string;
|
|
10
10
|
/** iStartAt: the value this level's counter begins from. Meaningless (and not read as anything but 1) for a level with no number sequence. */
|
|
11
11
|
readonly startAt: number;
|
|
12
|
-
/** ilvlRestartLim ([MS-DOC] 2.9.
|
|
12
|
+
/** ilvlRestartLim ([MS-DOC] 2.9.150), only when fNoRestart is set: the first (most-significant) zero-based level after which this level's own number sequence does NOT restart. Absent (undefined) is the spec's own default behaviour -- "restarts when a more significant level is encountered" -- not "never restarts". */
|
|
13
13
|
readonly restart?: number;
|
|
14
14
|
}
|
|
15
15
|
interface NumberingDefinition {
|
|
@@ -3,13 +3,13 @@ import { t as Fib } from "./fib-CtsLtF96.js";
|
|
|
3
3
|
/** MSONFC ([MS-OSHARED] 2.2.1.3), mapped to its own documented ST_NumberFormat equivalent -- the identical vocabulary ooxml.js's NumberingLevel.format carries verbatim from word/numbering.xml's own w:numFmt/@w:val. Every member through msonfcUCRus (0x3B) is a real numbered/lettered/ideograph format; 0x17 (msonfcBullet) is handled separately below since PlfLfo also treats it as the "no number sequence, but has bullets" case LVLF's own field text calls out by name. */
|
|
4
4
|
declare const NUMBER_FORMAT_BY_NFC: Readonly<Record<number, string>>;
|
|
5
5
|
interface NumberingLevel {
|
|
6
|
-
/** The ST_NumberFormat-equivalent string MSONFC's own value maps to ("decimal", "upperRoman", "bullet", ...), or "none" for a level with no number sequence at all ([MS-DOC] 2.9.
|
|
6
|
+
/** The ST_NumberFormat-equivalent string MSONFC's own value maps to ("decimal", "upperRoman", "bullet", ...), or "none" for a level with no number sequence at all ([MS-DOC] 2.9.150's own nfc field text: "If this is equal to 0xFF..., this level does not have a number sequence"). */
|
|
7
7
|
readonly format: string;
|
|
8
8
|
/** The level's own text template: a placeholder pattern like '%1.' or '%2)' for a numbered format (the digit names which zero-based level's own counter substitutes at that position, one-based in the placeholder itself) -- the identical convention ooxml.js's own NumberingLevel.text carries verbatim from w:lvlText/@w:val -- or a literal bullet glyph string for format 'bullet'. Decoded from the level's own Xst (a raw UTF-16 string) plus its rgbxchNums array, which names which character POSITIONS in that string are placeholders rather than literal text -- see readLevelText below. */
|
|
9
9
|
readonly text: string;
|
|
10
10
|
/** iStartAt: the value this level's counter begins from. Meaningless (and not read as anything but 1) for a level with no number sequence. */
|
|
11
11
|
readonly startAt: number;
|
|
12
|
-
/** ilvlRestartLim ([MS-DOC] 2.9.
|
|
12
|
+
/** ilvlRestartLim ([MS-DOC] 2.9.150), only when fNoRestart is set: the first (most-significant) zero-based level after which this level's own number sequence does NOT restart. Absent (undefined) is the spec's own default behaviour -- "restarts when a more significant level is encountered" -- not "never restarts". */
|
|
13
13
|
readonly restart?: number;
|
|
14
14
|
}
|
|
15
15
|
interface NumberingDefinition {
|
package/dist/prop/chp-write.cjs
CHANGED
|
@@ -14,7 +14,7 @@ const KUL_SINGLE = 1;
|
|
|
14
14
|
const SPRM_C_HPS = 19011;
|
|
15
15
|
/** sprmCCv: a 4-byte COLORREF (r, g, b, fAuto). fAuto 0x00 means "use these components", the only form this writer emits. */
|
|
16
16
|
const SPRM_C_CV = 26736;
|
|
17
|
-
/** sprmCRgFtc0: a 2-byte signed index into the font table, [MS-DOC] 2.6.
|
|
17
|
+
/** sprmCRgFtc0: a 2-byte signed index into the font table, [MS-DOC] 2.6.1 -- see style/fonts.ts. */
|
|
18
18
|
const SPRM_C_RG_FTC_0 = 19023;
|
|
19
19
|
const HALF_POINTS_PER_POINT = 2;
|
|
20
20
|
/** sprmCHps's own operand range: an unsigned 2-byte half-point value. */
|
package/dist/prop/chp-write.js
CHANGED
|
@@ -13,7 +13,7 @@ const KUL_SINGLE = 1;
|
|
|
13
13
|
const SPRM_C_HPS = 19011;
|
|
14
14
|
/** sprmCCv: a 4-byte COLORREF (r, g, b, fAuto). fAuto 0x00 means "use these components", the only form this writer emits. */
|
|
15
15
|
const SPRM_C_CV = 26736;
|
|
16
|
-
/** sprmCRgFtc0: a 2-byte signed index into the font table, [MS-DOC] 2.6.
|
|
16
|
+
/** sprmCRgFtc0: a 2-byte signed index into the font table, [MS-DOC] 2.6.1 -- see style/fonts.ts. */
|
|
17
17
|
const SPRM_C_RG_FTC_0 = 19023;
|
|
18
18
|
const HALF_POINTS_PER_POINT = 2;
|
|
19
19
|
/** sprmCHps's own operand range: an unsigned 2-byte half-point value. */
|
package/dist/prop/chp.d.cts
CHANGED
package/dist/prop/chp.d.ts
CHANGED
package/dist/prop/pap.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as applyParagraphSprms, t as ParagraphProperties } from "../pap-
|
|
1
|
+
import { n as applyParagraphSprms, t as ParagraphProperties } from "../pap-BT1p0uzu.cjs";
|
|
2
2
|
export { ParagraphProperties, applyParagraphSprms };
|
package/dist/prop/pap.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as applyParagraphSprms, t as ParagraphProperties } from "../pap-
|
|
1
|
+
import { n as applyParagraphSprms, t as ParagraphProperties } from "../pap-DOFLMWcG.js";
|
|
2
2
|
export { ParagraphProperties, applyParagraphSprms };
|
package/dist/prop/sep.d.cts
CHANGED
package/dist/prop/sep.d.ts
CHANGED
package/dist/prop/sprm.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_errors = require("../errors.cjs");
|
|
3
3
|
const require_bytes = require("../bytes.cjs");
|
|
4
4
|
//#region src/prop/sprm.ts
|
|
5
|
-
/** Sprm.sgc, [MS-DOC] 2.
|
|
5
|
+
/** Sprm.sgc, [MS-DOC] 2.2.5.1 -- which property family the opcode belongs to. */
|
|
6
6
|
const SGC = {
|
|
7
7
|
paragraph: 1,
|
|
8
8
|
character: 2,
|
package/dist/prop/sprm.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as operandSize, i as decodeSprm, n as SGC, o as readGrpprl, r as Sprm, t as Prl } from "../sprm-
|
|
1
|
+
import { a as operandSize, i as decodeSprm, n as SGC, o as readGrpprl, r as Sprm, t as Prl } from "../sprm-DEyvdOo0.cjs";
|
|
2
2
|
export { Prl, SGC, Sprm, decodeSprm, operandSize, readGrpprl };
|
package/dist/prop/sprm.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as operandSize, i as decodeSprm, n as SGC, o as readGrpprl, r as Sprm, t as Prl } from "../sprm-
|
|
1
|
+
import { a as operandSize, i as decodeSprm, n as SGC, o as readGrpprl, r as Sprm, t as Prl } from "../sprm-DEyvdOo0.js";
|
|
2
2
|
export { Prl, SGC, Sprm, decodeSprm, operandSize, readGrpprl };
|
package/dist/prop/sprm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DocFormatError, DocUnsupportedError } from "../errors.js";
|
|
2
2
|
import { readUint16LE, readUint8, slice } from "../bytes.js";
|
|
3
3
|
//#region src/prop/sprm.ts
|
|
4
|
-
/** Sprm.sgc, [MS-DOC] 2.
|
|
4
|
+
/** Sprm.sgc, [MS-DOC] 2.2.5.1 -- which property family the opcode belongs to. */
|
|
5
5
|
const SGC = {
|
|
6
6
|
paragraph: 1,
|
|
7
7
|
character: 2,
|
package/dist/read.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Fib } from "./fib-CtsLtF96.cjs";
|
|
2
|
-
import { t as Prl } from "./sprm-
|
|
3
|
-
import { t as ParagraphProperties } from "./pap-
|
|
4
|
-
import { r as NumberingDefinitions } from "./numbering-
|
|
2
|
+
import { t as Prl } from "./sprm-DEyvdOo0.cjs";
|
|
3
|
+
import { t as ParagraphProperties } from "./pap-BT1p0uzu.cjs";
|
|
4
|
+
import { r as NumberingDefinitions } from "./numbering-Bivayss4.cjs";
|
|
5
5
|
import { ContentDocument, ContentParagraph } from "document-schema.js";
|
|
6
6
|
//#region src/read.d.ts
|
|
7
7
|
interface DocStreams {
|
package/dist/read.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Fib } from "./fib-CtsLtF96.js";
|
|
2
|
-
import { t as Prl } from "./sprm-
|
|
3
|
-
import { t as ParagraphProperties } from "./pap-
|
|
4
|
-
import { r as NumberingDefinitions } from "./numbering-
|
|
2
|
+
import { t as Prl } from "./sprm-DEyvdOo0.js";
|
|
3
|
+
import { t as ParagraphProperties } from "./pap-DOFLMWcG.js";
|
|
4
|
+
import { r as NumberingDefinitions } from "./numbering-Co4jssbG.js";
|
|
5
5
|
import { ContentDocument, ContentParagraph } from "document-schema.js";
|
|
6
6
|
//#region src/read.d.ts
|
|
7
7
|
interface DocStreams {
|
|
@@ -11,7 +11,7 @@ interface Prl {
|
|
|
11
11
|
readonly sprm: Sprm;
|
|
12
12
|
readonly operand: Uint8Array;
|
|
13
13
|
}
|
|
14
|
-
/** Sprm.sgc, [MS-DOC] 2.
|
|
14
|
+
/** Sprm.sgc, [MS-DOC] 2.2.5.1 -- which property family the opcode belongs to. */
|
|
15
15
|
declare const SGC: {
|
|
16
16
|
readonly paragraph: 1;
|
|
17
17
|
readonly character: 2;
|
|
@@ -11,7 +11,7 @@ interface Prl {
|
|
|
11
11
|
readonly sprm: Sprm;
|
|
12
12
|
readonly operand: Uint8Array;
|
|
13
13
|
}
|
|
14
|
-
/** Sprm.sgc, [MS-DOC] 2.
|
|
14
|
+
/** Sprm.sgc, [MS-DOC] 2.2.5.1 -- which property family the opcode belongs to. */
|
|
15
15
|
declare const SGC: {
|
|
16
16
|
readonly paragraph: 1;
|
|
17
17
|
readonly character: 2;
|
package/dist/table/tap.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Prl } from "../sprm-
|
|
1
|
+
import { t as Prl } from "../sprm-DEyvdOo0.cjs";
|
|
2
2
|
import { CellBorderSide, TableBordersSet } from "./decoration.cjs";
|
|
3
3
|
import { ContentCellBorders, ContentCellFill } from "document-schema.js";
|
|
4
4
|
//#region src/table/tap.d.ts
|
package/dist/table/tap.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Prl } from "../sprm-
|
|
1
|
+
import { t as Prl } from "../sprm-DEyvdOo0.js";
|
|
2
2
|
import { CellBorderSide, TableBordersSet } from "./decoration.js";
|
|
3
3
|
import { ContentCellBorders, ContentCellFill } from "document-schema.js";
|
|
4
4
|
//#region src/table/tap.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doc-codec",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "A hand-written reader for the Word Binary File Format ([MS-DOC], .doc) against the shared document-schema.js content pivot: FIB parsing, piece-table text reconstruction, and CHPX/PAPX formatting exceptions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|