b19025881b
feat(comments): Support comment pictures ( #3032 )
...
* feat(comments): Support comment pictures
* fix(demo): Fix the image path to load the image correctly
* fix(test): Update the number of files asserted in the compiler test case
* feat(comments): Support comment pictures
* fix(demo): Fix the image path to load the image correctly
* fix(test): Update the number of files asserted in the compiler test case
* style(src): Format the code and remove extra blank lines
---------
Co-authored-by: Dolan <dolan_miu@hotmail.com >
2025-04-16 08:45:36 +01:00
170309a7ed
Add Packer.pack and Packer.toArrayBuffer ( #2959 )
...
* Add Packer.pack and Packer.toArrayBuffer
To mirror patchDocument's outputType parameter.
See https://github.com/dolanmiu/docx/discussions/2920
* Ignore coverage
---------
Co-authored-by: Dolan Miu <dolan_miu@hotmail.com >
2025-02-16 18:24:15 +00:00
05fcf6edd4
Feat: subfile overrides ( #2941 )
...
* Adds overrides parameter to Packer methods and compiler
* Adds tests for overrides parameter
* Update Packer usage examples
2025-01-27 10:39:23 +00:00
05a3cf5b43
fix: add rel to fontTable ( #2800 )
...
* fix: add rel to fontTable
* Fix prettier
---------
Co-authored-by: Dolan <dolan_miu@hotmail.com >
2024-11-20 11:19:43 +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
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
010ef05ce3
Feat/embedded fonts ( #2174 )
...
* #239 Embedded fonts
* Add boilerplate for font table
* Fix linting
* Fix linting
* Fix odttf naming
* Correct writing of fonts to relationships and font table
new uuid function
* Add font to run
* Add demo
Fix tests
* Add character set support
* Add tests
* Write tests
2023-12-30 02:23:54 +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
b6e5b23f89
Fix linting
2023-06-12 19:09:37 +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
0cbb5fb0a3
Convert to vite and clean up build
2023-06-01 02:05:35 +01:00
a26292a0fd
Trying to upgrade docx to use Vite
2023-05-01 20:37:39 +01:00
66a1992da0
Add ImageRun feature
2023-03-03 23:47:50 +00:00
fe8b0a6b2b
#1699 Allow images to work with Hyperlink
...
Add stack to IContext for prepForXml
2022-12-26 15:12:44 +00:00
5950055cca
Fix linting and add new lint rules
2022-09-19 20:48:50 +01:00
e90d97b813
Use new eslint-plugin-functional instead of tslint-immutable
2022-09-15 20:00:50 +01:00
d020d59b11
Merge branch 'master' into feat/tslint-to-eslint
...
# Conflicts:
# src/file/numbering/level.spec.ts
# src/file/numbering/level.ts
2022-09-15 18:04:48 +01:00
af7d275c27
Merge pull request #1636 from MLD5000/create-packer-stream
...
Create packer stream "toStream"
2022-09-15 13:04:15 +01:00
2b01a6006c
Fix linting
2022-09-15 12:39:30 +01:00
9f3940746a
Add tests for stream packer
2022-09-15 08:15:38 +01:00
1bdf9a4987
Initial ESlint conversion
2022-08-31 07:52:27 +01:00
c982e64996
formatting
2022-08-24 13:01:15 -05:00
1a630bcb4d
Added toStream export function
...
New Function returns a NodeJS readable stream that allows piping DOCX document data to stream.
2022-08-22 13:25:59 -07:00
b6be05a931
Add test for Packer.toString
2022-08-22 19:08:29 +02:00
21f7662a77
Add toString to Packer
2022-08-17 18:52:19 +02:00
e84641c13c
#1583 Add more tests to media data
2022-07-12 18:11:44 +01:00
a7d55a52f3
#1583 Comments to always write default data
2022-07-12 16:57:25 +01:00
6d447033c9
Fix more spelling rules
2022-07-05 05:06:32 +01:00
982d923553
Improve import alias
...
@file/ and @export/ instead of file/ and export/ etc
2022-06-26 23:26:42 +01:00
c38e70e25d
Update tests
2022-06-25 13:08:20 +01:00
233a29bfef
Fix tests and linting
2022-06-19 00:31:36 +01:00
d6ec275778
Merge remote-tracking branch 'github.com/master'
2022-06-17 17:53:13 +08:00
f1ab24c439
#1528 Adding numbering replacer on header and footer
2022-06-16 16:31:34 +01:00
c7b68a40e4
Add tests for get media data
2022-06-15 01:44:57 +01:00
b81086ab7a
feat: transfer comments property to File CoreProperties like numbering.
2022-03-07 20:02:14 +08:00
b2a09b512f
implement sample version of Comment feature.
2022-03-03 09:59:09 +08:00
d808b287a7
Simplify code
2021-12-02 17:37:27 +00:00
47099d0468
Change type of revision to a number
2021-10-08 15:55:58 -06:00
75290aeaf5
Adding numberingReplacer for styles.xml at next-compiler.ts
2021-09-16 13:03:34 +03:00
2b9c15a638
Upgrade prettier
2021-06-15 00:25:44 +01:00
60b7ce4785
clean up settings; BREAKING: TableOfContents requires Document features.updateFields = true setting
2021-05-26 08:36:05 +03:00
3299c557a0
Make .addSection fully declarative
2021-03-19 20:53:56 +00:00
bd40b11ce4
#815 Rotation and flipping images
2021-03-15 02:41:37 +00:00
2fa8df7cf4
Add more tests
2021-03-14 00:44:12 +00:00
0b88cb0ca5
#548 #508 Restart numbered lists
2021-03-12 03:58:05 +00:00
566ac03f9a
Use context in prep xml
2021-03-11 01:06:55 +00:00
9327f2bfa1
Fix compiler tests
2021-03-04 01:30:42 +00:00