3997ce538d
fix(replacer): errors suppressed by catch statement ( #2856 )
2024-11-28 10:35:11 +00:00
dece0f58e1
Fix duplicated br tags ( #2717 )
...
* Adjust test to demo duplicated br tags
* Fix patchDocument duplicating br tags
* Only include w:Pr
* Fix tag condition
---------
Co-authored-by: Dolan <dolan_miu@hotmail.com >
2024-11-20 11:19:25 +00:00
2381ba8a05
build(deps-dev): bump eslint from 8.57.1 to 9.13.0 ( #2792 )
...
* build(deps-dev): bump eslint from 8.57.1 to 9.13.0
Bumps [eslint](https://github.com/eslint/eslint ) from 8.57.1 to 9.13.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v8.57.1...v9.13.0 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Upgrade EsLint
* Fix all new lint errors
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dolan Miu <dolan_miu@hotmail.com >
2024-10-21 03:57:15 +01:00
2d2e4cdab2
fix: Missing text property for patchDocument ( #2760 )
...
* fix: Missing text property
Ignore <br /> for patched files
* Fix spelling issues
2024-10-13 01:29:32 +01:00
962795743c
feat: Add ability to detect patches which are present in a file ( #2633 )
...
* feat: Add ability to detect patches which are present in a file
* chore: export patchDetector function
* fix: Make sure we don't attempt to call toJson on binary content
---------
Co-authored-by: Christopher Fox <cfox@homebound.com >
2024-05-22 03:05:48 +01:00
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
d23b0d0789
Fix coverage
2023-11-01 20:40:30 +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
b0d60109c9
Fix prettier issue
2023-06-29 10:43:44 +08:00
4f06d760a3
Fix patch doc add duplicate content type
2023-06-28 23:34:16 +08:00
d08349f8eb
Fix tests
2023-06-12 19:19:41 +01:00
8dd8c079e7
Fix tests
2023-06-12 19:02:12 +01:00
eeee01a0e0
Use C8 for coverage
2023-06-12 18:43:29 +01:00
09ab91eeef
Fix tests and build
...
Remove unused code and dependencies
2023-06-08 13:30:31 +01:00
a0a88412ff
Fix tests
2023-06-07 15:11:47 +01:00
e69b063687
Porting tests over to vitest
2023-06-05 00:33: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
0386810714
Write tests and simplify logic
2023-04-04 22:21:01 +01:00
10c866bdea
Add tests
2023-03-31 17:16:05 +01:00
c3a617fefd
#2028 - Null check
2023-03-31 00:13:36 +01:00
16bfc78d8d
#2028 Fix patcher offset indexes
2023-03-23 21:01:24 +00: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
d02f98956f
Fix spelling errors
2023-03-16 03:24:51 +00:00
338f7be967
Add chai as promised and fix async test
2023-03-16 03:14:01 +00: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
352511bb55
Add tests
2023-03-14 03:13:23 +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