Commit Graph

19 Commits

Author SHA1 Message Date
13cf3eee5a Feature/multiple patch document exports (#2497)
* Turn patch document into options object

Add outputType to options

* Set keep styles to true by default

* Simplify method

* Rename variable

* #2267 Multiple patches of same key

* Remove path which won't be visited
2023-12-31 23:16:48 +00:00
24c159de37 Add SVG image suport (#2487)
* Add SVG blip extentions

* SVG Image feature now works

* Add and simplify tests

* Fix falsey issue with file

Write tests
100% Coverage
2023-12-31 18:54:35 +00:00
a756a7697c Change all project enums to objects with as const (#2445)
* feat: change all enums to as const objects

* Add word to dictionary

---------

Co-authored-by: Dolan Miu <dolan_miu@hotmail.com>
2023-12-22 01:25:00 +00:00
a89ee463e6 Fix style being missed on patchDocument
There were scenarios in which patching a document would result in loss
of style for the template runs and, possibly, their right-adjacent run
as well (post-splitting). That was due to the run style elements not
being added to the newly created runs.

This commit addresses this issue by introducing a new, optional, flag
for the `patchDocument` function: `keepOriginalStyles`. It defaults to
`false` (current behavior) and, when `true`, ensures that there is no
loss of styling.

This should address https://github.com/dolanmiu/docx/issues/2293.
2023-10-18 12:58:01 -03:00
28d93b0c42 Remove default browser export
Fixes Angular issue
2023-07-20 20:46:53 +01:00
d94348f5ca Export correct type in patchDocument 2023-07-18 20:49:43 +01:00
352cde743f Fix TS issues 2023-05-31 22:56:58 +01:00
a26292a0fd Trying to upgrade docx to use Vite 2023-05-01 20:37:39 +01:00
7785f0df02 Add some tests to boost coverage 2023-03-21 04:30:20 +00:00
71953cf45a Fixes patchDocument for files with binary content 2023-03-17 16:30:35 +01:00
7e9884081e Add tests to patcher 2023-03-16 01:55:18 +00:00
262f6323d0 Write more tests and simplify code 2023-03-15 03:14:38 +00:00
811dd61562 Add tests 2023-03-15 02:46:39 +00:00
8ce057e25c Context per view wrapper 2023-03-13 21:35:16 +00:00
0fba450c9a Allow patching of ExternalHyperlinks 2023-03-08 23:30:51 +00:00
66a1992da0 Add ImageRun feature 2023-03-03 23:47:50 +00:00
c9d86619de Clean up 2023-02-25 22:18:56 +00:00
ce485dbc29 Simplify patcher
Use map notation
2023-02-25 22:18:31 +00:00
4e875b4744 Re-name templater to patcher 2023-02-25 20:18:00 +00:00