dom-to-pptx 1.0.9 → 1.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/CHANGELOG.md CHANGED
@@ -2,12 +2,33 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [1.1.1] - 2026-01-02
6
+
7
+ ### Fixed
8
+
9
+ - Resolved an issue where ordered (`<ol>`) and unordered (`<ul>`) lists were not rendered correctly in exported PPTX files. (Fixes #8)
10
+ - Corrected geometric shape rendering issues related to absolute positioning and percentage-based sizing to ensure accurate layout in PPTX exports. (Fixes #6)
11
+ - Fixed text box width calculation discrepancies that caused incorrect line breaks and text wrapping in PPTX output. (Fixes #5)
12
+
13
+ ## [1.1.0] - 2025-12-29
14
+
15
+ ### Added
16
+
17
+ - **Automatic Font Discovery:** The library now automatically scans the DOM for used font families, extracts their `@font-face` URLs from the document stylesheets, and embeds them into the PPTX file; Addresses Feature Request [#4].
18
+ - **Custom Font Embedding:** Added support for manually embedding web fonts (TTF, WOFF, OTF).
19
+ - **Font Configuration:** Added `fonts` option for manual font URLs and `autoEmbedFonts` (default: `true`) to toggle automatic detection.
20
+
21
+ ### Changed
22
+
23
+ - **Build Configuration:** Updated Rollup build to include necessary Node.js polyfills (Buffer, Stream) for the browser bundle to support binary font manipulation.
24
+ - **Text Detection:** Improved `isTextContainer` logic to better distinguish between pure text nodes and structural inline elements (like icons or styled spans).
25
+
5
26
  ## [1.0.9] - 2025-12-28
6
27
 
7
28
  ### Fixed
8
29
 
9
- - **Linear Gradients not applied properly**: Seperated the logic to handle tailwind class and normal css.
10
- - **Font Awesome icon library cannot be converted**: Updated logic to handle Icons inside lists and span elements. fixes [#3].
30
+ - **Complex Gradients:** Fixed `linear-gradient` parsing to correctly support degree-based angles (e.g., `45deg`) and complex directional keywords (e.g., `to top right`), ensuring background gradients match the CSS exactly.
31
+ - **Icon Visibility:** Fixed an issue where icons (Font Awesome, Material Icons, etc.) nested within list items or text containers were being treated as empty text and failing to render, fixes [#3].
11
32
 
12
33
  ## [1.0.8] - 2025-12-12 (Hot-Patch)
13
34
 
@@ -15,7 +36,6 @@ All notable changes to this project will be documented in this file.
15
36
 
16
37
  - **Fixed SVGs not getting converted**: Seperated the logic to handle SVGs and Web Components/Icons.
17
38
 
18
-
19
39
  ## [1.0.7] - 2025-12-12
20
40
 
21
41
  ### Fixed