@silurus/ooxml 0.75.4 → 0.75.5
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/{document-pull-client-o6FhJ32O.js → document-pull-client-BcNYhoAG.js} +3989 -3931
- package/dist/{docx-DpLpTFTQ.js → docx-DjF8FgoP.js} +2 -2
- package/dist/docx.mjs +1 -1
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/index.mjs +1 -1
- package/dist/node.mjs +1 -1
- package/dist/render-worker-host-Cyv5Hkbh.js +27 -0
- package/dist/types/docx.d.ts +19 -10
- package/dist/types/index.d.ts +19 -10
- package/dist/types/node.d.ts +18 -9
- package/package.json +1 -1
- package/dist/render-worker-host-B5VtQmQx.js +0 -27
package/dist/types/docx.d.ts
CHANGED
|
@@ -1536,7 +1536,7 @@ interface FindHighlightColors {
|
|
|
1536
1536
|
active?: string;
|
|
1537
1537
|
}
|
|
1538
1538
|
//#endregion
|
|
1539
|
-
//#region dist/.types-work/renderer-
|
|
1539
|
+
//#region dist/.types-work/renderer-BwmBZ5GX.d.ts
|
|
1540
1540
|
//#region packages/docx/src/types.d.ts
|
|
1541
1541
|
interface DocxDocumentModel {
|
|
1542
1542
|
section: SectionProps;
|
|
@@ -1972,10 +1972,9 @@ interface DocParagraph {
|
|
|
1972
1972
|
defaultFontFamilyEastAsia?: string | null;
|
|
1973
1973
|
/** ECMA-376 §17.3.1.29 — the paragraph mark run's resolved `w:color` (direct
|
|
1974
1974
|
* pPr/rPr → pStyle chain → docDefaults; hex 6 without `#`, lowercased; an
|
|
1975
|
-
* explicit `auto` surfaces as absent, §17.3.2.6).
|
|
1976
|
-
*
|
|
1977
|
-
*
|
|
1978
|
-
* absent. */
|
|
1975
|
+
* explicit `auto` surfaces as absent, §17.3.2.6). Compatibility rule
|
|
1976
|
+
* `word-numbering-marker-paragraph-mark-fallback` uses this when §17.9.24
|
|
1977
|
+
* leaves {@link NumberingInfo.color} absent. */
|
|
1979
1978
|
paragraphMarkColor?: string | null;
|
|
1980
1979
|
/**
|
|
1981
1980
|
* ECMA-376 §17.3.1.6 `<w:bidi>` — right-to-left paragraph. `true` = RTL,
|
|
@@ -2101,7 +2100,8 @@ interface NumberingInfo {
|
|
|
2101
2100
|
* it (the renderer treats absent as "left"). */
|
|
2102
2101
|
jc?: string;
|
|
2103
2102
|
/** ECMA-376 §17.3.2.26 ascii axis for the marker glyph, resolved through the
|
|
2104
|
-
* level's `rPr` (§17.9.
|
|
2103
|
+
* level's `rPr` (§17.9.24) plus compatibility rule
|
|
2104
|
+
* `word-numbering-marker-paragraph-mark-fallback`. The
|
|
2105
2105
|
* renderer draws Latin marker chars (e.g. a decimal "1") with this family, so
|
|
2106
2106
|
* a heading whose ascii=Times renders its auto-number in Times (serif) even
|
|
2107
2107
|
* when eastAsia=Gothic. Absent ⇒ the renderer falls back to its default. */
|
|
@@ -2114,9 +2114,11 @@ interface NumberingInfo {
|
|
|
2114
2114
|
/** ECMA-376 §17.9.24 — the numbering level rPr's `w:color` (hex 6 without
|
|
2115
2115
|
* `#`, lowercased). Colors the marker glyph only, never the paragraph's
|
|
2116
2116
|
* runs. Absent ⇒ the renderer falls back to
|
|
2117
|
-
* {@link DocParagraph.paragraphMarkColor}
|
|
2118
|
-
*
|
|
2119
|
-
*
|
|
2117
|
+
* {@link DocParagraph.paragraphMarkColor} under compatibility rule
|
|
2118
|
+
* `word-numbering-marker-paragraph-mark-fallback`, then to its default ink.
|
|
2119
|
+
* §17.3.1.29 defines the
|
|
2120
|
+
* mark properties but not that fallback. An explicit `w:val="auto"` is
|
|
2121
|
+
* absent here + {@link colorAuto}. */
|
|
2120
2122
|
color?: string | null;
|
|
2121
2123
|
/** ECMA-376 §17.3.2.6 / ST_HexColorAuto (§17.18.39) — true when the level
|
|
2122
2124
|
* rPr carries an EXPLICIT `w:color w:val="auto"`. Auto names no concrete
|
|
@@ -2440,6 +2442,13 @@ interface ShapeText {
|
|
|
2440
2442
|
text: string;
|
|
2441
2443
|
fontSizePt: number;
|
|
2442
2444
|
color?: string | null;
|
|
2445
|
+
/** Resolved paragraph-mark run color used by compatibility rule
|
|
2446
|
+
* `word-numbering-marker-paragraph-mark-fallback` when the numbering level
|
|
2447
|
+
* has no explicit color; kept separate from the first content run's
|
|
2448
|
+
* compatibility-level {@link ShapeText.color}. `null` means the parser
|
|
2449
|
+
* resolved automatic/default ink; `undefined` preserves the legacy contract
|
|
2450
|
+
* for hand-built values that did not provide paragraph-mark facts. */
|
|
2451
|
+
paragraphMarkColor?: string | null;
|
|
2443
2452
|
fontFamily?: string | null;
|
|
2444
2453
|
bold?: boolean;
|
|
2445
2454
|
italic?: boolean;
|
|
@@ -3089,7 +3098,7 @@ interface DocxTextRunInfo {
|
|
|
3089
3098
|
eastAsianVert?: boolean;
|
|
3090
3099
|
}
|
|
3091
3100
|
//#endregion
|
|
3092
|
-
//#region dist/.types-work/docx-
|
|
3101
|
+
//#region dist/.types-work/docx-KCG5Gwuy.d.ts
|
|
3093
3102
|
//#region packages/docx/src/worker-protocol.d.ts
|
|
3094
3103
|
/** Serializable subset of RenderPageOptions (callbacks cannot cross the wire). */
|
|
3095
3104
|
type WireRenderPageOptions = Omit<RenderPageOptions, 'onTextRun'>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1973,7 +1973,7 @@ interface FindHighlightColors {
|
|
|
1973
1973
|
active?: string;
|
|
1974
1974
|
}
|
|
1975
1975
|
//#endregion
|
|
1976
|
-
//#region dist/.types-work/renderer-
|
|
1976
|
+
//#region dist/.types-work/renderer-BwmBZ5GX.d.ts
|
|
1977
1977
|
//#region packages/docx/src/types.d.ts
|
|
1978
1978
|
interface DocxDocumentModel {
|
|
1979
1979
|
section: SectionProps;
|
|
@@ -2409,10 +2409,9 @@ interface DocParagraph {
|
|
|
2409
2409
|
defaultFontFamilyEastAsia?: string | null;
|
|
2410
2410
|
/** ECMA-376 §17.3.1.29 — the paragraph mark run's resolved `w:color` (direct
|
|
2411
2411
|
* pPr/rPr → pStyle chain → docDefaults; hex 6 without `#`, lowercased; an
|
|
2412
|
-
* explicit `auto` surfaces as absent, §17.3.2.6).
|
|
2413
|
-
*
|
|
2414
|
-
*
|
|
2415
|
-
* absent. */
|
|
2412
|
+
* explicit `auto` surfaces as absent, §17.3.2.6). Compatibility rule
|
|
2413
|
+
* `word-numbering-marker-paragraph-mark-fallback` uses this when §17.9.24
|
|
2414
|
+
* leaves {@link NumberingInfo.color} absent. */
|
|
2416
2415
|
paragraphMarkColor?: string | null;
|
|
2417
2416
|
/**
|
|
2418
2417
|
* ECMA-376 §17.3.1.6 `<w:bidi>` — right-to-left paragraph. `true` = RTL,
|
|
@@ -2538,7 +2537,8 @@ interface NumberingInfo {
|
|
|
2538
2537
|
* it (the renderer treats absent as "left"). */
|
|
2539
2538
|
jc?: string;
|
|
2540
2539
|
/** ECMA-376 §17.3.2.26 ascii axis for the marker glyph, resolved through the
|
|
2541
|
-
* level's `rPr` (§17.9.
|
|
2540
|
+
* level's `rPr` (§17.9.24) plus compatibility rule
|
|
2541
|
+
* `word-numbering-marker-paragraph-mark-fallback`. The
|
|
2542
2542
|
* renderer draws Latin marker chars (e.g. a decimal "1") with this family, so
|
|
2543
2543
|
* a heading whose ascii=Times renders its auto-number in Times (serif) even
|
|
2544
2544
|
* when eastAsia=Gothic. Absent ⇒ the renderer falls back to its default. */
|
|
@@ -2551,9 +2551,11 @@ interface NumberingInfo {
|
|
|
2551
2551
|
/** ECMA-376 §17.9.24 — the numbering level rPr's `w:color` (hex 6 without
|
|
2552
2552
|
* `#`, lowercased). Colors the marker glyph only, never the paragraph's
|
|
2553
2553
|
* runs. Absent ⇒ the renderer falls back to
|
|
2554
|
-
* {@link DocParagraph.paragraphMarkColor}
|
|
2555
|
-
*
|
|
2556
|
-
*
|
|
2554
|
+
* {@link DocParagraph.paragraphMarkColor} under compatibility rule
|
|
2555
|
+
* `word-numbering-marker-paragraph-mark-fallback`, then to its default ink.
|
|
2556
|
+
* §17.3.1.29 defines the
|
|
2557
|
+
* mark properties but not that fallback. An explicit `w:val="auto"` is
|
|
2558
|
+
* absent here + {@link colorAuto}. */
|
|
2557
2559
|
color?: string | null;
|
|
2558
2560
|
/** ECMA-376 §17.3.2.6 / ST_HexColorAuto (§17.18.39) — true when the level
|
|
2559
2561
|
* rPr carries an EXPLICIT `w:color w:val="auto"`. Auto names no concrete
|
|
@@ -2877,6 +2879,13 @@ interface ShapeText$1 {
|
|
|
2877
2879
|
text: string;
|
|
2878
2880
|
fontSizePt: number;
|
|
2879
2881
|
color?: string | null;
|
|
2882
|
+
/** Resolved paragraph-mark run color used by compatibility rule
|
|
2883
|
+
* `word-numbering-marker-paragraph-mark-fallback` when the numbering level
|
|
2884
|
+
* has no explicit color; kept separate from the first content run's
|
|
2885
|
+
* compatibility-level {@link ShapeText.color}. `null` means the parser
|
|
2886
|
+
* resolved automatic/default ink; `undefined` preserves the legacy contract
|
|
2887
|
+
* for hand-built values that did not provide paragraph-mark facts. */
|
|
2888
|
+
paragraphMarkColor?: string | null;
|
|
2880
2889
|
fontFamily?: string | null;
|
|
2881
2890
|
bold?: boolean;
|
|
2882
2891
|
italic?: boolean;
|
|
@@ -3526,7 +3535,7 @@ interface DocxTextRunInfo {
|
|
|
3526
3535
|
eastAsianVert?: boolean;
|
|
3527
3536
|
}
|
|
3528
3537
|
//#endregion
|
|
3529
|
-
//#region dist/.types-work/docx-
|
|
3538
|
+
//#region dist/.types-work/docx-KCG5Gwuy.d.ts
|
|
3530
3539
|
//#region packages/docx/src/worker-protocol.d.ts
|
|
3531
3540
|
/** Serializable subset of RenderPageOptions (callbacks cannot cross the wire). */
|
|
3532
3541
|
type WireRenderPageOptions = Omit<RenderPageOptions, 'onTextRun'>;
|
package/dist/types/node.d.ts
CHANGED
|
@@ -1539,7 +1539,7 @@ type HyperlinkTarget = {
|
|
|
1539
1539
|
slideIndex?: number;
|
|
1540
1540
|
};
|
|
1541
1541
|
//#endregion
|
|
1542
|
-
//#region dist/.types-work/renderer-
|
|
1542
|
+
//#region dist/.types-work/renderer-BwmBZ5GX.d.ts
|
|
1543
1543
|
//#endregion
|
|
1544
1544
|
//#region packages/docx/src/renderer.d.ts
|
|
1545
1545
|
/** Information about a rendered text segment for building a transparent selection overlay. */
|
|
@@ -2706,10 +2706,9 @@ interface DocParagraph {
|
|
|
2706
2706
|
defaultFontFamilyEastAsia?: string | null;
|
|
2707
2707
|
/** ECMA-376 §17.3.1.29 — the paragraph mark run's resolved `w:color` (direct
|
|
2708
2708
|
* pPr/rPr → pStyle chain → docDefaults; hex 6 without `#`, lowercased; an
|
|
2709
|
-
* explicit `auto` surfaces as absent, §17.3.2.6).
|
|
2710
|
-
*
|
|
2711
|
-
*
|
|
2712
|
-
* absent. */
|
|
2709
|
+
* explicit `auto` surfaces as absent, §17.3.2.6). Compatibility rule
|
|
2710
|
+
* `word-numbering-marker-paragraph-mark-fallback` uses this when §17.9.24
|
|
2711
|
+
* leaves {@link NumberingInfo.color} absent. */
|
|
2713
2712
|
paragraphMarkColor?: string | null;
|
|
2714
2713
|
/**
|
|
2715
2714
|
* ECMA-376 §17.3.1.6 `<w:bidi>` — right-to-left paragraph. `true` = RTL,
|
|
@@ -2835,7 +2834,8 @@ interface NumberingInfo {
|
|
|
2835
2834
|
* it (the renderer treats absent as "left"). */
|
|
2836
2835
|
jc?: string;
|
|
2837
2836
|
/** ECMA-376 §17.3.2.26 ascii axis for the marker glyph, resolved through the
|
|
2838
|
-
* level's `rPr` (§17.9.
|
|
2837
|
+
* level's `rPr` (§17.9.24) plus compatibility rule
|
|
2838
|
+
* `word-numbering-marker-paragraph-mark-fallback`. The
|
|
2839
2839
|
* renderer draws Latin marker chars (e.g. a decimal "1") with this family, so
|
|
2840
2840
|
* a heading whose ascii=Times renders its auto-number in Times (serif) even
|
|
2841
2841
|
* when eastAsia=Gothic. Absent ⇒ the renderer falls back to its default. */
|
|
@@ -2848,9 +2848,11 @@ interface NumberingInfo {
|
|
|
2848
2848
|
/** ECMA-376 §17.9.24 — the numbering level rPr's `w:color` (hex 6 without
|
|
2849
2849
|
* `#`, lowercased). Colors the marker glyph only, never the paragraph's
|
|
2850
2850
|
* runs. Absent ⇒ the renderer falls back to
|
|
2851
|
-
* {@link DocParagraph.paragraphMarkColor}
|
|
2852
|
-
*
|
|
2853
|
-
*
|
|
2851
|
+
* {@link DocParagraph.paragraphMarkColor} under compatibility rule
|
|
2852
|
+
* `word-numbering-marker-paragraph-mark-fallback`, then to its default ink.
|
|
2853
|
+
* §17.3.1.29 defines the
|
|
2854
|
+
* mark properties but not that fallback. An explicit `w:val="auto"` is
|
|
2855
|
+
* absent here + {@link colorAuto}. */
|
|
2854
2856
|
color?: string | null;
|
|
2855
2857
|
/** ECMA-376 §17.3.2.6 / ST_HexColorAuto (§17.18.39) — true when the level
|
|
2856
2858
|
* rPr carries an EXPLICIT `w:color w:val="auto"`. Auto names no concrete
|
|
@@ -3174,6 +3176,13 @@ interface ShapeText$1 {
|
|
|
3174
3176
|
text: string;
|
|
3175
3177
|
fontSizePt: number;
|
|
3176
3178
|
color?: string | null;
|
|
3179
|
+
/** Resolved paragraph-mark run color used by compatibility rule
|
|
3180
|
+
* `word-numbering-marker-paragraph-mark-fallback` when the numbering level
|
|
3181
|
+
* has no explicit color; kept separate from the first content run's
|
|
3182
|
+
* compatibility-level {@link ShapeText.color}. `null` means the parser
|
|
3183
|
+
* resolved automatic/default ink; `undefined` preserves the legacy contract
|
|
3184
|
+
* for hand-built values that did not provide paragraph-mark facts. */
|
|
3185
|
+
paragraphMarkColor?: string | null;
|
|
3177
3186
|
fontFamily?: string | null;
|
|
3178
3187
|
bold?: boolean;
|
|
3179
3188
|
italic?: boolean;
|
package/package.json
CHANGED